ab1ad1e7b5b083b6e74f80bbd5d35e5aec905621
[gnulib.git] / ChangeLog
1 2011-01-24  Bruno Haible  <bruno@clisp.org>
2
3         vma-iter: Avoid empty intervals.
4         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5         on an empty interval.
6
7 2011-01-24  Jim Meyering  <meyering@redhat.com>
8
9         u64: remove unnecessary #include
10         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11
12 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13
14         Allow the user to avoid the GNULIB_TEST_* macros.
15         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16
17 2011-01-23  Bruno Haible  <bruno@clisp.org>
18
19         New module 'vma-iter'.
20         * lib/vma-iter.h: New file.
21         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22         * modules/vma-iter: New file.
23         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24         for get_rusage_as_via_iterator.
25         (vma_iterate_callback): New function.
26         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
27         * modules/get-rusage-as (Depends-on): Add vma-iter.
28
29 2011-01-23  Bruno Haible  <bruno@clisp.org>
30
31         uninorm: Tweak includes.
32         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
33         Reported by Jim Meyering.
34
35 2011-01-23  Bruno Haible  <bruno@clisp.org>
36
37         get-rusage-as: Improve on NetBSD.
38         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
39         /proc, like on FreeBSD.
40
41 2011-01-23  Jim Meyering  <meyering@redhat.com>
42
43         xreadlink.h: remove unnecessary #include
44         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
45
46         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
47         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
48
49 2011-01-23  Bruno Haible  <bruno@clisp.org>
50
51         get-rusage-as: Fix bug.
52         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
53         original limit when aborting the first loop.
54
55 2011-01-23  Bruno Haible  <bruno@clisp.org>
56
57         wctype: Ensure valid C syntax.
58         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60
61 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62
63         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
64         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
65         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
66         as they are needed only for configure's test case.
67         This removes two unnecessary symbols from config.h.
68
69         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
70         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
71         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
72         AC_CHECK_HEADERS_ONCE on a header that we also invoke
73         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
74         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
75         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
76         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
77         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
78         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
79         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
80         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
81         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
82         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
83         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
84         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
85         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
86         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
87
88 2011-01-21  Eric Blake  <eblake@redhat.com>
89
90         maintainer-makefile: work with older git for submodule check
91         * top/maint.mk (public-submodule-commit): Rewrite to avoid
92         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
93         Reported by Matthias Bolte.
94
95         bootstrap: minor portability fixes
96         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
97         (usage): Omit leading capital and trailing . on help phrases, per
98         GNU Coding Standards.
99         (check_versions, top level): Prefix messages with script name.
100
101 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
102
103         bootstrap: support --no-git option
104         * build-aux/bootstrap: Add --no-git option, to be used when
105         --gnulib-srcdir points to the exact desired checkout.
106
107 2011-01-21  Eric Blake  <eblake@redhat.com>
108
109         strerror_r-posix: work with glibc 2.13
110         * lib/strerror_r.c (strerror_r): Fix return type.
111
112 2011-01-21  Pádraig Brady  <P@draigBrady.com>
113             Bruno Haible  <bruno@clisp.org>
114
115         uN_strstr: New unit tests.
116         * modules/unistr/u8-strstr-tests: New file.
117         * modules/unistr/u16-strstr-tests: New file.
118         * modules/unistr/u32-strstr-tests: New file.
119         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
120         * tests/unistr/test-u8-strstr.c: New file.
121         * tests/unistr/test-u16-strstr.c: New file.
122         * tests/unistr/test-u32-strstr.c: New file.
123
124 2011-01-21  Pádraig Brady  <P@draigBrady.com>
125             Bruno Haible  <bruno@clisp.org>
126
127         Make uN_strstr functions O(n) worst-case.
128         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
129         16-bit and 32-bit unit cases, use the unibyte algorithm from
130         lib/mbsstr.c.
131         * lib/unistr/u8-strstr.c: Include <string.h>.
132         (UNIT_IS_UINT8_T): New macro.
133         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
134         (U_STRLEN, U_STRNLEN): New macros.
135         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
136         (U_STRLEN, U_STRNLEN): New macros.
137         * modules/unistr/u8-strstr (Depends-on): Add strstr.
138         (configure.ac): Update required libunistring version.
139         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
140         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
141         malloca.
142         (configure.ac): Update required libunistring version.
143         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
144         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
145         malloca.
146         (configure.ac): Update required libunistring version.
147
148 2011-01-21  Pádraig Brady  <P@draigBrady.com>
149             Bruno Haible  <bruno@clisp.org>
150
151         Prepare for faster uN_strstr functions.
152         * lib/str-kmp.h: Support definable UNITs.
153         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
154         needle_len argument.
155         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
156         * lib/mbscasestr.c (mbscasestr): Likewise.
157
158 2011-01-21  Pádraig Brady <P@draigBrady.com>
159
160         malloca-tests: make faster by unsetting MALLOC_PERTURB_
161         * tests/test-malloca.c (main): Unset the environment variable
162         to greatly speed up the test.
163         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
164         * modules/malloca-tests: Depend on unsetenv.
165
166 2011-01-21  Pádraig Brady <P@draigBrady.com>
167
168         ignore-value: remove stdint dependency
169         * lib/ignore-value.h: Remove <stdint.h>
170         * modules/ignore-value: Remove stdint dependency.
171
172 2011-01-21  Jim Meyering  <meyering@redhat.com>
173
174         maint.mk: adjust variable name to be consistent with other gl_ vars
175         * top/maint.mk (gl_public_submodule_commit): Rename the variable
176         to be lower case.
177
178 2011-01-20  Jim Meyering  <meyering@redhat.com>
179
180         maint.mk: make "check" depend on public-submodule-commit by default
181         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
182
183 2011-01-20  Bruno Haible  <bruno@clisp.org>
184
185         mbfile, mbiter: Complete change from 2008-12-21.
186         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
187         * m4/mbiter.m4 (gl_MBITER): Likewise.
188
189 2011-01-20  Jim Meyering  <meyering@redhat.com>
190
191         init.sh: insert space between each function name and "()"
192         * tests/init.sh: Make it a little easier to see that a function's
193         name is "warn_", and not "warn" when looking at the first part of
194         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
195
196 2011-01-20  Jim Meyering  <meyering@redhat.com>
197
198         mountlist: clean up code formatting
199         * lib/mountlist.c (read_file_system_list): Split a long line,
200         correct bracing style, use NULL in place of "(struct statfs *)0",
201         don't parenthesize return value, add spaces around "=" and after
202         ";-in-for-stmt".
203
204 2011-01-14  Markus Duft <mduft@gentoo.org>
205
206         mountlist: add support for Interix
207         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
208         Apply statvfs to all entries of /dev/fs.
209         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
210         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
211
212 2011-01-20  Jim Meyering  <meyering@redhat.com>
213
214         maint.mk: improve the public-submodule-commit rule
215         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
216         to suppress printing of its commands... unless V=1.
217         Add git submodule's --quiet option to suppress printing of e.g.,
218         "Entering gnulib" output.
219         "cd" into $(srcdir) before running git submodule.
220
221 2011-01-20  Bruno Haible  <bruno@clisp.org>
222
223         include_next: Fix bug introduced on 2011-01-18.
224         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
225         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
226         ac_cv_header_... variable if the second argument is not 'check'.
227         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
228         gl_NEXT_HEADERS_INTERNAL.
229
230 2011-01-20  Bruno Haible  <bruno@clisp.org>
231
232         Allow the user to avoid the GNULIB_TEST_* macros.
233         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
234         Suggested by Paul Eggert.
235
236 2011-01-14  Jim Meyering  <meyering@redhat.com>
237
238         bootstrap: avoid failure when there is no .gitmodules file
239         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
240         has been assigned to, even when its value is the empty string.
241         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
242         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
243         Reported by John W. Eaton <jwe@gnu.org>.
244
245 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
246
247         assume <ctype.h>, ..., <time.h> exist
248         For years gnulib has been assuming the existence of the headers
249         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
250         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
251         them, since they don't appear to be needed.
252         * README (Portability guidelines): Document this.
253         * lib/flock.c: Assume <fcntl.h> exists.
254         * lib/regex_internal.h: Assume <locale.h> exists.
255         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
256         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
257         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
258         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
259         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
260         * m4/regex.m4 (gl_REGEX): Likewise.
261         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
262         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
263         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
264         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
265         * tests/test-argp.c: Likewise.
266         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
267
268         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
269         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
270         AA_APPLE_UNIVERSAL_BUILD.  See
271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
272         * NEWS: Document this.
273
274 2011-01-19  Eric Blake  <eblake@redhat.com>
275
276         c-stack: assume stack overflow if SA_SIGINFO unsupported
277         * lib/c-stack.c (SIGACTION_WORKS): Rename...
278         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
279         sigaction will work.
280         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
281         behavior match Linux.
282         * tests/test-c-stack.c (main): Prefer NULL for pointers.
283
284         stdbool-tests: accomodate Haiku
285         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
286
287         binary-io: fix O_TEXT on Haiku
288         * modules/binary-io (Depends-on): Add fcntl-h.
289         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
290         than blindly undefining O_TEXT.
291         Reported by Scott McCreary.
292
293 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
294
295         include_next: do not check for standard headers like stddef.h
296
297         I found this problem when modifying Emacs to use gnulib.
298         I noticed that it added HAVE_STDDEF_H to config.h, even though
299         gnulib always assumes <stddef.h> exists as per README and this
300         symbol is unnecessary.
301         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
302         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
303         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
304         faster for headers like stddef.h that are known to exist.
305         (gl_CHECK_NEXT_HEADERS): Use it.
306         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
307         rather than gl_CHECK_NEXT_HEADERS.
308         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
309         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
310
311 2011-01-18  Eric Blake  <eblake@redhat.com>
312
313         ansi-c++-opt: skip C++ dependency style if C++ is unused
314         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
315         tests when we know C++ compilation is not desired.
316         Reported by Scott McCreary.
317
318 2011-01-18  Bruno Haible  <bruno@clisp.org>
319
320         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
321         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
322         (main): Perform test also when getrlimit and setrlimit don't exist or
323         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
324         limiting the address space size using setrlimit, compare the address
325         space size before and after the the test.
326         * tests/test-dprintf-posix2.c: Likewise.
327         * tests/test-fprintf-posix3.sh: Update skip messages.
328         * tests/test-dprintf-posix2.sh: Likewise.
329         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
330         * modules/dprintf-posix-tests (Depends-on): Likewise.
331         Reported by Bruce Korb <bkorb@gnu.org> and
332         Gary V. Vaughan <gary@gnu.org>.
333
334 2011-01-18  Bruno Haible  <bruno@clisp.org>
335
336         get-rusage-as: Improvement for Cygwin.
337         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
338         areas that are merely reserved.
339
340 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
341
342         strftime: remove dependencies on multibyte modules
343
344         strftime depended on mbrlen, mbsinit, and wchar, but these modules
345         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
346         only if __osf__ is defined, and I suspect OSF doesn't need these
347         other modules.  If my guess is wrong, we'll need to come up with a
348         variant of strftime that doesn't need the multibyte modules.
349
350         I discovered this problem when attempting modify Emacs to use the
351         strftime module.  With the previous gnulib, this caused Emacs to
352         need 31 new files, ranging from lib/config.charset to
353         m4/wint_t.m4.  This was overkill and I expect would be offputting
354         to the Emacs maintainers.  After this change, only 6 new files are
355         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
356         stdbool.m4, and tm_gmtoff.m4.
357
358         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
359         Suggested by Bruno Haible in
360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
361         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
362         and do not check for wchar.h.
363         * modules/strftime (Files): Remove m4/mbstate_t.m4.
364         (Depends-on): Remove mbrlen, mbsinit, wchar.
365
366 2011-01-18  Bruno Haible  <bruno@clisp.org>
367
368         Tests for module 'get-rusage-as'.
369         * modules/get-rusage-as-tests: New file.
370         * tests/test-get-rusage-as.c: New file.
371
372         New module 'get-rusage-as'.
373         * modules/get-rusage-as: New file.
374         * lib/resource-ext.h: New file.
375         * lib/get-rusage-as.c: New file.
376
377 2011-01-17  Eric Blake  <eblake@redhat.com>
378
379         sigaction: relax license from LGPLv3+ to LGPLv2+
380         * modules/sigaction (License): Relax to LGPLv2+.
381
382 2011-01-14  Bruno Haible  <bruno@clisp.org>
383
384         filemode: Make function declarations usable in C++ mode.
385         * lib/filemode.h: Enclose function declarations in extern "C" block.
386         Reported by John W. Eaton <jwe@gnu.org>.
387
388 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
389
390         save-cwd: no longer include "xgetcwd.h"
391         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
392         This avoids a compilation failure in projects that use save-cwd
393         without also using the xgetcwd module.
394
395 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
396
397         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
398         This is so that a program like Emacs, which needs only dtoastr,
399         does not have to bother with distributing and compiling ftoastr
400         and ldtoastr.
401         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
402         * modules/dtoastr, modules/ldtoastr: New files.
403         * modules/ftoastr: Now works just for 'float'.
404         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
405         (Makefile.am): Remove ftoastr.h (not needed and no effect),
406         dtoastr.c, ldtoastr.c.
407
408 2011-01-11  Jim Meyering  <meyering@redhat.com>
409
410         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
411         There is no need to work around the lack of the fchdir function,
412         since gnulib can now provide a replacement when required.
413         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
414         * modules/save-cwd (Depends-on): Add fchdir.
415
416 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
417
418         openat, save-cwd: avoid xmalloc
419
420         This removes a direct (but undocumented) dependency of openat on
421         xalloc, along with an indirect dependency via save-cwd.  It also
422         removes a dependency of save-cwd on xgetcwd, and thereby
423         indirectly on xalloc.  This change causes the openat substitute
424         to fall back on save_cwd when memory is tight, and for save_cwd to
425         fail instead of dying when memory is tight, but that's good enough.
426
427         * lib/openat-proc.c: Include stdlib.h (for malloc), not
428         xalloc.h (for xmalloc).
429         (openat_proc_name): Use malloc, not xmalloc.
430         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
431         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
432
433         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
434         This avoids heap allocation for file names whose lengths are in
435         the range 512..1023, with the upper bound increasing to at most
436         4031 depending on the platform's PATH_MAX.  (We do not want
437         pathmax.h here as it might supply a non-constant PATH_MAX.)
438         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
439         Perhaps they should be moved to malloca.h?
440         (OPENAT_BUFFER_SIZE): Use them.
441
442 2011-01-10  Bruno Haible  <bruno@clisp.org>
443
444         doc: Update users.txt.
445         * users.txt: Add recutils.
446
447 2011-01-09  Karl Berry  <karl@gnu.org>
448
449         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
450
451         * doc/configmake.texi: New file.
452         * doc/gnulib.texi: Include it.
453         * modules/configmake: Move documentation from here.
454
455 2011-01-09  Bruno Haible  <bruno@clisp.org>
456
457         Update to Unicode 6.0.0.
458         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
459         (get_lbp): Update for Unicode 6.0.0.
460         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
461         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
462         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
463         U+11001, U+11038..U+11046. Remove U+06DE.
464         (uc_width): Fix bounds of planes.
465         * tests/uniwidth/test-uc_width2.sh: Same updates as in
466         lib/uniwidth/width.c.
467         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
468         trailing whitespace removed.
469         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
470         without comments, but with the original copyright notice.
471         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
472         * lib/unicase/ignorable.h: Likewise.
473         * lib/unicase/tocasefold.h: Likewise.
474         * lib/unicase/tolower.h: Likewise.
475         * lib/unicase/totitle.h: Likewise.
476         * lib/unicase/toupper.h: Likewise.
477         * lib/unictype/bidi_of.h: Likewise.
478         * lib/unictype/blocks.h: Likewise.
479         * lib/unictype/categ_C.h: Likewise.
480         * lib/unictype/categ_Cn.h: Likewise.
481         * lib/unictype/categ_L.h: Likewise.
482         * lib/unictype/categ_Ll.h: Likewise.
483         * lib/unictype/categ_Lm.h: Likewise.
484         * lib/unictype/categ_Lo.h: Likewise.
485         * lib/unictype/categ_Lu.h: Likewise.
486         * lib/unictype/categ_M.h: Likewise.
487         * lib/unictype/categ_Mc.h: Likewise.
488         * lib/unictype/categ_Me.h: Likewise.
489         * lib/unictype/categ_Mn.h: Likewise.
490         * lib/unictype/categ_N.h: Likewise.
491         * lib/unictype/categ_Nd.h: Likewise.
492         * lib/unictype/categ_No.h: Likewise.
493         * lib/unictype/categ_P.h: Likewise.
494         * lib/unictype/categ_Po.h: Likewise.
495         * lib/unictype/categ_S.h: Likewise.
496         * lib/unictype/categ_Sc.h: Likewise.
497         * lib/unictype/categ_Sk.h: Likewise.
498         * lib/unictype/categ_Sm.h: Likewise.
499         * lib/unictype/categ_So.h: Likewise.
500         * lib/unictype/categ_of.h: Likewise.
501         * lib/unictype/combining.h: Likewise.
502         * lib/unictype/ctype_alnum.h: Likewise.
503         * lib/unictype/ctype_alpha.h: Likewise.
504         * lib/unictype/ctype_graph.h: Likewise.
505         * lib/unictype/ctype_lower.h: Likewise.
506         * lib/unictype/ctype_print.h: Likewise.
507         * lib/unictype/ctype_punct.h: Likewise.
508         * lib/unictype/ctype_upper.h: Likewise.
509         * lib/unictype/decdigit.h: Likewise.
510         * lib/unictype/digit.h: Likewise.
511         * lib/unictype/numeric.h: Likewise.
512         * lib/unictype/pr_alphabetic.h: Likewise.
513         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
514         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
515         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
516         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
517         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
518         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
519         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
520         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
521         * lib/unictype/pr_case_ignorable.h: Likewise.
522         * lib/unictype/pr_cased.h: Likewise.
523         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
524         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
525         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
526         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
527         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
528         * lib/unictype/pr_combining.h: Likewise.
529         * lib/unictype/pr_composite.h: Likewise.
530         * lib/unictype/pr_currency_symbol.h: Likewise.
531         * lib/unictype/pr_decimal_digit.h: Likewise.
532         * lib/unictype/pr_deprecated.h: Likewise.
533         * lib/unictype/pr_format_control.h: Likewise.
534         * lib/unictype/pr_grapheme_base.h: Likewise.
535         * lib/unictype/pr_grapheme_extend.h: Likewise.
536         * lib/unictype/pr_grapheme_link.h: Likewise.
537         * lib/unictype/pr_id_continue.h: Likewise.
538         * lib/unictype/pr_id_start.h: Likewise.
539         * lib/unictype/pr_ideographic.h: Likewise.
540         * lib/unictype/pr_lowercase.h: Likewise.
541         * lib/unictype/pr_math.h: Likewise.
542         * lib/unictype/pr_numeric.h: Likewise.
543         * lib/unictype/pr_other_alphabetic.h: Likewise.
544         * lib/unictype/pr_other_id_continue.h: Likewise.
545         * lib/unictype/pr_other_math.h: Likewise.
546         * lib/unictype/pr_punctuation.h: Likewise.
547         * lib/unictype/pr_sentence_terminal.h: Likewise.
548         * lib/unictype/pr_terminal_punctuation.h: Likewise.
549         * lib/unictype/pr_unassigned_code_value.h: Likewise.
550         * lib/unictype/pr_unified_ideograph.h: Likewise.
551         * lib/unictype/pr_uppercase.h: Likewise.
552         * lib/unictype/pr_xid_continue.h: Likewise.
553         * lib/unictype/pr_xid_start.h: Likewise.
554         * lib/unictype/scripts.h: Likewise.
555         * lib/unictype/scripts_byname.gperf: Likewise.
556         * lib/unictype/sy_java_ident.h: Likewise.
557         * lib/unigbrk/gbrkprop.h: Likewise.
558         * lib/unilbrk/lbrkprop1.h: Likewise.
559         * lib/unilbrk/lbrkprop2.h: Likewise.
560         * lib/uninorm/decomposition-table2.h: Likewise.
561         * lib/uniwbrk/wbrkprop.h: Likewise.
562         * tests/unicase/test-cased.c: Likewise.
563         * tests/unicase/test-ignorable.c: Likewise.
564         * tests/unicase/test-uc_tolower.c: Likewise.
565         * tests/unicase/test-uc_totitle.c: Likewise.
566         * tests/unicase/test-uc_toupper.c: Likewise.
567         * tests/unictype/test-categ_C.c: Likewise.
568         * tests/unictype/test-categ_Cn.c: Likewise.
569         * tests/unictype/test-categ_L.c: Likewise.
570         * tests/unictype/test-categ_Ll.c: Likewise.
571         * tests/unictype/test-categ_Lm.c: Likewise.
572         * tests/unictype/test-categ_Lo.c: Likewise.
573         * tests/unictype/test-categ_Lu.c: Likewise.
574         * tests/unictype/test-categ_M.c: Likewise.
575         * tests/unictype/test-categ_Mc.c: Likewise.
576         * tests/unictype/test-categ_Me.c: Likewise.
577         * tests/unictype/test-categ_Mn.c: Likewise.
578         * tests/unictype/test-categ_N.c: Likewise.
579         * tests/unictype/test-categ_Nd.c: Likewise.
580         * tests/unictype/test-categ_No.c: Likewise.
581         * tests/unictype/test-categ_P.c: Likewise.
582         * tests/unictype/test-categ_Po.c: Likewise.
583         * tests/unictype/test-categ_S.c: Likewise.
584         * tests/unictype/test-categ_Sc.c: Likewise.
585         * tests/unictype/test-categ_Sk.c: Likewise.
586         * tests/unictype/test-categ_Sm.c: Likewise.
587         * tests/unictype/test-categ_So.c: Likewise.
588         * tests/unictype/test-ctype_alnum.c: Likewise.
589         * tests/unictype/test-ctype_alpha.c: Likewise.
590         * tests/unictype/test-ctype_graph.c: Likewise.
591         * tests/unictype/test-ctype_lower.c: Likewise.
592         * tests/unictype/test-ctype_print.c: Likewise.
593         * tests/unictype/test-ctype_punct.c: Likewise.
594         * tests/unictype/test-ctype_upper.c: Likewise.
595         * tests/unictype/test-decdigit.h: Likewise.
596         * tests/unictype/test-digit.h: Likewise.
597         * tests/unictype/test-numeric.h: Likewise.
598         * tests/unictype/test-pr_alphabetic.c: Likewise.
599         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
600         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
601         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
602         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
603         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
604         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
605         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
606         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
607         * tests/unictype/test-pr_case_ignorable.c: Likewise.
608         * tests/unictype/test-pr_cased.c: Likewise.
609         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
610         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
611         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
612         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
613         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
614         * tests/unictype/test-pr_combining.c: Likewise.
615         * tests/unictype/test-pr_composite.c: Likewise.
616         * tests/unictype/test-pr_currency_symbol.c: Likewise.
617         * tests/unictype/test-pr_decimal_digit.c: Likewise.
618         * tests/unictype/test-pr_deprecated.c: Likewise.
619         * tests/unictype/test-pr_format_control.c: Likewise.
620         * tests/unictype/test-pr_grapheme_base.c: Likewise.
621         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
622         * tests/unictype/test-pr_grapheme_link.c: Likewise.
623         * tests/unictype/test-pr_id_continue.c: Likewise.
624         * tests/unictype/test-pr_id_start.c: Likewise.
625         * tests/unictype/test-pr_ideographic.c: Likewise.
626         * tests/unictype/test-pr_lowercase.c: Likewise.
627         * tests/unictype/test-pr_math.c: Likewise.
628         * tests/unictype/test-pr_numeric.c: Likewise.
629         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
630         * tests/unictype/test-pr_other_id_continue.c: Likewise.
631         * tests/unictype/test-pr_other_math.c: Likewise.
632         * tests/unictype/test-pr_punctuation.c: Likewise.
633         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
634         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
635         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
636         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
637         * tests/unictype/test-pr_uppercase.c: Likewise.
638         * tests/unictype/test-pr_xid_continue.c: Likewise.
639         * tests/unictype/test-pr_xid_start.c: Likewise.
640         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
641         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
642         changes.
643         * lib/unictype/categ_Cc.h: Likewise.
644         * lib/unictype/categ_Cf.h: Likewise.
645         * lib/unictype/categ_Co.h: Likewise.
646         * lib/unictype/categ_Cs.h: Likewise.
647         * lib/unictype/categ_Lt.h: Likewise.
648         * lib/unictype/categ_Nl.h: Likewise.
649         * lib/unictype/categ_Pc.h: Likewise.
650         * lib/unictype/categ_Pd.h: Likewise.
651         * lib/unictype/categ_Pe.h: Likewise.
652         * lib/unictype/categ_Pf.h: Likewise.
653         * lib/unictype/categ_Pi.h: Likewise.
654         * lib/unictype/categ_Ps.h: Likewise.
655         * lib/unictype/categ_Z.h: Likewise.
656         * lib/unictype/categ_Zl.h: Likewise.
657         * lib/unictype/categ_Zp.h: Likewise.
658         * lib/unictype/categ_Zs.h: Likewise.
659         * lib/unictype/ctype_blank.h: Likewise.
660         * lib/unictype/ctype_cntrl.h: Likewise.
661         * lib/unictype/ctype_digit.h: Likewise.
662         * lib/unictype/ctype_space.h: Likewise.
663         * lib/unictype/ctype_xdigit.h: Likewise.
664         * lib/unictype/mirror.h: Likewise.
665         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
666         * lib/unictype/pr_bidi_block_separator.h: Likewise.
667         * lib/unictype/pr_bidi_common_separator.h: Likewise.
668         * lib/unictype/pr_bidi_control.h: Likewise.
669         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
670         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
671         * lib/unictype/pr_bidi_european_digit.h: Likewise.
672         * lib/unictype/pr_bidi_pdf.h: Likewise.
673         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
674         * lib/unictype/pr_bidi_whitespace.h: Likewise.
675         * lib/unictype/pr_dash.h: Likewise.
676         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
677         * lib/unictype/pr_diacritic.h: Likewise.
678         * lib/unictype/pr_extender.h: Likewise.
679         * lib/unictype/pr_hex_digit.h: Likewise.
680         * lib/unictype/pr_hyphen.h: Likewise.
681         * lib/unictype/pr_ids_binary_operator.h: Likewise.
682         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
683         * lib/unictype/pr_ignorable_control.h: Likewise.
684         * lib/unictype/pr_iso_control.h: Likewise.
685         * lib/unictype/pr_join_control.h: Likewise.
686         * lib/unictype/pr_left_of_pair.h: Likewise.
687         * lib/unictype/pr_line_separator.h: Likewise.
688         * lib/unictype/pr_logical_order_exception.h: Likewise.
689         * lib/unictype/pr_non_break.h: Likewise.
690         * lib/unictype/pr_not_a_character.h: Likewise.
691         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
692         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
693         * lib/unictype/pr_other_id_start.h: Likewise.
694         * lib/unictype/pr_other_lowercase.h: Likewise.
695         * lib/unictype/pr_other_uppercase.h: Likewise.
696         * lib/unictype/pr_paired_punctuation.h: Likewise.
697         * lib/unictype/pr_paragraph_separator.h: Likewise.
698         * lib/unictype/pr_pattern_syntax.h: Likewise.
699         * lib/unictype/pr_pattern_white_space.h: Likewise.
700         * lib/unictype/pr_private_use.h: Likewise.
701         * lib/unictype/pr_quotation_mark.h: Likewise.
702         * lib/unictype/pr_radical.h: Likewise.
703         * lib/unictype/pr_soft_dotted.h: Likewise.
704         * lib/unictype/pr_space.h: Likewise.
705         * lib/unictype/pr_titlecase.h: Likewise.
706         * lib/unictype/pr_variation_selector.h: Likewise.
707         * lib/unictype/pr_white_space.h: Likewise.
708         * lib/unictype/pr_zero_width.h: Likewise.
709         * lib/unictype/sy_c_ident.h: Likewise.
710         * lib/unictype/sy_c_whitespace.h: Likewise.
711         * lib/unictype/sy_java_whitespace.h: Likewise.
712         * lib/uninorm/composition-table.gperf: Likewise.
713         * lib/uninorm/decomposition-table1.h: Likewise.
714         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
715         LB8.
716         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
717         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
718         * modules/unictype/*: Bump version number of expected libunistring
719         version.
720
721 2011-01-09  Bruno Haible  <bruno@clisp.org>
722
723         Update to Unicode 5.2.0.
724         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
725         trailing whitespace removed.
726
727 2011-01-09  Bruno Haible  <bruno@clisp.org>
728
729         New Unicode character properties, from Unicode 5.2.0.
730         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
731         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
732         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
733         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
734         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
735         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
736         uc_is_property_cased, uc_is_property_case_ignorable,
737         uc_is_property_changes_when_lowercased,
738         uc_is_property_changes_when_uppercased,
739         uc_is_property_changes_when_titlecased,
740         uc_is_property_changes_when_casefolded,
741         uc_is_property_changes_when_casemapped): New declarations.
742         * lib/unictype/pr_byname.gperf: Add the new properties.
743         * modules/unictype/property-byname (Depends-on): Depend on the new
744         properties modules.
745         * modules/unictype/property-all (Depends-on): Likewise.
746         * MODULES.html.sh (Unicode string functions): Add
747         unictype/property-case-ignorable, unictype/property-cased,
748         unictype/property-changes-when-casefolded,
749         unictype/property-changes-when-casemapped,
750         unictype/property-changes-when-lowercased,
751         unictype/property-changes-when-titlecased,
752         unictype/property-changes-when-uppercased.
753
754         New module 'unictype/property-changes-when-casemapped'.
755         * modules/unictype/property-changes-when-casemapped: New file.
756         * lib/unictype/pr_changes_when_casemapped.c: New file.
757         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
758         generated by gen-uni-tables.
759         * modules/unictype/property-changes-when-casemapped-tests: New file.
760         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
761         automatically generated by gen-uni-tables.
762
763         New module 'unictype/property-changes-when-casefolded'.
764         * modules/unictype/property-changes-when-casefolded: New file.
765         * lib/unictype/pr_changes_when_casefolded.c: New file.
766         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
767         generated by gen-uni-tables.
768         * modules/unictype/property-changes-when-casefolded-tests: New file.
769         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
770         automatically generated by gen-uni-tables.
771
772         New module 'unictype/property-changes-when-titlecased'.
773         * modules/unictype/property-changes-when-titlecased: New file.
774         * lib/unictype/pr_changes_when_titlecased.c: New file.
775         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
776         generated by gen-uni-tables.
777         * modules/unictype/property-changes-when-titlecased-tests: New file.
778         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
779         automatically generated by gen-uni-tables.
780
781         New module 'unictype/property-changes-when-uppercased'.
782         * modules/unictype/property-changes-when-uppercased: New file.
783         * lib/unictype/pr_changes_when_uppercased.c: New file.
784         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
785         generated by gen-uni-tables.
786         * modules/unictype/property-changes-when-uppercased-tests: New file.
787         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
788         automatically generated by gen-uni-tables.
789
790         New module 'unictype/property-changes-when-lowercased'.
791         * modules/unictype/property-changes-when-lowercased: New file.
792         * lib/unictype/pr_changes_when_lowercased.c: New file.
793         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
794         generated by gen-uni-tables.
795         * modules/unictype/property-changes-when-lowercased-tests: New file.
796         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
797         automatically generated by gen-uni-tables.
798
799         New module 'unictype/property-case-ignorable'.
800         * modules/unictype/property-case-ignorable: New file.
801         * lib/unictype/pr_case_ignorable.c: New file.
802         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
803         by gen-uni-tables.
804         * modules/unictype/property-case-ignorable-tests: New file.
805         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
806         generated by gen-uni-tables.
807
808         New module 'unictype/property-cased'.
809         * modules/unictype/property-cased: New file.
810         * lib/unictype/pr_cased.c: New file.
811         * lib/unictype/pr_cased.h: New file, automatically generated by
812         gen-uni-tables.
813         * modules/unictype/property-cased-tests: New file.
814         * tests/unictype/test-pr_cased.c: New file, automatically generated by
815         gen-uni-tables.
816
817 2011-01-09  Bruno Haible  <bruno@clisp.org>
818
819         Update to Unicode 5.2.0.
820         * lib/gen-uni-tables.c (output_predicate, output_category,
821         output_combclass, output_bidi_category, output_decimal_digit_test,
822         output_decimal_digit, output_digit_test, output_digit,
823         output_numeric_test, output_numeric, output_mirror, output_scripts,
824         output_scripts_byname, output_blocks, output_ident_category): Fix
825         comment header.
826         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
827         get_wbp.
828         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
829         items.
830         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
831         Changes_When_Lowercased, Changes_When_Uppercased,
832         Changes_When_Titlecased, Changes_When_Casefolded,
833         Changes_When_Casemapped.
834         (is_property_alphabetic, is_property_default_ignorable_code_point):
835         Update for Unicode 5.2.0.
836         (is_property_cased, is_property_case_ignorable,
837         is_property_changes_when_lowercased,
838         is_property_changes_when_uppercased,
839         is_property_changes_when_titlecased,
840         is_property_changes_when_casefolded,
841         is_property_changes_when_casemapped): New functions.
842         (output_properties): Output also the properties cased, case_ignorable,
843         changes_when_lowercased, changes_when_uppercased,
844         changes_when_titlecased, changes_when_casefolded,
845         changes_when_casemapped.
846         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
847         Unicode TR#11 revision 17 -> 19.
848         (LBP_CP): New enumeration value.
849         (LBP_*): Adjust values accordingly.
850         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
851         TR#14 revision 22 -> 24.
852         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
853         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
854         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
855         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
856         is_WBP_MIDLETTER.
857         (output_composition_tables): Allow for 24 bits instead of 16 bits in
858         the code1 and code2 of each composition rule.
859         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
860         * lib/unicase/ignorable.h: Likewise.
861         * lib/unicase/tocasefold.h: Likewise.
862         * lib/unicase/tolower.h: Likewise.
863         * lib/unicase/totitle.h: Likewise.
864         * lib/unicase/toupper.h: Likewise.
865         * lib/unictype/bidi_of.h: Likewise.
866         * lib/unictype/blocks.h: Likewise.
867         * lib/unictype/categ_C.h: Likewise.
868         * lib/unictype/categ_Cf.h: Likewise.
869         * lib/unictype/categ_Cn.h: Likewise.
870         * lib/unictype/categ_L.h: Likewise.
871         * lib/unictype/categ_Ll.h: Likewise.
872         * lib/unictype/categ_Lm.h: Likewise.
873         * lib/unictype/categ_Lo.h: Likewise.
874         * lib/unictype/categ_Lu.h: Likewise.
875         * lib/unictype/categ_M.h: Likewise.
876         * lib/unictype/categ_Mc.h: Likewise.
877         * lib/unictype/categ_Mn.h: Likewise.
878         * lib/unictype/categ_N.h: Likewise.
879         * lib/unictype/categ_Nd.h: Likewise.
880         * lib/unictype/categ_Nl.h: Likewise.
881         * lib/unictype/categ_No.h: Likewise.
882         * lib/unictype/categ_P.h: Likewise.
883         * lib/unictype/categ_Pd.h: Likewise.
884         * lib/unictype/categ_Po.h: Likewise.
885         * lib/unictype/categ_S.h: Likewise.
886         * lib/unictype/categ_Sc.h: Likewise.
887         * lib/unictype/categ_So.h: Likewise.
888         * lib/unictype/categ_of.h: Likewise.
889         * lib/unictype/combining.h: Likewise.
890         * lib/unictype/ctype_alnum.h: Likewise.
891         * lib/unictype/ctype_alpha.h: Likewise.
892         * lib/unictype/ctype_graph.h: Likewise.
893         * lib/unictype/ctype_lower.h: Likewise.
894         * lib/unictype/ctype_print.h: Likewise.
895         * lib/unictype/ctype_punct.h: Likewise.
896         * lib/unictype/ctype_upper.h: Likewise.
897         * lib/unictype/decdigit.h: Likewise.
898         * lib/unictype/digit.h: Likewise.
899         * lib/unictype/numeric.h: Likewise.
900         * lib/unictype/pr_alphabetic.h: Likewise.
901         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
902         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
903         * lib/unictype/pr_bidi_european_digit.h: Likewise.
904         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
905         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
906         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
907         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
908         * lib/unictype/pr_combining.h: Likewise.
909         * lib/unictype/pr_composite.h: Likewise.
910         * lib/unictype/pr_currency_symbol.h: Likewise.
911         * lib/unictype/pr_dash.h: Likewise.
912         * lib/unictype/pr_decimal_digit.h: Likewise.
913         * lib/unictype/pr_deprecated.h: Likewise.
914         * lib/unictype/pr_diacritic.h: Likewise.
915         * lib/unictype/pr_extender.h: Likewise.
916         * lib/unictype/pr_grapheme_base.h: Likewise.
917         * lib/unictype/pr_grapheme_extend.h: Likewise.
918         * lib/unictype/pr_grapheme_link.h: Likewise.
919         * lib/unictype/pr_id_continue.h: Likewise.
920         * lib/unictype/pr_id_start.h: Likewise.
921         * lib/unictype/pr_ideographic.h: Likewise.
922         * lib/unictype/pr_ignorable_control.h: Likewise.
923         * lib/unictype/pr_logical_order_exception.h: Likewise.
924         * lib/unictype/pr_lowercase.h: Likewise.
925         * lib/unictype/pr_numeric.h: Likewise.
926         * lib/unictype/pr_other_alphabetic.h: Likewise.
927         * lib/unictype/pr_punctuation.h: Likewise.
928         * lib/unictype/pr_sentence_terminal.h: Likewise.
929         * lib/unictype/pr_terminal_punctuation.h: Likewise.
930         * lib/unictype/pr_unassigned_code_value.h: Likewise.
931         * lib/unictype/pr_unified_ideograph.h: Likewise.
932         * lib/unictype/pr_uppercase.h: Likewise.
933         * lib/unictype/pr_xid_continue.h: Likewise.
934         * lib/unictype/pr_xid_start.h: Likewise.
935         * lib/unictype/pr_zero_width.h: Likewise.
936         * lib/unictype/scripts.h: Likewise.
937         * lib/unictype/scripts_byname.gperf: Likewise.
938         * lib/unictype/sy_java_ident.h: Likewise.
939         * lib/unigbrk/gbrkprop.h: Likewise.
940         * lib/unilbrk/lbrkprop1.h: Likewise.
941         * lib/unilbrk/lbrkprop2.h: Likewise.
942         * lib/unilbrk/lbrktables.h: Likewise.
943         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
944         LBP_CP. Implement rule LB30.
945         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
946         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
947         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
948         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
949         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
950         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
951         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
952         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
953         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
954         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
955         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
956         bits instead of 16 bits in the code1 and code2 of each composition
957         rule.
958         (uc_composition): Update for Unicode 5.2.0.
959         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
960         * lib/uninorm/decomposition-table2.h: Likewise.
961         * lib/uniwbrk/wbrkprop.h: Likewise.
962         * tests/unicase/test-cased.c: Likewise.
963         * tests/unicase/test-ignorable.c: Likewise.
964         * tests/unicase/test-uc_tolower.c: Likewise.
965         * tests/unicase/test-uc_totitle.c: Likewise.
966         * tests/unicase/test-uc_toupper.c: Likewise.
967         * tests/unictype/test-categ_C.c: Likewise.
968         * tests/unictype/test-categ_Cf.c: Likewise.
969         * tests/unictype/test-categ_Cn.c: Likewise.
970         * tests/unictype/test-categ_L.c: Likewise.
971         * tests/unictype/test-categ_Ll.c: Likewise.
972         * tests/unictype/test-categ_Lm.c: Likewise.
973         * tests/unictype/test-categ_Lo.c: Likewise.
974         * tests/unictype/test-categ_Lu.c: Likewise.
975         * tests/unictype/test-categ_M.c: Likewise.
976         * tests/unictype/test-categ_Mc.c: Likewise.
977         * tests/unictype/test-categ_Mn.c: Likewise.
978         * tests/unictype/test-categ_N.c: Likewise.
979         * tests/unictype/test-categ_Nd.c: Likewise.
980         * tests/unictype/test-categ_Nl.c: Likewise.
981         * tests/unictype/test-categ_No.c: Likewise.
982         * tests/unictype/test-categ_P.c: Likewise.
983         * tests/unictype/test-categ_Pd.c: Likewise.
984         * tests/unictype/test-categ_Po.c: Likewise.
985         * tests/unictype/test-categ_S.c: Likewise.
986         * tests/unictype/test-categ_Sc.c: Likewise.
987         * tests/unictype/test-categ_So.c: Likewise.
988         * tests/unictype/test-ctype_alnum.c: Likewise.
989         * tests/unictype/test-ctype_alpha.c: Likewise.
990         * tests/unictype/test-ctype_graph.c: Likewise.
991         * tests/unictype/test-ctype_lower.c: Likewise.
992         * tests/unictype/test-ctype_print.c: Likewise.
993         * tests/unictype/test-ctype_punct.c: Likewise.
994         * tests/unictype/test-ctype_upper.c: Likewise.
995         * tests/unictype/test-decdigit.h: Likewise.
996         * tests/unictype/test-digit.h: Likewise.
997         * tests/unictype/test-numeric.h: Likewise.
998         * tests/unictype/test-pr_alphabetic.c: Likewise.
999         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1000         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1001         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
1002         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1003         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1004         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1005         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1006         * tests/unictype/test-pr_combining.c: Likewise.
1007         * tests/unictype/test-pr_composite.c: Likewise.
1008         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1009         * tests/unictype/test-pr_dash.c: Likewise.
1010         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1011         * tests/unictype/test-pr_deprecated.c: Likewise.
1012         * tests/unictype/test-pr_diacritic.c: Likewise.
1013         * tests/unictype/test-pr_extender.c: Likewise.
1014         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1015         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1016         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1017         * tests/unictype/test-pr_id_continue.c: Likewise.
1018         * tests/unictype/test-pr_id_start.c: Likewise.
1019         * tests/unictype/test-pr_ideographic.c: Likewise.
1020         * tests/unictype/test-pr_ignorable_control.c: Likewise.
1021         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
1022         * tests/unictype/test-pr_lowercase.c: Likewise.
1023         * tests/unictype/test-pr_numeric.c: Likewise.
1024         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1025         * tests/unictype/test-pr_punctuation.c: Likewise.
1026         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1027         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1028         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1029         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1030         * tests/unictype/test-pr_uppercase.c: Likewise.
1031         * tests/unictype/test-pr_xid_continue.c: Likewise.
1032         * tests/unictype/test-pr_xid_start.c: Likewise.
1033         * tests/unictype/test-pr_zero_width.c: Likewise.
1034         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1035         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
1036         changed behaviour: line breaking is now disallowed between a letter
1037         or '=' and '('.
1038         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1039         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1040         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
1041         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
1042         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1043         lib/uniwidth/width.c.
1044         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
1045         without comments, but with the original copyright notice.
1046         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1047         changes.
1048         * lib/unictype/categ_Cc.h: Likewise.
1049         * lib/unictype/categ_Co.h: Likewise.
1050         * lib/unictype/categ_Cs.h: Likewise.
1051         * lib/unictype/categ_Lt.h: Likewise.
1052         * lib/unictype/categ_Me.h: Likewise.
1053         * lib/unictype/categ_Pc.h: Likewise.
1054         * lib/unictype/categ_Pe.h: Likewise.
1055         * lib/unictype/categ_Pf.h: Likewise.
1056         * lib/unictype/categ_Pi.h: Likewise.
1057         * lib/unictype/categ_Ps.h: Likewise.
1058         * lib/unictype/categ_Sk.h: Likewise.
1059         * lib/unictype/categ_Sm.h: Likewise.
1060         * lib/unictype/categ_Z.h: Likewise.
1061         * lib/unictype/categ_Zl.h: Likewise.
1062         * lib/unictype/categ_Zp.h: Likewise.
1063         * lib/unictype/categ_Zs.h: Likewise.
1064         * lib/unictype/ctype_blank.h: Likewise.
1065         * lib/unictype/ctype_cntrl.h: Likewise.
1066         * lib/unictype/ctype_digit.h: Likewise.
1067         * lib/unictype/ctype_space.h: Likewise.
1068         * lib/unictype/ctype_xdigit.h: Likewise.
1069         * lib/unictype/mirror.h: Likewise.
1070         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1071         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1072         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1073         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1074         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1075         * lib/unictype/pr_bidi_control.h: Likewise.
1076         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1077         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1078         * lib/unictype/pr_bidi_pdf.h: Likewise.
1079         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1080         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1081         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1082         * lib/unictype/pr_format_control.h: Likewise.
1083         * lib/unictype/pr_hex_digit.h: Likewise.
1084         * lib/unictype/pr_hyphen.h: Likewise.
1085         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1086         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1087         * lib/unictype/pr_iso_control.h: Likewise.
1088         * lib/unictype/pr_join_control.h: Likewise.
1089         * lib/unictype/pr_left_of_pair.h: Likewise.
1090         * lib/unictype/pr_line_separator.h: Likewise.
1091         * lib/unictype/pr_math.h: Likewise.
1092         * lib/unictype/pr_non_break.h: Likewise.
1093         * lib/unictype/pr_not_a_character.h: Likewise.
1094         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1095         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1096         * lib/unictype/pr_other_id_continue.h: Likewise.
1097         * lib/unictype/pr_other_id_start.h: Likewise.
1098         * lib/unictype/pr_other_lowercase.h: Likewise.
1099         * lib/unictype/pr_other_math.h: Likewise.
1100         * lib/unictype/pr_other_uppercase.h: Likewise.
1101         * lib/unictype/pr_paired_punctuation.h: Likewise.
1102         * lib/unictype/pr_paragraph_separator.h: Likewise.
1103         * lib/unictype/pr_pattern_syntax.h: Likewise.
1104         * lib/unictype/pr_pattern_white_space.h: Likewise.
1105         * lib/unictype/pr_private_use.h: Likewise.
1106         * lib/unictype/pr_quotation_mark.h: Likewise.
1107         * lib/unictype/pr_radical.h: Likewise.
1108         * lib/unictype/pr_soft_dotted.h: Likewise.
1109         * lib/unictype/pr_space.h: Likewise.
1110         * lib/unictype/pr_titlecase.h: Likewise.
1111         * lib/unictype/pr_variation_selector.h: Likewise.
1112         * lib/unictype/pr_white_space.h: Likewise.
1113         * lib/unictype/sy_c_ident.h: Likewise.
1114         * lib/unictype/sy_c_whitespace.h: Likewise.
1115         * lib/unictype/sy_java_whitespace.h: Likewise.
1116         * modules/uni*/*: Bump version number of expected libunistring version.
1117         Reported by Simon Josefsson.
1118
1119 2011-01-09  Karl Heuer  <kwzh@gnu.org>
1120
1121         useless-if-before-free: fix typo in --help and make the internal,
1122         automatic version date update process work once again.
1123         --help output contained a NUL character instead of the
1124         backslash-zero that was intended.  Also, the "must lie within
1125         the first 8 lines" line is on line 9, and hence not getting
1126         automatically updated.
1127         * build-aux/useless-if-before-free: Fix the former by adding a
1128         backslash, and the latter by condensing the three lines of what-it-does
1129         to a single line, leaving one line of slack for the future.
1130
1131 2011-01-09  Bruno Haible  <bruno@clisp.org>
1132
1133         uniwidth/width: Fix width of U+1D173..U+1D17A.
1134         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
1135         symbolic_width, output_width_property_test): New functions.
1136         (main): Invoke output_nonspacing_property, output_width_property_test.
1137         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
1138         U+1D173..U+1D17A.
1139         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
1140         1.
1141         * modules/uniwidth/*: Bump version number of expected libunistring
1142         version.
1143         * modules/unilbrk/*: Likewise.
1144
1145 2011-01-08  Bruno Haible  <bruno@clisp.org>
1146
1147         uninorm tests: Preserve copyright of Unicode data file.
1148         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
1149         Mention modifications.
1150
1151 2011-01-08  Bruno Haible  <bruno@clisp.org>
1152
1153         gen-uni-tables: Prepare for Unicode 5.2.0.
1154         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
1155         (debug_output_lbp, output_lbp): Update.
1156
1157 2011-01-08  Bruno Haible  <bruno@clisp.org>
1158
1159         unilbrk: Clarify gen-uni-tables.c code.
1160         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
1161         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
1162         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
1163
1164 2011-01-07  Bruno Haible  <bruno@clisp.org>
1165
1166         strtod: Restore errno when successfully parsing Infinity or NaN.
1167         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
1168         restore the original errno.
1169
1170 2011-01-07  Bruno Haible  <bruno@clisp.org>
1171
1172         remove test: Avoid failure on HP-UX 11.
1173         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
1174
1175 2011-01-07  Bruno Haible  <bruno@clisp.org>
1176
1177         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
1178         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
1179         error code.
1180
1181 2011-01-07  Pádraig Brady <P@draigBrady.com>
1182
1183         ignore-value: fixup comments, and add Eric Blake
1184         as an author since he rewrote the macros.
1185         * lib/ignore-value.h (ignore_value):  State that
1186         we now support aggregates.  Also specify exactly
1187         when the GCC warn_unused_result feature was added.
1188
1189 2011-01-06  Eric Blake  <eblake@redhat.com>
1190
1191         ignore-value: support aggregate types
1192         * lib/ignore-value.h (ignore_value): Provide separate gcc
1193         definition.
1194         * modules/ignore-value-tests: New test module.
1195         * tests/test-ignore-value.c: New test.
1196
1197         maint.mk: improve sc_prohibit_strcmp regex
1198         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
1199         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
1200         definition of STRNEQ.
1201
1202         signal: work around Haiku issue with SIGBUS
1203         * lib/siglist.h: Add comment.
1204         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
1205         strsignal's favoring of SIGSEGV.
1206         * tests/test-signal.c (main): Avoid test failure.
1207         * doc/posix-headers/signal.texi (signal.h): Document the issue.
1208         Reported by Scott McCreary.
1209
1210         maint.mk: add pre-release check to ensure submodule commits are public
1211         * top/maint.mk (public-submodule-commit): New rule.
1212         (submodule-checks): New variable.
1213         (alpha beta stable): Depend on the variable.
1214
1215 2011-01-05  Pádraig Brady <P@draigBrady.com>
1216         and Jim Meyering  <meyering@redhat.com>
1217
1218         ignore-value: make ignore_value more generic; deprecate ignore_ptr
1219         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
1220         (ATTRIBUTE_DEPRECATED): Define.
1221         (_ignore_case): New function.
1222         (ignore_value): New macro, to replace the old function.
1223         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
1224         * modules/ignore-value (Depends-on): Add stdint.
1225
1226 2011-01-04  Eric Blake  <eblake@redhat.com>
1227
1228         doc: regenerate INSTALL
1229         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
1230         @firstparagraphindent support, now that autoconf dropped it.
1231         (INSTALL_PRELUDE): Reinstate old macro.
1232         * doc/install.texi: Resync from autoconf.
1233         * doc/INSTALL: Reflect recent autoconf update.
1234         * doc/INSTALL.ISO: Likewise.
1235         * doc/INSTALL.UTF-8: Likewise.
1236         Reported by Karl Berry.
1237
1238 2011-01-04  Bruce Korb  <address@hidden>
1239
1240         git-version-gen: avoid a sub-shell
1241         * build-aux/git-version-gen: Redirect stderr in `...` via
1242         "exec 2>...", rather than via an added sub-shell.
1243
1244 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
1245
1246         git-version-gen: use (...) rather than sh -c '...'
1247         * build-aux/git-version-gen: Rather than hard-coding a shell's name
1248         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
1249
1250 2011-01-03  Jim Meyering  <meyering@redhat.com>
1251
1252         git-version-gen: convert leading TABs to spaces
1253         * build-aux/git-version-gen: Expand leading TABs.
1254
1255         git-version-gen: handle failed "git rev-list"
1256         * build-aux/git-version-gen: Rather than leaking a "fatal" error
1257         from git and proceeding as if it had succeeded but printed no SHA1
1258         checksums, suppress the diagnostic and handle the failure.
1259         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
1260
1261         git-version-gen: include command name in one more diagnostic
1262         * build-aux/git-version-gen: When the required .tarball-version file
1263         was missing or unreadable, you might see the diagnostic from "cat",
1264         but no trace of the name of the invoking script.  Now, you still see
1265         the diagnostic from cat, but also get one from "git-version-gen: ".
1266         Inspired by a patch from Bruce Korb.
1267
1268         update-copyright: adjust test to match changed code
1269         * tests/test-update-copyright.sh: Change test's expected output
1270         to match new actual output.
1271
1272 2011-01-02  Bruno Haible  <bruno@clisp.org>
1273
1274         getlogin_r: Avoid test failure on HP-UX 11.
1275         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
1276         ERANGE when the second argument is zero.
1277         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
1278         portability problem.
1279
1280 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1281
1282         * build-aux/update-copyright: doc Simon's changes
1283
1284 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1285
1286         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1287         environment variable.
1288
1289 2011-01-02  Bruno Haible  <bruno@clisp.org>
1290
1291         unigbrk: Avoid gcc warnings.
1292         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1293         unused variable.
1294         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1295         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1296         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1297         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1298         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1299         Change type of first argument to 'const char *'.
1300         (main): Remove unused variable.
1301         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1302         type of first argument to 'const char *'.
1303         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1304         Likewise.
1305         (main): Change type of variable 's'.
1306         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1307         to 'int'.
1308
1309 2011-01-02  Bruno Haible  <bruno@clisp.org>
1310
1311         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1312         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1313         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1314         bug.
1315         * lib/pwrite.c: Undo 2010-12-31 patch.
1316         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1317
1318 2011-01-02  Bruno Haible  <bruno@clisp.org>
1319
1320         pread: Fix test whether it works.
1321         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1322
1323 2011-01-02  Bruno Haible  <bruno@clisp.org>
1324
1325         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1326         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1327         ends in "6". Don't require a specific month name. Try also the locale
1328         names found on HP-UX 11 and Solaris 7.
1329
1330 2011-01-02  Bruno Haible  <bruno@clisp.org>
1331
1332         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1333         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1334         C linkage.
1335         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1336
1337 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1338
1339         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1340         for consistency, since the "cluster" term is not used elsewhere.
1341         * lib/unigbrk.in.h: Update name.
1342         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1343         * lib/unigbrk/u16-grapheme-next.c: Update name.
1344         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1345         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1346         * lib/unigbrk/u32-grapheme-next.c: Update name.
1347         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1348         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1349         * lib/unigbrk/u8-grapheme-next.c: Update name.
1350         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1351         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1352         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1353         Suggested by Bruno Haible.
1354
1355 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1356
1357         Remove module 'u8-grapheme-len' as too redundant with
1358         'u8-grapheme-next'.
1359         * modules/unigbrk/u8-grapheme-len: Delete file.
1360         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1361         * lib/unigbrk.in.h: Remove prototype for deleted function.
1362         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1363         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1364
1365         Remove module 'u16-grapheme-len' as too redundant with
1366         'u16-grapheme-next'.
1367         * modules/unigbrk/u16-grapheme-len: Delete file.
1368         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1369         * lib/unigbrk.in.h: Remove prototype for deleted function.
1370         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1371         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1372
1373         Remove module 'u32-grapheme-len' as too redundant with
1374         'u32-grapheme-next'.
1375         * modules/unigbrk/u32-grapheme-len: Delete file.
1376         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1377         * lib/unigbrk.in.h: Remove prototype for deleted function.
1378         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1379         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1380
1381         Suggested by Bruno Haible.
1382
1383 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1384
1385         * unigbrk.in.h: Fix typo: "ben" => "been".
1386         Reported by Bruno Haible.
1387
1388 2011-01-01  Jim Meyering  <meyering@redhat.com>
1389
1390         maint: update almost all copyright ranges to include 2011
1391         Run the new "make update-copyright" rule.
1392
1393 2011-01-01  Jim Meyering  <meyering@redhat.com>
1394
1395         maint: update-copyright: exempt doc/INSTALL*
1396         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1397         since they are generated.  Suggested by Bruno Haible.
1398
1399 2011-01-01  Jim Meyering  <meyering@redhat.com>
1400
1401         maint: refine the update-copyright rule
1402         * Makefile (update-copyright): Also exclude any file that includes
1403         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1404         code that merely generates the comment.
1405
1406 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1407
1408         New module 'u8-grapheme-len'.
1409         * modules/unigbrk/u8-grapheme-len: New file.
1410         * modules/unigbrk/u8-grapheme-len-tests: New file.
1411         * lib/unigbrk.in.h: Add prototype for new function.
1412         * lib/unigbrk/u8-grapheme-len.c: New file.
1413         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1414
1415         New module 'u16-grapheme-len'.
1416         * modules/unigbrk/u16-grapheme-len: New file.
1417         * modules/unigbrk/u16-grapheme-len-tests: New file.
1418         * lib/unigbrk.in.h: Add prototype for new function.
1419         * lib/unigbrk/u16-grapheme-len.c: New file.
1420         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1421
1422         New module 'u32-grapheme-len'.
1423         * modules/unigbrk/u32-grapheme-len: New file.
1424         * modules/unigbrk/u32-grapheme-len-tests: New file.
1425         * lib/unigbrk.in.h: Add prototype for new function.
1426         * lib/unigbrk/u32-grapheme-len.c: New file.
1427         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1428
1429         New module 'u8-grapheme-next'.
1430         * modules/unigbrk/u8-grapheme-next: New file.
1431         * modules/unigbrk/u8-grapheme-next-tests: New file.
1432         * lib/unigbrk.in.h: Add prototype for new function.
1433         * lib/unigbrk/u8-grapheme-next.c: New file.
1434         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1435
1436         New module 'u16-grapheme-next'.
1437         * modules/unigbrk/u16-grapheme-next: New file.
1438         * modules/unigbrk/u16-grapheme-next-tests: New file.
1439         * lib/unigbrk.in.h: Add prototype for new function.
1440         * lib/unigbrk/u16-grapheme-next.c: New file.
1441         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1442
1443         New module 'u32-grapheme-next'.
1444         * modules/unigbrk/u32-grapheme-next: New file.
1445         * modules/unigbrk/u32-grapheme-next-tests: New file.
1446         * lib/unigbrk.in.h: Add prototype for new function.
1447         * lib/unigbrk/u32-grapheme-next.c: New file.
1448         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1449
1450         New module 'u8-grapheme-prev'.
1451         * modules/unigbrk/u8-grapheme-prev: New file.
1452         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1453         * lib/unigbrk.in.h: Add prototype for new function.
1454         * lib/unigbrk/u8-grapheme-prev.c: New file.
1455         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1456
1457         New module 'u16-grapheme-prev'.
1458         * modules/unigbrk/u16-grapheme-prev: New file.
1459         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1460         * lib/unigbrk.in.h: Add prototype for new function.
1461         * lib/unigbrk/u16-grapheme-prev.c: New file.
1462         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1463
1464         New module 'u32-grapheme-prev'.
1465         * modules/unigbrk/u32-grapheme-prev: New file.
1466         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1467         * lib/unigbrk.in.h: Add prototype for new function.
1468         * lib/unigbrk/u32-grapheme-prev.c: New file.
1469         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1470
1471         New module 'u8-grapheme-breaks'.
1472         * modules/unigbrk/u8-grapheme-breaks: New file.
1473         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1474         * lib/unigbrk.in.h: Add prototype for new function.
1475         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1476         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1477
1478         New module 'u16-grapheme-breaks'.
1479         * modules/unigbrk/u16-grapheme-breaks: New file.
1480         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1481         * lib/unigbrk.in.h: Add prototype for new function.
1482         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1483         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1484
1485         New module 'u32-grapheme-breaks'.
1486         * modules/unigbrk/u32-grapheme-breaks: New file.
1487         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1488         * lib/unigbrk.in.h: Add prototype for new function.
1489         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1490         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1491
1492         New module 'ulc-grapheme-breaks'.
1493         * modules/unigbrk/ulc-grapheme-breaks: New file.
1494         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1495         * m4/locale-ar.m4: New file.
1496         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1497         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1498         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1499
1500 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1501
1502         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1503         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1504         modified how this file was generated before I initially submitted
1505         the module, but failed to regenerate it.  This meant that several
1506         of the level2 entries were wrong.
1507         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1508         Remove the division-by-2 that is folded into the table now that
1509         gbrkprop.h has been regenerated properly.  Now -1 entries are
1510         handled correctly.
1511
1512         New module 'unigbrk/uc-gbrk-prop-tests'.
1513         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1514         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1515         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1516         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1517
1518 2011-01-01  Bruno Haible  <bruno@clisp.org>
1519
1520         Avoid use of hexadecimal escapes.
1521         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1522         instead of hexadecimal escapes.
1523
1524 2011-01-01  Jim Meyering  <meyering@redhat.com>
1525
1526         maint: new rule to update copyright year ranges
1527         * Makefile (update-copyright): New rule.
1528
1529         maint: indent with TABs in Makefile
1530         * Makefile: Expand leading sequences of spaces to TABs
1531
1532         version-etc: update the copyright year it reports
1533         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1534
1535 2010-12-31  Bruno Haible  <bruno@clisp.org>
1536
1537         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1538         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1539         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1540         zero.
1541
1542 2010-12-31  Bruno Haible  <bruno@clisp.org>
1543
1544         pwrite: Work around HP-UX 11.11 bug.
1545         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1546         works and set REPLACE_PWRITE if not.
1547         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1548         function.
1549         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1550
1551 2010-12-31  Bruno Haible  <bruno@clisp.org>
1552
1553         pread: Work around HP-UX 11 bugs.
1554         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1555         and set REPLACE_PREAD if not.
1556         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1557
1558 2010-12-31  Eric Blake  <eblake@redhat.com>
1559
1560         nl_langinfo: fix YESEXPR on Irix 6.5
1561         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1562         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1563         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1564         it.
1565
1566 2010-12-31  Bruno Haible  <bruno@clisp.org>
1567
1568         iconv: Document HP-UX 11 bug.
1569         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1570
1571 2010-12-31  Bruno Haible  <bruno@clisp.org>
1572
1573         ldexpl: Fix link error on HP-UX 11.
1574         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1575         LDEXPL_LIBM, using $ISNANL_LIBM.
1576
1577 2010-12-31  Eric Blake  <eblake@redhat.com>
1578
1579         ftello: avoid compilation failure with SunStudio c89
1580         * lib/ftello.c (ftello): Use lseek, not llseek.
1581
1582         tests: avoid failing coreutils tests on cygwin
1583         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1584         (create_exe_shims_): Return 0 when skipping.
1585
1586 2010-12-31  Bruno Haible  <bruno@clisp.org>
1587
1588         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1589         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1590
1591 2010-12-31  Bruno Haible  <bruno@clisp.org>
1592
1593         waitpid: Fix link error in C++ mode.
1594         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1595
1596 2010-12-31  Bruno Haible  <bruno@clisp.org>
1597
1598         isnan: Use GCC built-ins when possible.
1599         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1600         __builtin_isnan.
1601         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1602         (isnan): Define using GCC built-ins for GCC >= 4.0.
1603
1604 2010-12-31  Bruno Haible  <bruno@clisp.org>
1605
1606         isnand: Fix mistake.
1607         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1608         __builtin_isnand.
1609
1610 2010-12-31  Bruno Haible  <bruno@clisp.org>
1611
1612         open: Avoid C++ error on HP-UX 11.
1613         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1614
1615 2010-12-31  Bruno Haible  <bruno@clisp.org>
1616
1617         time_r: Add missing declarations on HP-UX 11.
1618         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1619         instead of HAVE_LOCALTIME_R.
1620         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1621         HAVE_LOCALTIME_R always.
1622         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1623         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1624         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1625         HAVE_LOCALTIME_R.
1626         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1627         * doc/posix-functions/localtime_r.texi: Likewise.
1628
1629 2010-12-29  Eric Blake  <eblake@redhat.com>
1630
1631         mountlist: tweak previous commit
1632         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1633         Reported by Paul Eggert.
1634
1635         mountlist: fix local drive detection on cygwin
1636         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1637         that works for cygwin.
1638
1639 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1640
1641         ftoastr, snprintf: ftoastr + snprintf module
1642         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1643         since the snprintf module now should be good enough here.
1644         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1645         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1646         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1647         GNULIB_SNPRINTF only for the test directory, and the latter
1648         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1649         seems to suffice by itself.
1650
1651 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1652
1653         alloca: one step towards thread-safety
1654         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1655         need for a static variable.  All callers changed.  This does not
1656         make the alloca replacement thread-safe, but it's one step.
1657
1658         tests: minor indenting change
1659         * tests/init.sh: Sync from coreutils housekeeping patch
1660         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1661         to keep lines within 80 columns.
1662
1663 2010-12-28  Jim Meyering  <meyering@redhat.com>
1664
1665         regex: don't infloop on persistent failing calloc
1666         * lib/regexec.c (build_trtable): Return failure indication upon
1667         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1668         In glibc, this was fixed for version 2.13:
1669         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1670
1671 2010-12-28  Bruno Haible  <bruno@clisp.org>
1672             Paul Eggert <eggert@cs.ucla.edu>
1673
1674         linkat: Make implementation robust against system behaviour variations.
1675         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1676         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1677         way, and to -2 if it needs a generic runtime test.
1678         * lib/linkat.c (solaris_optimized_link_immediate,
1679         solaris_optimized_link_follow): New functions.
1680         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1681         (check_same_link): Use it.
1682
1683 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1684
1685         New module 'unigbrk/base'.
1686         * modules/unigbrk/base: New file.
1687         * lib/unigbrk.in.h: New file.
1688
1689         New module 'unigbrk/uc-gbrk-prop'.
1690         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1691         * modules/unigbrk/uc-gbrk-prop: New file.
1692         * lib/unigbrk/gbrkprop.h: New file.
1693         * lib/unigbrk/uc-gbrk-prop.c: New file.
1694
1695         New module 'unigbrk/uc-is-grapheme-break'.
1696         * modules/unigbrk/uc-is-grapheme-break: New file.
1697         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1698         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1699         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1700         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1701         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1702
1703         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1704
1705 2010-12-27  Bruno Haible  <bruno@clisp.org>
1706
1707         linkat test: Avoid failure on Solaris 11 2010-11.
1708         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1709
1710 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1711
1712         utimens: work around glibc rounding bug on more platforms
1713         * lib/utimens.c (fdutimens): Work around rounding bug even if
1714         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1716
1717 2010-12-27  Bruno Haible  <bruno@clisp.org>
1718
1719         select tests: Improve comments.
1720         * tests/test-select.c (do_select): Add comments.
1721
1722 2010-12-27  Bruno Haible  <bruno@clisp.org>
1723
1724         select tests: Safer way of handling timeout.
1725         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1726         at every invocation.
1727
1728 2010-12-27  Bruno Haible  <bruno@clisp.org>
1729
1730         select tests: Use 'bool' where appropriate.
1731         * tests/test-select.c (connect_to_socket): Change argument type to
1732         'bool'.
1733
1734 2010-12-27  Bruno Haible  <bruno@clisp.org>
1735
1736         select tests: Use existing modules.
1737         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1738         (configure.ac): Don't test for unistd.h.
1739         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1740         declared in <unistd.h>.
1741
1742 2010-12-27  Bruno Haible  <bruno@clisp.org>
1743
1744         mbrtowc: Work around a Solaris 7 bug.
1745         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1746         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1747         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1748         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1749         MBRTOWC_NULL_ARG1_BUG.
1750         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1751         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1752         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1753         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1754
1755 2010-12-27  Jim Meyering  <meyering@redhat.com>
1756
1757         read-file.c: tweak syntax
1758         * lib/read-file.c (fread_file): Remove space after "*" in function
1759         definitions.
1760
1761 2010-12-27  Bruno Haible  <bruno@clisp.org>
1762
1763         times test: Avoid gcc warnings on OSF/1.
1764         * tests/test-times.c (main): Cast printf arguments from clock_t to
1765         'long int'.
1766
1767 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1768
1769         utimens: work around glibc rounding bug on older Linux kernels
1770         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1771         on Linux with a glibc whose utimes might not work, then work
1772         around a longstanding glibc bug involving rounding rather than
1773         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1774         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1775
1776 2010-12-26  Bruno Haible  <bruno@clisp.org>
1777
1778         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1779         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1780         _GL_CXXALIAS_SYS.
1781         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1782
1783 2010-12-26  Bruno Haible  <bruno@clisp.org>
1784
1785         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1786         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1787         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1788         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1789         looking for the declaration.
1790         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1791         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1792         problem.
1793         * doc/posix-functions/inet_pton.texi: Likewise.
1794
1795 2010-12-26  Bruno Haible  <bruno@clisp.org>
1796
1797         arpa_inet: Use the common idioms with C++ support.
1798         * lib/arpa_inet.in.h: Include c++defs.h.
1799         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1800         support.
1801         * modules/arpa_inet (Depends-on): Add c++defs.
1802         (Makefile.am): Substitute the contents of c++defs.h.
1803         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1804         * modules/arpa_inet-c++-tests: New file.
1805         * tests/test-arpa_inet-c++.cc: New file.
1806
1807 2010-12-25  Bruno Haible  <bruno@clisp.org>
1808
1809         Fix more C++ link errors on Solaris 8.
1810         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1811         $(LIB_EACCESS).
1812         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1813         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1814         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1815         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1816         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1817
1818 2010-12-25  Bruno Haible  <bruno@clisp.org>
1819
1820         printf-posix: Fix link error when a non-GCC compiler is used.
1821         * lib/stdio.in.h (printf): When not using GCC, override printf
1822         correctly.
1823         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1824
1825 2010-12-25  Bruno Haible  <bruno@clisp.org>
1826
1827         strerror_r-posix: Update doc.
1828         * doc/posix-functions/strerror_r.texi: Update doc about the return
1829         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1830
1831 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1832
1833         utimens: simplify the logic of the previous change
1834         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1835         This should not affect whether the test succeeds or fails.
1836
1837         utimens: configure better on hosts with NFS clock skew
1838         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1839         uses the clock of the local host.  It might use the clock of the
1840         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1841         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1842
1843 2010-12-25  Bruno Haible  <bruno@clisp.org>
1844
1845         ptsname test: Avoid failure on Solaris.
1846         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1847         open a pseudo-terminal; don't use BSD-style ptys.
1848         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1849
1850 2010-12-25  Bruno Haible  <bruno@clisp.org>
1851
1852         ptsname: Avoid ERANGE failure on some systems.
1853         * lib/ptsname.c (buffer): Increase size.
1854
1855 2010-12-25  Bruno Haible  <bruno@clisp.org>
1856
1857         rename, renameat: Avoid test failures at NFS mounted locations.
1858         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1859         so that subsequent mkdir calls succeed.
1860
1861 2010-12-25  Bruno Haible  <bruno@clisp.org>
1862
1863         iswblank: Fix C++ link error on Solaris 8.
1864         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1865         _GL_FUNCDECL_SYS.
1866
1867 2010-12-25  Bruno Haible  <bruno@clisp.org>
1868
1869         unistd: Fix C++ link error on Solaris 8.
1870         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1871
1872 2010-12-25  Bruno Haible  <bruno@clisp.org>
1873
1874         readlink doc: Mention an old glibc bug.
1875         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1876
1877 2010-12-25  Bruno Haible  <bruno@clisp.org>
1878
1879         fcntl-h: Fix for use of C++ on glibc systems.
1880         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1881         also on glibc systems in C++ mode.
1882         Reported by Gary V. Vaughan <gary@gnu.org>.
1883
1884 2010-12-25  Bruno Haible  <bruno@clisp.org>
1885
1886         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1887         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1888
1889 2010-12-25  Bruno Haible  <bruno@clisp.org>
1890
1891         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1892         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1893         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1894         test whether truncl works according to ISO C 99 with IEC 60559.
1895         * m4/truncl-ieee.m4: New file.
1896         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1897         m4/signbit.m4.
1898         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1899
1900 2010-12-25  Bruno Haible  <bruno@clisp.org>
1901
1902         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1903         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1904         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1905         test whether ceill works according to ISO C 99 with IEC 60559.
1906         * m4/ceill-ieee.m4: New file.
1907         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1908         m4/signbit.m4.
1909         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1910
1911 2010-12-25  Bruno Haible  <bruno@clisp.org>
1912
1913         Ensure all prerequisites of <wchar.h> are included.
1914         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1915         before <wchar.h>.
1916         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1917         gl_MBRLEN_NUL_RETVAL): Likewise.
1918         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1919         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1920         AC_FUNC_MBRTOWC): Likewise.
1921         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1922         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1923         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1924         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1925         Likewise.
1926         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1927         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1928         (gl_WCHAR_H): Improve comments.
1929         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1930
1931 2010-12-25  Bruno Haible  <bruno@clisp.org>
1932
1933         strtok_r: Fix C syntax error in autoconf macro.
1934         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1935         characters in test program.
1936
1937 2010-12-24  Bruno Haible  <bruno@clisp.org>
1938
1939         ceil, trunc, round: Fix gcc warnings.
1940         * lib/ceil.c (MIN): Undefine before redefining.
1941         * lib/trunc.c (MIN): Likewise.
1942         * lib/round.c (MIN): Likewise.
1943         Include <math.h> first.
1944
1945 2010-12-24  Bruno Haible  <bruno@clisp.org>
1946
1947         select tests: Avoid failures on OSF/1 5.1.
1948         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1949         failure of closing the last socket; it may fail with ECONNRESET.
1950
1951 2010-12-24  Eric Blake  <eblake@redhat.com>
1952
1953         stdint: avoid HP-UX 10.20 preprocessor bug
1954         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1955         than #if.
1956         * tests/test-floor2.c (main): Likewise.
1957         Reported by Peter O'Gorman.
1958
1959         pipe: make obsoletion transition easier
1960         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1961         * modules/pipe (Files): Include revived file.
1962         (Include): Drop reference, to mirror getdate's behavior.
1963
1964 2010-12-24  Bruno Haible  <bruno@clisp.org>
1965
1966         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1967         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1968         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1969         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1970
1971 2010-12-24  Bruno Haible  <bruno@clisp.org>
1972
1973         gethostname: Ensure declaration on NonStop Kernel.
1974         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1975         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1976
1977 2010-12-24  Bruno Haible  <bruno@clisp.org>
1978
1979         sys_select: Ensure all necessary types on NonStop Kernel.
1980         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1981         include <sys/time.h>.
1982         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1983         NonStop Kernel.
1984         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1985
1986 2010-12-24  Bruno Haible  <bruno@clisp.org>
1987
1988         sys_select: Remove unneeded include.
1989         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1990         have <sys/select.h>.
1991
1992 2010-12-24  Bruno Haible  <bruno@clisp.org>
1993
1994         gethostname: Provide a fallback for HOST_NAME_MAX.
1995         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1996         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1997         instead.
1998         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1999
2000 2010-12-24  Bruno Haible  <bruno@clisp.org>
2001
2002         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
2003         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
2004         (SA_RESTART): Likewise.
2005         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2006
2007 2010-12-24  Bruno Haible  <bruno@clisp.org>
2008
2009         signal: Define NSIG.
2010         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
2011         * tests/test-signal.c (nsig): New variable.
2012         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2013
2014 2010-12-24  Bruno Haible  <bruno@clisp.org>
2015
2016         rename, renameat: Avoid test failures on OSF/1 5.1.
2017         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
2018         alternative error codes.
2019         * tests/test-renameat.c (main): Likewise.
2020
2021 2010-12-24  Bruno Haible  <bruno@clisp.org>
2022
2023         *printf: Detect large precisions bug on Solaris 10/SPARC.
2024         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
2025         by Paul Eggert.
2026         * tests/test-snprintf-posix.h (test_function): Add this test code here
2027         too.
2028         * tests/test-sprintf-posix.h (test_function): Likewise.
2029         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2030         * tests/test-vasprintf-posix.c (test_function): Likewise.
2031         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
2032         around by gnulib.
2033         * doc/posix-functions/printf.texi: Likewise.
2034         * doc/posix-functions/snprintf.texi: Likewise.
2035         * doc/posix-functions/sprintf.texi: Likewise.
2036         * doc/posix-functions/vfprintf.texi: Likewise.
2037         * doc/posix-functions/vprintf.texi: Likewise.
2038         * doc/posix-functions/vsnprintf.texi: Likewise.
2039         * doc/posix-functions/vsprintf.texi: Likewise.
2040         * doc/posix-functions/dprintf.texi: Undo last commit.
2041         * doc/posix-functions/vdprintf.texi: Likewise.
2042
2043 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2044
2045         tests: port test-fdutimensat.c to Solaris 8
2046         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
2047         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
2048         On Solaris 8, it fails with errno == ENOSYS, because there is no
2049         futimens (so it can't use the fd), and there is no lutimens (so it
2050         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
2051
2052         vsnprintf: make more consistent with snprintf; doc fixes
2053
2054         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
2055         the byte count return problem was promoted from the snprintf-posix
2056         to the snprintf module.
2057         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2058         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
2059         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
2060         * tests/test-snprintf.c (main): Check the byte count returned.
2061         * tests/test-vsnprintf.c (main): Likewise.
2062
2063 2010-12-23  Eric Blake  <eblake@redhat.com>
2064
2065         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
2066         * modules/sigpipe (License): Relax license.
2067
2068 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2069
2070         doc: document Solaris printf bug with large float precisions
2071         * doc/posix-functions/dprintf.texi (dprintf):
2072         * doc/posix-functions/fprintf.texi (fprintf):
2073         * doc/posix-functions/printf.texi (printf):
2074         * doc/posix-functions/snprintf.texi (snprintf):
2075         * doc/posix-functions/sprintf.texi (sprintf):
2076         * doc/posix-functions/vdprintf.texi (vdprintf):
2077         * doc/posix-functions/vfprintf.texi (vfprintf):
2078         * doc/posix-functions/vprintf.texi (vprintf):
2079         * doc/posix-functions/vsnprintf.texi (vsnprintf):
2080         * doc/posix-functions/vsprintf.texi (vsprintf):
2081         Mention that these functions mishandle large floating point
2082         precisions on Solaris 10.  The same bug is also present in Solaris
2083         8, and I assume earlier.  This causes "cd gnulib-tests; make
2084         check" to fail on Solaris 8 (and I assume, later) when building
2085         the latest coreutils, in test-vasprintf-posix's call to
2086         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
2087         the wide flavors (e.g., wprintf) so this patch just updates the
2088         documentation for the narrow ones.
2089
2090         test-posixtm.c: add two tests
2091         * tests/test-posixtm.c: Add two tests, to highlight the
2092         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
2093         around this bug; this is merely to document it.
2094
2095 2010-12-22  Bruno Haible  <bruno@clisp.org>
2096
2097         getlogin_r: Work around portability problem on OSF/1.
2098         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
2099         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
2100         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
2101         test for a truncated result.
2102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
2103         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
2104         * modules/getlogin_r (Depends-on): Add memchr.
2105         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
2106
2107 2010-12-22  Bruno Haible  <bruno@clisp.org>
2108
2109         ptsname: Avoid test failure on OSF/1 5.1.
2110         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
2111         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
2112         (same_slave): New function.
2113         (main): Use it to compare ptsname's result with the expected file name.
2114
2115 2010-12-22  Bruno Haible  <bruno@clisp.org>
2116
2117         Port extended stdio modules to HP NonStop Kernel.
2118         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
2119         macros.
2120         * lib/fbufmode.c: Update comments.
2121         * lib/fflush.c: Likewise.
2122         * lib/fpurge.c: Likewise.
2123         * lib/freadable.c: Likewise.
2124         * lib/freadahead.c: Likewise.
2125         * lib/freading.c: Likewise.
2126         * lib/freadptr.c: Likewise.
2127         * lib/freadseek.c: Likewise.
2128         * lib/fseeko.c: Likewise.
2129         * lib/fseterr.c: Likewise.
2130         * lib/fwritable.c: Likewise.
2131         * lib/fwriting.c: Likewise.
2132         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2133
2134 2010-12-22  Bruno Haible  <bruno@clisp.org>
2135
2136         ttyname_r: Work around bug on OSF/1 5.1.
2137         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
2138         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
2139         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
2140         present.
2141         * lib/ttyname_r.c (ttyname_r): Update comments.
2142
2143 2010-12-22  Bruno Haible  <bruno@clisp.org>
2144
2145         round: Implement result sign according to IEEE 754.
2146         * lib/round.c (MIN, MINUS_ZERO): New macros.
2147         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
2148         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
2149         * tests/test-round-ieee.c (main): Likewise.
2150         * tests/test-roundl-ieee.c (main): Likewise.
2151
2152         trunc: Implement result sign according to IEEE 754.
2153         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
2154         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
2155         * tests/test-trunc2.c: Include minus-zero.h.
2156         (MINUS_ZERO): New macro.
2157         (trunc_reference): Keep in sync with lib/trunc.c.
2158         * tests/test-truncf2.c: Include minus-zero.h.
2159         (MINUS_ZERO): New macro.
2160         (truncf_reference): Keep in sync with lib/trunc.c.
2161         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
2162         * tests/test-trunc-ieee.c (main): Likewise.
2163         * tests/test-truncl-ieee.c (main): Likewise.
2164
2165         ceil: Implement result sign according to IEEE 754.
2166         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
2167         (FUNC): Return -0.0 for -1 < x < 0.
2168         * tests/test-ceil2.c: Include minus-zero.h.
2169         (MINUS_ZERO): New macro.
2170         (ceil_reference): Keep in sync with lib/ceil.c.
2171         * tests/test-ceilf2.c: Include minus-zero.h.
2172         (MINUS_ZERO): New macro.
2173         (ceilf_reference): Keep in sync with lib/ceil.c.
2174         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
2175         * tests/test-ceil-ieee.c (main): Likewise.
2176         * tests/test-ceill-ieee.c (main): Likewise.
2177
2178         floor: Implement result sign according to IEEE 754.
2179         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
2180         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
2181         * tests/test-floorf2.c (floorf_reference): Likewise.
2182         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
2183         * tests/test-floor-ieee.c (main): Likewise.
2184         * tests/test-floorl-ieee.c (main): Likewise.
2185
2186 2010-12-22  Bruno Haible  <bruno@clisp.org>
2187
2188         getaddrinfo: Update doc.
2189         * doc/posix-functions/gai_strerror.texi: Return type is also different
2190         on AIX and HP-UX.
2191
2192 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2193
2194         getaddrinfo, inet_ntop: Update doc for Solaris.
2195         * doc/posix-functions/gai_strerror.texi: Return type is also an
2196         issue on Solaris 9 and earlier.
2197         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
2198         on Solaris 10 and earlier.
2199
2200 2010-12-21  Bruno Haible  <bruno@clisp.org>
2201
2202         New module 'roundl-ieee'.
2203         * modules/roundl-ieee: New file.
2204         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
2205         test whether roundl works according to ISO C 99 with IEC 60559.
2206         * m4/roundl-ieee.m4: New file.
2207         * modules/roundl-ieee-tests: New file.
2208         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
2209         * tests/test-roundl.c (main): Remove signbit tests.
2210         * modules/roundl-tests (Depends-on): Remove signbit.
2211         * doc/posix-functions/roundl.texi: Mention the new module.
2212
2213 2010-12-21  Bruno Haible  <bruno@clisp.org>
2214
2215         New module 'truncl-ieee'.
2216         * modules/truncl-ieee: New file.
2217         * modules/truncl-ieee-tests: New file.
2218         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
2219         * tests/test-truncl.c (main): Remove signbit tests.
2220         * modules/truncl-tests (Depends-on): Remove signbit.
2221         * doc/posix-functions/truncl.texi: Mention the new module.
2222
2223 2010-12-21  Bruno Haible  <bruno@clisp.org>
2224
2225         New module 'ceill-ieee'.
2226         * modules/ceill-ieee: New file.
2227         * modules/ceill-ieee-tests: New file.
2228         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
2229         * tests/test-ceill.c (main): Remove signbit tests.
2230         * modules/ceill-tests (Depends-on): Remove signbit.
2231         * doc/posix-functions/ceill.texi: Mention the new module.
2232
2233 2010-12-21  Bruno Haible  <bruno@clisp.org>
2234
2235         New module 'floorl-ieee'.
2236         * modules/floorl-ieee: New file.
2237         * modules/floorl-ieee-tests: New file.
2238         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
2239         * tests/test-floorl.c (main): Remove signbit tests.
2240         * modules/floorl-tests (Depends-on): Remove signbit.
2241         * doc/posix-functions/floorl.texi: Mention the new module.
2242
2243 2010-12-21  Bruno Haible  <bruno@clisp.org>
2244
2245         New module 'round-ieee'.
2246         * modules/round-ieee: New file.
2247         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
2248         whether round works according to ISO C 99 with IEC 60559.
2249         * m4/round-ieee.m4: New file.
2250         * modules/round-ieee-tests: New file.
2251         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
2252         * tests/test-round1.c (main): Remove signbit tests.
2253         * modules/round-tests (Depends-on): Remove 'signbit'.
2254         * doc/posix-functions/round.texi: Mention the new module.
2255
2256 2010-12-21  Bruno Haible  <bruno@clisp.org>
2257
2258         New module 'trunc-ieee'.
2259         * modules/trunc-ieee: New file.
2260         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
2261         whether trunc works according to ISO C 99 with IEC 60559.
2262         * m4/trunc-ieee.m4: New file.
2263         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
2264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
2265         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
2266         * modules/trunc-ieee-tests: New file.
2267         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
2268         * tests/test-trunc1.c (main): Remove signbit tests.
2269         * modules/trunc-tests (Depends-on): Remove 'signbit'.
2270         * doc/posix-functions/trunc.texi: Mention the new module.
2271
2272 2010-12-21  Bruno Haible  <bruno@clisp.org>
2273
2274         New module 'ceil-ieee'.
2275         * modules/ceil-ieee: New file.
2276         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
2277         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
2278         ISO C 99 with IEC 60559.
2279         * m4/ceil-ieee.m4: New file.
2280         * modules/ceil (Files): Add lib/ceil.c.
2281         (Depends-on): Add 'float'.
2282         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2283         * lib/math.in.h (ceil): New declaration.
2284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2285         REPLACE_CEIL.
2286         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2287         * modules/ceil-ieee-tests: New file.
2288         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2289         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2290         * doc/posix-functions/ceil.texi: Mention the new module.
2291
2292 2010-12-21  Bruno Haible  <bruno@clisp.org>
2293
2294         New module 'floor-ieee'.
2295         * modules/floor-ieee: New file.
2296         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2297         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2298         ISO C 99 with IEC 60559.
2299         * m4/floor-ieee.m4: New file.
2300         * modules/floor (Files): Add lib/floor.c.
2301         (Depends-on): Add 'float'.
2302         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2303         * lib/math.in.h (floor): New declaration.
2304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2305         REPLACE_FLOOR.
2306         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2307         * modules/floor-ieee-tests: New file.
2308         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2309         * tests/test-math-c++.cc: Check the signature of 'floor'.
2310         * doc/posix-functions/floor.texi: Mention the new module.
2311
2312 2010-12-21  Bruno Haible  <bruno@clisp.org>
2313
2314         New module 'roundf-ieee'.
2315         * modules/roundf-ieee: New file.
2316         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2317         test whether roundf works according to ISO C 99 with IEC 60559.
2318         * m4/roundf-ieee.m4: New file.
2319         * modules/roundf-ieee-tests: New file.
2320         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2321         * tests/test-roundf1.c (main): Remove signbit tests.
2322         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2323         * doc/posix-functions/roundf.texi: Mention the new module.
2324
2325 2010-12-21  Bruno Haible  <bruno@clisp.org>
2326
2327         New module 'truncf-ieee'.
2328         * modules/truncf-ieee: New file.
2329         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2330         test whether truncf works according to ISO C 99 with IEC 60559.
2331         * m4/truncf-ieee.m4: New file.
2332         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2334         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2335         * modules/truncf-ieee-tests: New file.
2336         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2337         * tests/test-truncf1.c (main): Remove signbit tests.
2338         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2339         * doc/posix-functions/truncf.texi: Mention the new module.
2340
2341 2010-12-21  Bruno Haible  <bruno@clisp.org>
2342
2343         New module 'ceilf-ieee'.
2344         * modules/ceilf-ieee: New file.
2345         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2346         test whether ceilf works according to ISO C 99 with IEC 60559.
2347         * m4/ceilf-ieee.m4: New file.
2348         * modules/ceilf-ieee-tests: New file.
2349         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2350         * tests/test-ceilf1.c (main): Remove signbit tests.
2351         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2352         * doc/posix-functions/ceilf.texi: Mention the new module.
2353
2354 2010-12-21  Bruno Haible  <bruno@clisp.org>
2355
2356         New module 'floorf-ieee'.
2357         * modules/floorf-ieee: New file.
2358         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2359         test whether floorf works according to ISO C 99 with IEC 60559.
2360         * m4/floorf-ieee.m4: New file.
2361         * modules/floorf-ieee-tests: New file.
2362         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2363         * tests/test-floorf1.c (main): Remove signbit tests.
2364         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2365         * doc/posix-functions/floorf.texi: Mention the new module.
2366
2367 2010-12-21  Bruno Haible  <bruno@clisp.org>
2368
2369         Support for minus zero in autoconf macros.
2370         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2371         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2372         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2373         * tests/minus-zero.h: Update comments.
2374
2375 2010-12-21  Bruno Haible  <bruno@clisp.org>
2376
2377         Tests for module 'ceil'.
2378         * modules/ceil-tests: New file.
2379         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2380         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2381
2382 2010-12-21  Bruno Haible  <bruno@clisp.org>
2383
2384         Tests for module 'floor'.
2385         * modules/floor-tests: New file.
2386         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2387         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2388
2389 2010-12-21  Bruno Haible  <bruno@clisp.org>
2390
2391         math: Fix indentation.
2392         * lib/math.in.h (floorf): Fix indentation.
2393
2394 2010-12-21  Bruno Haible  <bruno@clisp.org>
2395
2396         Fix cross-compilation guesses on Solaris.
2397         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2398         not match "solaris2.10".
2399         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2400         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2401         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2402
2403 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2404
2405         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2406         This fixes a problem observed with the latest coreutils snapshot
2407         that caused a test to fail on Solaris 8.  src/csplit.c's call
2408         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2409         earlier, instead of returning the number of bytes that would have
2410         been generated; this causes csplit to incorrectly report memory
2411         exhaustion.
2412         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2413         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2414         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2415         comments to match.
2416         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2417         Fix typo in matching older versions of Solaris: "solaris2.10"
2418         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2419         only for guessing while cross-compiling.
2420         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2421
2422 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         ftoastr: fix comment again
2425         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2426         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2427         Also, simplify example a bit by using flags = 0.
2428
2429 2010-12-20  Bruno Haible  <bruno@clisp.org>
2430
2431         round*, trunc*: Update documentation regarding glibc.
2432         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2433         * doc/posix-functions/round.texi: Likewise.
2434         * doc/posix-functions/roundl.texi: Likewise.
2435         * doc/posix-functions/truncf.texi: Likewise.
2436         * doc/posix-functions/trunc.texi: Likewise.
2437         * doc/posix-functions/truncl.texi: Likewise.
2438
2439 2010-12-20  Bruno Haible  <bruno@clisp.org>
2440
2441         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2442         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2443         * doc/posix-functions/round.texi: Likewise.
2444         * doc/posix-functions/roundl.texi: Likewise.
2445
2446 2010-12-20  Bruno Haible  <bruno@clisp.org>
2447
2448         ttyname_r: Add missing declaration on HP-UX 11.
2449         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2450         HAVE_TTYNAME_R.
2451         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2452         declared. Set HAVE_TTYNAME_R always.
2453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2454         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2455         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2456         HAVE_TTYNAME_R.
2457         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2458
2459 2010-12-20  Bruno Haible  <bruno@clisp.org>
2460
2461         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2462         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2463         * doc/posix-functions/getlogin_r.texi: Likewise.
2464         * tests/test-getlogin.c: Include <errno.h>.
2465         (main): Avoid test failure on HP-UX 11.11.
2466         * tests/test-getlogin_r.c (main): Likewise.
2467
2468 2010-12-20  Bruno Haible  <bruno@clisp.org>
2469
2470         getlogin_r: Add missing declaration on HP-UX 11.
2471         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2472         declared also when it exists as a function.
2473         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2474
2475 2010-12-20  Bruno Haible  <bruno@clisp.org>
2476
2477         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2478         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2479         through wcrtomb.
2480
2481 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2482
2483         ftoastr: fix comment
2484         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2486
2487 2010-12-19  Bruno Haible  <bruno@clisp.org>
2488
2489         isnan: Ensure it is a macro.
2490         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2491         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2492         Solaris.
2493
2494 2010-12-19  Bruno Haible  <bruno@clisp.org>
2495
2496         ldexpl test: Fix link error on OSF/1 5.1.
2497         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2498
2499 2010-12-19  Bruno Haible  <bruno@clisp.org>
2500
2501         wctype: Make it work in C++ mode on OSF/1 5.1.
2502         * lib/wctype.in.h (iswblank): Declare but not define here.
2503         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2504         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2505         * modules/wctype (Files): Add lib/iswblank.c.
2506
2507 2010-12-19  Bruno Haible  <bruno@clisp.org>
2508
2509         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2510         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2511         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2512
2513 2010-12-19  Bruno Haible  <bruno@clisp.org>
2514
2515         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2516         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2517         _POSIX_PII_SOCKET.
2518         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2519         * doc/posix-functions/recvfrom.texi: Likewise.
2520         * doc/posix-functions/send.texi: Likewise.
2521         * doc/posix-functions/sendto.texi: Likewise.
2522
2523 2010-12-19  Bruno Haible  <bruno@clisp.org>
2524
2525         tcgetsid: Add missing declaration on OSF/1 5.1.
2526         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2527         HAVE_TCGETSID.
2528         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2529         Don't set HAVE_TCGETSID.
2530         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2531         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2532         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2533         HAVE_TCGETSID.
2534         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2535
2536 2010-12-19  Bruno Haible  <bruno@clisp.org>
2537
2538         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2539         * lib/stdio.in.h: During the include_next statement, let recursive
2540         includes of this file include only the system header file.
2541
2542 2010-12-19  Bruno Haible  <bruno@clisp.org>
2543
2544         iconv_open: Fix regression from 2010-12-04.
2545         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2546         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2547
2548 2010-12-19  Bruno Haible  <bruno@clisp.org>
2549
2550         stdbool test: Avoid a gcc warning.
2551         * tests/test-stdbool.c (main): Fail if e1 is false.
2552         Reported by Jim Meyering.
2553
2554 2010-12-19  Jim Meyering  <meyering@redhat.com>
2555
2556         setenv: restore to working order
2557         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2558         mistakenly removed.
2559         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2560         HAVE_SETENV.
2561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2562         HAVE_SETENV.
2563
2564 2010-12-19  Bruno Haible  <bruno@clisp.org>
2565
2566         Document some different function declarations on OSF/1 5.1.
2567         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2568         * doc/posix-functions/inet_ntop.texi: Likewise.
2569         * doc/posix-functions/gethostname.texi: Likewise.
2570         * lib/unistd.in.h (gethostname): Update comment.
2571
2572 2010-12-19  Bruno Haible  <bruno@clisp.org>
2573
2574         doc: Mention vasprintf-posix module.
2575         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2576         the 'vasprintf-posix' module.
2577         * doc/glibc-functions/vasprintf.texi: Likewise.
2578
2579 2010-12-19  Bruno Haible  <bruno@clisp.org>
2580
2581         unsetenv: Add missing declaration on OSF/1 5.1.
2582         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2583         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2584         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2586         not HAVE_UNSETENV.
2587         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2588         HAVE_UNSETENV.
2589         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2590
2591 2010-12-19  Bruno Haible  <bruno@clisp.org>
2592
2593         setenv: Add missing declaration on OSF/1 5.1.
2594         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2595         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2596         declared. Don't set HAVE_SETENV.
2597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2598         not HAVE_SETENV.
2599         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2600         HAVE_SETENV.
2601         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2602
2603 2010-12-19  Bruno Haible  <bruno@clisp.org>
2604
2605         nl_langinfo tests: Avoid gcc warning.
2606         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2607
2608 2010-12-19  Bruno Haible  <bruno@clisp.org>
2609
2610         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2611         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2612         _GL_CXXALIAS_SYS.
2613
2614 2010-12-19  Bruno Haible  <bruno@clisp.org>
2615
2616         stdbool: Relax test.
2617         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2618         address to 'bool' work in static initializer, for compilers other than
2619         GCC.
2620
2621 2010-12-19  Bruno Haible  <bruno@clisp.org>
2622
2623         ftello: Add missing declaration on OSF/1 5.1.
2624         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2625         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2627         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2628         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2629
2630 2010-12-19  Bruno Haible  <bruno@clisp.org>
2631
2632         fseeko: Add missing declaration on OSF/1 5.1.
2633         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2634         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2636         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2637         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2638
2639 2010-12-19  Bruno Haible  <bruno@clisp.org>
2640
2641         fchdir: Add missing declaration on OSF/1 5.1.
2642         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2643         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2645         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2646         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2647
2648 2010-12-19  Bruno Haible  <bruno@clisp.org>
2649
2650         relocatable-prog-wrapper: Separate from relocatable-prog.
2651         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2652         uninstall-relocwrapper rule here.
2653         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2654         Reported by Ian Beckwith <ianb@erislabs.net>.
2655
2656 2010-12-19  Bruno Haible  <bruno@clisp.org>
2657
2658         unistr/u8-mbsnlen: Add missing dependency.
2659         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2660         Reported by Ian Beckwith <ianb@erislabs.net>.
2661
2662 2010-12-19  Bruno Haible  <bruno@clisp.org>
2663
2664         iconv: Make it possible again to use this module without 'iconv-h'.
2665         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2666         if it is not defined.
2667         Reported by Ian Beckwith <ianb@erislabs.net>.
2668
2669 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2670
2671         acl: port to Solaris 8 when copying from tmpfs to ufs
2672         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2673         error number.  Problem observed on Solaris 8 with latest
2674         coreutils, with "mv A B", where A is on a tmpfs file system and B
2675         is on a ufs file system.  This caused coreutils' mv/part-symlink
2676         test to fail.
2677
2678         tests: set fail=0 at start
2679         * tests/init.sh (setup_): Move fail=0 initialization here ...
2680         (mktempd_): ... from here, so that tests can rely on fail being
2681         set to 0 initially.  This fixes a problem in coreutils; see:
2682         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2683
2684 2010-12-18  Bruno Haible  <bruno@clisp.org>
2685
2686         memmem-simple: Stylistic changes.
2687         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2688         Fix preprocessor directive indentation.
2689
2690 2010-12-15  Pádraig Brady <P@draigBrady.com>
2691
2692         memmem, memmem-simple: reorganize and expand empty needle check
2693         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2694         functional checks to memmem-simple so that one has a fully functional
2695         memmem by using just this module.
2696         Restrict the performance only check to the memmem module.
2697         Also expand the empty needle check to ensure the correct
2698         pointer is returned, not just a non NULL pointer.
2699         * doc/glibc-functions/memmem.texi: Rearrange the portability
2700         documentation to correlate with the rearranged checks.
2701         Clarify exactly how the memmem and memmem-simple modules
2702         relate to each other.
2703
2704 2010-12-15  Pádraig Brady <P@draigBrady.com>
2705             Bruno Haible  <bruno@clisp.org>
2706
2707         Improve cross-compilation guesses for uClibc.
2708         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2709         that uClibc does not have the glibc bug.
2710         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2711         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2712
2713 2010-12-14  Eric Blake  <eblake@redhat.com>
2714
2715         configmake: provide fallbacks for oldest supported autotools
2716         * m4/configmake.m4: New file.
2717         * modules/configmake (Files): Ship it.
2718         (configure.ac): Use it to guarantee fallbacks.
2719
2720 2010-12-13  Pádraig Brady <P@draigBrady.com>
2721
2722         read-file: Improve handling of large files
2723         * lib/read-file.c (fread_file): Minimize realloc()s
2724         for regular files, and better manage sizes around SIZE_MAX.
2725
2726 2010-12-13  Eric Blake  <eblake@redhat.com>
2727
2728         cloexec, fcntl: relax license
2729         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2730         consent from all contributors.
2731         * modules/fcntl (License): Likewise.
2732
2733 2010-12-10  Bruno Haible  <bruno@clisp.org>
2734
2735         Tests for module 'pipe-posix'.
2736         * modules/pipe-posix-tests: New file.
2737         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2738
2739 2010-12-10  Bruno Haible  <bruno@clisp.org>
2740
2741         pipe-posix: Make it work in C++ mode.
2742         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2743         (pipe): Use common idiom, not a macro definition.
2744         * lib/pipe.c: New file.
2745         * m4/pipe.m4: New file.
2746         * modules/pipe-posix (Description): Enhance.
2747         (Files): Add lib/pipe.c, m4/pipe.m4.
2748         (configure.ac): Invoke gl_FUNC_PIPE.
2749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2750         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2751         * tests/test-unistd-c++.cc: Check the signature of pipe.
2752
2753 2010-12-10  Bruno Haible  <bruno@clisp.org>
2754
2755         Rename module 'pipe' to 'spawn-pipe'.
2756         * modules/spawn-pipe: New file, renamed from modules/pipe.
2757         (Files, configure.ac, Makefile.am): Update.
2758         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2759         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2760         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2761         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2762         "spawn-pipe.h" instead of "pipe.h".
2763         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2764         to gl_SPAWN_PIPE.
2765         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2766         (Files, Makefile.am): Update.
2767         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2768         Update.
2769         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2770         Include "spawn-pipe.h" instead of "pipe.h".
2771         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2772         * lib/javacomp.c: Likewise.
2773         * lib/javaversion.c: Likewise.
2774         * lib/pipe-filter-gi.c: Likewise.
2775         * lib/pipe-filter-ii.c: Likewise.
2776         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2777         * modules/javacomp (Depends-on): Likewise.
2778         * modules/javaversion (Depends-on): Likewise.
2779         * modules/pipe-filter-gi (Depends-on): Likewise.
2780         * modules/pipe-filter-ii (Depends-on): Likewise.
2781         * MODULES.html.sh (Executing programs): Update.
2782         * NEWS: Mention the change.
2783
2784 2010-12-10  Eric Blake  <eblake@redhat.com>
2785
2786         pipe-posix: new module
2787         * modules/pipe-posix: New file.
2788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2789         (gl_UNISTD_H): Check for declaration.
2790         * modules/unistd (Makefile.am): Substitute it.
2791         * lib/unistd.in.h (pipe): Provide it for mingw.
2792         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2793         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2794
2795 2010-12-07  Bruno Haible  <bruno@clisp.org>
2796
2797         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2798         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2799         u8_strcmp_gnu.
2800         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2801
2802 2010-12-06  Bruno Haible  <bruno@clisp.org>
2803
2804         Update internal documentation.
2805         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2806
2807 2010-12-04  Bruno Haible  <bruno@clisp.org>
2808
2809         Put more information about failed tests into the test return codes.
2810         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2811         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2812         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2813         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2814         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2815         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2816         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2817         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2818         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2820         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2821         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2822         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2823         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2824         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2825         returns a bit mask.
2826         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2827         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2828         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2829         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2830         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2831         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2832         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2834         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2835         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2836         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2837         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2838         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2839         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2840         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2841         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2842         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2843         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2844         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2845         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2846         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2847         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2849         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2850         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2851         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2852         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2853         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2854         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2855         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2856         gl_PRINTF_PRECISION): Likewise.
2857         * m4/regex.m4 (gl_REGEX): Likewise.
2858         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2859         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2860         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2861         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2863         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2864         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2865         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2866         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2867         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2868         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2869         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2870         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2871         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2872         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2873         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2874         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2875         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2877         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2878         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2879         enumerated value.
2880         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2881
2882 2010-12-04  Bruno Haible  <bruno@clisp.org>
2883
2884         Update for Solaris 11 2010-11.
2885         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2886         Express, released in November 2010.
2887
2888 2010-12-04  Bruno Haible  <bruno@clisp.org>
2889
2890         nproc: Relax license.
2891         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2892         and Paul Eggert.
2893         Requested by Ludovic Courtès <ludo@gnu.org>.
2894
2895 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2896
2897         utimecmp: fine-grained src to nearby coarse-grained dest
2898
2899         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2900         and the source is on a file system with higher-resolution time
2901         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2902         not work, and the time stamps are close together, the algorithm to
2903         determine the exact resolution from the read-back mtime was buggy:
2904         it had a "!=" where it should have had an "==".  This bug has been
2905         in the code ever since it was introduced to gnulib.
2906         Problem reported by Dan Jacobson in
2907         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2908
2909 2010-11-30  Bruno Haible  <bruno@clisp.org>
2910
2911         strerror_r-posix: Fix autoconf test.
2912         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2913
2914 2010-11-28  Bruno Haible  <bruno@clisp.org>
2915             Paul Eggert  <eggert@cs.ucla.edu>
2916
2917         Tests for module 'getdomainname'.
2918         * modules/getdomainname-tests: New file.
2919         * tests/test-getdomainname.c: New file, based on
2920         tests/test-gethostname.c.
2921
2922 2010-11-28  Bruno Haible  <bruno@clisp.org>
2923             Paul Eggert  <eggert@cs.ucla.edu>
2924
2925         getdomainname: Use the system function when possible.
2926         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2927         (getdomainname): Replace if needed. Provide the declaration if it is
2928         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2929         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2930         (getdomainname): When the system has getdomainname, call the system
2931         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2932         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2933         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2934         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2935         the function if its second argument is of type 'int' or if it is found
2936         in libnsl.
2937         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2938         <sys/systeminfo.h> and sysinfo().
2939         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2941         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2942         HAVE_GETDOMAINNAME.
2943         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2944         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2945         * doc/glibc-functions/getdomainname.texi: Document the problems with
2946         the getdomainname declaration.
2947
2948 2010-11-28  Bruno Haible  <bruno@clisp.org>
2949
2950         sys_socket: Ensure ss_family field on AIX.
2951         * lib/sys_socket.in.h (ss_family): New macro definition.
2952         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2953         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2954         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2955         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2956         * modules/sys_socket (Makefile.am): Substitute
2957         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2958         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2959
2960 2010-11-27  Bruno Haible  <bruno@clisp.org>
2961
2962         readline: Improve configure output.
2963         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2964         "checking for readline..." result understandable.
2965
2966 2010-11-27  Bruno Haible  <bruno@clisp.org>
2967
2968         *printf-posix: Detect a bug on Solaris 10/x86.
2969         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2970         for floating-point output.
2971         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2972         directive.
2973         * tests/test-snprintf-posix.h (test_function): Likewise.
2974         * tests/test-sprintf-posix.h (test_function): Likewise.
2975         * tests/test-vasprintf-posix.c (test_function): Likewise.
2976         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2977         * doc/posix-functions/printf.texi: Likewise.
2978         * doc/posix-functions/snprintf.texi: Likewise.
2979         * doc/posix-functions/sprintf.texi: Likewise.
2980         * doc/posix-functions/vfprintf.texi: Likewise.
2981         * doc/posix-functions/vprintf.texi: Likewise.
2982         * doc/posix-functions/vsnprintf.texi: Likewise.
2983         * doc/posix-functions/vsprintf.texi: Likewise.
2984         * doc/glibc-functions/obstack_printf.texi: Likewise.
2985         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2986
2987 2010-11-27  Bruno Haible  <bruno@clisp.org>
2988
2989         Fix link error when module libunistring-optional is in use.
2990         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2991         * modules/striconveha-tests (Makefile.am): Likewise.
2992
2993 2010-11-27  Bruno Haible  <bruno@clisp.org>
2994
2995         regex: Mention link dependencies.
2996         * modules/regex (Link): New section.
2997         * modules/rpmatch (Link): Likewise.
2998         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2999
3000 2010-11-27  Bruno Haible  <bruno@clisp.org>
3001
3002         ftoastr: Fix compilation error on Solaris.
3003         * lib/ftoastr.c: Include <config.h>.
3004
3005 2010-11-27  Bruno Haible  <bruno@clisp.org>
3006
3007         getloadavg: Update documentation.
3008         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
3009
3010 2010-11-27  Bruno Haible  <bruno@clisp.org>
3011
3012         sys_socket: Fix test whether the functions are declared.
3013         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
3014         not <sys/select.h>.
3015
3016 2010-11-27  Bruno Haible  <bruno@clisp.org>
3017
3018         getpass: Make sure to get system declaration on some platforms.
3019         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
3020         gl_USE_SYSTEM_EXTENSIONS.
3021         * modules/getpass (Depends-on): Add extensions.
3022
3023 2010-11-26  Bruno Haible  <bruno@clisp.org>
3024
3025         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
3026         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
3027         'iconv' module is present.
3028         (ICONV_CONST): New macro.
3029         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
3030         ICONV_CONST.
3031         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
3032         set ICONV_CONST.
3033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
3034         here.
3035         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
3036         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
3037         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
3038         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
3039         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
3040         present.
3041
3042 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
3043
3044         ftoastr: comment fix
3045         * lib/ftoastr.c: "little" -> "little or no" in comment
3046
3047 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
3048
3049         stdint: port to GCC 4.3 + OSX + Octave
3050         On this platform, stdint.h is buggy and defines int64_t to long
3051         long int.  The replacement defined it to long int, causing
3052         problems with C++ style name mangling.  Instead, trust the system
3053         definition if INT64_MAX is defined, and likewise for the unsigned
3054         variant.   Problem reported by Jarno Rajahalme in
3055         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
3056         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
3057         and don't mess with int64_t and INT64_MAX in this case.
3058         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
3059
3060 2010-11-24  Bruno Haible  <bruno@clisp.org>
3061
3062         doc: Corrections regarding MacOS X 10.4 and 10.5.
3063         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
3064         MacOS X.
3065         Reported by Simon Josefsson.
3066
3067 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
3068
3069         Uninstall ".bin" files installed by relocwrapper.
3070         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
3071         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
3072         unless it is already there.
3073
3074 2010-11-21  Bruno Haible  <bruno@clisp.org>
3075
3076         Update for NetBSD 5.0.
3077         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3078         NetBSD; the test fails on NetBSD 5.0.
3079         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3080         about NetBSD.
3081
3082 2010-11-21  Bruno Haible  <bruno@clisp.org>
3083
3084         Update for HP-UX 11.23 and HP-UX 11.31.
3085         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
3086         HP-UX.
3087
3088 2010-11-21  Bruno Haible  <bruno@clisp.org>
3089
3090         Update for MacOS X 10.5.
3091         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
3092         MacOS X; the test fails on MacOS X 10.5.8.
3093         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
3094         about MacOS X.
3095
3096 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
3097
3098         bootstrap: add bootstrap_sync option.
3099         See discussion at
3100         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
3101         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
3102         * build-aux/bootstrap: Accept --bootstrap-sync to update
3103         bootstrap if it is not identical to the local gnulib's
3104         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
3105         enable this by default.  Accept --no-bootstrap-sync to disable
3106         it.
3107
3108 2010-11-20  Bruno Haible  <bruno@clisp.org>
3109
3110         Ensure that <features.h> is included before __GLIBC__ is tested.
3111         * lib/printf-parse.h: Include <features.h>.
3112         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
3113         Reported by Mike Frysinger <vapier@gentoo.org>.
3114
3115         Ensure that <features.h> is included before __GLIBC__ is tested.
3116         * lib/wchar.in.h: Include <features.h>.
3117         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
3118         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
3119         Reported by Mike Frysinger <vapier@gentoo.org>.
3120
3121         Ensure that <features.h> is included before __GLIBC__ is tested.
3122         * lib/arpa_inet.in.h: Include <features.h>.
3123         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
3124         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
3125         Reported by Mike Frysinger <vapier@gentoo.org>.
3126
3127         Ensure that <features.h> is included before __GLIBC__ is tested.
3128         * build-aux/link-warning.h: Include <features.h>.
3129         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
3130         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
3131         Reported by Mike Frysinger <vapier@gentoo.org>.
3132
3133         Ensure that <features.h> is included before __GLIBC__ is tested.
3134         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
3135         Reported by Mike Frysinger <vapier@gentoo.org>.
3136
3137 2010-11-20  Bruno Haible  <bruno@clisp.org>
3138
3139         memmem: Fix autoconf test.
3140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
3141
3142 2010-11-20  Bruno Haible  <bruno@clisp.org>
3143
3144         Port to uClibc.
3145         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
3146         * lib/fcntl.in.h: Likewise.
3147         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
3148         * lib/mbrtowc.c (mbrtowc): Likewise.
3149         * lib/relocatable.c (find_shared_library_fullname): Likewise.
3150         * lib/strerror_r.c: Likewise.
3151         * lib/unistr/u8-strnlen.c: Likewise.
3152         * lib/vasnprintf.c (decimal_point_char): Likewise.
3153         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
3154         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
3156         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3157         * tests/test-sigaction.c (handler, main): Likewise.
3158         * lib/freading.h: Treat uClibc like a non-glibc platform.
3159         * lib/freading.c: Likewise.
3160         * lib/gettext.h: Likewise.
3161         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
3162         Likewise.
3163         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
3164         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3165         * lib/propername.c (proper_name_utf8): Likewise.
3166         * lib/spawn.in.h: Likewise.
3167         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
3168         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
3169         mem_cd_iconveh_internal): Likewise.
3170         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
3171         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
3172         strstr, strcasestr): Likewise.
3173         * lib/unicodeio.c (unicode_to_mb): Likewise.
3174         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
3175         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
3176         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
3177         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
3178         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
3179         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
3180         * lib/unistr/u8-stpncpy.c: Likewise.
3181         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3182         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
3183         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3184         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3185         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3186         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
3187         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
3188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
3189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3190         Likewise.
3191         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3192         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3193         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3195         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3196         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3197         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3198         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3199         * tests/test-getopt.h (OPTIND_MIN): Likewise.
3200         * tests/test-striconveha.c (main): Likewise.
3201         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3202         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
3203         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
3204         * doc/posix-functions/getline.texi: Likewise.
3205         Reported by Mike Frysinger <vapier@gentoo.org>.
3206
3207 2010-11-20  Bruno Haible  <bruno@clisp.org>
3208
3209         nproc: Fix condition.
3210         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
3211         HAVE_PTHREAD_AFFINITY_NP.
3212
3213 2010-11-20  Bruno Haible  <bruno@clisp.org>
3214
3215         Fix a comment.
3216         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
3217
3218 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
3219
3220         ftoastr: don't assume snprintf
3221         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
3222         Implement a subset of snprintf here, by using sprintf safely.
3223         * modules/ftoastr (Depends-on): Remove snprintf.
3224
3225 2010-11-19  Jim Meyering  <meyering@redhat.com>
3226
3227         test-rename.h: fix compilation failure
3228         * tests/test-rename.h (test_rename): Add omitted "}".
3229
3230 2010-11-17  Jim Meyering  <meyering@redhat.com>
3231
3232         maint.mk: add a URL discussing the no-@acronym policy
3233         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
3234
3235 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3236
3237         ftoastr: depend on snprintf, improve comments
3238         * lib/ftoastr.c: Also mention Loitsch's draft.
3239         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
3240         needed in the current implementation, but it might simplify
3241         speeding up the code later.
3242         * modules/ftoastr: Depend on snprintf; this improves portability.
3243         Suggested by Bruno Haible in the same email.
3244
3245         ftoastr: port to hosts lacking strtof and strtold
3246         Problem reported by Bruno Haible in
3247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
3248         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
3249         environment and strtold (and presumably strtof) are not available.
3250         * modules/ftoastr (Files): Add m4/c-strtod.m4.
3251         (configure.ac): Require gl_C99_STRTOLD.
3252
3253 2010-11-18  Bruno Haible  <bruno@clisp.org>
3254
3255         c-strtold: Avoid link error on AIX 7.
3256         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
3257         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
3258         (gl_C_STRTOLD): Test whether strtold_l exists.
3259         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3260
3261 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         intprops: new macro INT_BITS_STRLEN_BOUND
3264         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
3265         ftoastr.h.  This exposes an internal of intprops.h that was formerly
3266         not exposed.  Also, it uses a slightly tighter bound than before;
3267         though this makes no practical difference, we might as well be as
3268         tight as we easily can.
3269
3270         ftoastr: new module, for lossless conversion of floats to short strings
3271         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
3272         * modules/ftoastr: New files.
3273
3274 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3275
3276         bootstrap: port to Solaris sed
3277         * build-aux/bootstrap (get_version): Port to Solaris sed.
3278         See Ralf Wildenhues's note in
3279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
3280
3281 2010-11-14  Jim Meyering  <meyering@redhat.com>
3282
3283         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3284         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3285         and move definition closer to sole use.
3286
3287 2010-11-13  Jim Meyering  <meyering@redhat.com>
3288
3289         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3290         Now we require at least autoconf-2.59, which means the work-around
3291         is no longer needed.
3292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3293         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3294         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3295         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3296         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3297
3298 2010-11-13  Bruno Haible  <bruno@clisp.org>
3299
3300         rename, renameat: Avoid test failures at NFS mounted locations.
3301         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3302         functions.
3303         (test_rename): Use assert_nonexistent.
3304         * tests/test-rename.c: Include <dirent.h>.
3305         * tests/test-renameat.c: Likewise.
3306         Reported by Gary V. Vaughan <gary@gnu.org>.
3307
3308         rename, renameat: Document Linux bug with NFS
3309         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3310         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3311         * doc/posix-functions/renameat.texi: Likewise.
3312         Suggested by Eric Blake.
3313
3314 2010-11-13  Bruno Haible  <bruno@clisp.org>
3315
3316         rename test: Add comments.
3317         * tests/test-rename.h (test_rename): Add structure and comments.
3318
3319 2010-11-13  Eric Blake  <eblake@redhat.com>
3320
3321         maintainer-makefile: cover a few more files
3322         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3323         scripts generated within C files, for libvirt.
3324
3325 2010-11-13  Bruno Haible  <bruno@clisp.org>
3326
3327         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3328         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3329         character, return the number of bytes that belong together, not always
3330         1.
3331         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3332         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3333         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3334         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3335         number of bytes of an invalid character.
3336         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3337         (main): Invoke it.
3338         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3339         results.
3340         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3341         malformed byte sequences.
3342         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3343         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3344         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3345         Reported by Ben Pfaff and Paolo Bonzini.
3346
3347 2010-11-13  Bruno Haible  <bruno@clisp.org>
3348
3349         openat: Work around glibc bug with fchownat() and empty file names.
3350         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3351         (gl_FUNC_FCHOWNAT): Invoke it.
3352         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3353         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3354         Reported by Gary V. Vaughan <gary@gnu.org>.
3355
3356 2010-11-13  Bruno Haible  <bruno@clisp.org>
3357
3358         openat: Ensure autoconf macro ordering.
3359         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3360         gl_USE_SYSTEM_EXTENSIONS.
3361         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3362
3363 2010-11-13  Bruno Haible  <bruno@clisp.org>
3364
3365         Update comments.
3366         * lib/unistr/u8-check.c: Update file name in comments.
3367         * lib/unistr/u8-mblen.c: Likewise.
3368         * lib/unistr/u8-prev.c: Likewise.
3369         * lib/unistr/u8-strmblen.c: Likewise.
3370         * lib/unistr/u8-strmbtouc.c: Likewise.
3371
3372 2010-11-13  Jim Meyering  <meyering@redhat.com>
3373
3374         tests: avoid test failure on Solaris 10 due to lack of PATH export
3375         * tests/test-update-copyright.sh: Don't forget to export PATH.
3376
3377         init.sh: ensure that IFS is defined, just in case...
3378         * tests/init.sh (setup_): Ensure that IFS is defined,
3379         so that saving and restoring it works as expected.  This
3380         appears to be useful at least for an old version of dash
3381         from a long time ago (RH 6).  See here for details:
3382         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3383
3384         maint.mk: tighten "test a == b" check
3385         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3386         test to files that contain something like #!/bin/sh.
3387         Without this, coreutils would get two false positives in
3388         the comments of C source files.
3389
3390 2010-11-12  Eric Blake  <eblake@redhat.com>
3391
3392         bootstrap: fix typo in previous attempt
3393         * build-aux/bootstrap (buildreq): Correct the grouping.
3394         Reported by Paul Eggert.
3395
3396         maintainer-makefile: prohibit test x == x
3397         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3398         Based on a report by Matthias Bolte.
3399
3400         bootstrap: allow FreeBSD gzip
3401         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3402         which has no '.' and goes to stderr.
3403         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3404         Reported by Matthias Bolte.
3405
3406         maintainer-makefile: check for i18n setup
3407         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3408         will likely work.
3409
3410 2010-11-12  Bruno Haible  <bruno@clisp.org>
3411
3412         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3413         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3414         * lib/nanosleep.c (nanosleep): Likewise.
3415
3416 2010-11-11  Bruno Haible  <bruno@clisp.org>
3417
3418         fcntl-h: Fix for use of C++ on glibc systems.
3419         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3420         also on glibc systems in C++ mode.
3421         Reported by Gary V. Vaughan <gary@gnu.org>.
3422
3423 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3424
3425         mknod: avoid false failure with dash
3426         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3427
3428 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3429
3430         unlink: Fix "is it should" typo in diagnostic.
3431         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3432         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3433
3434 2010-11-11  Bruno Haible  <bruno@clisp.org>
3435
3436         Tests for module 'strerror_r-posix'.
3437         * modules/strerror_r-posix-tests: New file.
3438         * tests/test-strerror_r.c: New file.
3439         * tests/test-string-c++.cc: Check the signature of strerror_r.
3440
3441         New module 'strerror_r-posix'.
3442         * lib/string.in.h (strerror_r): New declaration.
3443         * lib/strerror_r.c: New file.
3444         * m4/strerror_r.m4: New file.
3445         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3446         of strerror_r.
3447         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3448         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3449         * modules/strerror_r-posix: New file.
3450         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3451         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3452         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3453         portability problems.
3454
3455 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3456
3457         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3458         line is also considered for output. Quoted function name in shell
3459         command, so temporary files for functions like MyClass::operator()
3460         are removed correctly without errors.
3461
3462 2010-11-09  Bruno Haible  <bruno@clisp.org>
3463
3464         * doc/posix-functions/strerror.texi: List more failing platforms.
3465
3466         * doc/posix-functions/strerror.texi: Add a comment.
3467
3468 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3469
3470         fdopendir: fix bug on MacOS X when low on file descriptors
3471
3472         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3473         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3474         All callers changed.
3475         (fdopendir): Invoke save_cwd at the top level, not after using
3476         multiple dup() calls to use up file descriptors.  Then retry
3477         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3478         less than the maximum number of open file descriptors, because
3479         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3480         on Mac OS X 10.6.4 for tar 1.24
3481         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3482         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3483         and for tar 1.25
3484         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3485
3486 2010-11-07  Bruno Haible  <bruno@clisp.org>
3487
3488         vasnprintf: Support I flag on glibc systems.
3489         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3490         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3491         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3492         snprintf function.
3493         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3494         glibc systems.
3495         * tests/test-vasnprintf-posix3.c: New file.
3496         * modules/vasnprintf-posix-tests (Files): Add it.
3497         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3498
3499 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3500
3501         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3502         * MODULES.html.sh: For compiler warnings, use name
3503         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3504
3505 2010-11-05  Eric Blake  <eblake@redhat.com>
3506
3507         ceil, floor: avoid spurious failure with icc
3508         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3509         [denormals-as-zero] when optimizing without -mieee-fp option.
3510         * tests/test-floorf2.c (floorf_reference): Likewise.
3511         * tests/test-ceilf1.c (dummy): New function.
3512         (main): Use it to outsmart icc's optimization.
3513         * tests/test-floorf1.c (dummy, main): Likewise.
3514
3515         tests: require working signbit
3516         * modules/ceilf-tests (Depends-on): Add signbit.
3517         * modules/ceill-tests (Depends-on): Likewise.
3518         * modules/floorf-tests (Depends-on): Likewise.
3519         * modules/floorl-tests (Depends-on): Likewise.
3520         * modules/round-tests (Depends-on): Likewise.
3521         * modules/roundf-tests (Depends-on): Likewise.
3522         * modules/roundl-tests (Depends-on): Likewise.
3523         * modules/trunc-tests (Depends-on): Likewise.
3524         * modules/truncf-tests (Depends-on): Likewise.
3525         * modules/truncl-tests (Depends-on): Likewise.
3526
3527         strtod: work around icc bug
3528         * lib/strtod.c (minus_zero): Define to working value.
3529         (strtod): Use it to avoid icc bug.
3530
3531         copysign: enhance tests
3532         * modules/copysign-tests (Files): Add minus-zero.h.
3533         * tests/test-copysign.c (main): Also test zeros.
3534
3535 2010-11-04  Eric Blake  <eblake@redhat.com>
3536
3537         ceil, floor, round, trunc: enhance tests of -0
3538         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3539         * tests/test-ceill.c (main): Likewise.
3540         * tests/test-floorf1.c (main): Likewise.
3541         * tests/test-floorl.c (main): Likewise.
3542         * tests/test-round1.c (main): Likewise.
3543         * tests/test-roundf1.c (main): Likewise.
3544         * tests/test-roundl.c (main): Likewise.
3545         * tests/test-trunc1.c (main): Likewise.
3546         * tests/test-truncf1.c (main): Likewise.
3547         * tests/test-truncl.c (main): Likewise.
3548
3549 2010-11-04  Eric Blake  <eblake@redhat.com>
3550
3551         frexp, tests: work around ICC bug with -zero
3552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3553         works with more compilers.
3554         * tests/minus-zero.h: New file.
3555         * modules/ceilf-tests (Files): Include it.
3556         * modules/ceill-tests (Files): Likewise.
3557         * modules/floorf-tests (Files): Likewise.
3558         * modules/floorl-tests (Files): Likewise.
3559         * modules/frexp-nolibm-tests (Files): Likewise.
3560         * modules/frexp-tests (Files): Likewise.
3561         * modules/frexpl-nolibm-tests (Files): Likewise.
3562         * modules/frexpl-tests (Files): Likewise.
3563         * modules/isnan-tests (Files): Likewise.
3564         * modules/isnand-nolibm-tests (Files): Likewise.
3565         * modules/isnand-tests (Files): Likewise.
3566         * modules/isnanf-nolibm-tests (Files): Likewise.
3567         * modules/isnanf-tests (Files): Likewise.
3568         * modules/isnanl-nolibm-tests (Files): Likewise.
3569         * modules/isnanl-tests (Files): Likewise.
3570         * modules/round-tests (Files): Likewise.
3571         * modules/roundf-tests (Files): Likewise.
3572         * modules/roundl-tests (Files): Likewise.
3573         * modules/ldexpl-tests (Files): Likewise.
3574         * modules/signbit-tests (Files): Likewise.
3575         * modules/snprintf-posix-tests (Files): Likewise.
3576         * modules/sprintf-posix-tests (Files): Likewise.
3577         * modules/strtod-tests (Files): Likewise.
3578         * modules/trunc-tests (Files): Likewise.
3579         * modules/truncf-tests (Files): Likewise.
3580         * modules/truncl-tests (Files): Likewise.
3581         * modules/vsnprintf-posix-tests (Files): Likewise.
3582         * modules/vsprintf-posix-tests (Files): Likewise.
3583         * modules/vasnprintf-posix-tests (Files): Likewise.
3584         * modules/vasprintf-posix-tests (Files): Likewise.
3585         * tests/test-ceilf1.c (main): Use it.
3586         * tests/test-ceill.c (main): Likewise.
3587         * tests/test-floorf1.c (main): Likewise.
3588         * tests/test-floorl.c (main): Likewise.
3589         * tests/test-frexp.c (main): Likewise.
3590         * tests/test-frexpl.c (main): Likewise.
3591         * tests/test-isnan.c (main): Likewise.
3592         * tests/test-isnand.h (main): Likewise.
3593         * tests/test-isnanf.h (main): Likewise.
3594         * tests/test-isnanl.h (main): Likewise.
3595         * tests/test-ldexpl.c (main): Likewise.
3596         * tests/test-round.c (main): Likewise.
3597         * tests/test-roundf.c (main): Likewise.
3598         * tests/test-roundl.c (main): Likewise.
3599         * tests/test-signbit.c (test_signbitf, test_signbitd)
3600         (test_signbitl): Likewise.
3601         * tests/test-snprintf-posix.h (test_function): Likewise.
3602         * tests/test-sprintf-posix.h (test_function): Likewise.
3603         * tests/test-strtod.c (main): Likewise.
3604         * tests/test-trunc1.c (main): Likewise.
3605         * tests/test-truncf1.c (main): Likewise.
3606         * tests/test-truncl.c (main): Likewise.
3607
3608         isnanl: work around icc bug
3609         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3610
3611 2010-11-03  Eric Blake  <eblake@redhat.com>
3612
3613         tests: fix compiler warnings
3614         * tests/test-getopt.h (test_getopt): Fix condition.
3615         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3616         * tests/test-pipe2.c (main): Likewise.
3617         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3618
3619         utimens: fix broken m4 test
3620         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3621
3622 2010-10-28  Bruno Haible  <bruno@clisp.org>
3623
3624         posix_spawn*, getdtablesize: Relax license.
3625         * modules/posix_spawn (License): Change to LGPLv2+.
3626         * modules/posix_spawnp (License): Likewise.
3627         * modules/posix_spawn-internal (License): Likewise.
3628         * modules/posix_spawnattr_init (License): Likewise.
3629         * modules/posix_spawnattr_getflags (License): Likewise.
3630         * modules/posix_spawnattr_setflags (License): Likewise.
3631         * modules/posix_spawnattr_getpgroup (License): Likewise.
3632         * modules/posix_spawnattr_setpgroup (License): Likewise.
3633         * modules/posix_spawnattr_getschedparam (License): Likewise.
3634         * modules/posix_spawnattr_setschedparam (License): Likewise.
3635         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3636         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3637         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3638         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3639         * modules/posix_spawnattr_getsigmask (License): Likewise.
3640         * modules/posix_spawnattr_setsigmask (License): Likewise.
3641         * modules/posix_spawnattr_destroy (License): Likewise.
3642         * modules/posix_spawn_file_actions_init (License): Likewise.
3643         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3644         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3645         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3646         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3647         * modules/getdtablesize (License): Likewise.
3648         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3649
3650 2010-10-26  Bruno Haible  <bruno@clisp.org>
3651
3652         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3653         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3654         Cygwin and mingw.
3655         Suggested by Eric Blake.
3656
3657 2010-10-26  Bruno Haible  <bruno@clisp.org>
3658
3659         stdio: Work around compilation error due to renameat() on Solaris 10.
3660         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3661         * lib/renameat.c: Don't include <unistd.h> here.
3662         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3663         Reported by Paul Eggert and Eric Blake.
3664
3665 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3666
3667         renameat: port to Solaris 10, which declares renameat in unistd.h
3668
3669         * lib/renameat.c: Include unistd.h before stdio.h, because
3670         Solaris 10 declares renameat in unistd.h.  Problem encountered
3671         when building GNU tar 1.24 on Solaris 10.
3672
3673 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3674
3675         fdopendir: fix C89 compilation
3676         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3677         compilers.
3678
3679 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3680
3681         inttostr: simplify by removing unnecessary redundancy
3682         * lib/anytostr.c: Don't include verify.h.
3683         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3684         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3685         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3686         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3687         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3688         Likewise.
3689         * modules/inttostr (Depends-on): Remove 'verify'.
3690
3691 2010-10-23  Bruno Haible  <bruno@clisp.org>
3692
3693         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3694         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3695         Reported by Eric Blake.
3696
3697 2010-10-23  Bruno Haible  <bruno@clisp.org>
3698
3699         Tests: Fix LOCALE_JA on MirBSD 10.
3700         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3701         to an UTF-8 locale.
3702         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3703         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3704         Reported by Eric Blake.
3705
3706 2010-10-21  Bruno Haible  <bruno@clisp.org>
3707
3708         nl_langinfo test: Avoid test failure on NetBSD 5.
3709         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3710         Reported by Eric Blake.
3711
3712 2010-10-21  Eric Blake  <eblake@redhat.com>
3713
3714         c-stack: work around libsigsegv 2.8 bug
3715         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3716         overflow on at least PowerPC64.
3717
3718 2010-10-17  Bruno Haible  <bruno@clisp.org>
3719
3720         userspec: Drop redundant file.
3721         * modules/userspec (Files): Remove lib/inttostr.h.
3722
3723 2010-10-17  Bruno Haible  <bruno@clisp.org>
3724
3725         nl_langinfo tests: Silence some warnings.
3726         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3727         Reported by Jim Meyering.
3728
3729 2010-10-17  Bruno Haible  <bruno@clisp.org>
3730
3731         Make use of GCC's attribute __alloc_size__.
3732         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3733         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3734         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3735         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3736         __alloc_size__.
3737         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3738         Suggested by Jim Meyering.
3739
3740 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3741
3742         bootstrap: anchor .gitignore entries.
3743         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3744         with...
3745         (insert_vc_ignore): ... this new function, which prepends `/' to
3746         all .gitignore entries before passing them to
3747         insert_sorted_if_absent.
3748
3749 2010-10-16  Bruno Haible  <bruno@clisp.org>
3750
3751         nextafter: Fix configure check.
3752         * modules/nextafter (configure.ac): Correct expected prototype.
3753
3754 2010-10-16  Bruno Haible  <bruno@clisp.org>
3755
3756         termios: Update documentation.
3757         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3758
3759 2010-10-16  Bruno Haible  <bruno@clisp.org>
3760
3761         tests: Make them compile with TinyCC.
3762         * tests/test-strstr.c (main): Remove parentheses around array
3763         initializer.
3764
3765 2010-10-15  Eric Blake  <eblake@redhat.com>
3766
3767         ignore-value: make header idempotent
3768         * lib/ignore-value.h: Add double-inclusion guards.
3769         Reported by Stefan Berger.
3770
3771 2010-10-15  Jim Meyering  <meyering@redhat.com>
3772
3773         GNUmakefile: handle "stable" target, not "major"
3774         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3775         lists in maint.mk and announce-gen.  Without this, "make stable"
3776         would fail to ensure that $(VERSION) is up to date.
3777
3778 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3779
3780         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3781         & co.
3782
3783 2010-10-14  Bruno Haible  <bruno@clisp.org>
3784
3785         vasnprintf: Don't set errno to 0.
3786         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3787         block that sets it to 0.
3788         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3789
3790 2010-10-14  Bruno Haible  <bruno@clisp.org>
3791
3792         socketlib: Fix.
3793         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3794         gl_PREREQ_SYS_H_WINSOCK2.
3795         Reported by Ian Beckwith <ianb@erislabs.net>.
3796
3797 2010-10-13  Jim Meyering  <meyering@redhat.com>
3798
3799         test-select-stdin.c: avoid warn_unused_result warnings
3800         * tests/test-select-stdin.c: Include "macros.h".
3801         ASSERT that read and fflush succeed.
3802
3803 2010-10-13  Jim Meyering  <meyering@redhat.com>
3804
3805         git-version-gen: do require git-VC'd files in cwd
3806         * build-aux/git-version-gen: Reject a git version string
3807         if there are no commits associated with the current directory.
3808         This avoids an unlikely false-positive (unrelated dir whose parent
3809         repository also contains a tag matching v*), as pointed out
3810         by Giuseppe Scrivano in
3811         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3812
3813 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         argv-iter: omit nonconforming declaration
3816         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3817         enum arg_iter_err declaration, which doesn't conform to C99.
3818         Solaris 10 cc warns about this.
3819
3820 2010-10-13  Eric Blake  <eblake@redhat.com>
3821
3822         termios: fix compilation on mingw
3823         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3824         (gl_TERMIOS_H): Adjust it on mingw.
3825         * modules/termios (Makefile.am): Substitute new key.
3826         * lib/termios.in.h (includes): Make include_next conditional.
3827         * doc/posix-headers/termios.texi (termios.h): Update
3828         documentation.
3829         Reported by Daniel P. Berrange.
3830
3831 2010-10-13  Jim Meyering  <meyering@redhat.com>
3832
3833         git-version-gen: don't require that .git/ be in the current dir
3834         * build-aux/git-version-gen: Adjust this script so that it works
3835         when run from any working directory beneath the top-level .git/-
3836         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3837         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3838
3839         test-select: avoid warn_unused_result warnings
3840         * tests/test-select.c: Include "macros.h".
3841         ASSERT that each call to read, write, and pipe succeeds.
3842         While not technically required, also check each "close".
3843         * modules/select-tests (Files): Add tests/macros.h.
3844
3845         test-symlinkat: remove declaration of unused local
3846         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3847
3848         test-inttostr: avoid shadowing warnings
3849         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3850         and use malloc rather than the stack for the same reason as
3851         mentioned in the comment justifying the other allocation.
3852
3853 2010-10-11  Bruno Haible  <bruno@clisp.org>
3854
3855         stdlib: Allow multiple gnulib generated replacements to coexist.
3856         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3857         Reported by Sam Steingold <sds@gnu.org>.
3858
3859 2010-10-11  Jim Meyering  <meyering@redhat.com>
3860
3861         fix a documentation typo
3862         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3863
3864 2010-10-11  Eric Blake  <eblake@redhat.com>
3865
3866         futimens: work around Solaris 11 bug
3867         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3868         * tests/test-futimens.h (test_futimens): Enhance, rather than
3869         weaken test.
3870         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3871
3872 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3873
3874         Indentation.
3875         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3876         higher-level operators more to the left.
3877
3878 2010-10-11  Jim Meyering  <meyering@redhat.com>
3879
3880         test-futimens: avoid unwarranted test failure on Solaris 5.11
3881         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3882         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3883         because it tries to dereference the NULL name argument.
3884
3885 2010-10-11  Bruno Haible  <bruno@clisp.org>
3886
3887         Indentation.
3888         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3889         indentation.
3890
3891 2010-10-11  Jim Meyering  <meyering@redhat.com>
3892
3893         spawn.in.h: make indentation consistent with parentheses
3894         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3895         Make indentation consistent with parentheses.
3896
3897 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3898
3899         Fix mismatched parens in previous commit
3900         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3901         parens.
3902
3903 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3904
3905         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3906
3907         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3908         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3909         * lib/malloca.c: Include "verify.h".
3910         (verify1): Remove, replacing with a verify call.
3911         * lib/relocwrapper.c (verify1): Likewise.
3912         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3913         Likewise.
3914         * modules/malloca (Depends-on): Add 'verify'.
3915         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3916         * modules/vasnprintf (Depends-on): Add 'verify'.
3917         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3918         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3919         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3920         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3921         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3922         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3923         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3924
3925         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3926
3927         Formerly the style was sometimes 2*X - 1, because the C standard
3928         was wrongly thought to disallow ?: in integral constant expressions.
3929         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3930         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3931         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3932         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3933         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3934         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3935         verify that time_t cannot be floating.
3936
3937 2010-10-08  Eric Blake  <eblake@redhat.com>
3938
3939         time: enforce recent POSIX ruling that time_t is integral
3940         * lib/time.in.h (__time_t_must_be_integral): Detect any
3941         problematic systems, allowing the rest of gnulib to assume POSIX.
3942
3943 2010-10-08  Jim Meyering  <meyering@redhat.com>
3944
3945         fdopendir: fix a bug on systems lacking openat and /proc support
3946         OpenBSD 4.7 is one such system.  The most noticeable effect was
3947         failure of any application making nontrivial use of fts: rm, du,
3948         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3949           ./rm: traversal failed: `a': Bad file descriptor
3950         Debugging that, you see that even though FD 6 was closed just
3951         prior to the opendir call in fd_clone_opendir, its resulting
3952         dir->dd_fd was 8, rather than the expected value of 6:
3953
3954         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3955         93                close (fd);
3956         (gdb) n
3957         94                dir = fd_clone_opendir (dupfd);
3958         (gdb) n
3959         95                saved_errno = errno;
3960         (gdb) p dir->dd_fd
3961         $11 = 8
3962
3963         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3964         The problem is that on OpenBSD, fd_clone_opendir has to resort
3965         to using the old-style save/restore CWD mechanism, due to its
3966         lack of openat/proc support, and *that* would steal the FD (6)
3967         that opendir was supposed to use.
3968
3969         The fix is to squirrel away the desired FD so that save_cwd uses a
3970         different one, and then free the dest FD right before calling opendir.
3971         That guarantees opendir will use the required file descriptor.
3972
3973         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3974
3975 2010-10-08  Bruno Haible  <bruno@clisp.org>
3976
3977         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3978         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3979
3980 2010-10-08  Bruno Haible  <bruno@clisp.org>
3981
3982         nanosleep: Make replacement POSIX compliant.
3983         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3984         is out of range.
3985         Reported by Jim Meyering.
3986
3987 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3988
3989         bootstrap: add hook for altering gnulib.mk, for Bison
3990         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3991         the Bison bootstrapping process can rewrite file names and variables
3992         in this file before later parts of 'bootstrap' use the file.
3993         Bison wants to include lib/gnulib.mk from the top-level makefile,
3994         so it needs the file names in this file to be relative to the top
3995         level, not relative to lib; plus it needs variable names to be
3996         rewritten.
3997         (slurp): Use the new function.
3998
3999         bootstrap: reformat for readability
4000         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
4001
4002 2010-10-08  Eric Blake  <eblake@redhat.com>
4003
4004         docs: update cygwin progress
4005         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
4006         1.7.7.
4007         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
4008         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
4009         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
4010         * doc/posix-functions/carg.texi (carg): Likewise.
4011         * doc/posix-functions/cargf.texi (cargf): Likewise.
4012         * doc/posix-functions/casin.texi (casin): Likewise.
4013         * doc/posix-functions/casinf.texi (casinf): Likewise.
4014         * doc/posix-functions/casinh.texi (casinh): Likewise.
4015         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
4016         * doc/posix-functions/catan.texi (catan): Likewise.
4017         * doc/posix-functions/catanf.texi (catanf): Likewise.
4018         * doc/posix-functions/catanh.texi (catanh): Likewise.
4019         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
4020         * doc/posix-functions/ccos.texi (ccos): Likewise.
4021         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
4022         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
4023         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
4024         * doc/posix-functions/cexp.texi (cexp): Likewise.
4025         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
4026         * doc/posix-functions/cimag.texi (cimag): Likewise.
4027         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
4028         * doc/posix-functions/clog.texi (clog): Likewise.
4029         * doc/posix-functions/clogf.texi (clogf): Likewise.
4030         * doc/posix-functions/conj.texi (conj): Likewise.
4031         * doc/posix-functions/conjf.texi (conjf): Likewise.
4032         * doc/posix-functions/cpow.texi (cpow): Likewise.
4033         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
4034         * doc/posix-functions/cproj.texi (cproj): Likewise.
4035         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
4036         * doc/posix-functions/creal.texi (creal): Likewise.
4037         * doc/posix-functions/crealf.texi (crealf): Likewise.
4038         * doc/posix-functions/csin.texi (csin): Likewise.
4039         * doc/posix-functions/csinf.texi (csinf): Likewise.
4040         * doc/posix-functions/csinh.texi (csinh): Likewise.
4041         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
4042         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
4043         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
4044         * doc/posix-functions/ctan.texi (ctan): Likewise.
4045         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
4046         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
4047         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
4048         * doc/posix-headers/complex.texi (complex.h): Likewise.
4049
4050 2010-10-07  Jim Meyering  <meyering@redhat.com>
4051
4052         parse-datetime: avoid compilation failure on OpenBSD 4.7
4053         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
4054         This works around a compilation failure on OpenBSD 4.7:
4055         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
4056
4057 2010-10-07  Eric Blake  <eblake@redhat.com>
4058
4059         docs: update cygwin progress
4060         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
4061         1.7.6.
4062         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4063         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
4064         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
4065         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
4066         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
4067         Likewise.
4068         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
4069         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
4070         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
4071         Likewise.
4072         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
4073         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
4074         Likewise.
4075         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
4076         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
4077         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
4078         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
4079         Likewise.
4080         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
4081         Likewise.
4082         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
4083
4084         docs: update parse-datetime history
4085         * doc/parse-datetime.texi (Authors of parse_datetime): Better
4086         documentation of this function's history and alternatives.
4087
4088         cygwin: use more robust version check
4089         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
4090         exclude an eventual cygwin 1.9.1.
4091         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4092         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4093         (gl_FUNC_STRCASESTR): Likewise.
4094         Reported by Bruno Haible.
4095
4096 2010-10-06  Bruno Haible  <bruno@clisp.org>
4097
4098         string, sys_select: Avoid #including large headers unless necessary.
4099         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
4100         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
4101         OSF/1, BeOS, Haiku.
4102         Reported by Jim Meyering.
4103
4104 2010-10-05  Eric Blake  <eblake@redhat.com>
4105
4106         memmem, strstr, strcasestr: fix bug with long periodic needle
4107         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
4108         periodic needle having false positive.
4109         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
4110         and cygwin 1.7.7.
4111         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
4112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
4113         (gl_FUNC_STRCASESTR): Likewise.
4114         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4115         * tests/test-memmem.c (main): Expose the bug.
4116         * tests/test-strcasestr.c (main): Likewise.
4117         * tests/test-strstr.c (main): Likewise.
4118         * tests/test-c-strcasestr.c (main): Likewise.
4119         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
4120         * doc/posix-functions/strstr.texi (strstr): Likewise.
4121         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4122         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
4123
4124 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4125
4126         parse-datetime: do some more renaming
4127         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
4128         parse_datetime, not get_date.  Mention the renaming.
4129         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
4130         in comments.
4131         * m4/bison.m4: Likewise.
4132
4133 2010-10-05  Eric Blake  <eblake@redhat.com>
4134
4135         parse-datetime: better name than get_date
4136         * NEWS: Reword the deprecation notice.
4137         * modules/get_date: Rename to modules/parse-datetime.
4138         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
4139         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
4140         * lib/get_date.y: Rename to lib/parse-datetime.y.
4141         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
4142         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
4143         * doc/getdate.texi: Provide fallback wrapper.
4144         * lib/getdate.h: Move guts, and wrap...
4145         * lib/parse-datetime.h: ...new file.
4146         * lib/parse-datetime.y (get_date): Rename...
4147         (parse_datetime): ...to this.
4148         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
4149         (gl_PARSE_DATETIME): ...to this.
4150         * doc/posix-functions/getdate.texi (get_date): Provide fallback
4151         documentation.
4152         * modules/getdate (Files): Provide fallback docs and header.
4153         (Notice, Depends-on): Update references.
4154         * tests/test-parse-datetime.c: Likewise.
4155         * DEPENDENCIES: Likewise.
4156         * MODULES.html.sh (Date and time <time.h>): Likewise.
4157         * doc/parse-datetime.texi (Date input formats)
4158         (Authors of parse_datetime): Likewise.
4159         * modules/parse-datetime (Files, configure.ac, Makefile.am)
4160         (Include): Likewise.
4161         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
4162         * gnulib-tool: Likewise.
4163         * m4/bison.m4 (gl_BISON): Likewise.
4164         Suggested by Bruno Haible.
4165
4166 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4167
4168         more ports to Solaris tr, which needs [] around ranges
4169         * gnulib-tool: Solaris tr needs [] around ranges.
4170         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4171         * tests/test-pipe-filter-gi1.c (main): Likewise.
4172         * tests/test-pipe-filter-ii1.c (main): Likewise.
4173
4174 2010-10-05  Eric Blake  <eblake@redhat.com>
4175
4176         bootstrap: fix Solaris regression
4177         * build-aux/bootstrap (check_versions): Solaris tr still needs []
4178         around ranges.
4179         Reported by Pádraig Brady.
4180
4181         bootstrap: work with pkg-config
4182         * build-aux/bootstrap (check_versions): Also transliterate - in
4183         prerequisite name.
4184         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
4185         prerequisites that were already found, to avoid confusion.
4186         Reported by Justin Clift.
4187
4188         faccessat: remove unused wrappers
4189         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
4190         presence of these wrappers dragged in -lgen on Solaris.
4191         Reported by Clemens Brogi; fix suggested by Paul Eggert.
4192
4193 2010-10-05  Jim Meyering  <meyering@redhat.com>
4194
4195         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
4196         * Makefile (sc_pragma_columns): New syntax-check rule.
4197
4198 2010-10-04  Bruno Haible  <bruno@clisp.org>
4199
4200         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
4201         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
4202         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
4203         Reported by Bruce Korb and Eric Blake.
4204
4205 2010-10-04  Bruno Haible  <bruno@clisp.org>
4206
4207         threadlib: Make option --with-libpth-prefix work.
4208         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
4209         use $LIBPTH, not just -lpth.
4210
4211 2010-10-04  Bruno Haible  <bruno@clisp.org>
4212
4213         Avoid line length limitation from HP NonStop system header files.
4214         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
4215         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
4216         * lib/ctype.in.h: Likewise.
4217         * lib/dirent.in.h: Likewise.
4218         * lib/errno.in.h: Likewise.
4219         * lib/fcntl.in.h: Likewise.
4220         * lib/float.in.h: Likewise.
4221         * lib/getopt.in.h: Likewise.
4222         * lib/iconv.in.h: Likewise.
4223         * lib/inttypes.in.h: Likewise.
4224         * lib/langinfo.in.h: Likewise.
4225         * lib/locale.in.h: Likewise.
4226         * lib/math.in.h: Likewise.
4227         * lib/netdb.in.h: Likewise.
4228         * lib/netinet_in.in.h: Likewise.
4229         * lib/poll.in.h: Likewise.
4230         * lib/pthread.in.h: Likewise.
4231         * lib/pty.in.h: Likewise.
4232         * lib/sched.in.h: Likewise.
4233         * lib/se-selinux.in.h: Likewise.
4234         * lib/search.in.h: Likewise.
4235         * lib/signal.in.h: Likewise.
4236         * lib/spawn.in.h: Likewise.
4237         * lib/stdarg.in.h: Likewise.
4238         * lib/stddef.in.h: Likewise.
4239         * lib/stdint.in.h: Likewise.
4240         * lib/stdio.in.h: Likewise.
4241         * lib/stdlib.in.h: Likewise.
4242         * lib/string.in.h: Likewise.
4243         * lib/strings.in.h: Likewise.
4244         * lib/sys_file.in.h: Likewise.
4245         * lib/sys_ioctl.in.h: Likewise.
4246         * lib/sys_select.in.h: Likewise.
4247         * lib/sys_socket.in.h: Likewise.
4248         * lib/sys_stat.in.h: Likewise.
4249         * lib/sys_time.in.h: Likewise.
4250         * lib/sys_times.in.h: Likewise.
4251         * lib/sys_utsname.in.h: Likewise.
4252         * lib/sys_wait.in.h: Likewise.
4253         * lib/sysexits.in.h: Likewise.
4254         * lib/termios.in.h: Likewise.
4255         * lib/time.in.h: Likewise.
4256         * lib/unistd.in.h: Likewise.
4257         * lib/wchar.in.h: Likewise.
4258         * lib/wctype.in.h: Likewise.
4259         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
4260         * modules/ctype (Makefile.am): Likewise.
4261         * modules/dirent (Makefile.am): Likewise.
4262         * modules/errno (Makefile.am): Likewise.
4263         * modules/fcntl-h (Makefile.am): Likewise.
4264         * modules/float (Makefile.am): Likewise.
4265         * modules/getopt-posix (Makefile.am): Likewise.
4266         * modules/iconv-h (Makefile.am): Likewise.
4267         * modules/inttypes (Makefile.am): Likewise.
4268         * modules/langinfo (Makefile.am): Likewise.
4269         * modules/locale (Makefile.am): Likewise.
4270         * modules/math (Makefile.am): Likewise.
4271         * modules/netdb (Makefile.am): Likewise.
4272         * modules/netinet_in (Makefile.am): Likewise.
4273         * modules/poll-h (Makefile.am): Likewise.
4274         * modules/pthread (Makefile.am): Likewise.
4275         * modules/pty (Makefile.am): Likewise.
4276         * modules/sched (Makefile.am): Likewise.
4277         * modules/search (Makefile.am): Likewise.
4278         * modules/selinux-h (Makefile.am): Likewise.
4279         * modules/signal (Makefile.am): Likewise.
4280         * modules/spawn (Makefile.am): Likewise.
4281         * modules/stdarg (Makefile.am): Likewise.
4282         * modules/stddef (Makefile.am): Likewise.
4283         * modules/stdint (Makefile.am): Likewise.
4284         * modules/stdio (Makefile.am): Likewise.
4285         * modules/stdlib (Makefile.am): Likewise.
4286         * modules/string (Makefile.am): Likewise.
4287         * modules/strings (Makefile.am): Likewise.
4288         * modules/sys_file (Makefile.am): Likewise.
4289         * modules/sys_ioctl (Makefile.am): Likewise.
4290         * modules/sys_select (Makefile.am): Likewise.
4291         * modules/sys_socket (Makefile.am): Likewise.
4292         * modules/sys_stat (Makefile.am): Likewise.
4293         * modules/sys_time (Makefile.am): Likewise.
4294         * modules/sys_times (Makefile.am): Likewise.
4295         * modules/sys_utsname (Makefile.am): Likewise.
4296         * modules/sys_wait (Makefile.am): Likewise.
4297         * modules/sysexits (Makefile.am): Likewise.
4298         * modules/termios (Makefile.am): Likewise.
4299         * modules/time (Makefile.am): Likewise.
4300         * modules/unistd (Makefile.am): Likewise.
4301         * modules/wchar (Makefile.am): Likewise.
4302         * modules/wctype (Makefile.am): Likewise.
4303
4304 2010-10-04  Bruno Haible  <bruno@clisp.org>
4305
4306         read-file tests: Avoid a test failure on NonStop Kernel.
4307         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4308         a regular file.
4309         Reported by Joachim Schmitz <schmitz@hp.com>.
4310
4311 2010-10-03  Bruno Haible  <bruno@clisp.org>
4312
4313         gnulib-tool: Fixes for --create-testdir with --libtool.
4314         * gnulib-tool (func_get_automake_snippet): Don't augment
4315         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4316         an executable.
4317         (func_create_testdir): Handle module 'alloca' like func_import.
4318         Reported by Bruce Korb <bruce.korb@gmail.com>.
4319
4320 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4321
4322         Avoid some lines longer than 80 characters.
4323         * lib/stdint.in.h: Break long comment lines.
4324         * lib/math.in.h: Likewise.
4325         (_GL_NUM_UINT_WORDS): New macro, for readability.
4326         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4327         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4328         * lib/stdlib.in.h: Likewise.
4329         * lib/spawn.in.h: Likewise.
4330         * lib/sys_socket.in.h: Update an URL.
4331         * lib/sys_stat.in.h: Break long line.
4332
4333 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4334
4335         Improve pmccabe2html.
4336         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4337         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4338         when the sources change. Remove the line in the HTML about "Used
4339         ranges" (which implied that there might be other unused ranges),
4340         rename "Resume" to "Summary" (easier to understand for more users).
4341         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4342         styles, and some unnecessary blank lines.
4343
4344 2010-10-03  Bruno Haible  <bruno@clisp.org>
4345             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4346
4347         acl: Add support for ACLs on NonStop Kernel.
4348         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4349         Check whether the function aclsort() exists.
4350         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4351         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4352         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4353         (acl_nontrivial [HAVE_ACLSORT]: New function.
4354         (file_has_acl): Implement for NonStop Kernel.
4355         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4356         (qset_acl): Implement for NonStop Kernel.
4357         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4358         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4359         (main): Implement for NonStop Kernel.
4360         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4361         Kernel. Handle this flavor.
4362         * tests/test-set-mode-acl.sh: Likewise.
4363         * tests/test-copy-acl.sh: Likewise.
4364         * tests/test-copy-file.sh: Likewise.
4365
4366 2010-10-03  Bruno Haible  <bruno@clisp.org>
4367
4368         Info about ACLs on NonStop Kernel.
4369         * doc/acl-resources.txt: Add info about NonStop Kernel.
4370         References by Joachim Schmitz <schmitz@hp.com>.
4371
4372 2010-10-02  Bruno Haible  <bruno@clisp.org>
4373
4374         Define missing EDQUOT on NonStop Kernel.
4375         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4376         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4378         missing.
4379         * doc/posix-headers/errno.texi: Mention the NSK bug.
4380         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4381         Reported by Joachim Schmitz <schmitz@hp.com>.
4382
4383 2010-10-02  Bruno Haible  <bruno@clisp.org>
4384
4385         Update doc for POSIX:2008.
4386         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4387         Update URL of POSIX specification.
4388
4389 2010-10-02  Bruno Haible  <bruno@clisp.org>
4390
4391         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4392         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4393         from gnulib, not from Automake.
4394
4395 2010-10-02  Bruno Haible  <bruno@clisp.org>
4396
4397         New module 'system-posix'.
4398         * modules/system-posix: New file.
4399         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4400         module is present.
4401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4402         GNULIB_SYSTEM_POSIX.
4403         * modules/stdlib (Depends-on): Remove sys_wait.
4404         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4405         * doc/posix-functions/system.texi: Mention the new module.
4406         * doc/posix-headers/stdlib.texi: Likewise.
4407         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4408         define test_sys_wait_macros to a no-op.
4409         Reported by Sam Steingold <sds@gnu.org>.
4410
4411 2010-09-30  Bruno Haible  <bruno@clisp.org>
4412
4413         More renaming from 'getdate' to 'get_date'.
4414         * doc/get_date.texi: Renamed from doc/getdate.texi.
4415         * modules/get_date (Files): Update.
4416         * MODULES.html.sh (Date and time <time.h>): Update.
4417         * DEPENDENCIES: Update.
4418         * gnulib-tool: Update comment.
4419         * m4/bison.m4 (gl_BISON): Likewise.
4420         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4421
4422 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4423
4424         bootstrap: support ACLOCAL_FLAGS during aclocal
4425         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4426         can add additional -I dir for third-party .m4 files.
4427
4428 2010-09-30  Eric Blake  <eblake@redhat.com>
4429
4430         bootstrap: use glibtoolize on MacOS
4431         * build-aux/bootstrap (check_versions): Convert libtool into
4432         libtoolize.
4433         (tool search): Move libtool check earlier, and look for
4434         glibtoolize for MacOS.
4435         (gnulib_tool_options): Auto-add --libtool when appropriate.
4436         Reported by Justin Clift.
4437
4438         poll: fix typo that broke test on MacOS
4439         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4440         Reported by Justin Clift.
4441
4442         getdate: rename to get_date
4443         Note: getdate.h is not renamed, to minimize client impact.
4444         * modules/getdate: Mark obsolete.  Move old contents...
4445         * modules/get_date: ...to new module name.
4446         * modules/getdate-tests: Move...
4447         * modules/get_date-tests: ...here.
4448         * m4/getdate.m4: Move...
4449         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4450         * lib/getdate.y: Move...
4451         * lib/get_date.y: ...here.
4452         * tests/test-getdate.c: Move...
4453         * tests/test-get_date.c: ...here.
4454         * doc/posix-functions/getdate.texi (getdate): Update name.
4455         * NEWS: Mention the change.
4456
4457 2010-09-29  Bruno Haible  <bruno@clisp.org>
4458
4459         Separate the module 'waitpid' from the module 'sys_wait'.
4460         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4461         present.
4462         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4463         gl_MODULE_INDICATOR_FOR_TESTS.
4464         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4465         * modules/sys_wait (Depends-on): Remove waitpid.
4466         (Makefile.am): Substitute GNULIB_WAITPID.
4467         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4468         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4469         signature only if the 'waitpid' module is present.
4470         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4471         * NEWS: Mention the change.
4472         * modules/grantpt (Depends-on): Add waitpid.
4473         * modules/wait-process (Depends-on): Likewise.
4474
4475 2010-09-29  Bruno Haible  <bruno@clisp.org>
4476
4477         More tests for module 'sys_wait'.
4478         * modules/sys_wait-c++-tests: New file.
4479         * tests/test-sys_wait-c++.cc: New file.
4480         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4481         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4482
4483 2010-09-29  Bruno Haible  <bruno@clisp.org>
4484
4485         New module 'waitpid'.
4486         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4487         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4488         Don't include <process.h>.
4489         (waitpid): Declare only, using modern idiom.
4490         * m4/waitpid.m4: New file.
4491         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4492         * modules/waitpid: New file.
4493         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4494         (Makefile.am): Update.
4495         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4496
4497 2010-09-28  Bruno Haible  <bruno@clisp.org>
4498
4499         poll: Assume ANSI C.
4500         * lib/poll.c (poll): Use an ANSI C declaration.
4501
4502 2010-09-28  Bruno Haible  <bruno@clisp.org>
4503
4504         poll-h: Create poll.h on all platforms.
4505         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4506         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4507         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4508         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4509         (gl_REPLACE_POLL_H): Don't set POLL_H.
4510         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4511         * modules/poll-h (Depends-on): Add include_next.
4512         (Makefile.am): Create poll.h unconditionally. Substitute also
4513         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4514
4515 2010-09-28  Bruno Haible  <bruno@clisp.org>
4516
4517         Tests for module 'poll-h'.
4518         * modules/poll-h-c++-tests: New file.
4519         * tests/test-poll-h-c++.cc: New file.
4520
4521         Tests for module 'poll-h'.
4522         * modules/poll-h-tests: New file.
4523         * tests/test-poll-h.c: New file.
4524
4525 2010-09-28  Bruno Haible  <bruno@clisp.org>
4526
4527         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4528         * modules/poll-h (Depends-on): Add 'extensions'.
4529
4530 2010-09-28  Bruno Haible  <bruno@clisp.org>
4531
4532         New module 'poll-h'.
4533         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4534         (poll): Use modern idiom.
4535         * modules/poll-h: New file.
4536         * modules/poll (Files): Remove lib/poll.in.h.
4537         (Depends-on): Add poll-h.
4538         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4539         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4540         * m4/poll_h.m4: New file.
4541         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4542         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4543         and invoke gl_REPLACE_POLL_H.
4544         * lib/poll.c: Use common idiom.
4545         * tests/test-poll.c: Likewise.
4546         * doc/posix-headers/poll.texi: Mention the poll-h module.
4547         Suggested by Eric Blake.
4548
4549 2010-09-26  Bruno Haible  <bruno@clisp.org>
4550
4551         sys_wait: Implement WSTOPSIG.
4552         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4553         Reported by Simon Josefsson.
4554
4555 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4556
4557         stdlib, sys_wait: Avoid compilation error on mingw.
4558         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4559
4560 2010-09-26  Bruno Haible  <bruno@clisp.org>
4561
4562         stdlib tests: Avoid code duplication.
4563         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4564         * modules/sys_wait-tests (Files): Likewise.
4565         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4566         * tests/test-stdlib.c: Include test-sys_wait.h.
4567         (main): Invoke test_sys_wait_macros.
4568         * tests/test-sys_wait.c: Include test-sys_wait.h.
4569         (main): Invoke test_sys_wait_macros.
4570
4571 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4572
4573         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4574         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4575         sure Windows sockets are working before calling getaddrinfo.
4576         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4577         * doc/gnulib.texi (Windows sockets): Fix typo.
4578
4579 2010-09-25  Bruno Haible  <bruno@clisp.org>
4580
4581         Tests for module 'regex-quote'.
4582         * modules/regex-quote-tests: New file.
4583         * tests/test-regex-quote.c: New file.
4584
4585         New module 'regex-quote'.
4586         * lib/regex-quote.h: New file.
4587         * lib/regex-quote.c: New file.
4588         * modules/regex-quote: New file.
4589         Suggested by Reuben Thomas <rrt@sc3d.org>.
4590
4591 2010-09-24  Bruno Haible  <bruno@clisp.org>
4592
4593         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4594         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4595
4596 2010-09-23  Bruno Haible  <bruno@clisp.org>
4597
4598         setenv: Relax license.
4599         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4600         Blake.
4601         Requested by Eric Blake.
4602
4603 2010-09-22  Bruno Haible  <bruno@clisp.org>
4604
4605         termios: Relax license.
4606         * modules/termios (License): Change to LGPLv2+.
4607         Requested by Eric Blake.
4608
4609 2010-09-22  Bruno Haible  <bruno@clisp.org>
4610
4611         threadlib: Allow the package to change the default to 'no'.
4612         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4613         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4614         Reported by Paul Eggert.
4615
4616 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4617             Bruno Haible  <bruno@clisp.org>
4618
4619         Fix endless loop in mbmemcasecoll.
4620         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4621         byte.
4622         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4623
4624 2010-09-22  Bruno Haible  <bruno@clisp.org>
4625
4626         Tests for module 'memcoll'.
4627         * modules/memcoll-tests: New file.
4628         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4629
4630         memcoll, xmemcoll: Clarify size vs. length.
4631         * modules/memcoll.c (memcoll0): Clarify specification.
4632         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4633         passed to collate_error.
4634
4635 2010-09-22  Bruno Haible  <bruno@clisp.org>
4636
4637         Tests for module 'memcasecmp'.
4638         * modules/memcasecmp-tests: New file.
4639         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4640
4641 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4642
4643         * lib/pthread.in.h: Add split double-inclusion guard, and include
4644         system <pthread.h> if there is one.  Use @@-style as in other
4645         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4646         pthread.h doesn't.
4647         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4648         (pthread_mutexattr_settype, pthread_mutex_trylock):
4649         New static inline functions, if there's no system <pthread.h>.
4650         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4651         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4652         Approximate with mutexes if the system lacks spinlocks, as in
4653         MacOS.
4654         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4655         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4656         @@-style.  Check for spinlocks separately.
4657         (gl_PTHREAD_DEFAULTS): New macro.
4658         * modules/pthread: Redo to use a more typical style for in.h files.
4659
4660 2010-09-21  Eric Blake  <eblake@redhat.com>
4661
4662         net_if: enhance tests
4663         * tests/test-net_if.c (main): Move signature checks earlier.
4664         Print failures to stderr.
4665         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4666         Document the bug that we do not yet fix.
4667
4668 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4669
4670         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4671         about gnulib, not GSS.
4672
4673 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4674
4675         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4676         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4677         for Emacs.
4678         * build-aux/pmccabe2html: Make Makefile.am example code more
4679         cut-and-paste friendly.
4680
4681 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4682
4683         * tests/test-net_if.c: New file.
4684         * modules/net_if-tests: New file.
4685
4686 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4687
4688         pthread: add pthread_spin_destroy
4689         * lib/pthread.in.h (pthread_spin_destroy): New function.
4690
4691 2010-09-19  Bruno Haible  <bruno@clisp.org>
4692
4693         gnulib-tool: Fix --help output.
4694         * gnulib-tool (func_usage): Fix help message.
4695         Reported by Reuben Thomas <rrt@sc3d.org>.
4696
4697 2010-09-18  Jim Meyering  <meyering@redhat.com>
4698
4699         maint.mk: avoid unexpanded \n in two diagnostics
4700         * top/maint.mk (sc_prohibit_always_true_header_tests):
4701         Don't use a literal \n in a halt=... assignment.  It would not be
4702         expanded, and the two \n bytes would appear in the diagnostic output
4703         rather than the desired newline.  Use halt=$$(printf ... instead.
4704         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4705
4706 2010-09-18  Bruno Haible  <bruno@clisp.org>
4707
4708         netinet_in: Doc tweak.
4709         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4710         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4711
4712 2010-09-18  Jim Meyering  <meyering@redhat.com>
4713
4714         init.sh: correct an outdated comment
4715         * tests/init.sh (create_exe_shims_):  s/function/alias/
4716
4717         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4718         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4719         a file named "*.exe" is removed between the glob expansion and the
4720         processing of that oddly named file.
4721
4722 2010-09-17  Eric Blake  <eblake@redhat.com>
4723
4724         mirbsd: add some more support
4725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4726         in BSD family.
4727         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4728         devices as OpenBSD.
4729         * m4/host-os.m4 (mirbsd): Add MirBSD.
4730
4731         tests: fix unportable assumption on sys/wait.h
4732         * tests/test-sys_wait.c (main): Relax test.
4733         * tests/test-stdlib.c (main): Likewise.
4734
4735         init.sh: accomodate directory with no .exes
4736         * tests/init.sh: Accomodate directory containing only scripts.
4737
4738         tests: avoid compiler warning
4739         * tests/test-stdlib.c (main): Use the variable.
4740
4741         fdutimens, fdutimensat: update signature, again
4742         * lib/utimens.h (gl_futimens): Delete, and move signature...
4743         (fdutimens): ...here.
4744         (fdutimensat): Rearrange signature.
4745         (lutimensat): Rename variable for clarity.
4746         * lib/fdutimensat.c (fdutimensat): Update signature.
4747         * lib/utimens.c (fdutimens): Likewise.
4748         (gl_futimens): Delete.
4749         (utimens, lutimens): Update callers.
4750         * lib/futimens.c (futimens): Likewise.
4751         * tests/test-fdutimensat.c: Likewise.
4752         * tests/test-utimens.c: Likewise.
4753         * tests/test-futimens.h: Update comment.
4754         * NEWS: Mention this.
4755         Suggested by Paul Eggert.
4756
4757 2010-09-17  Bruno Haible  <bruno@clisp.org>
4758
4759         Take over the maintenance of some older macros from Autoconf.
4760         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4761         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4762         GNU Autoconf.
4763         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4764         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4765
4766 2010-09-17  Eric Blake  <eblake@redhat.com>
4767
4768         fdutimensat: drop atflag validation
4769         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4770         with valid fd, to close a race scenario where futimens is
4771         unsupported and FILE was replaced by a symlink.
4772         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4773         accordingly.
4774         Suggested by Paul Eggert.
4775
4776 2010-09-16  Bruno Haible  <bruno@clisp.org>
4777
4778         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4779         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4780
4781 2010-09-16  Bruno Haible  <bruno@clisp.org>
4782
4783         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4784         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4785         login_tty exists.
4786         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4787
4788 2010-09-16  Bruno Haible  <bruno@clisp.org>
4789
4790         login_tty: Make the replacement code work on BSD systems.
4791         * lib/login_tty.c: Include <sys/ioctl.h>.
4792         (login_tty): Use ioctl TIOCSCTTY when available.
4793         * modules/login_tty (Depends-on): Add sys_ioctl.
4794         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4795
4796 2010-09-16  Bruno Haible  <bruno@clisp.org>
4797
4798         login_tty: Stricter unit test.
4799         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4800         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4801         and tcgetsid() after login_tty.
4802         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4803
4804 2010-09-16  Bruno Haible  <bruno@clisp.org>
4805
4806         New module 'tcgetsid'.
4807         * lib/tcgetsid.c: New file.
4808         * m4/tcgetsid.m4: New file.
4809         * modules/tcgetsid: New file.
4810         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4811         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4812         GNULIB_TCGETSID, HAVE_TCGETSID.
4813         * lib/termios.in.h: Include <sys/types.h>.
4814         (tcgetsid): New declaration.
4815         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4816         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4817         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4818         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4819
4820 2010-09-16  Bruno Haible  <bruno@clisp.org>
4821
4822         Tests for module 'termios'.
4823         * modules/termios-c++-tests: New file.
4824         * modules/termios-tests: New file.
4825         * tests/test-termios-c++.cc: New file.
4826         * tests/test-termios.c: New file.
4827
4828         New module 'termios'.
4829         * modules/termios: New file.
4830         * lib/termios.in.h: New file.
4831         * m4/termios_h.m4: New file.
4832         * doc/posix-headers/termios.texi: Mention the new module.
4833
4834 2010-09-16  Eric Blake  <eblake@redhat.com>
4835
4836         fdutimensat: add an atflag parameter
4837         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4838         * lib/utimens.h (fdutimensat): Update prototype.
4839         * tests/test-fdutimensat.c: Adjust test to match.
4840         * NEWS: Document the change.
4841         Suggested by Paul Eggert.
4842
4843 2010-09-16  Bruno Haible  <bruno@clisp.org>
4844
4845         Fix typos in comments.
4846         * lib/striconveh.h: Fix typo in comment.
4847         * lib/login_tty.c (login_tty): Likewise.
4848
4849 2010-09-15  Bruno Haible  <bruno@clisp.org>
4850
4851         stdlib: clarify MirBSD WEXITSTATUS bug
4852         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4853         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4854
4855 2010-09-15  Eric Blake  <eblake@redhat.com>
4856
4857         stdlib: work around MirBSD WEXITSTATUS bug
4858         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4859         * modules/stdlib (Depends-on): Add sys_wait.
4860         * tests/test-sys_wait.c (main): Enhance test.
4861         * tests/test-stdlib.c (main): Likewise.
4862         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4863
4864         docs: mention MacOS issue with WEXITSTATUS(constant)
4865         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4866         issue.
4867         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4868
4869         strnlen: add tests
4870         * modules/strnlen-tests: New file.
4871         * tests/test-strnlen.c: Likewise.
4872
4873 2010-09-14  Bruno Haible  <bruno@clisp.org>
4874
4875         unistr/base: Avoid link errors when module 'libunistring' is also used.
4876         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4877         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4878         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4879         Declare also when HAVE_LIBUNISTRING is set.
4880         Reported by Pádraig Brady <P@draigbrady.com>.
4881
4882 2010-09-14  Eric Blake  <eblake@redhat.com>
4883
4884         test-rawmemchr: make more robust
4885         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4886         (Depends-on, configure.ac): Add needed prerequisites to use it.
4887         * modules/memchr-tests (Files, Depends-on, configure.ac):
4888         Likewise, to avoid implicit reliance on memchr module prereqs.
4889         * tests/test-memchr.c (main): Ensure proper masking.
4890         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4891         reads.
4892
4893         memchr: detect glibc Alpha bug
4894         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4895         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4896         Alpha.
4897         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4898         * tests/test-memchr.c (main): Enhance test.
4899         Reported by Nelson H. F. Beebe.
4900
4901 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4902
4903         fts, getcwd, glob: audit for dirfd returning -1
4904         * lib/fts.c (opendir): Remove #define; no longer used.
4905         (opendirat): New arg PDIR_FD.  All callers changed.
4906         (fts_build, _opendir2): Use new opendirat to avoid the need for
4907         dirfd, or for checking whether dirfd returns a negative value.
4908         Don't use opendir; always use openat followed by fdopendir.
4909         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4910         it.
4911         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4912         returns -1 here.
4913         * modules/fts (Depends-on): Remove dirfd.
4914         * modules/getcwd (Depends-on): Likewise.
4915
4916 2010-09-13  Eric Blake  <eblake@redhat.com>
4917
4918         float: fix broken MirBSD header
4919         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4920         * doc/posix-headers/float.texi (float.h): Document it.
4921
4922 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4923
4924         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4925         * lib/fts.c (opendirat): New arg extra_flags.
4926         (__opendir2): Use it to avoid following symlinks when opening
4927         a directory, if symlinks are not supposed to be followed.  See
4928         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4929
4930         fdopendir: preserve argument fd before returning
4931         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4932         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4933         (fdopendir): Use them, arranging for FD to be open to the same
4934         directory that it was when it started.  (It might be temporarily
4935         closed while fdopendir is running, so this not thread- or
4936         signal-safe.)  Be careful to do the right thing even when file
4937         descriptors are scarce and dup fails with errno == EMFILE.  See
4938         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4939
4940 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4941
4942         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4943         * NEWS: Document change.
4944         * m4/regex.m4: Disable test for regoff_t size.
4945
4946 2010-09-13  Jim Meyering  <meyering@redhat.com>
4947
4948         fts: don't operate on an invalid file descriptor after failed dup
4949         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4950         negative file descriptor.
4951
4952 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4953
4954         savedir: add streamsavedir, deprecate fdsavedir
4955         * NEWS: Mention deprecation of fdsavedir.
4956         * lib/savedir.c (streamsavedir): New extern function, whose name
4957         ends in "savedir" to be consistent with the others.  This differs
4958         from savedirstream in that it doesn't close its argument.  The
4959         next version of GNU tar will use this instead of fdsavedir, to
4960         avoid some race conditions and conserve file descriptors.
4961         (savedirstream): Reimplement as a wrapper around streamsavedir.
4962         (fdsavedir): Add a comment deprecating this function.  As far as
4963         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4964         * lib/savedir.h (streamsavedir): New decl.
4965         (fdsavedir): Add a comment deprecating this.
4966
4967 2010-09-10  Bruno Haible  <bruno@clisp.org>
4968
4969         langinfo: Fix last commit.
4970         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4971         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4973
4974 2010-09-10  Bruno Haible  <bruno@clisp.org>
4975
4976         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4977         * lib/progreloc.c (O_EXEC): Define fallback.
4978
4979 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4980
4981         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4982         * NEWS: Document recent changes to fcntl-h.
4983         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4984         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4985         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4986         Similarly for O_SEARCH; this last was already true, but not documented.
4987         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4988         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4989         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4990         Likewise.
4991         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4992         is zero, not whether it is defined.
4993         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4994         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4995         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4996
4997 2010-09-10  Bruno Haible  <bruno@clisp.org>
4998
4999         langinfo, nl_langinfo: Fix for IRIX 5.3.
5000         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
5001         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
5002         HAVE_LANGINFO_YESEXPR.
5003         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
5004         HAVE_LANGINFO_YESEXPR.
5005         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
5006         HAVE_LANGINFO_T_FMT_AMPM is 0.
5007         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
5008         HAVE_LANGINFO_YESEXPR is 0.
5009         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
5010         NOEXPR.
5011         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
5012         * doc/posix-functions/nl_langinfo.texi: Likewise.
5013         Reported by Eric Blake.
5014
5015 2010-09-10  Bruno Haible  <bruno@clisp.org>
5016
5017         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
5018         * doc/glibc-functions/login_tty.texi: Mention the include file problem
5019         on FreeBSD 8.0 and OpenBSD 4.6.
5020         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
5021         * m4/pty_h.m4 (gl_PTY_H): Likewise.
5022         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
5023         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
5024         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
5025         ac_includes_default.
5026         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5027
5028 2010-09-09  Eric Blake  <eblake@redhat.com>
5029
5030         strsignal: work around NetBSD bug
5031         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
5032         * lib/string.in.h (includes): Likewise.
5033         * doc/posix-functions/strsignal.texi (strsignal): Document the
5034         bug.
5035         Reported by Nelson H. F. Beebe.
5036
5037         gnulib-tool: work with NetBSD /bin/sh
5038         * gnulib-tool (func_cache_var, func_cache_lookup_module)
5039         (func_get_description, func_get_comment, func_get_status)
5040         (func_get_notice, func_get_applicability, func_get_filelist)
5041         (func_get_dependencies, func_get_autoconf_early_snippet)
5042         (func_get_autoconf_snippet, func_get_automake_snippet)
5043         (func_get_include_directive, func_get_link_directive)
5044         (func_get_license, func_get_maintainer, func_import): Avoid
5045         shell syntax errors from parsing syntax extensions.
5046
5047 2010-09-09  Bruno Haible  <bruno@clisp.org>
5048
5049         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5050         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
5051         a reliable way to determine whether the 'alias' command works.
5052
5053 2010-09-08  Jim Meyering  <meyering@redhat.com>
5054
5055         init.sh: penalize a set-x-impaired shell; don't disqualify it
5056         * tests/init.sh: Too many shells corrupt application stderr when
5057         you set -x, so we can't afford to disqualify them, since at least
5058         on Irix-6.5, that would disqualify all bourne shells.
5059         Instead, use a two-pass approach.
5060         On the first pass, try to find a shell that meets the stricter
5061         condition that set -x does not corrupt stderr.
5062         If no shell meets the stricter condition, retest each candidate
5063         shell, but without that extra condition.  Finally, when
5064         VERBOSE=yes is requested and set -x might cause trouble, simply
5065         issue a warning and refrain from enabling debug output.
5066
5067 2010-09-08  Eric Blake  <eblake@redhat.com>
5068
5069         unsetenv: fix OpenBSD bug
5070         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
5071         * doc/posix-functions/unsetenv.texi (unsetenv): Update
5072         documentation.
5073         Reported by Jim Meyering.
5074
5075         strtod: work around IRIX 6.5 bug
5076         * lib/strtod.c (strtod): Reparse number on shorter string if
5077         exponent parse was invalid.
5078         * tests/test-strtod.c (main): Add check for "0x1p 2".
5079         Reported by Tom G. Christensen.
5080
5081         getopt: optimize previous patch
5082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
5083         empty variable.  Speed up awk script.
5084         Reported by Paolo Bonzini.
5085
5086 2010-09-08  Jim Meyering  <meyering@redhat.com>
5087
5088         test.sh: disqualify shells for which set -x corrupts stderr
5089         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
5090         and OpenBSD 4.7.  They make it so with "set -x", environment settings
5091         appear in stderr output.  For example, this command:
5092             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
5093         prints "P=1" on those two systems:
5094
5095 2010-09-08  Bruno Haible  <bruno@clisp.org>
5096
5097         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
5098         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
5099         commands, because some shells ignore redirections when there is an
5100         error in the command lookup.
5101         Reported by Eric Blake.
5102
5103 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
5104
5105         * lib/regex.h: Fix a mention of `regex_compile' (should be
5106         `re_compile_pattern').
5107         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
5108         (re_set_registers): Correct name of parameter in comment.
5109
5110         * doc/regex.texi: Add documentation for missing syntax flags.
5111         Remove commented-out documentation of defunct syntax option
5112         RE_NO_EMPTY_ALTS.
5113         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
5114         Add documentation of re_set_registers.
5115         Document trick to re-use a pattern buffer by setting fastmap manually.
5116         Update documentation of struct re_pattern_buffer per public members.
5117         Uncomment documentation of equivalence class operators and
5118         collating symbol operators, since they are now implemented,
5119         Explain leftmost-longest matching in relation to alternatives.
5120         Tidy documentation of substring matching.
5121         Remove POSIX documentation, which is done better in
5122         glibc, and refer the reader there. Keep BSD API documentation, as
5123         that is not readily available elsewhere.
5124
5125 2010-09-07  Eric Blake  <eblake@redhat.com>
5126
5127         getopt: handle POSIXLY_CORRECT set but not exported
5128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
5129         export state of POSIXLY_CORRECT, due to bash set -o posix.
5130         Reported by Dustin J. Mitchell.
5131
5132 2010-09-05  Bruno Haible  <bruno@clisp.org>
5133
5134         gnulib-tool: Highlight the changed options.
5135         * gnulib-tool (func_usage): Display the --import, --add-import,
5136         --remove-import explanations in bold font.
5137
5138 2010-09-06  Karl Berry  <karl@gnu.org>
5139
5140         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
5141
5142 2010-09-05  Bruno Haible  <bruno@clisp.org>
5143
5144         uniwidth/width: Update comment.
5145         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
5146         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
5147
5148 2010-09-05  Bruno Haible  <bruno@clisp.org>
5149
5150         isinf, isnan: Relax license.
5151         * modules/isinf (License): Change from GPL to LGPL, with consent from
5152         Ben Pfaff.
5153         * modules/isnan (License): Likewise.
5154         Requested by Ludovic Courtès.
5155
5156 2010-09-04  Bruno Haible  <bruno@clisp.org>
5157
5158         gnulib-tool: Help migration from --import to --add-import or --update.
5159         * gnulib-tool: Emit a verbose error message when --import is used
5160         without any module name.
5161
5162 2010-09-04  Bruno Haible  <bruno@clisp.org>
5163
5164         Update doc about gnulib-tool.
5165         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
5166         'gnulib-tool --update' in more detail.
5167         Reported by Eric Blake.
5168
5169 2010-09-04  Bruno Haible  <bruno@clisp.org>
5170
5171         gnulib-tool: Change --import. New options --add/remove-import.
5172         * gnulib-tool: New options --add-import, --remove-import.
5173         (func_usage): Document them.
5174         (have_associative): Define always.
5175         (func_import): In import mode, don't merge the specified settings with
5176         the cached settings. Implement remove-import mode.
5177         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
5178         Explain when to use them versus --import.
5179         (Simple update): Use --add-import instead of --import.
5180         * NEWS: Mention the change.
5181
5182 2010-09-04  Bruno Haible  <bruno@clisp.org>
5183
5184         * doc/gnulib-tool.texi (Initial import): Update paragraph about
5185         separate gnulib.mk.
5186
5187 2010-09-04  Bruno Haible  <bruno@clisp.org>
5188
5189         gnulib-tool: Don't talk about CVS any more.
5190         * gnulib-tool (func_usage, func_import): Write "version control"
5191         instead of CVS.
5192
5193 2010-09-04  Jim Meyering  <meyering@redhat.com>
5194
5195         maint.mk: avoid obscure sc_copyright_check failure in coreutils
5196         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
5197         false positives (whose names may be ill-chosen) when searching
5198         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
5199         would cause a false-positive.
5200
5201         avoid coreutils "make distcheck" failure
5202         Coreutils tests with an absolute build directory name that contains
5203         a space.  Not quoting this directory name caused a failure.
5204         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
5205         * tests/test-vc-list-files-cvs.sh: Likewise.
5206
5207 2010-09-04  Bruno Haible  <bruno@clisp.org>
5208
5209         gnulib-tool: Avoid error when run in a package without Makefile.am.
5210         * gnulib-tool: When collecting the m4dirs in a package that does not
5211         have a Makefile.am, eliminate those directories that contain no
5212         gnulib-cache.m4. Fix expression that counts these directories.
5213
5214 2010-09-04  Bruno Haible  <bruno@clisp.org>
5215
5216         update-copyright test: Improve output when perl is missing or too old.
5217         * tests/test-update-copyright.sh: Move test of Perl version down after
5218         the test whether Perl exists. Provide an explanation relating Perl's
5219         error message to Automake's SKIP: message.
5220
5221 2010-09-04  Bruno Haible  <bruno@clisp.org>
5222
5223         Don't augment PATH in TESTS_ENVIRONMENT.
5224         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
5225         set abs_aux_dir instead of augmenting PATH.
5226         * modules/vc-list-files-tests (Makefile.am): Likewise.
5227         * tests/test-update-copyright.sh: Augment PATH here.
5228         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
5229         path_prepend_.
5230         * tests/test-vc-list-files-git.sh: Likewise.
5231
5232 2010-09-04  Jim Meyering  <meyering@redhat.com>
5233
5234         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
5235         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
5236
5237 2010-09-04  Bruno Haible  <bruno@clisp.org>
5238
5239         strdup: Fix compilation error in C++ mode.
5240         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
5241         the macro.
5242
5243 2010-09-04  Bruno Haible  <bruno@clisp.org>
5244
5245         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
5246         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
5247         macro into a function.
5248         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5249
5250 2010-09-04  Bruno Haible  <bruno@clisp.org>
5251
5252         Set PATH_SEPARATOR the same way autoconf does.
5253         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
5254         the value of PATH_SEPARATOR the same way autoconf-generated configure
5255         scripts do.
5256         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
5257         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
5258
5259 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5260
5261         Set PATH_SEPARATOR the same way autoconf does.
5262         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
5263         the same way autoconf-generated configure scripts do.
5264         * posix-modules: Likewise.
5265
5266 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5267
5268         hash: fix safe_hasher const typo
5269         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
5270         const; otherwise, there is a type error later.
5271
5272 2010-09-02  Jim Meyering  <meyering@redhat.com>
5273
5274         test-update-copyright.sh: require perl 5.8.0
5275         * tests/test-update-copyright.sh: Require 5.8.0,
5276         which Tom G. Christensen has confirmed is adequate,
5277         while 5.6.1 is not.
5278
5279 2010-09-02  Eric Blake  <eblake@redhat.com>
5280
5281         tests: init.sh improvements for re-exec'ing with zsh
5282         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5283         -vx through shell re-exec.
5284         Reported by Tom G. Christensen.
5285
5286         wctype: fix typo in previous commit
5287         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5288         Reported by Ludovic Courtès.
5289
5290 2010-09-02  Jim Meyering  <meyering@redhat.com>
5291
5292         test-update-copyright.sh: skip test if Perl is too old
5293         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5294         Reported by Tom G. Christensen.
5295
5296 2010-09-02  Bruno Haible  <bruno@clisp.org>
5297
5298         wctype: Avoid compilation error on IRIX 6.5.30.
5299         * lib/wctype.in.h (iswblank): Declare with a replacement if
5300         REPLACE_ISWBLANK is set.
5301         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5302         declared. Set REPLACE_ISWBLANK.
5303         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5304         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5305         * doc/posix-headers/wctype.texi: Likewise.
5306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5307
5308 2010-09-01  Bruno Haible  <bruno@clisp.org>
5309
5310         New module 'socketlib'.
5311         * modules/socketlib: New file.
5312         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5313         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5314         * modules/sockets (Depends-on): Add socketlib.
5315         Suggested by Sam Steingold <sds@gnu.org>.
5316
5317 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5318
5319         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5320
5321         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5322         when one needs search access to a directory but not read access.
5323         On systems where it is available, it works in some cases where
5324         O_RDONLY does not, namely on directories that are searchable but
5325         not readable, and which need only to be searchable.  If O_SEARCH
5326         is not available, fall back to the traditional method of using
5327         O_RDONLY.
5328
5329         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5330         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5331         when opening a directory that needs only to be searchable.
5332         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5333         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5334         * lib/openat-proc.c (openat_proc_name): Likewise.
5335         * lib/openat.c (openat_needs_fchdir): Likewise.
5336         * lib/save-cwd.c (save_cwd): Likewise.
5337         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5338
5339 2010-08-28  Bruno Haible  <bruno@clisp.org>
5340
5341         New module 'host-cpu-c-abi'.
5342         * modules/host-cpu-c-abi: New file.
5343         * m4/host-cpu-c-abi.m4: New file, based on part of
5344         clisp/src/m4/general.m4.
5345         Requested by Sam Steingold <sds@gnu.org>.
5346
5347 2010-08-31  Eric Blake  <eblake@redhat.com>
5348         and Jim Meyering  <meyering@redhat.com>
5349
5350         hash: factor, and guard against misbehaving hasher function
5351         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5352         of table->hasher's return value.  Also protect against a hash value
5353         so large that adding it to table->bucket results in a NULL pointer.
5354         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5355         Use it in place of open-coded check-and-abort.
5356
5357 2010-08-30  Bruno Haible  <bruno@clisp.org>
5358
5359         hash: silence spurious clang warning
5360         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5361         Reported by Eric Blake.
5362
5363 2010-08-30  Eric Blake  <eblake@redhat.com>
5364
5365         strstr, memmem, strcasestr: avoid leaked shell message
5366         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5367         FreeBSD.
5368         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5369         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5370
5371         tests: silence clang warning
5372         * tests/test-malloca.c (do_allocation): Avoid dead store.
5373
5374 2010-08-29  Bruno Haible  <bruno@clisp.org>
5375
5376         gettext: Fix recent mistake.
5377         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5378
5379 2010-08-29  Bruno Haible  <bruno@clisp.org>
5380
5381         selinux-h: Offer a --without-selinux option.
5382         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5383         --without-selinux was specified, skip all tests and define
5384         HAVE_SELINUX_SELINUX_H to 0.
5385         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5386         set LIB_SELINUX to empty.
5387         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5388         gl_LIBSELINUX. If --without-selinux was specified, replace
5389         selinux/context.h.
5390         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5391
5392 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5393             Bruno Haible  <bruno@clisp.org>
5394
5395         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5396         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5397         of HAVE_REALLOC.
5398         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5399         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5400         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5401         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5402
5403 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5404             Bruno Haible  <bruno@clisp.org>
5405
5406         Make the module 'calloc-gnu' work again on AIX and OSF/1.
5407         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5408         HAVE_CALLOC.
5409         * lib/xmalloc.c: Update accordingly.
5410         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5411         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5412         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5413
5414 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5415             Bruno Haible  <bruno@clisp.org>
5416
5417         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5418         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5419         HAVE_MALLOC.
5420         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5421         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5422         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5423
5424 2010-08-29  Bruno Haible  <bruno@clisp.org>
5425
5426         Update modules list.
5427         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5428         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5429         (String handling <string.h>): Add astrxfrm.
5430         (File system functions): Add readlinkat.
5431
5432 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5433
5434         Tests for module 'realloc-gnu'.
5435         * modules/realloc-gnu-tests: New file.
5436         * tests/test-realloc-gnu.c: New file.
5437
5438         Tests for module 'calloc-gnu'.
5439         * modules/calloc-gnu-tests: New file.
5440         * tests/test-calloc-gnu.c: New file.
5441
5442         Tests for module 'malloc-gnu'.
5443         * modules/malloc-gnu-tests: New file.
5444         * tests/test-malloc-gnu.c: New file.
5445
5446 2010-08-28  Bruno Haible  <bruno@clisp.org>
5447
5448         Rename module 'realloc' -> 'realloc-gnu'.
5449         * modules/realloc-gnu: New file, copied from modules/realloc.
5450         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5451         obsolete.
5452         * modules/mgetgroups (Depends-on): Update.
5453         * doc/posix-functions/realloc.texi: Update.
5454         * NEWS: Mention the change.
5455
5456         Rename module 'calloc' -> 'calloc-gnu'.
5457         * modules/calloc-gnu: New file, copied from modules/calloc.
5458         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5459         obsolete.
5460         * doc/posix-functions/calloc.texi: Update.
5461         * NEWS: Mention the change.
5462
5463         Rename module 'malloc' -> 'malloc-gnu'.
5464         * modules/malloc-gnu: New file, copied from modules/malloc.
5465         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5466         obsolete.
5467         * modules/argp (Depends-on): Update.
5468         * modules/regex (Depends-on): Update.
5469         * doc/posix-functions/malloc.texi: Update.
5470         * NEWS: Mention the change.
5471
5472 2010-08-28  Eric Blake  <eblake@redhat.com>
5473
5474         pread, pwrite: add missing dependency
5475         * modules/pread (Depends-on): Add extensions.
5476         * modules/pwrite (Depends-on): Likewise.
5477
5478 2010-08-28  Bruno Haible  <bruno@clisp.org>
5479
5480         unistr/u*-strchr: Fix tests dependencies.
5481         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5482         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5483         Reported by Ian Beckwith <ianb@erislabs.net>.
5484
5485 2010-08-28  Bruno Haible  <bruno@clisp.org>
5486
5487         read-file: Don't occupy too much unused memory.
5488         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5489
5490 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5491             Eric Blake  <eblake@redhat.com>
5492             Bruno Haible  <bruno@clisp.org>
5493
5494         read-file: Avoid memory reallocations with regular files.
5495         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5496         (fread_file): With regular files, use the remaining length as the
5497         initial buffer size.  Check against overflow.
5498         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5499         sys_stat.
5500
5501 2010-08-28  Bruno Haible  <bruno@clisp.org>
5502
5503         ftello: Relax license.
5504         * modules/ftello (License): Relax to LGPLv2+.
5505         Reported by Eric Blake.
5506
5507 2010-08-28  Bruno Haible  <bruno@clisp.org>
5508
5509         Avoid relocwrapper link errors due to gnulib replacement functions.
5510         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5511         function.
5512         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5513
5514 2010-08-28  Bruno Haible  <bruno@clisp.org>
5515
5516         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5517         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5518         defined.
5519         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5520         Suggested by Eric Blake.
5521
5522 2010-08-28  Bruno Haible  <bruno@clisp.org>
5523
5524         sys_socket, netdb: Ensure socklen_t gets defined.
5525         * modules/sys_socket (Depends-on): Add socklen.
5526         * modules/netdb (Depends-on): Likewise.
5527         * modules/getaddrinfo (Depends-on): Remove socklen.
5528         * modules/getsockopt (Depends-on): Likewise.
5529         * modules/setsockopt (Depends-on): Likewise.
5530         * tests/test-sys_socket.c: Check that socklen_t is defined.
5531         * tests/test-netdb.c: Likewise.
5532         * m4/socklen.m4: Update comments.
5533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5534
5535 2010-08-27  Eric Blake  <eblake@redhat.com>
5536
5537         login_tty: add missing dependency
5538         * modules/login_tty (Depends-on): Add pty.
5539
5540 2010-08-26  Eric Blake  <eblake@redhat.com>
5541
5542         lib-symbol-versions: fix m4 quoting
5543         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5544         format for AC_LINK_IFELSE.
5545
5546         glob: fix compile test
5547         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5548
5549         btowc: fix missing file
5550         * modules/btowc (Files): Also ship locale-fr.m4.
5551
5552         lseek: fix link test
5553         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5554         AC_LINK_IFELSE.
5555
5556         include_next: silence autoconf 2.68 warning
5557         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5558         AC_COMPILE_IFELSE as special.
5559         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5560         autoconf < 2.68.
5561
5562         acl: fix compilation test
5563         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5564         AC_COMPILE_IFELSE.
5565
5566 2010-08-26  Bruno Haible  <bruno@clisp.org>
5567
5568         Modernize AC_TRY_RUN invocations.
5569         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5570         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5571         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5572         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5573         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5574         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5575         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5577         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5578         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5579         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5580         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5581         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5582         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5583         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5584         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5585         gl_MBRLEN_NUL_RETVAL): Likewise.
5586         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5587         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5588         Likewise.
5589         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5590         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5591         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5592         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5593         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5594         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5595         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5596         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5597         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5598         Likewise.
5599         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5600         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5602         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5603         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5604         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5605         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5606         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5607         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5609
5610 2010-08-26  Bruno Haible  <bruno@clisp.org>
5611
5612         Modernize AC_TRY_LINK invocations.
5613         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5614         AC_TRY_LINK.
5615         * m4/argp.m4 (gl_ARGP): Likewise.
5616         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5617         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5618         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5619         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5620         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5621         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5622         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5623         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5624         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5625         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5626         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5627         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5628         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5629         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5630         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5631         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5632         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5633         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5634         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5635         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5636         Likewise.
5637         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5638         Likewise.
5639         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5640         Likewise.
5641         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5642         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5643         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5644         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5645         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5646         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5647         * m4/servent.m4 (gl_SERVENT): Likewise.
5648         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5649         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5650         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5651         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5652         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5653         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5654         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5655         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5656         * modules/tsearch-tests (configure.ac): Likewise.
5657
5658 2010-08-26  Bruno Haible  <bruno@clisp.org>
5659
5660         Modernize AC_TRY_COMPILE invocations.
5661         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5662         AC_TRY_COMPILE.
5663         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5664         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5665         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5666         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5667         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5668         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5669         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5670         * m4/lock.m4 (gl_LOCK): Likewise.
5671         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5672         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5673         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5674         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5675         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5676         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5677         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5679         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5680         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5681         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5682         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5683         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5684         extraneous semicolon.
5685
5686 2010-08-26  Jim Meyering  <meyering@redhat.com>
5687
5688         stat-time: relax license LGPL
5689         * modules/stat-time (License): Change from GPL to LGPL,
5690         with consent from all contributors, for use in libguile.
5691         Requested by Ludovic Courtès.
5692
5693 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5694
5695         poll: return immediately on POLLHUP.
5696         * lib/poll.c (poll): Always set timeout before wait_timeout is
5697         computed.
5698
5699 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5700
5701         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5702         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5703         rmdir ("dir/.//"), unlinkat.
5704
5705 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5706
5707         stdbool: avoid spurious failure with modern xlc
5708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5709
5710 2010-08-24  Bruno Haible  <bruno@clisp.org>
5711
5712         getloadavg: simplify code
5713         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5714         gl_have_func. Update comments.
5715
5716 2010-08-24  Eric Blake  <eblake@redhat.com>
5717
5718         getloadavg: don't define SVR4 on cygwin
5719         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5720         only define SVR4 when -lkvm is required.
5721         Reported by Yaakov Selkowitz.
5722
5723 2010-08-24  Bruno Haible  <bruno@clisp.org>
5724
5725         priv-set: fix comment
5726         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5727
5728 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5729
5730         priv-set: fix comments
5731         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5732         to match code, as suggested by David Bartley in:
5733         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5734
5735 2010-08-23  Eric Blake  <eblake@redhat.com>
5736
5737         stdbool: avoid rejecting clang
5738         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5739         * tests/test-stdbool.c: Enable more tests if using the system
5740         <stdbool.h> instead of the gnulib replacement.
5741         (main): Move xlc bug test to a runtime test for all compilers.
5742         Reported by Anders Kaseorg.
5743
5744         argz: fix shell quoting issue
5745         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5746         Reported by Charles Wilson.
5747
5748 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5749             Erik Faye-Lund <kusmabite@gmail.com>
5750
5751         poll, select: handle ERROR_BROKEN_PIPE.
5752         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5753         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5754         * lib/select.c (win32_compute_revents): Do not mark a pipe
5755         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5756
5757 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5758
5759         fts: allow compilation with C++
5760         * lib/fts_.h: Specify extern "C" linkage with C++.
5761
5762 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5763
5764         Fix gnulib-tool sed script de-commentation for AIX sed.
5765         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5766         sed.
5767
5768 2010-08-17  Eric Blake  <eblake@redhat.com>
5769
5770         test-stddef: test for (some) offsetof bugs
5771         * tests/test-stddef.c: Enhance test to ensure correct type of
5772         offsetof.
5773         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5774         that we are not fixing at this time.
5775
5776 2010-08-15  Bruno Haible  <bruno@clisp.org>
5777
5778         stpncpy: Allow stpncpy to be defined as a macro.
5779         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5780         if it's already correctly declared.
5781         * lib/string.in.h (stpncpy): Undefine before redefining.
5782         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5783
5784 2010-08-14  Bruno Haible  <bruno@clisp.org>
5785
5786         Rename module 'memxfrm' to 'amemxfrm'.
5787         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5788         (amemxfrm): Renamed from memxfrm.
5789         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5790         (amemxfrm): Renamed from memxfrm.
5791         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5792         * NEWS: Mention the change.
5793         * MODULES.html.sh (String handling <string.h>): Update.
5794         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5795         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5796         * lib/unicase/u16-casexfrm.c: Likewise.
5797         * lib/unicase/u32-casexfrm.c: Likewise.
5798         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5799         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5800         * lib/uninorm/u16-normxfrm.c: Likewise.
5801         * lib/uninorm/u32-normxfrm.c: Likewise.
5802         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5803         memxfrm.
5804         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5805         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5806         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5807         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5808         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5809         Suggested by Paul Eggert.
5810
5811 2010-08-14  Bruno Haible  <bruno@clisp.org>
5812
5813         Tests for module 'astrxfrm'.
5814         * modules/astrxfrm-tests: New file.
5815         * tests/test-astrxfrm.c: New file.
5816
5817         New module 'astrxfrm'.
5818         * lib/astrxfrm.h: New file.
5819         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5820         * modules/astrxfrm: New file.
5821
5822 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5823
5824         regex: Tweak doc.
5825         * doc/regex.texi (Overview): Don't mention regex.c.
5826         (GNU Regular Expression Compiling): Likewise.
5827         (Match-end-of-line Operator): Mention 'not_eol'.
5828
5829 2010-08-14  Brian Gough  <bjg@gnu.org>
5830             Bruno Haible  <bruno@clisp.org>
5831
5832         git-merge-changelog: add doc relating to use with bzr and hg.
5833         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5834
5835 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5836
5837         pthread: fix pthread.h creation for srcdir != builddir
5838         * modules/pthread (Makefile.am): Fix the rule to work also in a
5839         non-srcdir build.
5840
5841 2010-08-13  Karl Berry  <karl@gnu.org>
5842
5843         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5844         * doc/posix-*/*: force line break before @url of POSIX
5845         specifications.
5846         Suggested by Werner Lemberg.
5847
5848 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5849
5850         strtod: fix const diagnostic
5851         * lib/strtod.c (strtod): Don't assign const char * to char *,
5852         as this elicits a warning from GCC when warnings are enabled.
5853
5854 2010-08-10  Pádraig Brady <P@draigbrady.com>
5855         and Eric Blake  <eblake@redhat.com>
5856
5857         copy-acl: ignore ENOTSUP on HP-UX
5858         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5859         so that it is available for HP-UX.
5860         * lib/copy-acl.c (qcopy_acl): Use it.
5861         Reported by Patrick M. Callahan.
5862
5863 2010-08-10  Eric Blake  <eblake@redhat.com>
5864
5865         open, chown: relax license
5866         * modules/open (License): Change to LGPLv2+, with consent by all
5867         authors, for use in augeas.
5868         * modules/chown (License): Likewise.
5869         * modules/lchown (Likewise): Likewise.
5870         Requested by Adam Stokes.
5871
5872 2010-08-09  Karl Berry  <karl@gnu.org>
5873
5874         * build-aux/ar-lib: new file, import from Automake.
5875         * config/srclist.txt: autocheck for updates.
5876
5877 2010-08-09  Eric Blake  <eblake@redhat.com>
5878
5879         readlinkat: adjust client modules
5880         * modules/areadlinkat (Depends-on): Use readlinkat, not
5881         symlinkat.
5882         * modules/areadlinkat-with-size (Depends-on): Likewise.
5883
5884         mknod: be more vocal about danger of running tests as root
5885         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5886         root, since that is just asking for problems.
5887         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5888
5889         readlinkat: split into its own module
5890         * modules/symlinkat: Split readlinkat...
5891         * modules/readlinkat: ...into separate module.
5892         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5893         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5894         * lib/symlinkat.c (readlinkat): Move...
5895         * lib/readlinkat.c: ...into new file.
5896         * modules/symlinkat-tests: Split readlinkat test...
5897         * modules/readlinkat-tests: ...into separate module.
5898         * tests/test-symlinkat.c: Split...
5899         * tests/test-readlinkat.c: ...into new file.
5900         * NEWS: Document the split.
5901         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5902         * lib/unistd.in.h (readlinkat): Likewise.
5903         Suggested by Bruno Haible.
5904
5905 2010-08-08  Bruno Haible  <bruno@clisp.org>
5906
5907         memxfrm: Speed up.
5908         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5909         that usually only one call to strxfrm is necessary for each string
5910         part.
5911         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5912
5913 2010-08-07  Karl Berry  <karl@gnu.org>
5914
5915         * doc/posix-headers/limits.texi,
5916         * doc/posix-functions/malloc.texi,
5917         * doc/posix-functions/strsignal.texi: missing @item.
5918         * doc/ld-version-script.texi: spurious leading i.
5919         * doc/regex.texi (Interval Operators): no commas inside @var.
5920
5921 2010-08-01  Bruno Haible  <bruno@clisp.org>
5922
5923         Integrate the regex documentation.
5924         * doc/gnulib.texi: Define 'cn' index.
5925         (Regular expressions): New a chapter that includes regex.texi and
5926         regexprops-generic.texi.
5927         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5928         syntax.
5929
5930         Whitespace cleanup.
5931         * doc/regex.texi: Remove trailing spaces.
5932
5933         Add regex documentation.
5934         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5935         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5936         Written by Kathy A. Hargreaves and Karl Berry.
5937
5938 2010-08-01  Bruno Haible  <bruno@clisp.org>
5939
5940         link: Update documentation.
5941         * doc/posix-functions/link.texi: Update regarding Solaris.
5942
5943 2010-07-31  Bruno Haible  <bruno@clisp.org>
5944
5945         Update modules list.
5946         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5947         (String handling <string.h>): Add memcmp2, memxfrm.
5948         (Container data structures): Add xlist, xsublist, xoset.
5949         (Core language properties): Add alignof, unused-parameter.
5950         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5951         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5952         (Unibyte characters <ctype.h>): New section.
5953         (String handling <string.h>): New section.
5954         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5955         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5956         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5957         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5958         tan, tanh, tanl, y0, y1, yn.
5959         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5960         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5961         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5962         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5963         unlockpt, vdprintf, vdprintf-posix.
5964         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5965         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5966         xconcat-filename.
5967         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5968         getdtablesize, pipe2, pipe2-safer.
5969         (Security): New section.
5970         (Networking functions): Add accept4.
5971         (Signal handling): Add sigpipe.
5972         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5973         mbmemcasecoll.
5974         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5975         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5976         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5977         pipe-filter-ii.
5978         (Misc): Add argp-version-etc, login_tty, parse-duration.
5979
5980 2010-07-31  Bruno Haible  <bruno@clisp.org>
5981
5982         Improve doc in MODULES.html.
5983         * modules/linkat (Description): Add the word "function".
5984         * modules/mkfifo (Description): Likewise.
5985         * modules/mknod (Description): Likewise.
5986         * modules/remove (Description): Likewise.
5987         * modules/renameat (Description): Likewise.
5988         * modules/stat (Description): Likewise.
5989         * modules/symlink (Description): Likewise.
5990         * modules/unlink (Description): Likewise.
5991
5992 2010-07-31  Bruno Haible  <bruno@clisp.org>
5993
5994         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5995         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5996         option --enable/disable-c++ instead of --enable/disable-cxx.
5997         * NEWS: Mention the change.
5998
5999 2010-07-31  Bruno Haible  <bruno@clisp.org>
6000
6001         readlink, areadlink: Relax test a bit.
6002         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
6003         alternative to ENOTDIR.
6004         * tests/test-areadlink.h (test_areadlink): Likewise.
6005         Reported by Rainer Tammer.
6006
6007 2010-07-31  Bruno Haible  <bruno@clisp.org>
6008
6009         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
6010         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
6011         character, perform the search using U_STRCHR.
6012         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
6013         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
6014         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
6015         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
6016         Suggested by Paolo Bonzini.
6017
6018 2010-07-31  Bruno Haible  <bruno@clisp.org>
6019
6020         unistr/u*-strstr: Fix dependencies.
6021         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
6022         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
6023         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
6024
6025 2010-07-31  Bruno Haible  <bruno@clisp.org>
6026
6027         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
6028         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
6029         the beginning of the loop.
6030         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
6031         cases in 'switch' statement.
6032
6033         unistr/u8-strchr: Fix several bugs.
6034         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
6035         the string. When not found, return NULL, not a pointer near the end.
6036
6037         More tests for unistr/u8-strchr.
6038         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
6039         that the function does not read past the first occurrence of the byte
6040         being searched.
6041         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
6042         * tests/unistr/test-u16-strchr.c (main): New function.
6043         * tests/unistr/test-u32-strchr.c (main): New function.
6044
6045 2010-07-31  Bruno Haible  <bruno@clisp.org>
6046
6047         posix-modules: Ignore backup files of documentation files.
6048         * posix-modules: grep only through files named *.texi.
6049
6050 2010-07-31  Bruno Haible  <bruno@clisp.org>
6051
6052         symlinkat: Fix documentation.
6053         * doc/posix-functions/readlinkat.texi: Fix module name.
6054
6055 2010-07-31  Bruno Haible  <bruno@clisp.org>
6056
6057         fchownat: Replace also when chown has the trailing slash bug.
6058         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
6059         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
6060         introduced on 2010-04-10.
6061         Reported by Rainer Tammer.
6062
6063 2010-07-31  Bruno Haible  <bruno@clisp.org>
6064
6065         linkat: Work around AIX 7.1 bug.
6066         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
6067         whether linkat handles trailing slash correctly. If not, replace linkat
6068         and define LINKAT_TRAILING_SLASH_BUG.
6069         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
6070         check whether (fd1,file1) points to a directory if file1 or file2 ends
6071         in a slash. Code taken from lib/link.c.
6072         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
6073         Reported by Rainer Tammer.
6074
6075 2010-07-31  Bruno Haible  <bruno@clisp.org>
6076
6077         Correctly determine whether pow is available in libc on AIX 7 with xlc.
6078         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
6079         This disables an xlc optimization that was causing wrong test results.
6080         Reported by Rainer Tammer.
6081
6082 2010-07-31  Bruno Haible  <bruno@clisp.org>
6083
6084         iconv: Work around AIX 6.1..7.1 bug.
6085         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
6086         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
6087         cross-compiling, guess no on all versions of AIX.
6088         Reported by Rainer Tammer.
6089
6090 2010-07-31  Bruno Haible  <bruno@clisp.org>
6091
6092         readlink: Relax test a bit.
6093         * tests/test-readlink.h (test_readlink): Allow different errno value
6094         when readlink is called with a file name that ends in / and refers to
6095         a file.
6096         Suggested by Eric Blake.
6097         Reported by Rainer Tammer.
6098
6099 2010-07-31  Bruno Haible  <bruno@clisp.org>
6100
6101         copysign: Does not require -lm on glibc systems.
6102         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
6103         gl_COMMON_DOUBLE_MATHFUNC.
6104         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
6105
6106 2010-07-31  Bruno Haible  <bruno@clisp.org>
6107
6108         duplocale: Work around AIX 7.1 bug.
6109         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
6110         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
6111         * lib/duplocale.c (rpl_duplocale): Update comment.
6112         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
6113         Reported by Rainer Tammer.
6114
6115 2010-07-30  Bruno Haible  <bruno@clisp.org>
6116
6117         dirfd: Avoid link error on AIX 7.1.
6118         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
6119         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
6120         exist, set REPLACE_DIRFD.
6121         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
6122         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
6123         * doc/posix-functions/dirfd.texi: Update.
6124         Reported by Rainer Tammer.
6125
6126 2010-07-30  Eric Blake  <eblake@redhat.com>
6127
6128         strtod: next round of AIX fixes
6129         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
6130         exponent.
6131         * tests/test-strtod.c (main): Enhance tests.
6132         * doc/posix-functions/strtod.texi (strtod): Document next bug.
6133         Reported by Rainer Tammer.
6134
6135         futimens: fix configure check
6136         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
6137         Reported by Bruno Haible.
6138
6139 2010-07-30  Bruno Haible  <bruno@clisp.org>
6140
6141         getline: Update regarding AIX.
6142         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
6143         Reported by Rainer Tammer.
6144
6145 2010-07-30  Bruno Haible  <bruno@clisp.org>
6146
6147         wcwidth: Drop replacement on AIX 7.
6148         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
6149         AIX 7.
6150         Reported by Rainer Tammer.
6151
6152 2010-07-30  Bruno Haible  <bruno@clisp.org>
6153
6154         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
6155         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
6156         a 'char *'.
6157         Reported by Rainer Tammer.
6158
6159 2010-07-30  Bruno Haible  <bruno@clisp.org>
6160
6161         unlink: Update regarding AIX.
6162         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
6163         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
6164         Reported by Rainer Tammer.
6165
6166 2010-07-30  Bruno Haible  <bruno@clisp.org>
6167
6168         symlink: Update regarding AIX.
6169         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
6170         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
6171         Reported by Rainer Tammer.
6172
6173 2010-07-30  Bruno Haible  <bruno@clisp.org>
6174
6175         strndup: Update regarding AIX.
6176         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
6177         AIX 7.
6178         Reported by Rainer Tammer.
6179
6180 2010-07-30  Bruno Haible  <bruno@clisp.org>
6181
6182         stat: Update regarding AIX.
6183         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
6184         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
6185         Reported by Rainer Tammer.
6186
6187 2010-07-30  Bruno Haible  <bruno@clisp.org>
6188
6189         truncl: Fix autoconf test.
6190         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
6191         whether truncl works.
6192         Reported by Rainer Tammer.
6193
6194 2010-07-30  Bruno Haible  <bruno@clisp.org>
6195
6196         round: Update regarding AIX.
6197         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
6198         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6199         Reported by Rainer Tammer.
6200
6201 2010-07-30  Bruno Haible  <bruno@clisp.org>
6202
6203         rename: Update regarding AIX.
6204         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
6205         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
6206         Reported by Rainer Tammer.
6207
6208 2010-07-30  Bruno Haible  <bruno@clisp.org>
6209
6210         printf.m4: Update regarding AIX.
6211         * m4/printf.m4: Update comments regarding AIX.
6212         Reported by Rainer Tammer.
6213
6214 2010-07-30  Bruno Haible  <bruno@clisp.org>
6215
6216         iconv: Update regarding AIX.
6217         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
6218         AIX 7.
6219         Reported by Rainer Tammer.
6220
6221 2010-07-30  Bruno Haible  <bruno@clisp.org>
6222
6223         getopt: Update regarding AIX.
6224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
6225         no on AIX.
6226         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
6227         Reported by Rainer Tammer.
6228
6229 2010-07-30  Bruno Haible  <bruno@clisp.org>
6230
6231         ldexpl; Update regarding AIX.
6232         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
6233         on AIX 7.
6234         Reported by Rainer Tammer.
6235
6236 2010-07-30  Bruno Haible  <bruno@clisp.org>
6237
6238         frexpl: Update regarding AIX.
6239         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
6240         on AIX 7.
6241         Reported by Rainer Tammer.
6242
6243 2010-07-30  Bruno Haible  <bruno@clisp.org>
6244
6245         open, fopen: Update regarding AIX.
6246         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
6247         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6248         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
6249         * doc/posix-functions/fopen.texi: Likewise.
6250         Reported by Rainer Tammer.
6251
6252 2010-07-30  Bruno Haible  <bruno@clisp.org>
6253
6254         chown: Update doc regarding AIX.
6255         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
6256         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
6257         Reported by Rainer Tammer.
6258
6259 2010-07-30  Eric Blake  <eblake@redhat.com>
6260
6261         strtod: fix bug in replacement function on AIX
6262         * lib/strtod.c (strtod): Special case broken "0x" parse in
6263         underlying strtod.
6264         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
6265         * doc/posix-functions/strtod.texi (strtod): Likewise.
6266         Reported by Rainer Tammer.
6267
6268 2010-07-30  Bruno Haible  <bruno@clisp.org>
6269
6270         mbrlen: Fix cross-compilation guess for AIX.
6271         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
6272         guess. Leftover from 2008-12-22.
6273
6274 2010-07-30  Bruno Haible  <bruno@clisp.org>
6275
6276         mbrtowc: Fix cross-compilation guess for AIX.
6277         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
6278         guess. Leftover from 2008-12-21.
6279
6280 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6281
6282         init.sh: work around trap limitation of some shells
6283         * tests/init.sh (setup_): Move exit trap outside of shell function.
6284
6285 2010-07-29  Eric Blake  <eblake@redhat.com>
6286
6287         strtod: aid debugging
6288         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6289         understanding why strtod is rejected.
6290
6291 2010-07-28  Bruno Haible  <bruno@clisp.org>
6292
6293         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6294         * lib/unistr/u8-chr.c: Include <string.h>.
6295         * tests/unistr/test-u8-chr.c: Likewise.
6296         * tests/unistr/test-u16-chr.c: Likewise.
6297         * tests/unistr/test-u32-chr.c: Likewise.
6298         * tests/unistr/test-u8-strchr.c: Likewise.
6299         * tests/unistr/test-u16-strchr.c: Likewise.
6300         * tests/unistr/test-u32-strchr.c: Likewise.
6301         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6302         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6303         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6304         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6305
6306 2010-07-28  Bruno Haible  <bruno@clisp.org>
6307
6308         Use spaces for indentation, not tabs.
6309         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6310
6311 2010-07-27  Bruno Haible  <bruno@clisp.org>
6312
6313         mbspcasecmp: Fix function specification.
6314         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6315         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6316         Reported by Eric Blake <eblake@redhat.com>.
6317
6318 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6319
6320         timespec: use cast and not conditional, as truncation isn't possible
6321         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6322         instead of a conditional.  Comment about the situation in more detail.
6323         This undoes most of the 2009-10-29 patch.
6324
6325 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6326
6327         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6328         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6329         * lib/unistr/u8-strchr.c: Likewise.
6330         * modules/unistr/u8-chr: Depend on memchr.
6331
6332         unistr/u*-strchr: add tests
6333         * modules/unistr/u8-strchr-tests: New file.
6334         * modules/unistr/u16-strchr-tests: New file.
6335         * modules/unistr/u32-strchr-tests: New file.
6336         * tests/unistr/test-strchr.h: New file.
6337         * tests/unistr/test-u8-strchr.c: New file.
6338         * tests/unistr/test-u16-strchr.c: New file.
6339         * tests/unistr/test-u32-strchr.c: New file.
6340
6341         unistr/u*-chr: test multibyte sequences more
6342         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6343         test vector.
6344         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6345         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6346         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6347
6348         unistr/u*-chr: test multibyte sequences
6349         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6350
6351         unistr/u*-chr: prepare for multibyte tests
6352         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6353         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6354         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6355         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6356         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6357         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6358
6359 2010-07-18  Bruno Haible  <bruno@clisp.org>
6360
6361         unistr/u8-strchr: Optimize non-ASCII argument case.
6362         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6363         because the first byte often matches anyway.
6364         Reported by Pádraig Brady <P@draigbrady.com>.
6365
6366 2010-07-15  Karl Berry  <karl@gnu.org>
6367
6368         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6369
6370 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6371
6372         getcwd: on Solaris, work better if ancestors are inaccessible
6373         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6374         buffer and size, try again with a large buffer.  This works better
6375         on Solaris, since its getcwd succeeds even if the path to the root
6376         is inaccessible, and this is helpful in common cases such as .zfs
6377         hidden directories.  Problem reported by J Chapman Flack in
6378         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6379         Use system getcwd if it's declared, not merely if it's partly
6380         working; use the partly-working test only to avoid needless effort
6381         if the system getcwd fails.
6382         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6383         comment that was already obsolete and is now even more obsolete.
6384         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6385         now might call strdup.
6386
6387 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6388
6389         pthread: Add enough so that coreutils/src/sort.c compiles.
6390         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6391         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6392         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6393         Include <sys/types.h>, in case it defines pthread_t.
6394         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6395         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6396         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6397         (pthread_rwlockattr_t, pthread_spinlock_t):
6398         New typedefs, if HAVE_PTHREAD_T is not defined.
6399         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6400         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6401         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6402         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6403         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6404         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6405         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6406         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6407         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6408         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6409         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6410         New macros.
6411         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6412         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6413         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6414         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6415         (pthread_spin_unlock): New dummy functions.
6416         (pthread_create): Return EAGAIN; don't set errno.
6417         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6418         require AC_C_INLINE.
6419         * modules/pthread (Depends-on): Add sched, time.
6420         (pthread.h): Use AM_V_GEN.
6421
6422 2010-07-13  Bruno Haible  <bruno@clisp.org>
6423
6424         striconveh: Don't malloc memory if the result buffer is sufficient.
6425         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6426         buffer if its size is sufficient.
6427         Reported by Ludovic Courtès <ludo@gnu.org>.
6428
6429 2010-07-13  Bruno Haible  <bruno@clisp.org>
6430
6431         strtod: Add safety check.
6432         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6433
6434 2010-07-12  Bruno Haible  <bruno@clisp.org>
6435
6436         Unify tests that set gl_cv_func_ldexpl_no_libm.
6437         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6438         gl_FUNC_LDEXPL.
6439         (gl_FUNC_LDEXPL): Invoke it.
6440         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6441
6442 2010-07-12  Bruno Haible  <bruno@clisp.org>
6443
6444         Unify tests that set gl_cv_func_ldexp_no_libm.
6445         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6446         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6447         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6448         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6449         * modules/strtod (Files): Add m4/ldexp.m4.
6450
6451 2010-07-12  Bruno Haible  <bruno@clisp.org>
6452
6453         Unify tests that set gl_cv_func_frexpl_no_libm.
6454         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6455         gl_FUNC_FREXPL_NO_LIBM.
6456         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6457         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6458
6459 2010-07-12  Bruno Haible  <bruno@clisp.org>
6460
6461         Unify tests that set gl_cv_func_frexp_no_libm.
6462         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6463         gl_FUNC_FREXP_NO_LIBM.
6464         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6465         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6466
6467 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6468
6469         memcoll: clarify sizes versus lengths, document better, and tweak perf
6470         * lib/memcoll.c (strcoll_loop, memcoll0):
6471         Improve quality of descriptive comments.  Name variables
6472         consistently as to whether they are lengths (which do not include
6473         terminating null) versus sizes (which do).
6474         * lib/xmemcoll.c (xmemcoll0): Likewise.
6475         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6476         returned when s1size == 0; this is easier to compile and saves
6477         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6478
6479 2010-07-12  Bruno Haible  <bruno@clisp.org>
6480
6481         Tests for module '_Exit'.
6482         * modules/_Exit-tests: New file.
6483         * tests/test-_Exit.sh: New file.
6484         * tests/test-_Exit.c: New file.
6485
6486         New module '_Exit'.
6487         * lib/stdlib.in.h (__attribute__): New macro.
6488         (_Exit): New declaration.
6489         * lib/_Exit.c: New file.
6490         * m4/_Exit.m4: New file.
6491         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6492         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6493         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6494         * modules/_Exit: New file.
6495         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6496         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6497
6498 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6499
6500         strtod: make it more-accurate typically, and don't require libm
6501         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6502         Include limits.h.  Don't include string.h.
6503         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6504         (locale_isspace): New function, so that no casts are needed to
6505         check whether *s is a space.
6506         (ldexp): Provide an unused dummy if not available.
6507         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6508         (strtod): Use them.  This implementation prefers to use the
6509         underlying strtod if available, falling back on our own code
6510         only to fix known bugs.  This is more likely to produce an
6511         accurate result.  Also, it avoids the use of libm functions.
6512         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6513         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6514         was absent, but it caused a test failure with coreutils.
6515         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6516         with libm.
6517         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6518         * modules/strtod-tests (Makefile.am): Likewise.
6519
6520 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6521             Bruno Haible  <bruno@clisp.org>
6522
6523         unistr/u8-strchr: Optimize ASCII argument case.
6524         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6525
6526 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6527
6528         (x)memcoll: minor tweaks
6529         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6530         is after the type that it qualifies.
6531         (memcoll0): Likewise.
6532         * lib/memcoll.h (memcoll0): Likewise.
6533         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6534         * lib/xmemcoll.h (xmemcoll0): Likewise.
6535         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6536         differs from memcoll in that the NUL byte is part of the argument.
6537         Omit the abort-checks, as performance is a real issue here.  Plus,
6538         the checks were wrong anyway (an off-by-one error).  Omit local
6539         variable 'diff', as it's a bit clearer that way.
6540         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6541         no longer needed.
6542
6543 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6544
6545         (x)memcoll: speedup when input is known to be NUL delimited
6546         * lib/memcoll.c: Include stdlib.
6547         (memcoll0) New function.
6548         (strcoll_loop) New function, refactored for use in both memcoll
6549         and memcoll0.
6550         * lib/memcoll.h: Add prototype for memcoll0.
6551         * lib/xmemcoll.c: (xmemcoll0) New function.
6552         (collate_error) New function, refactored for use in both xmemcoll
6553         and xmemcoll0.
6554         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6555         * m4/memcoll.m4: add inline invocation.
6556
6557 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6558
6559         * build-aux/bootstrap: Remove any local translations
6560         from the translation project synchronization directory,
6561         so that local only translations are not distributed.
6562
6563 2010-07-04  Bruno Haible  <bruno@clisp.org>
6564
6565         fsusage: Clarify which code applies to which platforms.
6566         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6567         platform.
6568         * lib/fsusage.c (get_fs_usage): Likewise.
6569
6570 2010-07-04  Bruno Haible  <bruno@clisp.org>
6571
6572         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6573         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6574         Reported by Martin Lambers <marlam@marlam.de>.
6575
6576 2010-07-04  Jim Meyering  <meyering@redhat.com>
6577
6578         hash: once again explicitly disallow insertion of NULL
6579         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6580         inserting a NULL pointer cannot work with these functions.
6581         Add a comment with details.
6582         This reverts part of the 2010-07-01 commit, 5bef1a35
6583         "hash: extend module to deal with non-pointer keys".
6584
6585 2010-07-01  Bruno Haible  <bruno@clisp.org>
6586
6587         stdbool: Update doc.
6588         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6589         Info from Christian Weisgerber <naddy@mips.inka.de>.
6590
6591 2010-07-01  Jim Meyering  <meyering@redhat.com>
6592
6593         hash: extend module to deal with non-pointer keys
6594         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6595         but that allows insertion of non-pointer entries.
6596         Do not disallow an ENTRY value of NULL.
6597         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6598         * lib/hash.h (hash_insert0): Declare.
6599
6600 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6601
6602         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6603         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6604         not present (i.e. with autoconf 2.59 and when using gettextize, not
6605         gnulib), require AC_GNU_SOURCE instead.
6606
6607 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6608
6609         idpriv-drop: Fix tests.
6610         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6611         not to the test-idpriv-droptemp program.
6612
6613 2010-06-29  Bruno Haible  <bruno@clisp.org>
6614
6615         string: Fix syntax error with g++ 2.96.
6616         * lib/string.in.h (__pure__): Remove definition.
6617         (_GL_ATTRIBUTE_PURE): New macro.
6618         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6619         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6620         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6621
6622 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6623
6624         unitypes: Fix bug introduced on 2010-05-18.
6625         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6626
6627 2010-06-22  Eric Blake  <eblake@redhat.com>
6628
6629         memmem: slight optimization
6630         * lib/str-two-way.h (critical_factorization): Update comments.
6631         Reduce work during factorization phase.
6632         Reported by Carlos Bueno <carlos@bueno.org>.
6633
6634 2010-06-21  Bruno Haible  <bruno@clisp.org>
6635
6636         Fix HAVE_CALLOC_POSIX misnomer.
6637         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6638         !HAVE_CALLOC_POSIX.
6639         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6640         HAVE_CALLOC_POSIX.
6641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6642         instead of HAVE_CALLOC_POSIX.
6643         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6644         HAVE_CALLOC_POSIX.
6645
6646         Use modern idiom for calloc() replacement.
6647         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6648         AC_FUNC_CALLOC.
6649         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6650         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6651         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6652         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6653         (gl_REPLACE_CALLOC): New macro.
6654
6655 2010-06-21  Bruno Haible  <bruno@clisp.org>
6656
6657         Fix HAVE_REALLOC_POSIX misnomer.
6658         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6659         !HAVE_REALLOC_POSIX.
6660         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6661         HAVE_REALLOC_POSIX.
6662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6663         instead of HAVE_REALLOC_POSIX.
6664         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6665         HAVE_REALLOC_POSIX.
6666
6667         Use modern idiom for realloc() replacement.
6668         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6669         AC_FUNC_REALLOC.
6670         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6671         Autoconf's AC_FUNC_REALLOC.
6672         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6673         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6674         (gl_REPLACE_REALLOC): New macro.
6675         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6676
6677 2010-06-21  Bruno Haible  <bruno@clisp.org>
6678
6679         Fix HAVE_MALLOC_POSIX misnomer.
6680         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6681         !HAVE_MALLOC_POSIX.
6682         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6683         HAVE_MALLOC_POSIX.
6684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6685         instead of HAVE_MALLOC_POSIX.
6686         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6687         HAVE_MALLOC_POSIX.
6688
6689         Use modern idiom for malloc() replacement.
6690         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6691         AC_FUNC_MALLOC.
6692         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6693         Autoconf's AC_FUNC_MALLOC.
6694         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6695         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6696         (gl_REPLACE_MALLOC): New macro.
6697         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6698
6699 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6700
6701         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6702         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6703         This macro takes 3 arguments, not 4.
6704
6705 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6706
6707         ipv6: fix detection under mingw
6708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6709         in6_addr.
6710
6711 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6712
6713         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6714         that strtod() works when cross-compiling to a glibc version known
6715         to work.
6716
6717 2010-06-15  Bruno Haible  <bruno@clisp.org>
6718
6719         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6720
6721 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6722
6723         select: Correct timeout.
6724         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6725
6726 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6727
6728         git-version-gen: init shell var to avoid env var influence
6729         * build-aux/git-version-gen (v): Init shell var to empty.
6730
6731 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6732
6733         priv-set: Don't assume that priv.h exists merely because getppriv does.
6734         See Jan Andersen's bug report about AIX 5L in
6735         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6736         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6737         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6738         * lib/priv-set.h: Likewise.
6739         * tests/test-priv-set.c: Likewise.
6740
6741 2010-06-13  Bruno Haible  <bruno@clisp.org>
6742
6743         relocatable: Make it easier to test whether to install wrappers.
6744         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6745         RELOCATABLE_VIA_WRAPPER.
6746
6747 2010-06-13  Bruno Haible  <bruno@clisp.org>
6748
6749         gnulib-tool: Display specified modules and dependencies differently.
6750         * gnulib-tool (func_show_module_list): New function.
6751         (func_import, func_create_testdir): Invoke it.
6752         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6753
6754 2010-06-13  Bruno Haible  <bruno@clisp.org>
6755
6756         gnulib-tool: Align code of func_import and func_create_testdir.
6757         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6758         specified_modules.
6759
6760 2010-06-12  Jim Meyering  <meyering@redhat.com>
6761
6762         test-inttostr: avoid spurious failure on Solaris 9
6763         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6764         to accept "%ju".  Reported by Bruno Haible.
6765
6766 2010-06-11  Jim Meyering  <meyering@redhat.com>
6767
6768         test-sys_socket: mark variables as used more readably
6769         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6770         as "used" explicitly via (void) statement casts.  This is more
6771         readable than using them in an artificial return expression.
6772         Suggestion from Bruno Haible.
6773
6774 2010-06-11  Bruno Haible  <bruno@clisp.org>
6775
6776         Avoid some more warnings from "gcc -Wwrite-strings".
6777         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6778         to 'const char *'.
6779         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6780         * tests/test-c-strcasestr.c (main): Likewise.
6781         * tests/test-mbscasestr1.c (main): Likewise.
6782         * tests/test-mbscasestr2.c (main): Likewise.
6783         * tests/test-memmem.c (main): Likewise.
6784         * tests/test-strstr.c (main): Likewise.
6785         * tests/test-strcasestr.c (main): Likewise.
6786
6787 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6788
6789         init.sh: change framework_failure_ to fail with status 99, not 1
6790         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6791         automake's parallel-tests rule that this is an unexpected failure,
6792         even if the test is listed in XFAIL_TESTS.
6793
6794 2010-06-11  Jim Meyering  <meyering@redhat.com>
6795
6796         test-inttostr: avoid warnings about 4-6KB literal strings
6797         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6798         Include "macros.h", for its definition of ASSERT.
6799         (CK): s/assert/ASSERT/
6800         * modules/inttostr-tests (Files): Add macros.h.
6801
6802         init.sh: don't use $ME_ or skip_ before they are defined
6803         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6804         their first uses.  Also hoist their companions: warn_, fail_,
6805         framework_failure_, $stderr_fileno.  Prompted by a patch from
6806         Stefano Lattarini.
6807
6808         test-sys_socket: avoid set-but-not-used warnings from gcc
6809         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6810         avoid warning about set-but-not-used variables.
6811
6812         test-xvasprintf: avoid 'const' discard warnings
6813         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6814         "const" when assigning from literal strings.
6815         (test_xasprintf): Add "void" in function argument list to placate
6816         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6817
6818         tests: avoid compilation warnings in argmatch and exclude tests...
6819         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6820         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6821         Since it always exits, declare with the "noreturn" attribute.
6822         * tests/test-argmatch.c: Likewise.
6823
6824         tests: avoid 'const' discard warnings in mbsstr tests
6825         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6826         * tests/test-mbsstr2.c (main): Likewise.
6827
6828         test-verify: avoid warning from gcc's -Wmissing-declarations
6829         * tests/test-verify.c (function): Declare to be static.
6830
6831         test-inttostr.c: include <string.h> for use of strcmp
6832         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6833
6834         test-linkat: avoid failed assertion on "other" architectures
6835         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6836         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6837         sparc: https://bugs.launchpad.net/bugs/591968
6838
6839 2010-06-11  Jim Meyering  <meyering@redhat.com>
6840
6841         printf.m4: avoid autoconf's "Expanded Before Required" warning
6842         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6843         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6844         autoconf warning.
6845
6846 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6847
6848         Replacement header templates are now named with ".in", not "_".
6849         * doc/gnulib-intro.texi: Correct.
6850
6851 2010-06-10  Jim Meyering  <meyering@redhat.com>
6852
6853         inttostr-tests: depend on snprintf, not snprintf-posix
6854         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6855         snprintf-posix, to avoid this aclocal failure:
6856           missing file gnulib-tests/vasnprintf.c
6857           configure.ac:45: error: expected source file, required through \
6858           AC_LIBSOURCES, not found
6859
6860 2010-06-10  Jim Meyering  <meyering@redhat.com>
6861
6862         inttostr: add a new function, inttostr, and tests
6863         The namesake function was not available.  The existence of the
6864         template file, inttostr.c makes its addition nontrivial.
6865         * lib/anytostr.c: Rename from inttostr.c.
6866         (anytostr): Rename from inttostr.
6867         * lib/inttostr.c: New file.
6868         * modules/inttostr (Files): Add anytostr.c.
6869         (Makefile.am): Set lib_SOURCES instead of ...
6870         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6871         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6872         * lib/offtostr.c: Likewise.
6873         * lib/uinttostr.c: Likewise.
6874         * lib/umaxtostr.c: Likewise.
6875         * modules/inttostr-tests: New file.
6876         * tests/test-inttostr.c: New file.  Test these functions.
6877
6878 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6879             Bruno Haible  <bruno@clisp.org>
6880
6881         Add "Extending Gnulib" chapter to manual.
6882         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6883         chapter.
6884         (Extending Gnulib): New chapter.
6885         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6886         chapter.
6887
6888 2010-06-09  Bruno Haible  <bruno@clisp.org>
6889
6890         Avoid relocwrapper link errors due to gnulib replacement functions.
6891         * lib/areadlink.c: Use the system's malloc, realloc functions.
6892         (areadlink): Set errno to ENOMEM explicitly.
6893         * modules/areadlink (Depends-on): Remove malloc-posix.
6894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6895
6896 2010-06-09  Bruno Haible  <bruno@clisp.org>
6897
6898         Avoid relocwrapper link errors due to gnulib replacement functions.
6899         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6900         * lib/malloca.c: Likewise.
6901         * lib/relocatable.c: Likewise.
6902         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6903         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6904         * lib/setenv.c: Use the system's malloc, realloc functions.
6905         * lib/strerror.c: Use the system's sprintf function.
6906         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6907
6908 2010-06-04  Bruno Haible  <bruno@clisp.org>
6909
6910         Prefer documented low-level autoconf macro names.
6911         * m4/lib-link.m4: Use m4_translit instead of translit.
6912         * m4/environ.m4: Likewise.
6913         * m4/mathfunc.m4: Likewise.
6914         * m4/onceonly.m4: Likewise.
6915         * m4/stdint.m4: Likewise.
6916         Suggested by Eric Blake.
6917
6918 2010-06-04  Martin Lambers  <marlam@marlam.de>
6919             Bruno Haible  <bruno@clisp.org>
6920
6921         havelib: Allow library names with '+' characters.
6922         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6923         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6924
6925 2010-06-09  Bruno Haible  <bruno@clisp.org>
6926
6927         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6928         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6929         realloc failed.
6930
6931 2010-06-08  Peter Simons  <simons@cryp.to>
6932
6933         maint.mk: make the news-check rule more configurable
6934         * top/maint.mk (news-check-lines-spec) New variable.
6935         (news-check): Use "sed -n 1,10p" in place of "head".
6936
6937 2010-06-07  Jim Meyering  <meyering@redhat.com>
6938
6939         do-release-commit-and-tag: fix typo in --help
6940         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6941
6942         regex: avoid new dead-code warning with gcc-4.6.0
6943         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6944         if-block containing a while-loop.  It's been unused for at least
6945         5 years.
6946
6947 2010-06-05  Bruno Haible  <bruno@clisp.org>
6948
6949         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6950         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6951
6952 2010-06-04  Bruno Haible  <bruno@clisp.org>
6953
6954         Update to GNU gettext 0.18.1.
6955         * modules/gettext (configure.ac): Require gettext infrastructure from
6956         version 0.18.1.
6957
6958 2010-06-03  Bruno Haible  <bruno@clisp.org>
6959
6960         Don't use AC_LIBOBJ with file names in subdirectories.
6961         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6962         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6963         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6964         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6965         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6966         gl_LIBUNISTRING_LIBSOURCE.
6967         (Makefile.am): Augment lib_SOURCES here, conditionally.
6968         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6969
6970 2010-06-03  Bruno Haible  <bruno@clisp.org>
6971
6972         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6973         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6974         expansion does not end with a newline.
6975         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6976         unnecessary newline.
6977
6978 2010-06-03  Bruno Haible  <bruno@clisp.org>
6979
6980         Reduce dependencies.
6981         * tests/test-quotearg.h: New file, extracted from
6982         tests/test-quotearg.c.
6983         * tests/test-quotearg-simple.c: New file, extracted from
6984         tests/test-quotearg.c.
6985         * tests/test-quotearg.c: Don't include <ctype.h>.
6986         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6987         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6988         use_quote_double_quotes, use_quotearg_colon): Moved to
6989         tests/test-quotearg.h.
6990         (results_g, flag_results, custom_quotes, custom_results): Moved
6991         to tests/test-quotearg-simple.c.
6992         (main): Moved the part that does not depend on gettext to
6993         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6994         performed.
6995         * modules/quotearg-simple: New file.
6996         * modules/quotearg-simple-tests: New file.
6997         * modules/quotearg (Depends-on): Add quotearg-simple.
6998         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6999         (Files): Add tests/test-quotearg.h.
7000         Reported by Paolo Bonzini.
7001
7002 2010-06-03  Bruno Haible  <bruno@clisp.org>
7003
7004         Reduce dependencies.
7005         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
7006
7007 2010-06-03  Bruno Haible  <bruno@clisp.org>
7008
7009         time: Undefine more broken macros.
7010         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
7011         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
7012         Reported by Eric Blake.
7013
7014 2010-06-03  Bruno Haible  <bruno@clisp.org>
7015
7016         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
7017         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
7018         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
7019         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
7020         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
7021         Reported by Ludovic Courtès <ludo@gnu.org>.
7022
7023 2010-06-02  Eric Blake  <eblake@redhat.com>
7024
7025         time: work with mingw + pthreads-win32 library
7026         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
7027         if timespec is defined only in pthread.h.
7028         * modules/time (Makefile.am): Substitute it.
7029         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
7030         <pthread.h>, when needed.
7031         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
7032         from the library.
7033
7034 2010-05-31  Bruno Haible  <bruno@clisp.org>
7035
7036         Avoid expanding two macros in the wrong order.
7037         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
7038         gl_LIBUNISTRING if it is defined.
7039         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
7040         autoconf >= 2.64.
7041         Reported by Ludovic Courtès <ludo@gnu.org>.
7042
7043 2010-05-27  Jim Meyering  <meyering@redhat.com>
7044
7045         maint.mk: also prohibit "#undef" of always-defined symbols
7046         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
7047         Allow more than one space before the symbol name.
7048         (sc_prohibit_always-defined_macros): Use grep's -E, now that
7049         the regexp uses alternation.
7050
7051 2010-05-26  Eric Blake  <eblake@redhat.com>
7052
7053         maint.mk: avoid echo -e
7054         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
7055         Convert all uses of echo -* to printf.
7056         Reported by Matthias Bolte.
7057
7058 2010-05-25  Bruno Haible  <bruno@clisp.org>
7059
7060         Update to GNU gettext 0.18, part 2.
7061         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
7062         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
7063
7064 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7065
7066         Add missing include in test-pwrite.c.
7067         * tests/test-pwrite.c: Include string.h, for strcmp.
7068
7069 2010-05-24  Bruno Haible  <bruno@clisp.org>
7070
7071         * NEWS: Mention requirement for Automake option 'subdir-objects'.
7072
7073 2010-05-24  Bruno Haible  <bruno@clisp.org>
7074
7075         Don't use conversion with transliteration in u{8,16,32}_strcoll.
7076         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
7077         iconveh_error argument.
7078         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
7079         U_STRCONV_TO_LOCALE.
7080         * lib/unistr/u16-strcoll.c: Likewise.
7081         * lib/unistr/u32-strcoll.c: Likewise.
7082         * modules/unistr/u8-strcoll (Depends-on): Add
7083         uniconv/u8-strconv-to-enc, localcharset. Remove
7084         uniconv/u8-strconv-to-locale.
7085         (configure.ac): Bump version number.
7086         * modules/unistr/u16-strcoll (Depends-on): Add
7087         uniconv/u16-strconv-to-enc, localcharset. Remove
7088         uniconv/u16-strconv-to-locale.
7089         (configure.ac): Bump version number.
7090         * modules/unistr/u32-strcoll (Depends-on): Add
7091         uniconv/u32-strconv-to-enc, localcharset. Remove
7092         uniconv/u32-strconv-to-locale.
7093         (configure.ac): Bump version number.
7094
7095 2010-05-24  Bruno Haible  <bruno@clisp.org>
7096
7097         Avoid a test failure on NetBSD 5.0.
7098         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
7099         an iconv() bug.
7100
7101 2010-05-24  Bruno Haible  <bruno@clisp.org>
7102
7103         Adjust #include directive style.
7104         * modules/regex (Includes): Recommend to write <regex.h>.
7105
7106 2010-05-24  Bruno Haible  <bruno@clisp.org>
7107
7108         regex: Don't require alloca.
7109         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
7110         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
7111         only inside if (0).
7112
7113 2010-05-23  Jim Meyering  <meyering@redhat.com>
7114
7115         test-renameat.c: include <sys/stat.h>
7116         * tests/test-renameat.c: Include <sys/stat.h>; required for
7117         definition of S_IS* macros.
7118
7119 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
7120
7121         Update maintainer documentation for 'relocatable-prog' module.
7122         * doc/relocatable-maint.texi: Update.
7123         Comments by Bruno Haible.
7124
7125 2010-05-23  Bruno Haible  <bruno@clisp.org>
7126
7127         git-merge-changelog: Enable --split-merged-entry by default.
7128         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
7129         (usage): Don't mention this option any more.
7130         Reported by Ralf Wildenhues.
7131
7132 2010-05-23  Jim Meyering  <meyering@redhat.com>
7133
7134         test-pwrite: do not leave behind a test file named "out"
7135         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
7136         The trivial-looking use of init.sh is really necessary.
7137         It ensures that the temporary file, "out", is created in
7138         a temporary directory, and removed upon termination.
7139         * tests/test-pwrite.sh: Re-add file.
7140         * modules/pwrite-tests: Reference it.
7141
7142 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7143
7144         Fix output redirection buglet in init.sh.
7145         * tests/init.sh: Fix redirection of stderr.
7146
7147 2010-05-20  Simon Josefsson  <simon@josefsson.org>
7148
7149         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
7150
7151 2010-05-17  Simon Josefsson  <simon@josefsson.org>
7152
7153         * modules/valgrind-tests: New file.
7154         * m4/valgrind-tests.m4: New file.
7155         * doc/valgrind-tests.texi: New file.
7156         * doc/gnulib.texi (Running self-tests under valgrind): New
7157         section.
7158
7159 2010-05-19  Bruno Haible  <bruno@clisp.org>
7160
7161         Clean up dead code in recent commit.
7162         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
7163         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
7164         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
7165         Suggested by Paolo Bonzini.
7166
7167 2010-05-19  Bruno Haible  <bruno@clisp.org>
7168
7169         Avoid valgrind error reports from libunistring.
7170         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
7171         * modules/libunistring (Files): Add it.
7172         * modules/libunistring-optional (Files): Likewise.
7173
7174 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
7175             Bruno Haible  <bruno@clisp.org>
7176
7177         New module 'libunistring-optional'.
7178         * modules/libunistring-optional: New file.
7179         * m4/libunistring-base.m4: New file.
7180         * m4/libunistring-optional.m4: New file.
7181         * lib/unicase.in.h: Renamed from lib/unicase.h.
7182         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
7183         * lib/unictype.in.h: Renamed from lib/unictype.h.
7184         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
7185         * lib/uniname.in.h: Renamed from lib/uniname.h.
7186         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
7187         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
7188         * lib/unistr.in.h: Renamed from lib/unistr.h.
7189         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
7190         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
7191         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
7192         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
7193         gl_LIBUNISTRING. If the library was found, determine the installed
7194         version and set LIBUNISTRING_VERSION.
7195         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
7196         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
7197         handle a configuration option --with-included-libunistring.
7198         * modules/libunistring (Files): Add m4/absolute-header.m4.
7199         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
7200         Add m4/libunistring-base.m4.
7201         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7202         (Makefile.am): Build unicase.h from unicase.in.h.
7203         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
7204         Add m4/libunistring-base.m4.
7205         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7206         (Makefile.am): Build uniconv.h from uniconv.in.h.
7207         * modules/unictype/base (Files): Use unictype.in.h instead of
7208         unictype.h. Add m4/libunistring-base.m4.
7209         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7210         (Makefile.am): Build unictype.h from unictype.in.h.
7211         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
7212         Add m4/libunistring-base.m4.
7213         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7214         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
7215         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
7216         Add m4/libunistring-base.m4.
7217         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7218         (Makefile.am): Build uniname.h from uniname.in.h.
7219         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
7220         Add m4/libunistring-base.m4.
7221         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7222         (Makefile.am): Build uninorm.h from uninorm.in.h.
7223         * modules/unistdio/base (Files): Use unistdio.in.h instead of
7224         unistdio.h. Add m4/libunistring-base.m4.
7225         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7226         (Makefile.am): Build unistdio.h from unistdio.in.h.
7227         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
7228         Add m4/libunistring-base.m4.
7229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7230         (Makefile.am): Build unistr.h from unistr.in.h.
7231         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
7232         Add m4/libunistring-base.m4.
7233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7234         (Makefile.am): Build unitypes.h from unitypes.in.h.
7235         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
7236         Add m4/libunistring-base.m4.
7237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7238         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
7239         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
7240         uniwidth.h. Add m4/libunistring-base.m4.
7241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
7242         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
7243         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
7244         instead of augmenting lib_SOURCES.
7245         * modules/unicase/empty-suffix-context: Likewise.
7246         * modules/unicase/locale-language: Likewise.
7247         * modules/unicase/tolower: Likewise.
7248         * modules/unicase/totitle: Likewise.
7249         * modules/unicase/toupper: Likewise.
7250         * modules/unicase/u8-casecmp: Likewise.
7251         * modules/unicase/u8-casecoll: Likewise.
7252         * modules/unicase/u8-casefold: Likewise.
7253         * modules/unicase/u8-casexfrm: Likewise.
7254         * modules/unicase/u8-ct-casefold: Likewise.
7255         * modules/unicase/u8-ct-tolower: Likewise.
7256         * modules/unicase/u8-ct-totitle: Likewise.
7257         * modules/unicase/u8-ct-toupper: Likewise.
7258         * modules/unicase/u8-is-cased: Likewise.
7259         * modules/unicase/u8-is-casefolded: Likewise.
7260         * modules/unicase/u8-is-lowercase: Likewise.
7261         * modules/unicase/u8-is-titlecase: Likewise.
7262         * modules/unicase/u8-is-uppercase: Likewise.
7263         * modules/unicase/u8-prefix-context: Likewise.
7264         * modules/unicase/u8-suffix-context: Likewise.
7265         * modules/unicase/u8-tolower: Likewise.
7266         * modules/unicase/u8-totitle: Likewise.
7267         * modules/unicase/u8-toupper: Likewise.
7268         * modules/unicase/u16-casecmp: Likewise.
7269         * modules/unicase/u16-casecoll: Likewise.
7270         * modules/unicase/u16-casefold: Likewise.
7271         * modules/unicase/u16-casexfrm: Likewise.
7272         * modules/unicase/u16-ct-casefold: Likewise.
7273         * modules/unicase/u16-ct-tolower: Likewise.
7274         * modules/unicase/u16-ct-totitle: Likewise.
7275         * modules/unicase/u16-ct-toupper: Likewise.
7276         * modules/unicase/u16-is-cased: Likewise.
7277         * modules/unicase/u16-is-casefolded: Likewise.
7278         * modules/unicase/u16-is-lowercase: Likewise.
7279         * modules/unicase/u16-is-titlecase: Likewise.
7280         * modules/unicase/u16-is-uppercase: Likewise.
7281         * modules/unicase/u16-prefix-context: Likewise.
7282         * modules/unicase/u16-suffix-context: Likewise.
7283         * modules/unicase/u16-tolower: Likewise.
7284         * modules/unicase/u16-totitle: Likewise.
7285         * modules/unicase/u16-toupper: Likewise.
7286         * modules/unicase/u32-casecmp: Likewise.
7287         * modules/unicase/u32-casecoll: Likewise.
7288         * modules/unicase/u32-casefold: Likewise.
7289         * modules/unicase/u32-casexfrm: Likewise.
7290         * modules/unicase/u32-ct-casefold: Likewise.
7291         * modules/unicase/u32-ct-tolower: Likewise.
7292         * modules/unicase/u32-ct-totitle: Likewise.
7293         * modules/unicase/u32-ct-toupper: Likewise.
7294         * modules/unicase/u32-is-cased: Likewise.
7295         * modules/unicase/u32-is-casefolded: Likewise.
7296         * modules/unicase/u32-is-lowercase: Likewise.
7297         * modules/unicase/u32-is-titlecase: Likewise.
7298         * modules/unicase/u32-is-uppercase: Likewise.
7299         * modules/unicase/u32-prefix-context: Likewise.
7300         * modules/unicase/u32-suffix-context: Likewise.
7301         * modules/unicase/u32-tolower: Likewise.
7302         * modules/unicase/u32-totitle: Likewise.
7303         * modules/unicase/u32-toupper: Likewise.
7304         * modules/unicase/ulc-casecmp: Likewise.
7305         * modules/unicase/ulc-casecoll: Likewise.
7306         * modules/unicase/ulc-casexfrm: Likewise.
7307         * modules/uniconv/u8-conv-from-enc: Likewise.
7308         * modules/uniconv/u8-conv-to-enc: Likewise.
7309         * modules/uniconv/u8-strconv-from-enc: Likewise.
7310         * modules/uniconv/u8-strconv-from-locale: Likewise.
7311         * modules/uniconv/u8-strconv-to-enc: Likewise.
7312         * modules/uniconv/u8-strconv-to-locale: Likewise.
7313         * modules/uniconv/u16-conv-from-enc: Likewise.
7314         * modules/uniconv/u16-conv-to-enc: Likewise.
7315         * modules/uniconv/u16-strconv-from-enc: Likewise.
7316         * modules/uniconv/u16-strconv-from-locale: Likewise.
7317         * modules/uniconv/u16-strconv-to-enc: Likewise.
7318         * modules/uniconv/u16-strconv-to-locale: Likewise.
7319         * modules/uniconv/u32-conv-from-enc: Likewise.
7320         * modules/uniconv/u32-conv-to-enc: Likewise.
7321         * modules/uniconv/u32-strconv-from-enc: Likewise.
7322         * modules/uniconv/u32-strconv-from-locale: Likewise.
7323         * modules/uniconv/u32-strconv-to-enc: Likewise.
7324         * modules/uniconv/u32-strconv-to-locale: Likewise.
7325         * modules/unictype/bidicategory-byname: Likewise.
7326         * modules/unictype/bidicategory-name: Likewise.
7327         * modules/unictype/bidicategory-of: Likewise.
7328         * modules/unictype/bidicategory-test: Likewise.
7329         * modules/unictype/block-list: Likewise.
7330         * modules/unictype/block-test: Likewise.
7331         * modules/unictype/category-C: Likewise.
7332         * modules/unictype/category-Cc: Likewise.
7333         * modules/unictype/category-Cf: Likewise.
7334         * modules/unictype/category-Cn: Likewise.
7335         * modules/unictype/category-Co: Likewise.
7336         * modules/unictype/category-Cs: Likewise.
7337         * modules/unictype/category-L: Likewise.
7338         * modules/unictype/category-Ll: Likewise.
7339         * modules/unictype/category-Lm: Likewise.
7340         * modules/unictype/category-Lo: Likewise.
7341         * modules/unictype/category-Lt: Likewise.
7342         * modules/unictype/category-Lu: Likewise.
7343         * modules/unictype/category-M: Likewise.
7344         * modules/unictype/category-Mc: Likewise.
7345         * modules/unictype/category-Me: Likewise.
7346         * modules/unictype/category-Mn: Likewise.
7347         * modules/unictype/category-N: Likewise.
7348         * modules/unictype/category-Nd: Likewise.
7349         * modules/unictype/category-Nl: Likewise.
7350         * modules/unictype/category-No: Likewise.
7351         * modules/unictype/category-P: Likewise.
7352         * modules/unictype/category-Pc: Likewise.
7353         * modules/unictype/category-Pd: Likewise.
7354         * modules/unictype/category-Pe: Likewise.
7355         * modules/unictype/category-Pf: Likewise.
7356         * modules/unictype/category-Pi: Likewise.
7357         * modules/unictype/category-Po: Likewise.
7358         * modules/unictype/category-Ps: Likewise.
7359         * modules/unictype/category-S: Likewise.
7360         * modules/unictype/category-Sc: Likewise.
7361         * modules/unictype/category-Sk: Likewise.
7362         * modules/unictype/category-Sm: Likewise.
7363         * modules/unictype/category-So: Likewise.
7364         * modules/unictype/category-Z: Likewise.
7365         * modules/unictype/category-Zl: Likewise.
7366         * modules/unictype/category-Zp: Likewise.
7367         * modules/unictype/category-Zs: Likewise.
7368         * modules/unictype/category-and: Likewise.
7369         * modules/unictype/category-and-not: Likewise.
7370         * modules/unictype/category-byname: Likewise.
7371         * modules/unictype/category-name: Likewise.
7372         * modules/unictype/category-none: Likewise.
7373         * modules/unictype/category-of: Likewise.
7374         * modules/unictype/category-or: Likewise.
7375         * modules/unictype/category-test: Likewise.
7376         * modules/unictype/combining-class: Likewise.
7377         * modules/unictype/ctype-alnum: Likewise.
7378         * modules/unictype/ctype-alpha: Likewise.
7379         * modules/unictype/ctype-blank: Likewise.
7380         * modules/unictype/ctype-cntrl: Likewise.
7381         * modules/unictype/ctype-digit: Likewise.
7382         * modules/unictype/ctype-graph: Likewise.
7383         * modules/unictype/ctype-lower: Likewise.
7384         * modules/unictype/ctype-print: Likewise.
7385         * modules/unictype/ctype-punct: Likewise.
7386         * modules/unictype/ctype-space: Likewise.
7387         * modules/unictype/ctype-upper: Likewise.
7388         * modules/unictype/ctype-xdigit: Likewise.
7389         * modules/unictype/decimal-digit: Likewise.
7390         * modules/unictype/digit: Likewise.
7391         * modules/unictype/mirror: Likewise.
7392         * modules/unictype/numeric: Likewise.
7393         * modules/unictype/property-alphabetic: Likewise.
7394         * modules/unictype/property-ascii-hex-digit: Likewise.
7395         * modules/unictype/property-bidi-arabic-digit: Likewise.
7396         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7397         * modules/unictype/property-bidi-block-separator: Likewise.
7398         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7399         * modules/unictype/property-bidi-common-separator: Likewise.
7400         * modules/unictype/property-bidi-control: Likewise.
7401         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7402         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7403         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7404         * modules/unictype/property-bidi-european-digit: Likewise.
7405         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7406         * modules/unictype/property-bidi-left-to-right: Likewise.
7407         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7408         * modules/unictype/property-bidi-other-neutral: Likewise.
7409         * modules/unictype/property-bidi-pdf: Likewise.
7410         * modules/unictype/property-bidi-segment-separator: Likewise.
7411         * modules/unictype/property-bidi-whitespace: Likewise.
7412         * modules/unictype/property-byname: Likewise.
7413         * modules/unictype/property-combining: Likewise.
7414         * modules/unictype/property-composite: Likewise.
7415         * modules/unictype/property-currency-symbol: Likewise.
7416         * modules/unictype/property-dash: Likewise.
7417         * modules/unictype/property-decimal-digit: Likewise.
7418         * modules/unictype/property-default-ignorable-code-point: Likewise.
7419         * modules/unictype/property-deprecated: Likewise.
7420         * modules/unictype/property-diacritic: Likewise.
7421         * modules/unictype/property-extender: Likewise.
7422         * modules/unictype/property-format-control: Likewise.
7423         * modules/unictype/property-grapheme-base: Likewise.
7424         * modules/unictype/property-grapheme-extend: Likewise.
7425         * modules/unictype/property-grapheme-link: Likewise.
7426         * modules/unictype/property-hex-digit: Likewise.
7427         * modules/unictype/property-hyphen: Likewise.
7428         * modules/unictype/property-id-continue: Likewise.
7429         * modules/unictype/property-id-start: Likewise.
7430         * modules/unictype/property-ideographic: Likewise.
7431         * modules/unictype/property-ids-binary-operator: Likewise.
7432         * modules/unictype/property-ids-trinary-operator: Likewise.
7433         * modules/unictype/property-ignorable-control: Likewise.
7434         * modules/unictype/property-iso-control: Likewise.
7435         * modules/unictype/property-join-control: Likewise.
7436         * modules/unictype/property-left-of-pair: Likewise.
7437         * modules/unictype/property-line-separator: Likewise.
7438         * modules/unictype/property-logical-order-exception: Likewise.
7439         * modules/unictype/property-lowercase: Likewise.
7440         * modules/unictype/property-math: Likewise.
7441         * modules/unictype/property-non-break: Likewise.
7442         * modules/unictype/property-not-a-character: Likewise.
7443         * modules/unictype/property-numeric: Likewise.
7444         * modules/unictype/property-other-alphabetic: Likewise.
7445         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7446         * modules/unictype/property-other-grapheme-extend: Likewise.
7447         * modules/unictype/property-other-id-continue: Likewise.
7448         * modules/unictype/property-other-id-start: Likewise.
7449         * modules/unictype/property-other-lowercase: Likewise.
7450         * modules/unictype/property-other-math: Likewise.
7451         * modules/unictype/property-other-uppercase: Likewise.
7452         * modules/unictype/property-paired-punctuation: Likewise.
7453         * modules/unictype/property-paragraph-separator: Likewise.
7454         * modules/unictype/property-pattern-syntax: Likewise.
7455         * modules/unictype/property-pattern-white-space: Likewise.
7456         * modules/unictype/property-private-use: Likewise.
7457         * modules/unictype/property-punctuation: Likewise.
7458         * modules/unictype/property-quotation-mark: Likewise.
7459         * modules/unictype/property-radical: Likewise.
7460         * modules/unictype/property-sentence-terminal: Likewise.
7461         * modules/unictype/property-soft-dotted: Likewise.
7462         * modules/unictype/property-space: Likewise.
7463         * modules/unictype/property-terminal-punctuation: Likewise.
7464         * modules/unictype/property-test: Likewise.
7465         * modules/unictype/property-titlecase: Likewise.
7466         * modules/unictype/property-unassigned-code-value: Likewise.
7467         * modules/unictype/property-unified-ideograph: Likewise.
7468         * modules/unictype/property-uppercase: Likewise.
7469         * modules/unictype/property-variation-selector: Likewise.
7470         * modules/unictype/property-white-space: Likewise.
7471         * modules/unictype/property-xid-continue: Likewise.
7472         * modules/unictype/property-xid-start: Likewise.
7473         * modules/unictype/property-zero-width: Likewise.
7474         * modules/unictype/scripts: Likewise.
7475         * modules/unictype/syntax-c-ident: Likewise.
7476         * modules/unictype/syntax-c-whitespace: Likewise.
7477         * modules/unictype/syntax-java-ident: Likewise.
7478         * modules/unictype/syntax-java-whitespace: Likewise.
7479         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7480         * modules/unilbrk/u8-width-linebreaks: Likewise.
7481         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7482         * modules/unilbrk/u16-width-linebreaks: Likewise.
7483         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7484         * modules/unilbrk/u32-width-linebreaks: Likewise.
7485         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7486         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7487         * modules/uniname/uniname: Likewise.
7488         * modules/uninorm/canonical-decomposition: Likewise.
7489         * modules/uninorm/composition: Likewise.
7490         * modules/uninorm/decomposing-form: Likewise.
7491         * modules/uninorm/decomposition: Likewise.
7492         * modules/uninorm/filter: Likewise.
7493         * modules/uninorm/nfc: Likewise.
7494         * modules/uninorm/nfd: Likewise.
7495         * modules/uninorm/nfkc: Likewise.
7496         * modules/uninorm/nfkd: Likewise.
7497         * modules/uninorm/u8-normalize: Likewise.
7498         * modules/uninorm/u8-normcmp: Likewise.
7499         * modules/uninorm/u8-normcoll: Likewise.
7500         * modules/uninorm/u8-normxfrm: Likewise.
7501         * modules/uninorm/u16-normalize: Likewise.
7502         * modules/uninorm/u16-normcmp: Likewise.
7503         * modules/uninorm/u16-normcoll: Likewise.
7504         * modules/uninorm/u16-normxfrm: Likewise.
7505         * modules/uninorm/u32-normalize: Likewise.
7506         * modules/uninorm/u32-normcmp: Likewise.
7507         * modules/uninorm/u32-normcoll: Likewise.
7508         * modules/uninorm/u32-normxfrm: Likewise.
7509         * modules/unistdio/u8-asnprintf: Likewise.
7510         * modules/unistdio/u8-asprintf: Likewise.
7511         * modules/unistdio/u8-snprintf: Likewise.
7512         * modules/unistdio/u8-sprintf: Likewise.
7513         * modules/unistdio/u8-u8-asnprintf: Likewise.
7514         * modules/unistdio/u8-u8-asprintf: Likewise.
7515         * modules/unistdio/u8-u8-snprintf: Likewise.
7516         * modules/unistdio/u8-u8-sprintf: Likewise.
7517         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7518         * modules/unistdio/u8-u8-vasprintf: Likewise.
7519         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7520         * modules/unistdio/u8-u8-vsprintf: Likewise.
7521         * modules/unistdio/u8-vasnprintf: Likewise.
7522         * modules/unistdio/u8-vasprintf: Likewise.
7523         * modules/unistdio/u8-vsnprintf: Likewise.
7524         * modules/unistdio/u8-vsprintf: Likewise.
7525         * modules/unistdio/u16-asnprintf: Likewise.
7526         * modules/unistdio/u16-asprintf: Likewise.
7527         * modules/unistdio/u16-snprintf: Likewise.
7528         * modules/unistdio/u16-sprintf: Likewise.
7529         * modules/unistdio/u16-u16-asnprintf: Likewise.
7530         * modules/unistdio/u16-u16-asprintf: Likewise.
7531         * modules/unistdio/u16-u16-snprintf: Likewise.
7532         * modules/unistdio/u16-u16-sprintf: Likewise.
7533         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7534         * modules/unistdio/u16-u16-vasprintf: Likewise.
7535         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7536         * modules/unistdio/u16-u16-vsprintf: Likewise.
7537         * modules/unistdio/u16-vasnprintf: Likewise.
7538         * modules/unistdio/u16-vasprintf: Likewise.
7539         * modules/unistdio/u16-vsnprintf: Likewise.
7540         * modules/unistdio/u16-vsprintf: Likewise.
7541         * modules/unistdio/u32-asnprintf: Likewise.
7542         * modules/unistdio/u32-asprintf: Likewise.
7543         * modules/unistdio/u32-snprintf: Likewise.
7544         * modules/unistdio/u32-sprintf: Likewise.
7545         * modules/unistdio/u32-u32-asnprintf: Likewise.
7546         * modules/unistdio/u32-u32-asprintf: Likewise.
7547         * modules/unistdio/u32-u32-snprintf: Likewise.
7548         * modules/unistdio/u32-u32-sprintf: Likewise.
7549         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7550         * modules/unistdio/u32-u32-vasprintf: Likewise.
7551         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7552         * modules/unistdio/u32-u32-vsprintf: Likewise.
7553         * modules/unistdio/u32-vasnprintf: Likewise.
7554         * modules/unistdio/u32-vasprintf: Likewise.
7555         * modules/unistdio/u32-vsnprintf: Likewise.
7556         * modules/unistdio/u32-vsprintf: Likewise.
7557         * modules/unistdio/ulc-asnprintf: Likewise.
7558         * modules/unistdio/ulc-asprintf: Likewise.
7559         * modules/unistdio/ulc-fprintf: Likewise.
7560         * modules/unistdio/ulc-snprintf: Likewise.
7561         * modules/unistdio/ulc-sprintf: Likewise.
7562         * modules/unistdio/ulc-vasnprintf: Likewise.
7563         * modules/unistdio/ulc-vasprintf: Likewise.
7564         * modules/unistdio/ulc-vfprintf: Likewise.
7565         * modules/unistdio/ulc-vsnprintf: Likewise.
7566         * modules/unistdio/ulc-vsprintf: Likewise.
7567         * modules/unistr/u8-check: Likewise.
7568         * modules/unistr/u8-chr: Likewise.
7569         * modules/unistr/u8-cmp: Likewise.
7570         * modules/unistr/u8-cmp2: Likewise.
7571         * modules/unistr/u8-cpy: Likewise.
7572         * modules/unistr/u8-cpy-alloc: Likewise.
7573         * modules/unistr/u8-endswith: Likewise.
7574         * modules/unistr/u8-mblen: Likewise.
7575         * modules/unistr/u8-mbsnlen: Likewise.
7576         * modules/unistr/u8-mbtouc: Likewise.
7577         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7578         * modules/unistr/u8-mbtoucr: Likewise.
7579         * modules/unistr/u8-move: Likewise.
7580         * modules/unistr/u8-next: Likewise.
7581         * modules/unistr/u8-prev: Likewise.
7582         * modules/unistr/u8-set: Likewise.
7583         * modules/unistr/u8-startswith: Likewise.
7584         * modules/unistr/u8-stpcpy: Likewise.
7585         * modules/unistr/u8-stpncpy: Likewise.
7586         * modules/unistr/u8-strcat: Likewise.
7587         * modules/unistr/u8-strchr: Likewise.
7588         * modules/unistr/u8-strcmp: Likewise.
7589         * modules/unistr/u8-strcoll: Likewise.
7590         * modules/unistr/u8-strcpy: Likewise.
7591         * modules/unistr/u8-strcspn: Likewise.
7592         * modules/unistr/u8-strdup: Likewise.
7593         * modules/unistr/u8-strlen: Likewise.
7594         * modules/unistr/u8-strmblen: Likewise.
7595         * modules/unistr/u8-strmbtouc: Likewise.
7596         * modules/unistr/u8-strncat: Likewise.
7597         * modules/unistr/u8-strncmp: Likewise.
7598         * modules/unistr/u8-strncpy: Likewise.
7599         * modules/unistr/u8-strnlen: Likewise.
7600         * modules/unistr/u8-strpbrk: Likewise.
7601         * modules/unistr/u8-strrchr: Likewise.
7602         * modules/unistr/u8-strspn: Likewise.
7603         * modules/unistr/u8-strstr: Likewise.
7604         * modules/unistr/u8-strtok: Likewise.
7605         * modules/unistr/u8-to-u16: Likewise.
7606         * modules/unistr/u8-to-u32: Likewise.
7607         * modules/unistr/u8-uctomb: Likewise.
7608         * modules/unistr/u16-check: Likewise.
7609         * modules/unistr/u16-chr: Likewise.
7610         * modules/unistr/u16-cmp: Likewise.
7611         * modules/unistr/u16-cmp2: Likewise.
7612         * modules/unistr/u16-cpy: Likewise.
7613         * modules/unistr/u16-cpy-alloc: Likewise.
7614         * modules/unistr/u16-endswith: Likewise.
7615         * modules/unistr/u16-mblen: Likewise.
7616         * modules/unistr/u16-mbsnlen: Likewise.
7617         * modules/unistr/u16-mbtouc: Likewise.
7618         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7619         * modules/unistr/u16-mbtoucr: Likewise.
7620         * modules/unistr/u16-move: Likewise.
7621         * modules/unistr/u16-next: Likewise.
7622         * modules/unistr/u16-prev: Likewise.
7623         * modules/unistr/u16-set: Likewise.
7624         * modules/unistr/u16-startswith: Likewise.
7625         * modules/unistr/u16-stpcpy: Likewise.
7626         * modules/unistr/u16-stpncpy: Likewise.
7627         * modules/unistr/u16-strcat: Likewise.
7628         * modules/unistr/u16-strchr: Likewise.
7629         * modules/unistr/u16-strcmp: Likewise.
7630         * modules/unistr/u16-strcoll: Likewise.
7631         * modules/unistr/u16-strcpy: Likewise.
7632         * modules/unistr/u16-strcspn: Likewise.
7633         * modules/unistr/u16-strdup: Likewise.
7634         * modules/unistr/u16-strlen: Likewise.
7635         * modules/unistr/u16-strmblen: Likewise.
7636         * modules/unistr/u16-strmbtouc: Likewise.
7637         * modules/unistr/u16-strncat: Likewise.
7638         * modules/unistr/u16-strncmp: Likewise.
7639         * modules/unistr/u16-strncpy: Likewise.
7640         * modules/unistr/u16-strnlen: Likewise.
7641         * modules/unistr/u16-strpbrk: Likewise.
7642         * modules/unistr/u16-strrchr: Likewise.
7643         * modules/unistr/u16-strspn: Likewise.
7644         * modules/unistr/u16-strstr: Likewise.
7645         * modules/unistr/u16-strtok: Likewise.
7646         * modules/unistr/u16-to-u32: Likewise.
7647         * modules/unistr/u16-to-u8: Likewise.
7648         * modules/unistr/u16-uctomb: Likewise.
7649         * modules/unistr/u32-check: Likewise.
7650         * modules/unistr/u32-chr: Likewise.
7651         * modules/unistr/u32-cmp: Likewise.
7652         * modules/unistr/u32-cmp2: Likewise.
7653         * modules/unistr/u32-cpy: Likewise.
7654         * modules/unistr/u32-cpy-alloc: Likewise.
7655         * modules/unistr/u32-endswith: Likewise.
7656         * modules/unistr/u32-mblen: Likewise.
7657         * modules/unistr/u32-mbsnlen: Likewise.
7658         * modules/unistr/u32-mbtouc: Likewise.
7659         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7660         * modules/unistr/u32-mbtoucr: Likewise.
7661         * modules/unistr/u32-move: Likewise.
7662         * modules/unistr/u32-next: Likewise.
7663         * modules/unistr/u32-prev: Likewise.
7664         * modules/unistr/u32-set: Likewise.
7665         * modules/unistr/u32-startswith: Likewise.
7666         * modules/unistr/u32-stpcpy: Likewise.
7667         * modules/unistr/u32-stpncpy: Likewise.
7668         * modules/unistr/u32-strcat: Likewise.
7669         * modules/unistr/u32-strchr: Likewise.
7670         * modules/unistr/u32-strcmp: Likewise.
7671         * modules/unistr/u32-strcoll: Likewise.
7672         * modules/unistr/u32-strcpy: Likewise.
7673         * modules/unistr/u32-strcspn: Likewise.
7674         * modules/unistr/u32-strdup: Likewise.
7675         * modules/unistr/u32-strlen: Likewise.
7676         * modules/unistr/u32-strmblen: Likewise.
7677         * modules/unistr/u32-strmbtouc: Likewise.
7678         * modules/unistr/u32-strncat: Likewise.
7679         * modules/unistr/u32-strncmp: Likewise.
7680         * modules/unistr/u32-strncpy: Likewise.
7681         * modules/unistr/u32-strnlen: Likewise.
7682         * modules/unistr/u32-strpbrk: Likewise.
7683         * modules/unistr/u32-strrchr: Likewise.
7684         * modules/unistr/u32-strspn: Likewise.
7685         * modules/unistr/u32-strstr: Likewise.
7686         * modules/unistr/u32-strtok: Likewise.
7687         * modules/unistr/u32-to-u16: Likewise.
7688         * modules/unistr/u32-to-u8: Likewise.
7689         * modules/unistr/u32-uctomb: Likewise.
7690         * modules/uniwbrk/u8-wordbreaks: Likewise.
7691         * modules/uniwbrk/u16-wordbreaks: Likewise.
7692         * modules/uniwbrk/u32-wordbreaks: Likewise.
7693         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7694         * modules/uniwbrk/wordbreak-property: Likewise.
7695         * modules/uniwidth/u8-strwidth: Likewise.
7696         * modules/uniwidth/u8-width: Likewise.
7697         * modules/uniwidth/u16-strwidth: Likewise.
7698         * modules/uniwidth/u16-width: Likewise.
7699         * modules/uniwidth/u32-strwidth: Likewise.
7700         * modules/uniwidth/u32-width: Likewise.
7701         * modules/uniwidth/width: Likewise.
7702         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7703         with $(LIBUNISTRING).
7704         * modules/unicase/ignorable-tests: Likewise.
7705         * modules/unicase/locale-language-tests: Likewise.
7706         * modules/unicase/tolower-tests: Likewise.
7707         * modules/unicase/totitle-tests: Likewise.
7708         * modules/unicase/toupper-tests: Likewise.
7709         * modules/unicase/u8-casecmp-tests: Likewise.
7710         * modules/unicase/u8-casecoll-tests: Likewise.
7711         * modules/unicase/u8-casefold-tests: Likewise.
7712         * modules/unicase/u8-is-cased-tests: Likewise.
7713         * modules/unicase/u8-is-casefolded-tests: Likewise.
7714         * modules/unicase/u8-is-lowercase-tests: Likewise.
7715         * modules/unicase/u8-is-titlecase-tests: Likewise.
7716         * modules/unicase/u8-is-uppercase-tests: Likewise.
7717         * modules/unicase/u8-tolower-tests: Likewise.
7718         * modules/unicase/u8-totitle-tests: Likewise.
7719         * modules/unicase/u8-toupper-tests: Likewise.
7720         * modules/unicase/u16-casecmp-tests: Likewise.
7721         * modules/unicase/u16-casecoll-tests: Likewise.
7722         * modules/unicase/u16-casefold-tests: Likewise.
7723         * modules/unicase/u16-is-cased-tests: Likewise.
7724         * modules/unicase/u16-is-casefolded-tests: Likewise.
7725         * modules/unicase/u16-is-lowercase-tests: Likewise.
7726         * modules/unicase/u16-is-titlecase-tests: Likewise.
7727         * modules/unicase/u16-is-uppercase-tests: Likewise.
7728         * modules/unicase/u16-tolower-tests: Likewise.
7729         * modules/unicase/u16-totitle-tests: Likewise.
7730         * modules/unicase/u16-toupper-tests: Likewise.
7731         * modules/unicase/u32-casecmp-tests: Likewise.
7732         * modules/unicase/u32-casecoll-tests: Likewise.
7733         * modules/unicase/u32-casefold-tests: Likewise.
7734         * modules/unicase/u32-is-cased-tests: Likewise.
7735         * modules/unicase/u32-is-casefolded-tests: Likewise.
7736         * modules/unicase/u32-is-lowercase-tests: Likewise.
7737         * modules/unicase/u32-is-titlecase-tests: Likewise.
7738         * modules/unicase/u32-is-uppercase-tests: Likewise.
7739         * modules/unicase/u32-tolower-tests: Likewise.
7740         * modules/unicase/u32-totitle-tests: Likewise.
7741         * modules/unicase/u32-toupper-tests: Likewise.
7742         * modules/unicase/ulc-casecmp-tests: Likewise.
7743         * modules/unicase/ulc-casecoll-tests: Likewise.
7744         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7745         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7746         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7747         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7748         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7749         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7750         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7751         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7752         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7753         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7754         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7755         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7756         * modules/unictype/bidicategory-byname-tests: Likewise.
7757         * modules/unictype/bidicategory-name-tests: Likewise.
7758         * modules/unictype/bidicategory-of-tests: Likewise.
7759         * modules/unictype/bidicategory-test-tests: Likewise.
7760         * modules/unictype/block-list-tests: Likewise.
7761         * modules/unictype/block-of-tests: Likewise.
7762         * modules/unictype/block-test-tests: Likewise.
7763         * modules/unictype/category-C-tests: Likewise.
7764         * modules/unictype/category-Cc-tests: Likewise.
7765         * modules/unictype/category-Cf-tests: Likewise.
7766         * modules/unictype/category-Cn-tests: Likewise.
7767         * modules/unictype/category-Co-tests: Likewise.
7768         * modules/unictype/category-Cs-tests: Likewise.
7769         * modules/unictype/category-L-tests: Likewise.
7770         * modules/unictype/category-Ll-tests: Likewise.
7771         * modules/unictype/category-Lm-tests: Likewise.
7772         * modules/unictype/category-Lo-tests: Likewise.
7773         * modules/unictype/category-Lt-tests: Likewise.
7774         * modules/unictype/category-Lu-tests: Likewise.
7775         * modules/unictype/category-M-tests: Likewise.
7776         * modules/unictype/category-Mc-tests: Likewise.
7777         * modules/unictype/category-Me-tests: Likewise.
7778         * modules/unictype/category-Mn-tests: Likewise.
7779         * modules/unictype/category-N-tests: Likewise.
7780         * modules/unictype/category-Nd-tests: Likewise.
7781         * modules/unictype/category-Nl-tests: Likewise.
7782         * modules/unictype/category-No-tests: Likewise.
7783         * modules/unictype/category-P-tests: Likewise.
7784         * modules/unictype/category-Pc-tests: Likewise.
7785         * modules/unictype/category-Pd-tests: Likewise.
7786         * modules/unictype/category-Pe-tests: Likewise.
7787         * modules/unictype/category-Pf-tests: Likewise.
7788         * modules/unictype/category-Pi-tests: Likewise.
7789         * modules/unictype/category-Po-tests: Likewise.
7790         * modules/unictype/category-Ps-tests: Likewise.
7791         * modules/unictype/category-S-tests: Likewise.
7792         * modules/unictype/category-Sc-tests: Likewise.
7793         * modules/unictype/category-Sk-tests: Likewise.
7794         * modules/unictype/category-Sm-tests: Likewise.
7795         * modules/unictype/category-So-tests: Likewise.
7796         * modules/unictype/category-Z-tests: Likewise.
7797         * modules/unictype/category-Zl-tests: Likewise.
7798         * modules/unictype/category-Zp-tests: Likewise.
7799         * modules/unictype/category-Zs-tests: Likewise.
7800         * modules/unictype/category-and-not-tests: Likewise.
7801         * modules/unictype/category-and-tests: Likewise.
7802         * modules/unictype/category-byname-tests: Likewise.
7803         * modules/unictype/category-name-tests: Likewise.
7804         * modules/unictype/category-none-tests: Likewise.
7805         * modules/unictype/category-of-tests: Likewise.
7806         * modules/unictype/category-or-tests: Likewise.
7807         * modules/unictype/category-test-withtable-tests: Likewise.
7808         * modules/unictype/combining-class-tests: Likewise.
7809         * modules/unictype/ctype-alnum-tests: Likewise.
7810         * modules/unictype/ctype-alpha-tests: Likewise.
7811         * modules/unictype/ctype-blank-tests: Likewise.
7812         * modules/unictype/ctype-cntrl-tests: Likewise.
7813         * modules/unictype/ctype-digit-tests: Likewise.
7814         * modules/unictype/ctype-graph-tests: Likewise.
7815         * modules/unictype/ctype-lower-tests: Likewise.
7816         * modules/unictype/ctype-print-tests: Likewise.
7817         * modules/unictype/ctype-punct-tests: Likewise.
7818         * modules/unictype/ctype-space-tests: Likewise.
7819         * modules/unictype/ctype-upper-tests: Likewise.
7820         * modules/unictype/ctype-xdigit-tests: Likewise.
7821         * modules/unictype/decimal-digit-tests: Likewise.
7822         * modules/unictype/digit-tests: Likewise.
7823         * modules/unictype/mirror-tests: Likewise.
7824         * modules/unictype/numeric-tests: Likewise.
7825         * modules/unictype/property-alphabetic-tests: Likewise.
7826         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7827         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7828         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7829         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7830         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7831         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7832         * modules/unictype/property-bidi-control-tests: Likewise.
7833         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7834         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7835         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7836         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7837         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7838         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7839         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7840         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7841         * modules/unictype/property-bidi-pdf-tests: Likewise.
7842         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7843         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7844         * modules/unictype/property-byname-tests: Likewise.
7845         * modules/unictype/property-combining-tests: Likewise.
7846         * modules/unictype/property-composite-tests: Likewise.
7847         * modules/unictype/property-currency-symbol-tests: Likewise.
7848         * modules/unictype/property-dash-tests: Likewise.
7849         * modules/unictype/property-decimal-digit-tests: Likewise.
7850         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7851         * modules/unictype/property-deprecated-tests: Likewise.
7852         * modules/unictype/property-diacritic-tests: Likewise.
7853         * modules/unictype/property-extender-tests: Likewise.
7854         * modules/unictype/property-format-control-tests: Likewise.
7855         * modules/unictype/property-grapheme-base-tests: Likewise.
7856         * modules/unictype/property-grapheme-extend-tests: Likewise.
7857         * modules/unictype/property-grapheme-link-tests: Likewise.
7858         * modules/unictype/property-hex-digit-tests: Likewise.
7859         * modules/unictype/property-hyphen-tests: Likewise.
7860         * modules/unictype/property-id-continue-tests: Likewise.
7861         * modules/unictype/property-id-start-tests: Likewise.
7862         * modules/unictype/property-ideographic-tests: Likewise.
7863         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7864         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7865         * modules/unictype/property-ignorable-control-tests: Likewise.
7866         * modules/unictype/property-iso-control-tests: Likewise.
7867         * modules/unictype/property-join-control-tests: Likewise.
7868         * modules/unictype/property-left-of-pair-tests: Likewise.
7869         * modules/unictype/property-line-separator-tests: Likewise.
7870         * modules/unictype/property-logical-order-exception-tests: Likewise.
7871         * modules/unictype/property-lowercase-tests: Likewise.
7872         * modules/unictype/property-math-tests: Likewise.
7873         * modules/unictype/property-non-break-tests: Likewise.
7874         * modules/unictype/property-not-a-character-tests: Likewise.
7875         * modules/unictype/property-numeric-tests: Likewise.
7876         * modules/unictype/property-other-alphabetic-tests: Likewise.
7877         * modules/unictype/property-other-default-ignorable-code-point-tests:
7878         Likewise.
7879         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7880         * modules/unictype/property-other-id-continue-tests: Likewise.
7881         * modules/unictype/property-other-id-start-tests: Likewise.
7882         * modules/unictype/property-other-lowercase-tests: Likewise.
7883         * modules/unictype/property-other-math-tests: Likewise.
7884         * modules/unictype/property-other-uppercase-tests: Likewise.
7885         * modules/unictype/property-paired-punctuation-tests: Likewise.
7886         * modules/unictype/property-paragraph-separator-tests: Likewise.
7887         * modules/unictype/property-pattern-syntax-tests: Likewise.
7888         * modules/unictype/property-pattern-white-space-tests: Likewise.
7889         * modules/unictype/property-private-use-tests: Likewise.
7890         * modules/unictype/property-punctuation-tests: Likewise.
7891         * modules/unictype/property-quotation-mark-tests: Likewise.
7892         * modules/unictype/property-radical-tests: Likewise.
7893         * modules/unictype/property-sentence-terminal-tests: Likewise.
7894         * modules/unictype/property-soft-dotted-tests: Likewise.
7895         * modules/unictype/property-space-tests: Likewise.
7896         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7897         * modules/unictype/property-test-tests: Likewise.
7898         * modules/unictype/property-titlecase-tests: Likewise.
7899         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7900         * modules/unictype/property-unified-ideograph-tests: Likewise.
7901         * modules/unictype/property-uppercase-tests: Likewise.
7902         * modules/unictype/property-variation-selector-tests: Likewise.
7903         * modules/unictype/property-white-space-tests: Likewise.
7904         * modules/unictype/property-xid-continue-tests: Likewise.
7905         * modules/unictype/property-xid-start-tests: Likewise.
7906         * modules/unictype/property-zero-width-tests: Likewise.
7907         * modules/unictype/scripts-tests: Likewise.
7908         * modules/unictype/syntax-c-ident-tests: Likewise.
7909         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7910         * modules/unictype/syntax-java-ident-tests: Likewise.
7911         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7912         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7913         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7914         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7915         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7916         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7917         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7918         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7919         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7920         * modules/uniname/uniname-tests: Likewise.
7921         * modules/uninorm/canonical-decomposition-tests: Likewise.
7922         * modules/uninorm/compat-decomposition-tests: Likewise.
7923         * modules/uninorm/composition-tests: Likewise.
7924         * modules/uninorm/decomposing-form-tests: Likewise.
7925         * modules/uninorm/decomposition-tests: Likewise.
7926         * modules/uninorm/filter-tests: Likewise.
7927         * modules/uninorm/nfc-tests: Likewise.
7928         * modules/uninorm/nfd-tests: Likewise.
7929         * modules/uninorm/nfkc-tests: Likewise.
7930         * modules/uninorm/nfkd-tests: Likewise.
7931         * modules/uninorm/u8-normcmp-tests: Likewise.
7932         * modules/uninorm/u8-normcoll-tests: Likewise.
7933         * modules/uninorm/u16-normcmp-tests: Likewise.
7934         * modules/uninorm/u16-normcoll-tests: Likewise.
7935         * modules/uninorm/u32-normcmp-tests: Likewise.
7936         * modules/uninorm/u32-normcoll-tests: Likewise.
7937         * modules/unistdio/u8-asnprintf-tests: Likewise.
7938         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7939         * modules/unistdio/u8-vasprintf-tests: Likewise.
7940         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7941         * modules/unistdio/u8-vsprintf-tests: Likewise.
7942         * modules/unistdio/u16-asnprintf-tests: Likewise.
7943         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7944         * modules/unistdio/u16-vasprintf-tests: Likewise.
7945         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7946         * modules/unistdio/u16-vsprintf-tests: Likewise.
7947         * modules/unistdio/u32-asnprintf-tests: Likewise.
7948         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7949         * modules/unistdio/u32-vasprintf-tests: Likewise.
7950         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7951         * modules/unistdio/u32-vsprintf-tests: Likewise.
7952         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7953         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7954         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7955         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7956         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7957         * modules/unistr/u8-check-tests: Likewise.
7958         * modules/unistr/u8-chr-tests: Likewise.
7959         * modules/unistr/u8-cmp-tests: Likewise.
7960         * modules/unistr/u8-cmp2-tests: Likewise.
7961         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7962         * modules/unistr/u8-cpy-tests: Likewise.
7963         * modules/unistr/u8-mblen-tests: Likewise.
7964         * modules/unistr/u8-mbsnlen-tests: Likewise.
7965         * modules/unistr/u8-mbtouc-tests: Likewise.
7966         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7967         * modules/unistr/u8-mbtoucr-tests: Likewise.
7968         * modules/unistr/u8-move-tests: Likewise.
7969         * modules/unistr/u8-next-tests: Likewise.
7970         * modules/unistr/u8-prev-tests: Likewise.
7971         * modules/unistr/u8-set-tests: Likewise.
7972         * modules/unistr/u8-stpcpy-tests: Likewise.
7973         * modules/unistr/u8-stpncpy-tests: Likewise.
7974         * modules/unistr/u8-strcat-tests: Likewise.
7975         * modules/unistr/u8-strcmp-tests: Likewise.
7976         * modules/unistr/u8-strcoll-tests: Likewise.
7977         * modules/unistr/u8-strcpy-tests: Likewise.
7978         * modules/unistr/u8-strdup-tests: Likewise.
7979         * modules/unistr/u8-strlen-tests: Likewise.
7980         * modules/unistr/u8-strmblen-tests: Likewise.
7981         * modules/unistr/u8-strmbtouc-tests: Likewise.
7982         * modules/unistr/u8-strncat-tests: Likewise.
7983         * modules/unistr/u8-strncmp-tests: Likewise.
7984         * modules/unistr/u8-strncpy-tests: Likewise.
7985         * modules/unistr/u8-strnlen-tests: Likewise.
7986         * modules/unistr/u8-to-u16-tests: Likewise.
7987         * modules/unistr/u8-to-u32-tests: Likewise.
7988         * modules/unistr/u8-uctomb-tests: Likewise.
7989         * modules/unistr/u16-check-tests: Likewise.
7990         * modules/unistr/u16-chr-tests: Likewise.
7991         * modules/unistr/u16-cmp-tests: Likewise.
7992         * modules/unistr/u16-cmp2-tests: Likewise.
7993         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7994         * modules/unistr/u16-cpy-tests: Likewise.
7995         * modules/unistr/u16-mblen-tests: Likewise.
7996         * modules/unistr/u16-mbsnlen-tests: Likewise.
7997         * modules/unistr/u16-mbtouc-tests: Likewise.
7998         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7999         * modules/unistr/u16-mbtoucr-tests: Likewise.
8000         * modules/unistr/u16-move-tests: Likewise.
8001         * modules/unistr/u16-next-tests: Likewise.
8002         * modules/unistr/u16-prev-tests: Likewise.
8003         * modules/unistr/u16-set-tests: Likewise.
8004         * modules/unistr/u16-stpcpy-tests: Likewise.
8005         * modules/unistr/u16-stpncpy-tests: Likewise.
8006         * modules/unistr/u16-strcat-tests: Likewise.
8007         * modules/unistr/u16-strcmp-tests: Likewise.
8008         * modules/unistr/u16-strcoll-tests: Likewise.
8009         * modules/unistr/u16-strcpy-tests: Likewise.
8010         * modules/unistr/u16-strdup-tests: Likewise.
8011         * modules/unistr/u16-strlen-tests: Likewise.
8012         * modules/unistr/u16-strmblen-tests: Likewise.
8013         * modules/unistr/u16-strmbtouc-tests: Likewise.
8014         * modules/unistr/u16-strncat-tests: Likewise.
8015         * modules/unistr/u16-strncmp-tests: Likewise.
8016         * modules/unistr/u16-strncpy-tests: Likewise.
8017         * modules/unistr/u16-strnlen-tests: Likewise.
8018         * modules/unistr/u16-to-u32-tests: Likewise.
8019         * modules/unistr/u16-to-u8-tests: Likewise.
8020         * modules/unistr/u16-uctomb-tests: Likewise.
8021         * modules/unistr/u32-check-tests: Likewise.
8022         * modules/unistr/u32-chr-tests: Likewise.
8023         * modules/unistr/u32-cmp-tests: Likewise.
8024         * modules/unistr/u32-cmp2-tests: Likewise.
8025         * modules/unistr/u32-cpy-alloc-tests: Likewise.
8026         * modules/unistr/u32-cpy-tests: Likewise.
8027         * modules/unistr/u32-mblen-tests: Likewise.
8028         * modules/unistr/u32-mbsnlen-tests: Likewise.
8029         * modules/unistr/u32-mbtouc-tests: Likewise.
8030         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
8031         * modules/unistr/u32-mbtoucr-tests: Likewise.
8032         * modules/unistr/u32-move-tests: Likewise.
8033         * modules/unistr/u32-next-tests: Likewise.
8034         * modules/unistr/u32-prev-tests: Likewise.
8035         * modules/unistr/u32-set-tests: Likewise.
8036         * modules/unistr/u32-stpcpy-tests: Likewise.
8037         * modules/unistr/u32-stpncpy-tests: Likewise.
8038         * modules/unistr/u32-strcat-tests: Likewise.
8039         * modules/unistr/u32-strcmp-tests: Likewise.
8040         * modules/unistr/u32-strcoll-tests: Likewise.
8041         * modules/unistr/u32-strcpy-tests: Likewise.
8042         * modules/unistr/u32-strdup-tests: Likewise.
8043         * modules/unistr/u32-strlen-tests: Likewise.
8044         * modules/unistr/u32-strmblen-tests: Likewise.
8045         * modules/unistr/u32-strmbtouc-tests: Likewise.
8046         * modules/unistr/u32-strncat-tests: Likewise.
8047         * modules/unistr/u32-strncmp-tests: Likewise.
8048         * modules/unistr/u32-strncpy-tests: Likewise.
8049         * modules/unistr/u32-strnlen-tests: Likewise.
8050         * modules/unistr/u32-to-u16-tests: Likewise.
8051         * modules/unistr/u32-to-u8-tests: Likewise.
8052         * modules/unistr/u32-uctomb-tests: Likewise.
8053         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
8054         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
8055         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
8056         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
8057         * modules/uniwidth/u8-strwidth-tests: Likewise.
8058         * modules/uniwidth/u8-width-tests: Likewise.
8059         * modules/uniwidth/u16-strwidth-tests: Likewise.
8060         * modules/uniwidth/u16-width-tests: Likewise.
8061         * modules/uniwidth/u32-strwidth-tests: Likewise.
8062         * modules/uniwidth/u32-width-tests: Likewise.
8063         * modules/uniwidth/width-tests: Likewise.
8064
8065 2010-05-18  Richard Jones  <rjones@redhat.com>
8066
8067         doc: users.txt: list hivex
8068         * users.txt: Add hivex.
8069
8070 2010-05-18  Richard Jones  <rjones@redhat.com>
8071
8072         doc: users.txt: list febootstrap
8073         * users.txt: Add febootstrap.
8074
8075 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
8076
8077         bootstrap: fix an error when gnulib is not used as a git submodule
8078         * build-aux/bootstrap (gnulib_path): If its length is zero then
8079         assign "gnulib" to it.
8080         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
8081
8082 2010-05-16  Bruno Haible  <bruno@clisp.org>
8083
8084         Avoid autoconf warnings about AM_ICONV.
8085         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
8086         2.64.
8087
8088 2010-05-16  Bruno Haible  <bruno@clisp.org>
8089
8090         absolute-header: Make the macro usable in more situations.
8091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
8092         from gl_ABSOLUTE_HEADER.
8093         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
8094
8095 2010-05-16  James Youngman  <jay@gnu.org>
8096
8097         doc: update users.txt
8098         * users.txt: Add CSSC.
8099
8100 2010-05-16  Jim Meyering  <meyering@redhat.com>
8101
8102         init.sh: fix an error in the previous change; add more comments
8103         * tests/init.sh: Compare exit code in loop against 9, not 2.
8104         Patch by Bruno Haible.
8105         Make the two tests more similar by adding an empty "then" clause.
8106         Add comments.
8107
8108         init.sh: avoid unnecessary shell re-exec
8109         * tests/init.sh: Improve the re-exec-required check to first test the
8110         current shell.  If it passes the test, do not search for a shell that
8111         does pass, and do not re-exec.  This test is particularly contorted to
8112         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
8113         of $(...) evokes a syntax error and causes immediate shell exit with
8114         status 2.  Bruno Haible reported that the re-exec made it impossible
8115         to single-step through any init.sh-using script.
8116
8117 2010-05-16  Bruno Haible  <bruno@clisp.org>
8118
8119         Fix collision between gnulib's and libintl's printf replacements.
8120         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
8121         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
8122         (printf): When using GNU C, map the __printf__ function to rpl_printf
8123         via __asm__. When not using GNU C, define rpl_printf instead of
8124         __printf__.
8125         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
8126         commit.
8127         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
8128         commit.
8129         * m4/asm-underscore.m4: New file.
8130         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
8131         * modules/stdio (Files): Add m4/asm-underscore.m4.
8132         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
8133         Reported by Ben Pfaff.
8134
8135 2010-05-16  Bruno Haible  <bruno@clisp.org>
8136
8137         verify: Avoid skipping the test on openSUSE 11.0.
8138         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
8139
8140 2010-05-13  Bruno Haible  <bruno@clisp.org>
8141
8142         Avoid useless warnings from G++.
8143         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
8144         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
8145         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8146
8147 2010-05-11  Jim Meyering  <meyering@redhat.com>
8148
8149         maint.mk: tweak preceding change
8150         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
8151         regexps tighter by anchoring at EOL, and make the new group "shy"
8152         for slightly decreased overhead.
8153
8154 2010-05-11  Eric Blake  <eblake@redhat.com>
8155
8156         maint.mk: gnulib doesn't guarantee NSIG
8157         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
8158
8159 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8160
8161         test-pwrite.c: Remove unused variable declaration.
8162         * tests/test-pwrite.c (main): Remove read_buf declaration.
8163
8164         Remove useless test-pwrite.sh file.
8165         * tests/test-pwrite.sh: Delete file.
8166         * modules/pwrite-tests: Remove references.
8167         Reported by Bruno Haible.
8168
8169 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
8170
8171         init.sh: fix a typo
8172         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
8173
8174 2010-05-10  Jim Meyering  <meyering@redhat.com>
8175
8176         maint.mk: avoid using a temporary file in the always-defined-macros check
8177         * top/maint.mk (.re-defmac): Remove rule.
8178         (gl_trap_): Remove definition.
8179         (sc_prohibit_always-defined_macros): Rewrite not to create and
8180         depend on a temporary file.  Instead, depend on GNU grep's ability
8181         to read a list of regular expressions from stdin when given "-f -".
8182
8183 2010-05-09  Bruno Haible  <bruno@clisp.org>
8184
8185         Update to GNU gettext 0.18, part 1.
8186         * m4/gettext.m4: Update to GNU gettext 0.18.
8187         * m4/intl.m4: Likewise.
8188         * m4/po.m4: Likewise.
8189         * modules/gettext (Files): Add m4/fcntl-o.m4.
8190         (configure.ac): Require gettext infrastructure from version 0.18.
8191
8192 2010-05-09  Jim Meyering  <meyering@redhat.com>
8193
8194         init.sh: enable MALLOC_PERTURB_
8195         * tests/init.sh: Enable glibc's malloc-perturbing option.
8196
8197         maint.mk: improve sc_cross_check_PATH_usage_in_tests
8198         With my recent change in init.sh from the two-line form:
8199             -#   : ${srcdir=.}
8200             -#   . "$srcdir/init.sh"; path_prepend_ .
8201             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
8202         I noticed that using the one-line form would cause this test
8203         to fail with a false-positive, or to stop working altogether,
8204         depending on whether help-version changed or all the tests did.
8205         * top/maint.mk (_hv_regex): Remove this definition.
8206         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
8207         (_hv_regex_strong): Use a stronger regex to check for conformance.
8208         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
8209         Give a separate diagnostic for lack of conforming use.
8210
8211         maint.mk: prohibit definition of symbols defined by gnulib
8212         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
8213         definition of symbols defined by gnulib.
8214
8215 2010-05-09  Bruno Haible  <bruno@clisp.org>
8216
8217         acl: Avoid test failure on Cygwin-hosted mingw.
8218         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
8219
8220 2010-05-09  Bruno Haible  <bruno@clisp.org>
8221
8222         error: Use system's fcntl function.
8223         * lib/error.c (fcntl): Undefine.
8224
8225 2010-05-09  Jim Meyering  <meyering@redhat.com>
8226
8227         verify: adjust formatting to be more consistent
8228         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
8229         argument-list '('s, and after one comma.
8230
8231 2010-05-09  Bruno Haible  <bruno@clisp.org>
8232
8233         error: More reliable output on mingw.
8234         * lib/error.c: Include <windows.h>.
8235         (is_open): New function.
8236         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
8237         defined.
8238
8239 2010-05-09  Bruno Haible  <bruno@clisp.org>
8240
8241         vasnprintf: Fix syntax errors in libintl build on mingw.
8242         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
8243         pad_ourselves and prec_ourselves after use.
8244
8245 2010-05-08  Bruno Haible  <bruno@clisp.org>
8246
8247         * lib/config.charset: Update comments for Cygwin 1.7.
8248         * lib/localcharset.c: Likewise.
8249
8250 2010-05-07  Jim Meyering  <meyering@redhat.com>
8251
8252         init.sh: improve comments
8253         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
8254         . "${srcdir=.}/init.sh"; path_prepend_ .
8255         Add a note about path_prepend_ and the alternative of using
8256         TESTS_ENVIRONMENT.
8257
8258 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8259
8260         exclude: Unescape hashed patterns in wildcard mode.
8261         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
8262         to the hash list.
8263         * tests/test-exclude8.sh: New test case.
8264         * modules/exclude-tests: Add new test.
8265
8266 2010-05-05  Eric Blake  <eblake@redhat.com>
8267
8268         verify: automate tests
8269         * modules/verify-tests: New module.
8270         * tests/test-verify.sh: New file.
8271         * tests/test-verify.c: Guard each negative test with a unique id.
8272         Also avoid warning about unused left hand of comma expressions.
8273
8274 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8275
8276         Further improvements to verify.h, suggested by Eric Blake.
8277         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
8278         the GL_* versions, to avoid collision with OpenGL.
8279         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
8280         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8281         than testing merely whether it's defined.
8282
8283         Modify verify.h to pacify gcc -Wredundant_decls.
8284         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8285         These use the prefix "GL_" since they're likely to be useful elsewhere.
8286         We may need to break them out into a different .h file.
8287         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8288         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8289         of verify_function__.
8290
8291 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8292
8293         Tests for module pwrite.
8294         * modules/pwrite-tests: New file.
8295         * tests/test-pwrite.sh: New file.
8296         * tests/test-pwrite.c: New file.
8297
8298         New module pwrite.
8299         * lib/unistd.in.h (pwrite): New declaration.
8300         * lib/pwrite.c: New file, from glibc with modifications.
8301         * m4/pwrite.m4: New file.
8302         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8303         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8304         REPLACE_PWRITE.
8305         * modules/pwrite: New file.
8306         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8307         REPLACE_PWRITE.
8308         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8309         * doc/posix-functions/pwrite.texi: Mention the new module.
8310
8311 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8312
8313         pread: Update documentation.
8314         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8315
8316 2010-05-04  Eric Blake  <eblake@redhat.com>
8317
8318         docs: update cygwin progress
8319         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8320         this bug.
8321         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8322         Added in cygwin 1.7.2.
8323         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8324         Likewise.
8325         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8326         Likewise.
8327         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8328         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8329         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8330         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8331         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8332         Mention nproc module.
8333         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8334         bug in cygwin 1.7.5 addition.
8335         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8336         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8337         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8338         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8339         1.7.5.
8340         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8341         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8342         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8343         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8344         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8345         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8346         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8347         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8348         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8349         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8350         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8351         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8352         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8353         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8354         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8355         Likewise.
8356         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8357         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8358         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8359         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8360         Likewise.
8361         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8362         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8363         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8364         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8365         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8366         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8367         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8368         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8369         Likewise.
8370         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8371         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8372         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8373         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8374         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8375         Likewise.
8376         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8377         Likewise.
8378         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8379         Likewise.
8380         * doc/glibc-functions/xdrrec_endofrecord.texi
8381         (xdrrec_endofrecord): Likewise.
8382         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8383         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8384         Likewise.
8385         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8386         Likewise.
8387
8388 2010-05-04  Jim Meyering  <meyering@redhat.com>
8389
8390         gendocs.sh: make its "-s FILE" option more useful
8391         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8392         $PACKAGE to reflect the probably-different basename of "FILE".
8393
8394 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8395
8396         bootstrap: don't ignore download_po_files failure
8397         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8398         failure.
8399
8400 2010-05-03  Jim Meyering  <meyering@redhat.com>
8401
8402         maint.mk: allow to pass options to gendocs.sh
8403         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8404         (gendocs_options_): New overridable variable.
8405
8406         gnu-web-doc-update: don't ignore configure or build failure
8407         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8408
8409         announce-gen: backslash-escape '@'s in --help output
8410         * build-aux/announce-gen: Fix syntax errors.
8411
8412         maint.mk, announce-gen: allow project-specific announcement mail headers
8413         * top/maint.mk (translation_project_): Define default.
8414         (announcement_Cc_, announcement_mail_headers_): Likewise.
8415         (announcement): Invoke announce-gen with new --mail-headers option.
8416         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8417
8418         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8419         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8420         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8421         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8422         line in the "err2" output file when running "make check" in verbose
8423         mode (i.e., with set -x enabled).
8424
8425 2010-05-03  Bruno Haible  <bruno@clisp.org>
8426
8427         wctob: Fix for weird platforms.
8428         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8429         argument value.
8430
8431 2010-05-03  Jim Meyering  <meyering@redhat.com>
8432
8433         maint.mk: prohibit unwarranted use of <strings.h>
8434         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8435         strings.h in a file that does not also use strcasecmp, strncasecmp,
8436         ffs or ffsll.
8437
8438         maint.mk: remove obsolete comments
8439         * top/maint.mk: Remove stale, commented-out rules.
8440
8441 2010-05-02  Bruno Haible  <bruno@clisp.org>
8442
8443         wcwidth: Declare also when it's aliased.
8444         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8445         macro.
8446
8447 2010-05-02  Bruno Haible  <bruno@clisp.org>
8448
8449         Fix regression from 2010-04-25.
8450         * gnulib-tool (func_modules_transitive_closure): Check the status of
8451         all modules, not only of the tests that are of the form foo-tests where
8452         foo is a module.
8453
8454 2010-05-02  Bruno Haible  <bruno@clisp.org>
8455
8456         wctob: Work around nasty Cygwin 1.7.2 bug.
8457         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8458         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8459
8460 2010-05-01  Bruno Haible  <bruno@clisp.org>
8461
8462         fpurge: Sharper test.
8463         * tests/test-fpurge.c (main): Add one more ftell check.
8464         * modules/fpurge-tests (Depends-on): Add ftell.
8465         Suggested by Eric Blake.
8466
8467 2010-05-01  Bruno Haible  <bruno@clisp.org>
8468
8469         ftello: Another test.
8470         * tests/test-ftello3.c: New file.
8471         * modules/ftello-tests (Files): Add it.
8472         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8473         MOSTLYCLEANFILES.
8474
8475         ftell: Another test.
8476         * tests/test-ftell3.c: New file.
8477         * modules/ftell-tests (Files): Add it.
8478         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8479         MOSTLYCLEANFILES.
8480
8481 2010-05-01  Bruno Haible  <bruno@clisp.org>
8482
8483         ftell, ftello: Work around Solaris bug.
8484         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8485         * lib/ftello.c: Include stdio-impl.h.
8486         (ftello): On Solaris, when _IOWRT is set, compute the result without
8487         looking at _IOREAD.
8488         * modules/ftello (Files): Add lib/stdio-impl.h.
8489         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8490         * doc/posix-functions/ftello.texi: Likewise.
8491         Reported by Eric Blake.
8492
8493 2010-05-01  Bruno Haible  <bruno@clisp.org>
8494
8495         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8496         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8497         the _IOWRT flag is also set.
8498
8499 2010-05-01  Bruno Haible  <bruno@clisp.org>
8500
8501         Fix doc about a HP-UX stdio bug.
8502         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8503         * doc/posix-functions/ftello.texi: Likewise.
8504
8505 2010-05-01  Bruno Haible  <bruno@clisp.org>
8506
8507         lseek test: Fix failure on Solaris.
8508         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8509         output.
8510
8511 2010-04-30  Jim Meyering  <meyering@redhat.com>
8512
8513         bootstrap: don't ignore failure to generate po*/Makevars
8514         * build-aux/bootstrap (with_gettext): Don't ignore failure
8515         to create po/Makevars or runtime-po/Makevars.
8516
8517 2010-04-29  Eric Blake  <eblake@redhat.com>
8518
8519         headers: relax license to LGPLv2+
8520         * modules/fcntl-h (License): Relax license.
8521         * modules/getopt-posix (License): Likewise.
8522         * modules/locale (License): Likewise.
8523         * modules/math (License): Likewise.
8524         * modules/pty (License): Likewise.
8525         * modules/sched (License): Likewise.
8526         * modules/search (License): Likewise.
8527         * modules/spawn (License): Likewise.
8528         * modules/stdarg (License): Likewise.
8529         * modules/sysexits (License): Likewise.
8530
8531 2010-04-29  Jim Meyering  <meyering@redhat.com>
8532
8533         inttypes: relax license to LGPLv2+
8534         * modules/inttypes (License): Relax license.
8535
8536 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8537
8538         * top/maint.mk (indent): Run twice to produce idempotent results.
8539
8540 2010-04-28  Bruno Haible  <bruno@clisp.org>
8541
8542         getdate: Generate getdate.c in the source directory.
8543         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8544         MOSTLYCLEANFILES.
8545         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8546
8547 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8548
8549         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8550         is not declared as a const *; avoid warnings in that case.
8551
8552 2010-04-28  Eric Blake  <eblake@redhat.com>
8553
8554         canonicalize-lgpl: avoid compiler warning
8555         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8556         declaration' / 'extraneous semicolon' warning with some compilers.
8557         Reported by Andreas Gruenbacher.
8558
8559 2010-04-28  Jim Meyering  <meyering@redhat.com>
8560
8561         init.sh: ensure a more reliable exit status when exiting via trap
8562         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8563         Inspired by patches from Dmitry V. Levin.
8564         Also trap on signal 3 (SIGQUIT).
8565
8566 2010-04-27  Bruno Haible  <bruno@clisp.org>
8567
8568         Update doc about utimes().
8569         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8570         'utimens' module.
8571         Reported by Andreas Gruenbacher <agruen@suse.de>.
8572
8573 2010-04-27  Eric Blake  <eblake@redhat.com>
8574
8575         full-read, full-write: relax license
8576         * modules/full-read (License): Drop to LGPLv2+.
8577         * modules/full-write (License): Likewise.
8578         * modules/safe-read (License): Likewise.
8579         * modules/safe-write (License): Likewise.
8580
8581         pthread: mention library for linking
8582         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8583
8584 2010-04-27  Jim Meyering  <meyering@redhat.com>
8585
8586         maint.mk: fix a bug introduced in last change
8587         * top/maint.mk (gl_assured_headers_): Now that all names are on
8588         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8589         is not anchored to end of word, it should be adequate.
8590
8591         maint.mk: avoid side-effect in latest syntax-check
8592         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8593         to run commands via $(shell...), and hence to incur cost only when
8594         the new rule is actually run.
8595
8596         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8597         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8598         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8599         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8600         (gl_assured_headers_, az_, AZ_): Define.
8601         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8602
8603 2010-04-26  Jim Meyering  <jim@meyering.net>
8604             Bruno Haible  <bruno@clisp.org>
8605
8606         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8607         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8608         Prompted by an exchange with Gilles Espinasse.
8609
8610 2010-04-26  Jim Meyering  <meyering@redhat.com>
8611
8612         git-version-gen: aesthetic tweak
8613         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8614         so that the command remains on a single line.
8615
8616 2010-04-26  Eric Blake  <eblake@redhat.com>
8617
8618         git-version-gen: allow use on EBCDIC hosts
8619         * build-aux/git-version-gen (dirty): Use literal rather than tying
8620         ourselves to ascii.
8621         Reported by Steve Goetze.
8622
8623 2010-04-25  Bruno Haible  <bruno@clisp.org>
8624
8625         netdb: Add support for GNULIB_POSIXCHECK.
8626         * lib/netdb.in.h: Include warn-on-use.h.
8627         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8628         functions are used when GNULIB_POSIXCHECK is defined and the
8629         getaddrinfo module is not in use.
8630         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8631         freeaddrinfo, gai_strerror, getnameinfo are declared.
8632         * modules/netdb (Depends-on): Add warn-on-use.
8633         (Makefile.am): Include warn-on-use.h in netdb.h.
8634
8635 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8636
8637         build: avoid "make check" failure without .git/ directory
8638         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8639         there is no .git/ directory.
8640
8641 2010-04-25  Bruno Haible  <bruno@clisp.org>
8642
8643         ptsname: Fix misuse of ttyname_r.
8644         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8645         of errno.
8646
8647 2010-04-25  Bruno Haible  <bruno@clisp.org>
8648
8649         ttyname_r: Make it work on Solaris 10.
8650         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8651         if the system function has the POSIX declaration. Test whether the
8652         function fails if the buffer is less than 128 bytes large.
8653         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8654         system's ttyname_r function. Provide a reasonably large buffer.
8655         * modules/ttyname_r (Depends-on): Add extensions.
8656         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8657
8658 2010-04-25  Bruno Haible  <bruno@clisp.org>
8659
8660         Use the 'extensions' module for some more functions on Solaris.
8661         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8662         module.
8663         * doc/posix-functions/ctime_r.texi: Likewise.
8664         * doc/posix-functions/getgrgid_r.texi: Likewise.
8665         * doc/posix-functions/getgrnam_r.texi: Likewise.
8666         * doc/posix-functions/getpwnam_r.texi: Likewise.
8667         * doc/posix-functions/getpwuid_r.texi: Likewise.
8668         * doc/posix-functions/readdir_r.texi: Likewise.
8669         * doc/posix-functions/sigwait.texi: Likewise.
8670         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8671         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8672
8673 2010-04-25  Bruno Haible  <bruno@clisp.org>
8674
8675         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8676         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8677         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8678         * lib/ttyname_r.c: Include <limits.h>.
8679         (ttyname_r): Define using the system's ttyname_r function, if it exists
8680         and not on Solaris.
8681         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8682         set.
8683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8684         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8685         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8686         Reported by Simon Josefsson.
8687
8688 2010-04-25  Bruno Haible  <bruno@clisp.org>
8689
8690         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8691         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8692         * doc/posix-functions/ctime_r.texi: Likewise.
8693         * doc/posix-functions/getgrgid_r.texi: Likewise.
8694         * doc/posix-functions/getgrnam_r.texi: Likewise.
8695         * doc/posix-functions/getlogin_r.texi: Likewise.
8696         * doc/posix-functions/getpwnam_r.texi: Likewise.
8697         * doc/posix-functions/getpwuid_r.texi: Likewise.
8698         * doc/posix-functions/readdir_r.texi: Likewise.
8699         * doc/posix-functions/sigwait.texi: Likewise.
8700         * doc/posix-functions/ttyname_r.texi: Likewise.
8701         Reported by Simon Josefsson.
8702
8703 2010-04-25  Bruno Haible  <bruno@clisp.org>
8704
8705         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8706         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8707         also to --create-testdir.
8708         (func_acceptable): Don't consider the status of *-tests modules here.
8709         (func_modules_transitive_closure): Consider it here, before including a
8710         test module.
8711         (func_import, func_create_testdir): Set inc_all_direct_tests,
8712         inc_all_indirect_tests.
8713         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8714         --create-testdir and --create-megatestdir.
8715
8716 2010-04-25  Bruno Haible  <bruno@clisp.org>
8717
8718         gnulib-tool: Add --without-*-tests options.
8719         * gnulib-tool (func_usage): Document the --without-*-tests options.
8720         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8721         excl_unportable_tests): New variables.
8722         Fail if they are specified with --import or --update.
8723         (func_acceptable): Respect the excl_*_tests variables.
8724         (func_import): Set the excl_*_tests variables to empty.
8725
8726 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8727             Bruno Haible  <bruno@clisp.org>
8728
8729         Work around a MacOS X 10.4 bug with openpty.
8730         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8731         * tests/test-openpty.c (main): Close the master side explicitly.
8732
8733 2010-04-25  Bruno Haible  <bruno@clisp.org>
8734
8735         strnlen: Fix a C++ test error on MacOS X and Solaris.
8736         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8737         the function is not declared.
8738         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8739         Simon Josefsson.
8740
8741 2010-04-24  Bruno Haible  <bruno@clisp.org>
8742
8743         Avoid a gcc warning.
8744         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8745         of correct type for %08lx directive.
8746         Reported by Eric Blake.
8747
8748 2010-04-24  Bruno Haible  <bruno@clisp.org>
8749
8750         vasnprintf: Correct errno value in case of out-of-memory.
8751         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8752         or sprintf. Use the errno value from SNPRINTF or sprintf.
8753         Reported by Ian Beckwith <ianb@erislabs.net>.
8754
8755 2010-04-24  Bruno Haible  <bruno@clisp.org>
8756
8757         ansi-c++-opt: Find correct compiler when cross-compiling.
8758         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8759         AC_CHECK_PROGS.
8760         Reported by Simon Josefsson.
8761
8762 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8763
8764         vc-list-files: Add support for subversion
8765         * build-aux/vc-list-files: Use "svn list" to generate the list of
8766         files controlled by subversion.
8767
8768 2010-04-23  Jim Meyering  <meyering@redhat.com>
8769
8770         vc-list-files tests: convert to use init.sh
8771         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8772         path_prepend_.
8773         Use Exit, not exit.
8774         Use skip_ rather than open coding it.
8775         Remove trap set-up and compare definitions.
8776         * tests/test-vc-list-files-git.sh: Likewise.
8777         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8778
8779 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8780
8781         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8782         backup files.
8783
8784 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8785
8786         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8787
8788 2010-04-20  Eric Blake  <eblake@redhat.com>
8789
8790         tests: be robust to ignored SIGPIPE
8791         * tests/test-select-in.sh: Consume all output.
8792         * tests/test-lseek.sh: Check correct exit status, while avoiding
8793         EPIPE.
8794
8795 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8796             Bruno Haible  <bruno@clisp.org>
8797
8798         visibility: Don't use -fvisibility if it leads to a warning.
8799         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8800         yes, don't pretend that visibility works if it leads to a warning.
8801         Reported by Mike Gran <spk121@yahoo.com>.
8802
8803 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8804
8805         * build-aux/bootstrap: Use "git -h" for testing for supported options
8806         instead of "git --help".  The short-form option only shows a summary,
8807         and doesn't layout the full man page.  Grep for the full option name
8808         in the summary, too.
8809
8810 2010-04-19  Bruno Haible  <bruno@clisp.org>
8811
8812         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8813         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8814         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8815         mention of RELOCATABLE_STRIP.
8816         Reported by Sylvain Beucler <beuc@beuc.net>.
8817
8818 2010-04-19  Bruno Haible  <bruno@clisp.org>
8819
8820         * lib/diffseq.h: Fix typo in comment.
8821         Reported by Eric Blake.
8822
8823 2010-04-19  Bruno Haible  <bruno@clisp.org>
8824
8825         ioctl: Move autoconf macro to a .m4 file.
8826         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8827         * modules/ioctl (Files): Add it.
8828         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8829         Reported by Ian Beckwith <ianb@erislabs.net>.
8830
8831 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8832             Bruno Haible  <bruno@clisp.org>
8833
8834         diffseq: Accommodate use-case with abstract arrays.
8835         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8836         is not defined.
8837         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8838         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8839
8840 2010-04-18  Bruno Haible  <bruno@clisp.org>
8841
8842         * doc/posix-headers/stdbool.texi: More precise wording.
8843
8844 2010-04-17  Jim Meyering  <meyering@redhat.com>
8845
8846         maint.mk: use gnu-style indentation in an embedded perl script
8847         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8848         Rename variable: s/two/last_two_bytes/
8849
8850 2010-04-16  Eric Blake  <eblake@redhat.com>
8851
8852         test-stdbool: skip test that fails with Solaris CC
8853         * tests/test-stdbool.c (f): Skip test that causes compilation
8854         error under buggy C++ compiler.
8855         * lib/stdbool.in.h: Document the limitation.
8856         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8857
8858         setenv: allow compilation with C++
8859         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8860         register keyword.
8861
8862         stdint: allow test to pass with C++
8863         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8864
8865         getopt: allow compilation with C++
8866         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8867         struct.
8868         * lib/getopt.c (_getopt_internal_r): Use correct type.
8869         Reported by Dagobert Michelson, via Joel E. Denny.
8870
8871 2010-04-16  Bruno Haible  <bruno@clisp.org>
8872
8873         Override netdb.h always.
8874         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8875         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8876         Reported by Ludovic Courtès <ludo@gnu.org>.
8877
8878 2010-04-15  Bruno Haible  <bruno@clisp.org>
8879
8880         openpty: Fix mistake from 2010-03-21.
8881         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8882         Reported by Simon Josefsson.
8883
8884 2010-04-15  Eric Blake  <eblake@redhat.com>
8885
8886         test-forkpty: fix expected signature
8887         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8888         Reported by Simon Josefsson.
8889
8890 2010-04-15  Jim Meyering  <meyering@redhat.com>
8891
8892         maint.mk: texinfo_suffix_re_: correct the default regexp
8893         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8894
8895         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8896         make it configurable via texinfo_suffix_re_.
8897
8898 2010-04-14  Eric Blake  <eblake@redhat.com>
8899
8900         strtok_r: relax license to LGPLv2+
8901         * modules/strtok_r (License): Relax license.
8902         Reported by Matthias Bolte.
8903
8904 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8905
8906         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8907         version 1.4.4 by default instead of requiring the libgcrypt
8908         version used during build.  This makes it possible to use the
8909         application with older but still binary compatible libgcrypt
8910         versions.
8911
8912 2010-04-13  Eric Blake  <eblake@redhat.com>
8913
8914         getopt-gnu: match recent glibc fixes and posix ruling
8915         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8916         '+' handling, when requesting extensions.
8917         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8918         'W;' handling.
8919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8920         * doc/posix-functions/getopt.texi (getopt): Document this.
8921         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8922         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8923         Likewise.
8924
8925         getopt: merge bug fixes from glibc
8926         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8927         diagnostics.  Honor '+:' correctly.  Reject ';'.
8928
8929         getopt-posix: detect MacOS bug
8930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8931         optind when missing a required argument.
8932         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8933         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8934         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8935         Likewise.
8936
8937         getopt-posix: avoid spurious failure on Solaris
8938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8939         an indicator that setting optind=1 is sufficient for reset.
8940
8941         getopt-posix: avoid spurious failure on FreeBSD
8942         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8943         in POSIX mode, since the m4 test uses it.
8944
8945         gnulib-tool: silence warning on BSD sh
8946         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8947
8948 2010-04-13  Jim Meyering  <meyering@redhat.com>
8949
8950         doc: users.txt: GNU patch now uses gnulib
8951         * users.txt: Add patch.
8952
8953 2010-04-12  Jim Meyering  <meyering@redhat.com>
8954
8955         maint.mk: generate more concise timing data for syntax-check rules
8956         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8957         " done" from each line that reports a syntax-check test duration.
8958
8959 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8960
8961         git-version-gen: use "git update-index..." rather than "git status"
8962         * build-aux/git-version-gen: Use git update-index --refresh, not
8963         "git status".  With some versions of git, "git status" would fail
8964         to update the index and result in an unwarranted "-dirty" suffix.
8965
8966 2010-04-11  Jim Meyering  <meyering@redhat.com>
8967
8968         openat: correct formatting (no semantic change)
8969         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8970         Suggested by Bruno Haible.
8971
8972 2010-04-11  Bruno Haible  <bruno@clisp.org>
8973
8974         Stricter declaration checking in testdirs.
8975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8976         If for_tests is true, augment AM_CPPFLAGS to define
8977         GNULIB_STRICT_CHECKING.
8978         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8979         GNULIB_STRICT_CHECKING is defined, verify that the function is
8980         declared.
8981
8982 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8983             Bruno Haible  <bruno@clisp.org>
8984
8985         libunistring: Improve configure output.
8986         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8987         Don't say "consider installing GNU libunistring" when checking again
8988         with libiconv.
8989
8990 2010-04-11  Bruno Haible  <bruno@clisp.org>
8991
8992         libunistring: Correct value of $LTLIBUNISTRING.
8993         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8994         correct the value of $LTLIBUNISTRING.
8995
8996 2010-04-11  Bruno Haible  <bruno@clisp.org>
8997
8998         havelib: Add static libraries to LIBS in the right order.
8999         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
9000         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
9001
9002 2010-04-11  Bruno Haible  <bruno@clisp.org>
9003
9004         libunistring: Detect libunistring also when it depends on libiconv.
9005         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
9006         the second AC_LIB_HAVE_LINKFLAGS invocation.
9007
9008 2010-04-11  James Youngman  <jay@gnu.org>
9009
9010         close-stream: declare local scalars to be "const"
9011         * lib/close-stream.c (close_stream): Make boolean variables const
9012         to document the fact that we set but do not change them.
9013
9014 2010-04-11  Bruno Haible  <bruno@clisp.org>
9015
9016         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
9017
9018 2010-04-11  Jim Meyering  <meyering@redhat.com>
9019
9020         maint.mk: don't include dist-check.mk
9021         * top/maint.mk: Remove bogus include directive.
9022
9023         maint.mk: improve empty-line-at-EOF check
9024         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
9025         solution, rather than tail+Perl-based one.  The latter would read
9026         a few kilobytes from the end of each file, and did not handle empty
9027         files properly.
9028
9029         maint.mk: print the elapsed time for each syntax-check rule
9030         * top/maint.mk (sc_m_rules_): Save start time in a file.
9031         (sc_z_rules_): New rules: remove temp file and print elapsed time.
9032         (local-check): Interpose the .z rules
9033
9034 2010-04-11  Jim Meyering  <meyering@redhat.com>
9035
9036         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
9037         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
9038         empty file with one that ends in an empty line.
9039
9040 2010-04-10  Bruno Haible  <bruno@clisp.org>
9041
9042         mkdir: Make it work on mingw64.
9043         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
9044         * lib/mkdir.c: Update comment.
9045         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
9046
9047 2010-04-10  Bruno Haible  <bruno@clisp.org>
9048
9049         Don't override improved macro from newer autoconf.
9050         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
9051         autoconf >= 2.62.
9052         Reported by Joel E. Denny <jdenny@clemson.edu>.
9053
9054 2010-04-10  Jim Meyering  <meyering@redhat.com>
9055
9056         maint.mk: new syntax-check rule: prohibit empty lines at end of file
9057         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
9058
9059         maint.mk: correct a diagnostic
9060         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
9061         in diagnostic; now use $prohibit.
9062
9063 2010-04-10  Bruno Haible  <address@hidden>
9064
9065         fchownat: Fix a C++ test error on Solaris 8.
9066         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
9067         the function does not exist.
9068
9069 2010-04-10  Bruno Haible  <bruno@clisp.org>
9070
9071         vasnprintf: Add more tests.
9072         * tests/test-vasnprintf-posix.c: Include <errno.h>.
9073         (test_function): Test converting an invalid wide string.
9074
9075         vasnprintf: Correct handling of unconvertible wide string arguments.
9076         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
9077         VASNPRINTF.
9078         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
9079         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
9080         smaller than the expected maximum need for the directive. Set errno to
9081         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
9082         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
9083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
9084         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
9085         * modules/vasnprintf (Files): Add m4/printf.m4.
9086         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9087
9088 2010-04-10  Bruno Haible  <bruno@clisp.org>
9089
9090         vasnprintf: Fix crash in %ls directive.
9091         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
9092         string is passed as argument to %ls, with no precision and no width.
9093         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9094
9095 2010-04-10  Bruno Haible  <bruno@clisp.org>
9096
9097         vasnprintf: Fix multiple test failures on mingw.
9098         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
9099         _snprintf, or snwprintf, not _snwprintf.
9100
9101 2010-04-10  Bruno Haible  <bruno@clisp.org>
9102
9103         write: Fix a C++ test error on mingw.
9104         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
9105
9106 2010-04-10  Bruno Haible  <bruno@clisp.org>
9107
9108         vasnprintf test: Reduce code duplication.
9109         * tests/test-vasnprintf.c (test_function): New function, extracted from
9110         test_vasnprintf.
9111         (test_vasnprintf, test_asnprintf): Invoke it.
9112
9113 2010-04-10  Bruno Haible  <bruno@clisp.org>
9114
9115         strnlen: Fix warning in C++ mode on MacOS X.
9116         * lib/string.in.h (strnlen): Use the modern idiom.
9117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
9118         defining strnlen as a macro already in <config.h>.
9119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9120         REPLACE_STRNLEN.
9121         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
9122         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9123
9124 2010-04-08  James Youngman  <jay@gnu.org>
9125
9126         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
9127         the example.
9128
9129 2010-04-09  Jim Meyering  <meyering@redhat.com>
9130
9131         maint.mk: print better diagnostic when there is no $(_hv_file)
9132         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
9133         announce that when $(_hv_file) (aka help-version) does not exist.
9134
9135         init.sh: run tr in the "C" locale to avoid multibyte interpretation
9136         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
9137         not try to interpret its random input bytes.  Jarno Rajahalme reported
9138         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
9139         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
9140         (mktempd_): Likewise, just in case.
9141
9142         ftruncate: add two years to projected module removal date: 2012
9143         * m4/ftruncate.m4: Adjust comments.
9144
9145         ftruncate: mark module as obsolete; even MinGW provides it, now
9146         * modules/ftruncate (Status): Obsolete.
9147         (Notice): Say that.
9148         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
9149         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
9150
9151 2010-04-08  Bruno Haible  <bruno@clisp.org>
9152
9153         Fix side effects from tests-related modules.
9154         * modules/dprintf-posix (Comment): New section.
9155         * modules/fprintf-posix (Comment): Likewise.
9156         * modules/obstack-printf-posix (Comment): Likewise.
9157         * modules/printf-posix (Comment): Likewise.
9158         * modules/snprintf-posix (Comment): Likewise.
9159         * modules/sprintf-posix (Comment): Likewise.
9160         * modules/vasnprintf-posix (Comment): Likewise.
9161         * modules/vasprintf-posix (Comment): Likewise.
9162         * modules/vdprintf-posix (Comment): Likewise.
9163         * modules/vfprintf-posix (Comment): Likewise.
9164         * modules/vprintf-posix (Comment): Likewise.
9165         * modules/vsnprintf-posix (Comment): Likewise.
9166         * modules/vsprintf-posix (Comment): Likewise.
9167         * modules/xprintf-posix (Comment): Likewise.
9168         * modules/xvasprintf-posix (Comment): Likewise.
9169         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
9170         * modules/floorf-tests (Depends-on): Likewise.
9171         * modules/round-tests (Depends-on): Likewise.
9172         * modules/roundf-tests (Depends-on): Likewise.
9173         * modules/trunc-tests (Depends-on): Likewise.
9174         * modules/truncf-tests (Depends-on): Likewise.
9175         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
9176         'fprintf-posix' module is not present.
9177         * tests/test-floorf2.c (check): Likewise.
9178         * tests/test-trunc2.c (check): Likewise.
9179         * tests/test-truncf2.c (check): Likewise.
9180         * tests/test-round2.c (equal): Likewise.
9181         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9182
9183 2010-04-07  Karl Berry  <karl@gnu.org>
9184
9185         * config/srclist.txt,
9186         * config/srclistvars.sh,
9187         * config/srclist-update: doc fixes.
9188
9189 2010-04-07  Jim Meyering  <meyering@redhat.com>
9190
9191         maint.mk: add a PATH crosschecking syntax-check rule
9192         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
9193         Useful if you use a test like the one in help-version (coreutils,
9194         diffutils, grep, gzip) that ensures $(VERSION) matches what is
9195         printed by prog --version.
9196
9197 2010-04-06  Bruno Haible  <bruno@clisp.org>
9198
9199         Fix link error on mingw.
9200         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
9201         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
9202
9203 2010-04-06  Bruno Haible  <bruno@clisp.org>
9204
9205         Assume rmdir exists.
9206         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
9207
9208 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
9209
9210         doc: update users.txt
9211         * users.txt: Add gcal.
9212
9213 2010-04-06  Jim Meyering  <meyering@redhat.com>
9214
9215         init.sh: simply unset TMPDIR rather than risking env -i
9216         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
9217         although it probably works fine on all Unix-based systems, some
9218         systems (Cygwin?) cannot tolerate a totally cleared environment.
9219         Suggestion from Eric Blake.
9220
9221 2010-04-06  Jim Meyering  <meyering@redhat.com>
9222
9223         init.sh: portability fix: use env's POSIX-specified -i option not -u
9224         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
9225         than unportable env -u.  Solaris 5.11's env lacks support for -u.
9226
9227 2010-04-05  Bruno Haible  <bruno@clisp.org>
9228
9229         btowc: Work around Cygwin 1.7.2 bug.
9230         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
9231         does not map NUL to 0.
9232         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
9233
9234 2010-04-05  Bruno Haible  <bruno@clisp.org>
9235
9236         Make the multithread modules work on Cygwin 1.7.2.
9237         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
9238         imported symbols can be declared weak, so that it returns "no" on
9239         Cygwin 1.7.2.
9240
9241 2010-04-05  Bruno Haible  <bruno@clisp.org>
9242
9243         Use the module 'strncat'.
9244         * modules/unistr/u8-strncat (Depends-on): Add strncat.
9245
9246         Tests for module 'strncat'.
9247         * modules/strncat-tests: New file.
9248         * tests/test-strncat.c: New file.
9249
9250         New module 'strncat'.
9251         * lib/string.in.h (strncat): New declaration.
9252         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
9253         * m4/strncat.m4: New file, based on m4/memchr.m4.
9254         * modules/strncat: New file.
9255         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
9256         is declared.
9257         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
9258         REPLACE_STRNCAT.
9259         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
9260         REPLACE_STRNCAT.
9261         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
9262         module.
9263         * tests/test-string-c++.cc: Check signature of strncat.
9264
9265 2010-04-05  Jim Meyering  <meyering@redhat.com>
9266
9267         xstrtoumax-tests: convert to use init.sh
9268         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
9269         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9270         Use Exit, not exit.
9271         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9272
9273         xstrtoimax-tests: convert to use init.sh
9274         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
9275         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9276         Use Exit, not exit.
9277         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9278
9279 2010-04-05  Bruno Haible  <bruno@clisp.org>
9280
9281         sys_socket: Avoid #define replacements in C++ mode.
9282         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9283         warning to the function if possible, rather than #defining the symbol
9284         to a dysfunctional alias.
9285
9286 2010-04-05  Bruno Haible  <bruno@clisp.org>
9287
9288         fseeko: Fix C++ test error on mingw.
9289         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9290         gl_FUNC_FSEEKO.
9291         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9292         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9293         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9294         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9295
9296 2010-04-05  Bruno Haible  <bruno@clisp.org>
9297
9298         duplocale: Improve test output.
9299         * tests/test-duplocale.c (main): Print reason for skipped test.
9300
9301 2010-04-05  Bruno Haible  <bruno@clisp.org>
9302
9303         Assume rmdir exists.
9304         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9305         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9306
9307 2010-04-05  Bruno Haible  <bruno@clisp.org>
9308
9309         Fix link error on Solaris 8 with cc.
9310         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9311
9312 2010-04-05  Bruno Haible  <bruno@clisp.org>
9313
9314         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9315         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9316
9317 2010-04-05  Bruno Haible  <bruno@clisp.org>
9318
9319         vasprintf: Update documentation.
9320         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9321
9322 2010-04-05  Bruno Haible  <bruno@clisp.org>
9323
9324         ptsname: Improve test.
9325         * tests/test-ptsname.c (main): Also try the various master names of BSD
9326         systems.
9327
9328 2010-04-05  Bruno Haible  <bruno@clisp.org>
9329
9330         memchr: Avoid a possible C++ test error.
9331         * lib/string.in.h (memchr): Provide declaration if function is missing.
9332         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9333         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9335         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9336
9337 2010-04-05  Bruno Haible  <bruno@clisp.org>
9338
9339         strtok_r: Improve idiom.
9340         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9341         AC_LIBOBJ is used.
9342
9343 2010-04-05  Bruno Haible  <bruno@clisp.org>
9344
9345         strdup: Improve idiom.
9346         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9347         AC_LIBOBJ is used.
9348         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9349         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9350         when AC_LIBOBJ is used.
9351
9352 2010-04-05  Bruno Haible  <bruno@clisp.org>
9353
9354         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9355         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9356         don't set REPLACE_MBSINIT to 1.
9357         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9358         don't set REPLACE_MBRTOWC to 1.
9359         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9360         exist, don't set REPLACE_MBSRTOWCS to 1.
9361         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9362         exist, don't set REPLACE_MBSNRTOWCS to 1.
9363         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9364         don't set REPLACE_WCRTOMB to 1.
9365         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9366         exist, don't set REPLACE_WCSRTOMBS to 1.
9367         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9368         exist, don't set REPLACE_WCSNRTOMBS to 1.
9369
9370 2010-04-05  Bruno Haible  <bruno@clisp.org>
9371
9372         ldexpl: Improve idiom.
9373         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9374         make sure to set HAVE_DECL_LDEXPL to 0.
9375
9376 2010-04-05  Jim Meyering  <meyering@redhat.com>
9377
9378         xstrtol-tests: convert to use init.sh
9379         * modules/xstrtol-tests (Files): Add tests/init.sh.
9380         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9381         Use Exit, not exit.
9382         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9383
9384         atexit-tests: convert to use init.sh
9385         * modules/atexit-tests (Files): Add tests/init.sh.
9386         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9387         Use Exit, not exit.
9388         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9389
9390         init.sh: fix typo
9391         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9392
9393         init.sh: make it easier for a test script to write to the tty, ...
9394         when using automake's parallel-tests mode.
9395         * tests/init.sh (stderr_fileno_): Define overridable variable.
9396         (warn_): New function, to use it.
9397         (fail_, skip_, framework_failure_): Use warn_.
9398
9399 2010-04-04  Bruno Haible  <bruno@clisp.org>
9400
9401         btowc: Avoid warning.
9402         * lib/btowc.c: Include <stdlib.h>.
9403         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9404
9405 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9406             Bruno Haible  <bruno@clisp.org>
9407
9408         wchar: Port to NetBSD 1.5.
9409         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9410         * lib/wctype.in.h (WEOF): Likewise.
9411
9412 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9413             Bruno Haible  <bruno@clisp.org>
9414
9415         Port extended stdio to NetBSD 1.5.
9416         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9417         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9418         older.
9419
9420 2010-04-04  Bruno Haible  <bruno@clisp.org>
9421
9422         string: Remove unused substitution.
9423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9424         HAVE_DECL_STRERROR.
9425         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9426
9427 2010-04-04  Bruno Haible  <bruno@clisp.org>
9428
9429         strtod: Avoid a possible C++ test error.
9430         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9431         set REPLACE_STRTOD.
9432
9433 2010-04-04  Bruno Haible  <bruno@clisp.org>
9434
9435         strerror: Update documentation.
9436         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9437
9438 2010-04-04  Bruno Haible  <bruno@clisp.org>
9439
9440         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9441         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9442         _GL_CXXALIAS_SYS_CAST.
9443
9444 2010-04-04  Bruno Haible  <bruno@clisp.org>
9445
9446         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9447         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9448         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9449         REPLACE_FREXPL to 1.
9450         * doc/posix-functions/frexpl.texi: Update documentation.
9451
9452 2010-04-04  Bruno Haible  <bruno@clisp.org>
9453
9454         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9455         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9456
9457 2010-04-04  Bruno Haible  <bruno@clisp.org>
9458
9459         Implement nanosleep for native Windows.
9460         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9461
9462 2010-04-04  Bruno Haible  <bruno@clisp.org>
9463
9464         math: Fix some C++ test errors on Solaris 8.
9465         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9466
9467 2010-04-04  Bruno Haible  <bruno@clisp.org>
9468
9469         math: Fix some C++ test errors on Cygwin.
9470         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9471         truncl): Provide declaration if the system does not have it.
9472         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9473         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9474         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9475         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9476         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9477         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9478         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9479         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9480         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9481         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9482         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9483         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9484         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9485         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9486         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9487         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9489         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9490         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9491         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9492         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9493         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9494
9495 2010-04-04  Bruno Haible  <bruno@clisp.org>
9496
9497         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9498         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9499         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9500         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9501         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9502         * m4/isinf.m4 (gl_ISINF): Likewise.
9503         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9504
9505 2010-04-04  Bruno Haible  <bruno@clisp.org>
9506
9507         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9508         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9509
9510 2010-04-04  Bruno Haible  <bruno@clisp.org>
9511
9512         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9513         * modules/tmpfile (configure.ac): Update.
9514
9515         tmpfile: Fix C++ test error on mingw.
9516         * lib/stdio.in.h (tmpfile): New declaration.
9517         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9518         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9519         * modules/tmpfile (Depends-on): Add stdio.
9520         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9521         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9522         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9523         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9524         REPLACE_TMPFILE.
9525         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9526
9527 2010-04-04  Bruno Haible  <bruno@clisp.org>
9528
9529         ioctl: Fix C++ test error on mingw.
9530         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9531         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9532         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9533
9534 2010-04-03  Bruno Haible  <bruno@clisp.org>
9535
9536         wcwidth: Fix C++ test error on mingw.
9537         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9539         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9540
9541 2010-04-03  Bruno Haible  <bruno@clisp.org>
9542
9543         nanosleep: Fix C++ test error on mingw.
9544         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9545         * lib/time.in.h (nanosleep): Use modern idiom.
9546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9547         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9548         REPLACE_NANOSLEEP to 1.
9549         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9550         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9551
9552 2010-04-03  Bruno Haible  <bruno@clisp.org>
9553
9554         strptime: Fix C++ test error on mingw.
9555         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9556         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9557         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9558         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9559         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9560         not REPLACE_STRPTIME.
9561         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9562         REPLACE_STRPTIME.
9563
9564 2010-04-03  Bruno Haible  <bruno@clisp.org>
9565
9566         timegm: Fix C++ test error on mingw.
9567         * lib/time.in.h (timegm): Use modern idiom.
9568         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9569         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9570         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9571         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9572
9573 2010-04-03  Bruno Haible  <bruno@clisp.org>
9574
9575         timegm: Assume declaration if function exists.
9576         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9577         if it exists. Don't clobber ac_cv_func_timegm.
9578
9579 2010-04-03  Bruno Haible  <bruno@clisp.org>
9580
9581         time_r: Fix C++ test error on mingw.
9582         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9583         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9584         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9585         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9586         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9587
9588 2010-04-03  Bruno Haible  <bruno@clisp.org>
9589
9590         time_r: Minor updates.
9591         * modules/time_r (Description): Mention the provided functions.
9592         * lib/time_r.c: Don't include <string.h>.
9593         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9594         * doc/posix-functions/localtime_r.texi: Likewise.
9595
9596 2010-04-03  Bruno Haible  <bruno@clisp.org>
9597
9598         time: Fix regression introduced on 2010-03-08.
9599         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9600         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9601
9602 2010-04-03  Jim Meyering  <meyering@redhat.com>
9603
9604         maint.mk: don't silently disable project-specific syntax-check rules
9605         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9606         that they need to convert their project-specific syntax-check rules
9607         to use the new _sc_search_regexp.
9608
9609 2010-04-03  Bruno Haible  <bruno@clisp.org>
9610
9611         fchdir: Fix regression introduced on 2010-03-08.
9612         * lib/unistd.in.h (fchdir): Fix declaration.
9613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9615         REPLACE_FCHDIR.
9616         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9617         REPLACE_FCHDIR.
9618
9619 2010-04-03  Bruno Haible  <bruno@clisp.org>
9620
9621         getpagesize: Fix C++ test error on mingw.
9622         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9623         system does not declare the function.
9624         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9625         declared.
9626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9627         HAVE_DECL_GETPAGESIZE.
9628         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9629
9630 2010-04-03  Bruno Haible  <bruno@clisp.org>
9631
9632         stdio: Make C++ tests work on mingw.
9633         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9634         does not declare the function.
9635
9636 2010-04-03  Bruno Haible  <bruno@clisp.org>
9637
9638         ftello: Fix C++ test error on mingw.
9639         * lib/stdio.in.h (ftello): Use modern idiom.
9640         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9641         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9642         is missing and that it needs to be replaced.
9643         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9645         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9646
9647 2010-04-03  Bruno Haible  <bruno@clisp.org>
9648
9649         fseeko: Fix C++ test error on mingw.
9650         * lib/stdio.in.h (fseeko): Use modern idiom.
9651         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9652         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9653         is missing and that it needs to be replaced.
9654         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9656         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9657
9658 2010-04-03  Bruno Haible  <bruno@clisp.org>
9659
9660         mkstemp: Fix C++ test error on mingw.
9661         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9663         function is missing and that it needs to be replaced.
9664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9665         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9666
9667 2010-04-03  Bruno Haible  <bruno@clisp.org>
9668
9669         stpncpy: Fix C++ test error on mingw.
9670         * lib/string.in.h (stpncpy): Use modern idiom.
9671         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9672         function is missing and that it needs to be replaced.
9673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9674         REPLACE_STPNCPY.
9675         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9676
9677 2010-04-03  Bruno Haible  <bruno@clisp.org>
9678
9679         sys_stat: Fix C++ test error on mingw.
9680         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9681         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9682
9683 2010-04-03  Bruno Haible  <bruno@clisp.org>
9684
9685         pty: Update doc.
9686         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9687
9688 2010-04-03  Bruno Haible  <bruno@clisp.org>
9689
9690         unistd: Fix C++ test error on mingw.
9691         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9692
9693 2010-04-03  Bruno Haible  <bruno@clisp.org>
9694
9695         Update doc regarding mingw.
9696         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9697         * doc/glibc-functions/login_tty.texi: Likewise.
9698         * doc/glibc-functions/forkpty.texi: Likewise.
9699
9700 2010-04-03  Bruno Haible  <bruno@clisp.org>
9701
9702         stdlib: Avoid compilation failure of c-strtold on mingw.
9703         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9704
9705 2010-04-03  Bruno Haible  <bruno@clisp.org>
9706
9707         locale: Make C++ tests work on Cygwin and mingw.
9708         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9709         cannot provide the function.
9710         Reported by Simon Josefsson.
9711
9712 2010-04-03  Bruno Haible  <bruno@clisp.org>
9713
9714         localename: Port to MacOS X 10.6.
9715         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9716         memory layout of the locales in MacOS X 10.6 as well.
9717         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9718
9719 2010-04-02  Bruno Haible  <bruno@clisp.org>
9720
9721         gnulib-tool: Ensure that long-running tests are executed last.
9722         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9723         running tests after the one for the other tests.
9724
9725 2010-04-02  Bruno Haible  <bruno@clisp.org>
9726
9727         gnulib-tool: Ensure the tests in the main directory are executed first.
9728         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9729         start with the current directory.
9730
9731 2010-04-02  Bruno Haible  <bruno@clisp.org>
9732
9733         Tests for module 'havelib', moved here from GNU gettext.
9734         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9735         modifications.
9736         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9737         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9738         with modifications.
9739         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9740         modifications.
9741         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9742         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9743         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9744         with modifications.
9745         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9746         with modifications.
9747         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9748         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9749         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9750         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9751         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9752         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9753         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9754         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9755         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9756         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9757         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9758         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9759         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9760         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9761         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9762         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9763         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9764         with modifications.
9765         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9766         with modifications.
9767         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9768         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9769         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9770         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9771         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9772         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9773         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9774         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9775         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9776         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9777         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9778         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9779         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9780         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9781         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9782         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9783         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9784         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9785         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9786         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9787         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9788         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9789         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9790         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9791         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9792         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9793         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9794         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9795         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9796         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9797         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9798         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9799         * tests/havelib/rpathx/rpathx.c: New file, from
9800         gettext/autoconf-lib-link.
9801         * tests/havelib/rpathx/Makefile.am: New file, from
9802         gettext/autoconf-lib-link.
9803         * tests/havelib/rpathx/configure.ac: New file, from
9804         gettext/autoconf-lib-link with modifications.
9805         * tests/havelib/rpathy/rpathy.c: New file, from
9806         gettext/autoconf-lib-link.
9807         * tests/havelib/rpathy/Makefile.am: New file, from
9808         gettext/autoconf-lib-link.
9809         * tests/havelib/rpathy/configure.ac: New file, from
9810         gettext/autoconf-lib-link with modifications.
9811         * tests/havelib/rpathz/rpathz.c: New file, from
9812         gettext/autoconf-lib-link.
9813         * tests/havelib/rpathz/Makefile.am: New file, from
9814         gettext/autoconf-lib-link.
9815         * tests/havelib/rpathz/configure.ac: New file, from
9816         gettext/autoconf-lib-link with modifications.
9817         * tests/havelib/rpathlx/usex.c: New file, from
9818         gettext/autoconf-lib-link.
9819         * tests/havelib/rpathlx/Makefile.am: New file, from
9820         gettext/autoconf-lib-link.
9821         * tests/havelib/rpathlx/configure.ac: New file, from
9822         gettext/autoconf-lib-link with modifications.
9823         * tests/havelib/rpathly/usey.c: New file, from
9824         gettext/autoconf-lib-link.
9825         * tests/havelib/rpathly/Makefile.am: New file, from
9826         gettext/autoconf-lib-link.
9827         * tests/havelib/rpathly/configure.ac: New file, from
9828         gettext/autoconf-lib-link with modifications.
9829         * tests/havelib/rpathlz/usez.c: New file, from
9830         gettext/autoconf-lib-link.
9831         * tests/havelib/rpathlz/Makefile.am: New file, from
9832         gettext/autoconf-lib-link.
9833         * tests/havelib/rpathlz/configure.ac: New file, from
9834         gettext/autoconf-lib-link with modifications.
9835         * tests/havelib/rpathlyx/usey.c: New file, from
9836         gettext/autoconf-lib-link.
9837         * tests/havelib/rpathlyx/Makefile.am: New file, from
9838         gettext/autoconf-lib-link.
9839         * tests/havelib/rpathlyx/configure.ac: New file, from
9840         gettext/autoconf-lib-link with modifications.
9841         * tests/havelib/rpathlzyx/usez.c: New file, from
9842         gettext/autoconf-lib-link.
9843         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9844         gettext/autoconf-lib-link.
9845         * tests/havelib/rpathlzyx/configure.ac: New file, from
9846         gettext/autoconf-lib-link with modifications.
9847         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9848         with modifications.
9849
9850 2010-04-02  Bruno Haible  <bruno@clisp.org>
9851
9852         gnulib-tool: Create distributed built sources also for the tests.
9853         * gnulib-tool (func_create_testdir): Also generate distributed built
9854         sources in the tests directory.
9855
9856 2010-04-02  Bruno Haible  <bruno@clisp.org>
9857
9858         gnulib-tool: Obey user's environment variables.
9859         * gnulib-tool (func_create_testdir): When creating built sources,
9860         respect the environment variables for autoconf, automake, etc. given by
9861         the user.
9862
9863 2010-04-02  Bruno Haible  <bruno@clisp.org>
9864
9865         gnulib-tool: Provide the value of --m4-base to modules.
9866         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9867         of gl_m4_base.
9868
9869 2010-04-02  Eric Blake  <eblake@redhat.com>
9870
9871         maint.mk: fix some fallout
9872         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9873         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9874
9875 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9876
9877         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9878         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9879         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9880         (sc_cast_of_x_alloc_return_value): Likewise.
9881         (sc_cast_of_alloca_return_value): Likewise.
9882         (sc_space_tab): Likewise.
9883         (sc_prohibit_atoi_atof): Likewise.
9884         (sc_prohibit_magic_number_exit): Likewise.
9885         (sc_error_exit_success): Likewise.
9886         (sc_file_system): Likewise.
9887         (sc_prohibit_have_config_h): Likewise.
9888         (sc_require_config_h): Likewise.
9889         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9890         (sc_obsolete_symbols): Likewise.
9891         (sc_changelog): Likewise.
9892         (sc_program_name): Likewise.
9893         (sc_the_the): Likewise.
9894         (sc_trailing_blank): Likewise.
9895         (sc_two_space_separator_in_usage): Likewise.
9896         (sc_useless_cpp_parens): Likewise.
9897         (sc_GPL_version): Likewise.
9898         (sc_GFDL_version): Likewise.
9899         (sc_texinfo_acronym): Likewise.
9900         (sc_prohibit_cvs_keyword): Likewise.
9901         (sc_prohibit_stat_st_blocks): Likewise.
9902         (sc_prohibit_S_IS_definition): Likewise.
9903         (sc_redundant_const): Likewise.
9904         (sc_makefile_TAB_only_indentation): Likewise.
9905         (sc_m4_quote_check): Likewise.
9906         (sc_makefile_path_separator_check): Likewise.
9907         (sc_copyright_check): Likewise.
9908         (sc_Wundef_boolean): Likewise.
9909         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9910
9911         maint.mk: match 0 or more whitespace-before-function-call '('
9912         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9913         that have zero or two-and-more spaces between the function name
9914         and the open parenthesis.
9915         (sc_error_message_warn_fatal): Likewise.
9916         (sc_error_message_uppercase): Likewise.
9917         (sc_error_message_period): Likewise.
9918
9919 2010-03-31  Eric Blake  <eblake@redhat.com>
9920
9921         maint.mk: check for [ as well as test
9922         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9923         Based on a libvirt report by Matthias Bolte.
9924
9925         gnumakefile: don't squelch _version output
9926         * top/GNUmakefile (_version): Create one-shot dependency rather
9927         than using $(shell) when version must be regenerated.
9928         (_autoreconf): Run verbosely, by default.
9929
9930         sys_time: avoid compiler warnings
9931         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9932         unconditional, fixing regression from 2010-03-29.
9933         Reported by Simon Josefsson.
9934
9935 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9936
9937         maint.mk: s/_header_without_use/_sc_header_without_use/
9938         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9939         (sc_prohibit_assert_without_use): Use the new name.
9940         (sc_prohibit_close_stream_without_use): Likewise.
9941         (sc_prohibit_getopt_without_use): Likewise.
9942         (sc_prohibit_quotearg_without_use): Likewise.
9943         (sc_prohibit_quote_without_use): Likewise.
9944         (sc_prohibit_long_options_without_use): Likewise.
9945         (sc_prohibit_inttostr_without_use): Likewise.
9946         (sc_prohibit_ignore_value_without_use): Likewise.
9947         (sc_prohibit_error_without_use): Likewise.
9948         (sc_prohibit_xalloc_without_use): Likewise.
9949         (sc_prohibit_hash_without_use): Likewise.
9950         (sc_prohibit_hash_pjw_without_use): Likewise.
9951         (sc_prohibit_safe_read_without_use): Likewise.
9952         (sc_prohibit_argmatch_without_use): Likewise.
9953         (sc_prohibit_canonicalize_without_use): Likewise.
9954         (sc_prohibit_root_dev_ino_without_use): Likewise.
9955         (sc_prohibit_openat_without_use): Likewise.
9956         (sc_prohibit_c_ctype_without_use): Likewise.
9957         (sc_prohibit_signal_without_use): Likewise.
9958         (sc_prohibit_intprops_without_use): Likewise.
9959
9960 2010-03-30  Eric Blake  <eblake@redhat.com>
9961
9962         maint: improve module indicators
9963         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9964         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9965         columns, and avoid extra macro expansion.
9966
9967         fdopendir: work around FreeBSD bug
9968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9969         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9970         * modules/dirent (Makefile.am): Substitute it.
9971         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9972         declaration.
9973         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9974         fix.
9975         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9976
9977 2010-03-29  Bruno Haible  <bruno@clisp.org>
9978
9979         Emit #pragma system_header after the inclusion guard, not before.
9980         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9981         guard that spans the entire file, not before. This enables an
9982         optimization in GCC's preprocessor.
9983         * lib/ctype.in.h: Likewise.
9984         * lib/dirent.in.h: Likewise.
9985         * lib/errno.in.h: Likewise.
9986         * lib/float.in.h: Likewise.
9987         * lib/getopt.in.h: Likewise.
9988         * lib/iconv.in.h: Likewise.
9989         * lib/langinfo.in.h: Likewise.
9990         * lib/locale.in.h: Likewise.
9991         * lib/math.in.h: Likewise.
9992         * lib/netdb.in.h: Likewise.
9993         * lib/netinet_in.in.h: Likewise.
9994         * lib/pty.in.h: Likewise.
9995         * lib/sched.in.h: Likewise.
9996         * lib/se-selinux.in.h: Likewise.
9997         * lib/search.in.h: Likewise.
9998         * lib/spawn.in.h: Likewise.
9999         * lib/stdarg.in.h: Likewise.
10000         * lib/stdint.in.h: Likewise.
10001         * lib/string.in.h: Likewise.
10002         * lib/strings.in.h: Likewise.
10003         * lib/sys_file.in.h: Likewise.
10004         * lib/sys_ioctl.in.h: Likewise.
10005         * lib/sys_time.in.h: Likewise.
10006         * lib/sys_times.in.h: Likewise.
10007         * lib/sys_utsname.in.h: Likewise.
10008         * lib/sys_wait.in.h: Likewise.
10009         * lib/sysexits.in.h: Likewise.
10010         * lib/wctype.in.h: Likewise.
10011
10012 2010-03-28  James Youngman  <jay@gnu.org>
10013
10014         save-cwd: don't leak a file descriptor when the caller execs.
10015         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
10016         saved file descriptor.
10017         * modules/save-cwd (Depends-on): Depend on cloexec.
10018
10019 2010-03-29  Bruno Haible  <bruno@clisp.org>
10020
10021         Remove vestiges of fts-lgpl module.
10022         * lib/fts_.h: Assume GNULIB_FTS is 1.
10023         * lib/fts.c: Likewise.
10024         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10025
10026 2010-03-28  Bruno Haible  <bruno@clisp.org>
10027
10028         Fix definition of tests witness macro.
10029         * gnulib-tool (func_import): Fix definition of witness macro.
10030
10031 2010-03-28  Bruno Haible  <bruno@clisp.org>
10032
10033         Fix ioctl's protoype on glibc systems.
10034         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
10035         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
10036         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
10037         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
10038         signature. If not, arrange to replace the ioctl function.
10039         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10040         REPLACE_IOCTL.
10041         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
10042         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
10043         Reported by Ludovic Courtès <ludo@gnu.org>.
10044
10045 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
10046
10047         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
10048         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
10049         made it so grep -r --include=GLOB* ... did not work.
10050
10051 2010-03-26  Jim Meyering  <meyering@redhat.com>
10052             Eric Blake  <eblake@redhat.com>
10053
10054         maint.mk: prohibit use of test's -o and -a operators
10055         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
10056
10057 2010-03-28  Bruno Haible  <bruno@clisp.org>
10058
10059         Remove unused GNULIB_XYZ macro definitions.
10060         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
10061         invocation.
10062
10063 2010-03-28  Bruno Haible  <bruno@clisp.org>
10064
10065         Mark privileged tests modules.
10066         * modules/idpriv-drop-tests (Status): New section.
10067         * modules/idpriv-droptemp-tests (Status): New section.
10068
10069 2010-03-28  Bruno Haible  <bruno@clisp.org>
10070
10071         Split C++ tests into separate tests modules.
10072         * modules/dirent-c++-tests: New file, extracted from
10073         modules/dirent-tests.
10074         * modules/dirent-tests: Depend on it.
10075         * modules/fcntl-h-c++-tests: New file, extracted from
10076         modules/fcntl-h-tests.
10077         * modules/fcntl-h-tests: Depend on it.
10078         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
10079         * modules/glob-tests: Depend on it.
10080         * modules/iconv-h-c++-tests: New file, extracted from
10081         modules/iconv-h-tests.
10082         * modules/iconv-h-tests: Depend on it.
10083         * modules/langinfo-c++-tests: New file, extracted from
10084         modules/langinfo-tests.
10085         * modules/langinfo-tests: Depend on it.
10086         * modules/locale-c++-tests: New file, extracted from
10087         modules/locale-tests.
10088         * modules/locale-tests: Depend on it.
10089         * modules/math-c++-tests: New file, extracted from modules/math-tests.
10090         * modules/math-tests: Depend on it.
10091         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
10092         * modules/pty-tests: Depend on it.
10093         * modules/search-c++-tests: New file, extracted from
10094         modules/search-tests.
10095         * modules/search-tests: Depend on it.
10096         * modules/signal-c++-tests: New file, extracted from
10097         modules/signal-tests.
10098         * modules/signal-tests: Depend on it.
10099         * modules/spawn-c++-tests: New file, extracted from
10100         modules/spawn-tests.
10101         * modules/spawn-tests: Depend on it.
10102         * modules/stdio-c++-tests: New file, extracted from
10103         modules/stdio-tests.
10104         * modules/stdio-tests: Depend on it.
10105         * modules/stdlib-c++-tests: New file, extracted from
10106         modules/stdlib-tests.
10107         * modules/stdlib-tests: Depend on it.
10108         * modules/string-c++-tests: New file, extracted from
10109         modules/string-tests.
10110         * modules/string-tests: Depend on it.
10111         * modules/sys_ioctl-c++-tests: New file, extracted from
10112         modules/sys_ioctl-tests.
10113         * modules/sys_ioctl-tests: Depend on it.
10114         * modules/sys_select-c++-tests: New file, extracted from
10115         modules/sys_select-tests.
10116         * modules/sys_select-tests: Depend on it.
10117         * modules/sys_socket-c++-tests: New file, extracted from
10118         modules/sys_socket-tests.
10119         * modules/sys_socket-tests: Depend on it.
10120         * modules/sys_stat-c++-tests: New file, extracted from
10121         modules/sys_stat-tests.
10122         * modules/sys_stat-tests: Depend on it.
10123         * modules/sys_time-c++-tests: New file, extracted from
10124         modules/sys_time-tests.
10125         * modules/sys_time-tests: Depend on it.
10126         * modules/time-c++-tests: New file, extracted from modules/time-tests.
10127         * modules/time-tests: Depend on it.
10128         * modules/unistd-c++-tests: New file, extracted from
10129         modules/unistd-tests.
10130         * modules/unistd-tests: Depend on it.
10131         * modules/wchar-c++-tests: New file, extracted from
10132         modules/wchar-tests.
10133         * modules/wchar-tests: Depend on it.
10134         * modules/wctype-c++-tests: New file, extracted from
10135         modules/wctype-tests.
10136         * modules/wctype-tests: Depend on it.
10137         Reported by Simon Josefsson.
10138
10139 2010-03-28  Bruno Haible  <bruno@clisp.org>
10140
10141         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
10142         * gnulib-tool (func_exists_module): New function, extracted from
10143         func_verify_module.
10144         (func_verify_module): Use it.
10145         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
10146         'foo' only if 'foo' exists.
10147         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
10148         module.
10149
10150 2010-03-28  Bruno Haible  <bruno@clisp.org>
10151
10152         gnulib-tool: Add support for special categories of tests.
10153         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
10154         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
10155         (func_usage): Document them.
10156         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
10157         inc_unportable_tests, inc_all_tests): New variables.
10158         (func_acceptable): Consider these variables.
10159         (func_modules_transitive_closure): Make it work when the 'Status' field
10160         consists of multiple words.
10161         (func_import): Store and restore the values of inc_cxx_tests,
10162         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
10163         inc_all_tests in gnulib-comp.m4.
10164         (func_create_testdir): Set inc_all_tests to true.
10165         * doc/gnulib.texi (Extra tests modules): New section.
10166         Suggested by Jim Meyering.
10167
10168 2010-03-28  Bruno Haible  <bruno@clisp.org>
10169
10170         ansi-c++-opt: Allow turning off the C++ build by default.
10171         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
10172         gl_CXX_CHOICE_DEFAULT_NO is defined.
10173         Requested by Eric Blake.
10174
10175 2010-03-28  Bruno Haible  <bruno@clisp.org>
10176
10177         unistd: Avoid #define replacements in C++ mode.
10178         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10179         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10180         setsockopt, shutdown, select): In C++, attach a warning to the function
10181         if possible, rather than #defining the symbol to a dysfunctional alias.
10182         Reported by John W. Eaton <jwe@gnu.org>.
10183
10184 2010-03-28  Bruno Haible  <bruno@clisp.org>
10185
10186         Fix link errors on mingw.
10187         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
10188         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
10189         $(LIBSOCKET).
10190         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
10191         $(LIBSOCKET).
10192
10193 2010-03-28  Bruno Haible  <bruno@clisp.org>
10194             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10195
10196         lib-ignore: Determine different options for different compilers.
10197         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
10198         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
10199         Add comments.
10200         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
10201         * NEWS: Mention the change.
10202
10203 2010-03-27  Bruno Haible  <bruno@clisp.org>
10204
10205         Remove unused GNULIB_XYZ macro definitions.
10206         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
10207         * modules/fseek (configure.ac): Likewise.
10208         * modules/ioctl (configure.ac): Likewise.
10209         * modules/open (configure.ac): Likewise.
10210         * modules/stdlib-safer (configure.ac): Likewise.
10211
10212 2010-03-27  Bruno Haible  <bruno@clisp.org>
10213
10214         Add a remark about certain modules.
10215         * modules/malloc (Comment): New section.
10216         * modules/realloc (Comment): Likewise.
10217         * modules/sigpipe (Comment): Likewise.
10218
10219 2010-03-27  Bruno Haible  <bruno@clisp.org>
10220
10221         Resolve conflict between the two kinds of module indicators.
10222         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
10223         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
10224         * modules/canonicalize (configure.ac): Invoke
10225         gl_MODULE_INDICATOR_FOR_TESTS.
10226         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
10227         GNULIB_XYZ.
10228         * tests/test-dirent-c++.cc: Likewise.
10229         * tests/test-dirent-safer.c: Likewise.
10230         * tests/test-dup2.c: Likewise.
10231         * tests/test-fchdir.c: Likewise.
10232         * tests/test-fcntl-h-c++.cc: Likewise.
10233         * tests/test-getopt.c: Likewise.
10234         * tests/test-getopt.h: Likewise.
10235         * tests/test-langinfo-c++.cc: Likewise.
10236         * tests/test-locale-c++.cc: Likewise.
10237         * tests/test-math-c++.cc: Likewise.
10238         * tests/test-pty-c++.cc: Likewise.
10239         * tests/test-search-c++.cc: Likewise.
10240         * tests/test-signal-c++.cc: Likewise.
10241         * tests/test-spawn-c++.cc: Likewise.
10242         * tests/test-stdio-c++.cc: Likewise.
10243         * tests/test-stdlib-c++.cc: Likewise.
10244         * tests/test-string-c++.cc: Likewise.
10245         * tests/test-sys_ioctl-c++.cc: Likewise.
10246         * tests/test-sys_select-c++.cc: Likewise.
10247         * tests/test-sys_socket-c++.cc: Likewise.
10248         * tests/test-sys_stat-c++.cc: Likewise.
10249         * tests/test-sys_time-c++.cc: Likewise.
10250         * tests/test-time-c++.cc: Likewise.
10251         * tests/test-unistd-c++.cc: Likewise.
10252         * tests/test-wchar-c++.cc: Likewise.
10253         * tests/uninorm/test-u8-nfc.c: Likewise.
10254         * tests/uninorm/test-u8-nfd.c: Likewise.
10255         * tests/uninorm/test-u8-nfkc.c: Likewise.
10256         * tests/uninorm/test-u8-nfkd.c: Likewise.
10257         * tests/uninorm/test-u16-nfc.c: Likewise.
10258         * tests/uninorm/test-u16-nfd.c: Likewise.
10259         * tests/uninorm/test-u16-nfkc.c: Likewise.
10260         * tests/uninorm/test-u16-nfkd.c: Likewise.
10261         * tests/uninorm/test-u32-nfc.c: Likewise.
10262         * tests/uninorm/test-u32-nfc-big.c: Likewise.
10263         * tests/uninorm/test-u32-nfd.c: Likewise.
10264         * tests/uninorm/test-u32-nfd-big.c: Likewise.
10265         * tests/uninorm/test-u32-nfkc.c: Likewise.
10266         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
10267         * tests/uninorm/test-u32-nfkd.c: Likewise.
10268         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
10269         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10270
10271 2010-03-27  Bruno Haible  <bruno@clisp.org>
10272
10273         Distinguish two kinds of module indicators.
10274         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
10275         gl_MODULE_INDICATOR.
10276         (gl_MODULE_INDICATOR): New macro.
10277         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10278         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
10279         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10280         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10281         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10282         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10283         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10284         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10285         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10286         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10287         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10288         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10290         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10291         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10292         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10293         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10294         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10295         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10296         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10297         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10298         * modules/cloexec (configure.ac): Likewise.
10299         * modules/getopt-gnu (configure.ac): Likewise.
10300         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10301         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10302         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10303         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10304
10305 2010-03-27  Bruno Haible  <bruno@clisp.org>
10306
10307         New module description field 'Comment'.
10308         * gnulib-tool: New option --extract-comment.
10309         (func_usage): Document it.
10310         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10311         (func_get_comment): New function.
10312         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10313
10314 2010-03-27  Bruno Haible  <bruno@clisp.org>
10315
10316         Addendum to 2010-02-07 commit.
10317         * gnulib-tool (func_usage): Document --extract-applicability option.
10318
10319 2010-03-27  Bruno Haible  <bruno@clisp.org>
10320
10321         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10322         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10323         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10324         rather than link errors.
10325
10326 2010-03-27  Bruno Haible  <bruno@clisp.org>
10327
10328         Avoid side effects from tests-related modules on the compilation of lib.
10329         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10330         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10331         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10332         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10333         macro.
10334         (func_import): Define a witness macro. Assign it a value that depends
10335         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10336         tests-related modules.
10337         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10338         Reported by Jim Meyering.
10339
10340 2010-03-27  Bruno Haible  <bruno@clisp.org>
10341
10342         Factorize common .m4 code.
10343         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10344         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10345         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10346         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10347         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10348         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10349         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10350         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10351         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10352         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10353         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10354         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10355         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10356         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10357         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10358         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10359         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10360         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10361         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10362         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10363         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10364         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10365         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10366         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10367         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10368         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10369         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10370         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10371         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10372         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10373         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10374         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10375
10376 2010-03-27  Bruno Haible  <bruno@clisp.org>
10377
10378         Fix a compilation error on Cygwin with g++ >= 4.3.
10379         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10380         if it is undefined or if we alias it to chmod.
10381         (lstat): Don't warn about the use of this function if it is undefined
10382         or if we alias it to stat.
10383         Reported by Simon Josefsson.
10384
10385 2010-03-27  Bruno Haible  <bruno@clisp.org>
10386
10387         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10388         * modules/getlogin (configure.ac): Update.
10389
10390         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10391         * modules/getlogin_r (configure.ac): Update.
10392
10393         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10394         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10395         * modules/inet_ntop (configure.ac): Update.
10396
10397         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10398         * modules/inet_pton (configure.ac): Update.
10399
10400         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10401         * modules/mbslen (configure.ac): Update.
10402
10403         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10404         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10405         * modules/forkpty (configure.ac): Update.
10406         * modules/openpty (configure.ac): Update.
10407
10408 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10409
10410         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10411         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10412
10413 2010-03-25  Eric Blake  <eblake@redhat.com>
10414
10415         maint: use pragma consistently across replacement headers
10416         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10417         * lib/dirent.in.h (system_header): Likewise.
10418         * lib/errno.in.h (system_header): Likewise.
10419         * lib/float.in.h (system_header): Likewise.
10420         * lib/getopt.in.h (system_header): Likewise.
10421         * lib/iconv.in.h (system_header): Likewise.
10422         * lib/inttypes.in.h (system_header): Likewise.
10423         * lib/langinfo.in.h (system_header): Likewise.
10424         * lib/locale.in.h (system_header): Likewise.
10425         * lib/math.in.h (system_header): Likewise.
10426         * lib/netdb.in.h (system_header): Likewise.
10427         * lib/netinet_in.in.h (system_header): Likewise.
10428         * lib/pty.in.h (system_header): Likewise.
10429         * lib/sched.in.h (system_header): Likewise.
10430         * lib/se-selinux.in.h (system_header): Likewise.
10431         * lib/search.in.h (system_header): Likewise.
10432         * lib/spawn.in.h (system_header): Likewise.
10433         * lib/stdarg.in.h (system_header): Likewise.
10434         * lib/stdint.in.h (system_header): Likewise.
10435         * lib/string.in.h (system_header): Likewise.
10436         * lib/strings.in.h (system_header): Likewise.
10437         * lib/sys_file.in.h (system_header): Likewise.
10438         * lib/sys_ioctl.in.h (system_header): Likewise.
10439         * lib/sys_socket.in.h (system_header): Likewise.
10440         * lib/sys_times.in.h (system_header): Likewise.
10441         * lib/sys_utsname.in.h (system_header): Likewise.
10442         * lib/sys_wait.in.h (system_header): Likewise.
10443         * lib/sysexits.in.h (system_header): Likewise.
10444         * lib/unistd.in.h (system_header): Likewise.
10445         * lib/wctype.in.h (system_header): Likewise.
10446
10447         arpa/inet: fix mingw compilation warning
10448         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10449         Reported by Matthew Bolte.
10450
10451 2010-03-25  Bruno Haible  <bruno@clisp.org>
10452
10453         Avoid collision between gnulib wrapper and libintl wrapper.
10454         * lib/printf.c (printf): Don't define if a printf wrapper is already
10455         defined in intl/printf.c.
10456         Reported by Michel Boaventura <michel@michelboaventura.com>.
10457
10458 2010-03-25  Bruno Haible  <bruno@clisp.org>
10459
10460         Use ANSI C.
10461         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10462
10463 2010-03-25  Bruno Haible  <bruno@clisp.org>
10464
10465         Minor formatting changes.
10466         * lib/acosl.c: Insert space before function argument list.
10467         * lib/argz.c: Likewise.
10468         * lib/asinl.c: Likewise.
10469         * lib/expl.c: Likewise.
10470         * lib/gen-uni-tables.c: Likewise.
10471         * lib/gettext.h: Likewise.
10472         * lib/glthread/lock.h: Likewise.
10473         * lib/tanl.c: Likewise.
10474         * lib/uniname/uniname.c: Likewise.
10475         * tests/test-idpriv-drop.c: Likewise.
10476         * tests/test-idpriv-droptemp.c: Likewise.
10477         * tests/test-lock.c: Likewise.
10478         * tests/test-tls.c: Likewise.
10479         * lib/argp-help.c: Insert space before function-like macro argument
10480         list.
10481         * lib/memcmp.c: Likewise.
10482         * tests/test-base64.c: Likewise.
10483         * lib/localename.c: Insert space before sizeof's argument list.
10484         * lib/safe-alloc.h: Likewise.
10485         * lib/file-set.h: Insert space before macro argument list.
10486         * tests/test-argp.c: Likewise.
10487         * lib/argp-namefrob.h: Insert space before function parameter list.
10488         * lib/getaddrinfo.c: Likewise.
10489         * lib/netdb.in.h: Likewise.
10490         * lib/parse-duration.h: Likewise.
10491         * lib/parse-duration.c: Likewise.
10492         * lib/poll.c: Likewise.
10493         * lib/select.c: Likewise.
10494         * lib/trim.h: Likewise.
10495         * tests/test-usleep.c: Likewise.
10496         * lib/ldexpl.c: Insert space before function parameter list and before
10497         function argument list.
10498         * lib/logl.c: Likewise.
10499         * lib/sqrtl.c: Likewise.
10500         * lib/trim.c: Likewise.
10501         * lib/cosl.c: Use GNU style indentation. Insert space before function
10502         argument list.
10503         * lib/sinl.c: Likewise.
10504         * lib/tsearch.c: Insert space after 'for'.
10505         Reported by Jim Meyering.
10506
10507 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10508
10509         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10510         config header before grepping, as it's not present before
10511         autoreconf/configure are run.  Reported by Simon Josefsson.
10512
10513 2010-03-23  Bruno Haible  <bruno@clisp.org>
10514
10515         pt_chown: Make it work with automake < 1.11.
10516         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10517         Reported by Simon Josefsson.
10518
10519 2010-03-23  Bruno Haible  <bruno@clisp.org>
10520
10521         pt_chown: Don't depend on GPLed modules.
10522         * lib/pt_chown.c: Don't include idpriv.h.
10523         (main): Don't drop privileges.
10524         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10525         Reported by Simon Josefsson.
10526
10527 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10528
10529         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10530         suggestions from karl@freefriends.org (Karl Berry).
10531
10532 2010-03-22  Eric Blake  <eblake@redhat.com>
10533
10534         gethostname: further tweaks
10535         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10536         are overriding gethostname.
10537         Suggested by Bruno Haible.
10538
10539 2010-03-21  Bruno Haible  <bruno@clisp.org>
10540
10541         Fix comments.
10542         * lib/forkpty.c (rpl_forkpty): Fix comment.
10543         * lib/openpty.c (rpl_openpty): Likewise.
10544         Reported by Eric Blake.
10545
10546 2010-03-22  Eric Blake  <eblake@redhat.com>
10547
10548         gethostname: fix build on mingw
10549         * lib/unistd.in.h (includes): Work around fact that mingw
10550         <winsock2.h> re-includes <unistd.h>, by avoiding any
10551         redeclarations if we are being included by <winsock2.h>.
10552         Reported by Matthias Bolte.
10553
10554 2010-03-21  Bruno Haible  <bruno@clisp.org>
10555
10556         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10557         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10558         modifications.
10559         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10560         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10561         provide the replacement.
10562         * modules/forkpty (Depends-on): Add openpty, login_tty.
10563         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10564         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10565         * doc/glibc-functions/forkpty.texi: More supported platforms.
10566         * config/srclist.txt: Add forkpty.c (commented).
10567
10568 2010-03-21  Bruno Haible  <bruno@clisp.org>
10569
10570         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10571         (Makefile.am): Verify that PTY_LIB is defined.
10572
10573         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10574
10575 2010-03-21  Bruno Haible  <bruno@clisp.org>
10576
10577         Tests for module 'login_tty'.
10578         * modules/login_tty-tests: New file.
10579         * tests/test-login_tty.c: New file.
10580
10581         New module 'login_tty'.
10582         * lib/login_tty.c: New file.
10583         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10584         * modules/login_tty: New file.
10585         * doc/glibc-functions/login_tty.texi: Mention the new module.
10586
10587 2010-03-21  Bruno Haible  <bruno@clisp.org>
10588
10589         login_tty: Documentation.
10590         * doc/glibc-functions/login_tty.texi: New file.
10591         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10592
10593 2010-03-21  Bruno Haible  <bruno@clisp.org>
10594
10595         pty: Consistent macro naming.
10596         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10597         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10598         * modules/pty (configure.ac): Update.
10599
10600 2010-03-21  Bruno Haible  <bruno@clisp.org>
10601
10602         Tests for openpty: Make stricter.
10603         * tests/test-openpty.c (main): Add test of canonical processing and
10604         erase.
10605         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10606
10607         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10608         * lib/openpty.c (openpty): New replacement function.
10609         * lib/pty.in.h: Include <termios.h>.
10610         (openpty): Update declaration. Add comments.
10611         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10612         is not declared, arrange to provide the replacement. Check for _getpty
10613         and posix_openpt.
10614         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10615         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10616         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10617         * modules/pty-tests (test_pty_c___LDADD): New variable.
10618         * doc/glibc-functions/openpty.texi: More supported platforms.
10619
10620 2010-03-21  Bruno Haible  <bruno@clisp.org>
10621
10622         setenv: Tweaks.
10623         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10624         the test program.
10625         * doc/posix-functions/setenv.texi: Update platforms list.
10626
10627 2010-03-21  Bruno Haible  <bruno@clisp.org>
10628
10629         New module 'unlockpt'.
10630         * lib/unlockpt.c: New file, from glibc with modifications.
10631         * m4/unlockpt.m4: New file.
10632         * modules/unlockpt: New file.
10633         * lib/stdlib.in.h (unlockpt): New declaration.
10634         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10635         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10636         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10637         HAVE_UNLOCKPT.
10638         * doc/posix-functions/unlockpt.texi: Mention the new module.
10639         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10640         * config/srclist.txt: Add unlockpt.c (commented).
10641
10642 2010-03-21  Jim Meyering  <meyering@redhat.com>
10643
10644         maint.mk: prohibit inclusion of "intprops.h" without use
10645         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10646
10647 2010-03-21  Bruno Haible  <bruno@clisp.org>
10648
10649         New module 'grantpt'.
10650         * lib/grantpt.c: New file, from glibc with modifications.
10651         * m4/grantpt.m4: New file.
10652         * modules/grantpt: New file.
10653         * lib/stdlib.in.h (grantpt): New declaration.
10654         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10655         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10656         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10657         HAVE_GRANTPT.
10658         * doc/posix-functions/grantpt.texi: Mention the new module.
10659         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10660         * config/srclist.txt: Add grantpt.c (commented).
10661
10662 2010-03-21  Bruno Haible  <bruno@clisp.org>
10663
10664         New module 'pt_chown'.
10665         * lib/pt_chown.c: New file, from glibc with modifications.
10666         * lib/pty-private.h: New file, from glibc with modifications.
10667         * modules/pt_chown: New file.
10668         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10669
10670 2010-03-21  Bruno Haible  <bruno@clisp.org>
10671
10672         Tests for module 'ptsname'.
10673         * modules/ptsname-tests: New file.
10674         * tests/test-ptsname.c: New file.
10675
10676         New module 'ptsname'.
10677         * lib/ptsname.c: New file, from glibc with modifications.
10678         * m4/ptsname.m4: New file.
10679         * modules/ptsname: New file.
10680         * lib/stdlib.in.h (ptsname): New declaration.
10681         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10682         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10683         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10684         HAVE_PTSNAME.
10685         * doc/posix-functions/ptsname.texi: Mention the new module.
10686         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10687         * config/srclist.txt: Add ptsname.c (commented).
10688
10689 2010-03-21  Bruno Haible  <bruno@clisp.org>
10690
10691         Tests for module 'ttyname_r'.
10692         * modules/ttyname_r-tests: New file.
10693         * tests/test-ttyname_r.c: New file.
10694
10695         New module 'ttyname_r'.
10696         * lib/ttyname_r.c: New file.
10697         * m4/ttyname_r.m4: New file.
10698         * modules/ttyname_r: New file.
10699         * lib/unistd.in.h (ttyname_r): New declaration.
10700         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10701         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10702         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10703         HAVE_TTYNAME_R.
10704         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10705         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10706
10707 2010-03-20  Bruno Haible  <bruno@clisp.org>
10708
10709         signal: Undefine macro definitions in C++ mode.
10710         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10711         sigfillset): Undefine macro definitions from the system header in C++
10712         mode.
10713         Reported by John W. Eaton <jwe@gnu.org>.
10714
10715 2010-03-20  Bruno Haible  <bruno@clisp.org>
10716
10717         Ensure no #include statements inside extern "C" { ... }.
10718         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10719         contain #include statements.
10720         * lib/time.in.h: Likewise.
10721
10722 2010-03-20  Bruno Haible  <bruno@clisp.org>
10723
10724         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10725         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10726         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10727         Reported by John W. Eaton <jwe@gnu.org>.
10728
10729 2010-03-20  Bruno Haible  <bruno@clisp.org>
10730
10731         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10732         Reported by Jim Meyering.
10733
10734 2010-03-20  Bruno Haible  <bruno@clisp.org>
10735
10736         pipe: Set errno upon failure.
10737         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10738         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10739         errno value in error message.
10740
10741 2010-03-20  Bruno Haible  <bruno@clisp.org>
10742             Jim Meyering  <meyering@redhat.com>
10743
10744         lchown: Avoid "unused variable" warning.
10745         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10746
10747 2010-03-20  Bruno Haible  <bruno@clisp.org>
10748
10749         Work around unlink() bug on MacOS X 10.5.6.
10750         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10751         attempting to unlink a parent directory.
10752         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10753         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10754         activate for the replacement function.
10755         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10756
10757 2010-03-20  Bruno Haible  <bruno@clisp.org>
10758
10759         Fix link errors on Solaris 8.
10760         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10761         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10762
10763 2010-03-19  Jim Meyering  <meyering@redhat.com>
10764
10765         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10766         The _LIBC implementation of build_range_exp correctly honors the
10767         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10768         However, the non-_LIBC implementation would ignore that syntax-bit
10769         flag and return REG_ERANGE unconditionally.
10770         This change makes it honor that flag.
10771         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10772         Make two pointer parameters "const".
10773         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10774         (parse_bracket_exp): Update caller.
10775
10776         regex.m4: correct the reversed range endpoint ([b-a]) test
10777         * m4/regex.m4: When requiring that [b-a] evoke failure,
10778         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10779         test pass once again for x86-based systems.
10780
10781 2010-03-19  Bruno Haible  <bruno@clisp.org>
10782
10783         scandir: Fix link error on Solaris 8.
10784         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10785         macros.
10786
10787 2010-03-19  Bruno Haible  <bruno@clisp.org>
10788
10789         getusershell: Fix documentation.
10790         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10791         module.
10792         * doc/glibc-functions/setusershell.texi: Likewise.
10793
10794         getusershell: Provide declaration, missing on Solaris 9.
10795         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10796         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10797         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10798         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10800         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10801         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10802         HAVE_GETUSERSHELL.
10803         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10804
10805 2010-03-19  Bruno Haible  <bruno@clisp.org>
10806
10807         wctype: Provide iswblank function.
10808         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10809         exists and is fine.
10810         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10811         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10812         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10813         * doc/posix-functions/iswblank.texi: Update.
10814
10815 2010-03-19  Bruno Haible  <bruno@clisp.org>
10816
10817         Tests of module 'pty' in C++ mode.
10818         * modules/pty-tests: New file.
10819         * tests/test-pty-c++.cc: New file.
10820         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10821
10822 2010-03-19  Eric Blake  <eblake@redhat.com>
10823
10824         logb: fix documentation
10825         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10826         1.5 declaration bug.
10827
10828         forkpty, openpty: prefer glibc's const-safe prototype
10829         * lib/forkpty.c (rpl_forkpty): New file.
10830         * lib/openpty.c (rpl_openpty): Likewise.
10831         * modules/forkpty (Files): Distribute it.
10832         * modules/openpty (Files): Likewise.
10833         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10834         check...
10835         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10836         replacement for for non-const BSD signature.
10837         * modules/pty (Makefile.am): Substitute witnesses.
10838         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10839         * tests/test-forkpty.c: Update signature check.
10840         * tests/test-openpty.c: Likewise.
10841         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10842         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10843
10844         forkpty, openpty: split functions into new modules
10845         * modules/pty (Makefile.am): Substitute new witnesses.
10846         (Libraries): Move library detection...
10847         * modules/forkpty: ...into new module.
10848         * modules/openpty: Another new module.
10849         * modules/pty-tests: Rename and split...
10850         * modules/forkpty-tests: ...to this...
10851         * modules/openpty-tests: ...and this.
10852         * tests/test-pty.c: Rename and split...
10853         * tests/test-forkpty.c: ...to this...
10854         * tests/test-openpty.c: ...and this.
10855         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10856         (gl_PTY): Split library searching...
10857         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10858         (gl_FORKPTY, gl_OPENPTY): New macros.
10859         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10860         * NEWS: Mention the split.
10861         * MODULES.html.sh (Misc): Document the modules.
10862         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10863         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10864
10865         pty: improve replacement header
10866         * lib/pty.in.h: New file.
10867         * modules/pty (Files): Ship it.
10868         (Makefile.am): Always build replacement.
10869         * m4/pty.m4: Rename...
10870         * m4/pty_h.m4: ...to this.
10871         (gl_PTY): Modernize setting of witness macros; update check of
10872         forkpty to take proper advantage of cache.
10873         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10874
10875         getopt: avoid compiler warning
10876         * lib/getopt.c (attribute_hidden): Remove unused macro.
10877
10878 2010-03-18  Bruno Haible  <bruno@clisp.org>
10879
10880         Fix link errors on Solaris 8.
10881         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10882         * modules/search-tests (test_search_c___LDADD): Likewise.
10883         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10884         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10885         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10886         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10887         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10888         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10889         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10890
10891 2010-03-18  Bruno Haible  <bruno@clisp.org>
10892
10893         Fix bug introduced on 2010-03-14.
10894         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10895         (gl_SPAWN_H): Require it.
10896         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10897         Reported by Simon Josefsson.
10898
10899 2010-03-18  Bruno Haible  <bruno@clisp.org>
10900
10901         Fix typo introduced on 2009-12-31.
10902         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10903         posix_spawn_file_actions_adddup2.
10904
10905 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10906         and Eric Blake  <eblake@redhat.com>
10907
10908         test-vc-list-files-git: make more robust
10909         * tests/test-vc-list-files-git.sh: Unset problematic environment
10910         variables.  Chain commands together.
10911
10912 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10913
10914         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10915         `AC_CHECK_DECL' invocation.
10916
10917 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10918
10919         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10920         appears before executable statements. Suggested by Petr Sumbera
10921         <Petr.Sumbera@Sun.COM>.
10922
10923 2010-03-14  Bruno Haible  <bruno@clisp.org>
10924
10925         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10926         portability problems. Instead use a simpler test.
10927         (main): Check that invalid arguments are rejected only on Linux.
10928
10929 2010-03-14  Bruno Haible  <bruno@clisp.org>
10930
10931         Fix bug introduced on 2009-12-31.
10932         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10933         gl_PREREQ_SYS_H_WINSOCK2 always.
10934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10935         SYS_SOCKET_H variable.
10936         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10937         Update comments.
10938         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10939         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10940         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10941         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10942         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10943
10944 2010-03-14  Bruno Haible  <bruno@clisp.org>
10945
10946         Fix values returned by sinl, cosl.
10947         * lib/trigl.h: Add specification comments.
10948         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10949         that combines the values from the precomputed table with the values of
10950         the Chebyshev polynomials.
10951
10952 2010-03-14  Bruno Haible  <bruno@clisp.org>
10953
10954         Fix compilation error when modules 'posix_spawn[p]' are not used.
10955         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10956         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10957
10958 2010-03-14  Bruno Haible  <bruno@clisp.org>
10959
10960         Fix compilation error on mingw when module 'time_r' is not used.
10961         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10962         is 1.
10963         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10964         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10965         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10966         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10967
10968 2010-03-14  Bruno Haible  <bruno@clisp.org>
10969
10970         Fix compilation error with Sun C.
10971         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10972         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10973         instead of GCC specific ULONG_LONG_MAX.
10974         * lib/xstrtoll.c: Likewise.
10975         * lib/xstrtoull.c: Likewise.
10976
10977 2010-03-13  Bruno Haible  <bruno@clisp.org>
10978
10979         Allow the user to disable C++ code and tests.
10980         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10981         (gl_PROG_ANSI_CXX): Require it.
10982
10983 2010-03-13  Bruno Haible  <bruno@clisp.org>
10984
10985         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10986         cases.
10987
10988 2010-03-13  Bruno Haible  <bruno@clisp.org>
10989
10990         Test that gnulib does not break the standard C++ headers.
10991         * tests/test-locale-c++2.cc: New file.
10992         * modules/locale-tests (Files): Add it.
10993         (Makefile.am): Compile it for test-locale-c++.
10994         * tests/test-math-c++2.cc: New file.
10995         * modules/math-tests (Files): Add it.
10996         (Makefile.am): Compile it for test-math-c++.
10997         * tests/test-signal-c++2.cc: New file.
10998         * modules/signal-tests (Files): Add it.
10999         (Makefile.am): Compile it for test-signal-c++.
11000         * tests/test-stdio-c++2.cc: New file.
11001         * modules/stdio-tests (Files): Add it.
11002         (Makefile.am): Compile it for test-stdio-c++.
11003         * tests/test-stdlib-c++2.cc: New file.
11004         * modules/stdlib-tests (Files): Add it.
11005         (Makefile.am): Compile it for test-stdlib-c++.
11006         * tests/test-string-c++2.cc: New file.
11007         * modules/string-tests (Files): Add it.
11008         (Makefile.am): Compile it for test-string-c++.
11009         * tests/test-time-c++2.cc: New file.
11010         * modules/time-tests (Files): Add it.
11011         (Makefile.am): Compile it for test-time-c++.
11012         Reported by John W. Eaton <jwe@gnu.org>.
11013
11014 2010-03-13  Bruno Haible  <bruno@clisp.org>
11015
11016         * gnulib-tool (func_usage): Clarify which options are available for
11017         --create-testdir and --create-megatestdir.
11018
11019 2010-03-13  Bruno Haible  <bruno@clisp.org>
11020
11021         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
11022         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
11023         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
11024         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11025         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
11026         when appropriate.
11027         Reported by Jim Meyering.
11028
11029 2010-03-12  Simon Josefsson  <simon@josefsson.org>
11030
11031         * gnulib-tool (func_import): Explain origin of code.
11032
11033 2010-03-12  Bruno Haible  <bruno@clisp.org>
11034
11035         Fix problem with automake's definition of CXXLINK.
11036         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
11037         Reported by Simon Josefsson and Ludovic Courtès.
11038
11039 2010-03-12  Bruno Haible  <bruno@clisp.org>
11040
11041         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
11042         stable releases.
11043
11044 2010-03-11  Bruno Haible  <bruno@clisp.org>
11045
11046         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
11047         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
11048         whether the system provides one variant or multiple variants of the
11049         function.
11050         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
11051         C++ compilers.
11052         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
11053         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
11054         Reported by Jim Meyering.
11055
11056 2010-03-09  Simon Josefsson  <simon@josefsson.org>
11057
11058         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
11059
11060 2010-03-08  Bruno Haible  <bruno@clisp.org>
11061
11062         gnulib-tool: Add support for --libtool in --create-testdir.
11063         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
11064         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
11065
11066 2010-03-08  Eric Blake  <eblake@redhat.com>
11067
11068         gnulib-tool.texi: mention possibility of git submodule
11069         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
11070         submodules.
11071         * doc/.gitignore: Ignore another generated file.
11072
11073 2010-03-08  Karl Berry  <karl@gnu.org>
11074
11075         * doc/gnulib-tool.texi (VCS Issues): Mention third option
11076         of committing gnulib files while skipping others.
11077
11078 2010-03-07  Bruno Haible  <bruno@clisp.org>
11079
11080         Tests of module 'wctype' in C++ mode.
11081         * tests/test-wctype-c++.cc: New file.
11082         * modules/wctype-tests (Files): Add it and tests/signature.h.
11083         (Depends-on): Add ansi-c++-opt.
11084         (Makefile.am): Arrange to compile and run test-wctype-c++.
11085
11086         Tests of module 'wchar' in C++ mode.
11087         * tests/test-wchar-c++.cc: New file.
11088         * modules/wchar-tests (Files): Add it and tests/signature.h.
11089         (Depends-on): Add ansi-c++-opt.
11090         (Makefile.am): Arrange to compile and run test-wchar-c++.
11091         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
11092         gl_MODULE_INDICATOR.
11093
11094         Tests of module 'unistd' in C++ mode.
11095         * tests/test-unistd-c++.cc: New file.
11096         * modules/unistd-tests (Files): Add it and tests/signature.h.
11097         (Depends-on): Add ansi-c++-opt.
11098         (Makefile.am): Arrange to compile and run test-unistd-c++.
11099         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
11100         gl_MODULE_INDICATOR.
11101
11102         Tests of module 'time' in C++ mode.
11103         * tests/test-time-c++.cc: New file.
11104         * modules/time-tests (Files): Add it and tests/signature.h.
11105         (Depends-on): Add ansi-c++-opt.
11106         (Makefile.am): Arrange to compile and run test-time-c++.
11107         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11108
11109         Tests of module 'sys_time' in C++ mode.
11110         * tests/test-sys_time-c++.cc: New file.
11111         * modules/sys_time-tests (Files): Add it and tests/signature.h.
11112         (Depends-on): Add ansi-c++-opt.
11113         (Makefile.am): Arrange to compile and run test-sys_time-c++.
11114         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
11115         gl_MODULE_INDICATOR.
11116
11117         Tests of module 'sys_stat' in C++ mode.
11118         * tests/test-sys_stat-c++.cc: New file.
11119         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
11120         (Depends-on): Add ansi-c++-opt.
11121         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
11122         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
11123         gl_MODULE_INDICATOR.
11124
11125         Tests of module 'sys_socket' in C++ mode.
11126         * tests/test-sys_socket-c++.cc: New file.
11127         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
11128         (Depends-on): Add ansi-c++-opt.
11129         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
11130         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
11131         gl_MODULE_INDICATOR.
11132
11133         Tests of module 'sys_select' in C++ mode.
11134         * tests/test-sys_select-c++.cc: New file.
11135         * modules/sys_select-tests (Files): Add it and tests/signature.h.
11136         (Depends-on): Add ansi-c++-opt.
11137         (Makefile.am): Arrange to compile and run test-sys_select-c++.
11138         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
11139         gl_MODULE_INDICATOR.
11140
11141         Tests of module 'sys_ioctl' in C++ mode.
11142         * tests/test-sys_ioctl-c++.cc: New file.
11143         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
11144         (Depends-on): Add ansi-c++-opt.
11145         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
11146         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
11147         gl_MODULE_INDICATOR.
11148
11149         Tests of module 'string' in C++ mode.
11150         * tests/test-string-c++.cc: New file.
11151         * modules/string-tests (Files): Add it and tests/signature.h.
11152         (Depends-on): Add ansi-c++-opt.
11153         (Makefile.am): Arrange to compile and run test-string-c++.
11154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
11155         gl_MODULE_INDICATOR.
11156
11157         Tests of module 'stdlib' in C++ mode.
11158         * tests/test-stdlib-c++.cc: New file.
11159         * modules/stdlib-tests (Files): Add it and tests/signature.h.
11160         (Depends-on): Add ansi-c++-opt.
11161         (Makefile.am): Arrange to compile and run test-stdlib-c++.
11162         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
11163         gl_MODULE_INDICATOR.
11164
11165         Tests of module 'stdio' in C++ mode.
11166         * tests/test-stdio-c++.cc: New file.
11167         * modules/stdio-tests (Files): Add it and tests/signature.h.
11168         (Depends-on): Add ansi-c++-opt.
11169         (Makefile.am): Arrange to compile and run test-stdio-c++.
11170         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
11171         gl_MODULE_INDICATOR.
11172
11173         Tests of module 'spawn' in C++ mode.
11174         * tests/test-spawn-c++.cc: New file.
11175         * modules/spawn-tests (Files): Add it and tests/signature.h.
11176         (Depends-on): Add ansi-c++-opt.
11177         (Makefile.am): Arrange to compile and run test-spawn-c++.
11178         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
11179         gl_MODULE_INDICATOR.
11180
11181         Tests of module 'signal' in C++ mode.
11182         * tests/test-signal-c++.cc: New file.
11183         * modules/signal-tests (Files): Add it and tests/signature.h.
11184         (Depends-on): Add ansi-c++-opt.
11185         (Makefile.am): Arrange to compile and run test-signal-c++.
11186         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
11187         gl_MODULE_INDICATOR.
11188
11189         Tests of module 'search' in C++ mode.
11190         * tests/test-search-c++.cc: New file.
11191         * modules/search-tests (Files): Add it and tests/signature.h.
11192         (Depends-on): Add ansi-c++-opt.
11193         (Makefile.am): Arrange to compile and run test-search-c++.
11194         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
11195         gl_MODULE_INDICATOR.
11196
11197         Tests of module 'math' in C++ mode.
11198         * tests/test-math-c++.cc: New file.
11199         * modules/math-tests (Files): Add it and tests/signature.h.
11200         (Depends-on): Add ansi-c++-opt.
11201         (Makefile.am): Arrange to compile and run test-math-c++.
11202         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11203
11204         Tests of module 'locale' in C++ mode.
11205         * tests/test-locale-c++.cc: New file.
11206         * modules/locale-tests (Files): Add it and tests/signature.h.
11207         (Depends-on): Add ansi-c++-opt.
11208         (Makefile.am): Arrange to compile and run test-locale-c++.
11209         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
11210         gl_MODULE_INDICATOR.
11211
11212         Tests of module 'langinfo' in C++ mode.
11213         * tests/test-langinfo-c++.cc: New file.
11214         * modules/langinfo-tests (Files): Add it and tests/signature.h.
11215         (Depends-on): Add ansi-c++-opt.
11216         (Makefile.am): Arrange to compile and run test-langinfo-c++.
11217         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
11218         gl_MODULE_INDICATOR.
11219
11220         Tests of module 'iconv-h' in C++ mode.
11221         * tests/test-iconv-h-c++.cc: New file.
11222         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
11223         (Depends-on): Add ansi-c++-opt.
11224         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
11225
11226         Tests of module 'glob' in C++ mode.
11227         * tests/test-glob-c++.cc: New file.
11228         * modules/glob-tests (Files): Add it.
11229         (Depends-on): Add ansi-c++-opt.
11230         (Makefile.am): Arrange to compile and run test-glob-c++.
11231
11232         Tests of module 'fcntl-h' in C++ mode.
11233         * tests/test-fcntl-h-c++.cc: New file.
11234         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
11235         (Depends-on): Add ansi-c++-opt.
11236         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
11237         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
11238         gl_MODULE_INDICATOR.
11239
11240         Tests of module 'dirent' in C++ mode.
11241         * tests/test-dirent-c++.cc: New file.
11242         * modules/dirent-tests (Files): Add it and tests/signature.h.
11243         (Depends-on): Add ansi-c++-opt.
11244         (Makefile.am): Arrange to compile and run test-dirent-c++.
11245         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11246         gl_MODULE_INDICATOR.
11247
11248         New module 'ansi-c++-opt'.
11249         * modules/ansi-c++-opt: New file.
11250         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
11251
11252         Document C++ namespace mode.
11253         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
11254
11255         wctype: Avoid #define replacements in C++ mode.
11256         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
11257         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
11258         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
11259         In C++, define a namespaced alias symbol.
11260         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
11261         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
11262         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
11263         rule.
11264
11265         wchar: Avoid #define replacements in C++ mode.
11266         * lib/wchar.in.h: Include c++defs.h.
11267         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
11268         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
11269         symbol.
11270         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
11271         * modules/wchar (Depends-on): Add c++defs.
11272         (Makefile.am): Update wchar.h rule.
11273
11274         unistd: Avoid #define replacements in C++ mode.
11275         * lib/unistd.in.h: Include c++defs.h.
11276         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
11277         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
11278         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
11279         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
11280         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11281         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11282         symbol.
11283         (environ): Update.
11284         * modules/unistd (Depends-on): Add c++defs.
11285         (Makefile.am): Update unistd.h rule.
11286
11287         time: Avoid #define replacements in C++ mode.
11288         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11289         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11290         define a namespaced alias symbol.
11291         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11292         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11293         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11294         * modules/time (Depends-on): Add c++defs, warn-on-use.
11295         (Makefile.am): Update time.h rule.
11296         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11297         * modules/nanosleep (configure.ac): Likewise.
11298         * modules/strptime (configure.ac): Likewise.
11299         * modules/timegm (configure.ac): Likewise.
11300
11301         sys_time: Avoid #define replacements in C++ mode.
11302         * lib/sys_time.in.h: Include c++defs.h.
11303         (gettimeofday): In C++, define a namespaced alias symbol.
11304         * modules/sys_time (Depends-on): Add c++defs.
11305         (Makefile.am): Update sys/time.h rule.
11306
11307         sys_stat: Avoid #define replacements in C++ mode.
11308         * lib/sys_stat.in.h: Include c++defs.h.
11309         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11310         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11311         namespaced alias symbol.
11312         In C++, define a namespaced alias symbol.
11313         * modules/sys_stat (Depends-on): Add c++defs.
11314         (Makefile.am): Update sys/stat.h rule.
11315
11316         sys_socket: Avoid #define replacements in C++ mode.
11317         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11318         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11319         definitions also when the system has a <sys/socket.h>.
11320         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11321         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11322         In C++, define a namespaced alias symbol.
11323         * modules/sys_socket (Depends-on): Add c++defs.
11324         (Makefile.am): Update sys/socket.h rule.
11325
11326         sys_select: Avoid #define replacements in C++ mode.
11327         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11328         definitions also when the system has a <sys/select.h>.
11329         (select): In C++, define a namespaced alias symbol.
11330         * modules/sys_select (Depends-on): Add c++defs.
11331         (Makefile.am): Update sys/select.h rule.
11332
11333         sys_ioctl: Avoid #define replacements in C++ mode.
11334         * lib/sys_ioctl.in.h: Include c++defs.h.
11335         (ioctl): In C++, define a namespaced alias symbol.
11336         * modules/sys_ioctl (Depends-on): Add c++defs.
11337         (Makefile.am): Update sys/ioctl.h rule.
11338
11339         string: Avoid #define replacements in C++ mode.
11340         * lib/string.in.h: Include c++defs.h.
11341         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11342         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11343         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11344         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11345         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11346         * modules/string (Depends-on): Add c++defs.
11347         (Makefile.am): Update string.h rule.
11348
11349         stdlib: Avoid #define replacements in C++ mode.
11350         * lib/stdlib.in.h: Include c++defs.h.
11351         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11352         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11353         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11354         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11355         symbol.
11356         * modules/stdlib (Depends-on): Add c++defs.
11357         (Makefile.am): Update stdlib.h rule.
11358
11359         stdio: Avoid #define replacements in C++ mode.
11360         * lib/stdio.in.h: Include c++defs.h.
11361         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11362         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11363         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11364         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11365         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11366         namespaced alias symbol.
11367         * modules/stdio (Depends-on): Add c++defs.
11368         (Makefile.am): Update stdio.h rule.
11369
11370         spawn: Avoid #define replacements in C++ mode.
11371         * lib/spawn.in.h: Include c++defs.h.
11372         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11373         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11374         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11375         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11376         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11377         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11378         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11379         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11380         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11381         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11382         In C++, define a namespaced alias symbol.
11383         * modules/spawn (Depends-on): Add c++defs.
11384         (Makefile.am): Update spawn.h rule.
11385
11386         signal: Avoid #define replacements in C++ mode.
11387         * lib/signal.in.h: Include c++defs.h.
11388         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11389         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11390         namespaced alias symbol.
11391         * modules/signal (Depends-on): Add c++defs.
11392         (Makefile.am): Update signal.h rule.
11393
11394         search: Avoid #define replacements in C++ mode.
11395         * lib/search.in.h: Include c++defs.h.
11396         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11397         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11398         symbol.
11399         * modules/search (Depends-on): Add c++defs.
11400         (Makefile.am): Update search.h rule.
11401
11402         math: Avoid #define replacements in C++ mode.
11403         * lib/math.in.h: Include c++defs.h.
11404         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11405         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11406         trunc, truncl): In C++, define a namespaced alias symbol.
11407         * modules/math (Depends-on): Add c++defs.
11408         (Makefile.am): Update math.h rule.
11409
11410         locale: Avoid #define replacements in C++ mode.
11411         * lib/locale.in.h: Include c++defs.h.
11412         (duplocale): In C++, define a namespaced alias symbol.
11413         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11414         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11415         * modules/locale (Depends-on): Add c++defs.
11416         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11417
11418         langinfo: Avoid #define replacements in C++ mode.
11419         * lib/langinfo.in.h: Include c++defs.h.
11420         (nl_langinfo): In C++, define a namespaced alias symbol.
11421         * modules/langinfo (Depends-on): Add c++defs.
11422         (Makefile.am): Update langinfo.h rule.
11423
11424         iconv-h: Avoid #define replacements in C++ mode.
11425         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11426         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11427         symbol.
11428         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11429         whenever iconv is present.
11430         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11431         (Makefile.am): Update iconv.h rule.
11432
11433         glob: Avoid #define replacements in C++ mode.
11434         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11435         (_gl_glob_errfunc_fn): New type.
11436         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11437         symbol.
11438         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11439         (Makefile.am): Update glob.h rule.
11440
11441         fcntl-h: Avoid #define replacements in C++ mode.
11442         * lib/fcntl.in.h: Include c++defs.h.
11443         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11444         * modules/fcntl-h (Depends-on): Add c++defs.
11445         (Makefile.am): Update fcntl.h rule.
11446
11447         dirent: Avoid #define replacements in C++ mode.
11448         * lib/dirent.in.h: Include c++defs.h.
11449         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11450         namespaced alias symbol.
11451         (dirfd): Update declaration.
11452         * modules/dirent (Depends-on): Add c++defs.
11453         (Makefile.am): Update dirent.h rule.
11454
11455         ctype: Make it usable in C++ code.
11456         * lib/ctype.in.h: Include c++defs.h.
11457         (isblank): Declare as extern "C".
11458         * modules/ctype (Depends-on): Add c++defs.
11459         (Makefile.am): Update ctype.h rule.
11460
11461         New module 'c++defs'.
11462         * modules/c++defs: New file.
11463         * build-aux/c++defs.h: New file.
11464         Reported by John W. Eaton <jwe@gnu.org>.
11465
11466 2010-03-07  Bruno Haible  <bruno@clisp.org>
11467
11468         logb: Provide missing declaration for Cygwin.
11469         * lib/math.in.h (logb): New declaration.
11470         * m4/logb.m4: New file.
11471         * modules/logb (Files): Add m4/logb.m4.
11472         (Depends-on): Add math.
11473         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11474         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11476         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11477         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11478
11479 2010-03-07  Bruno Haible  <bruno@clisp.org>
11480
11481         Fix test-cond link error.
11482         * tests/test-cond.c: Include <stdio.h>.
11483
11484 2010-03-07  Bruno Haible  <bruno@clisp.org>
11485
11486         Fix test-dirent-safer link error.
11487         * modules/dirent-safer-tests (Makefile.am): Define
11488         test_dirent_safer_LDADD.
11489
11490 2010-03-07  Bruno Haible  <bruno@clisp.org>
11491
11492         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11493         among default module list.
11494
11495 2010-03-07  Bruno Haible  <bruno@clisp.org>
11496
11497         Fix link error on platforms with GNU libiconv.
11498         * modules/unistr/u8-strcoll-tests (Makefile): Define
11499         test_u8_strcoll_LDADD.
11500         * modules/unistr/u16-strcoll-tests (Makefile): Define
11501         test_u16_strcoll_LDADD.
11502         * modules/unistr/u32-strcoll-tests (Makefile): Define
11503         test_u32_strcoll_LDADD.
11504
11505 2010-03-07  Bruno Haible  <bruno@clisp.org>
11506
11507         Use POSIX declarations for socket functions.
11508         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11509         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11510         rpl_sendto): Change declaration to match POSIX.
11511         * lib/connect.c (rpl_connect): Likewise.
11512         * lib/accept.c (rpl_accept): Likewise.
11513         * lib/bind.c (rpl_bind): Likewise.
11514         * lib/getpeername.c (rpl_getpeername): Likewise.
11515         * lib/getsockname.c (rpl_getsockname): Likewise.
11516         * lib/recv.c (rpl_recv): Likewise.
11517         * lib/send.c (rpl_send): Likewise.
11518         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11519         * lib/sendto.c (rpl_sendto): Likewise.
11520
11521 2010-03-06  Bruno Haible  <bruno@clisp.org>
11522
11523         Clarify access, euidaccess, faccessat.
11524         * doc/posix-functions/faccessat.texi: Mention security problem under
11525         "Other problems", not "Portability problems".
11526         * doc/posix-functions/access.texi: Likewise. Mention a related security
11527         problem.
11528         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11529         * lib/euidaccess.c: Add comments about platforms.
11530         * lib/unistd.in.h (access, euidaccess): Add warnings.
11531
11532 2010-03-07  Bruno Haible  <bruno@clisp.org>
11533
11534         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11535         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11536         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11537         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11538         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11539         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11540         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11541         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11542         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11543         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11544         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11545         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11546         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11547         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11548         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11549         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11550         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11551         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11552         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11553         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11554         Likewise.
11555         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11556         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11557         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11558         Likewise.
11559         * tests/test-spawn.c (main): Make it work when
11560         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11561
11562 2010-03-07  Bruno Haible  <bruno@clisp.org>
11563
11564         Fix incorrect Makefile.am generation in German locale.
11565         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11566         Execute sed command with character range in C locale.
11567
11568 2010-03-06  Bruno Haible  <bruno@clisp.org>
11569
11570         Tests for module 'iconv-h'.
11571         * modules/iconv-h-tests: New file.
11572         * tests/test-iconv-h.c: New file.
11573
11574         New module 'iconv-h'.
11575         * modules/iconv-h: New file.
11576         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11577         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11578         (configure.ac): Remove gl_ICONV_H.
11579         (Makefile.am): Remove rule for iconv.h.
11580
11581 2010-03-06  Bruno Haible  <bruno@clisp.org>
11582
11583         More consistent naming of *.m4 files.
11584         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11585         * modules/wctype (Files): Update.
11586
11587         More consistent naming of *.m4 files.
11588         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11589         * modules/wchar (Files): Update.
11590
11591 2010-03-06  Jim Meyering  <meyering@redhat.com>
11592
11593         euidaccess: relax license to LGPLv2+
11594         * modules/euidaccess (License): Relax to LGPLv2+.
11595
11596 2010-03-06  Bruno Haible  <bruno@clisp.org>
11597
11598         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11599         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11600         (Makefile.am): Augment lib_SOURCES instead.
11601
11602 2010-03-04  Jim Meyering  <meyering@redhat.com>
11603
11604         utime: remove obsolete module
11605         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11606         unnecessary for years, and has been marked as obsolete for 10 months.
11607         * modules/utime: Remove file.
11608         * lib/utime.c: Remove file.
11609         * m4/utime.m4: Remove file.
11610         * m4/utimes-null.m4: Remove file.
11611         * doc/posix-functions/utime.texi (utime): Remove reference to
11612         the module.  Move the sole "fixed by gnulib" item into the
11613         "problems not fixed by Gnulib" list.
11614         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11615
11616 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11617
11618         * modules/exit (License): Relax license to LGPLv2+.
11619         (Status): Mark as obsolete.
11620         * NEWS: Mention deprecated 'exit' module.
11621         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11622         of now obsolete 'exit'.
11623
11624 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11625
11626         fts-lgpl: remove unused module
11627         * modules/fts-lgpl: Remove.
11628         * MODULES.html.sh (func_all_modules): Adjust.
11629         * check-module (find_included_lib_files): Adjust.
11630         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11631
11632 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11633
11634         copy-acl: enhance Solaris ACL error handling
11635         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11636         * lib/set-mode-acl.c (qset_acl): Likewise.
11637
11638 2010-03-02  Bruno Haible  <bruno@clisp.org>
11639
11640         spawn: Don't override the system defined values on FreeBSD 8.
11641         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11642         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11643         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11644         if HAVE_POSIX_SPAWN is 1.
11645         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11646
11647 2010-03-01  Bruno Haible  <bruno@clisp.org>
11648
11649         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11650         regarding Automake.
11651
11652 2010-02-25  Bruno Haible  <bruno@clisp.org>
11653
11654         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11655         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11656         setting, not afterwards.
11657         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11658
11659 2010-02-24  Eric Blake  <eblake@redhat.com>
11660
11661         bootstrap, git-version-gen: use timestamp
11662         * build-aux/git-version-gen (scriptversion): Force UTC.
11663         * build-aux/bootstrap (scriptversion): New variable.
11664
11665         bootstrap: allow older git
11666         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11667         older than 1.6.4.  Requested by the libvirt project.
11668
11669 2010-02-23  Eric Blake  <eblake@redhat.com>
11670
11671         warn-on-use: work with old autoconf
11672         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11673         AS_VAR semantics of autoconf 2.60.
11674         Reported by Bruno Haible.
11675
11676         bootstrap: improve some comments
11677         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11678         clarification comments.
11679
11680         gettimeofday: provide correct function
11681         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11682         when replacement is declared, otherwise provide gettimeofday.
11683         Reported by Michael Goffioul.
11684
11685 2010-02-23  Jim Meyering  <meyering@redhat.com>
11686
11687         lib-ignore: relax license to "unlimited", not LGPLv2+
11688         * modules/lib-ignore (License): Relax to "unlimited".
11689
11690 2010-02-23  Jim Meyering  <meyering@redhat.com>
11691
11692         lib-ignore: relax license to LGPLv2+
11693         * modules/lib-ignore (License): Relax to LGPLv2+.
11694
11695 2010-02-22  Eric Blake  <eblake@redhat.com>
11696
11697         lseek: avoid bash 3.2 broken pipe bug
11698         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11699         warning from bash 3.2.
11700         Reported by Ben Pfaff, with analysis from Bruno Haible.
11701
11702         bootstrap: support non-FSF copyright holder
11703         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11704         bootstrap.conf override of COPYRIGHT_HOLDER.
11705         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11706
11707         bootstrap: interoperate with gettext 0.14.1
11708         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11709
11710         bootstrap: allow for alternate submodule location
11711         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11712         hardcoding submodule location.
11713         (gnulib_mk): Allow direct use of Makefile.am.
11714
11715         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11716         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11717         rather than reconfiguring where the submodule points.
11718
11719         gettimeofday: restore support for platforms that lack function
11720         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11721         replacement if function is missing.
11722         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11723         * modules/sys_time (Makefile.am): Substitute it.
11724         * lib/sys_time.in.h (gettimeofday): Check it.
11725         Reported by Michael Goffioul.
11726
11727 2010-02-21  Bruno Haible  <bruno@clisp.org>
11728
11729         * lib/stdio.in.h (obstack_printf): Fix typo.
11730
11731 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11732
11733         vc-list-files: use bzr ls's -R option
11734         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11735         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11736
11737 2010-02-21  Jim Meyering  <meyering@redhat.com>
11738
11739         init.sh: fix EXEEXT shims to work also for names like test-prog
11740         * tests/init.sh: Re-exec a better shell, when needed.
11741         If the current shell lacks support for posix $(...), an init.sh-using
11742         test will now try to find a shell that supports that.  If EXEEXT is
11743         nonempty, we also require support for hyphen-in-alias-name and shell
11744         substitutions like ${var#glob}.  Failure to find such a shell results
11745         in a skipped test.
11746
11747 2010-02-21  Bruno Haible  <bruno@clisp.org>
11748
11749         Really work around around "broken pipe" error message from bash 3.2.
11750         * gnulib-tool (func_reset_sigpipe): Remove function.
11751         (echo): In bash 3.2, define to a function that uses printf.
11752         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11753
11754 2010-02-20  Bruno Haible  <bruno@clisp.org>
11755
11756         Restore support for automake 1.9.6 with autoconf 2.61.
11757         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11758         Reported by James Youngman <jay@gnu.org>.
11759
11760 2010-02-20  Bruno Haible  <bruno@clisp.org>
11761
11762         Improve *printf warning condition.
11763         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11764         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11765         and the function is overridden due to SIGPIPE emulation.
11766
11767 2010-02-20  Bruno Haible  <bruno@clisp.org>
11768
11769         * lib/stdio.in.h: Tweak comments.
11770
11771 2010-02-19  Bruno Haible  <bruno@clisp.org>
11772
11773         Make it easier to find modules. New gnulib-tool option '--find'.
11774         * gnulib-tool: New option --find.
11775         (func_usage): Document it.
11776         (func_sanitize_modulelist): New function, extracted from
11777         func_all_modules.
11778         (func_all_modules): Invoke it.
11779         * doc/gnulib-tool.texi (Which modules?): New node.
11780
11781 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11782
11783         * lib/sys_select.in.h: Provide select replacement even if
11784         sys/select.h exists on a system, for Interix.
11785
11786 2010-02-18  Jim Meyering  <meyering@redhat.com>
11787
11788         init.sh: don't use $(...) just yet
11789         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11790         to accommodate e.g., Solaris' /bin/sh.
11791
11792 2010-02-17  Bruno Haible  <bruno@clisp.org>
11793
11794         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11795         Reported by Ludovic Courtès <ludo@gnu.org>.
11796
11797 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11798
11799         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11800         linking with -lintl.
11801
11802 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11803
11804         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11805         if not provided by the system's netdb.h.  Reported by
11806         ludo@gnu.org (Ludovic Courtès).
11807
11808 2010-02-15  Jim Meyering  <meyering@redhat.com>
11809
11810         init.sh: improve portability and efficiency
11811         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11812         "dummy" in a for loop.
11813         Use '!', not '^' to select the complement of a character set used
11814         in a "case" statement.
11815         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11816         Suggestions from Eric Blake.
11817
11818         init.sh: automatically accommodate programs with the .exe suffix
11819         Automatically arrange for an invocation of "prog" to execute the
11820         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11821         may use the simpler "prog", yet still work when built on a system
11822         that requires specifying the added suffix.
11823         Do this by constructing a function named "prog" that invokes
11824         "prog.exe" for each .exe file in selected directories.
11825         * tests/init.sh (find_exe_basenames_): New function.
11826         (create_exe_shim_functions_): New function.
11827         (path_prepend_): Use it.
11828
11829         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11830         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11831         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11832
11833 2010-02-14  Jim Meyering  <meyering@redhat.com>
11834
11835         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11836         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11837         (sc_prohibit_hash_pjw_without_use): New rule.
11838
11839         maint.mk: allow the default upload destination dir to be overridden
11840         * top/maint.mk (upload_dest_dir_): Define with a default that
11841         preserves the status quo.
11842         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11843         Reported by Peter Simons.
11844
11845         maint.mk: prohibit inclusion of "hash.h" without_use
11846         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11847
11848 2010-02-10  Jim Meyering  <meyering@redhat.com>
11849
11850         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11851         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11852
11853 2010-02-09  Eric Blake  <ebb9@byu.net>
11854         and Bruno Haible  <bruno@clisp.org>
11855
11856         obstack-printf-posix: ensure declaration
11857         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11858         extracted from gl_FUNC_OBSTACK_PRINTF.
11859         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11860         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11861         Likewise.
11862         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11863         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11864         0.
11865
11866 2010-02-08  Bruno Haible  <bruno@clisp.org>
11867
11868         gnulib-tool: Fix typo in 2010-02-07 commit.
11869         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11870         Reported by Eric Blake.
11871
11872 2010-02-07  Bruno Haible  <bruno@clisp.org>
11873
11874         gnulib-tool: Fix up caching patches.
11875         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11876         option --no-cache. Use associative arrays when supported by the shell.
11877         (sed_comments): New variable.
11878         (modcache): Renamed from do_cache.
11879         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11880         abbreviate unnecessarily.
11881         (have_associative): New variable.
11882         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11883         way also for ksh and zsh.
11884         (func_init_sed_convert_to_cache_statements): New function, extracted
11885         from func_cache_lookup_module. Add support for associative arrays.
11886         Don't set the c_MODULE_cached variable here. Ignore all lines before
11887         the first field header. Remove only the final newline, not all trailing
11888         newlines. Support empty fields correctly. Limit the use of 'eval' to
11889         assignments.
11890         (func_get_description, func_get_status, func_get_notice,
11891         func_get_applicability, func_get_filelist, func_get_dependencies,
11892         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11893         func_get_automake_snippet, func_get_include_directive,
11894         func_get_link_directive, func_get_license, func_get_maintainer):
11895         Update documentation. List the unoptimized code first. Add support for
11896         associative arrays. Limit the use of 'eval' to assignments.
11897         (func_get_applicability): Undo stylistic pessimisations.
11898         (func_get_automake_snippet, func_get_include_directive): Reduce code
11899         duplication.
11900         (func_modules_transitive_closure, func_modules_add_dummy,
11901         func_modules_notice, func_modules_to_filelist, func_add_file,
11902         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11903         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11904         func_create_testdir, func_create_megatestdir): Update documentation.
11905
11906 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11907
11908         * gnulib-tool (func_cache_lookup_module): Store the module name
11909         belonging to the cache variable; error out if two different
11910         module names map to the same cache variable name.
11911
11912 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11913
11914         gnulib-tool: Make caching optional.
11915         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11916         Update matching short versions of --no-changelog.
11917         (func_usage): Update.
11918         (sed_extract_cache_prog): Renamed from ...
11919         (sed_extract_prog): ... this; revert to old extraction script.
11920         (func_get_description, func_get_status)
11921         (func_get_notice, func_get_applicability, func_get_filelist)
11922         (func_get_dependencies, func_get_autoconf_early_snippet)
11923         (func_get_autoconf_snippet, func_get_automake_snippet)
11924         (func_get_include_directive, func_get_link_directive)
11925         (func_get_license, func_get_maintainer): If $do_cache is false,
11926         use old, non-caching extraction scripts.
11927         Suggestion by Bruno Haible.
11928
11929 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11930
11931         gnulib-tool: cache module metainformation.
11932         * gnulib-tool (sed_extract_prog): Match newline before each
11933         header, and rewrite header to a shell variable suffix.
11934         (func_cache_var, func_cache_lookup_module): New functions,
11935         to turn a module name into a cache variable prefix, and to
11936         look up and cache module metainformation.
11937         (func_get_description, func_get_status)
11938         (func_get_notice, func_get_applicability, func_get_filelist)
11939         (func_get_dependencies, func_get_autoconf_early_snippet)
11940         (func_get_autoconf_snippet, func_get_automake_snippet)
11941         (func_get_include_directive, func_get_link_directive)
11942         (func_get_license, func_get_maintainer): Use
11943         func_cache_lookup_module.
11944
11945 2010-02-07  Bruno Haible  <bruno@clisp.org>
11946
11947         fnctl: Fix missing dependency.
11948         * modules/fcntl (Depends-on): Add getdtablesize.
11949         Reported by John W. Eaton <jwe@gnu.org>.
11950
11951 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11952
11953         Argp: fix recognition of short alias options.
11954
11955         * lib/argp-parse.c (convert_options): Fix improper use of
11956         `|' between character values.
11957         * tests/test-argp.c (group1_option): New alias option
11958         --read (-r).
11959         (group1_parser): Special handling for 'r'.
11960         (test15): New test case.
11961         (test_fun): Add test15.
11962         * tests/test-argp-2.sh: Update expected --help and --usage
11963         outputs.
11964
11965 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11966
11967         * tests/test-argp.c: Fix indentation.
11968
11969 2010-02-04  Eric Blake  <ebb9@byu.net>
11970
11971         gettimeofday: expose type of second argument
11972         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11973         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11974         * tests/test-gettimeofday.c: Use it to silence warning.
11975         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11976         the issue.
11977
11978 2010-02-03  Jim Meyering  <meyering@redhat.com>
11979
11980         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11981         * lib/regcomp.c (TYPE_SIGNED): Define.
11982         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11983
11984         regcomp.c: avoid a new -Wshadow warning
11985         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11986
11987 2010-02-01  Jim Meyering  <meyering@redhat.com>
11988
11989         removing useless parentheses in cpp #define directives
11990         For motivation, see commit c0221df4, "define STREQ(a,b)
11991         consistently, removing useless parentheses"
11992         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11993         * lib/mountlist.c (MNT_IGNORE): Likewise.
11994         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11995
11996 2010-02-01  Eric Blake  <ebb9@byu.net>
11997
11998         sys_time: use link-warning
11999         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
12000         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
12001         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
12002         * modules/sys_time (Depends-on): Add warn-on-use.
12003         (Makefile.am): Always build replacement.
12004         (configure.ac): Update substitutions.
12005         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
12006         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
12007         bother with SYS_TIME_H.
12008         * modules/gettimeofday (configure.ac): Declare indicator.
12009         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
12010         in use.
12011
12012         closein-tests: silence compiler warning
12013         * tests/test-closein.c (main): Ignore fread result.
12014         * modules/closein-tests (Depends-on): Add ignore-value.
12015
12016         tests: silence warning about system return
12017         * tests/test-areadlink-with-size.c (main): Ignore system result.
12018         * tests/test-areadlink.c (main): Likewise.
12019         * tests/test-areadlinkat-with-size.c (main): Likewise.
12020         * tests/test-areadlinkat.c (main): Likewise.
12021         * tests/test-canonicalize-lgpl.c (main): Likewise.
12022         * tests/test-canonicalize.c (main): Likewise.
12023         * tests/test-chown.c (main): Likewise.
12024         * tests/test-fchownat.c (main): Likewise.
12025         * tests/test-fdutimensat.c (main): Likewise.
12026         * tests/test-fstatat.c (main): Likewise.
12027         * tests/test-futimens.c (main): Likewise.
12028         * tests/test-lchown.c (main): Likewise.
12029         * tests/test-link.c (main): Likewise.
12030         * tests/test-linkat.c (main): Likewise.
12031         * tests/test-lstat.c (main): Likewise.
12032         * tests/test-mkdir.c (main): Likewise.
12033         * tests/test-mkdirat.c (main): Likewise.
12034         * tests/test-mkfifo.c (main): Likewise.
12035         * tests/test-mkfifoat.c (main): Likewise.
12036         * tests/test-mknod.c (main): Likewise.
12037         * tests/test-readlink.c (main): Likewise.
12038         * tests/test-remove.c (main): Likewise.
12039         * tests/test-rename.c (main): Likewise.
12040         * tests/test-renameat.c (main): Likewise.
12041         * tests/test-rmdir.c (main): Likewise.
12042         * tests/test-symlink.c (main): Likewise.
12043         * tests/test-symlinkat.c (main): Likewise.
12044         * tests/test-unlink.c (main): Likewise.
12045         * tests/test-unlinkat.c (main): Likewise.
12046         * tests/test-utimens.c (main): Likewise.
12047         * tests/test-utimensat.c (main): Likewise.
12048         * modules/areadlink-tests (Depends-on): Add ignore-value.
12049         * modules/areadlink-with-size-tests (Depends-on): Likewise.
12050         * modules/areadlinkat-tests (Depends-on): Likewise.
12051         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
12052         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
12053         * modules/canonicalize-tests (Depends-on): Likewise.
12054         * modules/chown-tests (Depends-on): Likewise.
12055         * modules/fdutimensat-tests (Depends-on): Likewise.
12056         * modules/futimens-tests (Depends-on): Likewise.
12057         * modules/lchown-tests (Depends-on): Likewise.
12058         * modules/link-tests (Depends-on): Likewise.
12059         * modules/linkat-tests (Depends-on): Likewise.
12060         * modules/lstat-tests (Depends-on): Likewise.
12061         * modules/mkdir-tests (Depends-on): Likewise.
12062         * modules/mkfifo-tests (Depends-on): Likewise.
12063         * modules/mkfifoat-tests (Depends-on): Likewise.
12064         * modules/mknod-tests (Depends-on): Likewise.
12065         * modules/openat-tests (Depends-on): Likewise.
12066         * modules/readlink-tests (Depends-on): Likewise.
12067         * modules/remove-tests (Depends-on): Likewise.
12068         * modules/rename-tests (Depends-on): Likewise.
12069         * modules/renameat-tests (Depends-on): Likewise.
12070         * modules/rmdir-tests (Depends-on): Likewise.
12071         * modules/symlink-tests (Depends-on): Likewise.
12072         * modules/symlinkat-tests (Depends-on): Likewise.
12073         * modules/unlink-tests (Depends-on): Likewise.
12074         * modules/utimens-tests (Depends-on): Likewise.
12075         * modules/utimensat-tests (Depends-on): Likewise.
12076
12077 2010-01-31  Bruno Haible  <bruno@clisp.org>
12078
12079         Perform the same test for many <math.h> functions.
12080         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
12081         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
12082         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
12083         of gl_MATHFUNC.
12084         * modules/acos (configure.ac): Likewise.
12085         * modules/asin (configure.ac): Likewise.
12086         * modules/atan (configure.ac): Likewise.
12087         * modules/atan2 (configure.ac): Likewise.
12088         * modules/cbrt (configure.ac): Likewise.
12089         * modules/copysign (configure.ac): Likewise.
12090         * modules/cos (configure.ac): Likewise.
12091         * modules/cosh (configure.ac): Likewise.
12092         * modules/erf (configure.ac): Likewise.
12093         * modules/erfc (configure.ac): Likewise.
12094         * modules/exp (configure.ac): Likewise.
12095         * modules/fmod (configure.ac): Likewise.
12096         * modules/hypot (configure.ac): Likewise.
12097         * modules/j0 (configure.ac): Likewise.
12098         * modules/j1 (configure.ac): Likewise.
12099         * modules/jn (configure.ac): Likewise.
12100         * modules/lgamma (configure.ac): Likewise.
12101         * modules/log (configure.ac): Likewise.
12102         * modules/log10 (configure.ac): Likewise.
12103         * modules/log1p (configure.ac): Likewise.
12104         * modules/pow (configure.ac): Likewise.
12105         * modules/remainder (configure.ac): Likewise.
12106         * modules/sin (configure.ac): Likewise.
12107         * modules/sinh (configure.ac): Likewise.
12108         * modules/tan (configure.ac): Likewise.
12109         * modules/tanh (configure.ac): Likewise.
12110         * modules/y0 (configure.ac): Likewise.
12111         * modules/y1 (configure.ac): Likewise.
12112         * modules/yn (configure.ac): Likewise.
12113         Suggested by Paolo Bonzini.
12114
12115 2010-01-31  Bruno Haible  <bruno@clisp.org>
12116
12117         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
12118
12119 2010-01-31  Bruno Haible  <bruno@clisp.org>
12120
12121         Work around getdelim() bug on FreeBSD 8.0.
12122         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
12123         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
12124         not work.
12125         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
12126         is 1.
12127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
12128         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
12129         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
12130         a non-zero size.
12131         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
12132
12133 2010-01-31  Bruno Haible  <bruno@clisp.org>
12134
12135         Work around getline() bug on FreeBSD 8.0.
12136         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
12137         and a non-zero size.
12138         * tests/test-getline.c (main): Likewise.
12139         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
12140         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
12141
12142 2010-01-28  Eric Blake  <ebb9@byu.net>
12143
12144         regex: fix build failure
12145         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
12146         platforms.
12147
12148 2010-01-28  Jim Meyering  <meyering@redhat.com>
12149
12150         regex: do not ignore memory allocation failure
12151         * lib/regex_internal.c (create_cd_newstate): Detect
12152         re_node_set_init_copy failure.   Extracted from glibc commit
12153         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12154
12155         regex: sync more white-space changes from libc
12156         * lib/regex_internal.c: White-space only changes.
12157         * lib/regexec.c: Likewise.
12158
12159         regex: add many uses of __attribute_warn_unused_result__
12160         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
12161         * lib/regexec.c: Likewise.
12162         Extracted from a messy glibc commit.
12163
12164         regcomp.c: spelling and merge-artifact from glibc
12165         * lib/regcomp.c: Merge remainder of glibc's
12166         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12167
12168         regcomp.c: sync white-space changes from glibc
12169         * lib/regcomp.c: Merge to accommodate white space
12170         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
12171
12172         regcomp.c: do not ignore internal return values
12173         * lib/regcomp.c: Do not ignore internal return values.
12174         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
12175         but without its white-space changes and spelling fixes.
12176
12177         regex_internal.h: define __attribute_warn_unused_result__
12178         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
12179
12180         maint: add a syntax-check rule to check for vulnerable Makefile.in
12181         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
12182
12183 2010-01-27  Jim Meyering  <meyering@redhat.com>
12184
12185         ncftpput-ftp: clean up spaces
12186         * build-aux/ncftpput-ftp: Make Copyright line consistent.
12187         Remove trailing blanks.
12188
12189 2010-01-27  Simon Josefsson  <simon@josefsson.org>
12190
12191         * build-aux/git-version-gen: Fix copyright statement.
12192         * build-aux/gnupload: Likewise.
12193         * tests/test-arcfour.c: Likewise.
12194         * tests/test-arctwo.c: Likewise.
12195         * tests/test-count-one-bits.c: Likewise.
12196         * tests/test-crc.c: Likewise.
12197         * tests/test-des.c: Likewise.
12198         * tests/test-gc-arcfour.c: Likewise.
12199         * tests/test-gc-arctwo.c: Likewise.
12200         * tests/test-gc-des.c: Likewise.
12201         * tests/test-gc-hmac-md5.c: Likewise.
12202         * tests/test-gc-hmac-sha1.c: Likewise.
12203         * tests/test-gc-md2.c: Likewise.
12204         * tests/test-gc-md4.c: Likewise.
12205         * tests/test-gc-md5.c: Likewise.
12206         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12207         * tests/test-gc-rijndael.c: Likewise.
12208         * tests/test-gc-sha1.c: Likewise.
12209         * tests/test-gc.c: Likewise.
12210         * tests/test-gethostname.c: Likewise.
12211         * tests/test-gettimeofday.c: Likewise.
12212         * tests/test-hash.c: Likewise.
12213         * tests/test-hmac-md5.c: Likewise.
12214         * tests/test-hmac-sha1.c: Likewise.
12215         * tests/test-md2.c: Likewise.
12216         * tests/test-md4.c: Likewise.
12217         * tests/test-md5.c: Likewise.
12218         * tests/test-memchr.c: Likewise.
12219         * tests/test-memchr2.c: Likewise.
12220         * tests/test-memcmp.c: Likewise.
12221         * tests/test-memmem.c: Likewise.
12222         * tests/test-memrchr.c: Likewise.
12223         * tests/test-rawmemchr.c: Likewise.
12224         * tests/test-read-file.c: Likewise.
12225         * tests/test-rijndael.c: Likewise.
12226         * tests/test-sockets.c: Likewise.
12227         * tests/test-strchrnul.c: Likewise.
12228         * tests/test-strstr.c: Likewise.
12229         * tests/test-strtod.c: Likewise.
12230         * build-aux/ncftpput-ftp: Likewise.
12231
12232 2010-01-26  Eric Blake  <ebb9@byu.net>
12233
12234         ignore-value: update recommended header name
12235         * modules/ignore-value (Include): Only use <> for headers that
12236         exist in glibc.
12237
12238 2010-01-26  Jim Meyering  <meyering@redhat.com>
12239
12240         test-userspec.c: avoid compiler warnings
12241         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
12242         and "initialization discards qualifiers..." warnings.
12243         Put the first "uid" in its own scope, and make char* members "const".
12244
12245 2010-01-25  Bruno Haible  <bruno@clisp.org>
12246
12247         gnulib-tool: Make warning diagnostics consistent.
12248         * gnulib-tool (func_warning): New function.
12249         Use it everywhere where gnulib-tool produces output to stderr and it is
12250         not a fatal error.
12251
12252 2010-01-25  Bruno Haible  <bruno@clisp.org>
12253
12254         Fix test dependencies.
12255         * modules/xstrtol-tests (Depends-on): Add inttypes.
12256         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
12257
12258 2010-01-25 Pádraig Brady <P@draigBrady.com>
12259
12260         syntax-check: detect incorrect boolean macro values in config.h
12261         * modules/maintainer-makefile (configure.ac): Parameterize the location
12262         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
12263         The logic is from Eric Blake and the location indicated by Jim Meyering.
12264         Note the more natural CONFIG_HEADER name is prohibited by automake
12265         for backwards compatibility reasons.
12266         * top/maint.mk (sc_Wundef_boolean): New rule.
12267
12268 2010-01-25  Jim Meyering  <meyering@redhat.com>
12269
12270         bootstrap: detect MacOS 10.6's shasum, too
12271         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
12272         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
12273
12274 2010-01-23  Jim Meyering  <meyering@redhat.com>
12275
12276         xstrtoll: new module
12277         * modules/xstrtoll: New file.
12278         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
12279         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
12280         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12281         ./configure fails if you use this module and lack "long long".
12282         * modules/xstrtoll-tests: New module.
12283         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12284         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12285         new init.sh-based test framework.
12286
12287 2010-01-24  Bruno Haible  <bruno@clisp.org>
12288
12289         Tests for module 'yn'.
12290         * modules/yn-tests: New file.
12291         * tests/test-yn.c: New file.
12292
12293         Tests for module 'y1'.
12294         * modules/y1-tests: New file.
12295         * tests/test-y1.c: New file.
12296
12297         Tests for module 'y0'.
12298         * modules/y0-tests: New file.
12299         * tests/test-y0.c: New file.
12300
12301         Tests for module 'tanh'.
12302         * modules/tanh-tests: New file.
12303         * tests/test-tanh.c: New file.
12304
12305         Tests for module 'tan'.
12306         * modules/tan-tests: New file.
12307         * tests/test-tan.c: New file.
12308
12309         Tests for module 'sqrt'.
12310         * modules/sqrt-tests: New file.
12311         * tests/test-sqrt.c: New file.
12312
12313         Tests for module 'sinh'.
12314         * modules/sinh-tests: New file.
12315         * tests/test-sinh.c: New file.
12316
12317         Tests for module 'sin'.
12318         * modules/sin-tests: New file.
12319         * tests/test-sin.c: New file.
12320
12321         Tests for module 'rint'.
12322         * modules/rint-tests: New file.
12323         * tests/test-rint.c: New file.
12324
12325         Tests for module 'remainder'.
12326         * modules/remainder-tests: New file.
12327         * tests/test-remainder.c: New file.
12328
12329         Tests for module 'pow'.
12330         * modules/pow-tests: New file.
12331         * tests/test-pow.c: New file.
12332
12333         Tests for module 'nextafter'.
12334         * modules/nextafter-tests: New file.
12335         * tests/test-nextafter.c: New file.
12336
12337         Tests for module 'modf'.
12338         * modules/modf-tests: New file.
12339         * tests/test-modf.c: New file.
12340
12341         Tests for module 'logb'.
12342         * modules/logb-tests: New file.
12343         * tests/test-logb.c: New file.
12344
12345         Tests for module 'log1p'.
12346         * modules/log1p-tests: New file.
12347         * tests/test-log1p.c: New file.
12348
12349         Tests for module 'log10'.
12350         * modules/log10-tests: New file.
12351         * tests/test-log10.c: New file.
12352
12353         Tests for module 'log'.
12354         * modules/log-tests: New file.
12355         * tests/test-log.c: New file.
12356
12357         Tests for module 'lgamma'.
12358         * modules/lgamma-tests: New file.
12359         * tests/test-lgamma.c: New file.
12360
12361         Tests for module 'ldexp'.
12362         * modules/ldexp-tests: New file.
12363         * tests/test-ldexp.c: New file.
12364
12365         Tests for module 'jn'.
12366         * modules/jn-tests: New file.
12367         * tests/test-jn.c: New file.
12368
12369         Tests for module 'j1'.
12370         * modules/j1-tests: New file.
12371         * tests/test-j1.c: New file.
12372
12373         Tests for module 'j0'.
12374         * modules/j0-tests: New file.
12375         * tests/test-j0.c: New file.
12376
12377         Tests for module 'hypot'.
12378         * modules/hypot-tests: New file.
12379         * tests/test-hypot.c: New file.
12380
12381         Tests for module 'fmod'.
12382         * modules/fmod-tests: New file.
12383         * tests/test-fmod.c: New file.
12384
12385         Tests for module 'fabs'.
12386         * modules/fabs-tests: New file.
12387         * tests/test-fabs.c: New file.
12388
12389         Tests for module 'exp'.
12390         * modules/exp-tests: New file.
12391         * tests/test-exp.c: New file.
12392
12393         Tests for module 'erfc'.
12394         * modules/erfc-tests: New file.
12395         * tests/test-erfc.c: New file.
12396
12397         Tests for module 'erf'.
12398         * modules/erf-tests: New file.
12399         * tests/test-erf.c: New file.
12400
12401         Tests for module 'cosh'.
12402         * modules/cosh-tests: New file.
12403         * tests/test-cosh.c: New file.
12404
12405         Tests for module 'cos'.
12406         * modules/cos-tests: New file.
12407         * tests/test-cos.c: New file.
12408
12409         Tests for module 'copysign'.
12410         * modules/copysign-tests: New file.
12411         * tests/test-copysign.c: New file.
12412
12413         Tests for module 'cbrt'.
12414         * modules/cbrt-tests: New file.
12415         * tests/test-cbrt.c: New file.
12416
12417         Tests for module 'atan2'.
12418         * modules/atan2-tests: New file.
12419         * tests/test-atan2.c: New file.
12420
12421         Tests for module 'atan'.
12422         * modules/atan-tests: New file.
12423         * tests/test-atan.c: New file.
12424
12425         Tests for module 'asin'.
12426         * modules/asin-tests: New file.
12427         * tests/test-asin.c: New file.
12428
12429         Tests for module 'acos'.
12430         * modules/acos-tests: New file.
12431         * tests/test-acos.c: New file.
12432
12433 2010-01-24  Bruno Haible  <bruno@clisp.org>
12434
12435         Fix tests for common <math.h> functions.
12436         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12437         code snippet that references the function pointer, rather than merely
12438         calling the function. Substitute the FUNC_LIBM variable.
12439         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12440         * modules/acos (configure.ac): Likewise.
12441         * modules/asin (configure.ac): Likewise.
12442         * modules/atan (configure.ac): Likewise.
12443         * modules/atan2 (configure.ac): Likewise.
12444         * modules/cbrt (configure.ac): Likewise.
12445         * modules/copysign (configure.ac): Likewise.
12446         * modules/cos (configure.ac): Likewise.
12447         * modules/cosh (configure.ac): Likewise.
12448         * modules/erf (configure.ac): Likewise.
12449         * modules/erfc (configure.ac): Likewise.
12450         * modules/exp (configure.ac): Likewise.
12451         * modules/fabs (configure.ac): Likewise.
12452         * modules/fmod (configure.ac): Likewise.
12453         * modules/hypot (configure.ac): Likewise.
12454         * modules/j0 (configure.ac): Likewise.
12455         * modules/j1 (configure.ac): Likewise.
12456         * modules/jn (configure.ac): Likewise.
12457         * modules/ldexp (configure.ac): Likewise.
12458         * modules/lgamma (configure.ac): Likewise.
12459         * modules/log (configure.ac): Likewise.
12460         * modules/log10 (configure.ac): Likewise.
12461         * modules/log1p (configure.ac): Likewise.
12462         * modules/logb (configure.ac): Likewise.
12463         * modules/modf (configure.ac): Likewise.
12464         * modules/nextafter (configure.ac): Likewise.
12465         * modules/pow (configure.ac): Likewise.
12466         * modules/remainder (configure.ac): Likewise.
12467         * modules/rint (configure.ac): Likewise.
12468         * modules/sin (configure.ac): Likewise.
12469         * modules/sinh (configure.ac): Likewise.
12470         * modules/tan (configure.ac): Likewise.
12471         * modules/tanh (configure.ac): Likewise.
12472         * modules/y0 (configure.ac): Likewise.
12473         * modules/y1 (configure.ac): Likewise.
12474         * modules/yn (configure.ac): Likewise.
12475
12476 2010-01-24  Bruno Haible  <bruno@clisp.org>
12477
12478         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12479         * tests/test-acosl.c (x): New variable.
12480         (main): Store argument in x and fetch it from x.
12481         * tests/test-asinl.c (x): New variable.
12482         (main): Store argument in x and fetch it from x.
12483         * tests/test-atanl.c (x): New variable.
12484         (main): Store argument in x and fetch it from x.
12485         * tests/test-cosl.c (x): New variable.
12486         (main): Store argument in x and fetch it from x.
12487         * tests/test-expl.c (x): New variable.
12488         (main): Store argument in x and fetch it from x.
12489         * tests/test-logl.c (x): New variable.
12490         (main): Store argument in x and fetch it from x.
12491         * tests/test-sinl.c (x): New variable.
12492         (main): Store argument in x and fetch it from x.
12493         * tests/test-sqrtl.c (x): New variable.
12494         (main): Store argument in x and fetch it from x.
12495         * tests/test-tanl.c (x): New variable.
12496         (main): Store argument in x and fetch it from x.
12497
12498 2010-01-24  Bruno Haible  <bruno@clisp.org>
12499
12500         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12501         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12502         assignments to the initial TESTS_ENVIRONMENT.
12503         * doc/gnulib.texi (Unit test modules): Document it.
12504         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12505         TESTS_ENVIRONMENT.
12506         * modules/btowc-tests (Makefile.am): Likewise.
12507         * modules/c-stack-tests (Makefile.am): Likewise.
12508         * modules/c-strcase-tests (Makefile.am): Likewise.
12509         * modules/copy-file-tests (Makefile.am): Likewise.
12510         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12511         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12512         * modules/mbrtowc-tests (Makefile.am): Likewise.
12513         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12514         * modules/mbscasestr-tests (Makefile.am): Likewise.
12515         * modules/mbschr-tests (Makefile.am): Likewise.
12516         * modules/mbscspn-tests (Makefile.am): Likewise.
12517         * modules/mbsinit-tests (Makefile.am): Likewise.
12518         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12519         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12520         * modules/mbspbrk-tests (Makefile.am): Likewise.
12521         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12522         * modules/mbsrchr-tests (Makefile.am): Likewise.
12523         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12524         * modules/mbsspn-tests (Makefile.am): Likewise.
12525         * modules/mbsstr-tests (Makefile.am): Likewise.
12526         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12527         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12528         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12529         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12530         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12531         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12532         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12533         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12534         * modules/wcrtomb-tests (Makefile.am): Likewise.
12535         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12536         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12537         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12538         assignments from TESTS_ENVIRONMENT.
12539         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12540         augmentation.
12541         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12542         * modules/atexit-tests (Makefile.am): Likewise.
12543         * modules/binary-io-tests (Makefile.am): Likewise.
12544         * modules/closein-tests (Makefile.am): Likewise.
12545         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12546         * modules/exclude-tests (Makefile.am): Likewise.
12547         * modules/fflush-tests (Makefile.am): Likewise.
12548         * modules/fpending-tests (Makefile.am): Likewise.
12549         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12550         * modules/freadahead-tests (Makefile.am): Likewise.
12551         * modules/freadptr-tests (Makefile.am): Likewise.
12552         * modules/freadseek-tests (Makefile.am): Likewise.
12553         * modules/fseek-tests (Makefile.am): Likewise.
12554         * modules/fseeko-tests (Makefile.am): Likewise.
12555         * modules/ftell-tests (Makefile.am): Likewise.
12556         * modules/ftello-tests (Makefile.am): Likewise.
12557         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12558         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12559         * modules/lseek-tests (Makefile.am): Likewise.
12560         * modules/parse-duration-tests (Makefile.am): Likewise.
12561         * modules/perror-tests (Makefile.am): Likewise.
12562         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12563         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12564         * modules/pipe-tests (Makefile.am): Likewise.
12565         * modules/pread-tests (Makefile.am): Likewise.
12566         * modules/printf-posix-tests (Makefile.am): Likewise.
12567         * modules/select-tests (Makefile.am): Likewise.
12568         * modules/sigpipe-tests (Makefile.am): Likewise.
12569         * modules/tsearch-tests (Makefile.am): Likewise.
12570         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12571         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12572         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12573         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12574         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12575         * modules/version-etc-tests (Makefile.am): Likewise.
12576         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12577         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12578         * modules/xalloc-die-tests (Makefile.am): Likewise.
12579         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12580         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12581         * modules/xstrtol-tests (Makefile.am): Likewise.
12582         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12583         * modules/yesno-tests (Makefile.am): Likewise.
12584         Suggested by Jim Meyering.
12585
12586 2010-01-24  Bruno Haible  <bruno@clisp.org>
12587
12588         More documentation.
12589         * doc/gnulib.texi (Writing modules): New chapter.
12590         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12591         the new chapter.
12592
12593 2010-01-24  Jim Meyering  <meyering@redhat.com>
12594
12595         maint.mk: do not prepend "./" after filtering
12596         * top/maint.mk (_prepend_srcdir_prefix): New variable
12597         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12598         "./" when $(srcdir) is ".".
12599
12600         define STREQ(a,b) consistently, removing useless parentheses
12601         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12602         since the only risk is that "a" or "b" contains an unparenthesized
12603         comma, but if either did that, STREQ would have 3 or more arguments.
12604         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12605         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12606         * lib/hash-triple.c (STREQ): Likewise.
12607         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12608         * lib/getugroups.c (STREQ): Likewise.
12609
12610 2010-01-23  Jim Meyering  <meyering@redhat.com>
12611
12612         maint.mk: fix syntax-check in a non-srcdir build directory
12613         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12614         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12615
12616 2010-01-22  Jim Meyering  <meyering@redhat.com>
12617
12618         userspec: add unit tests
12619         * tests/test-userspec.c: New file.
12620         * modules/userspec-tests: Likewise.
12621
12622 2010-01-21  Jim Meyering  <meyering@redhat.com>
12623
12624         maint.mk: handle source file names containing "." robustly
12625         * top/maint.mk (_dot_escaped_srcdir): Define.
12626         (VC_LIST): Use it in LHS of sed substitution.
12627
12628 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12629
12630         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12631         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12632         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12633         from a non-srcdir build.
12634
12635 2010-01-20  Eric Blake  <ebb9@byu.net>
12636
12637         warn-on-use: use instead of link-warning
12638         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12639         * modules/unistd (Depends-on, Makefile.am): Likewise.
12640         * modules/arpa_inet (Depends-on): Replace link-warning with
12641         warn-on-use.
12642         (Makefile.am): Update rules accordingly.
12643         * modules/ctype (Depends-on, Makefile.am): Likewise.
12644         * modules/dirent (Depends-on, Makefile.am): Likewise.
12645         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12646         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12647         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12648         * modules/locale (Depends-on, Makefile.am): Likewise.
12649         * modules/math (Depends-on, Makefile.am): Likewise.
12650         * modules/search (Depends-on, Makefile.am): Likewise.
12651         * modules/signal (Depends-on, Makefile.am): Likewise.
12652         * modules/spawn (Depends-on, Makefile.am): Likewise.
12653         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12654         * modules/string (Depends-on, Makefile.am): Likewise.
12655         * modules/strings (Depends-on, Makefile.am): Likewise.
12656         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12657         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12658         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12659         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12660         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12661         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12662         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12663         * modules/wchar (Depends-on, Makefile.am): Likewise.
12664         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12665         should be poisoned.
12666         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12667         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12668         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12669         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12670         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12671         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12672         * m4/math_h.m4 (gl_MATH_H): Likewise.
12673         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12674         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12675         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12676         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12677         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12678         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12679         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12680         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12681         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12682         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12685         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12686         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12687         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12688         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12689         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12690         GL_LINK_WARNING.
12691         * lib/ctype.in.h: Likewise.
12692         * lib/dirent.in.h: Likewise.
12693         * lib/fcntl.in.h: Likewise.
12694         * lib/inttypes.in.h: Likewise.
12695         * lib/langinfo.in.h: Likewise.
12696         * lib/locale.in.h: Likewise.
12697         * lib/math.in.h: Likewise.
12698         * lib/search.in.h: Likewise.
12699         * lib/signal.in.h: Likewise.
12700         * lib/spawn.in.h: Likewise.
12701         * lib/stdio.in.h: Likewise.
12702         * lib/stdlib.in.h: Likewise.
12703         * lib/string.in.h: Likewise.
12704         * lib/strings.in.h: Likewise.
12705         * lib/sys_file.in.h: Likewise.
12706         * lib/sys_ioctl.in.h: Likewise.
12707         * lib/sys_select.in.h: Likewise.
12708         * lib/sys_socket.in.h: Likewise.
12709         * lib/sys_stat.in.h: Likewise.
12710         * lib/sys_times.in.h: Likewise.
12711         * lib/sys_utsname.in.h: Likewise.
12712         * lib/unistd.in.h: Likewise.
12713         * lib/wchar.in.h: Likewise.
12714
12715 2010-01-20  Bruno Haible  <bruno@clisp.org>
12716
12717         Avoid duplicate -lm.
12718         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12719         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12721         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12722         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12723         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12724         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12725         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12726         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12727         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12728         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12729         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12730         Reported by Paolo Bonzini.
12731
12732 2010-01-19  Bruno Haible  <bruno@clisp.org>
12733
12734         langinfo, nl_langinfo: Relicense under LGPLv2+.
12735         * modules/langinfo (License): Change to LGPLv2+.
12736         * modules/nl_langinfo (License): Likewise.
12737         Patch by David Lutterkort <lutter@redhat.com>.
12738
12739 2010-01-19  Bruno Haible  <bruno@clisp.org>
12740
12741         Avoid compilation error with cc on OSF/1 5.1.
12742         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12743         statement, not before.
12744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12745
12746 2010-01-18  Bruno Haible  <bruno@clisp.org>
12747
12748         Avoid a link error due to the __printf__ symbol.
12749         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12750         and 2.6.x.
12751         (__format__, __printf__): Remove definitions.
12752         * lib/argp-fmtstream.h: Likewise.
12753         * lib/argp.h: Likewise.
12754         * lib/error.h: Likewise.
12755         * lib/vasnprintf.h: Likewise.
12756         * lib/xprintf.h: Likewise.
12757         * lib/xvasprintf.h: Likewise.
12758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12759
12760 2010-01-18  Bruno Haible  <bruno@clisp.org>
12761
12762         Tests for module 'tanl'.
12763         * modules/tanl-tests: New file.
12764         * tests/test-tanl.c: New file.
12765
12766         Tests for module 'sqrtl'.
12767         * modules/sqrtl-tests: New file.
12768         * tests/test-sqrtl.c: New file.
12769
12770         Tests for module 'sinl'.
12771         * modules/sinl-tests: New file.
12772         * tests/test-sinl.c: New file.
12773
12774         Tests for module 'logl'.
12775         * modules/logl-tests: New file.
12776         * tests/test-logl.c: New file.
12777
12778         Tests for module 'expl'.
12779         * modules/expl-tests: New file.
12780         * tests/test-expl.c: New file.
12781
12782         Tests for module 'cosl'.
12783         * modules/cosl-tests: New file.
12784         * tests/test-cosl.c: New file.
12785
12786         Tests for module 'atanl'.
12787         * modules/atanl-tests: New file.
12788         * tests/test-atanl.c: New file.
12789
12790         Tests for module 'asinl'.
12791         * modules/asinl-tests: New file.
12792         * tests/test-asinl.c: New file.
12793
12794         Tests for module 'acosl'.
12795         * modules/acosl-tests: New file.
12796         * tests/test-acosl.c: New file.
12797
12798         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12799         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12800         tanl): Use the standard gnulib idiom.
12801         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12802         * lib/sinl.c: Likewise.
12803         * lib/tanl.c: Don't include trigl.c.
12804         (kernel_tanl): Make static.
12805         * lib/sincosl.c: Include trigl.h first.
12806         * lib/trigl.c: Likewise.
12807         * m4/acosl.m4: New file.
12808         * m4/asinl.m4: New file.
12809         * m4/atanl.m4: New file.
12810         * m4/cosl.m4: New file.
12811         * m4/expl.m4: New file.
12812         * m4/logl.m4: New file.
12813         * m4/sinl.m4: New file.
12814         * m4/sqrtl.m4: New file.
12815         * m4/tanl.m4: New file.
12816         * m4/mathl.m4: Remove file.
12817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12818         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12819         Don't initialize GNULIB_MATHL.
12820         * modules/acosl: New file.
12821         * modules/asinl: New file.
12822         * modules/atanl: New file.
12823         * modules/cosl: New file.
12824         * modules/expl: New file.
12825         * modules/logl: New file.
12826         * modules/sinl: New file.
12827         * modules/sqrtl: New file.
12828         * modules/tanl: New file.
12829         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12830         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12831         substitute GNULIB_MATHL.
12832         * modules/mathl: Rewritten.
12833         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12834         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12835         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12836         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12837         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12838         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12839         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12840         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12841         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12842
12843 2010-01-18  Bruno Haible  <bruno@clisp.org>
12844
12845         sqrt: Make gl_FUNC_SQRT requirable.
12846         * m4/sqrt.m4: New file.
12847         * modules/sqrt (Files): Add it.
12848         (configure.ac): Invoke gl_FUNC_SQRT.
12849
12850 2010-01-18  Bruno Haible  <bruno@clisp.org>
12851
12852         New modules for common <math.h> functions.
12853         * m4/mathfunc.m4: New file.
12854         * modules/acos: New file.
12855         * modules/asin: New file.
12856         * modules/atan: New file.
12857         * modules/atan2: New file.
12858         * modules/cbrt: New file.
12859         * modules/copysign: New file.
12860         * modules/cos: New file.
12861         * modules/cosh: New file.
12862         * modules/erf: New file.
12863         * modules/erfc: New file.
12864         * modules/exp: New file.
12865         * modules/fabs: New file.
12866         * modules/fmod: New file.
12867         * modules/hypot: New file.
12868         * modules/j0: New file.
12869         * modules/j1: New file.
12870         * modules/jn: New file.
12871         * modules/ldexp: New file.
12872         * modules/lgamma: New file.
12873         * modules/log: New file.
12874         * modules/log10: New file.
12875         * modules/log1p: New file.
12876         * modules/logb: New file.
12877         * modules/modf: New file.
12878         * modules/nextafter: New file.
12879         * modules/pow: New file.
12880         * modules/remainder: New file.
12881         * modules/rint: New file.
12882         * modules/sin: New file.
12883         * modules/sinh: New file.
12884         * modules/sqrt: New file.
12885         * modules/tan: New file.
12886         * modules/tanh: New file.
12887         * modules/y0: New file.
12888         * modules/y1: New file.
12889         * modules/yn: New file.
12890         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12891         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12892         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12893         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12894         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12895         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12896         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12897         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12898         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12899         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12900         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12901         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12902         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12903         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12904         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12905         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12906         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12907         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12908         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12909         * doc/posix-functions/log.texi: Mention the 'log' module.
12910         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12911         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12912         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12913         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12914         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12915         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12916         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12917         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12918         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12919         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12920         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12921         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12922         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12923         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12924         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12925         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12926
12927 2010-01-18  Jim Meyering  <meyering@redhat.com>
12928
12929         ignore-value: relax license to LGPLv2+
12930         * modules/ignore-value (License): Relax to LGPLv2+.
12931
12932         getdate: don't leak when TZ contains two or more '"'s
12933         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12934         double quote in TZ after the first one.
12935
12936         readtokens: do not leak internal token_lengths buffer
12937         * lib/readtokens.c (readtokens): Free the local, lengths,
12938         when the supplied "token_lengths" parameter is NULL.
12939
12940 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12941
12942         Fix a couple of missing LIBTHREAD link failures on AIX.
12943         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12944         $(LIBTHREAD).
12945         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12946
12947         Link test-poll against INET_PTON_LIB.
12948         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12949         for inet_pton on Solaris 10.
12950
12951 2010-01-17  Bruno Haible  <bruno@clisp.org>
12952
12953         unistdio/*-sprintf: Fix typo in module description.
12954         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12955         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12956         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12957         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12958         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12959         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12960         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12962
12963 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12964
12965         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12966         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12967         variables in shell case patterns, for AIX and HP-UX ksh.
12968
12969         Split large sed scripts, for HP-UX sed.
12970         * modules/stdio: Split sed scripts around 50 sed commands,
12971         to avoid HP-UX limit of 99 commands, in the near future.
12972         * modules/string: Likewise.
12973         * modules/unistd: Likewise.
12974
12975         gnulib-tool: avoid writing in the current directory.
12976         * gnulib-tool (func_emit_lib_Makefile_am)
12977         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12978         not in the current directory, so concurrent gnulib-tool
12979         instances do not interfere.
12980
12981 2010-01-16  Jim Meyering  <meyering@redhat.com>
12982
12983         doc: update users.txt
12984         * users.txt: Add grep.
12985         (diffutils, gzip): Update URLs.
12986
12987 2010-01-12  Bruno Haible  <bruno@clisp.org>
12988
12989         posix_spawn: Avoid test failure on Cygwin.
12990         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12991         characters.
12992         Reported by Simon Josefsson.
12993
12994 2010-01-12  Bruno Haible  <bruno@clisp.org>
12995
12996         * tests/test-cond.c (main): When skipping the test, show the reason.
12997
12998 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12999
13000         * lib/striconv.c (str_cd_iconv): Avoid if before free.
13001
13002 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13003
13004         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
13005         VC_LIST_ALWAYS_EXCLUDE_REGEX.
13006
13007 2010-01-12  Eric Blake  <ebb9@byu.net>
13008
13009         build: guarantee AS_VAR_IF
13010         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
13011         (gl_AS_VAR_IF): Move...
13012         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
13013         Reported by Simon Josefsson.
13014
13015 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13016
13017         * lib/stdio.in.h: Fix typo.
13018
13019 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13020
13021         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
13022         libgpg-error.
13023
13024 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13025
13026         * tests/test-xalloc-die.sh: Use $EXEEXT.
13027
13028 2010-01-12  Simon Josefsson  <simon@josefsson.org>
13029             Bruno Haible  <bruno@clisp.org>
13030
13031         getlogin, getlogin_r: Avoid test failure.
13032         * tests/test-getlogin.c: Include <stdio.h>.
13033         (main): Skip the test when the function fails because stdin is not a
13034         tty.
13035         * tests/test-getlogin_r.c: Include <stdio.h>.
13036         (main): Skip the test when the function fails because stdin is not a
13037         tty.
13038
13039 2010-01-11  Eric Blake  <ebb9@byu.net>
13040
13041         tests: avoid more large file warnings
13042         * tests/test-fflush.c: Avoid warning about ftell use.
13043         * tests/test-fseek.c: Avoid warning about fseek use.
13044
13045 2010-01-10  Bruno Haible  <bruno@clisp.org>
13046
13047         nproc: Work better on Linux when /proc and /sys are not mounted.
13048         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
13049         as lower bound when, on glibc/Linux systems,
13050         sysconf (_SC_NPROCESSORS_CONF) returns 1.
13051         Suggested by Pádraig Brady <P@draigbrady.com>.
13052         Reported by Dmitry V. Levin <ldv@altlinux.org>.
13053
13054         nproc: Refactor.
13055         * lib/nproc.c (num_processors_via_affinity_mask): New function,
13056         extracted from num_processors.
13057         (num_processors): Call it.
13058
13059 2010-01-11  Jim Meyering  <meyering@redhat.com>
13060
13061         utimecmp: avoid new warning from upcoming gcc-4.5.0
13062         * lib/utimecmp.c (BILLION): Define using #define rather than an
13063         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
13064
13065 2010-01-11  Eric Blake  <ebb9@byu.net>
13066
13067         math: add portability warnings for classification macros
13068         * modules/math (Depends-on): Add warn-on-use.
13069         (Makefile.am): Provide new substitutions.
13070         * m4/math_h.m4 (gl_MATH_H): Require inline.
13071         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
13072         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
13073         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
13074         implement warnings.
13075
13076         unistd: warn on use of environ without module
13077         * modules/unistd (Depends-on): Add warn-on-use.
13078         (Makefile.am): Provide new substitutions.
13079         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
13080         * lib/unistd.in.h (environ): Wrap with a warning helper function.
13081
13082         stdio: warn on suspicious uses
13083         * modules/stdio (Depends-on): Add warn-on-use.
13084         (Makefile.am): Provide new substitutions.
13085         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
13086         fseeko.
13087         * lib/stdio.in.h (gets): Always warn on use.
13088         (fseek, ftell): Adjust when warnings are issued, and honor
13089         _GL_NO_LARGE_FILES as a way to silence the warning.
13090         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
13091         any warning about large file offsets.
13092         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
13093         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
13094         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
13095         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
13096         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
13097         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
13098         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
13099         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
13100
13101         warn-on-use: new module
13102         * modules/warn-on-use: New file.
13103         * build-aux/warn-on-use.h: Likewise.
13104         * m4/warn-on-use.m4: Likewise.
13105         * MODULES.html.sh (Support for building): Mention it.
13106
13107 2010-01-10  Bruno Haible  <bruno@clisp.org>
13108
13109         Tests for module 'unistr/u32-strdup'.
13110         * modules/unistr/u32-strdup-tests: New file.
13111         * tests/unistr/test-u32-strdup.c: New file.
13112
13113         Tests for module 'unistr/u16-strdup'.
13114         * modules/unistr/u16-strdup-tests: New file.
13115         * tests/unistr/test-u16-strdup.c: New file.
13116
13117         Tests for module 'unistr/u8-strdup'.
13118         * modules/unistr/u8-strdup-tests: New file.
13119         * tests/unistr/test-u8-strdup.c: New file.
13120         * tests/unistr/test-strdup.h: New file.
13121
13122         Tests for module 'unistr/u32-strncmp'.
13123         * modules/unistr/u32-strncmp-tests: New file.
13124         * tests/unistr/test-u32-strncmp.c: New file.
13125
13126         Tests for module 'unistr/u16-strncmp'.
13127         * modules/unistr/u16-strncmp-tests: New file.
13128         * tests/unistr/test-u16-strncmp.c: New file.
13129
13130         Tests for module 'unistr/u8-strncmp'.
13131         * modules/unistr/u8-strncmp-tests: New file.
13132         * tests/unistr/test-u8-strncmp.c: New file.
13133         * tests/unistr/test-strncmp.h: New file.
13134
13135         Tests for module 'unistr/u32-strcoll'.
13136         * modules/unistr/u32-strcoll-tests: New file.
13137         * tests/unistr/test-u32-strcoll.c: New file.
13138
13139         Tests for module 'unistr/u16-strcoll'.
13140         * modules/unistr/u16-strcoll-tests: New file.
13141         * tests/unistr/test-u16-strcoll.c: New file.
13142
13143         Tests for module 'unistr/u8-strcoll'.
13144         * modules/unistr/u8-strcoll-tests: New file.
13145         * tests/unistr/test-u8-strcoll.c: New file.
13146
13147         Tests for module 'unistr/u32-strcmp'.
13148         * modules/unistr/u32-strcmp-tests: New file.
13149         * tests/unistr/test-u32-strcmp.c: New file.
13150         * tests/unistr/test-u32-strcmp.h: New file.
13151
13152         Tests for module 'unistr/u16-strcmp'.
13153         * modules/unistr/u16-strcmp-tests: New file.
13154         * tests/unistr/test-u16-strcmp.c: New file.
13155         * tests/unistr/test-u16-strcmp.h: New file.
13156
13157         Tests for module 'unistr/u8-strcmp'.
13158         * modules/unistr/u8-strcmp-tests: New file.
13159         * tests/unistr/test-u8-strcmp.c: New file.
13160         * tests/unistr/test-u8-strcmp.h: New file.
13161         * tests/unistr/test-strcmp.h: New file.
13162
13163         Tests for module 'unistr/u32-strncat'.
13164         * modules/unistr/u32-strncat-tests: New file.
13165         * tests/unistr/test-u32-strncat.c: New file.
13166
13167         Tests for module 'unistr/u16-strncat'.
13168         * modules/unistr/u16-strncat-tests: New file.
13169         * tests/unistr/test-u16-strncat.c: New file.
13170
13171         Tests for module 'unistr/u8-strncat'.
13172         * modules/unistr/u8-strncat-tests: New file.
13173         * tests/unistr/test-u8-strncat.c: New file.
13174         * tests/unistr/test-strncat.h: New file.
13175
13176         Tests for module 'unistr/u32-strcat'.
13177         * modules/unistr/u32-strcat-tests: New file.
13178         * tests/unistr/test-u32-strcat.c: New file.
13179
13180         Tests for module 'unistr/u16-strcat'.
13181         * modules/unistr/u16-strcat-tests: New file.
13182         * tests/unistr/test-u16-strcat.c: New file.
13183
13184         Tests for module 'unistr/u8-strcat'.
13185         * modules/unistr/u8-strcat-tests: New file.
13186         * tests/unistr/test-u8-strcat.c: New file.
13187         * tests/unistr/test-strcat.h: New file.
13188
13189         Tests for module 'unistr/u32-stpncpy'.
13190         * modules/unistr/u32-stpncpy-tests: New file.
13191         * tests/unistr/test-u32-stpncpy.c: New file.
13192
13193         Tests for module 'unistr/u16-stpncpy'.
13194         * modules/unistr/u16-stpncpy-tests: New file.
13195         * tests/unistr/test-u16-stpncpy.c: New file.
13196
13197         Tests for module 'unistr/u8-stpncpy'.
13198         * modules/unistr/u8-stpncpy-tests: New file.
13199         * tests/unistr/test-u8-stpncpy.c: New file.
13200         * tests/unistr/test-stpncpy.h: New file.
13201
13202         Tests for module 'unistr/u32-strncpy'.
13203         * modules/unistr/u32-strncpy-tests: New file.
13204         * tests/unistr/test-u32-strncpy.c: New file.
13205
13206         Tests for module 'unistr/u16-strncpy'.
13207         * modules/unistr/u16-strncpy-tests: New file.
13208         * tests/unistr/test-u16-strncpy.c: New file.
13209
13210         Tests for module 'unistr/u8-strncpy'.
13211         * modules/unistr/u8-strncpy-tests: New file.
13212         * tests/unistr/test-u8-strncpy.c: New file.
13213         * tests/unistr/test-strncpy.h: New file.
13214
13215         Tests for module 'unistr/u32-stpcpy'.
13216         * modules/unistr/u32-stpcpy-tests: New file.
13217         * tests/unistr/test-u32-stpcpy.c: New file.
13218
13219         Tests for module 'unistr/u16-stpcpy'.
13220         * modules/unistr/u16-stpcpy-tests: New file.
13221         * tests/unistr/test-u16-stpcpy.c: New file.
13222
13223         Tests for module 'unistr/u8-stpcpy'.
13224         * modules/unistr/u8-stpcpy-tests: New file.
13225         * tests/unistr/test-u8-stpcpy.c: New file.
13226         * tests/unistr/test-stpcpy.h: New file.
13227
13228         Tests for module 'unistr/u32-strcpy'.
13229         * modules/unistr/u32-strcpy-tests: New file.
13230         * tests/unistr/test-u32-strcpy.c: New file.
13231
13232         Tests for module 'unistr/u16-strcpy'.
13233         * modules/unistr/u16-strcpy-tests: New file.
13234         * tests/unistr/test-u16-strcpy.c: New file.
13235
13236         Tests for module 'unistr/u8-strcpy'.
13237         * modules/unistr/u8-strcpy-tests: New file.
13238         * tests/unistr/test-u8-strcpy.c: New file.
13239         * tests/unistr/test-strcpy.h: New file.
13240
13241         Tests for module 'unistr/u32-strnlen'.
13242         * modules/unistr/u32-strnlen-tests: New file.
13243         * tests/unistr/test-u32-strnlen.c: New file.
13244
13245         Tests for module 'unistr/u16-strnlen'.
13246         * modules/unistr/u16-strnlen-tests: New file.
13247         * tests/unistr/test-u16-strnlen.c: New file.
13248
13249         Tests for module 'unistr/u8-strnlen'.
13250         * modules/unistr/u8-strnlen-tests: New file.
13251         * tests/unistr/test-u8-strnlen.c: New file.
13252         * tests/unistr/test-strnlen.h: New file.
13253
13254         Tests for module 'unistr/u32-strlen'.
13255         * modules/unistr/u32-strlen-tests: New file.
13256         * tests/unistr/test-u32-strlen.c: New file.
13257
13258         Tests for module 'unistr/u16-strlen'.
13259         * modules/unistr/u16-strlen-tests: New file.
13260         * tests/unistr/test-u16-strlen.c: New file.
13261
13262         Tests for module 'unistr/u8-strlen'.
13263         * modules/unistr/u8-strlen-tests: New file.
13264         * tests/unistr/test-u8-strlen.c: New file.
13265
13266         Tests for module 'unistr/u32-prev'.
13267         * modules/unistr/u32-prev-tests: New file.
13268         * tests/unistr/test-u32-prev.c: New file.
13269
13270         Tests for module 'unistr/u16-prev'.
13271         * modules/unistr/u16-prev-tests: New file.
13272         * tests/unistr/test-u16-prev.c: New file.
13273
13274         Tests for module 'unistr/u8-prev'.
13275         * modules/unistr/u8-prev-tests: New file.
13276         * tests/unistr/test-u8-prev.c: New file.
13277
13278         Tests for module 'unistr/u32-next'.
13279         * modules/unistr/u32-next-tests: New file.
13280         * tests/unistr/test-u32-next.c: New file.
13281
13282         Tests for module 'unistr/u16-next'.
13283         * modules/unistr/u16-next-tests: New file.
13284         * tests/unistr/test-u16-next.c: New file.
13285
13286         Tests for module 'unistr/u8-next'.
13287         * modules/unistr/u8-next-tests: New file.
13288         * tests/unistr/test-u8-next.c: New file.
13289
13290         Tests for module 'unistr/u32-strmbtouc'.
13291         * modules/unistr/u32-strmbtouc-tests: New file.
13292         * tests/unistr/test-u32-strmbtouc.c: New file.
13293
13294         Tests for module 'unistr/u16-strmbtouc'.
13295         * modules/unistr/u16-strmbtouc-tests: New file.
13296         * tests/unistr/test-u16-strmbtouc.c: New file.
13297
13298         Tests for module 'unistr/u8-strmbtouc'.
13299         * modules/unistr/u8-strmbtouc-tests: New file.
13300         * tests/unistr/test-u8-strmbtouc.c: New file.
13301
13302         Tests for module 'unistr/u32-strmblen'.
13303         * modules/unistr/u32-strmblen-tests: New file.
13304         * tests/unistr/test-u32-strmblen.c: New file.
13305
13306         Tests for module 'unistr/u16-strmblen'.
13307         * modules/unistr/u16-strmblen-tests: New file.
13308         * tests/unistr/test-u16-strmblen.c: New file.
13309
13310         Tests for module 'unistr/u8-strmblen'.
13311         * modules/unistr/u8-strmblen-tests: New file.
13312         * tests/unistr/test-u8-strmblen.c: New file.
13313
13314         Tests for module 'unistr/u32-cpy-alloc'.
13315         * modules/unistr/u32-cpy-alloc-tests: New file.
13316         * tests/unistr/test-u32-cpy-alloc.c: New file.
13317
13318         Tests for module 'unistr/u16-cpy-alloc'.
13319         * modules/unistr/u16-cpy-alloc-tests: New file.
13320         * tests/unistr/test-u16-cpy-alloc.c: New file.
13321
13322         Tests for module 'unistr/u8-cpy-alloc'.
13323         * modules/unistr/u8-cpy-alloc-tests: New file.
13324         * tests/unistr/test-u8-cpy-alloc.c: New file.
13325         * tests/unistr/test-cpy-alloc.h: New file.
13326
13327         Tests for module 'unistr/u32-mbsnlen'.
13328         * modules/unistr/u32-mbsnlen-tests: New file.
13329         * tests/unistr/test-u32-mbsnlen.c: New file.
13330
13331         Tests for module 'unistr/u16-mbsnlen'.
13332         * modules/unistr/u16-mbsnlen-tests: New file.
13333         * tests/unistr/test-u16-mbsnlen.c: New file.
13334
13335         Tests for module 'unistr/u8-mbsnlen'.
13336         * modules/unistr/u8-mbsnlen-tests: New file.
13337         * tests/unistr/test-u8-mbsnlen.c: New file.
13338
13339         Tests for module 'unistr/u32-chr'.
13340         * modules/unistr/u32-chr-tests: New file.
13341         * tests/unistr/test-u32-chr.c: New file.
13342
13343         Tests for module 'unistr/u16-chr'.
13344         * modules/unistr/u16-chr-tests: New file.
13345         * tests/unistr/test-u16-chr.c: New file.
13346
13347         Tests for module 'unistr/u8-chr'.
13348         * modules/unistr/u8-chr-tests: New file.
13349         * tests/unistr/test-u8-chr.c: New file.
13350         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13351
13352         Tests for module 'unistr/u32-cmp2'.
13353         * modules/unistr/u32-cmp2-tests: New file.
13354         * tests/unistr/test-u32-cmp2.c: New file.
13355
13356         Tests for module 'unistr/u16-cmp2'.
13357         * modules/unistr/u16-cmp2-tests: New file.
13358         * tests/unistr/test-u16-cmp2.c: New file.
13359
13360         Tests for module 'unistr/u8-cmp2'.
13361         * modules/unistr/u8-cmp2-tests: New file.
13362         * tests/unistr/test-u8-cmp2.c: New file.
13363         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13364
13365         Tests for module 'unistr/u32-cmp'.
13366         * modules/unistr/u32-cmp-tests: New file.
13367         * tests/unistr/test-u32-cmp.c: New file.
13368
13369         Tests for module 'unistr/u16-cmp'.
13370         * modules/unistr/u16-cmp-tests: New file.
13371         * tests/unistr/test-u16-cmp.c: New file.
13372
13373         Tests for module 'unistr/u8-cmp'.
13374         * modules/unistr/u8-cmp-tests: New file.
13375         * tests/unistr/test-u8-cmp.c: New file.
13376         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13377
13378         Tests for module 'unistr/u32-set'.
13379         * modules/unistr/u32-set-tests: New file.
13380         * tests/unistr/test-u32-set.c: New file.
13381
13382         Tests for module 'unistr/u16-set'.
13383         * modules/unistr/u16-set-tests: New file.
13384         * tests/unistr/test-u16-set.c: New file.
13385
13386         Tests for module 'unistr/u8-set'.
13387         * modules/unistr/u8-set-tests: New file.
13388         * tests/unistr/test-u8-set.c: New file.
13389         * tests/unistr/test-set.h: New file.
13390
13391         Tests for module 'unistr/u32-move'.
13392         * modules/unistr/u32-move-tests: New file.
13393         * tests/unistr/test-u32-move.c: New file.
13394
13395         Tests for module 'unistr/u16-move'.
13396         * modules/unistr/u16-move-tests: New file.
13397         * tests/unistr/test-u16-move.c: New file.
13398
13399         Tests for module 'unistr/u8-move'.
13400         * modules/unistr/u8-move-tests: New file.
13401         * tests/unistr/test-u8-move.c: New file.
13402         * tests/unistr/test-move.h: New file.
13403
13404         Tests for module 'unistr/u32-cpy'.
13405         * modules/unistr/u32-cpy-tests: New file.
13406         * tests/unistr/test-u32-cpy.c: New file.
13407
13408         Tests for module 'unistr/u16-cpy'.
13409         * modules/unistr/u16-cpy-tests: New file.
13410         * tests/unistr/test-u16-cpy.c: New file.
13411
13412         Tests for module 'unistr/u8-cpy'.
13413         * modules/unistr/u8-cpy-tests: New file.
13414         * tests/unistr/test-u8-cpy.c: New file.
13415         * tests/unistr/test-cpy.h: New file.
13416
13417 2010-01-09  Bruno Haible  <bruno@clisp.org>
13418
13419         Tests for module 'unistr/u32-uctomb'.
13420         * modules/unistr/u32-uctomb-tests: New file.
13421         * tests/unistr/test-u32-uctomb.c: New file.
13422
13423         Tests for module 'unistr/u16-uctomb'.
13424         * modules/unistr/u16-uctomb-tests: New file.
13425         * tests/unistr/test-u16-uctomb.c: New file.
13426
13427         Tests for module 'unistr/u8-uctomb'.
13428         * modules/unistr/u8-uctomb-tests: New file.
13429         * tests/unistr/test-u8-uctomb.c: New file.
13430
13431         Tests for module 'unistr/u32-mbtoucr'.
13432         * modules/unistr/u32-mbtoucr-tests: New file.
13433         * tests/unistr/test-u32-mbtoucr.c: New file.
13434
13435         Tests for module 'unistr/u16-mbtoucr'.
13436         * modules/unistr/u16-mbtoucr-tests: New file.
13437         * tests/unistr/test-u16-mbtoucr.c: New file.
13438
13439         Tests for module 'unistr/u8-mbtoucr'.
13440         * modules/unistr/u8-mbtoucr-tests: New file.
13441         * tests/unistr/test-u8-mbtoucr.c: New file.
13442
13443         Tests for module 'unistr/u32-mbtouc'.
13444         * modules/unistr/u32-mbtouc-tests: New file.
13445         * tests/unistr/test-u32-mbtouc.c: New file.
13446
13447         Tests for module 'unistr/u16-mbtouc'.
13448         * modules/unistr/u16-mbtouc-tests: New file.
13449         * tests/unistr/test-u16-mbtouc.c: New file.
13450
13451         Tests for module 'unistr/u8-mbtouc'.
13452         * modules/unistr/u8-mbtouc-tests: New file.
13453         * tests/unistr/test-u8-mbtouc.c: New file.
13454
13455         Tests for module 'unistr/u32-mbtouc-unsafe'.
13456         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13457         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13458         * tests/unistr/test-u32-mbtouc.h: New file.
13459
13460         Tests for module 'unistr/u16-mbtouc-unsafe'.
13461         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13462         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13463         * tests/unistr/test-u16-mbtouc.h: New file.
13464
13465         Tests for module 'unistr/u8-mbtouc-unsafe'.
13466         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13467         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13468         * tests/unistr/test-u8-mbtouc.h: New file.
13469
13470         Tests for module 'unistr/u32-mblen'.
13471         * modules/unistr/u32-mblen-tests: New file.
13472         * tests/unistr/test-u32-mblen.c: New file.
13473
13474         Tests for module 'unistr/u16-mblen'.
13475         * modules/unistr/u16-mblen-tests: New file.
13476         * tests/unistr/test-u16-mblen.c: New file.
13477
13478         Tests for module 'unistr/u8-mblen'.
13479         * modules/unistr/u8-mblen-tests: New file.
13480         * tests/unistr/test-u8-mblen.c: New file.
13481
13482         Tests for module 'unistr/u32-to-u16'.
13483         * modules/unistr/u32-to-u16-tests: New file.
13484         * tests/unistr/test-u32-to-u16.c: New file.
13485
13486         Tests for module 'unistr/u32-to-u8'.
13487         * modules/unistr/u32-to-u8-tests: New file.
13488         * tests/unistr/test-u32-to-u8.c: New file.
13489
13490         Tests for module 'unistr/u16-to-u32'.
13491         * modules/unistr/u16-to-u32-tests: New file.
13492         * tests/unistr/test-u16-to-u32.c: New file.
13493
13494         Tests for module 'unistr/u16-to-u8'.
13495         * modules/unistr/u16-to-u8-tests: New file.
13496         * tests/unistr/test-u16-to-u8.c: New file.
13497
13498         Tests for module 'unistr/u8-to-u32'.
13499         * modules/unistr/u8-to-u32-tests: New file.
13500         * tests/unistr/test-u8-to-u32.c: New file.
13501
13502         Tests for module 'unistr/u8-to-u16'.
13503         * modules/unistr/u8-to-u16-tests: New file.
13504         * tests/unistr/test-u8-to-u16.c: New file.
13505
13506         Tests for module 'unistr/u32-check'.
13507         * modules/unistr/u32-check-tests: New file.
13508         * tests/unistr/test-u32-check.c: New file.
13509
13510         Tests for module 'unistr/u16-check'.
13511         * modules/unistr/u16-check-tests: New file.
13512         * tests/unistr/test-u16-check.c: New file.
13513
13514         Tests for module 'unistr/u8-check'.
13515         * modules/unistr/u8-check-tests: New file.
13516         * tests/unistr/test-u8-check.c: New file.
13517
13518         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13519         (category_equals): New function.
13520         (main): Add more tests.
13521         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13522
13523         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13524
13525 2010-01-10  Bruno Haible  <bruno@clisp.org>
13526
13527         unistr/u*-strcoll: Try harder to distinguish different strings.
13528         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13529         compare s1 and s2 to see if they are different.
13530
13531 2010-01-10  Bruno Haible  <bruno@clisp.org>
13532
13533         unistr/u*-stpncpy: Fix the return value.
13534         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13535         description of the return value consistent with stpncpy in glibc.
13536         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13537         written non-NUL unit.
13538
13539 2010-01-10  Bruno Haible  <bruno@clisp.org>
13540
13541         unistr/u*-next: Add missing dependencies.
13542         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13543         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13544         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13545
13546 2010-01-10  Bruno Haible  <bruno@clisp.org>
13547
13548         unistr/u8-mbsnlen: Fix return value for incomplete character.
13549         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13550         u8_mblen.
13551         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13552         Remove unistr/u8-mblen.
13553         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13554         u16_mblen.
13555         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13556         Remove unistr/u16-mblen.
13557
13558 2010-01-10  Bruno Haible  <bruno@clisp.org>
13559
13560         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13561         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13562         Reported by Brian Gough <bjg@gnu.org> and
13563         Chris Clayton <chris2553@googlemail.com> via
13564         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13565
13566 2010-01-09  Bruno Haible  <bruno@clisp.org>
13567
13568         unistr/u16-to-u32: Reject invalid input.
13569         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13570         u16_mbtouc.
13571         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13572         Remove unistr/u16-mbtouc.
13573
13574         unistr/u16-to-u8: Reject invalid input.
13575         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13576         u16_mbtouc.
13577         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13578         Remove unistr/u16-mbtouc.
13579
13580         unistr/u8-to-u32: Reject invalid input.
13581         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13582         u8_mbtouc.
13583         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13584         Remove unistr/u8-mbtouc.
13585
13586         unistr/u8-to-u16: Reject invalid input.
13587         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13588         u8_mbtouc.
13589         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13590         Remove unistr/u8-mbtouc.
13591
13592 2010-01-09  Bruno Haible  <bruno@clisp.org>
13593
13594         Tests for module 'getlogin'.
13595         * modules/getlogin-tests: New file.
13596         * tests/test-getlogin.c: New file.
13597
13598         New module 'getlogin'.
13599         * lib/unistd.in.h (getlogin): New declaration.
13600         * lib/getlogin.c: New file.
13601         * m4/getlogin.m4: New file.
13602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13603         HAVE_GETLOGIN.
13604         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13605         HAVE_GETLOGIN.
13606         * modules/getlogin: New file.
13607         * doc/posix-functions/getlogin.texi: Mention the new module.
13608         Reported by John W. Eaton <jwe@gnu.org>.
13609
13610 2010-01-09  Bruno Haible  <bruno@clisp.org>
13611
13612         getlogin_r: Support for native Windows.
13613         * lib/getlogin_r.c: Include <windows.h>
13614         (getlogin_r): Implement for native Windows.
13615         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13616         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13617         via John W. Eaton <jwe@gnu.org>.
13618
13619 2010-01-09  Bruno Haible  <bruno@clisp.org>
13620
13621         getlogin_r: Small fixes.
13622         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13623         succeeds.
13624         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13625         before testing whether getlogin_r is declared. No need to set
13626         HAVE_DECL_GETLOGIN_R to 1.
13627         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13628
13629 2010-01-09  Bruno Haible  <bruno@clisp.org>
13630
13631         * lib/unistd.in.h (getlogin_r): Add comment.
13632
13633 2010-01-09  Bruno Haible  <bruno@clisp.org>
13634
13635         Tests for module 'getlogin_r'.
13636         * modules/getlogin_r-tests: New file.
13637         * tests/test-getlogin_r.c: New file.
13638
13639 2010-01-09  Jim Meyering  <meyering@redhat.com>
13640
13641         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13642         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13643         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13644
13645 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13646
13647         * lib/dup2.c (rpl_dup2): Improve comment.
13648
13649 2010-01-08  Eric Blake  <ebb9@byu.net>
13650
13651         maint.mk: allow packages to add makefile @@ exceptions
13652         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13653         (sc_makefile_check): Rename...
13654         (sc_makefile_at_at_check): ...to this, and use hook.
13655
13656         dup2: work around mingw bug
13657         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13658         Reported by Simon Josefsson.
13659
13660 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13661
13662         glob: Fix C++ compilation.
13663         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13664         C++.
13665
13666 2010-01-07  Bruno Haible  <bruno@clisp.org>
13667
13668         Fix indentation of wctype.in.h, broken since 2007-01-06.
13669         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13670
13671 2010-01-07  Bruno Haible  <bruno@clisp.org>
13672
13673         mbslen: Avoid collision with system function.
13674         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13675         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13676         * m4/mbslen.m4: New file.
13677         * modules/mbslen (Files): Add it.
13678         (configure.ac): Invoke gl_MBSLEN.
13679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13680         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13681         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13682         via Ian Beckwith <ianb@erislabs.net>.
13683
13684 2010-01-07  Bruno Haible  <bruno@clisp.org>
13685
13686         dirent: Document the last fix.
13687         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13688
13689 2010-01-07  Bruno Haible  <bruno@clisp.org>
13690
13691         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13692         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13693         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13694         va_list are defined.
13695         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13696         Reported by Eric Blake.
13697
13698 2010-01-07  Bruno Haible  <bruno@clisp.org>
13699
13700         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13701         * modules/xlist (Depends-on): Add 'list',
13702         * modules/xoset (Depends-on): Add 'oset'.
13703         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13704
13705 2010-01-07  Bruno Haible  <bruno@clisp.org>
13706
13707         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13708         * doc/posix-functions/strncasecmp.texi: Likewise.
13709
13710 2010-01-07  Bruno Haible  <bruno@clisp.org>
13711
13712         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13713
13714 2010-01-07  John W. Eaton  <jwe@octave.org>
13715
13716         wctype: allow C++ use
13717         * lib/wctype.in.h: Add extern "C" block for C++.
13718
13719 2010-01-06  Eric Blake  <ebb9@byu.net>
13720
13721         maint.mk: detect incorrect GFDL usage
13722         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13723
13724 2010-01-06  Jim Meyering  <meyering@redhat.com>
13725         and Eric Blake  <ebb9@byu.net>
13726
13727         maint.mk: ignore multi-line copyright in NEWS
13728         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13729
13730 2010-01-06  Eric Blake  <ebb9@byu.net>
13731
13732         select: add missing dependency
13733         * modules/select-tests (Depends-on): Move sockets dependency...
13734         * modules/select (Depends-on): ...here.
13735         Reported by Ian Beckwith.
13736
13737         doc: regenerate INSTALL
13738         * doc/INSTALL: Reflect recent autoconf update.
13739         * doc/INSTALL.ISO: Likewise.
13740         * doc/INSTALL.UTF-8: Likewise.
13741
13742         pread: fix compilation on glibc
13743         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13744         Reported by Ralf Wildenhues.
13745
13746         dirent: fix test failure
13747         * lib/dirent.in.h (includes): Guarantee ino_t.
13748         Reported by Ralf Wildenhues.
13749
13750 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13751
13752         linkat, renameat: avoid bad free
13753         * lib/at-func2.c (at_func2): Fix typo.
13754         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13755
13756 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13757
13758         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13759         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13760         to avoid failure of symlink test later.
13761
13762 2010-01-06  Eric Blake  <ebb9@byu.net>
13763
13764         stdio, unistd: guarantee ssize_t
13765         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13766         2008 are exposed when needed.
13767         * lib/stdio.in.h (includes): Likewise.
13768         Reported by Ralf Wildenhues.
13769
13770 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13771
13772         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13773         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13774         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13775
13776 2010-01-06  Jim Meyering  <meyering@redhat.com>
13777
13778         readtokens: this module *does* require xalloc.h
13779         It uses only functions that were omitted by the old syntax-check rule.
13780         * lib/readtokens.c: Include "xalloc.h" once again.
13781         * modules/readtokens (Depends-on): Add xalloc.
13782         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13783
13784 2010-01-05  Eric Blake  <ebb9@byu.net>
13785
13786         maint: support 'make announcement' from a VPATH build
13787         * top/maint.mk (announcement): Look for correct NEWS file.
13788
13789 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13790
13791         utimens (fdutimens): ignore a negative FD, per contract
13792         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13793         when we have a valid file descriptor.  Otherwise, using a brand
13794         new glibc (with just-patched futimens that now fails with EBADF)
13795         would cause this function to fail with ENOSYS.
13796         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13797         See also http://bugzilla.redhat.com/552320.
13798
13799 2010-01-05  Eric Blake  <ebb9@byu.net>
13800
13801         strcase: document what it provides
13802         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13803         gnulib module.
13804         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13805         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13806
13807 2010-01-05  Jim Meyering  <meyering@redhat.com>
13808
13809         maint: remove useless inclusions of "xalloc.h"
13810         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13811         * lib/readtokens.c: Likewise.
13812         * lib/same.c: Likewise.
13813         * modules/getloadavg (Depends-on): Remove xalloc.
13814         * modules/readtokens: Likewise.
13815         * modules/same: Likewise.
13816
13817         maint.mk: include 4 more function names in alloca.h-checking regexp
13818         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13819         regexp.  Before, we would give a false-positive (saying alloca.h
13820         is included unnecessarily) when the only uses involved omitted symbols.
13821
13822         xalloc.h: use consistent formatting
13823         * lib/xalloc.h: Move declarations to start in the first column.
13824
13825 2010-01-05  Eric Blake  <ebb9@byu.net>
13826
13827         mkdir: avoid xalloc
13828         * lib/mkdir.c (includes): Drop unused header.
13829         Reported by John W. Eaton.
13830
13831 2010-01-04  Jim Meyering  <meyering@redhat.com>
13832
13833         nl_langinfo: avoid configure-time syntax error
13834         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13835         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13836         the empty string.  Don't let that provoke a shell syntax error.
13837
13838         regcomp, regexec, fnmatch: avoid array bounds read error
13839         * lib/regcomp.c (build_equiv_class): From glibc:
13840         Use only the low 24 bits of a findidx return value as an index
13841         into the weights array.  Patch by Ulrich Drepper:
13842         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13843         * lib/regexec.c (check_node_accept_bytes): Likewise.
13844         * lib/fnmatch_loop.c (FCT): Likewise.
13845
13846         regcomp: skip collseq lookup when there are no rules
13847         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13848         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13849
13850         regcomp: recognize ill-formed { } expressions
13851         * lib/regcomp.c (parse_dup_op): From glibc:
13852         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13853
13854         regcomp: fix typo in comment
13855         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13856         s/satisfy/satisfies/.
13857
13858         regcomp: sync from glibc: remove dead store
13859         * lib/regcomp.c (duplicate_node_closure): Remove useless
13860         search_duplicated_node call and dead store.
13861
13862         regcomp: sync from glibc; always use nl_langinfo
13863         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13864         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13865         * modules/regex (Depends-on): Add nl_langinfo.
13866
13867 2010-01-04  Eric Blake  <ebb9@byu.net>
13868
13869         fdopendir: fix configure test
13870         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13871
13872 2010-01-01  Bruno Haible  <bruno@clisp.org>
13873
13874         wchar: Remove unused configure check.
13875         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13876
13877 2010-01-01  Eric Blake  <ebb9@byu.net>
13878
13879         headers: make check of system header explicit
13880         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13881         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13882         ourselves.
13883         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13884         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13885         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13886         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13887         internals.
13888         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13889         missing.
13890         Suggested by Bruno Haible.
13891
13892 2010-01-01  Jim Meyering  <meyering@redhat.com>
13893
13894         ChangeLog: tweak to eliminate unnecessary copyright line
13895         * ChangeLog: Remove a copyright line that was mistakenly updated
13896         by today's update-copyright run.  Reported by Eric Blake.
13897
13898         test-update-copyright: don't let envvar setting cause test failure
13899         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13900
13901 2010-01-01  Bruno Haible  <bruno@clisp.org>
13902
13903         localename: Avoid gcc warning.
13904         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13905         function if it is not used.
13906
13907 2010-01-01  Jim Meyering  <meyering@redhat.com>
13908
13909         update nearly all FSF copyright year lists to include 2010
13910         Use the same procedure as for 2009, outlined in
13911         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13912
13913         version-etc: set COPYRIGHT_YEAR to 2010
13914         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13915
13916 2009-12-31  Eric Blake  <ebb9@byu.net>
13917
13918         doc: correct availability of cygwin 1.5.x getopt
13919         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13920         variables.
13921         * doc/posix-functions/opterr.texi (opterr): Likewise.
13922         * doc/posix-functions/optind.texi (optind): Likewise.
13923         * doc/posix-functions/optopt.texi (optopt): Likewise.
13924         * doc/posix-functions/tzname.texi (tzname): Likewise.
13925
13926         openat: update maintainer
13927         * modules/openat (Maintainer): Add myself.
13928
13929         utimens: avoid shadowing warning
13930         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13931         buffers into one, to avoid shadowing, as well as avoiding a
13932         redundant stat.
13933         Reported by Jim Meyering.
13934
13935         test-dup2: avoid compiler warning
13936         * tests/test-dup2.c (is_inheritable): Only define if used.
13937
13938 2010-01-01  Bruno Haible  <bruno@clisp.org>
13939
13940         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13941         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13942         defined, use wctomb instead of wcrtomb.
13943
13944 2010-01-01  Bruno Haible  <bruno@clisp.org>
13945
13946         iconv: Reject native Solaris iconv.
13947         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13948         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13949
13950 2009-12-31  Bruno Haible  <bruno@clisp.org>
13951
13952         * tests/test-signal.c (main): Remove test of 'SIG'.
13953
13954 2009-12-31  Bruno Haible  <bruno@clisp.org>
13955
13956         spawn: Fix incomplete fix.
13957         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13958         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13959         warnings for GNULIB_POSIXCHECK again.
13960         Reported by Eric Blake.
13961
13962 2009-12-31  Bruno Haible  <bruno@clisp.org>
13963
13964         Avoid namespace pollution on glibc systems.
13965         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13966         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13967         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13968         glibc systems.
13969
13970 2009-12-31  Bruno Haible  <bruno@clisp.org>
13971
13972         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13973         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13974         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13975         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13976         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13977         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13978         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13979
13980 2009-12-31  Bruno Haible  <bruno@clisp.org>
13981
13982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13983         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13984         afterwards.
13985
13986 2009-12-31  Bruno Haible  <bruno@clisp.org>
13987
13988         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13989         SYS_UTSNAME_H.
13990
13991 2009-12-31  Bruno Haible  <bruno@clisp.org>
13992
13993         spawn: Fix misapplied patch.
13994         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13995         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13996         warnings for GNULIB_POSIXCHECK.
13997
13998 2009-12-31  Bruno Haible  <bruno@clisp.org>
13999
14000         times: Update after sys_times changed.
14001         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
14002         * modules/times (Files): Add it.
14003         (configure.ac): Invoke gl_FUNC_TIMES.
14004
14005 2009-12-31  Bruno Haible  <bruno@clisp.org>
14006
14007         Use AC_C_INLINE where necessary.
14008         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
14009         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14010         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14011         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
14012         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14013         * m4/mbiter.m4 (gl_MBITER): Likewise.
14014         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14015         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14016         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
14017         * modules/u64 (configure.ac): Likewise.
14018
14019 2009-12-31  Bruno Haible  <bruno@clisp.org>
14020
14021         Use AC_C_INLINE instead of module 'inline' where possible.
14022         * modules/inline (Description): Clarify purpose.
14023         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
14024         * modules/count-one-bits (Depends-on): Remove inline.
14025         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
14026         * modules/openat (Depends-on): Remove inline.
14027         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
14028         instead of depending on module 'inline'.
14029         * modules/filevercmp (Depends-on, configure.ac): Likewise.
14030         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
14031         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
14032         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
14033         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
14034         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
14035         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
14036         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
14037         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
14038         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
14039         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
14040         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
14041         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
14042         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
14043         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
14044         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
14045         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
14046         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
14047         Likewise.
14048         * modules/unictype/property-ascii-hex-digit (Depends-on,
14049         configure.ac): Likewise.
14050         * modules/unictype/property-bidi-arabic-digit (Depends-on,
14051         configure.ac): Likewise.
14052         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
14053         configure.ac): Likewise.
14054         * modules/unictype/property-bidi-block-separator (Depends-on,
14055         configure.ac): Likewise.
14056         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
14057         configure.ac): Likewise.
14058         * modules/unictype/property-bidi-common-separator (Depends-on,
14059         configure.ac): Likewise.
14060         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
14061         Likewise.
14062         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
14063         configure.ac): Likewise.
14064         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
14065         configure.ac): Likewise.
14066         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
14067         configure.ac): Likewise.
14068         * modules/unictype/property-bidi-european-digit (Depends-on,
14069         configure.ac): Likewise.
14070         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
14071         configure.ac): Likewise.
14072         * modules/unictype/property-bidi-left-to-right (Depends-on,
14073         configure.ac): Likewise.
14074         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
14075         configure.ac): Likewise.
14076         * modules/unictype/property-bidi-other-neutral (Depends-on,
14077         configure.ac): Likewise.
14078         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
14079         Likewise.
14080         * modules/unictype/property-bidi-segment-separator (Depends-on,
14081         configure.ac): Likewise.
14082         * modules/unictype/property-bidi-whitespace (Depends-on,
14083         configure.ac): Likewise.
14084         * modules/unictype/property-combining (Depends-on, configure.ac):
14085         Likewise.
14086         * modules/unictype/property-composite (Depends-on, configure.ac):
14087         Likewise.
14088         * modules/unictype/property-currency-symbol (Depends-on,
14089         configure.ac): Likewise.
14090         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
14091         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
14092         Likewise.
14093         * modules/unictype/property-default-ignorable-code-point (Depends-on,
14094         configure.ac): Likewise.
14095         * modules/unictype/property-deprecated (Depends-on, configure.ac):
14096         Likewise.
14097         * modules/unictype/property-diacritic (Depends-on, configure.ac):
14098         Likewise.
14099         * modules/unictype/property-extender (Depends-on, configure.ac):
14100         Likewise.
14101         * modules/unictype/property-format-control (Depends-on, configure.ac):
14102         Likewise.
14103         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
14104         Likewise.
14105         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
14106         Likewise.
14107         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
14108         Likewise.
14109         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
14110         Likewise.
14111         * modules/unictype/property-hyphen (Depends-on, configure.ac):
14112         Likewise.
14113         * modules/unictype/property-id-continue (Depends-on, configure.ac):
14114         Likewise.
14115         * modules/unictype/property-id-start (Depends-on, configure.ac):
14116         Likewise.
14117         * modules/unictype/property-ideographic (Depends-on, configure.ac):
14118         Likewise.
14119         * modules/unictype/property-ids-binary-operator (Depends-on,
14120         configure.ac): Likewise.
14121         * modules/unictype/property-ids-trinary-operator (Depends-on,
14122         configure.ac): Likewise.
14123         * modules/unictype/property-ignorable-control (Depends-on,
14124         configure.ac): Likewise.
14125         * modules/unictype/property-iso-control (Depends-on, configure.ac):
14126         Likewise.
14127         * modules/unictype/property-join-control (Depends-on, configure.ac):
14128         Likewise.
14129         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
14130         Likewise.
14131         * modules/unictype/property-line-separator (Depends-on, configure.ac):
14132         Likewise.
14133         * modules/unictype/property-logical-order-exception (Depends-on,
14134         configure.ac): Likewise.
14135         * modules/unictype/property-lowercase (Depends-on, configure.ac):
14136         Likewise.
14137         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
14138         * modules/unictype/property-non-break (Depends-on, configure.ac):
14139         Likewise.
14140         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
14141         Likewise.
14142         * modules/unictype/property-numeric (Depends-on, configure.ac):
14143         Likewise.
14144         * modules/unictype/property-other-alphabetic (Depends-on,
14145         configure.ac): Likewise.
14146         * modules/unictype/property-other-default-ignorable-code-point
14147         (Depends-on, configure.ac): Likewise.
14148         * modules/unictype/property-other-grapheme-extend (Depends-on,
14149         configure.ac): Likewise.
14150         * modules/unictype/property-other-id-continue (Depends-on,
14151         configure.ac): Likewise.
14152         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
14153         Likewise.
14154         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
14155         Likewise.
14156         * modules/unictype/property-other-math (Depends-on, configure.ac):
14157         Likewise.
14158         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
14159         Likewise.
14160         * modules/unictype/property-paired-punctuation (Depends-on,
14161         configure.ac): Likewise.
14162         * modules/unictype/property-paragraph-separator (Depends-on,
14163         configure.ac): Likewise.
14164         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
14165         Likewise.
14166         * modules/unictype/property-pattern-white-space (Depends-on,
14167         configure.ac): Likewise.
14168         * modules/unictype/property-private-use (Depends-on, configure.ac):
14169         Likewise.
14170         * modules/unictype/property-punctuation (Depends-on, configure.ac):
14171         Likewise.
14172         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
14173         Likewise.
14174         * modules/unictype/property-radical (Depends-on, configure.ac):
14175         Likewise.
14176         * modules/unictype/property-sentence-terminal (Depends-on,
14177         configure.ac): Likewise.
14178         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
14179         Likewise.
14180         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
14181         * modules/unictype/property-terminal-punctuation (Depends-on,
14182         configure.ac): Likewise.
14183         * modules/unictype/property-titlecase (Depends-on, configure.ac):
14184         Likewise.
14185         * modules/unictype/property-unassigned-code-value (Depends-on,
14186         configure.ac): Likewise.
14187         * modules/unictype/property-unified-ideograph (Depends-on,
14188         configure.ac): Likewise.
14189         * modules/unictype/property-uppercase (Depends-on, configure.ac):
14190         Likewise.
14191         * modules/unictype/property-variation-selector (Depends-on,
14192         configure.ac): Likewise.
14193         * modules/unictype/property-white-space (Depends-on, configure.ac):
14194         Likewise.
14195         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
14196         Likewise.
14197         * modules/unictype/property-xid-start (Depends-on, configure.ac):
14198         Likewise.
14199         * modules/unictype/property-zero-width (Depends-on, configure.ac):
14200         Likewise.
14201         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
14202         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
14203         Likewise.
14204
14205 2009-12-31  Bruno Haible  <bruno@clisp.org>
14206
14207         Remove unnecessary AC_C_INLINE invocation.
14208         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
14209         since 2009-08-21.
14210
14211 2009-12-31  Jim Meyering  <meyering@redhat.com>
14212
14213         maint.mk: don't require explicit gpg_key_ID in cfg.mk
14214         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
14215         With this change, we can all remove the gpg_key_ID = ... definition
14216         from our respective cfg.mk files.
14217
14218         maint.mk: create announcement template in ~/, not in /tmp
14219         * top/maint.mk (emit_upload_commands): Adjust.
14220         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
14221         Remove temporary file, .ci-msg.
14222
14223 2009-12-31  Eric Blake  <ebb9@byu.net>
14224
14225         link-warning: always build headers with link warnings
14226         * modules/arpa_inet (Makefile.am): Always build replacement
14227         header.
14228         * modules/ctype (Makefile.am): Likewise.
14229         * modules/dirent (Makefile.am): Likewise.
14230         * modules/inttypes (Makefile.am): Likewise.
14231         * modules/langinfo (Makefile.am): Likewise.
14232         * modules/locale (Makefile.am): Likewise.
14233         * modules/spawn (Makefile.am): Likewise.
14234         * modules/sys_file (Makefile.am): Likewise.
14235         * modules/sys_ioctl (Makefile.am): Likewise.
14236         * modules/sys_select (Makefile.am): Likewise.
14237         * modules/sys_socket (Makefile.am): Likewise.
14238         * modules/sys_times (Makefile.am): Likewise.
14239         * modules/sys_utsname (Makefile.am): Likewise.
14240         * modules/sys_wait (Makefile.am): Likewise.
14241         * modules/wchar (Makefile.am): Likewise.
14242         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
14243         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
14244         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
14245         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
14246         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
14247         Likewise.
14248         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14249         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14250         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
14251         Likewise.
14252         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
14253         Likewise.
14254         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14255         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
14256         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
14257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14258         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14259         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14260         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14261         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
14262         (gl_WCHAR_H_DEFAULTS): Likewise.
14263
14264 2009-12-31  Eric Blake  <ebb9@byu.net>
14265
14266         signal, spawn: use link warnings
14267         * lib/signal.in.h (sigset_t): Make unconditional.
14268         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
14269         (sigpending, sigprocmask, sigaction): Add link warnings.
14270         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
14271         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
14272         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
14273         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
14274         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
14275         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
14276         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
14277         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
14278         (posix_spawn_file_actions_destroy)
14279         (posix_spawn_file_actions_addopen)
14280         (posix_spawn_file_actions_addclose)
14281         (posix_spawn_file_actions_adddup2): Likewise.
14282         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14283         * tests/test-signal.c (main): Enhance test.
14284
14285         spawn: improve wrapper support
14286         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14287         (gl_SPAWN_H_DEFAULTS): New defaults.
14288         * modules/spawn (Makefile.am): Substitute them.
14289         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14290         Only declare if missing or broken.
14291
14292         sys_times, sys_utsname: use include_next
14293         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14294         header.
14295         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14296         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14297         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14298         * modules/sys_times (Depends-on): Add include_next.
14299         (Makefile.am): Substitute additional values.
14300         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14301         * lib/sys_times.in.h (includes): Include native header, if
14302         available.
14303         * lib/sys_utsname.in.h (includes): Likewise.
14304         * tests/test-sys_times.c (main): Enhance test.
14305
14306         fdutimensat: revert prior patch
14307         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14308         utimens.h.
14309         Reported by Bruno Haible.
14310
14311 2009-12-30  Eric Blake  <ebb9@byu.net>
14312
14313         sys_wait: drop link-warning dependency
14314         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14315         link-warning efforts.
14316         * lib/sys_wait.in.h: Likewise.
14317
14318         fdutimensat: remove bogus dependency
14319         * modules/fdutimensat (Depends-on): Drop inline.
14320
14321         unistd: fix typo
14322         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14323
14324 2009-12-30  Bruno Haible  <bruno@clisp.org>
14325
14326         Fix compilation error with Solaris cc.
14327         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14328         * lib/unicase/u16-is-invariant.c: Likewise.
14329         * lib/unicase/u32-is-invariant.c: Likewise.
14330         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14331
14332 2009-12-30  Bruno Haible  <bruno@clisp.org>
14333
14334         Fix test crash.
14335         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14336         locales.
14337         Reported by Simon Josefsson <simon@josefsson.org>.
14338
14339 2009-12-30  Bruno Haible  <bruno@clisp.org>
14340
14341         Fix compilation error on most platforms.
14342         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14343         Reported by Simon Josefsson <simon@josefsson.org>
14344         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14345
14346 2009-12-30  Eric Blake  <ebb9@byu.net>
14347
14348         futimens, utimensat: work around ntfs-3g bug
14349         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14350         a ctime bug is present, and expand workaround to cover ntfs-3g.
14351         * lib/utimens.c (fdutimens, lutimens): Likewise.
14352         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14353         (validate_timespec): Adjust return value.
14354         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14355         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14356         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14357
14358 2009-12-29  Eric Blake  <ebb9@byu.net>
14359
14360         link-warning: make usage consistent
14361         * modules/ctype (Depends-on): Add link-warning.
14362         (Makefile.am): Update rules accordingly.
14363         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14364         * modules/locale (Depends-on, Makefile.am): Likewise.
14365         * modules/sys_file (Makefile.am): Likewise.
14366         * modules/getopt-posix (Makefile.am): Delete unused link warning
14367         efforts.
14368         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14369         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14370         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14371         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14372
14373         stdio: remove unused variables
14374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14375         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14376         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14377
14378         tests: test more substitute headers
14379         * modules/ctype-tests: New file.
14380         * modules/dirent-tests: Likewise.
14381         * modules/spawn-tests: Likewise.
14382         * modules/sys_file-tests: Likewise.
14383         * modules/sys_ioctl-tests: Likewise.
14384         * modules/sys_wait-tests: Likewise.
14385         * tests/test-ctype.c: Likewise.
14386         * tests/test-dirent.c: Likewise.
14387         * tests/test-spawn.c: Likewise.
14388         * tests/test-sys_file.c: Likewise.
14389         * tests/test-sys_ioctl.c: Likewise.
14390         * tests/test-sys_wait.c: Likewise.
14391         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14392         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14393         whether or not flock is in use.
14394
14395         tests: remove License section from module
14396         * modules/arpa_inet-tests: Remove unneeded section.
14397         * modules/byteswap-tests: Likewise.
14398         * modules/ceilf-tests: Likewise.
14399         * modules/ceill-tests: Likewise.
14400         * modules/crypto/des-tests: Likewise.
14401         * modules/crypto/gc-arcfour-tests: Likewise.
14402         * modules/crypto/gc-arctwo-tests: Likewise.
14403         * modules/crypto/gc-des-tests: Likewise.
14404         * modules/crypto/gc-hmac-md5-tests: Likewise.
14405         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14406         * modules/crypto/gc-md2-tests: Likewise.
14407         * modules/crypto/gc-md4-tests: Likewise.
14408         * modules/crypto/gc-md5-tests: Likewise.
14409         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14410         * modules/crypto/gc-rijndael-tests: Likewise.
14411         * modules/crypto/gc-sha1-tests: Likewise.
14412         * modules/crypto/gc-tests: Likewise.
14413         * modules/crypto/md2-tests: Likewise.
14414         * modules/crypto/md4-tests: Likewise.
14415         * modules/fcntl-h-tests: Likewise.
14416         * modules/floorf-tests: Likewise.
14417         * modules/floorl-tests: Likewise.
14418         * modules/frexp-nolibm-tests: Likewise.
14419         * modules/frexp-tests: Likewise.
14420         * modules/frexpl-nolibm-tests: Likewise.
14421         * modules/frexpl-tests: Likewise.
14422         * modules/getaddrinfo-tests: Likewise.
14423         * modules/inttypes-tests: Likewise.
14424         * modules/isfinite-tests: Likewise.
14425         * modules/isinf-tests: Likewise.
14426         * modules/ldexpl-tests: Likewise.
14427         * modules/locale-tests: Likewise.
14428         * modules/math-tests: Likewise.
14429         * modules/netdb-tests: Likewise.
14430         * modules/netinet_in-tests: Likewise.
14431         * modules/printf-frexp-tests: Likewise.
14432         * modules/printf-frexpl-tests: Likewise.
14433         * modules/priv-set-tests: Likewise.
14434         * modules/random_r-tests: Likewise.
14435         * modules/round-tests: Likewise.
14436         * modules/roundf-tests: Likewise.
14437         * modules/roundl-tests: Likewise.
14438         * modules/search-tests: Likewise.
14439         * modules/select-tests: Likewise.
14440         * modules/signal-tests: Likewise.
14441         * modules/stdbool-tests: Likewise.
14442         * modules/stddef-tests: Likewise.
14443         * modules/stdint-tests: Likewise.
14444         * modules/stdio-tests: Likewise.
14445         * modules/stdlib-tests: Likewise.
14446         * modules/string-tests: Likewise.
14447         * modules/strings-tests: Likewise.
14448         * modules/sys_select-tests: Likewise.
14449         * modules/sys_socket-tests: Likewise.
14450         * modules/sys_stat-tests: Likewise.
14451         * modules/sys_time-tests: Likewise.
14452         * modules/sys_utsname-tests: Likewise.
14453         * modules/sysexits-tests: Likewise.
14454         * modules/time-tests: Likewise.
14455         * modules/trunc-tests: Likewise.
14456         * modules/truncf-tests: Likewise.
14457         * modules/truncl-tests: Likewise.
14458         * modules/tsearch-tests: Likewise.
14459         * modules/unistd-tests: Likewise.
14460         * modules/wchar-tests: Likewise.
14461         * modules/wctype-tests: Likewise.
14462
14463         tests: fix license on several tests
14464         * tests/test-des.c: Update to GPLv3+.
14465         * tests/test-flock.c: Likewise.
14466         * tests/test-fsync.c: Likewise.
14467         * tests/test-futimens.h: Likewise.
14468         * tests/test-gc-arcfour.c: Likewise.
14469         * tests/test-gc-arctwo.c: Likewise.
14470         * tests/test-gc-des.c: Likewise.
14471         * tests/test-gc-hmac-md5.c: Likewise.
14472         * tests/test-gc-hmac-sha1.c: Likewise.
14473         * tests/test-gc-md2.c: Likewise.
14474         * tests/test-gc-md4.c: Likewise.
14475         * tests/test-gc-md5.c: Likewise.
14476         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14477         * tests/test-gc-rijndael.c: Likewise.
14478         * tests/test-gc-sha1.c: Likewise.
14479         * tests/test-gc.c: Likewise.
14480         * tests/test-getcwd.c: Likewise.
14481         * tests/test-link.c: Likewise.
14482         * tests/test-link.h: Likewise.
14483         * tests/test-lutimens.h: Likewise.
14484         * tests/test-md2.c: Likewise.
14485         * tests/test-md4.c: Likewise.
14486         * tests/test-mkdir.h: Likewise.
14487         * tests/test-rename.c: Likewise.
14488         * tests/test-rename.h: Likewise.
14489         * tests/test-safe-alloc.c: Likewise.
14490         * tests/test-utimens-common.h: Likewise.
14491         * tests/test-utimens.h: Likewise.
14492
14493         maint: sync license texts
14494         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14495         * doc/gpl-3.0.texi: Revert copyright year update.
14496         * doc/lgpl-3.0.texi: Likewise.
14497
14498 2009-12-29  Jim Meyering  <meyering@redhat.com>
14499
14500         update nearly all FSF copyright year lists to include 2009
14501         The files named by the following are exempted:
14502             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14503               test -f "$dst" && { echo "$dst"; continue; }
14504               test -d "$dst" || continue
14505               echo "$dst"/$(basename "$src")
14506             done > exempt
14507             git ls-files tests/unictype >> exempt
14508         In the remaining files, convert to all-interval notation if
14509         - there is already at least one year interval like 2000-2003
14510         - the file is maintained by me
14511         - the file is in lib/uni*/, where that style already prevails
14512         Otherwise, use update-copyright's default.
14513
14514 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14515         and Eric Blake  <ebb9@byu.net>
14516
14517         tests: don't require debug system() to pass
14518         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14519         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14520         * tests/test-unlink.h (test_unlink_func): Likewise.
14521         * tests/test-fstatat.c (main): ...into callers.
14522         * tests/test-lstat.c (main): Likewise.
14523         * tests/test-rmdir.c (main): Likewise.
14524         * tests/test-unlink.c (main): Likewise.
14525         * tests/test-unlinkat.c (main): Likewise.
14526         * tests/test-areadlink-with-size.c (main): Don't require a
14527         debug-only system call to pass, aiding cross-testing to mingw.
14528         * tests/test-areadlink.c (main): Likewise.
14529         * tests/test-areadlinkat-with-size.c (main): Likewise.
14530         * tests/test-areadlinkat.c (main): Likewise.
14531         * tests/test-canonicalize-lgpl.c (main): Likewise.
14532         * tests/test-canonicalize.c (main): Likewise.
14533         * tests/test-chown.c (main): Likewise.
14534         * tests/test-fchownat.c (main): Likewise.
14535         * tests/test-lchown.c (main): Likewise.
14536         * tests/test-fdutimensat.c (main): Likewise.
14537         * tests/test-futimens.c (main): Likewise.
14538         * tests/test-link.c (main): Likewise.
14539         * tests/test-linkat.c (main): Likewise.
14540         * tests/test-mkdir.c (main): Likewise.
14541         * tests/test-mkdirat.c (main): Likewise.
14542         * tests/test-mkfifo.c (main): Likewise.
14543         * tests/test-mkfifoat.c (main): Likewise.
14544         * tests/test-mknod.c (main): Likewise.
14545         * tests/test-readlink.c (main): Likewise.
14546         * tests/test-remove.c (main): Likewise.
14547         * tests/test-rename.c (main): Likewise.
14548         * tests/test-renameat.c (main): Likewise.
14549         * tests/test-symlink.c (main): Likewise.
14550         * tests/test-symlinkat.c (main): Likewise.
14551         * tests/test-utimens.c (main): Likewise.
14552         * tests/test-utimensat.c (main): Likewise.
14553
14554 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14555
14556         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14557         on $(UNUSED_PARAMETER_H) to avoid build failure.
14558
14559 2009-12-28  Jim Meyering  <meyering@redhat.com>
14560
14561         update-copyright: you may specify a max. line length other than 72
14562         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14563
14564         maint: use consistent FSF copyright line syntax
14565         * lib/posixtm.c: Add missing comma in FSF copyright line.
14566         * lib/posixtm.h: Likewise.
14567         * lib/getugroups.c: Add missing ", Inc.".
14568
14569         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14570         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14571         FSF copyright line.  Remove trailing blanks.
14572
14573 2009-12-28  Eric Blake  <ebb9@byu.net>
14574
14575         test-dup2: reduce dependencies
14576         * modules/cloexec (Configure.ac): Set witness.
14577         * modules/dup2-tests (Depends-on): Drop cloexec.
14578         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14579         not present.
14580         Suggested by Bruno Haible.
14581
14582 2009-12-26  Bruno Haible  <bruno@clisp.org>
14583
14584         Remove an unneeded dependency.
14585         * modules/fseterr (Depends-on): Remove dup2.
14586
14587 2009-12-26  Eric Blake  <ebb9@byu.net>
14588
14589         tests: use macros.h in more places
14590         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14591         (ASSERT_STREAM): Provide default of stderr.
14592         * tests/test-dirent-safer.c: Include macros.h, using alternate
14593         stream for assertions.
14594         * tests/test-dup-safer.c: Likewise.
14595         * tests/test-freopen-safer.c: Likewise.
14596         * tests/test-getopt.c: Likewise.
14597         * tests/test-openat-safer.c: Likewise.
14598         * tests/test-pipe.c: Likewise.
14599         * tests/test-popen-safer.c: Likewise.
14600         * modules/dirent-safer-tests (Files): Include macros.h.
14601         * modules/unistd-safer-tests (Files): Likewise.
14602         * modules/freopen-safer-tests (Files): Likewise.
14603         * modules/getopt-posix-tests (Files): Likewise.
14604         * modules/openat-safer-tests (Files): Likewise.
14605         * modules/pipe-tests (Files): Likewise.
14606
14607 2009-12-26  Bruno Haible  <bruno@clisp.org>
14608
14609         javacomp: Portability fix.
14610         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14611         that it also works on Solaris.
14612
14613 2009-12-26  Bruno Haible  <bruno@clisp.org>
14614
14615         localename: Fix storage allocation of gl_locale_name_thread's result.
14616         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14617         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14618         all platforms that have 'uselocale'.
14619         (gl_locale_name_thread_unsafe): New function, extracted from
14620         gl_locale_name_thread.
14621         (gl_locale_name_thread): Call struniq on all platforms that have
14622         'uselocale'.
14623         * tests/test-localename.c (test_locale_name_thread): Check that the
14624         resulting strings are permanently allocated.
14625         * modules/localename-tests (Depends-on): Add strdup.
14626
14627 2009-12-26  Bruno Haible  <bruno@clisp.org>
14628
14629         * tests/test-localename.c (categories): Fill in the strings.
14630
14631 2009-12-26  Jim Meyering  <meyering@redhat.com>
14632
14633         isdir: complete the removal of m4/isdir.m4
14634         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14635
14636         isdir: clean up, since at least grep still uses it
14637         * lib/isdir.c: Include "isdir.h".
14638         (S_ISDIR): Remove now-unneeded definition.
14639         * modules/isdir (Files): Add lib/isdir.h.
14640         * lib/isdir.h: New file, with declaration.
14641         * m4/isdir.m4: Remove file -- unneeded.
14642
14643 2009-12-25  Bruno Haible  <bruno@clisp.org>
14644
14645         selinux-h: Make generated .h files standalone.
14646         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14647         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14648         * lib/se-selinux.in.h: Likewise.
14649         * modules/selinux-h (Depends-on): Add unused-parameter.
14650         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14651         selinux/selinux.h and selinux/context.h.
14652         Suggested by Eric Blake.
14653
14654 2009-12-25  Bruno Haible  <bruno@clisp.org>
14655
14656         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14657         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14658         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14659         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14660         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14661
14662 2009-12-24  Bruno Haible  <bruno@clisp.org>
14663
14664         openat: Fix warning.
14665         * lib/openat-proc.c: Include <unistd.h>.
14666
14667 2009-12-24  Bruno Haible  <bruno@clisp.org>
14668
14669         New module 'unused-parameter'.
14670         * build-aux/unused-parameter.h: New file, extracted from earlier
14671         gnulib-common.m4.
14672         * modules/unused-parameter: New file.
14673         * lib/unistr.h: Include unused-parameter.h.
14674         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14675         _GL_UNUSED.
14676         * modules/unistr/base (Depends-on): Add unused-parameter.
14677
14678 2009-12-24  Bruno Haible  <bruno@clisp.org>
14679
14680         Add missing dependencies to 'extensions' module.
14681         * m4/extensions.m4: Add comment.
14682         * modules/accept4 (Depends-on): Add extensions.
14683         * modules/dup3 (Depends-on): Likewise.
14684         * modules/fcntl (Depends-on): Likewise.
14685         * modules/futimens (Depends-on): Likewise.
14686         * modules/mknod (Depends-on): Likewise.
14687         * modules/pipe2 (Depends-on): Likewise.
14688         * modules/stat-time (Depends-on): Likewise.
14689         * modules/strcasestr-simple (Depends-on): Likewise.
14690         * modules/strsignal (Depends-on): Likewise.
14691         * modules/utimensat (Depends-on): Likewise.
14692         * modules/localcharset (Depends-on): Likewise. Needed because of
14693         gl_FCNTL_O_FLAGS.
14694         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14695         AC_TYPE_MBSTATE_T.
14696         * modules/wcsnrtombs (Depends-on): Likewise.
14697         * modules/wcsrtombs (Depends-on): Likewise.
14698
14699 2009-12-24  Bruno Haible  <bruno@clisp.org>
14700
14701         binary-io: Avoid gcc warning due to SET_BINARY.
14702         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14703         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14704
14705 2009-12-24  Bruno Haible  <bruno@clisp.org>
14706
14707         Avoid future namespace pollution on glibc systems.
14708         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14709         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14710         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14711         glibc systems.
14712
14713 2009-12-24  Bruno Haible  <bruno@clisp.org>
14714
14715         Refactor common macros used in tests.
14716         * tests/macros.h: New file.
14717         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14718         and/or <stdlib.h>, if appropriate.
14719         (ASSERT, SIZEOF): Remove macros.
14720         * tests/test-areadlink-with-size.c: Likewise.
14721         * tests/test-areadlinkat.c: Likewise.
14722         * tests/test-areadlinkat-with-size.c: Likewise.
14723         * tests/test-argmatch.c: Likewise.
14724         * tests/test-argv-iter.c: Likewise.
14725         * tests/test-array-mergesort.c: Likewise.
14726         * tests/test-array_list.c: Likewise.
14727         * tests/test-array_oset.c: Likewise.
14728         * tests/test-avltree_list.c: Likewise.
14729         * tests/test-avltree_oset.c: Likewise.
14730         * tests/test-avltreehash_list.c: Likewise.
14731         * tests/test-base64.c: Likewise.
14732         * tests/test-binary-io.c: Likewise.
14733         * tests/test-bitrotate.c: Likewise.
14734         * tests/test-btowc.c: Likewise.
14735         * tests/test-byteswap.c: Likewise.
14736         * tests/test-c-ctype.c: Likewise.
14737         * tests/test-c-stack.c: Likewise.
14738         * tests/test-c-strcasecmp.c: Likewise.
14739         * tests/test-c-strcasestr.c: Likewise.
14740         * tests/test-c-strncasecmp.c: Likewise.
14741         * tests/test-c-strstr.c: Likewise.
14742         * tests/test-canonicalize-lgpl.c: Likewise.
14743         * tests/test-canonicalize.c: Likewise.
14744         * tests/test-carray_list.c: Likewise.
14745         * tests/test-ceilf1.c: Likewise.
14746         * tests/test-ceilf2.c: Likewise.
14747         * tests/test-ceill.c: Likewise.
14748         * tests/test-chown.c: Likewise.
14749         * tests/test-cloexec.c: Likewise.
14750         * tests/test-copy-acl.c: Likewise.
14751         * tests/test-copy-file.c: Likewise.
14752         * tests/test-count-one-bits.c: Likewise.
14753         * tests/test-dprintf-posix.c: Likewise.
14754         * tests/test-dup2.c: Likewise.
14755         * tests/test-dup3.c: Likewise.
14756         * tests/test-duplocale.c: Likewise.
14757         * tests/test-fbufmode.c: Likewise.
14758         * tests/test-fchdir.c: Likewise.
14759         * tests/test-fchownat.c: Likewise.
14760         * tests/test-fcntl-safer.c: Likewise.
14761         * tests/test-fcntl.c: Likewise.
14762         * tests/test-fdopendir.c: Likewise.
14763         * tests/test-fdutimensat.c: Likewise.
14764         * tests/test-fflush2.c: Likewise.
14765         * tests/test-file-has-acl.c: Likewise.
14766         * tests/test-filevercmp.c: Likewise.
14767         * tests/test-flock.c: Likewise.
14768         * tests/test-floorf1.c: Likewise.
14769         * tests/test-floorf2.c: Likewise.
14770         * tests/test-floorl.c: Likewise.
14771         * tests/test-fnmatch.c: Likewise.
14772         * tests/test-fopen.h: Likewise.
14773         * tests/test-fpending.c: Likewise.
14774         * tests/test-fprintf-posix.c: Likewise.
14775         * tests/test-fpurge.c: Likewise.
14776         * tests/test-freadable.c: Likewise.
14777         * tests/test-freadahead.c: Likewise.
14778         * tests/test-freading.c: Likewise.
14779         * tests/test-freadptr.c: Likewise.
14780         * tests/test-freadptr2.c: Likewise.
14781         * tests/test-freadseek.c: Likewise.
14782         * tests/test-freopen.c: Likewise.
14783         * tests/test-frexp.c: Likewise.
14784         * tests/test-frexpl.c: Likewise.
14785         * tests/test-fseek.c: Likewise.
14786         * tests/test-fseeko.c: Likewise.
14787         * tests/test-fstatat.c: Likewise.
14788         * tests/test-fstrcmp.c: Likewise.
14789         * tests/test-fsync.c: Likewise.
14790         * tests/test-ftell.c: Likewise.
14791         * tests/test-ftello.c: Likewise.
14792         * tests/test-func.c: Likewise.
14793         * tests/test-futimens.c: Likewise.
14794         * tests/test-fwritable.c: Likewise.
14795         * tests/test-fwriting.c: Likewise.
14796         * tests/test-getcwd.c: Likewise.
14797         * tests/test-getdate.c: Likewise.
14798         * tests/test-getdelim.c: Likewise.
14799         * tests/test-getdtablesize.c: Likewise.
14800         * tests/test-getgroups.c: Likewise.
14801         * tests/test-getline.c: Likewise.
14802         * tests/test-getndelim2.c: Likewise.
14803         * tests/test-glob.c: Likewise.
14804         * tests/test-hash.c: Likewise.
14805         * tests/test-i-ring.c: Likewise.
14806         * tests/test-iconv-utf.c: Likewise.
14807         * tests/test-iconv.c: Likewise.
14808         * tests/test-idpriv-drop.c: Likewise.
14809         * tests/test-idpriv-droptemp.c: Likewise.
14810         * tests/test-inet_ntop.c: Likewise.
14811         * tests/test-inet_pton.c: Likewise.
14812         * tests/test-isblank.c: Likewise.
14813         * tests/test-isfinite.c: Likewise.
14814         * tests/test-isinf.c: Likewise.
14815         * tests/test-isnan.c: Likewise.
14816         * tests/test-isnand.h: Likewise.
14817         * tests/test-isnanf.h: Likewise.
14818         * tests/test-isnanl.h: Likewise.
14819         * tests/test-lchown.c: Likewise.
14820         * tests/test-ldexpl.c: Likewise.
14821         * tests/test-link.c: Likewise.
14822         * tests/test-linkat.c: Likewise.
14823         * tests/test-linked_list.c: Likewise.
14824         * tests/test-linkedhash_list.c: Likewise.
14825         * tests/test-localename.c: Likewise.
14826         * tests/test-lseek.c: Likewise.
14827         * tests/test-lstat.c: Likewise.
14828         * tests/test-mbmemcasecmp.c: Likewise.
14829         * tests/test-mbmemcasecoll.c: Likewise.
14830         * tests/test-mbrtowc.c: Likewise.
14831         * tests/test-mbscasecmp.c: Likewise.
14832         * tests/test-mbscasestr1.c: Likewise.
14833         * tests/test-mbscasestr2.c: Likewise.
14834         * tests/test-mbscasestr3.c: Likewise.
14835         * tests/test-mbscasestr4.c: Likewise.
14836         * tests/test-mbschr.c: Likewise.
14837         * tests/test-mbscspn.c: Likewise.
14838         * tests/test-mbsinit.c: Likewise.
14839         * tests/test-mbsncasecmp.c: Likewise.
14840         * tests/test-mbsnrtowcs.c: Likewise.
14841         * tests/test-mbspbrk.c: Likewise.
14842         * tests/test-mbspcasecmp.c: Likewise.
14843         * tests/test-mbsrchr.c: Likewise.
14844         * tests/test-mbsrtowcs.c: Likewise.
14845         * tests/test-mbsspn.c: Likewise.
14846         * tests/test-mbsstr1.c: Likewise.
14847         * tests/test-mbsstr2.c: Likewise.
14848         * tests/test-mbsstr3.c: Likewise.
14849         * tests/test-memchr.c: Likewise.
14850         * tests/test-memchr2.c: Likewise.
14851         * tests/test-memcmp.c: Likewise.
14852         * tests/test-memmem.c: Likewise.
14853         * tests/test-memrchr.c: Likewise.
14854         * tests/test-mkdir.c: Likewise.
14855         * tests/test-mkdirat.c: Likewise.
14856         * tests/test-mkfifo.c: Likewise.
14857         * tests/test-mkfifoat.c: Likewise.
14858         * tests/test-mknod.c: Likewise.
14859         * tests/test-nanosleep.c: Likewise.
14860         * tests/test-nl_langinfo.c: Likewise.
14861         * tests/test-obstack-printf.c: Likewise.
14862         * tests/test-open.c: Likewise.
14863         * tests/test-openat.c: Likewise.
14864         * tests/test-pipe-filter-gi1.c: Likewise.
14865         * tests/test-pipe-filter-gi2-main.c: Likewise.
14866         * tests/test-pipe-filter-ii1.c: Likewise.
14867         * tests/test-pipe-filter-ii2-main.c: Likewise.
14868         * tests/test-pipe2.c: Likewise.
14869         * tests/test-popen.h: Likewise.
14870         * tests/test-posixtm.c: Likewise.
14871         * tests/test-pread.c: Likewise.
14872         * tests/test-printf-frexp.c: Likewise.
14873         * tests/test-printf-frexpl.c: Likewise.
14874         * tests/test-printf-posix.c: Likewise.
14875         * tests/test-priv-set.c: Likewise.
14876         * tests/test-quotearg.c: Likewise.
14877         * tests/test-random_r.c: Likewise.
14878         * tests/test-rawmemchr.c: Likewise.
14879         * tests/test-rbtree_list.c: Likewise.
14880         * tests/test-rbtree_oset.c: Likewise.
14881         * tests/test-rbtreehash_list.c: Likewise.
14882         * tests/test-readlink.c: Likewise.
14883         * tests/test-remove.c: Likewise.
14884         * tests/test-rename.c: Likewise.
14885         * tests/test-renameat.c: Likewise.
14886         * tests/test-rmdir.c: Likewise.
14887         * tests/test-round1.c: Likewise.
14888         * tests/test-roundf1.c: Likewise.
14889         * tests/test-roundl.c: Likewise.
14890         * tests/test-safe-alloc.c: Likewise.
14891         * tests/test-sameacls.c: Likewise.
14892         * tests/test-set-mode-acl.c: Likewise.
14893         * tests/test-setenv.c: Likewise.
14894         * tests/test-sigaction.c: Likewise.
14895         * tests/test-signbit.c: Likewise.
14896         * tests/test-sleep.c: Likewise.
14897         * tests/test-snprintf-posix.c: Likewise.
14898         * tests/test-snprintf.c: Likewise.
14899         * tests/test-sprintf-posix.c: Likewise.
14900         * tests/test-stat-time.c: Likewise.
14901         * tests/test-stat.c: Likewise.
14902         * tests/test-strcasestr.c: Likewise.
14903         * tests/test-strchrnul.c: Likewise.
14904         * tests/test-strerror.c: Likewise.
14905         * tests/test-striconv.c: Likewise.
14906         * tests/test-striconveh.c: Likewise.
14907         * tests/test-striconveha.c: Likewise.
14908         * tests/test-strsignal.c: Likewise.
14909         * tests/test-strstr.c: Likewise.
14910         * tests/test-strtod.c: Likewise.
14911         * tests/test-strverscmp.c: Likewise.
14912         * tests/test-symlink.c: Likewise.
14913         * tests/test-symlinkat.c: Likewise.
14914         * tests/test-trunc1.c: Likewise.
14915         * tests/test-trunc2.c: Likewise.
14916         * tests/test-truncf1.c: Likewise.
14917         * tests/test-truncf2.c: Likewise.
14918         * tests/test-truncl.c: Likewise.
14919         * tests/test-uname.c: Likewise.
14920         * tests/test-unlink.c: Likewise.
14921         * tests/test-unlinkat.c: Likewise.
14922         * tests/test-unsetenv.c: Likewise.
14923         * tests/test-usleep.c: Likewise.
14924         * tests/test-utimens.c: Likewise.
14925         * tests/test-utimensat.c: Likewise.
14926         * tests/test-vasnprintf-posix.c: Likewise.
14927         * tests/test-vasnprintf-posix2.c: Likewise.
14928         * tests/test-vasnprintf.c: Likewise.
14929         * tests/test-vasprintf-posix.c: Likewise.
14930         * tests/test-vasprintf.c: Likewise.
14931         * tests/test-vdprintf-posix.c: Likewise.
14932         * tests/test-vfprintf-posix.c: Likewise.
14933         * tests/test-vprintf-posix.c: Likewise.
14934         * tests/test-vsnprintf-posix.c: Likewise.
14935         * tests/test-vsnprintf.c: Likewise.
14936         * tests/test-vsprintf-posix.c: Likewise.
14937         * tests/test-wcrtomb.c: Likewise.
14938         * tests/test-wcsnrtombs.c: Likewise.
14939         * tests/test-wcsrtombs.c: Likewise.
14940         * tests/test-wctype.c: Likewise.
14941         * tests/test-wcwidth.c: Likewise.
14942         * tests/test-xfprintf-posix.c: Likewise.
14943         * tests/test-xmemdup0.c: Likewise.
14944         * tests/test-xprintf-posix.c: Likewise.
14945         * tests/test-xvasprintf.c: Likewise.
14946         * tests/unicase/test-locale-language.c: Likewise.
14947         * tests/unicase/test-mapping-part1.h: Likewise.
14948         * tests/unicase/test-predicate-part1.h: Likewise.
14949         * tests/unicase/test-u8-casecmp.c: Likewise.
14950         * tests/unicase/test-u8-casecoll.c: Likewise.
14951         * tests/unicase/test-u8-casefold.c: Likewise.
14952         * tests/unicase/test-u8-is-cased.c: Likewise.
14953         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14954         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14955         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14956         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14957         * tests/unicase/test-u8-tolower.c: Likewise.
14958         * tests/unicase/test-u8-totitle.c: Likewise.
14959         * tests/unicase/test-u8-toupper.c: Likewise.
14960         * tests/unicase/test-u16-casecmp.c: Likewise.
14961         * tests/unicase/test-u16-casecoll.c: Likewise.
14962         * tests/unicase/test-u16-casefold.c: Likewise.
14963         * tests/unicase/test-u16-is-cased.c: Likewise.
14964         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14965         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14966         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14967         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14968         * tests/unicase/test-u16-tolower.c: Likewise.
14969         * tests/unicase/test-u16-totitle.c: Likewise.
14970         * tests/unicase/test-u16-toupper.c: Likewise.
14971         * tests/unicase/test-u32-casecmp.c: Likewise.
14972         * tests/unicase/test-u32-casecoll.c: Likewise.
14973         * tests/unicase/test-u32-casefold.c: Likewise.
14974         * tests/unicase/test-u32-is-cased.c: Likewise.
14975         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14976         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14977         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14978         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14979         * tests/unicase/test-u32-tolower.c: Likewise.
14980         * tests/unicase/test-u32-totitle.c: Likewise.
14981         * tests/unicase/test-u32-toupper.c: Likewise.
14982         * tests/unicase/test-ulc-casecmp.c: Likewise.
14983         * tests/unicase/test-ulc-casecoll.c: Likewise.
14984         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14985         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14986         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14987         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14988         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14989         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14990         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14991         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14992         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14993         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14994         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14995         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14996         * tests/unictype/test-bidi_byname.c: Likewise.
14997         * tests/unictype/test-bidi_name.c: Likewise.
14998         * tests/unictype/test-bidi_of.c: Likewise.
14999         * tests/unictype/test-bidi_test.c: Likewise.
15000         * tests/unictype/test-block_list.c: Likewise.
15001         * tests/unictype/test-block_of.c: Likewise.
15002         * tests/unictype/test-block_test.c: Likewise.
15003         * tests/unictype/test-categ_and.c: Likewise.
15004         * tests/unictype/test-categ_and_not.c: Likewise.
15005         * tests/unictype/test-categ_byname.c: Likewise.
15006         * tests/unictype/test-categ_name.c: Likewise.
15007         * tests/unictype/test-categ_none.c: Likewise.
15008         * tests/unictype/test-categ_of.c: Likewise.
15009         * tests/unictype/test-categ_or.c: Likewise.
15010         * tests/unictype/test-categ_test_withtable.c: Likewise.
15011         * tests/unictype/test-combining.c: Likewise.
15012         * tests/unictype/test-decdigit.c: Likewise.
15013         * tests/unictype/test-digit.c: Likewise.
15014         * tests/unictype/test-mirror.c: Likewise.
15015         * tests/unictype/test-numeric.c: Likewise.
15016         * tests/unictype/test-pr_byname.c: Likewise.
15017         * tests/unictype/test-pr_test.c: Likewise.
15018         * tests/unictype/test-predicate-part1.h: Likewise.
15019         * tests/unictype/test-scripts.c: Likewise.
15020         * tests/unictype/test-sy_c_ident.c: Likewise.
15021         * tests/unictype/test-sy_java_ident.c: Likewise.
15022         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
15023         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
15024         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
15025         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
15026         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
15027         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
15028         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
15029         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
15030         * tests/uninorm/test-canonical-decomposition.c: Likewise.
15031         * tests/uninorm/test-compat-decomposition.c: Likewise.
15032         * tests/uninorm/test-composition.c: Likewise.
15033         * tests/uninorm/test-decomposing-form.c: Likewise.
15034         * tests/uninorm/test-decomposition.c: Likewise.
15035         * tests/uninorm/test-u8-nfc.c: Likewise.
15036         * tests/uninorm/test-u8-nfd.c: Likewise.
15037         * tests/uninorm/test-u8-nfkc.c: Likewise.
15038         * tests/uninorm/test-u8-nfkd.c: Likewise.
15039         * tests/uninorm/test-u8-normcmp.c: Likewise.
15040         * tests/uninorm/test-u8-normcoll.c: Likewise.
15041         * tests/uninorm/test-u16-nfc.c: Likewise.
15042         * tests/uninorm/test-u16-nfd.c: Likewise.
15043         * tests/uninorm/test-u16-nfkc.c: Likewise.
15044         * tests/uninorm/test-u16-nfkd.c: Likewise.
15045         * tests/uninorm/test-u16-normcmp.c: Likewise.
15046         * tests/uninorm/test-u16-normcoll.c: Likewise.
15047         * tests/uninorm/test-u32-nfc.c: Likewise.
15048         * tests/uninorm/test-u32-nfd.c: Likewise.
15049         * tests/uninorm/test-u32-nfkc.c: Likewise.
15050         * tests/uninorm/test-u32-nfkd.c: Likewise.
15051         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15052         * tests/uninorm/test-u32-normcmp.c: Likewise.
15053         * tests/uninorm/test-u32-normcoll.c: Likewise.
15054         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
15055         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15056         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15057         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15058         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15059         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15060         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15061         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15062         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15063         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15064         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15065         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15066         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15067         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15068         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15069         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15070         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15071         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15072         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15073         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15074         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15075         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15076         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15077         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15078         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15079         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15080         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15081         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15082         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15083         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
15084         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
15085         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
15086         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
15087         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15088         * tests/uniwidth/test-u8-width.c: Likewise.
15089         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15090         * tests/uniwidth/test-u16-width.c: Likewise.
15091         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15092         * tests/uniwidth/test-u32-width.c: Likewise.
15093         * tests/uniwidth/test-uc_width.c: Likewise.
15094         * tests/uniwidth/test-uc_width2.c: Likewise.
15095         * modules/acl-tests (Files): Add tests/macros.h.
15096         * modules/areadlink-tests (Files): Likewise.
15097         * modules/areadlink-with-size-tests (Files): Likewise.
15098         * modules/areadlinkat-tests (Files): Likewise.
15099         * modules/areadlinkat-with-size-tests (Files): Likewise.
15100         * modules/argmatch-tests (Files): Likewise.
15101         * modules/argv-iter-tests (Files): Likewise.
15102         * modules/array-list-tests (Files): Likewise.
15103         * modules/array-mergesort-tests (Files): Likewise.
15104         * modules/array-oset-tests (Files): Likewise.
15105         * modules/avltree-list-tests (Files): Likewise.
15106         * modules/avltree-oset-tests (Files): Likewise.
15107         * modules/avltreehash-list-tests (Files): Likewise.
15108         * modules/base64-tests (Files): Likewise.
15109         * modules/binary-io-tests (Files): Likewise.
15110         * modules/bitrotate-tests (Files): Likewise.
15111         * modules/btowc-tests (Files): Likewise.
15112         * modules/byteswap-tests (Files): Likewise.
15113         * modules/c-ctype-tests (Files): Likewise.
15114         * modules/c-stack-tests (Files): Likewise.
15115         * modules/c-strcase-tests (Files): Likewise.
15116         * modules/c-strcasestr-tests (Files): Likewise.
15117         * modules/c-strstr-tests (Files): Likewise.
15118         * modules/canonicalize-lgpl-tests (Files): Likewise.
15119         * modules/canonicalize-tests (Files): Likewise.
15120         * modules/carray-list-tests (Files): Likewise.
15121         * modules/ceilf-tests (Files): Likewise.
15122         * modules/ceill-tests (Files): Likewise.
15123         * modules/chown-tests (Files): Likewise.
15124         * modules/cloexec-tests (Files): Likewise.
15125         * modules/copy-file-tests (Files): Likewise.
15126         * modules/count-one-bits-tests (Files): Likewise.
15127         * modules/dprintf-posix-tests (Files): Likewise.
15128         * modules/dup2-tests (Files): Likewise.
15129         * modules/dup3-tests (Files): Likewise.
15130         * modules/duplocale-tests (Files): Likewise.
15131         * modules/fbufmode-tests (Files): Likewise.
15132         * modules/fchdir-tests (Files): Likewise.
15133         * modules/fcntl-safer-tests (Files): Likewise.
15134         * modules/fcntl-tests (Files): Likewise.
15135         * modules/fdopendir-tests (Files): Likewise.
15136         * modules/fdutimensat-tests (Files): Likewise.
15137         * modules/fflush-tests (Files): Likewise.
15138         * modules/filevercmp-tests (Files): Likewise.
15139         * modules/flock-tests (Files): Likewise.
15140         * modules/floorf-tests (Files): Likewise.
15141         * modules/floorl-tests (Files): Likewise.
15142         * modules/fnmatch-tests (Files): Likewise.
15143         * modules/fopen-safer-tests (Files): Likewise.
15144         * modules/fopen-tests (Files): Likewise.
15145         * modules/fpending-tests (Files): Likewise.
15146         * modules/fprintf-posix-tests (Files): Likewise.
15147         * modules/fpurge-tests (Files): Likewise.
15148         * modules/freadable-tests (Files): Likewise.
15149         * modules/freadahead-tests (Files): Likewise.
15150         * modules/freading-tests (Files): Likewise.
15151         * modules/freadptr-tests (Files): Likewise.
15152         * modules/freadseek-tests (Files): Likewise.
15153         * modules/freopen-tests (Files): Likewise.
15154         * modules/frexp-nolibm-tests (Files): Likewise.
15155         * modules/frexp-tests (Files): Likewise.
15156         * modules/frexpl-nolibm-tests (Files): Likewise.
15157         * modules/frexpl-tests (Files): Likewise.
15158         * modules/fseek-tests (Files): Likewise.
15159         * modules/fseeko-tests (Files): Likewise.
15160         * modules/fstrcmp-tests (Files): Likewise.
15161         * modules/fsync-tests (Files): Likewise.
15162         * modules/ftell-tests (Files): Likewise.
15163         * modules/ftello-tests (Files): Likewise.
15164         * modules/func-tests (Files): Likewise.
15165         * modules/futimens-tests (Files): Likewise.
15166         * modules/fwritable-tests (Files): Likewise.
15167         * modules/fwriting-tests (Files): Likewise.
15168         * modules/getcwd-tests (Files): Likewise.
15169         * modules/getdate-tests (Files): Likewise.
15170         * modules/getdelim-tests (Files): Likewise.
15171         * modules/getdtablesize-tests (Files): Likewise.
15172         * modules/getgroups-tests (Files): Likewise.
15173         * modules/getline-tests (Files): Likewise.
15174         * modules/getndelim2-tests (Files): Likewise.
15175         * modules/glob-tests (Files): Likewise.
15176         * modules/hash-tests (Files): Likewise.
15177         * modules/i-ring-tests (Files): Likewise.
15178         * modules/iconv-tests (Files): Likewise.
15179         * modules/iconv_open-utf-tests (Files): Likewise.
15180         * modules/idpriv-drop-tests (Files): Likewise.
15181         * modules/idpriv-droptemp-tests (Files): Likewise.
15182         * modules/inet_ntop-tests (Files): Likewise.
15183         * modules/inet_pton-tests (Files): Likewise.
15184         * modules/isblank-tests (Files): Likewise.
15185         * modules/isfinite-tests (Files): Likewise.
15186         * modules/isinf-tests (Files): Likewise.
15187         * modules/isnan-tests (Files): Likewise.
15188         * modules/isnand-nolibm-tests (Files): Likewise.
15189         * modules/isnand-tests (Files): Likewise.
15190         * modules/isnanf-nolibm-tests (Files): Likewise.
15191         * modules/isnanf-tests (Files): Likewise.
15192         * modules/isnanl-nolibm-tests (Files): Likewise.
15193         * modules/isnanl-tests (Files): Likewise.
15194         * modules/lchown-tests (Files): Likewise.
15195         * modules/ldexpl-tests (Files): Likewise.
15196         * modules/link-tests (Files): Likewise.
15197         * modules/linkat-tests (Files): Likewise.
15198         * modules/linked-list-tests (Files): Likewise.
15199         * modules/linkedhash-list-tests (Files): Likewise.
15200         * modules/localename-tests (Files): Likewise.
15201         * modules/lseek-tests (Files): Likewise.
15202         * modules/lstat-tests (Files): Likewise.
15203         * modules/mbmemcasecmp-tests (Files): Likewise.
15204         * modules/mbmemcasecoll-tests (Files): Likewise.
15205         * modules/mbrtowc-tests (Files): Likewise.
15206         * modules/mbscasecmp-tests (Files): Likewise.
15207         * modules/mbscasestr-tests (Files): Likewise.
15208         * modules/mbschr-tests (Files): Likewise.
15209         * modules/mbscspn-tests (Files): Likewise.
15210         * modules/mbsinit-tests (Files): Likewise.
15211         * modules/mbsncasecmp-tests (Files): Likewise.
15212         * modules/mbsnrtowcs-tests (Files): Likewise.
15213         * modules/mbspbrk-tests (Files): Likewise.
15214         * modules/mbspcasecmp-tests (Files): Likewise.
15215         * modules/mbsrchr-tests (Files): Likewise.
15216         * modules/mbsrtowcs-tests (Files): Likewise.
15217         * modules/mbsspn-tests (Files): Likewise.
15218         * modules/mbsstr-tests (Files): Likewise.
15219         * modules/memchr-tests (Files): Likewise.
15220         * modules/memchr2-tests (Files): Likewise.
15221         * modules/memcmp-tests (Files): Likewise.
15222         * modules/memmem-tests (Files): Likewise.
15223         * modules/memrchr-tests (Files): Likewise.
15224         * modules/mkdir-tests (Files): Likewise.
15225         * modules/mkfifo-tests (Files): Likewise.
15226         * modules/mkfifoat-tests (Files): Likewise.
15227         * modules/mknod-tests (Files): Likewise.
15228         * modules/nanosleep-tests (Files): Likewise.
15229         * modules/nl_langinfo-tests (Files): Likewise.
15230         * modules/obstack-printf-tests (Files): Likewise.
15231         * modules/open-tests (Files): Likewise.
15232         * modules/openat-tests (Files): Likewise.
15233         * modules/pipe-filter-gi-tests (Files): Likewise.
15234         * modules/pipe-filter-ii-tests (Files): Likewise.
15235         * modules/pipe2-tests (Files): Likewise.
15236         * modules/popen-safer-tests (Files): Likewise.
15237         * modules/popen-tests (Files): Likewise.
15238         * modules/posixtm-tests (Files): Likewise.
15239         * modules/pread-tests (Files): Likewise.
15240         * modules/printf-frexp-tests (Files): Likewise.
15241         * modules/printf-frexpl-tests (Files): Likewise.
15242         * modules/printf-posix-tests (Files): Likewise.
15243         * modules/priv-set-tests (Files): Likewise.
15244         * modules/quotearg-tests (Files): Likewise.
15245         * modules/random_r-tests (Files): Likewise.
15246         * modules/rawmemchr-tests (Files): Likewise.
15247         * modules/rbtree-list-tests (Files): Likewise.
15248         * modules/rbtree-oset-tests (Files): Likewise.
15249         * modules/rbtreehash-list-tests (Files): Likewise.
15250         * modules/readlink-tests (Files): Likewise.
15251         * modules/remove-tests (Files): Likewise.
15252         * modules/rename-tests (Files): Likewise.
15253         * modules/renameat-tests (Files): Likewise.
15254         * modules/rmdir-tests (Files): Likewise.
15255         * modules/round-tests (Files): Likewise.
15256         * modules/roundf-tests (Files): Likewise.
15257         * modules/roundl-tests (Files): Likewise.
15258         * modules/safe-alloc-tests (Files): Likewise.
15259         * modules/setenv-tests (Files): Likewise.
15260         * modules/sigaction-tests (Files): Likewise.
15261         * modules/signbit-tests (Files): Likewise.
15262         * modules/sleep-tests (Files): Likewise.
15263         * modules/snprintf-posix-tests (Files): Likewise.
15264         * modules/snprintf-tests (Files): Likewise.
15265         * modules/sprintf-posix-tests (Files): Likewise.
15266         * modules/stat-tests (Files): Likewise.
15267         * modules/stat-time-tests (Files): Likewise.
15268         * modules/strcasestr-tests (Files): Likewise.
15269         * modules/strchrnul-tests (Files): Likewise.
15270         * modules/strerror-tests (Files): Likewise.
15271         * modules/striconv-tests (Files): Likewise.
15272         * modules/striconveh-tests (Files): Likewise.
15273         * modules/striconveha-tests (Files): Likewise.
15274         * modules/strsignal-tests (Files): Likewise.
15275         * modules/strstr-tests (Files): Likewise.
15276         * modules/strtod-tests (Files): Likewise.
15277         * modules/strverscmp-tests (Files): Likewise.
15278         * modules/symlink-tests (Files): Likewise.
15279         * modules/symlinkat-tests (Files): Likewise.
15280         * modules/trunc-tests (Files): Likewise.
15281         * modules/truncf-tests (Files): Likewise.
15282         * modules/truncl-tests (Files): Likewise.
15283         * modules/uname-tests (Files): Likewise.
15284         * modules/unicase/cased-tests (Files): Likewise.
15285         * modules/unicase/ignorable-tests (Files): Likewise.
15286         * modules/unicase/locale-language-tests (Files): Likewise.
15287         * modules/unicase/tolower-tests (Files): Likewise.
15288         * modules/unicase/totitle-tests (Files): Likewise.
15289         * modules/unicase/toupper-tests (Files): Likewise.
15290         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15291         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15292         * modules/unicase/u8-casefold-tests (Files): Likewise.
15293         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15294         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15295         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15296         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15297         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15298         * modules/unicase/u8-tolower-tests (Files): Likewise.
15299         * modules/unicase/u8-totitle-tests (Files): Likewise.
15300         * modules/unicase/u8-toupper-tests (Files): Likewise.
15301         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15302         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15303         * modules/unicase/u16-casefold-tests (Files): Likewise.
15304         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15305         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15306         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15307         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15308         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15309         * modules/unicase/u16-tolower-tests (Files): Likewise.
15310         * modules/unicase/u16-totitle-tests (Files): Likewise.
15311         * modules/unicase/u16-toupper-tests (Files): Likewise.
15312         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15313         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15314         * modules/unicase/u32-casefold-tests (Files): Likewise.
15315         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15316         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15317         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15318         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15319         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15320         * modules/unicase/u32-tolower-tests (Files): Likewise.
15321         * modules/unicase/u32-totitle-tests (Files): Likewise.
15322         * modules/unicase/u32-toupper-tests (Files): Likewise.
15323         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15324         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15325         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15326         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15327         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15328         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15329         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15330         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15331         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15332         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15333         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15334         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15335         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15336         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15337         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15338         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15339         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15340         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15341         * modules/unictype/block-list-tests (Files): Likewise.
15342         * modules/unictype/block-of-tests (Files): Likewise.
15343         * modules/unictype/block-test-tests (Files): Likewise.
15344         * modules/unictype/category-C-tests (Files): Likewise.
15345         * modules/unictype/category-Cc-tests (Files): Likewise.
15346         * modules/unictype/category-Cf-tests (Files): Likewise.
15347         * modules/unictype/category-Cn-tests (Files): Likewise.
15348         * modules/unictype/category-Co-tests (Files): Likewise.
15349         * modules/unictype/category-Cs-tests (Files): Likewise.
15350         * modules/unictype/category-L-tests (Files): Likewise.
15351         * modules/unictype/category-Ll-tests (Files): Likewise.
15352         * modules/unictype/category-Lm-tests (Files): Likewise.
15353         * modules/unictype/category-Lo-tests (Files): Likewise.
15354         * modules/unictype/category-Lt-tests (Files): Likewise.
15355         * modules/unictype/category-Lu-tests (Files): Likewise.
15356         * modules/unictype/category-M-tests (Files): Likewise.
15357         * modules/unictype/category-Mc-tests (Files): Likewise.
15358         * modules/unictype/category-Me-tests (Files): Likewise.
15359         * modules/unictype/category-Mn-tests (Files): Likewise.
15360         * modules/unictype/category-N-tests (Files): Likewise.
15361         * modules/unictype/category-Nd-tests (Files): Likewise.
15362         * modules/unictype/category-Nl-tests (Files): Likewise.
15363         * modules/unictype/category-No-tests (Files): Likewise.
15364         * modules/unictype/category-P-tests (Files): Likewise.
15365         * modules/unictype/category-Pc-tests (Files): Likewise.
15366         * modules/unictype/category-Pd-tests (Files): Likewise.
15367         * modules/unictype/category-Pe-tests (Files): Likewise.
15368         * modules/unictype/category-Pf-tests (Files): Likewise.
15369         * modules/unictype/category-Pi-tests (Files): Likewise.
15370         * modules/unictype/category-Po-tests (Files): Likewise.
15371         * modules/unictype/category-Ps-tests (Files): Likewise.
15372         * modules/unictype/category-S-tests (Files): Likewise.
15373         * modules/unictype/category-Sc-tests (Files): Likewise.
15374         * modules/unictype/category-Sk-tests (Files): Likewise.
15375         * modules/unictype/category-Sm-tests (Files): Likewise.
15376         * modules/unictype/category-So-tests (Files): Likewise.
15377         * modules/unictype/category-Z-tests (Files): Likewise.
15378         * modules/unictype/category-Zl-tests (Files): Likewise.
15379         * modules/unictype/category-Zp-tests (Files): Likewise.
15380         * modules/unictype/category-Zs-tests (Files): Likewise.
15381         * modules/unictype/category-and-not-tests (Files): Likewise.
15382         * modules/unictype/category-and-tests (Files): Likewise.
15383         * modules/unictype/category-byname-tests (Files): Likewise.
15384         * modules/unictype/category-name-tests (Files): Likewise.
15385         * modules/unictype/category-none-tests (Files): Likewise.
15386         * modules/unictype/category-of-tests (Files): Likewise.
15387         * modules/unictype/category-or-tests (Files): Likewise.
15388         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15389         * modules/unictype/combining-class-tests (Files): Likewise.
15390         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15391         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15392         * modules/unictype/ctype-blank-tests (Files): Likewise.
15393         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15394         * modules/unictype/ctype-digit-tests (Files): Likewise.
15395         * modules/unictype/ctype-graph-tests (Files): Likewise.
15396         * modules/unictype/ctype-lower-tests (Files): Likewise.
15397         * modules/unictype/ctype-print-tests (Files): Likewise.
15398         * modules/unictype/ctype-punct-tests (Files): Likewise.
15399         * modules/unictype/ctype-space-tests (Files): Likewise.
15400         * modules/unictype/ctype-upper-tests (Files): Likewise.
15401         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15402         * modules/unictype/decimal-digit-tests (Files): Likewise.
15403         * modules/unictype/digit-tests (Files): Likewise.
15404         * modules/unictype/mirror-tests (Files): Likewise.
15405         * modules/unictype/numeric-tests (Files): Likewise.
15406         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15407         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15408         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15409         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15410         Likewise.
15411         * modules/unictype/property-bidi-block-separator-tests (Files):
15412         Likewise.
15413         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15414         Likewise.
15415         * modules/unictype/property-bidi-common-separator-tests (Files):
15416         Likewise.
15417         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15418         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15419         Likewise.
15420         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15421         Likewise.
15422         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15423         Likewise.
15424         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15425         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15426         Likewise.
15427         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15428         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15429         Likewise.
15430         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15431         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15432         * modules/unictype/property-bidi-segment-separator-tests (Files):
15433         Likewise.
15434         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15435         * modules/unictype/property-byname-tests (Files): Likewise.
15436         * modules/unictype/property-combining-tests (Files): Likewise.
15437         * modules/unictype/property-composite-tests (Files): Likewise.
15438         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15439         * modules/unictype/property-dash-tests (Files): Likewise.
15440         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15441         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15442         Likewise.
15443         * modules/unictype/property-deprecated-tests (Files): Likewise.
15444         * modules/unictype/property-diacritic-tests (Files): Likewise.
15445         * modules/unictype/property-extender-tests (Files): Likewise.
15446         * modules/unictype/property-format-control-tests (Files): Likewise.
15447         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15448         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15449         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15450         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15451         * modules/unictype/property-hyphen-tests (Files): Likewise.
15452         * modules/unictype/property-id-continue-tests (Files): Likewise.
15453         * modules/unictype/property-id-start-tests (Files): Likewise.
15454         * modules/unictype/property-ideographic-tests (Files): Likewise.
15455         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15456         * modules/unictype/property-ids-trinary-operator-tests (Files):
15457         Likewise.
15458         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15459         * modules/unictype/property-iso-control-tests (Files): Likewise.
15460         * modules/unictype/property-join-control-tests (Files): Likewise.
15461         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15462         * modules/unictype/property-line-separator-tests (Files): Likewise.
15463         * modules/unictype/property-logical-order-exception-tests (Files):
15464         Likewise.
15465         * modules/unictype/property-lowercase-tests (Files): Likewise.
15466         * modules/unictype/property-math-tests (Files): Likewise.
15467         * modules/unictype/property-non-break-tests (Files): Likewise.
15468         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15469         * modules/unictype/property-numeric-tests (Files): Likewise.
15470         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15471         * modules/unictype/property-other-default-ignorable-code-point-tests
15472         (Files): Likewise.
15473         * modules/unictype/property-other-grapheme-extend-tests (Files):
15474         Likewise.
15475         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15476         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15477         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15478         * modules/unictype/property-other-math-tests (Files): Likewise.
15479         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15480         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15481         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15482         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15483         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15484         * modules/unictype/property-private-use-tests (Files): Likewise.
15485         * modules/unictype/property-punctuation-tests (Files): Likewise.
15486         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15487         * modules/unictype/property-radical-tests (Files): Likewise.
15488         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15489         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15490         * modules/unictype/property-space-tests (Files): Likewise.
15491         * modules/unictype/property-terminal-punctuation-tests (Files):
15492         Likewise.
15493         * modules/unictype/property-test-tests (Files): Likewise.
15494         * modules/unictype/property-titlecase-tests (Files): Likewise.
15495         * modules/unictype/property-unassigned-code-value-tests (Files):
15496         Likewise.
15497         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15498         * modules/unictype/property-uppercase-tests (Files): Likewise.
15499         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15500         * modules/unictype/property-white-space-tests (Files): Likewise.
15501         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15502         * modules/unictype/property-xid-start-tests (Files): Likewise.
15503         * modules/unictype/property-zero-width-tests (Files): Likewise.
15504         * modules/unictype/scripts-tests (Files): Likewise.
15505         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15506         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15507         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15508         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15509         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15510         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15511         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15512         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15513         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15514         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15515         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15516         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15517         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15518         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15519         * modules/uninorm/composition-tests (Files): Likewise.
15520         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15521         * modules/uninorm/decomposition-tests (Files): Likewise.
15522         * modules/uninorm/filter-tests (Files): Likewise.
15523         * modules/uninorm/nfc-tests (Files): Likewise.
15524         * modules/uninorm/nfd-tests (Files): Likewise.
15525         * modules/uninorm/nfkc-tests (Files): Likewise.
15526         * modules/uninorm/nfkd-tests (Files): Likewise.
15527         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15528         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15529         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15530         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15531         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15532         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15533         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15534         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15535         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15536         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15537         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15538         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15539         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15540         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15541         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15542         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15543         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15544         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15545         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15546         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15547         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15548         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15549         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15550         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15551         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15552         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15553         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15554         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15555         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15556         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15557         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15558         * modules/uniwidth/u8-width-tests (Files): Likewise.
15559         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15560         * modules/uniwidth/u16-width-tests (Files): Likewise.
15561         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15562         * modules/uniwidth/u32-width-tests (Files): Likewise.
15563         * modules/uniwidth/width-tests (Files): Likewise.
15564         * modules/unlink-tests (Files): Likewise.
15565         * modules/unsetenv-tests (Files): Likewise.
15566         * modules/usleep-tests (Files): Likewise.
15567         * modules/utimens-tests (Files): Likewise.
15568         * modules/utimensat-tests (Files): Likewise.
15569         * modules/vasnprintf-posix-tests (Files): Likewise.
15570         * modules/vasnprintf-tests (Files): Likewise.
15571         * modules/vasprintf-posix-tests (Files): Likewise.
15572         * modules/vasprintf-tests (Files): Likewise.
15573         * modules/vdprintf-posix-tests (Files): Likewise.
15574         * modules/vfprintf-posix-tests (Files): Likewise.
15575         * modules/vprintf-posix-tests (Files): Likewise.
15576         * modules/vsnprintf-posix-tests (Files): Likewise.
15577         * modules/vsnprintf-tests (Files): Likewise.
15578         * modules/vsprintf-posix-tests (Files): Likewise.
15579         * modules/wcrtomb-tests (Files): Likewise.
15580         * modules/wcsnrtombs-tests (Files): Likewise.
15581         * modules/wcsrtombs-tests (Files): Likewise.
15582         * modules/wctype-tests (Files): Likewise.
15583         * modules/wcwidth-tests (Files): Likewise.
15584         * modules/xmemdup0-tests (Files): Likewise.
15585         * modules/xprintf-posix-tests (Files): Likewise.
15586         * modules/xvasprintf-tests (Files): Likewise.
15587
15588 2009-12-24  Eric Blake  <ebb9@byu.net>
15589
15590         test-nanosleep: fix typo
15591         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15592         patch.
15593         Reported by Bruno Haible.
15594
15595 2009-12-24  Bruno Haible  <bruno@clisp.org>
15596
15597         Reduce namespace pollution on glibc systems.
15598         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15599         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15600         systems.
15601         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15602         <getopt.h> on glibc systems.
15603         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15604         systems.
15605         * lib/fcntl.c: Include <unistd.h> here instead.
15606
15607 2009-12-24  Bruno Haible  <bruno@clisp.org>
15608
15609         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15610
15611 2009-12-24  Eric Blake  <ebb9@byu.net>
15612
15613         tests: add signature checks
15614         * tests/signature.h (SIGNATURE_CHECK): New file.
15615         * modules/atexit-tests (Files): Use it.
15616         * modules/btowc-tests (Files): Likewise.
15617         * modules/canonicalize-lgpl-tests (Files): Likewise.
15618         * modules/ceilf-tests (Files): Likewise.
15619         * modules/ceill-tests (Files): Likewise.
15620         * modules/chown-tests (Files): Likewise.
15621         * modules/dprintf-posix-tests (Files): Likewise.
15622         * modules/dup2-tests (Files): Likewise.
15623         * modules/dup3-tests (Files): Likewise.
15624         * modules/duplocale-tests (Files): Likewise.
15625         * modules/fchdir-tests (Files): Likewise.
15626         * modules/fcntl-tests (Files): Likewise.
15627         * modules/fdopendir-tests (Files): Likewise.
15628         * modules/fflush-tests (Files): Likewise.
15629         * modules/flock-tests (Files): Likewise.
15630         * modules/floorf-tests (Files): Likewise.
15631         * modules/floorl-tests (Files): Likewise.
15632         * modules/fnmatch-tests (Files): Likewise.
15633         * modules/fopen-tests (Files): Likewise.
15634         * modules/fprintf-posix-tests (Files): Likewise.
15635         * modules/freopen-tests (Files): Likewise.
15636         * modules/frexp-nolibm-tests (Files): Likewise.
15637         * modules/frexp-tests (Files): Likewise.
15638         * modules/frexpl-nolibm-tests (Files): Likewise.
15639         * modules/frexpl-tests (Files): Likewise.
15640         * modules/fseek-tests (Files): Likewise.
15641         * modules/fseeko-tests (Files): Likewise.
15642         * modules/fsync-tests (Files): Likewise.
15643         * modules/ftell-tests (Files): Likewise.
15644         * modules/ftello-tests (Files): Likewise.
15645         * modules/futimens-tests (Files): Likewise.
15646         * modules/getaddrinfo-tests (Files): Likewise.
15647         * modules/getcwd-tests (Files): Likewise.
15648         * modules/getdelim-tests (Files): Likewise.
15649         * modules/getdtablesize-tests (Files): Likewise.
15650         * modules/getgroups-tests (Files): Likewise.
15651         * modules/gethostname-tests (Files): Likewise.
15652         * modules/getline-tests (Files): Likewise.
15653         * modules/getopt-posix-tests (Files): Likewise.
15654         * modules/gettimeofday-tests (Files): Likewise.
15655         * modules/glob-tests (Files): Likewise.
15656         * modules/iconv-tests (Files): Likewise.
15657         * modules/inet_ntop-tests (Files): Likewise.
15658         * modules/inet_pton-tests (Files): Likewise.
15659         * modules/isblank-tests (Files): Likewise.
15660         * modules/lchown-tests (Files): Likewise.
15661         * modules/ldexpl-tests (Files): Likewise.
15662         * modules/link-tests (Files): Likewise.
15663         * modules/linkat-tests (Files): Likewise.
15664         * modules/lseek-tests (Files): Likewise.
15665         * modules/lstat-tests (Files): Likewise.
15666         * modules/mbrtowc-tests (Files): Likewise.
15667         * modules/mbsinit-tests (Files): Likewise.
15668         * modules/mbsnrtowcs-tests (Files): Likewise.
15669         * modules/mbsrtowcs-tests (Files): Likewise.
15670         * modules/memchr-tests (Files): Likewise.
15671         * modules/memcmp-tests (Files): Likewise.
15672         * modules/memmem-tests (Files): Likewise.
15673         * modules/memrchr-tests (Files): Likewise.
15674         * modules/mkdir-tests (Files): Likewise.
15675         * modules/mkfifo-tests (Files): Likewise.
15676         * modules/mkfifoat-tests (Files): Likewise.
15677         * modules/mknod-tests (Files): Likewise.
15678         * modules/nanosleep-tests (Files): Likewise.
15679         * modules/nl_langinfo-tests (Files): Likewise.
15680         * modules/obstack-printf-tests (Files): Likewise.
15681         * modules/open-tests (Files): Likewise.
15682         * modules/openat-tests (Files): Likewise.
15683         * modules/perror-tests (Files): Likewise.
15684         * modules/pipe2-tests (Files): Likewise.
15685         * modules/poll-tests (Files): Likewise.
15686         * modules/popen-tests (Files): Likewise.
15687         * modules/posix_spawn-tests (Files): Likewise.
15688         * modules/posix_spawnp-tests (Files): Likewise.
15689         * modules/pread-tests (Files): Likewise.
15690         * modules/printf-posix-tests (Files): Likewise.
15691         * modules/pty-tests (Files): Likewise.
15692         * modules/random_r-tests (Files): Likewise.
15693         * modules/rawmemchr-tests (Files): Likewise.
15694         * modules/readlink-tests (Files): Likewise.
15695         * modules/remove-tests (Files): Likewise.
15696         * modules/rename-tests (Files): Likewise.
15697         * modules/renameat-tests (Files): Likewise.
15698         * modules/rmdir-tests (Files): Likewise.
15699         * modules/round-tests (Files): Likewise.
15700         * modules/roundf-tests (Files): Likewise.
15701         * modules/roundl-tests (Files): Likewise.
15702         * modules/select-tests (Files): Likewise.
15703         * modules/setenv-tests (Files): Likewise.
15704         * modules/sigaction-tests (Files): Likewise.
15705         * modules/sleep-tests (Files): Likewise.
15706         * modules/snprintf-posix-tests (Files): Likewise.
15707         * modules/snprintf-tests (Files): Likewise.
15708         * modules/sprintf-posix-tests (Files): Likewise.
15709         * modules/stat-tests (Files): Likewise.
15710         * modules/strcasestr-tests (Files): Likewise.
15711         * modules/strchrnul-tests (Files): Likewise.
15712         * modules/strerror-tests (Files): Likewise.
15713         * modules/strsignal-tests (Files): Likewise.
15714         * modules/strstr-tests (Files): Likewise.
15715         * modules/strtod-tests (Files): Likewise.
15716         * modules/strverscmp-tests (Files): Likewise.
15717         * modules/symlink-tests (Files): Likewise.
15718         * modules/symlinkat-tests (Files): Likewise.
15719         * modules/times-tests (Files): Likewise.
15720         * modules/trunc-tests (Files): Likewise.
15721         * modules/truncf-tests (Files): Likewise.
15722         * modules/truncl-tests (Files): Likewise.
15723         * modules/tsearch-tests (Files): Likewise.
15724         * modules/uname-tests (Files): Likewise.
15725         * modules/unlink-tests (Files): Likewise.
15726         * modules/unsetenv-tests (Files): Likewise.
15727         * modules/usleep-tests (Files): Likewise.
15728         * modules/utimensat-tests (Files): Likewise.
15729         * modules/vasprintf-tests (Files): Likewise.
15730         * modules/vdprintf-posix-tests (Files): Likewise.
15731         * modules/vfprintf-posix-tests (Files): Likewise.
15732         * modules/vprintf-posix-tests (Files): Likewise.
15733         * modules/vsnprintf-posix-tests (Files): Likewise.
15734         * modules/vsnprintf-tests (Files): Likewise.
15735         * modules/vsprintf-posix-tests (Files): Likewise.
15736         * modules/wcrtomb-tests (Files): Likewise.
15737         * modules/wcsnrtombs-tests (Files): Likewise.
15738         * modules/wcsrtombs-tests (Files): Likewise.
15739         * modules/wcwidth-tests (Files): Likewise.
15740         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15741         * tests/test-isinf.c (isinf): Likewise.
15742         * tests/test-isnan.c (isnan): Likewise.
15743         * tests/test-signbit.c (signbit): Likewise.
15744         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15745         declaration, either as macro or with correct signature.
15746         (select): Ensure function under test is declared with correct
15747         signature in correct header.
15748         * tests/test-atexit.c (atexit): Likewise.
15749         * tests/test-btowc.c (btowc): Likewise.
15750         * tests/test-canonicalize-lgpl.c (realpath)
15751         (canonicalize_file_name): Likewise.
15752         * tests/test-ceilf1.c (ceilf): Likewise.
15753         * tests/test-ceill.c (ceill): Likewise.
15754         * tests/test-chown.c (chown): Likewise.
15755         * tests/test-dprintf-posix.c (dprintf): Likewise.
15756         * tests/test-dup2.c (dup2): Likewise.
15757         * tests/test-dup3.c (dup3): Likewise.
15758         * tests/test-duplocale.c (duplocale): Likewise.
15759         * tests/test-fchdir.c (fchdir): Likewise.
15760         * tests/test-fchownat.c (fchownat): Likewise.
15761         * tests/test-fcntl.c (fcntl): Likewise.
15762         * tests/test-fdopendir.c (fdopendir): Likewise.
15763         * tests/test-fflush.c (fflush): Likewise.
15764         * tests/test-flock.c (flock): Likewise.
15765         * tests/test-floorf1.c (floorf): Likewise.
15766         * tests/test-floorl.c (floorl): Likewise.
15767         * tests/test-fnmatch.c (fnmatch): Likewise.
15768         * tests/test-fopen.c (fopen): Likewise.
15769         * tests/test-fprintf-posix.c (fprintf): Likewise.
15770         * tests/test-freopen.c (freopen): Likewise.
15771         * tests/test-frexp.c (frexp): Likewise.
15772         * tests/test-frexpl.c (frexpl): Likewise.
15773         * tests/test-fseek.c (fseek): Likewise.
15774         * tests/test-fseeko.c (fseeko): Likewise.
15775         * tests/test-fstatat.c (fstatat): Likewise.
15776         * tests/test-fsync.c (fsync): Likewise.
15777         * tests/test-ftell.c (ftell): Likewise.
15778         * tests/test-ftello.c (ftello): Likewise.
15779         * tests/test-futimens.c (futimens): Likewise.
15780         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15781         (gai_strerror): Likewise.
15782         * tests/test-getcwd.c (getcwd): Likewise.
15783         * tests/test-getdelim.c (getdelim): Likewise.
15784         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15785         * tests/test-getgroups.c (getgroups): Likewise.
15786         * tests/test-gethostname.c (gethostname): Likewise.
15787         * tests/test-getline.c (getline): Likewise.
15788         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15789         Likewise.
15790         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15791         * tests/test-glob.c (glob, globfree): Likewise.
15792         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15793         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15794         * tests/test-inet_pton.c (inet_pton): Likewise.
15795         * tests/test-isblank.c (isblank): Likewise.
15796         * tests/test-lchown.c (lchown): Likewise.
15797         * tests/test-ldexpl.c (ldexpl): Likewise.
15798         * tests/test-link.c (link): Likewise.
15799         * tests/test-linkat.c (linkat): Likewise.
15800         * tests/test-lseek.c (lseek): Likewise.
15801         * tests/test-lstat.c (lstat): Likewise.
15802         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15803         * tests/test-mbsinit.c (mbsinit): Likewise.
15804         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15805         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15806         * tests/test-memchr.c (memchr): Likewise.
15807         * tests/test-memcmp.c (memcmp): Likewise.
15808         * tests/test-memmem.c (memmem): Likewise.
15809         * tests/test-memrchr.c (memrchr): Likewise.
15810         * tests/test-mkdir.c (mkdir): Likewise.
15811         * tests/test-mkdirat.c (mkdirat): Likewise.
15812         * tests/test-mkfifo.c (mkfifo): Likewise.
15813         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15814         * tests/test-mknod.c (mknod): Likewise.
15815         * tests/test-nanosleep.c (nanosleep): Likewise.
15816         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15817         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15818         Likewise.
15819         * tests/test-open.c (open): Likewise.
15820         * tests/test-openat.c (openat): Likewise.
15821         * tests/test-perror.c (perror): Likewise.
15822         * tests/test-pipe2.c (pipe2): Likewise.
15823         * tests/test-poll.c (poll): Likewise.
15824         * tests/test-popen.c (popen, pclose): Likewise.
15825         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15826         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15827         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15828         (posix_spawn_file_actions_destroy)
15829         (posix_spawn_file_actions_addclose)
15830         (posix_spawn_file_actions_addopen)
15831         (posix_spawn_file_actions_adddup2): Likewise.
15832         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15833         * tests/test-pread.c (pread): Likewise.
15834         * tests/test-printf-posix.c (printf): Likewise.
15835         * tests/test-pty.c (openpty, forkpty): Likewise.
15836         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15837         (random_r): Likewise.
15838         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15839         * tests/test-readlink.c (readlink): Likewise.
15840         * tests/test-remove.c (remove): Likewise.
15841         * tests/test-rename.c (rename): Likewise.
15842         * tests/test-renameat.c (renameat): Likewise.
15843         * tests/test-rmdir.c (rmdir): Likewise.
15844         * tests/test-round1.c (round): Likewise.
15845         * tests/test-roundf1.c (roundf): Likewise.
15846         * tests/test-roundl.c (roundl): Likewise.
15847         * tests/test-setenv.c (setenv): Likewise.
15848         * tests/test-sigaction.c (sigaction): Likewise.
15849         * tests/test-sleep.c (sleep): Likewise.
15850         * tests/test-snprintf.c (snprintf): Likewise.
15851         * tests/test-sprintf-posix.c (sprintf): Likewise.
15852         * tests/test-stat.c (stat): Likewise.
15853         * tests/test-stpncpy.c (stpncpy): Likewise.
15854         * tests/test-strcasestr.c (strcasestr): Likewise.
15855         * tests/test-strchrnul.c (strchrnul): Likewise.
15856         * tests/test-strerror.c (strerror): Likewise.
15857         * tests/test-strsignal.c (strsignal): Likewise.
15858         * tests/test-strstr.c (strstr): Likewise.
15859         * tests/test-strtod.c (strtod): Likewise.
15860         * tests/test-strverscmp.c (strverscmp): Likewise.
15861         * tests/test-symlink.c (symlink): Likewise.
15862         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15863         * tests/test-times.c (times): Likewise.
15864         * tests/test-trunc1.c (trunc): Likewise.
15865         * tests/test-truncf1.c (truncf): Likewise.
15866         * tests/test-truncl.c (truncl): Likewise.
15867         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15868         Likewise.
15869         * tests/test-uname.c (uname): Likewise.
15870         * tests/test-unlink.c (unlink): Likewise.
15871         * tests/test-unlinkat.c (unlinkat): Likewise.
15872         * tests/test-unsetenv.c (unsetenv): Likewise.
15873         * tests/test-usleep.c (usleep): Likewise.
15874         * tests/test-utimensat.c (utimensat): Likewise.
15875         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15876         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15877         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15878         * tests/test-vprintf-posix.c (vprintf): Likewise.
15879         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15880         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15881         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15882         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15883         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15884         * tests/test-wcwidth.c (wcwidth): Likewise.
15885
15886         build: pull in conditional headers during GNULIB_POSIXCHECK
15887         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15888         definitions from any conditionally-included headers.
15889         * lib/stdlib.in.h (includes): Likewise.
15890         * lib/unistd.in.h (includes): Likewise.
15891
15892 2009-12-24  Bruno Haible  <bruno@clisp.org>
15893
15894         * tests/test-argv-iter.c: Include header file being tested immediately
15895         after config.h.
15896         * tests/test-base64.c: Likewise.
15897         * tests/test-flock.c: Likewise.
15898         * tests/test-fsync.c: Likewise.
15899         * tests/test-getdate.c: Likewise.
15900         * tests/test-getndelim2.c: Likewise.
15901         * tests/test-isfinite.c: Likewise.
15902         * tests/test-isinf.c: Likewise.
15903         * tests/test-strerror.c: Likewise.
15904         * tests/test-strsignal.c: Likewise.
15905
15906 2009-12-23  Eric Blake  <ebb9@byu.net>
15907
15908         unistd: work around cygwin bug
15909         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15910         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15911         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15912
15913 2009-12-23  Bruno Haible  <bruno@clisp.org>
15914
15915         localename: More tests.
15916         * tests/test-localename.c (SIZEOF): New macro.
15917         (categories): New variable.
15918         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15919         test_locale_name_default): Add test w.r.t. thread locale.
15920         (test_locale_name_thread): New function.
15921         (main): Invoke it.
15922
15923         localename: Make aware of thread locale.
15924         * lib/localename.h (gl_locale_name_thread): New declaration.
15925         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15926         behaviour with respect to thread locale.
15927         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15928         <langinfo.h>, glthread/lock.h.
15929         (SIZE_BITS): New macro.
15930         (string_hash): New function.
15931         (struct hash_node): New type.
15932         (HASH_TABLE_SIZE): New macro.
15933         (struniq_hash_table, struniq_lock): New variables.
15934         (struniq): New function.
15935         (gl_locale_name_thread): New function.
15936         (gl_locale_name): Invoke it.
15937         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15938         * modules/localename (Depends-on): Add lock.
15939         Reported by Mike Gran <spk121@yahoo.com>.
15940
15941 2009-12-23  Eric Blake  <ebb9@byu.net>
15942
15943         va-args: new module
15944         * modules/va-args: New file.
15945         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15946         * MODULES.html.sh (Core language properties): Mention it.
15947
15948         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15949         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15950         named alias for __attribute__((__unused__)).
15951         * lib/chown.c: Update client.
15952         * lib/fchmodat.c: Likewise.
15953         * lib/fts.c: Likewise.
15954         * lib/getdate.y: Likewise.
15955         * lib/getgroups.c: Likewise.
15956         * lib/getopt.c: Likewise.
15957         * lib/getugroups.c: Likewise.
15958         * lib/mkdir.c: Likewise.
15959         * lib/mkfifo.c: Likewise.
15960         * lib/mkfifoat.c: Likewise.
15961         * lib/mknod.c: Likewise.
15962         * lib/mknodat.c: Likewise.
15963         * lib/readlink.c: Likewise.
15964         * lib/se-context.in.h: Likewise.
15965         * lib/se-selinux.in.h: Likewise.
15966         * lib/sockets.c: Likewise.
15967         * lib/symlink.c: Likewise.
15968         * lib/symlinkat.c: Likewise.
15969         * lib/unicodeio.c: Likewise.
15970         * lib/unistr.h: Likewise.
15971         * tests/test-areadlink.c: Likewise.
15972         * tests/test-areadlinkat.c: Likewise.
15973         * tests/test-filenamecat.c: Likewise.
15974         * tests/test-fseeko.c: Likewise.
15975         * tests/test-ftello.c: Likewise.
15976         * tests/test-getdate.c: Likewise.
15977         * tests/test-getgroups.c: Likewise.
15978         * tests/test-gethostname.c: Likewise.
15979         * tests/test-quotearg.c: Likewise.
15980         * tests/test-version-etc.c: Likewise.
15981         * tests/test-xalloc-die.c: Likewise.
15982         * tests/test-xfprintf-posix.c: Likewise.
15983         * tests/test-xprintf-posix.c: Likewise.
15984         * tests/test-xvasprintf.c: Likewise.
15985
15986         tests: avoid compiler warnings
15987         * tests/test-fcntl.c (main): Delete unused parameters.
15988         * tests/test-freopen-safer.c (main): Likewise.
15989         * tests/test-xalloc-die.c (main): Mark unused parameters.
15990         * tests/test-fseeko.c (main): Likewise.
15991         * tests/test-ftello.c (main): Likewise.
15992         * tests/test-nanosleep.c (main): Avoid declaration warning.
15993         * tests/test-sleep.c (main): Likewise.
15994         * tests/test-unsetenv.c (main): Silence warning about string
15995         literal.
15996         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15997
15998 2009-12-23  Bruno Haible  <bruno@clisp.org>
15999
16000         * tests/test-localename.c (test_locale_name): New function, extracted
16001         from main. Also test mixed situations.
16002         (test_locale_name_posix, test_locale_name_environ,
16003         test_locale_name_default): New functions.
16004         (main): Invoke them all.
16005         * modules/localename-tests (configure.ac): Test for newlocale.
16006
16007 2009-12-23  Bruno Haible  <bruno@clisp.org>
16008
16009         unistd: Ensure getcwd gets declared before being overridden.
16010         * lib/unistd.in.h: Conditionally include <io.h>.
16011
16012 2009-12-22  Bruno Haible  <bruno@clisp.org>
16013
16014         wchar: Diagnose broken combination of glibc and gcc versions and flags.
16015         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
16016         (gl_WCHAR_H): Invoke it.
16017         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
16018         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
16019         Reported by Karl Berry <karl@freefriends.org>.
16020
16021 2009-12-22  Eric Blake  <ebb9@byu.net>
16022
16023         math, unistd: avoid redundant includes
16024         * lib/math.in.h (isnan): No need to re-include <math.h>.
16025         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
16026
16027         getsubopt: work around cygwin bug
16028         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
16029         avoid conflicting with system getsubopt.
16030         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
16031         bug.
16032
16033         getopt: synchronize from glibc
16034         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
16035         parameter order.  Adjust all callers.
16036         (_getopt_internal_r, main): Adjust quoting in error messages.
16037         Drop considerations for outdated POSIX 1003.2 error message.
16038         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
16039         callers.
16040         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
16041
16042         test-getopt: test stderr behavior
16043         * modules/getopt-posix-tests (Depends-on): Add dup2.
16044         * tests/test-getopt.c (ASSERT): Avoid stderr.
16045         (main): Move stderr to a temporary file.
16046         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
16047         Instead, add parameter to inform caller if output occurred.
16048         (test_getopt): Adjust all existing tests to expect silence, and
16049         add new tests of leading ":".
16050         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16051         glibc shortcomings with leading "-:" or "+:" in optstring.
16052         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16053         Likewise.
16054         * doc/posix-functions/getopt.texi (getopt): Likewise.
16055
16056         test-getopt: enhance test
16057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
16058         supports optind=0.
16059         * tests/test-getopt.c (OPTIND_MIN): Move...
16060         * tests/test-getopt.h (OPTIND_MIN): ...here.
16061         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
16062         Require that optind=0 works, since modern BSD supports it in
16063         addition to optreset, and since coreutils expects it.
16064         (test_getopt_long_only): New test.
16065         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
16066         glibc shortcomings with 'W;', and enforcement of optind=0.
16067         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16068         Likewise.
16069
16070 2009-12-21  Bruno Haible  <bruno@clisp.org>
16071
16072         localename: Improvements for MacOS X and Cygwin.
16073         * lib/localename.h (gl_locale_name_environ): New declaration.
16074         * lib/localename.c (gl_locale_name_environ): New function, extracted from
16075         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
16076         (gl_locale_name_posix): Invoke it.
16077         (gl_locale_name_default): Add comments. Use Windows native API also on
16078         Cygwin.
16079
16080 2009-12-21  Bruno Haible  <bruno@clisp.org>
16081
16082         Update list of Win32 locale ids.
16083         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
16084         (LANG_SAMI): Renamed from LANG_SAAMI.
16085         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
16086         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
16087         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
16088         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
16089         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
16090         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
16091         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
16092         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
16093         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
16094         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
16095         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
16096         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
16097         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
16098         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
16099         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
16100         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
16101         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
16102         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
16103         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
16104         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
16105         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
16106         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
16107         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
16108         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
16109         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
16110         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
16111         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
16112         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
16113         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
16114         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
16115         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
16116         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
16117         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
16118         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
16119         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
16120         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
16121         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
16122         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
16123         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
16124         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
16125         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
16126         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
16127         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
16128         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
16129         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
16130         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
16131         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
16132         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
16133         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
16134         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
16135         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
16136         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
16137         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
16138         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
16139         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
16140         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
16141         Add more languages and countries for Sami, Sorbian. Add more countries
16142         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
16143         for Pashto. Change country for Syriac, Tswana.
16144
16145 2009-12-21  Eric Blake  <ebb9@byu.net>
16146
16147         test-utimens: avoid spurious failure
16148         * tests/test-chown.h (nap): Factor...
16149         * tests/nap.h: ...into new file.
16150         * tests/test-lchown.h (nap): Avoid duplication.
16151         * tests/test-utimens-common.h (nap): Use shared implementation,
16152         necessary on file systems with 1-second resolution.
16153         * modules/chown-tests (Files): Include new file.
16154         * modules/fdutimensat-tests (Files): Likewise.
16155         * modules/futimens-tests (Files): Likewise.
16156         * modules/lchown-tests (Files): Likewise.
16157         * modules/openat-tests (Files): Likewise.
16158         * modules/utimens-tests (Files): Likewise.
16159         * modules/utimensat-tests (Files): Likewise.
16160
16161 2009-12-19  Eric Blake  <ebb9@byu.net>
16162
16163         futimens, utimensat: work around Linux bug
16164         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
16165         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16166         * lib/utimensat.c (rpl_utimensat): Work around it.
16167         * lib/futimens.c (rpl_futimens): Adjust comment.
16168
16169         utimens: work around Linux ctime bug
16170         * lib/utimens.c (detect_ctime_bug): New helper function.
16171         (update_timespec): Differentiate between workaround needed for
16172         this bug vs. what is needed for systems that lack utimensat.
16173         (fdutimens, lutimens): Work around bug.
16174
16175         utimens: check for ctime update
16176         * tests/test-utimens-common.h (check_ctime): Define.
16177         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
16178         * tests/test-futimens.h (test_futimens): Likewise.
16179         * tests/test-lutimens.h (test_lutimens): Likewise.
16180         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16181         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16182
16183 2009-12-19  Bruno Haible  <bruno@clisp.org>
16184
16185         dprintf-posix: Check against memory leak fixed on 2009-12-15.
16186         * tests/test-dprintf-posix2.sh: New file.
16187         * tests/test-dprintf-posix2.c: New file.
16188         * modules/dprintf-posix-tests (Files): Add them.
16189         (configure.ac): Check for getrlimit and setrlimit.
16190         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16191
16192 2009-12-19  Bruno Haible  <bruno@clisp.org>
16193
16194         fprintf-posix: Check against memory leak fixed on 2009-12-15.
16195         * tests/test-fprintf-posix3.sh: New file.
16196         * tests/test-fprintf-posix3.c: New file.
16197         * modules/fprintf-posix-tests (Files): Add them.
16198         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
16199
16200 2009-12-19  Eric Blake  <ebb9@byu.net>
16201
16202         dirfd: fix prototype
16203         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
16204         * lib/dirfd.c (dirfd): Likewise.
16205
16206         canonicalize: reduce memory usage
16207         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
16208         allocation to size.
16209         Reported by Solar Designer <solar@openwall.com>.
16210
16211 2009-12-19  Bruno Haible  <bruno@clisp.org>
16212
16213         New module attribute 'Applicability'.
16214         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
16215         * gnulib-tool: New option --extract-applicability.
16216         (func_usage): Document it.
16217         (sed_extract_prog): Recognize it.
16218         (func_get_applicability): New function.
16219         (func_import): Generalize handling of 'link-warning' module.
16220         * modules/link-warning (Applicability): New section.
16221         * modules/arg-nonnull (Applicability): New section.
16222         Repoted by Simon Josefsson <simon@josefsson.org>.
16223
16224 2009-12-19  Bruno Haible  <bruno@clisp.org>
16225
16226         fflush: tweak
16227         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
16228         * lib/fseeko.c (rpl_fseeko): Likewise.
16229
16230 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
16231
16232         * lib/gl_list.h: Fix typo in comment.
16233
16234 2009-12-16  Eric Blake  <ebb9@byu.net>
16235
16236         fcntl: use to simplify other modules
16237         * modules/cloexec (Depends-on): Add fcntl.
16238         * modules/fchdir (Depends-on): Likewise.
16239         * modules/fd-safer-flag (Depends-on): Likewise.
16240         * modules/unistd-safer (Depends-on): Likewise.
16241         * modules/dup3 (configure.ac): Set module indicator.
16242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
16243         missing.
16244         * lib/fchdir.c (_gl_register_dup): Fix comment.
16245         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
16246         * lib/dup-safer.c (dup_safer): Likewise.
16247         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
16248         * lib/dup3.c (dup3): Likewise.
16249         * tests/test-fchdir.c (main): Enhance test.
16250         Fixes a dup_cloexec bug reported by Ondřej Vašík.
16251
16252         fcntl: port portions of fcntl to mingw
16253         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
16254         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
16255         replacement for mingw.
16256         * modules/fcntl (Description): Update.
16257         (Depends-on): Add dup2.
16258         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
16259         * modules/fcntl-h (Makefile.am): Substitute it.
16260         * lib/fcntl.in.h (fcntl): Update declaration.
16261         (F_DUPFD, F_GETFD): New macros, when needed.
16262         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16263         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
16264         * tests/test-fcntl.c (check_flags, main): Enhance test for items
16265         we now guarantee.
16266
16267         fcntl: work around cygwin bug in F_DUPFD
16268         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
16269         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
16270         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
16271         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
16272         * doc/posix-functions/fcntl.texi (fcntl): Document it.
16273
16274         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
16275         * modules/fcntl (Files): List new files.
16276         (configure.ac): Run a test.
16277         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
16278         * lib/fcntl.c (rpl_fcntl): Likewise.
16279         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
16280         (gl_FCNTL_H): Always replace fcntl.h.
16281         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16282         * lib/fcntl.in.h (fcntl): Declare replacement.
16283         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16284         needed, plus a witness.
16285         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16286         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16287         * tests/test-fcntl.c: New file.
16288         * modules/fcntl-tests: Likewise.
16289
16290         binary-io: avoid potential compilation warning
16291         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16292         directives.
16293
16294         fflush: avoid compilation error on NetBSD
16295         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16296         between off_t and fpos_t, since the latter is sometimes a struct.
16297         * lib/fseeko.c (rpl_fseeko): Likewise.
16298         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16299
16300 2009-12-15  Eric Blake  <ebb9@byu.net>
16301
16302         fcntl-h, stdio, sys_ioctl: fix declarations
16303         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16304         function must not take arguments.
16305         * lib/sys_ioctl.in.h (ioctl): Likewise.
16306         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16307         (open): Add a link warning.
16308
16309 2009-12-15  Jim Meyering  <meyering@redhat.com>
16310
16311         areadlink, areadlink-with-size: relax license to LGPLv2+
16312         * modules/areadlink (License): Relax to LGPLv2+.
16313         * modules/areadlink-with-size (License): Likewise.
16314
16315 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16316             Bruno Haible  <bruno@clisp.org>
16317
16318         *printf: Fix memory leak.
16319         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16320         * lib/vfprintf.c (vfprintf): Likewise.
16321         * lib/dprintf.c (dprintf): Likewise.
16322         * lib/vdprintf.c (vdprintf): Likewise.
16323
16324 2009-12-14  Eric Blake  <ebb9@byu.net>
16325
16326         accept4: adjust module dependencies
16327         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16328
16329         utimens: one more try at avoiding compiler warning
16330         * lib/utimens.c (lutimens): Lower scope of result.
16331
16332 2009-12-13  Bruno Haible  <bruno@clisp.org>
16333
16334         Move the malloc checking from module 'list' to new module 'xlist'.
16335         * modules/xlist: New file.
16336         * lib/gl_xlist.h: New file.
16337         * lib/gl_xlist.c: New file.
16338         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16339         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16340         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16341         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16342         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16343         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16344         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16345         gl_sortedlist_nx_add): New declarations.
16346         (struct gl_list_implementation): Rename and change methods accordingly.
16347         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
16348         (gl_list_nx_create): Renamed from gl_list_create.
16349         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16350         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16351         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16352         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16353         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16354         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16355         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16356         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16357         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
16358         gl_list_create_empty.
16359         (gl_list_nx_create): Renamed from gl_list_create.
16360         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16361         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16362         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16363         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16364         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16365         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16366         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16367         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16368         * lib/gl_array_list.c: Don't include xalloc.h.
16369         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16370         NULL upon out-of-memory.
16371         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16372         out-of-memory.
16373         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16374         Change return type to 'int'.
16375         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16376         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16377         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16378         upon out-of-memory.
16379         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16380         upon out-of-memory.
16381         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16382         upon out-of-memory.
16383         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16384         upon out-of-memory.
16385         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16386         out-of-memory.
16387         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16388         Update.
16389         (gl_array_list_implementation): Update.
16390         * lib/gl_carray_list.c: Don't include xalloc.h.
16391         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16392         Return NULL upon out-of-memory.
16393         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16394         out-of-memory.
16395         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16396         Change return type to 'int'.
16397         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16398         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16399         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16400         upon out-of-memory.
16401         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16402         upon out-of-memory.
16403         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16404         out-of-memory.
16405         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16406         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16407         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16408         Update.
16409         (gl_carray_list_implementation): Update.
16410         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16411         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16412         gl_linked_create_empty. Return NULL upon out-of-memory.
16413         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16414         out-of-memory.
16415         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16416         Change return type to 'int'. Return -1 upon out-of-memory.
16417         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16418         out-of-memory.
16419         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16420         upon out-of-memory.
16421         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16422         upon out-of-memory.
16423         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16424         NULL upon out-of-memory.
16425         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16426         upon out-of-memory.
16427         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16428         out-of-memory.
16429         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16430         Update.
16431         * lib/gl_linked_list.c: Don't include xalloc.h.
16432         (gl_linked_list_implementation): Update.
16433         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16434         (add_to_bucket): Change return type to 'int'.
16435         (gl_linkedhash_list_implementation): Update.
16436         * lib/gl_anytree_list1.h (free_subtree): New function.
16437         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16438         gl_tree_create_empty. Return NULL upon out-of-memory.
16439         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16440         Change return type to 'int'. Return -1 upon out-of-memory.
16441         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16442         out-of-memory.
16443         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16444         (gl_tree_remove_node): New function, moved here from
16445         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16446         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16447         Update.
16448         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16449         malloc, not xmalloc. Return NULL upon out-of-memory.
16450         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16451         out-of-memory.
16452         (gl_tree_remove_node_from_tree): New function, extracted from
16453         gl_tree_remove_node.
16454         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16455         upon out-of-memory.
16456         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16457         out-of-memory.
16458         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16459         upon out-of-memory.
16460         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16461         upon out-of-memory.
16462         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16463         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16464         not xmalloc. Return NULL upon out-of-memory.
16465         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16466         out-of-memory.
16467         (gl_tree_remove_node_from_tree): New function, extracted from
16468         gl_tree_remove_node.
16469         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16470         upon out-of-memory.
16471         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16472         out-of-memory.
16473         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16474         upon out-of-memory.
16475         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16476         upon out-of-memory.
16477         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16478         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16479         gl_anytree_list1.h before gl_anyavltree_list2.h.
16480         (gl_avltree_list_implementation): Update.
16481         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16482         gl_anytree_list1.h before gl_anyavltree_list2.h.
16483         (gl_rbtree_list_implementation): Update.
16484         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16485         Change return type to 'int'. Return -1 upon out-of-memory. Use
16486         __builtin_expect.
16487         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16488         (gl_avltreehash_list_implementation): Update.
16489         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16490         (gl_rbtreehash_list_implementation): Update.
16491         * modules/array-list (Depends-on): Remove xalloc.
16492         * modules/carray-list (Depends-on): Likewise.
16493         * modules/linked-list (Depends-on): Likewise.
16494         * modules/linkedhash-list (Depends-on): Likewise.
16495         * modules/avltree-list (Depends-on): Likewise.
16496         * modules/rbtree-list (Depends-on): Likewise.
16497         * modules/avltreehash-list (Depends-on): Likewise.
16498         * modules/rbtreehash-list (Depends-on): Likewise.
16499
16500         * modules/xsublist: New file.
16501         * lib/gl_xsublist.h: New file.
16502         * lib/gl_xsublist.c: New file.
16503         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16504         (gl_sublist_nx_create): New declaration.
16505         * lib/gl_sublist.c: Don't include xalloc.h.
16506         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16507         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16508         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16509         Change return type to 'int'. Return -1 upon out-of-memory.
16510         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16511         upon out-of-memory.
16512         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16513         NULL upon out-of-memory.
16514         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16515         upon out-of-memory.
16516         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16517         NULL upon out-of-memory.
16518         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16519         NULL upon out-of-memory.
16520         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16521         upon out-of-memory.
16522         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16523         (gl_sublist_list_implementation): Update.
16524         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16525         upon out-of-memory.
16526         * modules/sublist (Depends-on): Remove xalloc.
16527
16528         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16529         * tests/test-carray_list.c: Likewise.
16530         * tests/test-linked_list.c: Likewise.
16531         * tests/test-linkedhash_list.c: Likewise.
16532         * tests/test-avltree_list.c: Likewise.
16533         * tests/test-rbtree_list.c: Likewise.
16534         * tests/test-avltreehash_list.c: Likewise.
16535         * tests/test-rbtreehash_list.c: Likewise.
16536         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16537         * modules/carray-list-tests (Makefile.am): Likewise.
16538         * modules/linked-list-tests (Makefile.am): Likewise.
16539         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16540         * modules/avltree-list-tests (Makefile.am): Likewise.
16541         * modules/rbtree-list-tests (Makefile.am): Likewise.
16542         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16543         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16544
16545         * NEWS: Mention the changes.
16546
16547         * lib/clean-temp.c: Include gl_xlist.h.
16548         * modules/clean-temp (Depends-on): Add xlist.
16549
16550         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16551         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16552
16553         * tests/test-array_oset.c: Include gl_xlist.h.
16554         * modules/array-oset-tests (Depends-on): Add xlist.
16555
16556         Reported by José E. Marchesi <jemarch@gnu.org>.
16557
16558 2009-12-13  Bruno Haible  <bruno@clisp.org>
16559
16560         Move the malloc checking from module 'oset' to new module 'xoset'.
16561         * modules/xoset: New file.
16562         * lib/gl_xoset.h: New file.
16563         * lib/gl_xoset.c: New file.
16564         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16565         declarations.
16566         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16567         (struct gl_oset_implementation): Rename and change methods accordingly.
16568         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16569         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16570         'int'. Mark as __warn_unused_result__.
16571         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16572         gl_oset_create_empty.
16573         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16574         'int'.
16575         * lib/gl_array_oset.c: Don't include xalloc.h.
16576         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16577         malloc, not xmalloc.
16578         (grow): Change return type to 'int'. Don't call xalloc_die.
16579         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16580         to 'int'.
16581         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16582         'int'.
16583         (gl_array_oset_implementation): Update.
16584         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16585         gl_tree_create_empty.
16586         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16587         'int'.
16588         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16589         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16590         xmalloc.
16591         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16592         not xmalloc.
16593         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16594         xmalloc.
16595         (gl_avltree_oset_implementation): Update.
16596         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16597         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16598         xmalloc.
16599         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16600         not xmalloc.
16601         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16602         xmalloc.
16603         (gl_rbtree_oset_implementation): Update.
16604         * modules/array-oset (Depends-on): Remove xalloc.
16605         * modules/avltree-oset (Depends-on): Likewise.
16606         * modules/rbtree-oset (Depends-on): Likewise.
16607         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16608         * tests/test-avltree_oset.c: Likewise.
16609         * tests/test-rbtree_oset.c: Likewise.
16610         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16611         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16612         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16613         * NEWS: Mention the change.
16614
16615 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16616
16617         maint.mk: allow a project to override release-prep commands
16618         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16619         commands into a new rule.
16620         (release-prep): New rule.
16621         (release-prep-hook): New overridable variable.
16622
16623 2009-12-13  Bruno Haible  <bruno@clisp.org>
16624
16625         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16626
16627 2009-12-13  Jim Meyering  <meyering@redhat.com>
16628
16629         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16630         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16631
16632 2009-12-12  Bruno Haible  <bruno@clisp.org>
16633
16634         duplocale: Tweak.
16635         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16636
16637 2009-12-12  Karl Berry  <karl@gnu.org>
16638
16639         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16640
16641 2009-12-12  Bruno Haible  <bruno@clisp.org>
16642
16643         * m4/po.m4: Undo incorrect untabification.
16644
16645 2009-12-12  Bruno Haible  <bruno@clisp.org>
16646
16647         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16648         * modules/c-strtod (Depends-on): Add locale.
16649         * modules/c-strtold (Depends-on): Likewise.
16650
16651 2009-12-12  Bruno Haible  <bruno@clisp.org>
16652
16653         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16654
16655 2009-12-11  Eric Blake  <ebb9@byu.net>
16656
16657         setenv: relax requirement in light of POSIX ruling
16658         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16659         not NULL.
16660         * tests/test-setenv.c (main): Relax test.
16661         * tests/test-unsetenv.c (main): Likewise.
16662         * doc/posix-functions/setenv.texi (setenv): Document this.
16663         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16664
16665 2009-12-11  Bruno Haible  <bruno@clisp.org>
16666
16667         New module 'fd-safer-flag'.
16668         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16669         * lib/dup-safer.c (dup_safer_flag): Remove function.
16670         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16671         * lib/fd-safer.c (fd_safer_flag): Remove function.
16672         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16673         * modules/cloexec (configure.ac): Drop indicator macro.
16674         * modules/fd-safer-flag: New file.
16675         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16676         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16677         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16678
16679 2009-12-11  Bruno Haible  <bruno@clisp.org>
16680
16681         Tests for module 'nl_langinfo'.
16682         * modules/nl_langinfo-tests: New file.
16683         * tests/test-nl_langinfo.sh: New file.
16684         * tests/test-nl_langinfo.c: New file.
16685
16686         New module 'nl_langinfo'.
16687         * lib/nl_langinfo.c: New file.
16688         * m4/nl_langinfo.m4: New file.
16689         * modules/nl_langinfo: New file.
16690         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16691
16692 2009-12-11  Bruno Haible  <bruno@clisp.org>
16693
16694         Tests for module 'langinfo'.
16695         * modules/langinfo-tests: New file.
16696         * tests/test-langinfo.c: New file.
16697
16698         New module 'langinfo'.
16699         * lib/langinfo.in.h: New file.
16700         * m4/langinfo_h.m4: New file.
16701         * modules/langinfo: New file.
16702         * doc/posix-headers/langinfo.texi: Mention the new module.
16703
16704 2009-12-11  Bruno Haible  <bruno@clisp.org>
16705
16706         * lib/config.charset: Untabify.
16707
16708 2009-12-11  Bruno Haible  <bruno@clisp.org>
16709
16710         * modules/unistd-safer (configure.ac): Drop indicator macro.
16711
16712 2009-12-11  Bruno Haible  <bruno@clisp.org>
16713
16714         Move pipe2-safer code to its own file.
16715         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16716         * lib/pipe-safer.c (pipe2_safer): Remove function.
16717         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16718         (Makefile.am): Add it to lib_SOURCES.
16719
16720 2009-12-10  Bruno Haible  <bruno@clisp.org>
16721
16722         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16723
16724 2009-12-10  Bruno Haible  <bruno@clisp.org>
16725
16726         Declare which arguments expect non-NULL values, for GCC and clang.
16727         * build-aux/arg-nonnull.h: New file.
16728         * modules/arg-nonnull: New file.
16729         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16730         (inet_ntop, inet_pton): Use it.
16731         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16732         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16733         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16734         (open, openat): Use it.
16735         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16736         (fnmatch): Use it.
16737         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16738         (getopt, getopt_long, getopt_long_only): Use it.
16739         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16740         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16741         Use it.
16742         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16743         (iconv_open): Use it.
16744         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16745         (strtoimax, strtoumax): Use it.
16746         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16747         (duplocale): Use it.
16748         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16749         (frexp, frexpl): Use it.
16750         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16751         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16752         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16753         (tsearch, tfind, tdelete, twalk): Use it.
16754         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16755         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16756         sigpending): Use it.
16757         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16758         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16759         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16760         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16761         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16762         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16763         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16764         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16765         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16766         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16767         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16768         Use it.
16769         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16770         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16771         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16772         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16773         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16774         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16775         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16776         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16777         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16778         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16779         strtoull, unsetenv): Use it.
16780         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16781         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16782         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16783         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16784         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16785         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16786         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16787         (strcasecmp, strncasecmp): Use it.
16788         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16789         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16790         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16791         rpl_setsockopt): Use it.
16792         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16793         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16794         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16795         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16796         (gettimeofday): Use it.
16797         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16798         (times): Use it.
16799         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16800         (uname): Use it.
16801         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16802         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16803         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16804         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16805         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16806         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16807         unlinkat, write): Use it.
16808         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16809         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16810         * lib/argv-iter.h: Include arg-nonnull.h.
16811         (_ATTRIBUTE_NONNULL_): Remove macro.
16812         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16813         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16814         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16815         optimization.
16816         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16817         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16818         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16819         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16820         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16821         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16822         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16823         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16824         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16825         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16826         * modules/dirent (Depends-on): Add arg-nonnull.
16827         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16828         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16829         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16830         * modules/fnmatch (Depends-on): Add arg-nonnull.
16831         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16832         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16833         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16834         * modules/glob (Depends-on): Add arg-nonnull.
16835         (Makefile.am): Insert arg-nonnull.h into glob.h.
16836         * modules/iconv_open (Depends-on): Add arg-nonnull.
16837         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16838         * modules/inttypes (Depends-on): Add arg-nonnull.
16839         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16840         * modules/locale (Depends-on): Add arg-nonnull.
16841         (Makefile.am): Insert arg-nonnull.h into locale.h.
16842         * modules/math (Depends-on): Add arg-nonnull.
16843         (Makefile.am): Insert arg-nonnull.h into math.h.
16844         * modules/netdb (Depends-on): Add arg-nonnull.
16845         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16846         * modules/search (Depends-on): Add arg-nonnull.
16847         (Makefile.am): Insert arg-nonnull.h into search.h.
16848         * modules/signal (Depends-on): Add arg-nonnull.
16849         (Makefile.am): Insert arg-nonnull.h into signal.h.
16850         * modules/spawn (Depends-on): Add arg-nonnull.
16851         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16852         * modules/stdio (Depends-on): Add arg-nonnull.
16853         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16854         * modules/stdlib (Depends-on): Add arg-nonnull.
16855         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16856         * modules/string (Depends-on): Add arg-nonnull.
16857         (Makefile.am): Insert arg-nonnull.h into string.h.
16858         * modules/strings (Depends-on): Add arg-nonnull.
16859         (Makefile.am): Insert arg-nonnull.h into strings.h.
16860         * modules/sys_socket (Depends-on): Add arg-nonnull.
16861         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16862         * modules/sys_stat (Depends-on): Add arg-nonnull.
16863         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16864         * modules/sys_time (Depends-on): Add arg-nonnull.
16865         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16866         * modules/sys_times (Depends-on): Add arg-nonnull.
16867         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16868         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16869         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16870         * modules/time (Depends-on): Add arg-nonnull.
16871         (Makefile.am): Insert arg-nonnull.h into time.h.
16872         * modules/unistd (Depends-on): Add arg-nonnull.
16873         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16874         * modules/wchar (Depends-on): Add arg-nonnull.
16875         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16876         * modules/argv-iter (Depends-on): Add arg-nonnull.
16877         * tests/test-canonicalize.c (null_ptr): New function.
16878         (main): Use it.
16879         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16880         (main): Use it.
16881         * tests/test-memmem.c (null_ptr): New function.
16882         (main): Use it.
16883         Reported by Jim Meyering.
16884
16885 2009-12-10  Bruno Haible  <bruno@clisp.org>
16886
16887         Use spaces for indentation, not tabs.
16888         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16889         * m4/*.m4: Untabify.
16890         * build-aux/*.h: Untabify.
16891         * tests/**/*.[hc]: Untabify.
16892         * README: New section "Indent with spaces, not TABs", based on
16893         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16894         * NEWS: Mention the change.
16895
16896 2009-12-10  Bruno Haible  <bruno@clisp.org>
16897
16898         pty test: Fix link error.
16899         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16900         test_pty_LDADD.
16901
16902 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16903
16904         * modules/pty: New file.
16905         * modules/pty-tests: New file.
16906         * m4/pty.m4: New file.
16907         * tests/test-pty.c: New file.
16908         * doc/glibc-headers/pty.texi: Modified.
16909         * doc/glibc-functions/forkpty.texi: Modified.
16910         * doc/glibc-functions/openpty.texi: Modified.
16911
16912 2009-12-10  Bruno Haible  <bruno@clisp.org>
16913
16914         Avoid syntax error in C++ mode.
16915         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16916
16917 2009-12-10  Bruno Haible  <bruno@clisp.org>
16918
16919         Use sed with option -e.
16920         * gnulib-tool (func_version, func_emit_copyright_notice,
16921         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16922         option -e to sed.
16923         * modules/link-warning (Makefile.am): Likewise.
16924
16925 2009-12-10  Jim Meyering  <meyering@redhat.com>
16926
16927         mgetgroups: do not write bytes beyond end of malloc'd buffer
16928         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16929         username, we call getgroups with a one-element-shorter buffer,
16930         but still told it the length was original, max_n_groups.
16931
16932 2009-12-09  Eric Blake  <ebb9@byu.net>
16933
16934         cloexec: relax license
16935         * modules/cloexec (Maintainer): Add myself.
16936         (License): Use LGPL, not GPL.
16937
16938         link-warning: optimize generation
16939         * modules/link-warning (Makefile.am): Reduce process usage.
16940
16941 2009-12-09  Bruno Haible  <bruno@clisp.org>
16942
16943         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16944         workaround was added on 2009-11-17.
16945
16946 2009-12-09  Jim Meyering  <meyering@redhat.com>
16947             Bruno Haible  <bruno@clisp.org>
16948
16949         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16950         * modules/link-warning (Makefile.am): Make the comment-removing sed
16951         command more robust in the face of bootstrap-prepended comment lines.
16952
16953 2009-12-09  Bruno Haible  <bruno@clisp.org>
16954
16955         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16956         most one group.
16957
16958 2009-12-09  Simon Josefsson <simon@josefsson.org>
16959             Bruno Haible  <bruno@clisp.org>
16960
16961         * build-aux/link-warning.h: Add copyright notice.
16962         * modules/link-warning (Makefile.am): Generate link-warning.h from
16963         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16964         * NEWS: Mention change in link-warning module.
16965         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16966         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16967         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16968         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16969         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16970         * modules/math (Makefile.am): Add dependency to math.h.
16971         * modules/search (Makefile.am): Add dependency to search.h.
16972         * modules/signal (Makefile.am): Add dependency to signal.h.
16973         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16974         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16975         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16976         * modules/string (Makefile.am): Add dependency to string.h.
16977         * modules/strings (Makefile.am): Add dependency to strings.h.
16978         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16979         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16980         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16981         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16982         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16983         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16984         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16985         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16986         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16987
16988 2009-12-09  Bruno Haible  <bruno@clisp.org>
16989
16990         fchdir: Optimize away rpl_fstat when possible.
16991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16992         REPLACE_OPEN_DIRECTORY.
16993         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16994
16995 2009-12-09  Bruno Haible  <bruno@clisp.org>
16996
16997         * lib/fchdir.c: Update comment.
16998
16999 2009-12-09  Bruno Haible  <bruno@clisp.org>
17000
17001         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
17002
17003 2009-12-08  Eric Blake  <ebb9@byu.net>
17004
17005         fchdir: avoid memory leak on re-registration.
17006         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
17007
17008 2009-12-08  Jim Meyering  <meyering@redhat.com>
17009
17010         init.sh: avoid Solaris 10 /bin/sh portability problem
17011         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
17012         sourced script:
17013           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
17014           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
17015           bar
17016         tests/init.sh relied on that, accepting a --set-path=DIR argument,
17017         and two tests used that idiom.
17018         * tests/init.sh: Update suggested usage comments.
17019         (path_prepend_): New function, to be used in place
17020         of the --src-path=DIR option.
17021         (setup_): Move PATH-prepending code into path_prepend_.
17022         * tests/test-pread.sh: Adapt to new usage.
17023         * tests/test-xalloc-die.sh: Likewise.
17024
17025 2009-12-08  Simon Josefsson  <simon@josefsson.org>
17026
17027         * doc/gnulib.texi (Glibc pty.h): Add.
17028         * doc/glibc-functions/forkpty.texi: Add.
17029         * doc/glibc-functions/openpty.texi: Add.
17030         Suggested by Bruno Haible.
17031
17032 2009-12-08  Eric Blake  <ebb9@byu.net>
17033
17034         fchdir: fix logic bugs
17035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
17036         * tests/test-fchdir.c (main): Enhance test.
17037         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
17038         is in use.
17039
17040         dup2: fix logic bugs
17041         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
17042         REPLACE_DUP2 to decide when rpl_dup2 is needed.
17043         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
17044         exists.
17045         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
17046
17047 2009-12-07  Eric Blake  <ebb9@byu.net>
17048
17049         unlink: fix m4 detection
17050         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
17051
17052         unistd-safer: add unit test
17053         * modules/unistd-safer-tests: New file.
17054         * tests/test-dup-safer.c: Likewise.
17055         * tests/test-cloexec.c (setmode): Avoid compiler warning.
17056         * tests/test-dup2.c (setmode): Likewise.
17057         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
17058
17059         cloexec: preserve text vs. binary across dup_cloexec
17060         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
17061         mode.
17062         * modules/dup2-tests (Depends-on): Add binary-io.
17063         * modules/cloexec-tests (Depends-on): Likewise.
17064         * tests/test-dup2.c (setmode, is_mode): New helpers.
17065         (main): Add tests that translation mode is preserved.
17066         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
17067         Reported by Bruno Haible.
17068
17069         mgetgroups: reduce duplicate listings
17070         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
17071         resulting array.
17072         * tests/test-chown.h (test_chown): Simplify client.
17073         * tests/test-lchown.h (test_lchown): Likewise.
17074
17075 2009-12-06  Bruno Haible  <bruno@clisp.org>
17076
17077         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
17078         value.
17079
17080 2009-12-06  Bruno Haible  <bruno@clisp.org>
17081
17082         * lib/progname.c: Include stdio.h, stdlib.h.
17083         (set_program_name): Reject a NULL argument.
17084
17085 2009-12-05  Eric Blake  <ebb9@byu.net>
17086
17087         pipe2-safer: new module
17088         * modules/pipe2-safer: New file.
17089         * lib/unistd-safer.h (pipe2_safer): New prototype.
17090         * lib/unistd--.h (pipe2): New wrapper.
17091         * lib/pipe-safer.c (pipe2_safer): New function.
17092         * modules/pipe (Depends-on): Add pipe2-safer.
17093         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
17094
17095         stdlib-safer: preserve cloexec flag for mkostemp[s]
17096         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
17097         fd_safer_flag.
17098
17099         unistd-safer: allow preservation of cloexec status via flag
17100         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
17101         prototypes.
17102         * lib/dup-safer.c (dup_safer_flag): New function.
17103         * lib/fd-safer.c (fd_safer_flag): Likewise.
17104         * modules/cloexec (configure.ac): Set witness.
17105
17106         test-dup2: enhance test
17107         * modules/dup2-tests (Depends-on): Add cloexec.
17108         * tests/test-dup2.c (main): Enhance test.
17109
17110         cloexec: add dup_cloexec
17111         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
17112         header and comments.
17113         * lib/cloexec.c (set_cloexec_flag): Add comments.
17114         (dup_cloexec): New function, with mingw implementation borrowed
17115         from...
17116         * lib/w32spawn.h (dup_noinherit): ...here.
17117         * modules/execute (Depends-on): Add cloexec.
17118         * modules/pipe (Depends-on): Likewise.
17119         * modules/cloexec (Depends-on): Add dup2.
17120         * modules/cloexec-tests (Files): New file.
17121         * tests/test-cloexec.c: Likewise.
17122
17123         test-xalloc-die: fix test for mingw
17124         * modules/xalloc-die-tests (Files): Add tests/init.sh.
17125         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
17126         directory and .exe suffix off argv[0] output.
17127
17128         test-fseeko: fix test for mingw
17129         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
17130         than undefining fseek, so test will pass on mingw.
17131
17132 2009-12-05  Bruno Haible  <bruno@clisp.org>
17133
17134         * lib/progname.h (set_program_name): Clarify specification.
17135         * lib/progname.c (set_program_name): Likewise.
17136         Reported by Jim Meyering.
17137
17138 2009-12-05  Jim Meyering  <meyering@redhat.com>
17139
17140         maint.mk: backslash-escape parens in default regexp
17141         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
17142         backslash-escape the literal parentheses.
17143
17144         maint.mk: news-date-check: use grep -E
17145         * top/maint.mk (today): Define a Make variable, not a...
17146         (news-date-check): ...shell variable.
17147         (news-date-regexp): Use the Make variable.
17148         Use grep's -E option.  Change the failing diagnostic to mention
17149         the variable, $(news-date-regexp).
17150
17151 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
17152
17153         maintainer-makefile: allow customization of NEWS entry format
17154         * top/maint.mk (news-date-regexp): New overridable variable.
17155         (news-date-check): Use it.
17156
17157 2009-12-04  Eric Blake  <ebb9@byu.net>
17158
17159         mgetgroups: add xgetgroups, and avoid ENOSYS failures
17160         * lib/mgetgroups.h (xgetgroups): New prototype.
17161         * lib/mgetgroups.c (xgetgroups): New wrapper.
17162         (mgetgroups): Handle ENOSYS.
17163         * modules/mgetgroups (Depends-on): Add realloc.
17164         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
17165
17166         mgetgroups: avoid argument promotion issues with -1
17167         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
17168         for invalid gid_t.
17169         * tests/test-chown.h (getegid, test_chown): Likewise.
17170         * tests/test-lchown.h (getegid, test_lchown): Likewise.
17171
17172 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
17173
17174         exclude: Fix header file problems.
17175         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
17176
17177 2009-12-01  Jim Meyering  <meyering@redhat.com>
17178
17179         fts: fts_open: do not let an empty string cause immediate failure
17180         This is required in support of GNU rm, for which the command
17181         "rm A '' B" must process and remove both A and B, in spite of
17182         the empty string argument.
17183         * lib/fts.c (fts_open): Do not let the presence of an empty string
17184         cause fts_open to fail immediately.  Most fts-using tools must be
17185         able to process all arguments, in order, and can be expected to
17186         diagnose such arguments themselves.
17187
17188 2009-11-30  Eric Blake  <ebb9@byu.net>
17189
17190         utimens: fix compilation error
17191         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
17192         Declare variable at right scope.
17193
17194 2009-11-29  Jim Meyering  <meyering@redhat.com>
17195
17196         bootstrap: handle perl-5.11's changed --version output
17197         * build-aux/bootstrap (get_version): Handle perl separately,
17198         since perl-5.11's --version output is different.
17199
17200 2009-11-28  Jim Meyering  <meyering@redhat.com>
17201
17202         userspec: depend on the inttostr module, too
17203         * modules/userspec (Depends-on): Add inttostr.
17204
17205         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
17206         * lib/userspec.c (parse_with_separator): Do not accept a user ID
17207         number of MAXUID when it evaluates to (uid_t) -1.
17208         Likewise for group ID.  Reported by Matt McCutchen in
17209         <http://savannah.gnu.org/bugs/?28113>
17210
17211         userspec: reformat to use spaces, not TABs
17212         * lib/userspec.c: Expand TABs to spaces.
17213         Add Emacs' "indent-tabs-mode: nil" hint.
17214
17215 2009-11-27  Eric Blake  <ebb9@byu.net>
17216
17217         getopt-gnu: flush out another BSD bug
17218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
17219         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
17220         flush out BSD bug.
17221         * tests/test-getopt.h (test_getopt): End lists with NULL.
17222         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17223         (test_getopt_long_posix): Enhance test.
17224         * modules/getopt-posix-tests (Depends-on): Add stdbool.
17225         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
17226         getopt-gnu.
17227         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17228         Likewise.
17229
17230 2009-11-27  Simon Josefsson  <simon@josefsson.org>
17231
17232         * modules/idpriv-droptemp-tests (Notice): Fix text.
17233
17234 2009-11-27  Jim Meyering  <meyering@redhat.com>
17235
17236         test-xalloc-die: avoid spurious failure due to libtool argv difference
17237         In a libtool-enabled project, this test would fail due to a difference
17238         in the emitted program name, e.g.,
17239         -test-xalloc-die: memory exhausted
17240         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
17241         Use program to avoid that.
17242         * modules/xalloc-die-tests (Depends-on): Add progname.
17243         * tests/test-xalloc-die.c: Include progname.h".
17244         (program_name): Remove decl.
17245         (main): Call set_program_name.
17246         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
17247
17248 2009-11-26  Richard Jones  <rjones@redhat.com>
17249
17250         w32sock: leave win32 error in place.
17251         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
17252
17253 2009-11-26  Eric Blake  <ebb9@byu.net>
17254
17255         init.sh: suggest to use skip_ and fail_ functions in comments
17256         * tests/init.sh: Add a sentence.
17257
17258 2009-11-25  Bruno Haible  <bruno@clisp.org>
17259
17260         init.sh: add documentation in comments
17261         * tests/init.sh: Add some developer and user documentation.
17262
17263 2009-11-26  Jim Meyering  <meyering@redhat.com>
17264
17265         init.sh: accommodate even those who specify bogus srcdir manually
17266         * tests/init.sh: Normally, srcdir is guaranteed by automake and
17267         configure-time tests to be sanitized, so that there is no need to
17268         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
17269         (with no double quotes) suffices.  However, since tests may be
17270         invoked manually, and since you may explicitly set srcdir to the
17271         name of a directory containing spaces, do quote its uses here.
17272         * tests/test-pread.sh: Likewise.
17273         Suggested by Bruno Haible.
17274
17275         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
17276         * tests/test-pread.sh: Write no data into the pipe, because
17277         test-pread actually reads none.  This avoids a diagnostic,
17278         "bash: echo: write error: Broken pipe", that arises in the unusual
17279         event something is ignoring SIGPIPE, and might be interpreted
17280         as some sort of failure.  Reported by Bruno Haible.
17281
17282 2009-11-25  Jim Meyering  <meyering@redhat.com>
17283
17284         test-pread: cover failure with ESPIPE and EINVAL
17285         * tests/test-pread.c (main): Test for failure, too.
17286         * tests/test-pread.sh: Invoke with stdin on a pipe.
17287         Suggested by Eric Blake.
17288
17289         pread: improvement and fix
17290         * modules/pread (Depends-on): Depend on lseek, for portability to
17291         e.g., mingw.  Suggested by Eric Blake.
17292         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17293
17294         unistd.in.h: correct declaration of pread
17295         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17296         Reported by Richard W.M. Jones.
17297
17298         test-pread.sh: distribute the test script
17299         * modules/pread-tests (Files): Include test-pread.sh.
17300
17301         test-pread.sh: clean up
17302         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17303         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17304         That is unnecessary, since it's always ".".
17305         Suggestion from Eric Blake.
17306
17307         test-pread.sh: make executable
17308         * tests/test-pread.sh: Set executable bit.
17309         Reported by Eric Blake.
17310
17311         correct typo in test-pread.sh
17312         * tests/test-pread.sh: Add #! line.
17313
17314         test pread
17315         * tests/test-pread.c: New file.
17316         * tests/test-pread.sh: Likewise.
17317         * modules/pread-tests: Likewise.
17318
17319         pread: new module
17320         * modules/pread: New file.
17321         * lib/unistd.in.h (pread): Define/declare.
17322         * lib/pread.c (pread): New file.
17323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17324         * modules/unistd (Makefile.am): Substitute witnesses.
17325         * doc/posix-functions/pread.texi (pread): Update.
17326         * MODULES.html.sh: Add pread.
17327
17328 2009-11-25  Jim Meyering  <meyering@redhat.com>
17329
17330         tests/init.sh: new file to be used via most *.sh tests
17331         * tests/init.sh: New file.
17332
17333 2009-11-25  Eric Blake  <ebb9@byu.net>
17334
17335         utimens: work around older Linux failure with symlinks
17336         * lib/utimens.c (lutimensat_works_really): New variable.
17337         (fdutimens, lutimens): Use it to manage kernels that support
17338         nanosecond times on files, but not on symlinks.
17339         Reported by Ondřej Vašík.
17340
17341         utimes: fix configure grammar
17342         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17343
17344 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17345
17346         regex: Fix fastmap for multibyte character ranges.
17347         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17348         characters when a multibyte character range is included.
17349
17350 2009-11-22  Andy Wingo  <wingo@pobox.com>
17351
17352         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17353         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17354
17355 2009-11-24  Bruno Haible  <bruno@clisp.org>
17356
17357         doc: Most *_l functions exist in MacOS X 10.5.
17358         * doc/posix-functions/duplocale.texi: Update platforms list.
17359         * doc/posix-functions/freelocale.texi: Likewise.
17360         * doc/posix-functions/newlocale.texi: Likewise.
17361         * doc/posix-functions/uselocale.texi: Likewise.
17362         * doc/posix-functions/isalnum_l.texi: Likewise.
17363         * doc/posix-functions/isalpha_l.texi: Likewise.
17364         * doc/posix-functions/isblank_l.texi: Likewise.
17365         * doc/posix-functions/iscntrl_l.texi: Likewise.
17366         * doc/posix-functions/isdigit_l.texi: Likewise.
17367         * doc/posix-functions/isgraph_l.texi: Likewise.
17368         * doc/posix-functions/islower_l.texi: Likewise.
17369         * doc/posix-functions/isprint_l.texi: Likewise.
17370         * doc/posix-functions/ispunct_l.texi: Likewise.
17371         * doc/posix-functions/isspace_l.texi: Likewise.
17372         * doc/posix-functions/isupper_l.texi: Likewise.
17373         * doc/posix-functions/iswalnum_l.texi: Likewise.
17374         * doc/posix-functions/iswalpha_l.texi: Likewise.
17375         * doc/posix-functions/iswblank_l.texi: Likewise.
17376         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17377         * doc/posix-functions/iswctype_l.texi: Likewise.
17378         * doc/posix-functions/iswdigit_l.texi: Likewise.
17379         * doc/posix-functions/iswgraph_l.texi: Likewise.
17380         * doc/posix-functions/iswlower_l.texi: Likewise.
17381         * doc/posix-functions/iswprint_l.texi: Likewise.
17382         * doc/posix-functions/iswpunct_l.texi: Likewise.
17383         * doc/posix-functions/iswspace_l.texi: Likewise.
17384         * doc/posix-functions/iswupper_l.texi: Likewise.
17385         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17386         * doc/posix-functions/isxdigit_l.texi: Likewise.
17387         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17388         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17389         * doc/posix-functions/strcoll_l.texi: Likewise.
17390         * doc/posix-functions/strfmon_l.texi: Likewise.
17391         * doc/posix-functions/strftime_l.texi: Likewise.
17392         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17393         * doc/posix-functions/strxfrm_l.texi: Likewise.
17394         * doc/posix-functions/tolower_l.texi: Likewise.
17395         * doc/posix-functions/toupper_l.texi: Likewise.
17396         * doc/posix-functions/towctrans_l.texi: Likewise.
17397         * doc/posix-functions/towlower_l.texi: Likewise.
17398         * doc/posix-functions/towupper_l.texi: Likewise.
17399         * doc/posix-functions/wcscoll_l.texi: Likewise.
17400         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17401         * doc/posix-functions/wctrans_l.texi: Likewise.
17402         * doc/posix-functions/wctype_l.texi: Likewise.
17403         * doc/glibc-functions/strptime_l.texi: Likewise.
17404         * doc/glibc-functions/strtod_l.texi: Likewise.
17405         * doc/glibc-functions/strtof_l.texi: Likewise.
17406         * doc/glibc-functions/strtol_l.texi: Likewise.
17407         * doc/glibc-functions/strtold_l.texi: Likewise.
17408         * doc/glibc-functions/strtoll_l.texi: Likewise.
17409         * doc/glibc-functions/strtoul_l.texi: Likewise.
17410         * doc/glibc-functions/strtoull_l.texi: Likewise.
17411         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17412         * doc/glibc-functions/wcstod_l.texi: Likewise.
17413         * doc/glibc-functions/wcstof_l.texi: Likewise.
17414         * doc/glibc-functions/wcstol_l.texi: Likewise.
17415         * doc/glibc-functions/wcstold_l.texi: Likewise.
17416         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17417         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17418         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17419
17420 2009-11-24  Bruno Haible  <bruno@clisp.org>
17421
17422         duplocale: Fix logic bug.
17423         * lib/duplocale.c: Don't include <langinfo.h>.
17424         (_NL_LOCALE_NAME): Remove macro.
17425         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17426         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17427
17428 2009-11-23  Jim Meyering  <meyering@redhat.com>
17429
17430         test-update-copyright: don't hard-code /usr/bin/perl
17431         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17432         perl to print the current year.  Gilles Espinasse reported that
17433         the replaced use of perl was hard-coded as /usr/bin/perl.
17434
17435 2009-11-23  Bruno Haible  <bruno@clisp.org>
17436
17437         duplocale: Add support for glibc 2.3.x.
17438         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17439
17440 2009-11-22  Bruno Haible  <bruno@clisp.org>
17441
17442         vasnprintf: Tiny optimization.
17443         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17444         MacOS X.
17445
17446 2009-11-22  Bruno Haible  <bruno@clisp.org>
17447
17448         Tests for module 'duplocale'.
17449         * modules/duplocale-tests: New file.
17450         * tests/test-duplocale.c: New file.
17451
17452         New module 'duplocale'.
17453         * m4/duplocale.m4: New file.
17454         * lib/locale.in.h (duplocale): New declaration.
17455         * lib/duplocale.c: New file.
17456         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17457         gl_LOCALE_H_DEFAULTS): New macros.
17458         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17459         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17460         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17461         REPLACE_DUPLOCALE.
17462         * modules/duplocale: New file.
17463         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17464
17465 2009-11-22  Bruno Haible  <bruno@clisp.org>
17466
17467         * modules/locale-tests (configure.ac): Test for newlocale function.
17468         * tests/test-locale.c: When the system has extended locale functions,
17469         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17470
17471         locale: Make locale_t available when possible.
17472         * lib/locale.in.h: Include <xlocale.h> when it exists.
17473         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17474         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17475         * modules/locale (Depends-on): Add extensions.
17476         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17477         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17478
17479 2009-11-22  Bruno Haible  <bruno@clisp.org>
17480
17481         Add comments.
17482         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17483         invocation.
17484         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17485         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17486         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17487
17488 2009-11-22  Bruno Haible  <bruno@clisp.org>
17489
17490         error: account for the possibility of freopen (stdout).
17491         * lib/error.c: Include <unistd.h>.
17492         (flush_stdout): New function, extracted from error and error_at_line.
17493         Determine stdout's fd dynamically.
17494         (error, error_at_line): Invoke flush_stdout.
17495         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17496         * modules/error (Depends-on): Add unistd.
17497
17498 2009-11-22  Bruno Haible  <bruno@clisp.org>
17499
17500         diffseq: Add comment.
17501         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17502
17503 2009-11-22  Jim Meyering  <meyering@redhat.com>
17504
17505         c-stack: avoid defining an unused static function
17506         * lib/c-stack.c (find_stack_direction): Do not define this function
17507         when it will not be used.
17508
17509         diffseq: avoid spurious gcc warnings
17510         * lib/diffseq.h (IF_LINT2): Define.
17511         (compareseq): Use it to initialize two members of "part".
17512         This avoids two used-uninitialized warnings.
17513
17514 2009-11-21  Jim Meyering  <meyering@redhat.com>
17515
17516         c-stack: avoid "ignoring return value of `write'" warning
17517         * lib/c-stack.c: Include "ignore-value.h".
17518         (die): Explicitly ignore each write return value.
17519         * modules/c-stack (Depends-on): Add ignore-value.
17520
17521 2009-11-21  Bruno Haible  <bruno@clisp.org>
17522
17523         diffseq: reduce scope of variable 'best'.
17524         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17525         variable, earlier used for two different purposes.
17526
17527 2009-11-21  Jim Meyering  <meyering@redhat.com>
17528
17529         diffseq: remove useless assignment to "best"
17530         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17531         assignment.  At that point "best" is already guaranteed to be zero.
17532
17533 2009-11-20  Eric Blake  <ebb9@byu.net>
17534
17535         build: mention ftp redirector in release announcements
17536         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17537         values that used to come from cfg.mk; mention FTP redirect URL.
17538         * build-aux/announce-gen: Mention the mirror list.
17539         Suggested by Karl Berry.
17540
17541         nanosleep: improve port to mingw
17542         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17544         LIB_NANOSLEEP, but only when needed.
17545         * modules/select (Link): Document LIBSOCKET.
17546         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17547         enough.
17548
17549         nanosleep: work around cygwin bug
17550         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17551         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17552         bug.
17553         (getnow): Delete, not needed.
17554         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17555         LIB_CLOCK_GETTIME.
17556         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17557         clock-time, gettime.
17558         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17559         bug.
17560         * modules/nanosleep-tests: New test.
17561         * tests/test-nanosleep.c: New file.
17562
17563         sleep: work around cygwin bug
17564         * lib/sleep.c (rpl_sleep): Work around the bug.
17565         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17566         (gl_PREREQ_SLEEP): Delete unused macro.
17567         * modules/sleep (Depends-on): Add verify.
17568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17569         * modules/unistd (Makefile.am): Substitute witness.
17570         * lib/unistd.in.h (sleep): Update prototype.
17571         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17572         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17573         * modules/sleep-tests (Depends-on): Check for alarm.
17574
17575 2009-11-20  Jim Meyering  <meyering@redhat.com>
17576
17577         maint.mk: improve sc_prohibit_magic_number_exit
17578         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17579         so it does not match uses like System.exit(1).
17580         Add comments showing how to correct all offenders.
17581
17582 2009-11-19  Eric Blake  <ebb9@byu.net>
17583
17584         xalloc-die-tests: add missing library
17585         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17586
17587         test-xvasprintf: silence compiler warnings
17588         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17589         empty string from gcc.
17590
17591 2009-11-19  Jim Meyering  <meyering@redhat.com>
17592
17593         xfreopen: new module, from coreutils
17594         * modules/xfreopen: New module.
17595         * lib/xfreopen.c: New file.
17596         * lib/xfreopen.h: New file.
17597         * MODULES.html.sh (File stream based Input/Output"): Add it.
17598
17599 2009-11-19  Eric Blake  <ebb9@byu.net>
17600
17601         manywarnings: depend on warnings
17602         * modules/manywarnings (Depends-on): Add warnings.
17603
17604         build: avoid compiler warnings
17605         * lib/select.c (rpl_select): Delete unused variable.
17606         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17607
17608 2009-11-18  Eric Blake  <ebb9@byu.net>
17609
17610         tests: avoid false negative with --with-packager
17611         * tests/test-version-etc.sh: Discard packager information.
17612         * tests/test-argp-version-etc-1.sh: Likewise.
17613         Reported by Mike Frysinger.
17614
17615         utimens: fix regression on Solaris
17616         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17617         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17618         can only change fd timestamps via futimesat.  Instead, use an
17619         additional witness macro to avoid BSD bug.
17620         Reported by Jim Meyering.
17621
17622 2009-11-17  Eric Blake  <ebb9@byu.net>
17623
17624         usleep: use it to simplify tests
17625         * modules/stat-time-tests (Depends-on): Add usleep.
17626         (configure.ac): Drop usleep check.
17627         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17628         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17629         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17630         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17631         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17632         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17633         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17634         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17635         Likewise.
17636         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17637         * tests/test-lchown.h (nap): Likewise.
17638         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17639         * tests/test-stat-time.c (nap): Likewise.
17640         * tests/test-utimens-common.h (nap): Update comments.
17641
17642         usleep: new module
17643         * modules/usleep: New file.
17644         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17645         * lib/usleep.c (usleep): Likewise.
17646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17647         * modules/unistd (Makefile.am): Substitute witnesses.
17648         * lib/unistd.in.h (usleep): Add declaration.
17649         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17650         * MODULES.html.sh (Date and time): Likewise.
17651         * modules/usleep-tests (Depends-on): New test.
17652         * tests/test-usleep.c: New file.
17653
17654         chown: work around OpenBSD bug
17655         * lib/chown.c (rpl_chown): Work around the bug.
17656         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17657         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17658         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17659         * modules/chown (Depends-on): Add stdbool.
17660         * modules/lchown (Depends-on): Likewise.
17661         * doc/posix-functions/chown.texi (chown): Document the bug.
17662         * doc/posix-functions/lchown.texi (lchown): Likewise.
17663         * tests/test-lchown.h (test_chown): Relax test.
17664
17665         mkstemp: avoid conflict with C++ keyword template
17666         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17667         * lib/mkostemp.c (mkostemp): Likewise.
17668         * lib/mkostemps.c (mkostemps): Likewise.
17669         * lib/mkstemp.c (mkstemp): Likewise.
17670         * lib/mkstemps.c (mkstemps): Likewise.
17671
17672         xalloc-die-tests: optimize
17673         * tests/test-xalloc-die.sh: Reduce number of processes.
17674
17675 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17676
17677         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17678         patch from ludo@gnu.org (Ludovic Courtès).
17679
17680 2009-11-17  Jim Meyering  <meyering@redhat.com>
17681
17682         version-etc: use proper license string
17683         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17684         * modules/version-etc-fsf: Likewise.
17685
17686 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17687
17688         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17689         printed to stdout.  Deal with EOL differences.
17690
17691 2009-11-17  Eric Blake  <ebb9@byu.net>
17692
17693         unsetenv: work around Solaris bug
17694         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17695         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17696         Reported by Jim Meyering.
17697
17698         vasnprintf: avoid compiler warnings
17699         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17700         variables.
17701         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17702
17703 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17704
17705         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17706         settings since xalloc-die is no longer the self test,
17707         xalloc-die.sh is.
17708
17709 2009-11-17  Jim Meyering  <meyering@redhat.com>
17710
17711         test-xalloc-die.sh: make the code agree with the commit log
17712         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17713         at the end, just in case you happen to have a test-xalloc-die
17714         program in some other PATH directory.
17715
17716         test-xalloc-die.sh: fix a portability bug
17717         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17718         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17719         Otherwise, argv[0] (as often seen in diagnostics) would be too
17720         system-dependent, sometimes with, and sometimes without the leading "./".
17721
17722         version-etc-fsf: relax license to LGPLv3+
17723         * modules/version-etc-fsf (License): Relax license.
17724
17725 2009-11-16  Eric Blake  <ebb9@byu.net>
17726
17727         xalloc-die-tests: avoid printing null pointer
17728         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17729         shell script.
17730         * tests/test-xalloc-die.c (program_name): Declare.
17731         * tests/test-xalloc-die.sh (tmpfiles): New file.
17732
17733         setenv, unsetenv: work around various bugs
17734         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17735         (setenv) [HAVE_SETENV]: Work around bugs.
17736         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17737         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17738         for bugs.
17739         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17740         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17742         * modules/stdlib (Makefile.am): Update substitutions.
17743         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17744         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17745         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17746         * modules/setenv-tests: New test.
17747         * modules/unsetenv-tests: Likewise.
17748         * tests/test-setenv.c: New file.
17749         * tests/test-unsetenv.c: Likewise.
17750
17751 2009-11-16  Jim Meyering  <meyering@redhat.com>
17752
17753         version-etc: relax license to LGPLv3+
17754         * modules/version-etc (License): Relax license.
17755
17756         better AC_REQUIRE expanded-before-required-warning avoidance
17757         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17758         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17759         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17760         which is no longer needed.
17761
17762 2009-11-16  Eric Blake  <ebb9@byu.net>
17763
17764         test-freading: clean up temporary file
17765         * tests/test-freading.c (main): Remove file on success, and use
17766         ASSERT more liberally.
17767         Reported by Jim Meyering.
17768
17769 2009-11-16  Jim Meyering  <meyering@redhat.com>
17770
17771         avoid new AC_REQUIRE expanded-before-required warnings
17772         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17773         merely using it.
17774         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17775         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17776
17777 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17778
17779         * tests/test-xalloc-die.c: New file.
17780         * modules/xalloc-die-tests: New file.
17781         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17782         XFAIL_TESTS so it can be appended by modules.
17783
17784 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17785
17786         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17787         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17788
17789 2009-11-14  Eric Blake  <ebb9@byu.net>
17790
17791         fnmatch: avoid compiler warning
17792         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17793         to silence compiler warning about mismatch signedness in ?:.
17794         Reported by Robert Millan.
17795
17796         intprops: add double-inclusion guard
17797         * lib/intprops.h: Allow idempotent includes.
17798         Suggested by Bruce Korb.
17799
17800         openat: detect Solaris fchownat bug
17801         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17802         penalizing glibc chownat when only lchownat is broken.
17803         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17804         trailing slash bugs.
17805         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17806         * modules/openat-tests (Files): Include more files.
17807         (Depends-on): Add mgetgroups, sleep, stat-time.
17808         (configure.ac): Add additional checks.
17809         (Makefile.am): Build new test.
17810         * tests/test-fchownat.c: New file.
17811
17812         lchown: detect Solaris and FreeBSD bug
17813         * lib/lchown.c (rpl_lchown): Work around bug.
17814         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17816         * modules/unistd (Makefile.am): Populate it.
17817         * lib/unistd.in.h (lchown): Update declaration.
17818         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17819         * modules/lchown-tests: New file.
17820         * tests/test-lchown.h (test_lchown): Likewise.
17821         * tests/test-lchown.c (main): Likewise.
17822
17823         chown: detect Solaris and FreeBSD bug
17824         * lib/chown.c (rpl_chown): Work around bug.
17825         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17826         (gl_PREREQ_CHOWN): Delete.
17827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17828         * modules/unistd (Makefile.am): Populate it.
17829         * lib/unistd.in.h (chown): Update declaration.
17830         * lib/lchown.c (chown): Update client.
17831         * modules/lchown (Depends-on): Add lstat.
17832         * doc/posix-functions/chown.texi (chown): Document the bug.
17833         * doc/posix-functions/getgroups.texi (getgroups): Document
17834         getgroups pitfall.
17835         * modules/chown-tests: New file.
17836         * tests/test-chown.h (test_chown): Likewise.
17837         * tests/test-chown.c (main): Likewise.
17838
17839 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17840
17841         gnulib-tool: correctly detect absence of m4 directories
17842         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17843
17844 2009-11-14  Jim Meyering  <meyering@redhat.com>
17845
17846         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17847         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17848
17849 2009-11-14  John W. Eaton  <jwe@gnu.org>
17850
17851         strftime.h: wrap funtion declaration in extern "C" block
17852         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17853
17854 2009-11-13  Eric Blake  <ebb9@byu.net>
17855
17856         getgroups: avoid compiler warning
17857         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17858
17859         getgroups: work around FreeBSD bug
17860         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17861         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17862         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17863         * tests/test-getgroups.c (main): Fix buffer overrun.
17864
17865         getgroups: avoid compilation failure
17866         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17867         * modules/getgroups (Depends-on): Add stdint.
17868
17869 2009-11-13  Jim Meyering  <meyering@redhat.com>
17870
17871         test-getgroups: avoid compilation failure
17872         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17873
17874 2009-11-13  Eric Blake  <ebb9@byu.net>
17875
17876         mgetgroups: new module, taken from coreutils
17877         * modules/mgetgroups: New file.
17878         * lib/mgetgroups.h: Likewise.
17879         * lib/mgetgroups.c (mgetgroups): Likewise.
17880         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17881         * MODULES.html.sh (Users and groups): Mention it.
17882
17883         getgroups: don't expose GETGROUPS_T to user
17884         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17885         an element at a time if GETGROUPS_T is wrong size.
17886         * lib/getugroups.h (getugroups): Change signature.
17887         * lib/unistd.in.h (getgroups): Likewise.
17888         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17889         signature needs fixing.
17890         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17891         AC_TYPE_GETGROUPS.
17892         * modules/group-member (Depends-on): Add getgroups.
17893         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17894         (group_member): Rely on getgroups replacement.
17895         * lib/getugroups.c (getugroups): Use gid_t.
17896         * tests/test-getgroups.c (main): Likewise.
17897         * NEWS: Mention the signature change.
17898         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17899         problem with signature.
17900         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17901         GETGROUPS_T is still useful for setgroups.
17902
17903         getgroups, getugroups: provide stubs for mingw
17904         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17905         * lib/getugroups.c (getugroups): Likewise.
17906         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17907         function.  Modernize replacement scheme.
17908         (gl_PREREQ_GETGROUPS): Delete.
17909         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17910         * modules/getgroups (configure.ac): Declare witness.
17911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17912         * modules/unistd (Depends-on): Substitute witness.
17913         * lib/unistd.in.h (getgroups): Declare replacement.
17914
17915         getgroups: avoid calling exit
17916         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17917         drop xalloc.
17918         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17919         dependencies.
17920         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17921         exiting, in the rare case of malloc failure.
17922
17923         getgroups: fix logic error
17924         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17925         has more than 20 groups.
17926         * modules/getgroups-tests: New test.
17927         * tests/test-getgroups.c: New file.
17928
17929 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17930
17931         * tests/test-base64.c: Improve.
17932
17933 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17934
17935         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17936         Blake <ebb9@byu.net>.
17937
17938 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17939
17940         * tests/test-xvasprintf.c: Add %s%s related checks.
17941
17942 2009-11-12  Eric Blake  <ebb9@byu.net>
17943
17944         version-etc: match standards.texi style
17945         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17946         and use <> only for URLs.
17947
17948 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17949
17950         fts: do not fail on a submount during traversal
17951         * lib/fts.c (fts_build): Read the stat info again after opening
17952         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17953         Original report at http://bugzilla.redhat.com/501848.
17954
17955 2009-11-12  Jim Meyering  <meyering@redhat.com>
17956
17957         bootstrap: sync from coreutils
17958         * build-aux/bootstrap (bootstrap_epilogue): New function.
17959         Use git_modules_config in one more place.  This make bootstrap's
17960         --gnulib-srcdir option more useful for testing.
17961
17962         bootstrap: generalize autoheader check
17963         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17964         AC_CONFIG_HEADERS.
17965
17966 2009-11-11  Eric Blake  <ebb9@byu.net>
17967
17968         mkfifoat: use new modules for Solaris and BSD bugs
17969         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17970         * lib/mkfifoat.c (mknodat): Split...
17971         * lib/mknodat.c (mknodat): ...into new file.
17972         * modules/mkfifoat (Files): Ship new file.
17973         (Depends-on): Add mkfifo, mknod.
17974         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17975         (Depends-on): Add symlink.
17976         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17977         redundant with test_mkfifo.h.
17978         (do_mkfifoat, do_mknodat): New helpers.
17979
17980         mknod: new module
17981         * modules/mknod: New file.
17982         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17983         * lib/mknod.c (mknod): Likewise.
17984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17985         defaults.
17986         * modules/sys_stat (Makefile.am): Substitute them.
17987         * lib/sys_stat.in.h (mknod): Declare replacement.
17988         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17989         Document it.
17990         * doc/posix-functions/mknod.texi (mknod): Likewise.
17991         * modules/mknod-tests: New test.
17992         * tests/test-mknod.c: Likewise.
17993
17994         mkfifo: new module
17995         * modules/mkfifo: New file.
17996         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17997         * lib/mkfifo.c (mkfifo): Likewise.
17998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17999         defaults.
18000         * modules/sys_stat (Makefile.am): Substitute them.
18001         * lib/sys_stat.in.h (mkfifo): Declare replacement.
18002         * MODULES.html.sh (Support for systems lacking POSIX:2008):
18003         Document it.
18004         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
18005         * modules/mkfifo-tests: New test.
18006         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
18007         from test-mkfifoat.c.
18008         * tests/test-mkfifo.c: New file.
18009
18010         readlink: detect FreeBSD bug
18011         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
18012         slash on symlink.
18013         * doc/posix-functions/readlink.texi (readlink): Document the bug.
18014         * tests/test-readlink.h (test_readlink): Enhance test.
18015
18016         symlink: detect FreeBSD bug
18017         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
18018         slash on symlink.
18019         * doc/posix-functions/symlink.texi (symlink): Document the bug.
18020         * tests/test-symlink.h (test_symlink): Enhance test.
18021
18022 2009-11-10  Eric Blake  <ebb9@byu.net>
18023
18024         link: detect FreeBSD bug
18025         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
18026         symlink.
18027         * doc/posix-functions/link.texi (link): Document the bug.
18028         * tests/test-link.h (test_link): Enhance test.
18029         * tests/test-linkat.c (main): Update caller.
18030
18031         unlink, remove: detect FreeBSD bug
18032         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
18033         slash on symlink.
18034         * doc/posix-functions/unlink.texi (unlink): Document the bug.
18035         * doc/posix-functions/remove.texi (remove): Likewise.
18036         * tests/test-unlink.h (test_unlink): Enhance test.
18037         * tests/test-remove.c (main): Likewise.
18038
18039 2009-11-09  Eric Blake  <ebb9@byu.net>
18040
18041         rename: detect FreeBSD bug
18042         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
18043         slash on symlink.
18044         * modules/renameat-tests (Depends-on): Add filenamecat.
18045         * tests/test-rename.h (test_rename): Allow one more errno.
18046         * tests/test-renameat.c (main): Likewise.
18047         * doc/posix-functions/rename.texi (rename): Document the bug.
18048
18049         open: detect FreeBSD bug
18050         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
18051         symlink.
18052         * doc/posix-functions/open.texi (open): Document the bug.
18053         * doc/posix-functions/utimes.texi (utimes): Likewise.
18054         * tests/test-open.h (test_open): Add parameters, and test symlink
18055         handling.
18056         * tests/test-open.c (main): Adjust caller.
18057         * tests/test-fcntl-safer.c (main): Likewise.
18058         * modules/open-tests (Depends-on): Add stdbool, symlink.
18059         * modules/fcntl-safer-tests (Depends-on): Likewise.
18060         * tests/test-openat.c (main): Add test-open tests.
18061
18062         stat: detect FreeBSD bug
18063         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
18064         symlink.
18065         * doc/posix-functions/stat.texi (stat): Document the bug.
18066         * tests/test-stat.h (test_stat_func): Add argument.
18067         * tests/test-stat.c (main): Adjust caller.
18068         * tests/test-fstatat.c (main): Likewise.
18069         * modules/stat-tests (Depends-on): Add stdbool, symlink.
18070         Reported by Jim Meyering.
18071
18072 2009-11-09  James Youngman  <jay@gnu.org>
18073
18074         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
18075         * lib/strftime.c: Correct placement of #include "ignore-value.h".
18076
18077 2009-11-08  Jim Meyering  <meyering@redhat.com>
18078
18079         utimens: remove invalid futimesat call
18080         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
18081         It used the file descriptor of the target file as the DIR_FD
18082         parameter and NULL as the file name.  That caused failure with
18083         errno == EFAULT on FreeBSD-8.0-rc2
18084
18085 2009-11-07  Eric Blake  <ebb9@byu.net>
18086
18087         fflush, freadseek: use fseeko, not fseek
18088         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18089         (clear_ungetc_buffer): Avoid potential problems on large files.
18090         * lib/freadseek.c (freadseek): Likewise.
18091         * modules/freadseek (Depends-on): Add fseeko.
18092         * modules/fseek (configure.ac): Set a witness.
18093         * tests/test-fflush.c (main): Use fseeko.
18094         * tests/test-fpurge.c (fseek): Disable link warning.
18095         * tests/test-freadable.c (fseek): Likewise.
18096         * tests/test-freading.c (fseek): Likewise.
18097         * tests/test-fseeko.c (fseek): Likewise.
18098         * tests/test-ftell.c (fseek): Likewise.
18099         * tests/test-ftello.c (fseek): Likewise.
18100         * tests/test-fwritable.c (fseek): Likewise.
18101         * tests/test-fwriting.c (fseek): Likewise.
18102
18103 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18104
18105         * modules/memchr (Depends-on): Drop getpagesize dependency.
18106
18107 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18108
18109         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
18110         Reported by Ludovic Courtès.
18111         * build-aux/pmccabe2html: Improve example usage.
18112         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
18113
18114 2009-11-06  Jim Meyering  <meyering@redhat.com>
18115
18116         do-release-commit-and-tag: New module.
18117         Automate the release-commit and tag process.
18118         * build-aux/do-release-commit-and-tag: New script, from coreutils.
18119         * modules/do-release-commit-and-tag: New file.
18120         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18121
18122 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18123
18124         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
18125         because test-select.c uses inet_pton.
18126
18127 2009-11-06  Simon Josefsson  <simon@josefsson.org>
18128
18129         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
18130         GETADDRINFO_LIB.  Bump serial number.
18131         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
18132         Suggested by Eric Blake <ebb9@byu.net>.
18133
18134 2009-11-05  Eric Blake  <ebb9@byu.net>
18135
18136         strtod: detect darwin bug
18137         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
18138         Reported by Leo Davis.
18139
18140         freopen-safer: new module
18141         * modules/freopen-safer: New module.
18142         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
18143         * lib/freopen-safer.c (freopen_safer): New file.
18144         * lib/stdio-safer.h (freopen_safer): New declaration.
18145         * lib/stdio--.h (freopen): New override.
18146         * MODULES.html.sh (File stream based Input/Output): Mention it.
18147         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
18148         freopen-safer module.
18149         * doc/posix-functions/stderr.texi (stderr): Likewise.
18150         * doc/posix-functions/stdin.texi (stdin): Likewise.
18151         * doc/posix-functions/stdout.texi (stdout): Likewise.
18152         * modules/freopen-safer-tests: New test.
18153         * tests/test-reopen-safer.c: New file.
18154
18155 2009-11-05  Jim Meyering  <meyering@redhat.com>
18156
18157         maint.mk: Prohibit inclusion of "close-stream.h" without use.
18158         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18159
18160 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18161
18162         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
18163
18164 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18165
18166         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
18167
18168 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18169
18170         Fix link error.
18171         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18172         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18173
18174 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18175
18176         * tests/test-func.c: Also test value of __func__.
18177
18178 2009-11-05  Simon Josefsson  <simon@josefsson.org>
18179
18180         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
18181         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
18182
18183 2009-11-05  Bruno Haible  <bruno@clisp.org>
18184
18185         Fix link error.
18186         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
18187         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18188         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
18189
18190 2009-11-05  Bruno Haible  <bruno@clisp.org>
18191
18192         Tests for module 'inet_pton'.
18193         * modules/inet_pton-tests: New file.
18194         * tests/test-inet_pton.c: New file.
18195
18196 2009-11-05  Bruno Haible  <bruno@clisp.org>
18197
18198         Tests for module 'inet_ntop'.
18199         * modules/inet_ntop-tests: New file.
18200         * tests/test-inet_ntop.c: New file.
18201
18202 2009-11-04  Eric Blake  <ebb9@byu.net>
18203
18204         stdlib-safer: wrap all mkstemp variants
18205         * modules/mkostemp (configure.ac): Set witness.
18206         * modules/mkostemps (configure.ac): Likewise.
18207         * modules/mkstemps (configure.ac): Likewise.
18208         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
18209         (mkstemps_safer): Wrap more functions.
18210         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
18211         wrapping.
18212         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
18213         (mkstemps_safer): Implement the wrappers.
18214
18215         mkstemps, mkostemps: new modules
18216         * modules/mkostemps: New module.
18217         * modules/mkstemps: Likewise.
18218         * lib/mkostemps.c (mkostemps): New file.
18219         * lib/mkstemps.c (mkstemps): Likewise.
18220         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
18221         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
18222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
18223         * modules/stdlib (Makefile.am): Substitute them.
18224         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
18225         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
18226         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18227         * doc/gnulib.texi (Glibc stdlib.h): Include them.
18228         * MODULES.html.sh (File system functions): Mention them.
18229
18230         tempname: resync from glibc
18231         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
18232         same values for __GT_FILE as glibc.  Abort even when assertions
18233         are disabled.
18234         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
18235         match its value otherwise.  Allow idempotent inclusion.
18236         * lib/mkdtemp.c (mkdtemp): Adjust caller.
18237         * lib/mkostemp.c (mkostemp): Likewise.
18238         * lib/mkstemp.c (mkstemp): Likewise.
18239         * lib/tmpfile.c (tmpfile): Likewise.
18240         * NEWS: Document this.
18241
18242         utimens: fix use of futimens on older Linux
18243         * lib/utimens.c (fdutimens): Use updated, rather than original,
18244         timespec to avoid bug in older Linux kernel.
18245         Reported by Simon Josefsson.
18246
18247 2009-11-04  Bruno Haible  <bruno@clisp.org>
18248
18249         Make num_processors more flexible and consistent.
18250         * lib/nproc.h (enum nproc_query): New type.
18251         (num_processors): Add a 'query' argument.
18252         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
18253         (num_processors): Add a 'query' argument. Test the value of the
18254         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
18255         mingw, count the number of CPUs available for the current process.
18256         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
18257         Check for sched_getaffinity and sched_getaffinity_np.
18258         * modules/nproc (Depends-on): Add c-ctype, extensions.
18259         * NEWS: Mention the change.
18260
18261 2009-11-03  Bruno Haible  <bruno@clisp.org>
18262
18263         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
18264
18265 2009-11-03  Jim Meyering  <meyering@redhat.com>
18266
18267         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
18268         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
18269         if it is defined.
18270
18271 2009-11-02  Eric Blake  <ebb9@byu.net>
18272
18273         mktime, timegm: share common declaration
18274         * lib/mktime-internal.h: New file.
18275         * lib/mktime.c: Use it rather than open-coding a declaration.
18276         * lib/timegm.c: Likewise.
18277         * modules/mktime (Files): Ship it.
18278         * modules/timegm (Files): Likewise.
18279         Suggested by Bruno Haible.
18280
18281         test-update-copyright: update test to match script changes
18282         * tests/test-update-copyright.sh: Avoid hard-coding perl
18283         location.  Don't update *.bak created by earlier runs.
18284
18285 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18286             Simon Josefsson  <simon@josefsson.org>
18287             Bruno Haible  <bruno@clisp.org>
18288
18289         Fix link error on Solaris 8.
18290         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18291         also in libnsl. Define also INET_PTON_LIB.
18292         * modules/inet_pton (Link): New section.
18293
18294 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18295             Bruno Haible  <bruno@clisp.org>
18296
18297         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18298         * modules/inet_ntop (Link): New section.
18299         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18300
18301 2009-11-02  Eric Blake  <ebb9@byu.net>
18302
18303         maint: avoid compiler warnings in m4 macros
18304         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18305         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18306
18307 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18308
18309         * m4/pmccabe2html.m4: Remove file.
18310         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18311         function.  Change maintainer.
18312         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18313         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18314         Courtès).
18315
18316 2009-10-31  Eric Blake  <ebb9@byu.net>
18317
18318         fseeko: fix m4 regression
18319         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18320         regression from 2009-10-27.
18321         Reported by Ralf Wildenhues.
18322
18323 2009-10-31  Jim Meyering  <meyering@redhat.com>
18324
18325         inttostr: aesthetics and improved (compile-time) safety
18326         Define inttype_is_signed rather than inttype_is_unsigned,
18327         since the sole use is via "#if inttype_is_signed".
18328         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18329         inttype_is_unsigned.
18330         * lib/offtostr.c (inttype_is_signed): Likewise.
18331         * lib/uinttostr.c (inttype_is_signed): Likewise.
18332         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18333         * lib/inttostr.c (inttostr): Use verify to cross-check the
18334         inttype_is_signed value and the signedness of the actual type.
18335         * modules/inttostr (Depends-on): Add verify.
18336
18337 2009-10-30  Eric Blake  <ebb9@byu.net>
18338
18339         build: avoid compiler warnings
18340         * lib/fchmodat.c (lchmod): Mark unused variables.
18341         * lib/getopt.c (_getopt_initialize): Likewise.
18342         * lib/mktime.c (__mktime_internal): Provide prototype.
18343         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18344         older gcc that do not understand #pragma GCC diagnostic.
18345         * lib/uinttostr.c (inttype_is_unsigned): Define.
18346         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18347
18348 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18349
18350         stat: fix compilation on AIX
18351         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18352         only see struct stat64.
18353
18354 2009-10-30  Eric Blake  <ebb9@byu.net>
18355
18356         exclude: make more robust
18357         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18358         rather than masking a coding bug.
18359         Suggested by Bruno Haible.
18360
18361 2009-10-30  Jim Meyering  <meyering@redhat.com>
18362
18363         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18364         Rather than putting #!/usr/bin/perl on the first line,
18365         start with a variant of what's recommended by "man perlrun" that
18366         invokes the first "perl" program from your shell's search path.
18367         * build-aux/gitlog-to-changelog: Replace #!... as above.
18368         Add a "Local Variables" perl mode setting.
18369         Prompted by a patch from Ludovic Courtès.
18370         Improved by Eric Blake.
18371         * build-aux/useless-if-before-free: Likewise.
18372         * build-aux/announce-gen: Likewise.
18373         * build-aux/update-copyright: Likewise.
18374
18375 2009-10-29  Eric Blake  <ebb9@byu.net>
18376
18377         filenamecat-lgpl: adjust clients
18378         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18379         filenamecat.
18380         * modules/renameat (Depends-on): Likewise.
18381
18382         filenamecat: split into filenamecat-lgpl
18383         * modules/filenamecat-lgpl: New module.
18384         * modules/filenamecat (Files): Move library-safe files into
18385         filenamecat-lgpl.
18386         (Depends-on): Add filenamecat-lgpl.
18387         (configure.ac): Declare witness.
18388         * lib/filenamecat.h (file_name_concat): Only declare when using
18389         GPL module.
18390         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18391         Move...
18392         * lib/filenamecat-lgpl.c: ...into new file.
18393         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18394         (gl_FILE_NAME_CONCAT): Use it.
18395         * MODULES.html.sh (File system functions): Mention new module.
18396
18397         argp: avoid memory leak
18398         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18399         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18400         base_name, since the latter malloc()s and can call exit().
18401         Leak introduced 2006-07-03.
18402
18403         dirname-lgpl: adjust clients that don't need full dirname
18404         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18405         * modules/filenamecat (Depends-on): Likewise.
18406         * modules/linkat (Depends-on): Likewise.
18407         * modules/mkancesdirs (Depends-on): Likewise.
18408         * modules/mkdir (Depends-on): Likewise.
18409         * modules/openat (Depends-on): Likewise.
18410         * modules/savewd (Depends-on): Likewise.
18411         * modules/rename (Depends-on): Likewise.
18412         (License): Relax license.
18413         * modules/mkdir-tests (Depends-on): Drop progname.
18414         (Makefile.am): Delete unneeded LDADD.
18415         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18416
18417         dirname: split into dirname-lgpl
18418         * modules/dirname-lgpl: New module.
18419         * modules/dirname (Files): Move library-safe files into
18420         dirname-lgpl.
18421         (Depends-on): Add dirname-lgpl.
18422         (configure.ac): Declare witness.
18423         * modules/double-slash-root (License): Relax license.
18424         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18425         module.
18426         * lib/dirname.c (dir_len, mdir_name): Move...
18427         * lib/dirname-lgpl.c: ...into new file.
18428         * lib/basename.c (last_component, base_len): Move...
18429         * lib/basename-lgpl.c: ...into new file.
18430         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18431         (gl_DIRNAME): Use it.
18432         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18433         Mention new module.
18434         * modules/dirname-tests (Depends-on): Add progname.
18435         * tests/test-dirname.c (program_name): Delete.
18436
18437         mkdir: make safe for libraries
18438         * modules/mkdir (Depends-on): Drop xalloc.
18439         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18440         exit.
18441
18442         tests: avoid some compiler warnings
18443         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18444         literals.
18445         * tests/test-memchr.c (main): Avoid type mismatch.
18446         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18447         * tests/test-base64.c (main): Likewise.
18448         * tests/test-getdelim.c (main): Likewise.
18449         * tests/test-gethostname.c (main): Likewise.
18450         * tests/test-getline.c (main): Likewise.
18451         * tests/test-netinet_in.c (main): Likewise.
18452         * tests/test-select.c (open_server_socket, main): Likewise.
18453         * tests/test-select-stdin.c (main): Likewise.
18454         * tests/test-sockets.c (main): Likewise.
18455         * tests/test-strsignal.c (main): Likewise.
18456         * tests/test-sys_select.c (main): Likewise.
18457         * tests/test-sys_socket.c (main): Likewise.
18458         * tests/test-u64.c (main): Likewise.
18459         * tests/test-xfprintf-posix.c (main): Likewise.
18460         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18461
18462         sockets: avoid compiler warning
18463         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18464
18465         maint: detect usage(1) and other suspicious exits
18466         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18467
18468 2009-10-29  Jim Meyering  <meyering@redhat.com>
18469
18470         timespec: long-to-int truncation could make timespec_cmp malfunction
18471         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18472         a multiple of 2^32 nanoseconds as no difference.
18473
18474 2009-10-28  Jim Meyering  <meyering@redhat.com>
18475
18476         fprintftime: wrap macro code argument in "do {...} while(0)"
18477         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18478         cpy macro must be a statement that can be followed by a semicolon.
18479         Now that the else clause contains a comment and is hence longer
18480         than one line, I require curly braces.  That in turn requires
18481         that we wrap this code block in the standard do...while(0).
18482
18483         fprintftime: remove stray semicolon from previous change
18484         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18485
18486         fprintftime: avoid a warning about ignored fwrite return value
18487         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18488         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18489         that is unsafe.
18490         * modules/fprintftime (Depends-on): Add ignore-value.
18491
18492         exclude: avoid an unwarranted warning
18493         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18494
18495 2009-10-27  Eric Blake  <ebb9@byu.net>
18496
18497         fseek: avoid compilation failure when fflush is replaced
18498         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18499         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18500         module is in use.
18501         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18502         module is not in use; since REPLACE_FSEEK worked otherwise.
18503         (GNULIB_FTELLO): Likewise for ftell.
18504         Reported by Ian Beckwith and others.
18505
18506 2009-10-27  Bruno Haible  <bruno@clisp.org>
18507
18508         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18509         Reported by Jim Meyering.
18510
18511 2009-10-27  Jim Meyering  <jim@meyering.net>
18512             Bruno Haible  <bruno@clisp.org>
18513
18514         Avoid warning despite dropping the return value of fwrite.
18515         * lib/unicodeio.c: Include ignore-value.h.
18516         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18517         * modules/unicodeio (Depends-on): Add ignore-value.
18518
18519 2009-10-26  Eric Blake  <ebb9@byu.net>
18520
18521         areadlinkat: fix fallback path
18522         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18523         pointer and zero.
18524
18525 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18526
18527         Use a better IO block size for modern systems
18528         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18529         * lib/md2.c: Likewise.
18530         * lib/md4.c: Likewise.
18531         * lib/md5.c: Likewise.
18532         * lib/sha1.c: Likewise.
18533         * lib/sha256.c: Likewise.
18534         * lib/sha512.c: Likewise.
18535
18536 2009-10-22  Eric Blake  <ebb9@byu.net>
18537
18538         tests: avoid several compiler warnings
18539         * tests/test-getcwd.c (main): Avoid buffer underflow.
18540         * tests/test-getdate.c (main): String literals are not safe with
18541         putenv, so use setenv.  Declare unused argument.
18542         * modules/getdate-tests (Depends-on): Add setenv.
18543         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18544         problems with string literals in char *.
18545         * tests/test-hash.c (main): Avoid shadowing declaration.
18546         (insert_new): Treat string literals as char const *.
18547         * tests/test-getopt.h (test_getopt): Likewise.
18548         (getopt_loop): Alter types to minimize casting elsewhere.
18549         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18550         (test_getopt_long_posix): Likewise.
18551         (do_getopt_long): Add wrapper to minimize casting.
18552         * tests/test-atexit.c (clear_temp_file): Use void.
18553         * tests/test-areadlink-with-size.c (main): Declare unused
18554         arguments.
18555         * tests/test-areadlink.c (main): Likewise.
18556         * tests/test-areadlinkat-with-size.c (main): Likewise.
18557         * tests/test-areadlinkat.c (main): Likewise.
18558         * tests/test-canonicalize-lgpl.c (main): Likewise.
18559         * tests/test-canonicalize.c (main): Likewise.
18560         * tests/test-dirent-safer.c (main): Likewise.
18561         * tests/test-dirname.c (main): Likewise.
18562         * tests/test-dup2.c (main): Likewise.
18563         * tests/test-fchdir.c (main): Likewise.
18564         * tests/test-fcntl-h.c (main): Likewise.
18565         * tests/test-fcntl-safer.c (main): Likewise.
18566         * tests/test-fdopendir.c (main): Likewise.
18567         * tests/test-fdutimensat.c (main): Likewise.
18568         * tests/test-fflush.c (main): Likewise.
18569         * tests/test-filenamecat.c (main): Likewise.
18570         * tests/test-filevercmp.c (main): Likewise.
18571         * tests/test-fopen-safer.c (main): Likewise.
18572         * tests/test-fopen.c (main): Likewise.
18573         * tests/test-fpending.c (main): Likewise.
18574         * tests/test-fpurge.c (main): Likewise.
18575         * tests/test-freading.c (main): Likewise.
18576         * tests/test-fstatat.c (main): Likewise.
18577         * tests/test-fsync.c (main): Likewise.
18578         * tests/test-futimens.c (main): Likewise.
18579         * tests/test-getndelim2.c (main): Likewise.
18580         * tests/test-gettimeofday.c (main): Likewise.
18581         * tests/test-getopt.c (main): Likewise.
18582         * tests/test-i-ring.c (main): Likewise.
18583         * tests/test-inttypes.c (main): Likewise.
18584         * tests/test-link.c (main): Likewise.
18585         * tests/test-lstat.c (main): Likewise.
18586         * tests/test-math.c (main): Likewise.
18587         * tests/test-md5.c (main): Likewise.
18588         * tests/test-memchr2.c (main): Likewise.
18589         * tests/test-memrchr.c (main): Likewise.
18590         * tests/test-mkdir.c (main): Likewise.
18591         * tests/test-mkdirat.c (main): Likewise.
18592         * tests/test-mkfifoat.c (main): Likewise.
18593         * tests/test-open.c (main): Likewise.
18594         * tests/test-openat-safer.c (main): Likewise.
18595         * tests/test-openat.c (main): Likewise.
18596         * tests/test-quotearg.c (main): Likewise.
18597         * tests/test-rawmemchr.c (main): Likewise.
18598         * tests/test-readlink.c (main): Likewise.
18599         * tests/test-remove.c (main): Likewise.
18600         * tests/test-rename.c (main): Likewise.
18601         * tests/test-renameat.c (main): Likewise.
18602         * tests/test-rmdir.c (main): Likewise.
18603         * tests/test-sha1.c (main): Likewise.
18604         * tests/test-signal.c (main): Likewise.
18605         * tests/test-sigaction.c (main): Likewise.
18606         * tests/test-stat.c (main): Likewise.
18607         * tests/test-stat-time.c (main): Likewise.
18608         * tests/test-stddef.c (main): Likewise.
18609         * tests/test-stdint.c (main): Likewise.
18610         * tests/test-stdio.c (main): Likewise.
18611         * tests/test-stdlib.c (main): Likewise.
18612         * tests/test-strchrnul.c (main): Likewise.
18613         * tests/test-strerror.c (main): Likewise.
18614         * tests/test-string.c (main): Likewise.
18615         * tests/test-strtod.c (main): Likewise.
18616         * tests/test-strverscmp.c (main): Likewise.
18617         * tests/test-symlink.c (main): Likewise.
18618         * tests/test-symlinkat.c (main): Likewise.
18619         * tests/test-sys_stat.c (main): Likewise.
18620         * tests/test-sys_time.c (main): Likewise.
18621         * tests/test-time.c (main): Likewise.
18622         * tests/test-unistd.c (main): Likewise.
18623         * tests/test-unlink.c (main): Likewise.
18624         * tests/test-unlinkat.c (main): Likewise.
18625         * tests/test-utimens.c (main): Likewise.
18626         * tests/test-utimensat.c (main): Likewise.
18627         * tests/test-version-etc.c (main): Likewise.
18628         * tests/test-wchar.c (main): Likewise.
18629         * tests/test-wctype.c (main): Likewise.
18630         * tests/test-xprintf-posix.c (main): Likewise.
18631         * tests/test-posixtm.c (main): Likewise.
18632         (STREQ): Delete unused macro.
18633         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18634         shadowed variables.
18635         * tests/test-memchr.c (main): Likewise.
18636
18637 2009-10-21  Eric Blake  <ebb9@byu.net>
18638
18639         areadlinkat: avoid failure on older glibc
18640         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18641         rather than mis-comparing 0 against FUNC_RESULT of char*.
18642
18643 2009-10-21  Bruno Haible  <bruno@clisp.org>
18644
18645         * modules/stpncpy (License): Relicense under LGPLv2+.
18646         Reported by David Lutterkort <lutter@redhat.com>.
18647
18648 2009-10-20  Eric Blake  <ebb9@byu.net>
18649
18650         utimensat: work around Solaris 9 bug
18651         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18652         has trailing slash bugs.
18653         * tests/test-lutimens.h (test_lutimens): Enhance test.
18654         * tests/test-utimens.h (test_utimens): Likewise.
18655         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18656         * doc/posix-functions/utimes.texi (utimes): Likewise.
18657         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18658         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18659         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18660         * doc/posix-functions/futimens.texi (futimens): Likewise.
18661
18662         fdutimensat: new module
18663         * modules/fdutimensat: New file.
18664         * lib/fdutimensat.c (fdutimensat): Likewise.
18665         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18666         * MODULES.html.sh (File system functions): Mention module.
18667         * modules/fdutimensat-tests: New test.
18668         * tests/test-fdutimensat.c: Likewise.
18669
18670         doc: regenerate INSTALL
18671         * doc/INSTALL: Reflect recent autoconf update.
18672         * doc/INSTALL.ISO: Likewise.
18673         * doc/INSTALL.UTF-8: Likewise.
18674
18675 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18676
18677         acl: warn if ACL support is not detected
18678         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18679
18680 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18681
18682         * lib/nproc.h: Add extern "C" block for C++.
18683
18684 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18685             Bruno Haible  <bruno@clisp.org>
18686
18687         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18688         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18689         * doc/posix-functions/isalpha.texi: Likewise.
18690         * doc/posix-functions/isblank.texi: Likewise.
18691         * doc/posix-functions/iscntrl.texi: Likewise.
18692         * doc/posix-functions/isdigit.texi: Likewise.
18693         * doc/posix-functions/isgraph.texi: Likewise.
18694         * doc/posix-functions/islower.texi: Likewise.
18695         * doc/posix-functions/isprint.texi: Likewise.
18696         * doc/posix-functions/ispunct.texi: Likewise.
18697         * doc/posix-functions/isspace.texi: Likewise.
18698         * doc/posix-functions/isupper.texi: Likewise.
18699         * doc/posix-functions/isxdigit.texi: Likewise.
18700
18701 2009-10-18  Bruno Haible  <bruno@clisp.org>
18702
18703         Tests for module 'isblank'.
18704         * modules/isblank-tests: New file.
18705         * tests/test-isblank.c: New file.
18706
18707         New module 'isblank'.
18708         * lib/isblank.c: New file.
18709         * m4/isblank.m4: New file.
18710         * modules/isblank: New file.
18711         * doc/posix-functions/isblank.texi: Mention the new module.
18712
18713 2009-10-18  Bruno Haible  <bruno@clisp.org>
18714
18715         New module 'ctype'.
18716         * lib/ctype.in.h: New file.
18717         * m4/ctype.m4: New file.
18718         * modules/ctype: New file.
18719         * doc/posix-headers/ctype.texi: Mention the new module.
18720
18721 2009-10-18  Jim Meyering  <meyering@redhat.com>
18722
18723         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18724         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18725         right after its initialization, rather than farther down.
18726         Keeping these in close proximity makes it easier to ensure
18727         that each such variable is initialized.  E.g.,
18728
18729             LIB_CLOCK_GETTIME=
18730             AC_SUBST([LIB_CLOCK_GETTIME])
18731
18732         This change also increments these serial numbers.
18733         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18734         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18735         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18736
18737 2009-10-18  Bruno Haible  <bruno@clisp.org>
18738
18739         Don't let environment variables perturb build.
18740         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18741         (gl_PREREQ_GETHRXTIME): ... not here.
18742
18743 2009-10-18  Bruno Haible  <bruno@clisp.org>
18744
18745         Avoid symlink attack in localcharset module.
18746         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18747         (O_NOFOLLOW): Define fallback.
18748         (get_charset_aliases): Don't open the file if it is a symbolic link.
18749         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18750         gl_FCNTL_H.
18751         (gl_FCNTL_H): Require it.
18752         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18753         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18754         Reported by Fergal Glynn <fglynn@veracode.com>.
18755
18756 2009-10-18  Bruno Haible  <bruno@clisp.org>
18757
18758         Implement nproc for mingw.
18759         * lib/nproc.c: Include <windows.h>
18760         (num_processors): On native Windows platforms, try GetSystemInfo.
18761
18762 2009-10-18  Bruno Haible  <bruno@clisp.org>
18763
18764         Implement nproc for IRIX.
18765         * lib/nproc.c: Include <sys/sysmp.h>.
18766         (num_processors): On IRIX systems, try sysmp.
18767         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18768
18769 2009-10-18  Bruno Haible  <bruno@clisp.org>
18770
18771         Implement nproc for HP-UX.
18772         * lib/nproc.c: Include <sys/pstat.h>
18773         (num_processors): On HP-UX systems, try pstat_getdynamic.
18774         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18775         pstat_getdynamic.
18776
18777 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18778             Bruno Haible  <bruno@clisp.org>
18779
18780         Implement nproc for NetBSD, OpenBSD.
18781         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18782         (ARRAY_SIZE): New macro.
18783         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18784         * m4/nproc.m4: New file.
18785         * modules/nproc (Files): Add m4/nproc.m4.
18786         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18787         (Makefile.am): Instead, augment lib_SOURCES.
18788
18789 2009-10-18  Bruno Haible  <bruno@clisp.org>
18790
18791         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18792         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18793         sys/param.h.
18794
18795 2009-10-16  Eric Blake  <ebb9@byu.net>
18796
18797         utimensat: new module
18798         * modules/utimensat: New file.
18799         * lib/utimensat.c (utimensat): Likewise.
18800         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18801         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18802         so we can work around Linux bugs.
18803         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18804         * modules/sys_stat (Makefile.am): Substitute them.
18805         * lib/sys_stat.in.h (utimensat): Declare it.
18806         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18807         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18808         * modules/utimensat-tests: New test.
18809         * tests/test-utimensat.c: Likewise.
18810
18811         utimens: let lutimens work on non-symlinks
18812         * lib/utimens.c (lutimens): Fall back to utimens rather than
18813         failing with ENOSYS, when file is not a symlink.
18814         (utimens): Reduce redirection.
18815         * tests/test-lutimens.h (test_lutimens): Update test to cover
18816         non-symlinks.
18817         * tests/test-utimens.h (test_utimens): Update test to cover
18818         symlinks.
18819         * tests/test-utimens.c (main): Update caller.
18820
18821         utimens: cache whether utimensat syscall works
18822         * lib/utimens.c (utimensat_works_really): New cache variable.
18823         (fdutimens, lutimens): Use it to avoid failing syscall.
18824
18825         test-stat-time, test-utimens: improve portability
18826         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18827         ext4 on alpha, and for cygwin.
18828         * tests/test-utimens-common.h: New file.
18829         (nap): Factor delays into single function.
18830         * tests/test-lutimens.h (test_lutimens): Use new header.
18831         * tests/test-futimens.h (test_futimens): Likewise.
18832         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18833         timestamps to occur from same machine, as was done previously for
18834         test_utimens.
18835         * modules/utimens-tests (Files): Ship new file.
18836         * modules/futimens-tests (Files): Likewise.
18837         Reported in part by Jim Meyering.
18838
18839         sys_stat: sort replacement declarations
18840         * lib/sys_stat.in.h: Sort declarations.
18841         * lib/futimens.c (futimens): Fix typo.
18842
18843 2009-10-15  Jim Meyering  <meyering@redhat.com>
18844
18845         don't let environment settings perturb build
18846         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18847         could cause a configure-time and/or build-time malfunction.
18848         Typically, a configure-time function-in-library test is performed
18849         via code like this:
18850
18851           LIB_VAR=
18852           AC_SUBST([LIB_VAR])
18853           prefix_saved_LIBS=$LIBS
18854             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18855                        [test "$ac_cv_search_FUNC" = "none required" ||
18856                         LIB_VAR=$ac_cv_search_FUNC])
18857           LIBS=$prefix_saved_LIBS
18858
18859         However, in each of the files affected by this change, the LIB_VAR=
18860         initialization was omitted.  Thus, when set in the environment, its
18861         value would propagate into generated Makefiles when FUNC is not found
18862         in LIB_NAME.
18863         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18864         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18866
18867 2009-10-14  Eric Blake  <ebb9@byu.net>
18868
18869         fchdir: avoid infinite recursion in mingw
18870         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18871         recursing.
18872
18873         test-stat-time: port to mingw
18874         * tests/test-stat-time.c (force_unlink): Return a value.
18875         (test_ctime) [W32]: Fix compilation error.
18876         (nap): Don't call usleep with too large an argument.  Use
18877         force_unlink.
18878         * doc/pastposix-functions/usleep.texi (usleep): Document the
18879         portability issue.
18880
18881 2009-10-13  Jim Meyering  <meyering@redhat.com>
18882
18883         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18884         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18885         * modules/pipe-filter-ii: Likewise.
18886         * modules/sys_socket-tests: Likewise.
18887         * modules/tsearch-tests: Likewise.
18888         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18889         (check): Depend on it.
18890
18891 2009-10-12  Eric Blake  <ebb9@byu.net>
18892
18893         utimens-tests: port to NFS file systems
18894         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18895         comparisons to avoid spurious failures from timestamp drift
18896         between NFS machines.
18897
18898 2009-10-12  Eric Blake  <ebb9@byu.net>
18899
18900         stat-time-tests: minor cleanups
18901         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18902         * tests/test-stat-time.c (nap): Separate assignment from call.
18903         Suggested by Paolo Bonzini and Bruno Haible.
18904
18905         sys_stat: guarantee struct timespec
18906         * lib/sys_stat.in.h (includes): Always include <time.h>
18907         * modules/sys_stat (Depends-on): Add time.
18908         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18909         mode_t permission values.
18910         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18911         get at subsecond timestamps.
18912
18913 2009-10-10  Eric Blake  <ebb9@byu.net>
18914
18915         futimens: new module
18916         * modules/futimens: New file.
18917         * lib/futimens.c (futimens): Likewise.
18918         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18919         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18920         we can work around Linux bugs.
18921         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18922         * modules/sys_stat (Makefile.am): Substitute them.
18923         * lib/sys_stat.in.h (futimens): Declare it.
18924         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18925         * doc/posix-functions/futimens.texi (futimens): Likewise.
18926         * modules/futimens-tests: New test.
18927         * tests/test-futimens.c: Likewise.
18928
18929         utimens: introduce fdutimens
18930         * lib/utimens.h (fdutimens): New prototype.
18931         * lib/utimens.c (gl_futimens): Move guts...
18932         (fdutimens): ...to new interface.
18933         * tests/test-utimens.c (do_fdutimens): Use it.
18934
18935         utimens: add UTIME_NOW and UTIME_OMIT support
18936         * lib/utimens.c (validate_timespec, update_timespec): New helper
18937         functions.
18938         (gl_futimens, lutimens): Use them.
18939         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18940         stdbool, sys_stat.
18941         (Link): Mention resulting library dependency.
18942         * modules/utimecmp (Link): Likewise.
18943         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18944         (Makefile.am): Pick up library dependency.
18945         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18946         definition.
18947         * tests/test-sys_stat.c: Test the definitions.
18948         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18949         * NEWS: Document library dependency.
18950
18951         utimecmp: support symlink timestamps
18952         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18953         hashing when possible.  Use pathconf when available.
18954         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18955         * modules/utimecmp (Depends-on): Add lstat.
18956
18957         utimens: add lutimens interface
18958         * lib/utimens.c (lutimens): New function.
18959         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18960         * lib/utimens.h (lutimens): Declare new interface.
18961         * tests/test-utimens.c (main): Enhance test.
18962         * tests/test-lutimens.h (test_lutimens): New file.
18963         * modules/utimens-tests (Files): Distribute it.
18964         (Depends-on): Add symlink.
18965         (configure.ac): Check for usleep.
18966
18967         utimens: validate futimens usage
18968         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18969         fewer syscalls on failure later on.  Avoid compiler warning on
18970         mingw.
18971         * modules/utimens (Depends-on): Add dup2.
18972
18973         utimens: add test
18974         * modules/utimens-tests: New test.
18975         * tests/test-utimens.h: New file.
18976         * tests/test-futimens.h: Likewise.
18977         * tests/test-utimens.c: Likewise.
18978
18979         doc: mention timestamp portability issues
18980         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18981         instead.
18982         * doc/posix-functions/utime.texi (utime): Likewise.
18983         * doc/posix-functions/utimes.texi (utimes): Likewise.
18984         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18985         instead.
18986         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18987         module.
18988         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18989         Mention weakness with symlink timestamps.
18990         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18991         to utimensat/futimens instead.
18992         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18993
18994         test-dup2: enhance test
18995         * tests/test-dup2.c (main): Also check AT_FDCWD.
18996
18997         test-stat-time: avoid more spurious failures
18998         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18999         xfs; and avoid race if the two timestamps cross quantization edge.
19000
19001         relocatable: prefer 'file system' over 'filesystem'
19002         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
19003         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
19004         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
19005         * doc/relocatable.texi (Enabling Relocatability): Likewise.
19006         * lib/relocatable.c (compute_curr_prefix): Likewise.
19007
19008 2009-10-10  Jim Meyering  <meyering@redhat.com>
19009
19010         stat-time-tests: check for the usleep function
19011         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
19012
19013 2009-10-10  Bruno Haible  <bruno@clisp.org>
19014
19015         * modules/xnanosleep: Put the Link section after the Include section.
19016
19017 2009-10-09  Eric Blake  <ebb9@byu.net>
19018
19019         dup2: work around FreeBSD 6.1 bug
19020         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
19021         * doc/posix-functions/dup2.texi (dup2): Document it.
19022         Reported by Nelson H. F. Beebe and Jim Meyering.
19023
19024         test-stat-time: port to buggy NFS clients
19025         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
19026         (test_ctime): Also skip test if mtime and ctime are skewed.
19027
19028         maint: prefer 'file system' over 'filesystem'
19029         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19030         * doc/posix-functions/lstat.texi (lstat): Likewise.
19031         * lib/file-has-acl.c (file_has_acl): Likewise.
19032         * lib/fwriteerror.c [TEST]: Likewise.
19033         * tests/test-areadlink.h (test_areadlink): Likewise.
19034         * tests/test-areadlinkat-with-size.c (main): Likewise.
19035         * tests/test-areadlinkat.c (main): Likewise.
19036         * tests/test-canonicalize-lgpl.c (main): Likewise.
19037         * tests/test-canonicalize.c (main): Likewise.
19038         * tests/test-fstatat.c (main): Likewise.
19039         * tests/test-linkat.c (main): Likewise.
19040         * tests/test-lstat.h (test_lstat_func): Likewise.
19041         * tests/test-mkdir.h (test_mkdir): Likewise.
19042         * tests/test-readlink.h (test_readlink): Likewise.
19043         * tests/test-remove.c (main): Likewise.
19044         * tests/test-rename.h (test_rename): Likewise.
19045         * tests/test-renameat.c (main): Likewise.
19046         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19047         * tests/test-symlink.h (test_symlink): Likewise.
19048         * tests/test-symlinkat.c (main): Likewise.
19049         * tests/test-unlink.h (test_unlink_func): Likewise.
19050         * tests/test-unlinkat.c (main): Likewise.
19051
19052         maint: make realtime library usage explicit
19053         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
19054         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
19055         * modules/settime (Link): Likewise.
19056         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
19057
19058         test-stat-time: speed up execution
19059         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
19060         warning on mingw.
19061         (nap): New helper function.
19062         (prepare_test): Use it to reduce sleep time.
19063         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
19064         execution.
19065         * modules/stat-time-tests (configure.ac): Check for usleep.
19066
19067 2009-10-09  Jim Meyering  <meyering@redhat.com>
19068
19069         selinux-h: always use getfilecon wrappers
19070         * lib/getfilecon.c: New file.
19071         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
19072         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
19073         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
19074         (fgetfilecon): Provide a stub.
19075         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
19076         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
19077         file unconditionally.
19078         When <selinux/selinux.h> is found, arrange to use wrappers.
19079         * modules/selinux-h (Files): Add getfilecon.c.
19080         (Makefile.am): Substitute include-next-related bits
19081         into the now-always-generated selinux/selinux.h file.
19082         * doc/glibc-functions/lgetfilecon.texi: New file.
19083         * doc/glibc-functions/fgetfilecon.texi: New file.
19084         * doc/glibc-functions/getfilecon.texi: New file.
19085         * doc/glibc-functions/getfilecon-desc.texi: New file.
19086         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
19087         which to pull in the new files.
19088         * MODULES.html.sh (Misc): Add selinux-h.
19089
19090 2009-10-08  Jim Meyering  <meyering@redhat.com>
19091
19092         unistd: fix comment typo
19093         * lib/unistd.in.h (euidaccess): Fix a comment typo.
19094
19095 2009-10-08  Eric Blake  <ebb9@byu.net>
19096
19097         areadlink: use SIZE_MAX consistently
19098         * modules/areadlink (Depends-on): Add stdint.
19099         * modules/areadlink-with-size (Depends-on): Likewise.
19100         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
19101         gives NULL; drop sys/types, since unistd gives size_t; and add
19102         stdint for SIZE_MAX.
19103         (SIZE_MAX): Rely on headers.
19104         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
19105         and add stdint.
19106         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
19107         (SIZE_MAX): Likewise.
19108         (INITIAL_BUF_SIZE): Turn into enum.
19109         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
19110
19111 2009-10-08  Jim Meyering  <meyering@redhat.com>
19112
19113         areadlinkat: avoid compilation failure
19114         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
19115         Fix typo in comment.
19116
19117 2009-10-07  Eric Blake  <ebb9@byu.net>
19118
19119         areadlinkat-with-size: new module
19120         * modules/areadlinkat-with-size: New module.
19121         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
19122         * lib/areadlink.h (areadlinkat): Declare it.
19123         * MODULES.html.sh (File system functions): Mention it.
19124         * modules/areadlinkat-with-size-tests: New test.
19125         * tests/test-areadlinkat-with-size.c: New file.
19126
19127         xreadlinkat: new module
19128         * modules/xreadlinkat: New module.
19129         * lib/xreadlinkat.c (xreadlinkat): New file.
19130         * lib/xreadlink.h (xreadlinkat): Declare it.
19131         * MODULES.html.sh (File system functions): Mention it.
19132
19133         areadlinkat: new module
19134         * lib/at-func.c (FUNC_FAIL): New define.
19135         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
19136         * modules/areadlinkat: New module.
19137         * lib/linkat.c (areadlinkat): Move...
19138         * lib/areadlinkat.c (areadlinkat): ...to new file.
19139         * lib/areadlink.h (areadlinkat): Declare it.
19140         * modules/linkat (Depends-on): Add areadlinkat.
19141         * MODULES.html.sh (File system functions): Mention it.
19142         * modules/areadlinkat-tests: New test.
19143         * tests/test-areadlinkat.c: New file.
19144
19145         areadlink, areadlink-with-size: add tests
19146         * modules/areadlink-tests: New test.
19147         * modules/areadlink-with-size-tests: Likewise.
19148         * tests/test-areadlink.h: New file.
19149         * tests/test-areadlink.c: Likewise.
19150         * tests/test-areadlink-with-size.c: Likewise.
19151
19152         maint: minor cleanups
19153         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
19154         _UNUSED_PARAMETER_ instead.
19155         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
19156         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
19157         * modules/linkat-tests (Files): Distribute test-link.h.
19158
19159         openat, utimens: whitespace cleanup
19160         * lib/openat.c: Prefer space throughout, rather than mix of 8
19161         spaces vs. tabs.
19162         * lib/at-func.c: Likewise.
19163         * lib/utimens.c: Likewise.
19164
19165         openat: avoid using wrong fd
19166         * lib/openat.c (openat_permissive): Reject user's fd if saving the
19167         working directory chooses same fd.
19168         * lib/at-func.c (AT_FUNC_NAME): Likewise.
19169
19170         mkdir, mkdirat: fix cygwin 1.5.x bug
19171         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
19172         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
19173         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
19174         bug.
19175         (gl_PREREQ_MKDIR): Delete unused macro.
19176         * modules/mkdir (Files): Track file rename.
19177         (configure.ac): Update macro name.
19178         * modules/openat (Depends-on): Add mkdir.
19179         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
19180
19181         mkdir, mkdirat: add tests
19182         * modules/mkdir-tests: New test.
19183         * tests/test-mkdir.h: New file.
19184         * tests/test-mkdir.c: Likewise.
19185         * tests/test-mkdirat.c: Likewise.
19186         * modules/openat-tests (Files): Add new files.
19187         (Makefile.am): Run new test.
19188
19189 2009-10-06  Eric Blake  <ebb9@byu.net>
19190
19191         doc: tweak *at function documentation
19192         * doc/posix-functions/faccessat.texi (faccessat): Mention
19193         known issue with replacement.
19194         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
19195         * doc/posix-functions/linkat.texi (linkat): Likewise.
19196         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19197         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19198         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19199         * doc/posix-functions/renameat.texi (renameat): Likewise.
19200         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19201
19202         openat: fix GNU/Hurd bug in unlinkat
19203         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
19204         broken.
19205         * doc/posix-functions/unlink.texi (unlink): Document this.
19206         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
19207
19208         fdopendir: fix GNU/Hurd bug
19209         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
19210         allowing non-directory fds.
19211         * lib/fdopendir.c (rpl_fdopendir): Work around it.
19212         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19213         * modules/dirent (Makefile.am): Substitute it.
19214         * lib/dirent.in.h (fdopendir): Declare replacement.
19215         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
19216         * tests/test-fdopendir.c (main): Test something other than
19217         /dev/null, since on Hurd that behaves like a directory.
19218
19219         test-symlink: port to GNU/Hurd
19220         * tests/test-symlink.h (test_symlink): Relax expected errno.
19221
19222         doc: tweak more cygwin information
19223         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
19224         now compatible with glibc.
19225         * doc/posix-functions/getopt.texi (getopt): Likewise.
19226
19227         getopt-gnu: add another test
19228         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
19229         guarantee behavior relied on by m4.
19230         * tests/test-getopt.c (main): Use it.
19231         * modules/getopt-posix-tests (Depends-on): Add setenv.
19232         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
19233
19234         getopt: fix compilation on darwin
19235         * lib/getopt.in.h (includes): Leave breadcrumbs during system
19236         include.
19237         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
19238         Reported by Ludovic Courtès.
19239
19240 2009-10-06  Bruno Haible  <bruno@clisp.org>
19241
19242         * modules/size_max (Description): Discourage its use.
19243         Reported by Simon Josefsson.
19244
19245 2009-10-06  Jim Meyering  <meyering@redhat.com>
19246
19247         linkat: avoid compilation failure
19248         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
19249
19250 2009-10-05  Eric Blake  <ebb9@byu.net>
19251
19252         linkat: support Linux 2.6.17
19253         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
19254         linkat on Linux, but allow cache variable override.
19255         * lib/linkat.c (rpl_linkat): Define override.
19256         * modules/linkat (Depends-on): Add symlinkat.
19257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
19258         * modules/unistd (Makefile.am): Substitute it.
19259         * lib/unistd.in.h (linkat): Declare replacement.
19260         Reported by Pádraig Brady.
19261
19262         quotearg: port test to systems with C.UTF-8 locale
19263         * tests/test-quotearg.c (struct result_strings): Add another
19264         member, differentiating between C.ASCII and C.UTF-8 handling.
19265         (compare_strings): Add parameter.
19266         (main): Adjust all callers.
19267
19268         getopt: avoid clash with FreeBSD _getopt_internal
19269         * lib/getopt.in.h (_getopt_internal): Override the name.
19270         * lib/getopt_int.h (includes): Pick up any overrides.
19271         Reported by Reuben Thomas.
19272
19273         hash: allow C89 compilation
19274         * lib/hash.c (check_tuning): Move declaration before statement.
19275         Reported by Reuben Thomas.
19276
19277 2009-10-05  Karl Berry  <karl@gnu.org>
19278
19279         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
19280
19281 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19282             Bruno Haible  <bruno@clisp.org>
19283
19284         * lib/uname.c (uname): Use a table-driven algorithm to compute
19285         Windows NT versions.
19286
19287 2009-10-04  Bruno Haible  <bruno@clisp.org>
19288
19289         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19290         program_invocation_short_name.
19291         * modules/progname (configure.ac): Test for presence of
19292         program_invocation_short_name.
19293         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19294
19295 2009-10-04  Bruno Haible  <bruno@clisp.org>
19296
19297         * lib/progname.c (set_program_name): Fix comment.
19298         Reported by Jim Meyering.
19299
19300 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19301             Bruno Haible  <bruno@clisp.org>
19302
19303         * lib/uname.c: Include <string.h>.
19304         (uname): Do only one call to GetVersionEx in the common case.
19305
19306 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19307             Bruno Haible  <bruno@clisp.org>
19308
19309         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19310         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19311         (uname): Add support for Windows CE and various non-x86 CPU types.
19312
19313 2009-10-03  Bruno Haible  <bruno@clisp.org>
19314
19315         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19316         invocation to tests/configure.ac.
19317         Reported by Ian Beckwith <ianb@erislabs.net>.
19318
19319 2009-10-02  Eric Blake  <ebb9@byu.net>
19320
19321         fchdir: avoid compiler warning
19322         * lib/fchdir.c (canonicalize_file_name)
19323         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19324
19325         test-open: support mingw errno values
19326         * tests/test-open.h (test_open): Relax test.
19327         * tests/test-fopen.h (test_fopen): Likewise.
19328         * tests/test-openat-safer.c (main): Likewise.
19329
19330         open: fix opening directory on mingw
19331         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19332
19333         test-open: on GNU/Hurd, /dev/null is a directory
19334         * tests/test-fopen.h (main): Rename...
19335         (test_fopen): ...to this.  Use a guaranteed non-directory when
19336         confirming open behavior on trailing slash.
19337         * tests/test-openat-safer.c (main): Likewise.
19338         * tests/test-open.h (main): Likewise....
19339         (test_open): ...to this.
19340         * tests/test-fopen.c (main): Adjust caller.
19341         * tests/test-fopen-safer.c (main): Likewise.
19342         * tests/test-open.c (main): Likewise.
19343         * tests/test-fcntl-safer.c (main): Likewise.
19344         Reported by Samuel Thibault.
19345
19346         rename, fchdir: don't ignore chdir failure
19347         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19348         * lib/rename.c (rpl_rename) [W32]: Likewise.
19349         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19350         an empty destination directory if source cannot be renamed,
19351         although there is still possibility for failure.
19352         * doc/posix-functions/rename.texi (rename): Document the race.
19353         Reported by Jim Meyering.
19354
19355         maint: cleanup whitespace in recent commits
19356         * lib/rename.c (rpl_rename): Remove tabs.
19357         * tests/test-link.h (test_link): Likewise.
19358         * lib/fchdir.c (get_name): Likewise.
19359         Reported by Jim Meyering.
19360
19361 2009-10-02  Ben Pfaff  <blp@gnu.org>
19362
19363         relocatable-prog-wrapper: Add missing dependency on
19364         double-slash-root.
19365         * modules/relocatable-prog-wrapper: Add dependency.
19366         Reported by Ian Beckwith <ianb@erislabs.net>.
19367
19368 2009-10-02  Eric Blake  <ebb9@byu.net>
19369
19370         renameat: fix Solaris bugs
19371         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19372         needed fixing.
19373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19374         * modules/stdio (Makefile.am): Substitute it.
19375         * lib/stdio.in.h (renameat): Declare replacement.
19376         * lib/renameat.c (rpl_renameat): Implement fix.
19377
19378         renameat: new module
19379         * modules/renameat: New file.
19380         * lib/renameat.c (renameat): Likewise.
19381         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19383         * modules/stdio (Makefile.am): Substitute them.
19384         * lib/stdio.in.h (renameat): Declare it.
19385         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19386         * doc/posix-functions/renameat.texi (renameat): Likewise.
19387         * modules/renameat-tests: New test.
19388         * tests/test-renameat.c: Likewise.
19389
19390         rename: fix mingw bugs
19391         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19392         directory overwrite bugs.
19393
19394         rename: fix another cygwin 1.5 bug
19395         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19396         checks.
19397         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19398         unnecessary cygwin workarounds.  Also work around bug with moving
19399         full directory onto an empty one.
19400         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19401
19402         rename-dest-slash: merge into rename module
19403         * modules/rename-dest-slash (Status): Mark obsolete.
19404         (Depends-on): Add rename.
19405         (Files): Let rename do it all.
19406         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19407         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19408         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19409         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19410         * lib/rename.c (rpl_rename): Update comments.
19411
19412         rename: fix cygwin 1.5.x bugs
19413         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19414         * lib/rename.c (rpl_rename): Work around them.
19415         * modules/rename (Depends-on): Add same-inode.
19416
19417         rename: fix Solaris 10 bug
19418         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19419         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19420         was the only bug.
19421
19422         rename: fix Solaris 9 bug
19423         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19424         on non-directory.  Avoid calling exit.
19425         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19426         strdup.
19427         * modules/rename-tests (Depends-on): Drop lstat.
19428         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19429         (gl_PREREQ_RENAME): Delete unused macro.
19430
19431         rename-dest-slash: fix NetBSD bug
19432         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19433         links.
19434         * modules/rename-dest-slash (Depends-on): Add same-inode.
19435
19436         rename-tests: new test, exposes several platform bugs
19437         * modules/rename-tests: New file.
19438         * tests/test-rename.h: Likewise.
19439         * tests/test-rename.c: Likewise.
19440         * doc/posix-functions/rename.texi (rename): Improve documentation,
19441         including bugs that will eventually be fixed in gnulib.
19442
19443 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19444
19445         * lib/uname.c: Include <stdlib.h>
19446         (uname): Assume version info is available.
19447
19448 2009-10-02  Jim Meyering  <meyering@redhat.com>
19449
19450         gnu-web-doc-update: correct --help output
19451         * build-aux/gnu-web-doc-update: Make --help output relevant.
19452
19453         gnu-web-doc-update: add standard options
19454         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19455
19456         gnu-web-doc-update: New module.
19457         Use this script to automatically update the on-line web documentation
19458         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19459         * modules/gnu-web-doc-update: New file, from coreutils.
19460         * build-aux/gnu-web-doc-update: New script.
19461
19462 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19463
19464         link: LoadLibrary is not needed.
19465         * lib/link.c: Use GetModuleHandle.
19466
19467 2009-10-01  Eric Blake  <ebb9@byu.net>
19468
19469         getopt: bump serial number
19470         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19471         change.
19472
19473         tests: tighten link, rmdir, and remove tests
19474         * tests/test-link.h (includes): No need to use <config.h> here.
19475         Clean up if directory hard link was created, otherwise test for
19476         trailing '.'.
19477         * tests/test-linkat.c (main): Simplify.
19478         * tests/test-remove.c (main): Enhance test for trailing '.'.
19479         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19480
19481 2009-10-01  Jim Meyering  <meyering@redhat.com>
19482
19483         maint.mk: requiring "make major" was annoying, for a "minor" release.
19484         What is intended is "stable", to contrast with alpha and beta,
19485         so require "make stable", not "make major".
19486         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19487         (get_tool_versions): Likewise.
19488         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19489
19490 2009-09-30  Ben Pfaff  <blp@gnu.org>
19491
19492         Fix broken build of replacement for Windows tmpfile().
19493         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19494         flags argument added along with the 'mkostemp' module.
19495
19496 2009-09-28  Bruno Haible  <bruno@clisp.org>
19497
19498         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19499         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19500         to 'remove_elt'.
19501         (gl_list_remove): Update.
19502         * lib/gl_list.c (gl_list_remove): Update.
19503         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19504         to 'remove_elt'.
19505         (gl_oset_remove): Update.
19506         * lib/gl_list.c (gl_oset_remove): Update.
19507         Reported by Eric Blake.
19508
19509 2009-09-28  Eric Blake  <ebb9@byu.net>
19510
19511         doc: mention yet more cygwin 1.7 status
19512         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19513         cygwin.
19514         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19515         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19516
19517         argp: fix test failure
19518         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19519         that are not upper-case.  Pass correct range to tolower.
19520
19521 2009-09-27  Jim Meyering  <meyering@redhat.com>
19522
19523         test-yesno: work around sparc-dash here-document infelicity
19524         Without this change, the literal \177 byte in a here document
19525         would make dash 0.5.5.1-3 access uninitialized memory.
19526         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19527         Instead, use a marker, "@", and filter through tr to create the desired
19528         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19529
19530 2009-09-27  Bruno Haible  <bruno@clisp.org>
19531
19532         Disable untested support for new flavours of ACLs on AIX.
19533         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19534         progress.
19535         * lib/set-mode-acl.c (qset_acl): Likewise.
19536
19537 2008-12-07  Bruno Haible  <bruno@clisp.org>
19538
19539         Add support for new flavours of ACLs on AIX. (Untested.)
19540         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19541         (file_has_acl): Add support for newer AIX.
19542         * lib/set-mode-acl.c (qset_acl): Likewise.
19543         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19544         Rainer Tammer <tammer@tammer.net>.
19545
19546 2009-09-26  Eric Blake  <ebb9@byu.net>
19547
19548         argp: fix compilation of getopt
19549         * lib/getopt.in.h (includes): Use different guard than glibc.
19550         Reported by Sergey Poznyakoff.
19551
19552         doc: mention more cygwin 1.7 status
19553         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19554         bug.
19555         * doc/posix-functions/execl.texi (execl): Likewise.
19556         * doc/posix-functions/execle.texi (execle): Likewise.
19557         * doc/posix-functions/execlp.texi (execlp): Likewise.
19558         * doc/posix-functions/execv.texi (execv): Likewise.
19559         * doc/posix-functions/execve.texi (execve): Likewise.
19560         * doc/posix-functions/execvp.texi (execvp): Likewise.
19561         * doc/glibc-functions/canonicalize_file_name.texi
19562         (canonicalize_file_name): Cygwin 1.7 now provides this.
19563         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19564         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19565         on AT_SYMLINK_NOFOLLOW.
19566
19567 2009-09-24  Eric Blake  <ebb9@byu.net>
19568
19569         test-linkat: make test more robust
19570         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19571
19572         getopt: fix inclusion guards for cygwin
19573         * modules/getopt-posix (Depends-on): Add include-next.
19574         (Makefile.am): Substitute more items in replacement header.
19575         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19576         <getopt.h>.
19577         * lib/getopt.in.h (includes): Use split inclusion guard, and
19578         prefer <getopt.h> over include <unistd.h> when one is present.
19579         (option): Also override name of 'struct option'.
19580
19581         same-inode: revert prior change; it is not yet ready
19582         * NEWS: Undo mention of this change.
19583         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19584         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19585         * lib/cycle-check.c (cycle_check): Likewise.
19586         * lib/same.c (same_name): Likewise.
19587         * lib/at-func2.c (at_func2): Likewise.
19588
19589 2009-09-23  Eric Blake  <ebb9@byu.net>
19590
19591         linkat: new module
19592         * modules/linkat: New file.
19593         * lib/at-func2.c (at_func2): Likewise.
19594         * lib/linkat.c (linkat): Likewise.
19595         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19596         * lib/openat-priv.h (at_func2): Add declaration.
19597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19598         * modules/unistd (Makefile.am): Substitute them.
19599         * lib/unistd.in.h (linkat): Declare it.
19600         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19601         * doc/posix-functions/linkat.texi (linkat): Likewise.
19602         * doc/posix-functions/link.texi (link): Tweak wording.
19603         * tests/test-link.c (main): Move guts...
19604         * tests/test-link.h (test_link): ...into new file.
19605         * modules/linkat-tests: New test.
19606         * tests/test-linkat.c: Likewise.
19607         * modules/link-tests (Files): Ship new file.
19608         (Depends-on): Add stdbool.
19609
19610         dirname: add library-safe mdir_name
19611         * lib/dirname.h (mdir_name): New prototype.
19612         * lib/dirname.c (dir_name): Move guts...
19613         (mdir_name): ...to new function that avoids xalloc_die.
19614
19615         fchdir: another mingw fix
19616         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19617         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19618         on mingw (where it has not yet been ported), and make it optional
19619         elsewhere.
19620         (_gl_register_fd): Use it.
19621
19622         same-inode: make SAME_INODE tri-state, to port to mingw
19623         * NEWS: Mention this change.
19624         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19625         st_ino always being 0.
19626         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19627         * lib/cycle-check.c (cycle_check): Likewise.
19628         * lib/same.c (same_name): Likewise.
19629
19630         lstat: avoid mingw compilation error
19631         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19632         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19633         lstat ourselves.
19634         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19635         was adequate.
19636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19637         the checks for lstat.
19638         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19639
19640         link: fix test failure on Solaris 9
19641         * lib/link.c (rpl_link): Don't assume link will catch bogus
19642         trailing slash on source.
19643
19644         test-symlinkat: enhance test
19645         * tests/test-readlink.c (main): Move guts...
19646         * tests/test-readlink.h (test_readlink): ...into new file.
19647         * tests/test-symlink.c (main): Move guts...
19648         * tests/test-symlink.h (test_symlink): ...into new file.
19649         * tests/test-symlinkat.c (main): Use new files for further
19650         coverage.
19651         (do_symlink, do_readlink): New helper functions.
19652         * modules/symlink-tests (Files): Ship new file.
19653         (Depends-on): Add stdbool.
19654         * modules/readlink-tests (Files): Ship new file.
19655         (Depends-on): Add stdbool.
19656         * modules/symlinkat-tests (Files): Use new files.
19657
19658 2009-09-23  Eric Blake  <ebb9@byu.net>
19659
19660         readlink: document portability issue with symlink length
19661         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19662         systems have bogus st_size on symlinks, and mention the
19663         areadlink-with-size module.
19664         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19665         * doc/posix-functions/readlink.texi (readlink): Mention the
19666         areadlink module, and ERANGE failure.
19667         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19668         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19669
19670         readlink: fix Solaris 9 bug with trailing slash
19671         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19672         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19673         * doc/posix-functions/readlink.texi (readlink): Document this.
19674         * modules/readlink-tests: New test.
19675         * tests/test-readlink.c: Likewise.
19676
19677         readlink: fix cygwin 1.5.x bug with return type
19678         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19679         * lib/unistd.in.h (readlink): Use ssize_t.
19680         * lib/readlink.c (readlink): Likewise.
19681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19682         * modules/unistd (Makefile.am): Substitute it.
19683         * lib/unistd.in.h (readlink): Declare replacement.
19684         * doc/posix-functions/readlink.texi (readlink): Document this.
19685
19686         symlink: use throughout gnulib
19687         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19688         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19689         symlink is not used.
19690         * modules/symlinkat (Depends-on): Add symlink.
19691         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19692         * modules/canonicalize-tests (Depends-on): Likewise.
19693         * modules/lstat-tests (Depends-on): Likewise.
19694         * modules/openat-tests (Depends-on): Likewise.
19695         * modules/remove-tests (Depends-on): Likewise.
19696         * modules/rmdir-tests (Depends-on): Likewise.
19697         * modules/unlink-tests (Depends-on): Likewise.
19698         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19699         * tests/test-canonicalize.c (symlink): Likewise.
19700         * tests/test-fstatat.c (symlink): Likewise.
19701         * tests/test-lstat.c (symlink): Likewise.
19702         * tests/test-remove.c (symlink): Likewise.
19703         * tests/test-rmdir.c (symlink): Likewise.
19704         * tests/test-unlink.c (symlink): Likewise.
19705         * tests/test-unlinkat.c (symlink): Likewise.
19706
19707         symlink: new module, for Solaris 9 bug
19708         * modules/symlink: New file.
19709         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19710         * lib/symlink.c: Likewise.
19711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19712         * modules/unistd (Makefile.am): Substitute them.
19713         * lib/unistd.in.h (symlink): Declare replacement.
19714         * MODULES.html.sh (File system functions): Mention it.
19715         * doc/posix-functions/symlink.texi (symlink): Likewise.
19716         * modules/symlink-tests: New test.
19717         * tests/test-symlink.c: Likewise.
19718
19719 2009-09-23  Bruno Haible  <bruno@clisp.org>
19720
19721         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19722         when needed.
19723         Test case: gnulib-tool --import --with-tests atexit inttypes.
19724         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19725
19726 2009-09-23  Bruno Haible  <bruno@clisp.org>
19727
19728         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19729         subcommand, not in a subshell.
19730
19731 2009-09-22  Eric Blake  <ebb9@byu.net>
19732
19733         unistd: sort replacement declarations
19734         * lib/unistd.in.h: Sort declarations.
19735
19736         open, openat: minor optimization
19737         * lib/open.c (open): If open succeeded, len is non-zero.
19738         * lib/openat.c (rpl_openat): Likewise.
19739
19740         link-follow: ensure correct result
19741         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19742         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19743         distinguish between possible failures.
19744
19745 2009-09-21  Eric Blake  <ebb9@byu.net>
19746
19747         fts: avoid compiler warning
19748         * lib/fts.c (dirent_inode_sort_may_be_useful)
19749         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19750
19751 2009-09-19  Bruno Haible  <bruno@clisp.org>
19752
19753         * lib/progreloc.c (canonicalize_file_name): New declaration.
19754
19755 2009-09-19  Eric Blake  <ebb9@byu.net>
19756
19757         link: fix quoting
19758         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19759
19760         openat: fix openat bugs on Solaris 9
19761         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19762         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19763         * modules/openat (Depends-on): Add open.
19764         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19765         * modules/fcntl-h (Makefile.am): Substitute it.
19766         * lib/fcntl.in.h (openat): Declare replacement.
19767         * doc/posix-functions/openat.texi (openat): Document this.
19768
19769         openat: move fstatat and unlinkat into correct files
19770         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19771         compiled.
19772         * lib/openat.c (fstatat, unlinkat): Move...
19773         * lib/fstatat.c (fstatat): ...into correct files.
19774         * lib/unlinkat.c (unlinkat): Likewise.
19775
19776         openat: fix unlinkat bugs on Solaris 9
19777         * lib/unlinkat.c (unlinkat): New file.
19778         * modules/openat (Depends-on): Add unlink.
19779         (Files): Distribute it.
19780         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19781         trailing slash behavior is broken.
19782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19783         * modules/unistd (Makefile.am): Substitute it.
19784         * lib/unistd.in.h (unlinkat): Declare replacement.
19785         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19786
19787         openat: fix fstatat bugs on Solaris 9
19788         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19789         stat.
19790         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19791
19792         test-unlinkat: enhance test, to expose Solaris 9 bug
19793         * tests/test-unlink.c (main): Factor guts...
19794         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19795         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19796         * tests/test-rmdir.c (main): Adjust caller.
19797         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19798         (unlinker): New helper function.
19799         (rmdirat): Enhance check.
19800         * modules/rmdir-tests (Depends-on): Add stdbool.
19801         * modules/unlink-tests (Depends-on): Likewise.
19802         (Files): Add test-unlink.h.
19803         * modules/openat-tests (Files): Likewise.
19804         (Depends-on): Add unlinkdir.
19805
19806         test-fstatat: new test, to expose Solaris 9 bugs
19807         * tests/test-stat.c (main): Factor guts...
19808         * tests/test-stat.h (test_stat_func): ...into new file.
19809         * tests/test-lstat.c (main): Factor guts...
19810         * tests/test-lstat.h (test_lstat_func): ...into new file.
19811         * tests/test-fstatat.c: New file.
19812         * modules/stat-tests (Files): Add test-stat.h.
19813         * modules/lstat-tests (Files): Add test-lstat.h.
19814         (Depends-on): Add stdbool.
19815         * modules/openat-tests (Depends-on): Add pathmax.
19816         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19817         (Makefile.am): Run new test.
19818
19819         remove: new module, for mingw and Solaris 9 bugs
19820         * modules/remove: New file.
19821         * lib/remove.c: Likewise.
19822         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19824         * modules/stdio (Makefile.am): Use them.
19825         * lib/stdio.in.h (remove): Declare replacement.
19826         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19827         * doc/posix-functions/remove.texi (remove): Likewise.
19828         * modules/remove-tests: New test.
19829         * tests/test-remove.c: Likewise.
19830
19831         unlink: new module, for Solaris 9 bug
19832         * modules/unlink: New file.
19833         * lib/unlink.c: Likewise.
19834         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19836         * modules/unistd (Makefile.am): Use them.
19837         * lib/unistd.in.h (stat): Declare replacement.
19838         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19839         * doc/posix-functions/unlink.texi (unlink): Likewise.
19840         * modules/unlink-tests: New test.
19841         * tests/test-unlink.c: Likewise.
19842
19843         lstat: fix Solaris 9 bug
19844         * lib/lstat.c (lstat): Also check for trailing slash on
19845         non-symlink, non-directories.  Use stat module to simplify logic.
19846         * doc/posix-functions/lstat.texi (lstat): Document it.
19847         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19848         (configure.ac): Check for symlink.
19849         * tests/test-lstat.c (main): Add more tests.
19850
19851         stat: add as dependency to other modules
19852         * modules/chown (Depends-on): Add stat.
19853         * modules/euidaccess (Depends-on): Likewise.
19854         * modules/fchdir (Depends-on): Likewise.
19855         * modules/isdir (Depends-on): Likewise.
19856         * modules/link (Depends-on): Likewise.
19857         * modules/lstat (Depends-on): Likewise.
19858         * modules/mkdir-p (Depends-on): Likewise.
19859         * modules/modechange (Depends-on): Likewise.
19860         * modules/open (Depends-on): Likewise.
19861         * modules/readlink (Depends-on): Likewise.
19862         * modules/same (Depends-on): Likewise.
19863
19864         stat: fix Solaris 9 bug
19865         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19866         slash.
19867         * lib/stat.c (rpl_stat): Work around it.
19868         * doc/posix-functions/stat.texi (stat): Update documentation.
19869
19870         stat: new module, for mingw bug
19871         * modules/stat: New file.
19872         * lib/stat.c: Likewise.
19873         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19875         * modules/sys_stat (Makefile.am): Use them.
19876         * lib/sys_stat.in.h (stat): Declare replacement.
19877         * lib/openat.c (fstatat): Deal with lstat and stat being function
19878         macros.
19879         * modules/openat (Depends-on): Add inline.
19880         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19881         * doc/posix-functions/stat.texi (stat): Likewise.
19882         * modules/stat-tests: New test.
19883         * tests/test-stat.c: Likewise.
19884
19885 2009-09-19  Jim Meyering  <meyering@redhat.com>
19886
19887         syntax-check: detect unnecessary inclusion of canonicalize.h
19888         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19889
19890 2009-09-19  Eric Blake  <ebb9@byu.net>
19891
19892         canonicalize-lgpl: adjust clients to use correct header
19893         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19894         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19895         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19896         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19897         * lib/progreloc.c (includes): Likewise.
19898
19899 2009-09-19  Jim Meyering  <meyering@redhat.com>
19900
19901         test-posixtm.c: correct a comment
19902         * tests/test-posixtm.c: Correct first-line comment.
19903         Spotted by Eric Blake.
19904
19905 2009-09-16  Jim Meyering  <meyering@redhat.com>
19906
19907         posixtm-tests: make T const-correct; add a test case
19908         * tests/test-posixtm.c (T): Declare const.
19909         Add a test for -(2^31+1).
19910         Remove useless can-succeed-only-in-2002 test.
19911
19912         posixtm-tests: adjust the sole failing test
19913         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19914         expected output matches what mktime now produces.  Cross-checked via
19915         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19916
19917         posixtm: move #ifdef'd tests into a new module
19918         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19919         * tests/test-posixtm.c: ... this new file.
19920         * modules/posixtm-tests: New module.
19921
19922 2009-09-19  Eric Blake  <ebb9@byu.net>
19923
19924         openat: simplify use of at-func.c
19925         * lib/at-func.c (includes): Include prerequisites here, to
19926         simplify requirements on client files.
19927         * lib/openat-priv.h: Add double-inclusion guard.
19928         * lib/faccessat.c (includes): Simplify.
19929         * lib/fchmodat.c (includes): Likewise.
19930         * lib/fchownat.c (includes): Likewise.
19931         * lib/mkdirat.c (includes): Likewise.
19932         * lib/mkfifoat.c (includes): Likewise.
19933         * lib/symlinkat.c (includes): Likewise.
19934
19935         openat: allow return of fd 0
19936         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19937         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19938         unistd-safer.
19939         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19940         <fcntl.h>; this module does not leak fds.
19941         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19942         must be allowed to return 0, leaving openat_safer to add the
19943         safety.
19944         (openat_permissive): Avoid writing to just-opened fd 2 if
19945         restoring the current directory fails.
19946         * lib/openat-die.c (openat_restore_fail): Add comment.
19947         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19948         (save_cwd): Guarantee safe fd, but without use of open_safer.
19949         * tests/test-openat.c: New test.
19950         * modules/openat-tests (Files, Makefile.am): Distribute and build
19951         new file.
19952
19953         relocatable-prog-wrapper: fix build
19954         * modules/relocatable-prog-wrapper (Files): Update name of
19955         canonicalize m4 file, broken on 2009-09-17.
19956         Reported by emad hajjar <aleppos@hotmail.com>.
19957
19958 2009-09-19  Bruno Haible  <bruno@clisp.org>
19959
19960         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19961         * lib/safe-alloc.c: Likewise.
19962         Reported by Ian Beckwith <ianb@erislabs.net>.
19963
19964 2009-09-18  Bruno Haible  <bruno@clisp.org>
19965
19966         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19967         Reported by <erobles@sensacd.com.mx>.
19968
19969 2009-09-17  Eric Blake  <ebb9@byu.net>
19970
19971         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19972         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19973         slashes when checking if last component is missing.
19974         * tests/test-canonicalize.c (main): Test this.
19975
19976         canonicalize, canonicalize-lgpl: honor // if distinct from /
19977         * modules/canonicalize (Files): Add double-slash-root.m4.
19978         * modules/canonicalize-lgpl (Files): Likewise.
19979         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19980         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19981         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19982         fallback definition.
19983         (canonicalize_filename_mode): Use it to protect //.
19984         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19985         (__realpath): Likewise.
19986         * tests/test-canonicalize.c (main): Test this.
19987         * tests/test-canonicalize-lgpl.c (main): Likewise.
19988         * modules/canonicalize-tests (Depends-on): Add same-inode.
19989         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19990
19991         canonicalize-lgpl: fix glibc bug with trailing slash
19992         * m4/canonicalize-lgpl.m4: Move contents...
19993         * m4/canonicalize.m4: ...here.
19994         (gl_CANONICALIZE_LGPL): Factor realpath check...
19995         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19996         glibc 2.3.5 bug, fixed 2005-04-27.
19997         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19998         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19999         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
20000         * modules/canonicalize-lgpl (Files): Manage file rename.
20001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20002         * modules/stdlib (Makefile.am): Substitute witness.
20003         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
20004         is needed.
20005         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
20006         replacement is required.
20007         * lib/canonicalize.c (canonicalize_file_name): Likewise.
20008         * doc/glibc-functions/canonicalize_file_name.texi
20009         (canonicalize_file_name): Document this.
20010         * doc/posix-functions/realpath.texi (realpath): Likewise.
20011
20012         canonicalize-lgpl: reject non-directory with trailing slash
20013         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
20014         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
20015         catches failures in glibc 2.3.5.
20016         * tests/test-canonicalize.c (main): Likewise.
20017
20018         canonicalize-lgpl: use native realpath if it works
20019         * lib/canonicalize-lgpl.c (realpath): Guard with
20020         FUNC_REALPATH_WORKS.
20021         * lib/stdlib.in.h (realpath): Make declaration optional based on
20022         HAVE_REALPATH.
20023         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
20024         native realpath works.
20025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
20026         * modules/stdlib (Makefile.am): Substitute witness.
20027
20028         canonicalize, canonicalize-lgpl: use <stdlib.h>
20029         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
20030         (Include): Mention <stdlib.h>.
20031         (configure.ac): Mention functions we provide.
20032         * modules/canonicalize (configure.ac): Likewise.
20033         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
20034         realpath if canonicalize_file_name is missing.
20035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
20036         * modules/stdlib (Makefile.am): Substitute witnesses.
20037         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
20038         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
20039         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
20040         * NEWS: Document this.
20041         * doc/glibc-functions/canonicalize_file_name.texi
20042         (canonicalize_file_name): Likewise.
20043         * doc/posix-functions/realpath.texi (realpath): Likewise.
20044         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
20045
20046         test-canonicalize: consolidate into single C program
20047         * tests/test-canonicalize.sh: Delete; move setup into...
20048         * tests/test-canonicalize.c (main): ...the program, making it
20049         easier to run in debugger.  Add some tests.
20050         * modules/canonicalize-tests (Files): Remove unused file.
20051         (Depends-on): Add progname.
20052         (configure.ac, Makefile.am): Simplify.
20053
20054         test-canonicalize-lgpl: consolidate into single C program
20055         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
20056         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
20057         easier to run in debugger.  Add some tests.
20058         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
20059         (configure.ac, Makefile.am): Simplify.
20060
20061         canonicalize: avoid resolvepath
20062         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
20063         unnecessary checks.
20064         * lib/canonicalize.c (includes): Simplify.
20065         (canonicalize_file_name): Drop resolvepath implementation.
20066         * modules/canonicalize (Depends-on): Drop filenamecat.
20067
20068         canonicalize: don't lose errno
20069         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
20070         over calls to free.
20071
20072         canonicalize: simplify errno handling
20073         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
20074         assignment.
20075
20076         canonicalize, canonicalize-lgpl: update module dependencies
20077         * modules/canonicalize (Depends-on): Add extensions, lstat,
20078         pathmax, stdlib.
20079         (Files): Drop pathmax.h.
20080         (configure.ac): Adjust macro name.
20081         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
20082         lstat, stdlib, sys_stat.
20083         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
20084         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
20085         extensions.
20086         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
20087         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
20088         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
20089         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
20090         declaration, if available.
20091         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
20092         we can rely on the readlink module.
20093         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
20094         (includes): Use <unistd.h> unconditionally.
20095
20096 2009-09-17  Eric Blake  <ebb9@byu.net>
20097
20098         maint: make Include sections of modules consistent
20099         * modules/alloca: Use only header name; no need to list #include.
20100         * modules/alloca-opt: Likewise.
20101         * modules/arpa_inet: Likewise.
20102         * modules/canon-host: Likewise.
20103         * modules/configmake: Likewise.
20104         * modules/dirent: Likewise.
20105         * modules/eealloc: Likewise.
20106         * modules/environ: Likewise.
20107         * modules/fchdir: Likewise.
20108         * modules/fcntl: Likewise.
20109         * modules/fcntl-h: Likewise.
20110         * modules/gethrxtime: Likewise.
20111         * modules/gettime: Likewise.
20112         * modules/ignore-value: Likewise.
20113         * modules/inet_ntop: Likewise.
20114         * modules/inet_pton: Likewise.
20115         * modules/inttypes: Likewise.
20116         * modules/isnand-nolibm: Likewise.
20117         * modules/isnanf-nolibm: Likewise.
20118         * modules/mbchar: Likewise.
20119         * modules/mbfile: Likewise.
20120         * modules/mbiter: Likewise.
20121         * modules/mbuiter: Likewise.
20122         * modules/netdb: Likewise.
20123         * modules/netinet_in: Likewise.
20124         * modules/nproc: Likewise.
20125         * modules/pagealign_alloc: Likewise.
20126         * modules/poll: Likewise.
20127         * modules/printf-frexp: Likewise.
20128         * modules/pthread: Likewise.
20129         * modules/putenv: Likewise.
20130         * modules/random_r: Likewise.
20131         * modules/relocatable-prog: Likewise.
20132         * modules/search: Likewise.
20133         * modules/select: Likewise.
20134         * modules/selinux-h: Likewise.
20135         * modules/settime: Likewise.
20136         * modules/signal: Likewise.
20137         * modules/size_max: Likewise.
20138         * modules/socklen: Likewise.
20139         * modules/ssize_t: Likewise.
20140         * modules/stdarg: Likewise.
20141         * modules/stdbool: Likewise.
20142         * modules/stddef: Likewise.
20143         * modules/stdint: Likewise.
20144         * modules/stdio: Likewise.
20145         * modules/stdlib: Likewise.
20146         * modules/string: Likewise.
20147         * modules/strings: Likewise.
20148         * modules/sys_file: Likewise.
20149         * modules/sys_ioctl: Likewise.
20150         * modules/sys_select: Likewise.
20151         * modules/sys_socket: Likewise.
20152         * modules/sys_stat: Likewise.
20153         * modules/sys_time: Likewise.
20154         * modules/sys_times: Likewise.
20155         * modules/sys_utsname: Likewise.
20156         * modules/sys_wait: Likewise.
20157         * modules/sysexits: Likewise.
20158         * modules/time: Likewise.
20159         * modules/times: Likewise.
20160         * modules/tmpfile: Likewise.
20161         * modules/trim: Likewise.
20162         * modules/unistd: Likewise.
20163         * modules/wchar: Likewise.
20164         * modules/wctype: Likewise.
20165
20166 2009-09-17  Bruno Haible  <bruno@clisp.org>
20167
20168         Make getdate.y compile on QNX and NetBSD 5 / i386.
20169         * m4/getdate.m4 (gl_GETDATE): Conditionally define
20170         TIME_T_FITS_IN_LONG_INT.
20171         * lib/getdate.y (long_time_t): New type.
20172         (relative_time): Change type of 'seconds' field to long_time_t.
20173         (get_date): Update types of local variables. Check against overflow
20174         during conversion from long_time_t to time_t.
20175         Reported by Matt Kraai <kraai@ftbfs.org>
20176         and Hasso Tepper <hasso@netbsd.org>.
20177
20178 2009-09-17  Bruno Haible  <bruno@clisp.org>
20179
20180         * modules/COPYING: Update copyright years.
20181         * modules/README: Likeiwse.
20182         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
20183         Reported by Ian Beckwith <ianb@erislabs.net>.
20184
20185 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20186
20187         * users.txt: Update references for gnuit package.
20188
20189 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
20190
20191         * m4/getdelim.m4: Fix typo in copyright line.
20192
20193 2009-09-17  Bruno Haible  <bruno@clisp.org>
20194
20195         * lib/atoll.c: Use the standard header with GPL copyright.
20196         * lib/argz.in.h: Likewise.
20197         * lib/glob.c: Likewise.
20198         * lib/glob-libc.h: Likewise.
20199         * lib/random_r.c: Likewise.
20200         * lib/siglist.h: Likewise.
20201         * lib/strsignal.c: Likewise.
20202         Reported by Ian Beckwith <ianb@erislabs.net>.
20203
20204 2009-09-17  Eric Blake  <ebb9@byu.net>
20205
20206         rmdir: ensure correct dependency order
20207         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
20208
20209 2009-09-17  Bruno Haible  <bruno@clisp.org>
20210
20211         Disable assertion that fails on NetBSD 5 / i386.
20212         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
20213         Reported by Sam Steingold <sds@gnu.org>
20214         and Hasso Tepper <hasso@netbsd.org>.
20215
20216 2009-09-16  Eric Blake  <ebb9@byu.net>
20217
20218         unlinkdir: port to mingw
20219         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
20220         on which no one can unlink a directory.
20221
20222         stdlib: sort witness names
20223         * modules/stdlib (Makefile.am): Sort replacements.
20224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20225         * lib/stdlib.in.h: Likewise.
20226
20227         parse-duration-tests: avoid link failure
20228         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
20229         LIBINTL.
20230         Reported by Tom G. Christensen.
20231
20232         openat-tests: ensure unlinkat behaves like rmdir
20233         * tests/test-rmdir.c (main): Factor guts...
20234         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
20235         * modules/rmdir-tests (Files): Ship new file.
20236         * modules/openat-tests: New test.
20237         * tests/test-unlinkat.c: Likewise.
20238
20239         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
20240         * modules/rmdir-errno (Status, Notice): Now obsolete.
20241
20242         rmdir: work around cygwin 1.5.x and mingw bugs
20243         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
20244         * lib/rmdir.c (rmdir): Work around it.
20245         * modules/rmdir (Status, Notice): No longer obsolete.
20246         (Files): Add dos.m4.
20247         (Depends-on): Add unistd.
20248         (configure.ac): Set witnesses.
20249         (License): Relax to LGPLv2+.
20250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
20251         * modules/unistd (Makefile.am): Substitute witnesses.
20252         * lib/unistd.in.h (rmdir): Declare replacement.
20253         * doc/posix-functions/rmdir.texi (rmdir): Document this.
20254         * modules/rmdir-tests: New tests.
20255         * tests/test-rmdir.c: Likewise.
20256
20257 2009-09-15  Eric Blake  <ebb9@byu.net>
20258
20259         fchdir: improve use of replacement functions
20260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
20261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
20262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
20263         REPLACE_CLOSEDIR.
20264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
20265         * modules/sys_stat (Makefile.am): Substitute correct witness.
20266         * modules/dirent (Makefile.am): Likewise.
20267         * modules/unistd (Makefile.am): Likewise.
20268         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
20269         * lib/unistd.in.h (dup): Likewise.
20270         * lib/sys_stat.in.h (fstat): Likewise.
20271
20272         maint: ignore gnulib-tool temp files
20273         * .gitignore: Ignore files created during gnulib-tool --test.
20274
20275 2009-09-13  Jim Meyering  <meyering@redhat.com>
20276
20277         posixtm: don't reject a time that specify "60" as the number of seconds
20278         * lib/posixtm.c (posixtime): The code to reject invalid dates
20279         would also reject a time specified with the .60 suffix.
20280         But POSIX allows that, in order to accommodate leap seconds.
20281         So don't reject it.
20282         (main): Adjust tests accordingly.
20283         * modules/posixtm (Depends-on): Add stpcpy.
20284
20285 2009-09-11  Jim Meyering  <meyering@redhat.com>
20286
20287         announce-gen: include [$release_type] in emitted Subject:
20288         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20289         e.g., [stable] in the emitted Subject: line.
20290
20291 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20292
20293         Remove obsolete macros from several modules.
20294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20295         obsolete Autoconf macros with their modern counterparts.
20296         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20297         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20298         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20299         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20300         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20301         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20303         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20304         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20305         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20306         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20308         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20309         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20310         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20311         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20312         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20313         * m4/time_r.m4 (gl_TIME_R): Likewise.
20314         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20315         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20316         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20317
20318         Fix copyright header in build-aux scripts.
20319         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20320         recommendation.
20321         * build-aux/ncftpput-ftp: Likewise.
20322         * build-aux/update-copyright: Likewise.
20323
20324 2009-09-09  Eric Blake  <ebb9@byu.net>
20325
20326         test-link: allow Linux choice of errno
20327         * tests/test-link.c (main): Relax test for alternate error.
20328
20329         strndup: fix improper m4 caching
20330         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20331         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20332         (gl_PREREQ_STRNDUP): Delete.
20333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20334         * modules/string (Makefile.am): Substitute it.
20335         * lib/string.in.h (strndup): Modernize prototype.
20336
20337         getcwd: port to mingw
20338         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20339         different from the POSIX assumptions made throughout the getcwd
20340         module; fortunately, the mingw getcwd does not need replacement.
20341         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20342         * modules/getcwd-tests: New test.
20343         * tests/test-getcwd.c: Likewise.
20344
20345         link: fix platform bugs
20346         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20347         * lib/link.c (link): Work around them.  Fix related mingw bug.
20348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20349         * modules/unistd (Makefile.am): Substitute it.
20350         * lib/unistd.in.h (link): Declare replacement.
20351         * doc/posix-functions/link.texi (link): Document this.
20352         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20353
20354         test-link: consolidate into single C program, test more cases
20355         * tests/test-link.sh: Delete.
20356         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20357         at least Cygwin and Solaris.
20358         * modules/link-tests (Files): Remove unused file.
20359         (Depends-on): Add errno, sys_stat.
20360         (Makefile.am): Simplify.
20361
20362 2009-09-08  Bruno Haible  <bruno@clisp.org>
20363
20364         Work around towlower, towupper bug on mingw.
20365         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20366         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20367         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20368         * doc/posix-functions/towupper.texi: Likewise.
20369         Reported by Eric Blake.
20370
20371 2009-09-08  Jim Meyering  <meyering@redhat.com>
20372
20373         build: don't try to run autoheader if we don't use it
20374         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20375         is not used in configure.ac.
20376
20377 2009-09-08  Eric Blake  <ebb9@byu.net>
20378
20379         euidaccess: fix compilation error
20380         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20381
20382         rawmemchr: relax license
20383         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20384         okay.
20385         Reported by Jim Meyering.
20386
20387         mkfifoat: new module
20388         * modules/mkfifoat: New file.
20389         * lib/mkfifoat.c: Likewise.
20390         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20392         * modules/sys_stat (Makefile.am): Use them.
20393         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20394         * MODULES.html.sh (File system functions): Mention module.
20395         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20396         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20397         * modules/mkfifoat-tests: New test.
20398         * tests/test-mkfifoat.c: Likewise.
20399
20400         strchrnul: relax license
20401         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20402         okay.
20403         Reported by Jim Meyering.
20404
20405 2009-09-08  Eric Blake  <ebb9@byu.net>
20406
20407         fstatat: fix compilation on Solaris
20408         * lib/fstatat.c (includes): Add fcntl.h.
20409         Reported by Pádraig Brady.
20410
20411 2009-09-07  Eric Blake  <ebb9@byu.net>
20412
20413         rename: modernize replacement
20414         * modules/rename (Depends-on): Add stdio.
20415         (configure.ac): Declare witness.
20416         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20417         stdio take care of replacement.
20418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20419         * modules/stdio (Makefile.am): Substitute them.
20420         * lib/stdio.in.h (rename): Declare replacement.
20421         * lib/rename.c (includes): Allow cross-compilation to non-windows
20422         machines.
20423         * doc/posix-functions/rename.texi (rename): Improve
20424         documentation.
20425
20426         stdio: sort witness names
20427         * modules/stdio (Makefile.am): Sort replacements.
20428         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20429         * lib/stdio.in.h: Likewise.
20430
20431         getcwd: minor cleanups
20432         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20433         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20434
20435         openat: provide more convenience names
20436         * modules/faccessat (configure.ac): Add C witness.
20437         * lib/unistd.in.h (readlinkat): Fix typo.
20438         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20439         convenience wrappers.
20440         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20441         wrappers in syntax checks.
20442
20443 2009-09-06  Eric Blake  <ebb9@byu.net>
20444
20445         doc: fix comments in recent patches
20446         * lib/faccessat.c: Mention correct function.
20447         * lib/fchmodat.c: Likewise.
20448         * lib/fchownat.c: Likewise.
20449         * lib/symlinkat.c: Likewise.
20450         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20451         constants.
20452
20453         faccessat, symlinkat: continue cleanup of previous patch
20454         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20455         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20456         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20458         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20459         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20460         set.
20461
20462 2009-09-06  Bruno Haible  <bruno@clisp.org>
20463
20464         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20465         (fstatat): Declare if GNULIB_FSTATAT is set.
20466         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20467         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20468         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20469         * modules/fcntl-h (Files): Remove m4/openat.m4.
20470         * modules/sys_stat (Files): Remove m4/openat.m4.
20471         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20472         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20473         * modules/unistd (Files): Remove m4/openat.m4.
20474         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20475         GNULIB_OPENAT.
20476         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20477         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20479         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20480         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20481         gl_OPENAT_DEFAULTS.
20482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20483         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20484         Don't require gl_OPENAT_DEFAULTS.
20485         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20486         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20487         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20488         (gl_OPENAT_DEFAULTS): Remove macro.
20489
20490 2009-09-06  Bruno Haible  <bruno@clisp.org>
20491
20492         * modules/openat (configure.ac): Remove unneeded witness.
20493
20494 2009-09-06  Bruno Haible  <bruno@clisp.org>
20495
20496         Set errno to ENOSYS when a function is entirely unsupported.
20497         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20498         EOPNOTSUPP.
20499         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20500         * modules/chown (Depends-on): Remove errno.
20501
20502 2009-09-06  Bruno Haible  <bruno@clisp.org>
20503
20504         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20505
20506 2009-09-06  Bruno Haible  <bruno@clisp.org>
20507
20508         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20509
20510 2009-09-06  Ben Pfaff  <blp@gnu.org>
20511             Bruno Haible  <bruno@clisp.org>
20512
20513         Work around a glibc bug in strtok_r.
20514         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20515         Undefine if UNDEFINE_STRTOK_R is set.
20516         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20518         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20519         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20520         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20521         UNDEFINE_STRTOK_R.
20522         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20523
20524 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20525
20526         exclude: minor fix
20527         * lib/exclude.c: Include wctype.h
20528
20529 2009-09-06  Akim Demaille  <demaille@gostai.com>
20530
20531         bootstrap: improve error message
20532         * build-aux/bootstrap (find_tool): Upon failure, report the list
20533         of candidates.
20534         Honor the initial value of the envvar.
20535
20536 2009-09-05  Eric Blake  <ebb9@byu.net>
20537
20538         symlinkat: new module
20539         * modules/symlinkat: New file.
20540         * lib/symlinkat.c: Likewise.
20541         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20543         * modules/unistd (Makefile.am): Use them.
20544         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20545         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20546         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20547         * MODULES.html.sh (File system functions): Mention module.
20548         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20549         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20550         * modules/symlinkat-tests: New test.
20551         * tests/test-symlinkat.c: Likewise.
20552
20553         test-openat-safer: add more checks
20554         * tests/test-openat-safer.c (main): Check more code paths.
20555
20556 2009-09-05  Jim Meyering  <meyering@redhat.com>
20557
20558         syntax-check: detect unnecessary inclusion of openat.h
20559         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20560
20561 2009-09-05  Bruno Haible  <bruno@clisp.org>
20562
20563         Support towlower, towupper.
20564         * doc/posix-functions/towlower.texi: Mention module wctype.
20565         * doc/posix-functions/towupper.texi: Likewise.
20566         * lib/wctype.in.h (towlower, towupper): New functions.
20567         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20568         (ASSERT): New macro.
20569         (e): New variable.
20570         (main): Test also towlower, towupper. Test WEOF argument.
20571         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20572
20573 2009-09-05  Bruno Haible  <bruno@clisp.org>
20574
20575         Fix conversion behaviour when the input is invalid.
20576         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20577         mark occurring in first pass of indirect conversion.
20578         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20579         input.
20580         Found by clang's static analyzer.
20581
20582 2009-09-05  Bruno Haible  <bruno@clisp.org>
20583
20584         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20585         where direct conversion is possible.
20586
20587 2009-09-04  Eric Blake  <ebb9@byu.net>
20588
20589         openat: fail with ENOENT on empty name
20590         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20591         buffer.
20592
20593         link-follow: fix logic bug in prior patch
20594         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20595         reversed sense of yes and no in prior patch.  Avoid confusing
20596         compilation failure with desired semantics.
20597
20598         link-follow: accomodate mingw and cross-compilation
20599         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20600         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20601         cross-compilation results to -1, to make linkat easier to
20602         implement when cross-compiling.  Trivially support mingw.
20603         * modules/link-follow (configure.ac): Call new name.
20604         * NEWS: Mention this.
20605
20606 2009-09-03  Eric Blake  <ebb9@byu.net>
20607
20608         faccessat: compile replacement
20609         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20610         needed.
20611
20612         fts: fix compilation error
20613         * lib/fts.c (includes): Re-add "openat.h", for
20614         openat_needs_fchdir.
20615
20616         faccessat: new module
20617         * modules/faccessat: New file.
20618         * lib/faccessat.c: Likewise.
20619         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20621         * modules/unistd (Makefile.am): Use it.
20622         * lib/unistd.in.h (faccessat): Declare it.
20623         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20624         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20625         * MODULES.html.sh (File system functions): Mention it.
20626         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20627         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20628
20629         euidaccess: prefer POSIX over non-standard implementation
20630         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20631         * lib/euidaccess.c (euidaccess): Use it if available.
20632
20633         openat: make template easier to use
20634         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20635         AT_FUNC_F2 to be undefined.
20636         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20637         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20638         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20639         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20640         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20641         Likewise.
20642         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20643         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20644         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20645         Likewise.
20646
20647         openat: declare in POSIX headers
20648         * NEWS: Mention this.
20649         * modules/openat (configure.ac): Declare witnesses.
20650         (Depends-on): Add fcntl-h, sys_stat, unistd.
20651         (Include): Mention correct headers.
20652         * modules/fcntl-h (Depends-on): Add link-warning.
20653         (Files): Add openat.m4.
20654         (Makefile.am): Substitute witnesses.
20655         * modules/sys_stat (Files, Makefile.am): Likewise.
20656         * modules/unistd (Files, Makefile.am): Likewise.
20657         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20658         (gl_OPENAT_DEFAULTS): New macro.
20659         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20661         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20662         (SYS_STAT_H): Remove unused variable.
20663         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20664         * lib/fcntl--.h (includes): Remove unneeded header.
20665         * lib/openat-safer.c (includes): Likewise.
20666         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20667         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20668         appropriate headers.
20669         (__OPENAT_PREFIX): Delete.
20670         * lib/fcntl.in.h (openat): Provide declaration.
20671         (AT_FDCWD): Fix Solaris bug.
20672         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20673         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20674         * lib/fchmodat.c (includes):  Adjust to find declaration.
20675         * lib/fchownat.c (includes): Likewise.
20676         * lib/mkdirat.c (includes): Likewise.
20677         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20678         still visible.
20679
20680 2009-09-02  Eric Blake  <ebb9@byu.net>
20681
20682         errno: use consistently
20683         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20684         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20685         * lib/canonicalize.c (ELOOP): Likewise.
20686         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20687         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20688         * lib/lchown.c (EOPNOTSUPP): Likewise.
20689         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20690         * lib/savewd.c (ESTALE): Likewise.
20691         * lib/settime.c (ENOSYS): Likewise.
20692         * lib/utimens.c (ENOSYS): Likewise.
20693         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20694         * lib/chdir-safer.c (ELOOP): Likewise.
20695         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20696         * modules/c-stack (Depends-on): Add errno.
20697         * modules/canonicalize (Depends-on): Likewise.
20698         * modules/chdir-safer (Depends-on): Likewise.
20699         * modules/fdopendir (Depends-on): Likewise.
20700         * modules/inet_ntop (Depends-on): Likewise.
20701         * modules/inet_pton (Depends-on): Likewise.
20702         * modules/lchown (Depends-on): Likewise.
20703         * modules/openat (Depends-on): Likewise.
20704         * modules/savewd (Depends-on): Likewise.
20705         * modules/settime (Depends-on): Likewise.
20706         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20707
20708         fts: avoid leaking fds
20709         * modules/fts (Depends-on): Add cloexec.
20710         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20711         flag.
20712
20713         fts: make directory fds more robust
20714         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20715         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20716
20717         backupfile, chdir-long, fts, savedir: make safer
20718         * lib/backupfile.c (includes): Use "dirent--.h", since
20719         numbered_backup can write to stderr during readdir.
20720         * lib/savedir.c (includes): Likewise.
20721         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20722         emulation can write to stderr on failure.
20723         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20724         * lib/getcwd.c: Document why opendir_safer is unused.
20725         * lib/glob.c: Likewise.
20726         * lib/scandir.c: Likewise.
20727         * lib/openat-proc.c: Likewise, for open_safer.
20728         * modules/backupfile (Depends-on): Add dirent-safer.
20729         * modules/savedir (Depends-on): Likewise.
20730         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20731         * modules/chdir-long (Depends-on): Add openat-safer.
20732
20733         openat-safer: new module
20734         * modules/openat-safer: New file.
20735         * lib/openat-safer.c: Likewise.
20736         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20737         * lib/fcntl-safer.h (openat_safer): Declare.
20738         * lib/fcntl--.h (openat): Override.
20739         * MODULES.html.sh (File descriptor based I/O): Mention it.
20740         * lib/openat.h: Add double-inclusion guards.
20741         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20742         "fcntl--.h", so we can implement openat.
20743         * modules/openat-safer-tests: New test.
20744         * tests/test-openat-safer.c: New file.
20745
20746         dirent-safer: new module
20747         * modules/dirent-safer: New file.
20748         * lib/dirent--.h: Likewise.
20749         * lib/dirent-safer.h: Likewise.
20750         * lib/opendir-safer.c: Likewise.
20751         * m4/dirent-safer.m4: Likewise.
20752         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20753         * modules/dirent-safer-tests: New test.
20754         * tests/test-dirent-safer.c: New file.
20755         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20756
20757         fdopendir: optimize on mingw
20758         * lib/unistd.in.h (_gl_directory_name): New prototype.
20759         * lib/fchdir.c (_gl_directory_name): Implement it.
20760         (fchdir): Use it to simplify implementation.
20761         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20762         fchdir, when available, to avoid calling [f]chdir().
20763
20764         fdopendir: split into its own module
20765         * lib/openat.c (fdopendir): Move...
20766         * lib/fdopendir.c: ...into new file.
20767         * modules/fdopendir: New module.
20768         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20769         * modules/openat (Depends-on): Add fdopendir.
20770         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20771         fdopendir here.
20772         * modules/savedir (Depends-on): Only need fdopendir, not full
20773         openat.
20774         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20775         * lib/openat.h (fdopendir): Drop prototype.
20776         * lib/dirent.in.h (fdopendir): Provide prototype.
20777         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20778         * modules/dirent (Makefile.am): Substitute them.
20779         * MODULES.html.sh (File system functions): Mention it.
20780         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20781         * modules/fdopendir-tests: New file.
20782         * tests/test-fdopendir.c: Likewise.
20783
20784         fchdir: use more consistent macro convention
20785         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20786         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20787         REPLACE_FCHDIR, rather than relying on config.h macros.
20788         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20789         inside a single make-time REPLACE_FCHDIR block, rather than using
20790         the config.h FCHDIR_REPLACEMENT.
20791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20792         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20793         Manage fstat replacement.
20794         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20795         REPLACE_FCHDIR.
20796         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20797         (Makefile.am): Substitute REPLACE_FCHDIR.
20798         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20799         FCHDIR_REPLACEMENT.
20800         * lib/dup-safer.c (dup_safer): Likewise.
20801         * lib/dup2.c (rpl_dup2): Likewise.
20802         * lib/dup3.c (rpl_dup3): Likewise.
20803         * lib/open.c (rpl_open): Likewise.
20804
20805         fchdir: simplify error handling, and support dup3
20806         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20807         stdbool, malloc-posix, realloc-posix.
20808         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20809         (ensure_dirs_slot): Return false on allocation failure.
20810         (rpl_dup2): Delete.
20811         (_gl_register_dup): New function.
20812         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20813         (_gl_register_fd): Close fd on allocation failure.
20814         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20815         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20816         prototype.
20817         (rpl_dup2_fchdir): Delete prototype.
20818         * lib/open.c (open): Update caller.
20819         * lib/dup2.c (dup2): Track fchdir metadata.
20820         * lib/dup3.c (dup3): Likewise.
20821         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20823
20824 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20825
20826         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20827         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20828         don't pass arguments to AC_OUTPUT.
20829
20830 2009-09-02  Bruno Haible  <bruno@clisp.org>
20831
20832         * modules/mkdtemp (License): Relicense under LGPLv2+.
20833         Reported by Paolo Bonzini.
20834
20835 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20836
20837         Replace uses of obsolete autoconf macros in Jim's modules.
20838         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20839         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20840         can evoke a warning from autoconf when run with -Wobsolete
20841         enabled.  They were declared obsolete for good reasons (see
20842         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20843         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20844         should not continue using the deprecated macros.
20845         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20846         obsolete Autoconf macros with modern counterparts.
20847         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20848         * m4/dos.m4 (gl_AC_DOS): Likewise.
20849         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20850         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20851         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20852         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20853         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20854         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20855         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20856         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20857         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20858         Likewise.
20859         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20860         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20861         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20862         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20863         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20864         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20865
20866 2009-09-01  Eric Blake  <ebb9@byu.net>
20867
20868         fchdir: fix off-by-one bug in previous patch
20869         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20870         (_gl_unregister_fd): Delete useless if.
20871
20872 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20873
20874         maint.mk: sort the list of syntax-check rules
20875         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20876         easier to get a sense of progress when the rules are run sequentially
20877         and take a long time.
20878
20879 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20880
20881         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20882         * modules/netinet_in: Likewise.
20883         * modules/sys_file: Likewise.
20884         * modules/sys_ioctl: Likewise.
20885         * modules/sys_select: Likewise.
20886         * modules/sys_socket: Likewise.
20887         * modules/sys_stat: Likewise.
20888         * modules/sys_time: Likewise.
20889         * modules/sys_times: Likewise.
20890         * modules/sys_utsname: Likewise.
20891         * modules/sys_wait: Likewise.
20892
20893 2009-09-01  Jim Meyering  <meyering@redhat.com>
20894
20895         fts: help ensure that return values are not ignored
20896         * lib/fts_.h (__GNUC_PREREQ): Define.
20897         (__attribute_warn_unused_result__): Define.
20898         (fts_children, fts_close, fts_open, fts_read): Declare with
20899         __attribute_warn_unused_result__.
20900
20901         fts: fts_close now fails also when closing a dir file descriptor fails
20902         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20903         and propagate to caller, along with errno.
20904
20905         announce-gen: correct formatting in --help output
20906         * build-aux/announce-gen (usage): Move the one-line description in
20907         --help output "up", to where it belongs, just after Usage:.
20908
20909 2009-08-31  Eric Blake  <ebb9@byu.net>
20910
20911         fchdir: port to mingw
20912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20913         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20914         opened, then use a substitute.
20915         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20916         replacement.
20917         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20918         (_gl_register_fd): No need to check stat if open already filters
20919         all directories.
20920         (fchdir): Fix error condition to match POSIX.
20921         * modules/fchdir (Depends-on): Add sys_stat.
20922         * doc/posix-functions/open.texi (open): Document the limitation.
20923         * modules/fchdir-tests: New file.
20924         * tests/test-fchdir.c: Likewise.
20925
20926         canonicalize: allow cross-testing from cygwin to mingw
20927         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20928         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20929         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20930         Likewise.
20931         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20932         target does not support symlinks.
20933         * tests/test-canonicalize-lgpl.sh: Likewise.
20934
20935         chown: avoid compilation warning on mingw
20936         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20937         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20938         mingw.
20939         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20940         * modules/chown (Depends-on): Add errno.
20941
20942 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20943
20944         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20945         command.
20946
20947 2009-08-31  Jim Meyering  <meyering@redhat.com>
20948
20949         canonicalize: remove useless initialization
20950         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20951         initialization of local, "end".
20952
20953 2009-08-30  Bruno Haible  <bruno@clisp.org>
20954
20955         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20956         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20957         ENOSYS.
20958
20959 2009-08-30  Bruno Haible  <bruno@clisp.org>
20960
20961         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20962         /usr/xpg4/bin/tr when it exists.
20963         * tests/test-pipe-filter-gi1.sh: Likewise.
20964
20965 2009-08-30  Bruno Haible  <bruno@clisp.org>
20966
20967         Work around deficient /usr/bin/id program on Solaris.
20968         * tests/test-file-has-acl.sh (ID): New variable.
20969         * tests/test-set-mode-acl.sh (ID): Likewise.
20970         * tests/test-copy-acl.sh (ID): Likewise.
20971         * tests/test-copy-file.sh (ID): Likewise.
20972
20973 2009-08-30  Bruno Haible  <bruno@clisp.org>
20974
20975         New module 'xstriconveh'.
20976         * lib/xstriconveh.h: New file.
20977         * lib/xstriconveh.c: New file.
20978         * modules/xstriconveh: New file.
20979
20980 2009-08-30  Bruno Haible  <bruno@clisp.org>
20981
20982         Make it easier to use mem_cd_iconveh.
20983         * lib/striconveh.h (iconveh_t): New type.
20984         (iconveh_open, iconveh_close): New declarations.
20985         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20986         with a single 'const iconveh_t *' argument.
20987         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20988         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20989         with a single 'const iconveh_t *' argument.
20990         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20991         * tests/test-striconveh.c (main): Update.
20992         * NEWS: Mention the change.
20993
20994 2009-08-30  Bruno Haible  <bruno@clisp.org>
20995
20996         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20997         problem.
20998
20999 2009-08-30  Bruno Haible  <bruno@clisp.org>
21000
21001         Work around iconv_open problem on Solaris.
21002         * lib/iconv_open-solaris.gperf: New file.
21003         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
21004         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
21005         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
21006         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
21007         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
21008         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
21009
21010 2009-08-29  Jim Meyering  <meyering@redhat.com>
21011
21012         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
21013         * top/maint.mk (cvs-check): Remove target; it was just an alias
21014         to the better-named vc-diff-check.
21015         (maintainer-distcheck): Remove rule.  It was used only from
21016         the (alpha/beta/major) target, and all of its commands but one
21017         were coreutils-specific.
21018         (vc-dist): Remove rule.
21019         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
21020         Run vc-diff-check, not vc-dist.
21021         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
21022
21023 2009-08-27  Bruno Haible  <bruno@clisp.org>
21024
21025         * tests/test-bitrotate.c (main): Remove test that uses a shift count
21026         of 0.
21027
21028 2009-08-27  Bruno Haible  <bruno@clisp.org>
21029
21030         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
21031         compilers.
21032         * doc/func.texi: Document the SunPRO C bug.
21033
21034 2009-08-27  Bruno Haible  <bruno@clisp.org>
21035
21036         Fix link error on Solaris.
21037         * tests/test-parse-duration.c (xstrdup): Remove function.
21038
21039 2009-08-26  Pádraig Brady  <P@draigbrady.com>
21040
21041         ignore-value: handle pointer types, too
21042         * lib/ignore-value.h (__attribute__): Remove definition.
21043         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
21044         of a more concise and more-often effective "(void) i" statement.
21045         (ignore_ptr): New function to suppress warnings from functions that
21046         return pointers, and to make it explicit that one function doesn't
21047         handle all cases.
21048
21049 2009-08-25  Bruno Haible  <bruno@clisp.org>
21050
21051         dup2: work around a Linux bug.
21052         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
21053         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
21054         * doc/posix-functions/dup2.texi: Mention the Linux bug.
21055         Reported by Simon Josefsson.
21056
21057 2009-08-25  Jim Meyering  <meyering@redhat.com>
21058
21059         libguestfs uses gnulib
21060         * users.txt: Add libguestfs.
21061
21062 2009-08-24  Eric Blake  <ebb9@byu.net>
21063
21064         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
21065         * lib/pipe2.c (includes): Add binary-io.h.
21066         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
21067
21068 2009-08-24  Bruno Haible  <bruno@clisp.org>
21069
21070         Tolerate declared but missing accept4 syscall.
21071         * lib/accept4.c (accept4): Invoke original accept4 function first, if
21072         available.
21073         * lib/sys_socket.in.h (accept4): If the function is already present,
21074         override it.
21075         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
21076         * modules/accept4 (Makefile.am): Compile accept4.c always.
21077         Reported by Paolo Bonzini and Eric Blake.
21078
21079 2009-08-23  Bruno Haible  <bruno@clisp.org>
21080
21081         New module 'accept4'.
21082         * lib/sys_socket.in.h (accept4): New declaration.
21083         * lib/accept4.c: New file.
21084         * m4/accept4.m4: New file.
21085         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21086         GNULIB_ACCEPT4, HAVE_ACCEPT4.
21087         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
21088         HAVE_ACCEPT4.
21089         * modules/accept4: New file.
21090         * doc/glibc-functions/accept4.texi: Mention the new module.
21091
21092 2009-08-24  Jim Meyering  <meyering@redhat.com>
21093
21094         progname: also set global program_invocation_name, when possible
21095         Before this change, a libtool-enabled program that calls glibc's
21096         error function would report the program name as
21097         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
21098         * modules/progname (configure.ac): Check for a declaration of
21099         program_invocation_name.
21100         * lib/progname.c:  Include <errno.h>.
21101         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
21102         Set program_invocation_name.
21103
21104 2009-08-23  Bruno Haible  <bruno@clisp.org>
21105
21106         * lib/dup3.c: Include <string.h>.
21107
21108 2009-08-23  Bruno Haible  <bruno@clisp.org>
21109
21110         * lib/dup3.c (dup3): Test only once whether the system actually exists.
21111         * lib/pipe2.c (pipe2): Likewise.
21112         Suggested by Eric Blake.
21113
21114 2009-08-23  Bruno Haible  <bruno@clisp.org>
21115
21116         Tolerate declared but missing dup3 syscall.
21117         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
21118         * lib/unistd.in.h (dup3): If the function is already present,
21119         override it.
21120         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
21121         * modules/dup3 (Makefile.am): Compile dup3.c always.
21122         Reported by Paolo Bonzini.
21123
21124 2009-08-23  Bruno Haible  <bruno@clisp.org>
21125
21126         Tolerate declared but missing pipe2 syscall.
21127         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
21128         available.
21129         * lib/unistd.in.h (pipe2): If the function is already present,
21130         override it.
21131         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
21132         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
21133         Reported by Paolo Bonzini.
21134
21135 2009-08-23  Bruno Haible  <bruno@clisp.org>
21136
21137         * lib/pipe2.c (pipe2): Move #ifs inside function.
21138
21139 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21140
21141         quotearg: document limitations of quote_these_too
21142         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
21143         those limitations are created.
21144         * lib/quotearg.h (set_char_quoting): Document that digits and
21145         letters that are special after backslash are not permitted.
21146         (quotearg_char): Cross-reference set_char_quoting documentation.
21147
21148 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
21149
21150         quotearg: implement custom_quoting_style
21151         * lib/quotearg.c: (struct quoting_options): Add left_quote and
21152         right_quote fields.
21153         (set_custom_quoting): New public function.
21154         (quotearg_buffer_restyled): Add left_quote and right_quote
21155         arguments, handle them very much like locale quoting, and update
21156         all uses.
21157         (quotearg_n_custom): New public function.
21158         (quotearg_n_custom_mem): New public function.
21159         (quotearg_custom): New public function.
21160         (quotearg_custom_mem): New public function.
21161         * lib/quotearg.h: Prototype and document new public functions.
21162         (enum quoting_style): For escape_quoting_style and
21163         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
21164         ignored even though they're otherwise like c_quoting_style.
21165         Add custom_quoting_style member and document with comparison to
21166         clocale_quoting_style.
21167         * tests/test-quotearg.c (custom_quotes): New array.
21168         (custom_results): New array.
21169         (main): Extend to test custom quoting.
21170
21171 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21172
21173         quotearg: fix right quote escaping when it's in quote_these_too
21174         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
21175         quote, be sure to prepend only one backslash.
21176         * tests/test-quotearg.c (use_quote_double_quotes): New function.
21177         (main): Test it.
21178
21179 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
21180
21181         quotearg-tests: test escaping of embedded locale quotes
21182         * tests/test-quotearg.c (struct result_strings): Add member for
21183         new input.
21184         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
21185         (inputs): Add new input.
21186         (results_g): Add expected results.
21187         (flag_results): Likewise.
21188         (locale_results): Likewise.
21189         (compare_strings): Check those.
21190
21191 2009-08-23  Bruno Haible  <bruno@clisp.org>
21192
21193         Tests for module 'dup3'.
21194         * modules/dup3-tests: New file.
21195         * tests/test-dup3.c: New file.
21196
21197         New module 'dup3'.
21198         * lib/unistd.in.h (dup3): New declaration.
21199         * lib/dup3.c: New file.
21200         * m4/dup3.m4: New file.
21201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
21202         HAVE_DUP3.
21203         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
21204         * modules/dup3: New file.
21205         * doc/glibc-functions/dup3.texi: Mention the new module.
21206
21207 2009-08-23  Bruno Haible  <bruno@clisp.org>
21208
21209         Tweak the dup2 test.
21210         * tests/test-dup2.c (main): Create the test file empty. Verify that an
21211         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
21212         the test file is still empty. Fix argument order of lseek.
21213
21214 2009-08-23  Bruno Haible  <bruno@clisp.org>
21215
21216         Avoid test link errors when the modules getopt-gnu, gettext are used.
21217         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
21218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21219
21220 2009-08-23  Bruno Haible  <bruno@clisp.org>
21221
21222         Fix getdtablesize() on mingw.
21223         * lib/getdtablesize.c (getdtablesize): Implement differently.
21224         * lib/unistd.in.h (getdtablesize): Improve comment.
21225
21226 2009-08-23  Bruno Haible  <bruno@clisp.org>
21227
21228         New module 'mkostemp'.
21229         Based on Ulrich Drepper's 2007-08-10 change in glibc.
21230         * lib/stdlib.in.h (mksotemp): New declaration.
21231         * lib/mkostemp.c: New file, from glibc with modifications.
21232         * lib/tempname.h (GT_FILE): Remove outdated comment.
21233         (gen_tempname): Add flags argument.
21234         * lib/tempname.c (__GT_BIGFILE): Remove macro.
21235         (__GT_FILE): Map to 1.
21236         (small_open, large_open): Remove macros.
21237         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
21238         * lib/mkstemp.c (mkstemp): Update.
21239         * lib/mkdtemp.c (mkdtemp): Likewise.
21240         * m4/mkostemp.m4: New file.
21241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
21242         HAVE_MKOSTEMP.
21243         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
21244         HAVE_MKOSTEMP.
21245         * modules/mkostemp: New file, based on modules/mkstemp.
21246         * doc/glibc-functions/mkostemp.texi: Mention the new module.
21247         * NEWS: Mention the change.
21248
21249 2009-08-23  Bruno Haible  <bruno@clisp.org>
21250
21251         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
21252         Reported by Eric Blake.
21253
21254 2009-08-23  Bruno Haible  <bruno@clisp.org>
21255
21256         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
21257         Reported by Eric Blake.
21258
21259 2009-08-23  Bruno Haible  <bruno@clisp.org>
21260
21261         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
21262         * modules/pipe2 (Depends-on): Likewise.
21263
21264 2009-08-23  Eric Blake  <ebb9@byu.net>
21265
21266         fcntl-h: add O_TTY_INIT support
21267         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
21268         * tests/test-fcntl-h.c (o): Test it.
21269         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21270
21271         fcntl-h: rename from fcntl, in preparation for fcntl(2)
21272         * modules/fcntl: Move <fcntl.h> header replacement...
21273         * modules/fcntl-h: ...to new name, so as not to collide with
21274         like-named function.
21275         * tests/test-fcntl.c: Rename...
21276         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
21277         * modules/fcntl-tests: Rename...
21278         * modules/fcntl-h-tests: ...to this.  Update test file name.
21279         * modules/chdir-long (Depends-on): Update clients.
21280         * modules/chdir-safer (Depends-on): Likewise.
21281         * modules/fcntl-safer (Depends-on): Likewise.
21282         * modules/fts (Depends-on): Likewise.
21283         * modules/mkancesdirs (Depends-on): Likewise.
21284         * modules/mkdir-p (Depends-on): Likewise.
21285         * modules/open (Depends-on): Likewise.
21286         * modules/savewd (Depends-on): Likewise.
21287         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21288         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21289
21290 2009-08-22  Bruno Haible  <bruno@clisp.org>
21291
21292         * modules/binary-io (License): Relicense under LGPL.
21293         * modules/pipe2 (License): Likewise.
21294
21295 2009-08-22  Bruno Haible  <bruno@clisp.org>
21296
21297         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21298         return value.
21299         * lib/pipe-filter-gi.c (filter_init): Likewise.
21300         Reported by Eric Blake.
21301
21302 2009-08-22  Bruno Haible  <bruno@clisp.org>
21303
21304         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21305         * modules/pipe (Depends-on): Add pipe2.
21306
21307 2009-08-22  Bruno Haible  <bruno@clisp.org>
21308
21309         Tests for module 'pipe2'.
21310         * modules/pipe2-tests: New file.
21311         * tests/test-pipe2.c: New file.
21312
21313         New module 'pipe2'.
21314         * lib/unistd.in.h (pipe2): New declaration.
21315         * lib/pipe2.c: New file.
21316         * m4/pipe2.m4: New file.
21317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21318         HAVE_PIPE2.
21319         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21320         * modules/pipe2: New file.
21321         * doc/glibc-functions/pipe2.texi: Mention the new module.
21322
21323 2009-08-22  Bruno Haible  <bruno@clisp.org>
21324
21325         Reference some new glibc functions.
21326         * doc/glibc-functions/accept4.texi: New file.
21327         * doc/glibc-functions/dup3.texi: New file.
21328         * doc/glibc-functions/mkostemp.texi: New file.
21329         * doc/glibc-functions/pipe2.texi: New file.
21330         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21331         (Glibc sys/socket.h): Refer to accept4.
21332         (Glibc unistd.h): Refer to dup3, pipe2.
21333         Reported by Eric Blake.
21334
21335 2009-08-22  Jim Meyering  <meyering@redhat.com>
21336             Bruno Haible  <bruno@clisp.org>
21337
21338         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21339         This makes it so packages using automake-1.11's silent-rules option
21340         can print e.g., a single "GEN    configmake.h" line, rather than
21341         the 30+ statements that perform the job.  If you want to see the
21342         actual commands, you can still run "make V=1".
21343         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21344         so that make output is abbreviated when those variables are defined
21345         appropriately.
21346         * modules/argz: Likewise.
21347         * modules/arpa_inet: Likewise.
21348         * modules/byteswap: Likewise.
21349         * modules/configmake: Likewise.
21350         * modules/dirent: Likewise.
21351         * modules/errno: Likewise.
21352         * modules/fcntl: Likewise.
21353         * modules/float: Likewise.
21354         * modules/fnmatch: Likewise.
21355         * modules/getopt-posix: Likewise.
21356         * modules/glob: Likewise.
21357         * modules/iconv_open: Likewise.
21358         * modules/inttypes: Likewise.
21359         * modules/localcharset: Likewise.
21360         * modules/locale: Likewise.
21361         * modules/math: Likewise.
21362         * modules/netdb: Likewise.
21363         * modules/netinet_in: Likewise.
21364         * modules/poll: Likewise.
21365         * modules/posix_spawnp-tests: Likewise.
21366         * modules/sched: Likewise.
21367         * modules/search: Likewise.
21368         * modules/selinux-h: Likewise.
21369         * modules/signal: Likewise.
21370         * modules/spawn: Likewise.
21371         * modules/stdarg: Likewise.
21372         * modules/stdbool: Likewise.
21373         * modules/stddef: Likewise.
21374         * modules/stdint: Likewise.
21375         * modules/stdio: Likewise.
21376         * modules/stdlib: Likewise.
21377         * modules/string: Likewise.
21378         * modules/strings: Likewise.
21379         * modules/sys_file: Likewise.
21380         * modules/sys_ioctl: Likewise.
21381         * modules/sys_select: Likewise.
21382         * modules/sys_socket: Likewise.
21383         * modules/sys_stat: Likewise.
21384         * modules/sys_time: Likewise.
21385         * modules/sys_times: Likewise.
21386         * modules/sys_utsname: Likewise.
21387         * modules/sys_wait: Likewise.
21388         * modules/sysexits: Likewise.
21389         * modules/time: Likewise.
21390         * modules/unistd: Likewise.
21391         * modules/wchar: Likewise.
21392         * modules/wctype: Likewise.
21393
21394 2009-08-22  Jim Meyering  <meyering@redhat.com>
21395
21396         announce-gen: detect write failure
21397         * build-aux/announce-gen: Add Coda at end.
21398         Remove equivalent-but-more-verbose block at top.
21399
21400 2009-08-19  Akim Demaille  <demaille@gostai.com>
21401
21402         bootstrap: --help to stdout.
21403         * bootstrap (usage): Don't send --help to stderr.
21404         Use a here doc instead of a long string.
21405
21406 2009-08-21  Eric Blake  <ebb9@byu.net>
21407
21408         test-popen-safer: split from test-popen
21409         * tests/test-popen.c (main): Move...
21410         * tests/test-popen.h: ...into new file.
21411         * tests/test-popen-safer2.c: New file.
21412         * modules/popen-tests (Files): Add test-popen.h.
21413         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21414         Suggested by Bruno Haible.
21415
21416         test-fcntl-safer: split from test-open
21417         * tests/test-open.c (main): Move...
21418         * tests/test-open.h: ...into new file.
21419         * tests/test-fcntl-safer.c: New file.
21420         * modules/open-tests (Files): Add test-open.h.
21421         * modules/fcntl-safer-tests: New file.
21422         Suggested by Bruno Haible.
21423
21424         test-fopen-safer: split from test-fopen
21425         * tests/test-fopen.c (main): Move...
21426         * tests/test-fopen.h: ...into new file.
21427         * tests/test-fopen-safer.c: New file.
21428         * modules/fopen-tests (Files): Add test-fopen.h.
21429         * modules/fopen-safer-tests: New file.
21430         Suggested by Bruno Haible.
21431
21432 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21433
21434         popen-safer: test O_CLOEXEC at run-time.
21435         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21436
21437 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21438
21439         fcntl: move more flags to the header
21440         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21441         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21442         * lib/fcntl.in.h: Do both things here.
21443
21444 2009-08-21  Jim Meyering  <meyering@redhat.com>
21445
21446         consistently remove $@-t before redirecting to it
21447         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21448         * modules/alloca-opt: Likewise.
21449         * modules/byteswap: Likewise.
21450         * modules/fnmatch: Likewise.
21451         * modules/getopt-posix: Likewise.
21452         * modules/glob: Likewise.
21453         * modules/poll: Likewise.
21454         * modules/posix_spawnp-tests: Likewise.
21455         * modules/sys_socket: Likewise.
21456         * modules/sysexits: Likewise.
21457
21458 2009-08-21  Eric Blake  <ebb9@byu.net>
21459
21460         popen: simplify access to original popen
21461         * lib/popen.c (rpl_popen): No need to worry about popen being a
21462         macro.
21463         Reported by Bruno Haible.
21464
21465 2009-08-20  Eric Blake  <ebb9@byu.net>
21466
21467         build: avoid some compiler warnings
21468         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21469         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21470         type.
21471         (new_exclude_segment, excluded_file_pattern_p)
21472         (excluded_file_name_p): Reduce scope.
21473         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21474         old-style declaration.
21475
21476 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21477
21478         * tests/test-exclude1.sh: Handle Windows EOL.
21479         * tests/test-exclude2.sh: Likewise.
21480         * tests/test-exclude3.sh: Likewise.
21481         * tests/test-exclude4.sh: Likewise.
21482         * tests/test-exclude5.sh: Likewise.
21483         * tests/test-exclude6.sh: Likewise.
21484         * tests/test-exclude7.sh: Likewise.
21485
21486 2009-08-19  Akim Demaille  <demaille@gostai.com>
21487
21488         bootstrap: find sha1sum when named gsha1sum.
21489         * bootstrap (find_tool): New.
21490         ($SHA1SUM): New.
21491         Use it.
21492
21493 2009-08-20  Jim Meyering  <meyering@redhat.com>
21494
21495         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21496         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21497         expression that converts "." in a file name to "\." in the resulting
21498         regexp.  Start with a dummy statement, so that prior shell variable
21499         definitions are expanded portably.  Reported by Simon Josefsson.
21500
21501 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21502
21503         Fix polling for writeability of a screen buffer.
21504         * lib/poll.c: Distinguish input and screen buffers for the
21505         Win32 implementation.
21506         * lib/select.c: Likewise.
21507
21508 2009-08-19  Eric Blake  <ebb9@byu.net>
21509
21510         popen-safer: prevent popen from clobbering std descriptors
21511         * modules/popen-safer: New file.
21512         * lib/popen-safer.c: Likewise.
21513         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21514         * lib/stdio--.h (popen): Provide override.
21515         * lib/stdio-safer.h (popen_safer): Provide declaration.
21516         * tests/test-popen.c (includes): Partially test this.
21517         * modules/popen-safer-tests: New file, for more tests.
21518         * tests/test-popen-safer.c: Likewise.
21519         * MODULES.html.sh (file stream based Input/Output): Mention it.
21520
21521         tests: test some of the *-safer modules
21522         * modules/fopen-safer (Depends-on): Add fopen.
21523         * modules/fcntl-safer (Depends-on): Add fcntl.
21524         * modules/stdlib-safer (Depends-on): Add stdlib.
21525         (configure.ac): Set indicator.
21526         * modules/unistd-safer (configure.ac): Likewise.
21527         * modules/tmpfile-safer (configure.ac): Likewise.
21528         (Depends-on): Add tmpfile.
21529         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21530         active.
21531         * tests/test-fopen.c (includes): Test safer versions when they are
21532         in use.
21533         * tests/test-open.c (includes): Likewise.
21534
21535         popen: fix cygwin 1.5 bug when stdin closed
21536         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21537         * modules/popen: New file.
21538         * modules/popen-tests: Likewise.
21539         * tests/test-popen.c: Likewise.
21540         * m4/popen.m4: Likewise.
21541         * lib/popen.c: Likewise.
21542         * lib/stdio.in.h (popen): New declaration.
21543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21544         * modules/stdio (Makefile.am): Likewise.
21545         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21546
21547 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21548
21549         maint.mk: give full control over update-copyright exclusions
21550         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21551         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21552         (update-copyright): Don't force inclusion of top-level
21553         ChangeLog.  Don't force exclusion of all COPYING files, but make
21554         them the default exclusion instead.
21555
21556 2009-08-16  Bruno Haible  <bruno@clisp.org>
21557
21558         Fix test failures on Solaris 10.
21559         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21560         tests when Solaris iconv() is used.
21561         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21562         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21563         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21564         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21565         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21566
21567 2009-08-16  Bruno Haible  <bruno@clisp.org>
21568
21569         Fix test failures on Solaris 10.
21570         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21571         'tr' program and pass it as first argument.
21572         * tests/test-pipe-filter-gi1.sh: Likewise.
21573         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21574         program as first argument.
21575         * tests/test-pipe-filter-gi1.c (main): Likewise.
21576
21577 2009-08-16  Eric Blake  <ebb9@byu.net>
21578
21579         fpurge: fix previous commits
21580         * modules/fpurge (Makefile.am): Make replacement conditional,
21581         partially reverting 2007-04-29 change; missed in previous
21582         attempt.
21583         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21584         is missing.
21585
21586 2009-08-16  Bruno Haible  <bruno@clisp.org>
21587
21588         Clarify fpurge's effect on the file position.
21589         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21590         * tests/test-fpurge.c (main): Make a second pass for checking the file
21591         position.
21592
21593 2009-08-16  Bruno Haible  <bruno@clisp.org>
21594
21595         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21596         declaration of fpurge is missing.
21597         * tests/test-fpurge.c (main): Check that the file has not more contents
21598         than expected. Close the file before removing it.
21599
21600 2009-08-15  Eric Blake  <ebb9@byu.net>
21601
21602         fpurge: don't wrap working cygwin implementation
21603         * lib/fpurge.c (fpurge): Fix comment typo.
21604         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21605         1.7 to avoid replacement.
21606         * tests/test-fpurge.c (main): Enhance test.
21607
21608 2009-08-15  Eric Blake  <ebb9@byu.net>
21609         and Jim Meyering  <meyering@redhat.com>
21610
21611         test-update-copyright: skip if perl is insufficient
21612         * tests/test-update-copyright.sh: Failure to run maintainer tool
21613         should not cause testsuite failure on cygwin 1.5.
21614
21615 2009-08-14  Eric Blake  <ebb9@byu.net>
21616
21617         doc: mention more functions added in cygwin 1.7.0
21618         * doc/posix-headers/limits.texi (limits.h): Update for recent
21619         cygwin additions.
21620         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21621         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21622         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21623         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21624         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21625
21626 2009-08-14  Eric Blake  <ebb9@byu.net>
21627
21628         maint.mk: simplify update-copyright rule
21629         * top/maint.mk (update-copyright-local): Delete, and document how
21630         to do it in cfg.mk instead.
21631         (update-copyright-exclude-regexp): Delete, and document how to do
21632         it in .x-update-copyright instead.
21633         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21634         exclude ChangeLog.
21635
21636 2009-08-14  Bruno Haible  <bruno@clisp.org>
21637
21638         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21639
21640 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21641
21642         maint.mk: support update-copyright-env
21643         * top/maint.mk (update-copyright-env): Define place-holder.
21644         (update-copyright): Expand $(update-copyright-env) before
21645         invoking update-copyright.
21646
21647 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21648
21649         update-copyright: implement forced reformatting
21650         * build-aux/update-copyright: Implement and document
21651         UPDATE_COPYRIGHT_FORCE.
21652         * tests/test-update-copyright.sh: Test it.
21653
21654 2009-08-14  Eric Blake  <ebb9@byu.net>
21655         and Bruno Haible  <bruno@clisp.org>
21656
21657         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21658         * tests/test-locale.c: Revert previous patch related to NULL.
21659         * tests/test-stdio.c: Likewise.
21660         * tests/test-stdlib.c: Likewise.
21661         * tests/test-string.c: Likewise.
21662         * tests/test-unistd.c: Likewise.
21663         * modules/time-tests (Depends-on): Add verify.
21664         * modules/wchar-tests (Depends-on): Likewise.
21665         * tests/test-time.c: Test for NULL compliance.
21666         * tests/test-wchar.c: Likewise.
21667         * modules/locale (Depends-on): Add stddef.
21668         * modules/stdio (Depends-on): Likewise.
21669         * modules/stdlib (Depends-on): Likewise.
21670         * modules/string (Depends-on): Likewise.
21671         * modules/time (Depends-on): Likewise.
21672         * modules/unistd (Depends-on): Likewise.
21673         * modules/wchar (Depends-on): Likewise.
21674         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21675         * lib/stdlib.in.h (includes): Likewise.
21676         * lib/string.in.h (includes): Likewise.
21677         * lib/time.in.h (includes): Likewise.
21678         * lib/unistd.in.h (includes): Likewise.
21679         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21680         replaced.
21681         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21682         * m4/stddef_h.m4: New file.
21683         * modules/stddef: Likewise.
21684         * lib/stddef.in.h: Likewise.
21685         * modules/stddef-tests: Likewise.
21686         * tests/test-stddef.c: Likewise.
21687         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21688         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21689         * doc/posix-headers/locale.texi (locale.h): Likewise.
21690         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21691         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21692         * doc/posix-headers/string.texi (string.h): Likewise.
21693         * doc/posix-headers/time.texi (time.h): Likewise.
21694         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21695         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21696
21697 2009-08-14  Eric Blake  <ebb9@byu.net>
21698
21699         doc: improve git diff of texinfo files
21700         * .gitattributes: Add rule for *.texi files, with hint on how to
21701         use it.
21702         Copied from m4, and based on a report by Bruno Haible.
21703
21704 2009-08-14  Bruno Haible  <bruno@clisp.org>
21705
21706         Disable multithread support by default on Cygwin 1.5.x for real.
21707         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21708
21709 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21710
21711         update-copyright: much ado about intervals
21712         * build-aux/update-copyright: Implement and document
21713         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21714         of copyright year intervals.
21715         Also, document UPDATE_COPYRIGHT_YEAR.
21716         * tests/test-update-copyright.sh: Test it.
21717
21718         update-copyright: convert 2-digit to 4-digit years
21719         * build-aux/update-copyright: Implement and document.
21720         * tests/test-update-copyright.sh: Update.
21721
21722 2009-08-14  Jim Meyering  <meyering@redhat.com>
21723
21724         test-exclude: avoid coreutils "make check" failure
21725         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21726         just as in test-argmatch.c.
21727
21728 2009-08-13  Eric Blake  <ebb9@byu.net>
21729
21730         test-dup2: fix bad assumption
21731         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21732         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21733
21734         test-version-etc: fix CRLF portability issue
21735         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21736         recognize \r.
21737         * tests/test-argp-version-etc-1.sh: Likewise.
21738
21739         getopt: update client modules
21740         * modules/argp (Depends-on): Use getopt-gnu.
21741         * modules/git-merge-changelog (Depends-on): Likewise.
21742         * modules/long-options (Depends-on): Likewise.
21743         * modules/xstrtol (Depends-on): Likewise.
21744
21745 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21746
21747         * tests/test-version-etc.sh: Don't fail on different
21748         project/version.  Don't fail on CRLF differences.  Rewrite to use
21749         multiple -e instead of multiple sed forks, suggested by Eric Blake
21750         <ebb9@byu.net>.
21751         * tests/test-argp-version-etc-1.sh: Likewise.
21752
21753 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21754
21755         * tests/test-version-etc.sh: Don't fail on different
21756         project/version.
21757
21758 2009-08-12  Bruno Haible  <bruno@clisp.org>
21759
21760         Tests for modules 'getopt-posix', 'getopt-gnu'.
21761         * modules/getopt-posix-tests: New file.
21762         * tests/test-getopt.c: New file.
21763         * tests/test-getopt.h: New file.
21764         * tests/test-getopt_long.h: New file.
21765
21766         New modules 'getopt-posix', 'getopt-gnu'.
21767         * modules/getopt-gnu: New file, renamed from modules/getopt.
21768         * modules/getopt-posix: New file.
21769         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21770         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21771         (gl_GETOPT): Remove macro.
21772         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21773         Disable the test against BSD systems that declare optreset. Test
21774         against mingw bug. Test against lack of support of optional arguments
21775         on many platforms.
21776         * doc/glibc-headers/getopt.texi: Update module name and list of
21777         relevant platforms.
21778         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21779         'getopt-gnu' and more portability problems.
21780         * NEWS: Mention the changes.
21781
21782 2009-08-12  Bruno Haible  <bruno@clisp.org>
21783
21784         Ensure that optarg etc. get declared by <unistd.h>.
21785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21786         AC_USE_SYSTEM_EXTENSIONS.
21787         * modules/getopt (Depends-on): Add 'extensions'.
21788
21789 2009-08-12  Bruno Haible  <bruno@clisp.org>
21790
21791         Avoid test link errors.
21792         * modules/pipe-filter-ii-tests (Makefile.am): Define
21793         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21794         * modules/pipe-filter-gi-tests (Makefile.am): Define
21795         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21797
21798 2009-08-12  Bruno Haible  <bruno@clisp.org>
21799
21800         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21801         gl_GETOPT_SUBSTITUTE before.
21802         (gl_GETOPT): Use it.
21803         * m4/argp.m4 (gl_ARGP): Update.
21804         Reported by Sergey Poznyakoff.
21805
21806         * m4/getopt.m4: Reorder macros.
21807         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21808         (gl_GETOPT_SUBSTITUTE): Remove macro.
21809
21810 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21811
21812         Minor improvement in gitlog-to-changelog
21813
21814         * build-aux/gitlog-to-changelog: New option `--format' makes
21815         output format string configurable.
21816
21817 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21818
21819         Optimize exclude: use hash tables for non-wildcard patterns.
21820
21821         * lib/exclude.c: Include hash.h and mbuiter.h
21822         (struct exclude_pattern, exclude_segment): New data types.
21823         (struct exclude): Rewrite.
21824         (fnmatch_pattern_has_wildcards): New function.
21825         (new_exclude_segment, free_exclude_segment): New functions.
21826         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21827         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21828         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21829         * modules/exclude: Depend on hash and mbuiter.
21830
21831         * modules/exclude-tests: New file.
21832         * tests/test-exclude.c: New file.
21833         * tests/test-exclude1.sh: New file.
21834         * tests/test-exclude2.sh: New file.
21835         * tests/test-exclude3.sh: New file.
21836         * tests/test-exclude4.sh: New file.
21837         * tests/test-exclude5.sh: New file.
21838         * tests/test-exclude6.sh: New file.
21839         * tests/test-exclude7.sh: New file.
21840
21841 2009-08-12  Bruno Haible  <bruno@clisp.org>
21842
21843         Ensure that getopt() gets declared by <unistd.h>.
21844         * lib/unistd.in.h: Conditionally include getopt.h.
21845         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21846         Set GNULIB_UNISTD_H_GETOPT.
21847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21848         GNULIB_UNISTD_H_GETOPT.
21849         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21850
21851 2009-08-12  Bruno Haible  <bruno@clisp.org>
21852
21853         Clarify logic.
21854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21855         gl_replace_getopt instead of GETOPT_H.
21856
21857 2009-08-12  Bruno Haible  <bruno@clisp.org>
21858
21859         * m4/getopt.m4: Add comments.
21860
21861 2009-08-12  Bruno Haible  <bruno@clisp.org>
21862
21863         Disable multithread support by default on Cygwin 1.5.x.
21864         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21865         set gl_use_threads=no if not specified otherwise.
21866
21867 2009-08-11  Bruno Haible  <bruno@clisp.org>
21868
21869         Avoid compilation error on NetBSD 5.0.
21870         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21871         * tests/test-stdio.c: Likewise.
21872         * tests/test-stdlib.c: Likewise.
21873         * tests/test-string.c: Likewise.
21874         * tests/test-unistd.c: Likewise.
21875         Reported by Greg Troxel <gdt@ir.bbn.com>
21876         at <https://savannah.gnu.org/support/?106973>.
21877
21878 2009-08-11  Bruno Haible  <bruno@clisp.org>
21879
21880         * modules/dup2-tests (Depends-on): Remove close.
21881
21882         Undo 2009-07-19 commit.
21883         * modules/acl-tests (Depends-on): Remove close.
21884         * modules/binary-io-tests (Depends-on): Likewise.
21885         * modules/closein-tests (Depends-on): Likewise.
21886         * modules/flock-tests (Depends-on): Likewise.
21887         * modules/fsync-tests (Depends-on): Likewise.
21888         * modules/lseek-tests (Depends-on): Likewise.
21889         * modules/pipe-tests (Depends-on): Likewise.
21890         * modules/posix_spawn-tests (Depends-on): Likewise.
21891         * modules/posix_spawnp-tests (Depends-on): Likewise.
21892         * modules/stat-time-tests (Depends-on): Likewise.
21893         * modules/yesno-tests (Depends-on): Likewise.
21894
21895 2009-08-10  Bruno Haible  <bruno@clisp.org>
21896
21897         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21898
21899 2009-08-10  Bruno Haible  <bruno@clisp.org>
21900
21901         Fix a gcc warning.
21902         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21903
21904 2009-08-10  Bruno Haible  <bruno@clisp.org>
21905
21906         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21907         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21908         not only the first time.
21909         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21910         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21911         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21912         is 1, not only the the first time.
21913
21914 2009-08-10  Bruno Haible  <bruno@clisp.org>
21915
21916         Make it possible to use module 'gethostname' without module 'close'.
21917         * lib/unistd.in.h (close): Evoke a link error only if
21918         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21920         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21921         * modules/unistd (Makefile.am): Substitute
21922         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21923         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21924         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21925         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21926         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21927         * modules/sys_ioctl (Makefile.am): Substitute
21928         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21929         * modules/socket (configure.ac): On native Windows, set
21930         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21931         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21932         Reported by Sam Steingold <sds@gnu.org>.
21933
21934 2009-08-10  Bruno Haible  <bruno@clisp.org>
21935
21936         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21937         * modules/ioctl (configure.ac): Likewise.
21938
21939 2009-08-10  Bruno Haible  <bruno@clisp.org>
21940
21941         Avoid collision between gnulib wrapper and libintl wrapper.
21942         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21943         already defined in intl/printf.c.
21944         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21945         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21946
21947 2009-08-09  Bruno Haible  <bruno@clisp.org>
21948
21949         Make <sys/select.h> really self-contained, also on Solaris 10.
21950         * lib/sys_select.in.h: Include <string.h>.
21951         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21952         Solaris 10 problem.
21953         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21954         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21955         Reported by Jim Meyering.
21956
21957 2009-08-09  Bruno Haible  <bruno@clisp.org>
21958
21959         Avoid warnings from 'aclocal' that are due to a use of macro name
21960         AM_XGETTEXT_OPTION that is not defined in automake.
21961         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21962         automake.
21963         * modules/error (configure.ac): Likewise.
21964         * modules/propername (configure.ac): Likewise.
21965         * modules/vasprintf (configure.ac): Likewise.
21966         * modules/verror (configure.ac): Likewise.
21967         * modules/xprintf (configure.ac): Likewise.
21968         * modules/xvasprintf (configure.ac): Likewise.
21969
21970 2009-08-08  Bruno Haible  <bruno@clisp.org>
21971
21972         Avoid compilation error in C++ mode.
21973         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21974         Reported by Sam Steingold <sds@gnu.org>.
21975
21976 2009-08-08  Bruno Haible  <bruno@clisp.org>
21977
21978         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21979         for the various Unix platforms.
21980         * doc/posix-headers/limits.texi: Update platforms list regarding
21981         HOST_NAME_MAX.
21982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21983
21984 2009-08-07  Jim Meyering  <meyering@redhat.com>
21985
21986         selinux-at: fix typo in a comment
21987         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21988         Spotted by Paolo Bonzini.
21989
21990         selinux-at: remove redundant m4 code, add documentation
21991         * modules/selinux-at (configure.ac): Remove redundant code.
21992         LIB_SELINUX is already set via the dependent module, selinux-h.
21993         (Include): Add quotes around selinux-at.h.
21994         * lib/selinux-at.h: Add documentation.
21995         Reported by Bruno Haible in
21996         http://marc.info/?l=gnulib-bug&m=124958988300749
21997
21998 2009-08-07  Bruno Haible  <bruno@clisp.org>
21999
22000         Avoid link error on MacOS X 10.3 and 10.4.
22001         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
22002         on non-ELF systems.
22003         * lib/argp-pv.c (argp_program_version): Likewise.
22004         Reported by Simon Josefsson.
22005
22006 2009-08-07  Simon Josefsson  <simon@josefsson.org>
22007
22008         * tests/test-version-etc.sh: Use $EXEEXT.
22009
22010 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
22011
22012         update-copyright: update documentation to point to maint.mk
22013         * build-aux/update-copyright: Here.
22014
22015 2009-08-06  Jim Meyering  <meyering@redhat.com>
22016
22017         maint.mk: support update-copyright-local
22018         * top/maint.mk (update-copyright-local): Define place-holder.
22019         (update-copyright): Depend on $(update-copyright-local).
22020
22021 2009-08-06  Jim Meyering  <meyering@redhat.com>
22022
22023         selinux-at: new module
22024         Initially written for coreutils, this module will soon be
22025         used by findutils, too.
22026         * MODULES.html.sh [Misc]: Add selinux-at.
22027         * lib/selinux-at.h: New file, from coreutils.
22028         * lib/selinux-at.c: Likewise.
22029         * modules/selinux-at: Likewise.
22030         (License): Change from LGPL to GPL, since it depends
22031         on the GPL'd openat module.
22032
22033         doc: update README
22034         * README: Remove references to cogito.
22035         Remove cvs-repo-updating instructions from 2007.
22036         Don't imply that CVS is better if you have limited disk space.
22037
22038 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22039
22040         update-copyright: support C-style comments
22041         * build-aux/update-copyright: Implement and document.
22042         * tests/test-update-copyright.sh: Test.
22043
22044 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22045
22046         update-copyright: support omitted "(C)"
22047         * build-aux/update-copyright: Implement and document.  Also,
22048         allow variable whitespace before "(C)".
22049         * tests/test-update-copyright.sh: Test.
22050
22051 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22052
22053         update-copyright: don't trip on non-FSF copyright statements
22054         * build-aux/update-copyright: Fix so that the first correctly
22055         formatted FSF copyright statement is recognized no matter what
22056         appears before it.  Update documentation.
22057         * tests/test-update-copyright.sh: Test that.
22058
22059 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22060
22061         update-copyright: clean up code a little
22062         * build-aux/update-copyright: Append "_re" to the name of any
22063         variable holding a regular expression.
22064         Replace "old" and "new" with "stmt" in variable names.
22065         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
22066         handled correctly.
22067         Format code more consistently.
22068
22069 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
22070
22071         update-copyright-tests: improve portability
22072         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
22073         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
22074
22075 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22076
22077         update-copyright: support @copyright{} and &copy;
22078         * build-aux/update-copyright: Implement and document.
22079         * tests/test-update-copyright.sh: Test.
22080
22081 2009-08-04  Jim Meyering  <meyering@redhat.com>
22082
22083         update-copyright-tests: correctly test EOL=\r\n handling
22084         * tests/test-update-copyright.sh: Put \r at the end of some lines
22085         for the dos-eol tests.  Based on a patch by Joel E. Denny.
22086
22087         maint.mk: make update-copyright exclusion list more configurable
22088         * top/maint.mk (update-copyright): Default to excluding COPYING,
22089         but allow an override, in case someone does want to update that file.
22090
22091         maint.mk: don't update copyright date in COPYING
22092         * top/maint.mk (update-copyright): Exclude COPYING.
22093
22094         maint.mk: add a copyright-updating rule
22095         * top/maint.mk (update-copyright): New rule.
22096         Derived from coreutils/Makefile.am.
22097
22098         update-copyright: rename some variables
22099         * build-aux/update-copyright: Rename a few variables for clarity.
22100         Tweak syntax.  List Joel E. Denny as coauthor.
22101
22102 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
22103
22104         update-copyright: fix bug for 2-digit last year and add tests
22105         * build-aux/update-copyright: Fix bug.
22106         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
22107         specified.
22108         * modules/update-copyright-tests: New
22109         * tests/test-update-copyright.sh: New.
22110
22111 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22112
22113         update-copyright: handle leading tabs in line prefix
22114         * build-aux/update-copyright: Count leading tabs as 8 spaces
22115         when computing margin.  This helps with the formatting of
22116         ChangeLogs, for example.
22117         Fix documentation a little.
22118
22119 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22120
22121         update-copyright: support EOL=\r\n
22122         * build-aux/update-copyright: Implement that.
22123
22124 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
22125
22126         update-copyright: automatically format copyright statements
22127         * build-aux/update-copyright: Implement that.
22128         Also, be a little more predictable and safer by always failing
22129         when the full copyright format is not perfectly recognized as an
22130         unbroken whole.  Discussed at
22131         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
22132         Rewrite documentation.
22133
22134 2009-08-03  Bruno Haible  <bruno@clisp.org>
22135
22136         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
22137
22138 2009-08-02  Bruno Haible  <bruno@clisp.org>
22139
22140         Tests for module 'uname'.
22141         * modules/uname-tests: New file.
22142         * tests/test-uname.c: New file.
22143
22144         New module 'uname'.
22145         * lib/uname.c: New file.
22146         * m4/uname.m4: New file.
22147         * modules/uname: New file.
22148         * doc/posix-functions/uname.texi: Mention the new module.
22149
22150 2009-08-02  Bruno Haible  <bruno@clisp.org>
22151
22152         Tests for module 'sys_utsname'.
22153         * modules/sys_utsname-tests: New file.
22154         * tests/test-sys_utsname.c: New file.
22155
22156         New module 'sys_utsname'.
22157         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
22158         * m4/sys_utsname_h.m4: New file.
22159         * modules/sys_utsname: New file.
22160         * doc/posix-headers/sys_utsname.texi: Mention the new module.
22161
22162 2009-08-02  Bruno Haible  <bruno@clisp.org>
22163
22164         Implicitly initialize the sockets library.
22165         * lib/gethostname.c: Include sockets.h.
22166         (rpl_gethostname): Invoke gl_sockets_startup.
22167         * lib/socket.c: Include sockets.h.
22168         (rpl_socket): Invoke gl_sockets_startup.
22169         * modules/gethostname (Depends-on): Add sockets.
22170         * modules/socket (Depends-on): Likewise.
22171         * tests/test-poll.c: Don't include sockets.h.
22172         (main): Don't invoke gl_sockets_startup.
22173         * tests/test-select.c: Don't include sockets.h.
22174         (main): Don't invoke gl_sockets_startup.
22175
22176 2009-08-02  Bruno Haible  <bruno@clisp.org>
22177
22178         Allow multiple calls to gl_sockets_startup.
22179         * lib/sockets.c (initialized_sockets_version): New variable.
22180         (gl_sockets_startup): Do nothing if already called for this or a higher
22181         version.
22182         (gl_sockets_cleanup): Reset initialized_sockets_version.
22183
22184 2009-08-03  Simon Josefsson  <simon@josefsson.org>
22185
22186         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
22187         different project/version.
22188
22189 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
22190             Bruno Haible  <bruno@clisp.org>
22191
22192         Tests for module 'pipe-filter-gi'.
22193         * modules/pipe-filter-gi-tests: New file.
22194         * tests/test-pipe-filter-gi1.sh: New file.
22195         * tests/test-pipe-filter-gi1.c: New file.
22196         * tests/test-pipe-filter-gi2.sh: New file.
22197         * tests/test-pipe-filter-gi2-main.c: New file.
22198         * tests/test-pipe-filter-gi2-child.c: New file.
22199
22200         New module 'pipe-filter-gi'.
22201         * lib/pipe-filter-gi.c: New file.
22202         * modules/pipe-filter-gi: New file.
22203
22204 2009-08-02  Bruno Haible  <bruno@clisp.org>
22205             Paolo Bonzini  <bonzini@gnu.org>
22206
22207         Tests for module 'pipe-filter-ii'.
22208         * modules/pipe-filter-ii-tests: New file.
22209         * tests/test-pipe-filter-ii1.sh: New file.
22210         * tests/test-pipe-filter-ii1.c: New file.
22211         * tests/test-pipe-filter-ii2.sh: New file.
22212         * tests/test-pipe-filter-ii2-main.c: New file.
22213         * tests/test-pipe-filter-ii2-child.c: New file.
22214
22215         New module 'pipe-filter-ii'.
22216         * lib/pipe-filter.h: New file.
22217         * lib/pipe-filter-ii.c: New file.
22218         * lib/pipe-filter-aux.h: New file.
22219         * modules/pipe-filter-ii: New file.
22220
22221 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22222
22223         * lib/gc-libgcrypt.c: Change copyright to FSF.
22224         * lib/gc-gnulib.c: Likewise.
22225
22226 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
22227
22228         * lib/gethostname.c: Include limits.h.
22229
22230 2009-08-02  Simon Josefsson  <simon@josefsson.org>
22231             Bruno Haible  <bruno@clisp.org>
22232
22233         Ensure HOST_NAME_MAX as part of the gethostname module.
22234         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
22235         define also HOST_NAME_MAX.
22236         * tests/test-gethostname.c: Include <limits.h>.
22237         (main): Check also HOST_NAME_MAX.
22238         * doc/posix-headers/limits.texi: Document the mingw problem.
22239
22240 2009-08-02  Bruno Haible  <bruno@clisp.org>
22241
22242         * lib/gethostname.c (gethostname): Fix handling of large len argument.
22243         Add comments.
22244
22245 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22246
22247         * lib/gethostname.c: Add Windows wrapper.
22248         * m4/gethostname.m4: Look for gethostname in -lws2_32.
22249         * modules/gethostname: Depend on sys_socket & errno, for also
22250         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
22251         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
22252
22253 2009-07-31  Jim Meyering  <meyering@redhat.com>
22254
22255         getloadavg: fix symbol name in comment
22256         * lib/getloadavg.c: Correct a typo I introduced when adding
22257         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
22258         Matt Kraai spotted the problem.
22259
22260 2009-07-29  Matt Kraai  <mkraai@beckman.com>
22261
22262         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
22263         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
22264         code also if ! defined N_NAME_POINTER.
22265         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
22266         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
22267         but the n_name member is a 12-byte array.
22268
22269 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
22270
22271         update-copyright: generalize comment handling
22272         * build-aux/update-copyright: Handle copyright statements
22273         within more comment styles.
22274         Document usage.
22275         Report any file with an external copyright holder or parse failure.
22276
22277 2009-07-29  Jim Meyering  <meyering@redhat.com>
22278
22279         mktime: correct setting of REPLACE_MKTIME
22280         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22281
22282         update-copyright: new module
22283         * modules/update-copyright: New file.
22284         * build-aux/update-copyright: New file.
22285         * MODULES.html.sh (maint+release support): Add update-copyright.
22286
22287 2009-07-27  Bruno Haible  <bruno@clisp.org>
22288
22289         Fix compilation error when <ctime> is used and mktime is replaced.
22290         * lib/time.in.h (mktime): New declaration.
22291         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22292         REPLACE_MKTIME instead of defining mktime in config.h.
22293         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22294         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22295         Reported by Ross McFarland <rwmcfa1@neces.com>.
22296
22297 2009-07-27  Bruno Haible  <bruno@clisp.org>
22298
22299         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22300         Reported by Matt Kraai <mkraai@beckman.com>.
22301
22302 2009-07-25  Jim Meyering  <meyering@redhat.com>
22303
22304         maint.mk: avoid warnings about missing files
22305         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22306         diagnostic when .prev-version does not exist.
22307         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22308         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22309         nonexistent cfg.mk.
22310         Suggestions from Simon Josefsson.
22311
22312 2009-07-25  Bruno Haible  <bruno@clisp.org>
22313
22314         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22315         defined as macros. Needed on QNX 6.4.1.
22316         Reported by Matt Kraai <mkraai@beckman.com>.
22317
22318 2009-07-23  Jim Meyering  <meyering@redhat.com>
22319
22320         maint.mk: invoke "make dist" with a working value of XZ_OPT
22321         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22322
22323 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22324
22325         Make fseeko.c compile on QNX.
22326         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22327
22328 2009-07-22  Peter Simons  <simons@cryp.to>
22329
22330         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22331         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22332         * lib/md4.h: Likewise.
22333         * lib/md5.h: Likewise.
22334         * lib/sha1.h: Likewise.
22335         * lib/sha256.h: Likewise.
22336         * lib/sha512.h: Likewise.
22337
22338         tests-sha1: don't assign literal string to 'char *' variable
22339         * tests/test-sha1.c (main): Declare locals with "const" to match
22340         attributes of the right hand side.
22341
22342 2009-07-21  Eric Blake  <ebb9@byu.net>
22343
22344         dup2: fix more mingw problems
22345         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22346         fd to itself.
22347         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22348         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22349         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22350         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22351         care of mingw bugs.
22352
22353 2009-07-21  Jim Meyering  <meyering@redhat.com>
22354
22355         vc-list-files: avoid failure when /bin/sh is dash
22356         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22357         On some Debian based systems, /bin/sh is a symlink to dash, and running
22358         this command would omit the "/" following each 'tests' prefix:
22359           dash -x build-aux/vc-list-files -C . tests
22360         That is because bash and dash work differently:
22361           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22362           bash ok
22363           dash odd
22364
22365 2009-07-21  Eric Blake  <ebb9@byu.net>
22366
22367         dup2-tests: test previous patch
22368         * modules/dup2-tests: New file.
22369         * tests/test-dup2.c: Likewise.
22370         * tests/test-open.c (main): Avoid unspecified behavior.
22371         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22372         test.
22373
22374         dup2: work around mingw and cygwin 1.5 bug
22375         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22377         * modules/unistd (Makefile.am): Substitute it.
22378         * lib/unistd.in.h (dup2): Declare the replacement.
22379         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22380         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22381         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22382         * modules/execute (Depends-on): Add dup2.
22383         * modules/fseterr (Depends-on): Likewise.
22384         * modules/pipe (Depends-on): Likewise.
22385         * modules/posix_spawn-internal (Depends-on): Likewise.
22386
22387 2009-07-21  Bruno Haible  <bruno@clisp.org>
22388
22389         * modules/.gitattributes: New file.
22390
22391 2009-07-20  Bruno Haible  <bruno@clisp.org>
22392
22393         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22394         (main): Use it.
22395
22396 2009-07-20  Eric Blake  <ebb9@byu.net>
22397
22398         test-pipe: make a bit more robust.
22399         * tests/test-pipe.c (myerr): Allow error messages regardless of
22400         what we do to stderr.
22401         (test_pipe): Rearrange to avoid deadlock.
22402         (child_main): Try a larger read, to ensure we avoided deadlock.
22403         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22404         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22405         if misused.
22406
22407 2009-07-19  Jim Meyering  <meyering@redhat.com>
22408
22409         fts: avoid false-positive cycle-detection
22410         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22411         for each new command line argument.
22412
22413 2009-07-19  Bruno Haible  <bruno@clisp.org>
22414
22415         Fix build error on mingw with the modules sys_select and unistd.
22416         * modules/acl-tests (Depends-on): Add close.
22417         * modules/binary-io-tests (Depends-on): Likewise.
22418         * modules/closein-tests (Depends-on): Likewise.
22419         * modules/flock-tests (Depends-on): Likewise.
22420         * modules/fsync-tests (Depends-on): Likewise.
22421         * modules/lseek-tests (Depends-on): Likewise.
22422         * modules/pipe-tests (Depends-on): Likewise.
22423         * modules/posix_spawn-tests (Depends-on): Likewise.
22424         * modules/posix_spawnp-tests (Depends-on): Likewise.
22425         * modules/stat-time-tests (Depends-on): Likewise.
22426         * modules/yesno-tests (Depends-on): Likewise.
22427
22428 2009-07-19  Bruno Haible  <bruno@clisp.org>
22429
22430         Unify conditionals.
22431         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22432         macros, not at the compiler macros.
22433         * lib/pipe.c: Likewise.
22434         * lib/execute.c: Likewise.
22435         * lib/spawni.c: Likewise.
22436
22437 2009-07-19  Bruno Haible  <bruno@clisp.org>
22438
22439         Fix handling of closed stdin/stdout/stderr on mingw.
22440         * lib/w32spawn.h: Include unistd.h.
22441         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22442         file descriptor with O_NOINHERIT flag.
22443         (fd_safer_noinherit): New function, based on fd-safer.c.
22444         (dup_safer_noinherit): New function, based on dup-safer.c.
22445         (undup_safer_noinherit): New function.
22446         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22447         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22448         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22449         instead of fd_safer.
22450         * tests/test-pipe.c: Include <windows.h>.
22451         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22452
22453         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22454         from main.
22455         (test_pipe): Pass an extra argument for disambiguation.
22456         (main): Invoke parent_main or child_main.
22457
22458         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22459         consistently.
22460
22461 2009-07-18  Eric Blake  <ebb9@byu.net>
22462
22463         test-pipe: fix mingw build
22464         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22465
22466 2009-07-18  Bruno Haible  <bruno@clisp.org>
22467
22468         * modules/pipe-tests (Makefile.am): Fix typo.
22469
22470 2009-07-18  Eric Blake  <ebb9@byu.net>
22471
22472         error: fix mingw build
22473         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22474         Reported by Bruno Haible.
22475
22476         error: avoid undefined use of stdout
22477         * lib/error.c (error, error_at_line): Check that fd 1 is open
22478         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22479         is handling faults and the close_stdout module wants to report the
22480         detection of closed stdout as an error.
22481
22482 2009-07-17  Eric Blake  <ebb9@byu.net>
22483
22484         pipe: be robust in face of closed fds
22485         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22486         should cause child to misbehave.
22487         * modules/pipe-tests: New module.
22488         * tests/test-pipe.c: New file.
22489         * tests/test-pipe.sh: New file.
22490         Reported by Akim Demaille.
22491
22492 2009-07-14  Bruno Haible  <bruno@clisp.org>
22493
22494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22495         Reported by anonymous kc.
22496
22497 2009-07-07  Jim Meyering  <meyering@redhat.com>
22498
22499         maint.mk: don't look for translatable strings in *.m4 or *.mk
22500         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22501         when searching for translatable strings.
22502
22503 2009-07-05  Jim Meyering  <meyering@redhat.com>
22504
22505         remove superfluous parentheses in STREQ definition
22506         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22507         * lib/getugroups.c (STREQ): Likewise.
22508         * lib/fnmatch.c (STREQ): Likewise.
22509         Spotted by Bruno Haible.
22510
22511 2009-07-04  Jim Meyering  <meyering@redhat.com>
22512
22513         argv-iter: new module
22514         * MODULES.html.sh: Add argv-iter.
22515         * lib/argv-iter.c, lib/argv-iter.h: New files.
22516         * modules/argv-iter: New file.
22517         * modules/argv-iter-tests: New file.
22518         * tests/test-argv-iter.c: Test it.
22519
22520 2009-07-04  Bruno Haible  <bruno@clisp.org>
22521
22522         Fix assertion.
22523         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22524         contains more exact copies of a given entry than file2, leave the extra
22525         copies unpaired rather than aborting.
22526         Reported by Eric Blake.
22527
22528 2009-07-02  Bruno Haible  <bruno@clisp.org>
22529
22530         Speedup git-merge-changelog for git cherry-pick.
22531         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22532         (entries_mapping_get): New function, extracted from compute_mapping.
22533         (entries_mapping_reverse_get): New function.
22534         (compute_mapping): Add a 'full' argument. Return the result in a
22535         'struct entries_mapping'.
22536         (main): Update. Access the mappings through entries_mapping_get.
22537         Reported by Eric Blake.
22538
22539 2009-07-02  Bruno Haible  <bruno@clisp.org>
22540
22541         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22542         best_i.
22543
22544 2009-07-02  Bruno Haible  <bruno@clisp.org>
22545
22546         Speed up approximate search for matching ChangeLog entries.
22547         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22548         argument. Call fstrcmp_bounded instead of fstrcmp.
22549         (compute_mapping, try_split_merged_entry, main): Update callers.
22550
22551 2009-07-02  Bruno Haible  <bruno@clisp.org>
22552
22553         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22554
22555 2009-06-30  Bruno Haible  <bruno@clisp.org>
22556
22557         Reduce the number of uc_is_cased calls.
22558         * lib/unicase.h (casing_suffix_context_t): Add
22559         'first_char_except_ignorable' field.
22560         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22561         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22562         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22563         Update initializer.
22564         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22565         case-ignorable characters.
22566         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22567         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22568         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22569         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22570         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22571
22572 2009-06-30  Bruno Haible  <bruno@clisp.org>
22573
22574         Tests for module 'unicase/ignorable'.
22575         * modules/unicase/ignorable-tests: New file.
22576         * tests/unicase/test-ignorable.c: New file, generated by
22577         gen-uni-tables.
22578
22579         Tests for module 'unicase/cased'.
22580         * modules/unicase/cased-tests: New file.
22581         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22582         * tests/unicase/test-predicate-part1.h: New file, derived from
22583         tests/unictype/test-predicate-part1.h.
22584         * tests/unicase/test-predicate-part2.h: New file, same as
22585         tests/unictype/test-predicate-part2.h.
22586
22587         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22588         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22589         (output_casing_properties): New function.
22590         (main): Call it.
22591         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22592         * lib/unicase/cased.c: Include unictype/bitmap.h.
22593         (uc_is_cased): Define through a bitmap lookup.
22594         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22595         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22596         (uc_is_case_ignorable): Define through a bitmap lookup.
22597         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22598         lib/unictype/bitmap.h.
22599         (Depends-on): Add inline. Clean up.
22600         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22601         lib/unictype/bitmap.h.
22602         (Depends-on): Add inline. Clean up.
22603         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22604         recognition.
22605         * tests/unicase/test-u16-tolower.c (main): Likewise.
22606         * tests/unicase/test-u32-tolower.c (main): Likewise.
22607
22608 2009-06-30  Bruno Haible  <bruno@clisp.org>
22609
22610         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22611         * lib/unicase/u16-casemap.c: Likewise.
22612         * lib/unicase/u32-casemap.c: Likewise.
22613
22614 2009-06-29  Bruno Haible  <bruno@clisp.org>
22615
22616         Define u32_casefold as a wrapper around u32_ct_casefold.
22617         * lib/unicase/u32-casefold.c: Update.
22618         * modules/unicase/u32-casefold (Depends-on): Add
22619         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22620         unicase/empty-suffix-context. Clean up.
22621
22622         Define u16_casefold as a wrapper around u16_ct_casefold.
22623         * lib/unicase/u16-casefold.c: Update.
22624         * modules/unicase/u16-casefold (Depends-on): Add
22625         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22626         unicase/empty-suffix-context. Clean up.
22627
22628         Define u8_casefold as a wrapper around u8_ct_casefold.
22629         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22630         * lib/unicase/u8-casefold.c: Update.
22631         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22632         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22633
22634         Define u32_totitle as a wrapper around u32_ct_totitle.
22635         * lib/unicase/u32-totitle.c: Update.
22636         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22637         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22638
22639         Define u16_totitle as a wrapper around u16_ct_totitle.
22640         * lib/unicase/u16-totitle.c: Update.
22641         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22642         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22643
22644         Define u8_totitle as a wrapper around u8_ct_totitle.
22645         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22646         functions.
22647         (FUNC): Delegate to U_CT_TOTITLE.
22648         * lib/unicase/u8-totitle.c: Update.
22649         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22650         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22651
22652         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22653         invocation.
22654         * modules/unicase/u32-tolower (Depends-on): Add
22655         unicase/empty-prefix-context, unicase/empty-suffix-context.
22656
22657         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22658         invocation.
22659         * modules/unicase/u16-tolower (Depends-on): Add
22660         unicase/empty-prefix-context, unicase/empty-suffix-context.
22661
22662         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22663         * modules/unicase/u8-tolower (Depends-on): Add
22664         unicase/empty-prefix-context, unicase/empty-suffix-context.
22665
22666         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22667         invocation.
22668         * modules/unicase/u32-toupper (Depends-on): Add
22669         unicase/empty-prefix-context, unicase/empty-suffix-context.
22670
22671         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22672         invocation.
22673         * modules/unicase/u16-toupper (Depends-on): Add
22674         unicase/empty-prefix-context, unicase/empty-suffix-context.
22675
22676         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22677         * modules/unicase/u8-toupper (Depends-on): Add
22678         unicase/empty-prefix-context, unicase/empty-suffix-context.
22679
22680         New module 'unicase/u32-ct-casefold'.
22681         * lib/unicase/u32-ct-casefold.c: New file.
22682         * modules/unicase/u32-ct-casefold: New file.
22683
22684         New module 'unicase/u16-ct-casefold'.
22685         * lib/unicase/u16-ct-casefold.c: New file.
22686         * modules/unicase/u16-ct-casefold: New file.
22687
22688         New module 'unicase/u8-ct-casefold'.
22689         * lib/unicase/u8-ct-casefold.c: New file.
22690         * lib/unicase/u-ct-casefold.h: New file, derived from
22691         lib/unicase/u-casefold.h.
22692         * modules/unicase/u8-ct-casefold: New file.
22693
22694         New module 'unicase/u32-ct-totitle'.
22695         * lib/unicase/u32-ct-totitle.c: New file.
22696         * modules/unicase/u32-ct-totitle: New file.
22697
22698         New module 'unicase/u16-ct-totitle'.
22699         * lib/unicase/u16-ct-totitle.c: New file.
22700         * modules/unicase/u16-ct-totitle: New file.
22701
22702         New module 'unicase/u8-ct-totitle'.
22703         * lib/unicase/u8-ct-totitle.c: New file.
22704         * lib/unicase/u-ct-totitle.h: New file, derived from
22705         lib/unicase/u-totitle.h.
22706         * modules/unicase/u8-ct-totitle: New file.
22707
22708         New module 'unicase/u32-ct-tolower'.
22709         * lib/unicase/u32-ct-tolower.c: New file.
22710         * modules/unicase/u32-ct-tolower: New file.
22711
22712         New module 'unicase/u16-ct-tolower'.
22713         * lib/unicase/u16-ct-tolower.c: New file.
22714         * modules/unicase/u16-ct-tolower: New file.
22715
22716         New module 'unicase/u8-ct-tolower'.
22717         * lib/unicase/u8-ct-tolower.c: New file.
22718         * modules/unicase/u8-ct-tolower: New file.
22719
22720         New module 'unicase/u32-ct-toupper'.
22721         * lib/unicase/u32-ct-toupper.c: New file.
22722         * modules/unicase/u32-ct-toupper: New file.
22723
22724         New module 'unicase/u16-ct-toupper'.
22725         * lib/unicase/u16-ct-toupper.c: New file.
22726         * modules/unicase/u16-ct-toupper: New file.
22727
22728         New module 'unicase/u8-ct-toupper'.
22729         * lib/unicase/u8-ct-toupper.c: New file.
22730         * modules/unicase/u8-ct-toupper: New file.
22731
22732         Add context arguments to u*_casemap functions.
22733         * lib/unicase/unicasemap.h: Include unicase.h.
22734         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22735         suffix_context arguments.
22736         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22737         functions.
22738         (FUNC): Add prefix_context and suffix_context arguments. Use
22739         uc_is_cased and uc_is_case_ignorable.
22740         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22741         * lib/unicase/u16-casemap.c: Likewise.
22742         * lib/unicase/u32-casemap.c: Likewise.
22743         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22744         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22745         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22746         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22747         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22748         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22749
22750         New module 'unicase/u32-suffix-context'.
22751         * lib/unicase/u32-suffix-context.c: New file.
22752         * modules/unicase/u32-suffix-context: New file.
22753
22754         New module 'unicase/u16-suffix-context'.
22755         * lib/unicase/u16-suffix-context.c: New file.
22756         * modules/unicase/u16-suffix-context: New file.
22757
22758         New module 'unicase/u8-suffix-context'.
22759         * lib/unicase/u8-suffix-context.c: New file.
22760         * lib/unicase/u-suffix-context.h: New file.
22761         * modules/unicase/u8-suffix-context: New file.
22762
22763         New module 'unicase/empty-suffix-context'.
22764         * lib/unicase/empty-suffix-context.c: New file.
22765         * modules/unicase/empty-suffix-context: New file.
22766
22767         New module 'unicase/u32-prefix-context'.
22768         * lib/unicase/u32-prefix-context.c: New file.
22769         * modules/unicase/u32-prefix-context: New file.
22770
22771         New module 'unicase/u16-prefix-context'.
22772         * lib/unicase/u16-prefix-context.c: New file.
22773         * modules/unicase/u16-prefix-context: New file.
22774
22775         New module 'unicase/u8-prefix-context'.
22776         * lib/unicase/u8-prefix-context.c: New file.
22777         * lib/unicase/u-prefix-context.h: New file.
22778         * lib/unicase/context.h: New file.
22779         * modules/unicase/u8-prefix-context: New file.
22780
22781         New module 'unicase/empty-prefix-context'.
22782         * lib/unicase/empty-prefix-context.c: New file.
22783         * modules/unicase/empty-prefix-context: New file.
22784
22785         New module 'unicase/ignorable'.
22786         * lib/unicase/ignorable.c: New file.
22787         * modules/unicase/ignorable: New file.
22788
22789         New module 'unicase/cased'.
22790         * lib/unicase/caseprop.h: New file.
22791         * lib/unicase/cased.c: New file.
22792         * modules/unicase/cased: New file.
22793
22794         New functions for case mapping of substrings.
22795         * lib/unicase.h (casing_prefix_context_t): New type.
22796         (unicase_empty_prefix_context): New variable.
22797         (u8_casing_prefix_context, u16_casing_prefix_context,
22798         u32_casing_prefix_context, u8_casing_prefixes_context,
22799         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22800         declarations.
22801         (casing_suffix_context_t): New type.
22802         (unicase_empty_suffix_context): New variable.
22803         (u8_casing_suffix_context, u16_casing_suffix_context,
22804         u32_casing_suffix_context, u8_casing_suffixes_context,
22805         u16_casing_suffixes_context, u32_casing_suffixes_context,
22806         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22807         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22808         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22809         declarations.
22810
22811 2009-06-28  Jim Meyering  <meyering@redhat.com>
22812
22813         boostrap: indent only with spaces
22814         * build-aux/bootstrap: Indent only with spaces, never TABs.
22815
22816         bootstrap: split long lines
22817         * build-aux/bootstrap: Keep line length < 80.
22818
22819         bootstrap: sync from coreutils
22820         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22821         just as autoreconf does.  Verify a list of prerequisite
22822         package-name,version-number pairs if defined in bootstrap.conf.
22823         Refer to README-prereq, if prerequisites are not satisfied.
22824
22825 2009-06-27  Eric Blake  <ebb9@byu.net>
22826
22827         tests: add test for bogus NULL definition
22828         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22829         * tests/test-stdlib.c: Likewise.
22830         * tests/test-string.c: Likewise.
22831         * tests/test-locale.c: Likewise.
22832         * tests/test-unistd.c: Likewise.
22833         * modules/stdio-tests (Depends-on): Add verify.
22834         * modules/stdlib-tests (Depends-on): Likewise.
22835         * modules/string-tests (Depends-on): Likewise.
22836         * modules/locale-tests (Depends-on): Likewise.
22837         * modules/unistd-tests (Depends-on): Likewise.
22838
22839 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22840
22841         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22842         self-explaining comment.
22843         * m4/selinux-selinux-h: Update serial.
22844         (gl_LIBSELINUX): New macro, adding a warning for missing development
22845         packages to code extracted from...
22846         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22847         Add warning for missing development packages here, too.
22848
22849 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22850
22851         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22852
22853 2009-06-25  Eric Blake  <ebb9@byu.net>
22854
22855         version-etc: fix regression
22856         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22857         gcc.
22858         (version_etc): Use it, to catch bugs with trailing NULL.
22859         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22860         (version_etc_va): Fix logic bug.
22861         * modules/version-etc-tests: Add test.
22862         * tests/test-version-etc.c: New file.
22863         * tests/test-version-etc.sh: Likewise.
22864
22865 2009-06-25  Sam Steingold  <sds@gnu.org>
22866
22867         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22868         mbtowc declaration.
22869
22870 2009-06-25  Eric Blake  <ebb9@byu.net>
22871
22872         fpurge: migrate into <stdio.h>
22873         * lib/fpurge.h: Delete...
22874         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22875         * lib/fpurge.c (fpurge): Change declaring header.
22876         * modules/fpurge (Files): Drop deleted file.
22877         (Depends-on): Add stdio.
22878         (configure.ac): Set witness.
22879         * modules/stdio (Makefile.am): Support fpurge macros.
22880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22881         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22882         * lib/fflush.c: Update client.
22883         * tests/test-fpurge.c: Likewise.
22884         * NEWS: Mention the change.
22885
22886 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22887
22888         * lib/argp-version-etc.c (program_authors): Add const
22889         qualifier.
22890         * lib/version-etc.c: Fix typos in the comments.
22891         * modules/argp-version-etc: Depends on version-etc.
22892
22893 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22894
22895         argp-version-etc: new module.
22896
22897         * lib/argp-version-etc.c: New file.
22898         * lib/argp-version-etc.h: New file.
22899         * modules/argp-version-etc: New file.
22900         * modules/argp-version-etc-tests: New file.
22901         * tests/test-argp-version-etc.c: New test.
22902         * tests/test-argp-version-etc-1.sh: New test.
22903
22904 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22905
22906         Provide additional interfaces and documentation for version-etc
22907         module.
22908
22909         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22910         interfaces.
22911         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22912         prototypes.
22913
22914 2009-06-24  Bruno Haible  <bruno@clisp.org>
22915
22916         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22917         HAVE_LIB${NAME} macro.
22918         Reported by Sam Steingold <sds@gnu.org>.
22919
22920 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22921
22922         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22923         needed.
22924
22925 2009-06-21  Bruno Haible  <bruno@clisp.org>
22926
22927         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22928         work.
22929         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22930         together with LIB${NAME}, LTLIB${NAME}.
22931         Reported by Sam Steingold <sds@gnu.org>.
22932
22933 2009-06-20  Jim Meyering  <meyering@redhat.com>
22934
22935         tests: make sc_require_test_exit_idiom more generic
22936         * top/maint.mk (Exit_witness_file): New overridable variable.
22937         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22938         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22939
22940 2009-06-19  Jim Meyering  <meyering@redhat.com>
22941
22942         hash: reverse order of src/dst parameters in an internal interface
22943         * lib/hash.c (transfer_entries): Reverse order of parameters to
22944         put DST before SRC.  Adjust callers.
22945
22946         tests: test-hash: avoid wholesale duplication
22947         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22948         Instead, use a loop and add a single conditional.
22949
22950         tests: test-hash: allow seed selection via a command line argument
22951         * tests/test-hash.c (get_seed): New function.
22952         (main): Use it.
22953
22954 2009-06-19  Eric Blake  <ebb9@byu.net>
22955
22956         hash: avoid memory leak on allocation failure
22957         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22958         failure.  Factor repeated algorithm...
22959         (transfer_entries): ...into new helper routine.
22960         (hash_delete): React to hash_rehash return value.
22961
22962         hash: reduce memory pressure in hash_rehash no-op case
22963         * lib/hash.c (next_prime): Avoid overflow.
22964         (hash_initialize): Factor bucket size computation...
22965         (compute_bucket_size): ...into new helper function.
22966         (hash_rehash): Use new function and open coding to reduce memory
22967         pressure, and avoid a memory leak in USE_OBSTACK code.
22968         Reported by Jim Meyering.
22969
22970 2009-06-18  Eric Blake  <ebb9@byu.net>
22971
22972         hash: make rotation more obvious
22973         * modules/hash (Depends-on): Add bitrotate and stdint.
22974         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22975         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22976         (SIZE_MAX): Rely on headers for definition.
22977         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22978         (raw_hasher): Use rotr_sz.
22979         Suggested by Jim Meyering.
22980
22981         hash: fix memory leak in last patch
22982         * lib/hash.c (hash_rehash): Avoid memory leak.
22983
22984         hash: avoid no-op rehashing
22985         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22986
22987         hash: provide default callback functions
22988         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22989         (hash_initialize): Use them as defaults.
22990         * tests/test-hash.c (main): Test this.
22991
22992         hash: minor optimization
22993         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22994         when possible.
22995         (hash_initialize): Document this promise.
22996         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22997         * tests/test-hash.c (hash_compare_strings): Test this.
22998
22999 2009-06-18  Bruno Haible  <bruno@clisp.org>
23000
23001         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
23002         going to be replaced anyway.
23003
23004 2009-06-18  Bruno Haible  <bruno@clisp.org>
23005
23006         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
23007         in one place.
23008         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
23009         be replaced anyway.
23010
23011 2009-06-18  Eric Blake  <ebb9@byu.net>
23012
23013         hash: check for resize before insertion
23014         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
23015         threshold before insertion, so that a pathological hash_rehash
23016         that fills every bucket can still trigger another rehash.
23017
23018 2009-06-18  Jim Meyering  <meyering@redhat.com>
23019
23020         hash-tests: add a loop around the small tests
23021         * tests/test-hash.c (main): Repeat small tests with selected
23022         small initial table sizes.
23023
23024 2009-06-17  Eric Blake  <ebb9@byu.net>
23025
23026         hash: minor cleanups
23027         * lib/hash.h (hash_entry): Make opaque, by moving...
23028         * lib/hash.c (hash_entry): ...here.
23029         (hash_insert): Clarify restrictions on what can be inserted.
23030         (hash_get_next): Clarify when it is safe to remove an element
23031         during traversal.
23032         (check_tuning): Skip verification when tuning is known safe.
23033         (hash_initialize): Clarify restrictions on tuning.
23034
23035 2009-06-17  Jim Meyering  <jim@meyering.net>
23036         and Eric Blake  <ebb9@byu.net>
23037
23038         hash-tests: new module
23039         * modules/hash-tests: New file.
23040         * tests/test-hash.c: New file.
23041
23042 2009-06-17  Eric Blake  <ebb9@byu.net>
23043
23044         strstr-simple: document new module
23045         * MODULES.html.sh: Document new module.
23046
23047         strstr, strcasestr: replace on platforms with broken memchr
23048         * modules/strstr: Split into...
23049         * modules/strstr-simple: ...new module that does not care about
23050         performance, but does care about glibc bug.
23051         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
23052         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
23053         if platform memchr is broken, per Debian bug 521737.
23054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
23055         memchr.
23056         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
23057         * doc/posix-functions/strstr.texi (strstr): Document the fix.
23058         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23059         * modules/mountlist (Depends-on): Add strstr-simple.
23060         * modules/gen-uni-tables (Depends-on): Likewise.
23061         * modules/argz (Depends-on): Add strstr.
23062
23063 2009-06-17  Bruno Haible  <bruno@clisp.org>
23064
23065         * modules/posix_spawn-internal (Depends-on): Add errno.
23066
23067 2009-06-17  Bruno Haible  <bruno@clisp.org>
23068
23069         Define missing ESTALE on Interix 3.5.
23070         * lib/errno.in.h (ESTALE): Assign a value if missing.
23071         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
23072         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
23073         missing.
23074         * doc/posix-headers/errno.texi: Mention the Interix bug.
23075         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
23076
23077 2009-06-15  Eric Blake  <ebb9@byu.net>
23078
23079         memchr, memchr2: add valgrind exception
23080         * lib/memchr.valgrind: New file.
23081         * lib/memchr2.valgrind: New file.
23082         * modules/memchr (Files): Distribute valgrind file.
23083         * modules/memchr2 (Files): Likewise.
23084
23085         docs: memchr is no longer obsolete
23086         * MODULES.html.sh: Move memchr from obsolete to string.h section.
23087         * lib/string.in.h (memchr): Simplify logic.
23088
23089 2009-06-14  Jim Meyering  <meyering@redhat.com>
23090
23091         link-follow: fix the "checking..." message to not mention trailing slash
23092         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
23093         never considered trailing slashes.
23094
23095 2009-06-14  Bruno Haible  <bruno@clisp.org>
23096
23097         * m4/memchr.m4: Mention also the bug on IA-64.
23098         * doc/posix-functions/memchr.texi: Likewise.
23099
23100 2009-06-12  Eric Blake  <ebb9@byu.net>
23101
23102         memchr: detect broken x86_64 and alpha implementations
23103         * modules/memchr-tests (Depends-on): Move mmap detection...
23104         * modules/memchr (Depends-on): ...here.
23105         (configure.ac): Set indicator.
23106         * lib/string.in.h (memchr): Declare replacement.
23107         * modules/string (Makefile.am): Trigger replacement.
23108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23109         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
23110         bugs.
23111         * doc/posix-functions/memchr.texi (memchr): Document the bug.
23112         * modules/getpagesize (License): Relax license.
23113
23114 2009-06-11  Bruno Haible  <bruno@clisp.org>
23115
23116         * lib/idpriv.h: Add more references.
23117
23118 2009-06-08  Bruno Haible  <bruno@clisp.org>
23119
23120         Tests for module 'idpriv-droptemp'.
23121         * modules/idpriv-droptemp-tests: New file.
23122         * tests/test-idpriv-droptemp.sh: New file.
23123         * tests/test-idpriv-droptemp.su.sh: New file.
23124         * tests/test-idpriv-droptemp.c: New file.
23125
23126         New module 'idpriv-droptemp'.
23127         * lib/idpriv-droptemp.c: New file.
23128         * modules/idpriv-droptemp: New file.
23129
23130 2009-06-08  Bruno Haible  <bruno@clisp.org>
23131
23132         Tests for module 'idpriv-drop'.
23133         * modules/idpriv-drop-tests: New file.
23134         * tests/test-idpriv-drop.sh: New file.
23135         * tests/test-idpriv-drop.su.sh: New file.
23136         * tests/test-idpriv-drop.c: New file.
23137
23138         New module 'idpriv-drop'.
23139         * lib/idpriv.h: New file.
23140         * lib-idpriv-drop.c: New file.
23141         * m4/idpriv.m4: New file.
23142         * modules/idpriv-drop: New file.
23143
23144 2009-06-08  Bruno Haible  <bruno@clisp.org>
23145
23146         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
23147         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23148         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23149         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23150         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23151         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23152         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23153
23154 2009-06-08  Eric Blake  <ebb9@byu.net>
23155
23156         test-strstr: use memory fence, when possible
23157         * tests/test-strstr.c (main): Use memory fence, in order to be
23158         more likely to trigger Debian bug 521737.
23159         * modules/strstr-tests (Files): Pull in additional files.
23160
23161         memchr: no longer obsolete, for wider field testing
23162         * modules/memchr (Status, Notice): Delete, this module is no
23163         longer obsolete.
23164         * modules/vasnprintf (Depends-on): Add memchr.
23165
23166 2009-06-07  Jim Meyering  <meyering@redhat.com>
23167
23168         hash: declare some functions with the warn_unused_result attribute
23169         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
23170
23171 2009-06-07  Bruno Haible  <bruno@clisp.org>
23172
23173         * tests/test-alignof.c: Don't test int64_t if it does not exist.
23174         Reported by Eric Blake.
23175
23176 2009-06-06  Eric Blake  <ebb9@byu.net>
23177
23178         test-alignof: fix typo with long double
23179         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
23180         compiler error.
23181
23182 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
23183
23184         Escape non-texinfo { and }s.
23185         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
23186         markup error.
23187
23188 2009-06-04  Jim Meyering  <meyering@redhat.com>
23189
23190         gitlog-to-changelog: don't infloop on an empty commit log
23191         * build-aux/gitlog-to-changelog: Warn about an empty log message.
23192         Reported by Boris Petersen <transacid@centerim.org>.
23193
23194 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
23195
23196         version-etc: extend for packagers
23197         Add three new configure options, intended for packagers:
23198           --with-packager="packager name"
23199           --with-packager-version="packager-specific version"
23200           --with-packager-bug-reports="packager bug reporting"
23201         An example with coreutils:
23202           $ ./configure \
23203             --with-packager=Gentoo \
23204             --with-packager-bug-report=http://bugs.gentoo.org/ \
23205             --with-packager-version="patchset 1.6"
23206           $ ./src/ls --version | head -n2
23207           ls (GNU coreutils) 7.1-dirty
23208           Packaged by Gentoo (patchset 1.6)
23209         Note that the bug reporting info via --help doesn't show up because
23210         coreutils uses its own custom emit_bug_reporting_address() implementation
23211         in src/system.h.  If it didn't, it'd look like:
23212           $ ./src/ls --help | tail -n4
23213           Report bugs to <bug-coreutils@gnu.org>.
23214           Report Gentoo bugs to <http://bugs.gentoo.org/>.
23215           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
23216           General help using GNU software: <http://www.gnu.org/gethelp/>.
23217         * lib/version-etc.c: Print new information, if provided.
23218         * m4/version-etc.m4: New file.
23219         * modules/version-etc (Files): Add m4/version-etc.m4.
23220         (configure.ac): Add gl_VERSION_ETC.
23221
23222 2009-05-31  Bruno Haible  <bruno@clisp.org>
23223
23224         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
23225         and 'int64_t'.
23226         * modules/alignof-tests (Dependencies): Add stdint.
23227         Reported by Eric Blake.
23228
23229 2009-05-31  Bruno Haible  <bruno@clisp.org>
23230
23231         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
23232         restriction due to compiler bugs.
23233         Reported by Eric Blake.
23234
23235 2009-05-31  Simon Josefsson  <simon@josefsson.org>
23236             Bruno Haible  <bruno@clisp.org>
23237
23238         Fix test-alignof failure.
23239         * lib/alignof.h (alignof_slot): New macro.
23240         (alignof_type): New macro, with the same semantics as the previous
23241         'alignof'.
23242         (alignof): Alias to alignof_slot.
23243         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
23244         check that the results are usable as constant expressions.
23245
23246 2009-05-31  Bruno Haible  <bruno@clisp.org>
23247
23248         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
23249         * tests/test-memchr.c (main): Check that memchr does not read past the
23250         first occurrence of the byte.
23251         * tests/test-strstr.c (main): Update comment.
23252         Suggested by Eric Blake.
23253
23254 2009-05-30  Bruno Haible  <bruno@clisp.org>
23255
23256         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
23257         detail how to use dumpbin.
23258         Reported by David Byron <dbyron@dbyron.com>.
23259
23260 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23261
23262         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
23263
23264 2009-06-02  Simon Josefsson  <simon@josefsson.org>
23265
23266         * m4/manywarnings.m4: Add GCC 4.4 warnings.
23267
23268 2009-05-28  Bruno Haible  <bruno@clisp.org>
23269
23270         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
23271         build-aux/ files.
23272
23273 2009-05-28  Simon Josefsson  <simon@josefsson.org>
23274
23275         * gnulib-tool (func_import): Transform license on build-aux/ files too.
23276
23277 2009-05-27  Simon Josefsson  <simon@josefsson.org>
23278
23279         * gnulib-tool (sed_transform_main_lib_file)
23280         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23281         regexps.
23282
23283 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23284
23285         * tests/test-strstr.c: Add another self-test.
23286         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23287         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23288
23289 2009-05-23  Bruno Haible  <bruno@clisp.org>
23290
23291         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23292         change.
23293
23294 2009-05-21  Bruno Haible  <bruno@clisp.org>
23295
23296         Simplify use of mode_t varargs.
23297         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23298         uses 'mode_t' or 'int'.
23299         * lib/openat.c (openat): Likewise.
23300         * lib/open-safer.c (open_safer): Likewise.
23301         * m4/mode_t.m4: New file.
23302         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23303         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23304         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23305         * modules/open (Files): Add m4/mode_t.m4.
23306         * modules/openat (Files): Likewise.
23307         * modules/fcntl-safer (Files): Likewise.
23308         Suggested by Eric Blake.
23309
23310 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23311
23312         * doc/glibc-functions/fallocate.texi: New file.
23313         * doc/gnulib.texi: Include it.
23314
23315 2009-05-21  Eric Blake  <ebb9@byu.net>
23316             Bruno Haible  <bruno@clisp.org>
23317
23318         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23319         invocations.
23320         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23321
23322 2009-05-21  Eric Blake  <ebb9@byu.net>
23323             Bruno Haible  <bruno@clisp.org>
23324
23325         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23326         include_next. Fix of 2008-11-20 commit.
23327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23328         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23329         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23330         NEXT_MATH_H.
23331         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23332         instead of NEXT_MATH_H.
23333
23334 2009-05-21  Bruno Haible  <bruno@clisp.org>
23335
23336         Avoid redefinition warnings for SIZE_MAX.
23337         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23338         Reported by Simon Josefsson.
23339
23340 2009-05-21  Bruno Haible  <bruno@clisp.org>
23341
23342         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23343         AC_CACHE_VAL.
23344
23345 2009-05-20  Bruno Haible  <bruno@clisp.org>
23346
23347         Make zeroptr.h work on mingw.
23348         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23349         mprotect.
23350         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23351         * modules/memchr2-tests (configure.ac): Likewise.
23352         * modules/memcmp-tests (configure.ac): Likewise.
23353         * modules/memmem-tests (configure.ac): Likewise.
23354         * modules/memrchr-tests (configure.ac): Likewise.
23355         Reported by Simon Josefsson.
23356
23357 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23358
23359         * tests/test-glob.c: Include string.h for strcmp prototype.
23360
23361 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23362
23363         * modules/getdelim (Depends-on): Add explicit stdint, although it
23364         was implicitly already pulled in via realloc-posix.
23365         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23366
23367 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23368
23369         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23370         G. Christensen" <tgc@jupiterrise.com>.
23371         * m4/sys_socket_h.m4: Check for sa_family_t.
23372         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23373         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23374         * tests/test-sys_socket.c: Check that sa_family_t works.
23375
23376 2009-05-18  Eric Blake  <ebb9@byu.net>
23377
23378         maint.mk: allow gnulib_dir in VPATH build
23379         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23380
23381 2009-05-15  Jim Meyering  <meyering@redhat.com>
23382
23383         maint.mk: Give gnulib_dir a default definition.
23384         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23385         Thus, most packages no longer need to specify this variable in cfg.mk
23386
23387 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23388
23389         rename.m4: fix typos that would make non-mingw cross-configure fail
23390         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23391
23392 2009-05-13  Eric Blake  <ebb9@byu.net>
23393
23394         mmap-anon: avoid out-of-order autoconf expansion
23395         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23396         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23397         * modules/memchr-tests (Depends-on): Add extensions.
23398         * modules/memchr2-tests (Depends-on): Add extensions.
23399         * modules/memcmp-tests (Depends-on): Add extensions.
23400         * modules/memmem-tests (Depends-on): Add extensions.
23401         * modules/memrchr-tests (Depends-on): Add extensions.
23402
23403 2009-05-13  Bruno Haible  <bruno@clisp.org>
23404
23405         Make some tests ISO C 99 compliant.
23406         * tests/zerosize-ptr.h: New file.
23407         * tests/test-memchr.c: Include zerosize-ptr.h.
23408         (main): Use a zero-size object pointer instead of NULL.
23409         * tests/test-memchr2.c: Include zerosize-ptr.h.
23410         (main): Use a zero-size object pointer instead of NULL.
23411         * tests/test-memcmp.c: Include zerosize-ptr.h.
23412         (main): Use a zero-size object pointer instead of NULL.
23413         * tests/test-memmem.c: Include zerosize-ptr.h.
23414         (main): Use a zero-size object pointer instead of NULL.
23415         * tests/test-memrchr.c: Include zerosize-ptr.h.
23416         (main): Use a zero-size object pointer instead of NULL.
23417         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23418         m4/mmap-anon.m4.
23419         (Depends-on): Add getpagesize.
23420         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23421         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23422         m4/mmap-anon.m4.
23423         (Depends-on): Add getpagesize.
23424         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23425         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23426         m4/mmap-anon.m4.
23427         (Depends-on): Add getpagesize.
23428         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23429         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23430         m4/mmap-anon.m4.
23431         (Depends-on): Add getpagesize.
23432         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23433         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23434         m4/mmap-anon.m4.
23435         (Depends-on): Add getpagesize.
23436         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23437
23438 2009-05-12  Bruno Haible  <bruno@clisp.org>
23439
23440         Tests for module 'alignof'.
23441         * modules/alignof-tests: New file.
23442         * tests/test-alignof.c: New file.
23443
23444 2009-05-12  Bruno Haible  <bruno@clisp.org>
23445
23446         Fix alignof macro.
23447         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23448         vendor compilers that are always correct.
23449
23450 2009-05-12  Bruno Haible  <bruno@clisp.org>
23451
23452         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23453         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23454         not whether its fully works.
23455
23456 2009-05-12  Bruno Haible  <bruno@clisp.org>
23457
23458         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23459
23460 2009-05-12  Jim Meyering  <meyering@redhat.com>
23461
23462         * top/maint.mk: Adjust backslash alignment.
23463
23464 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23465
23466         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23467
23468 2009-05-11  Eric Blake  <ebb9@byu.net>
23469
23470         argp: avoid undefined behavior
23471         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23472         macros.
23473
23474 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23475
23476         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23477         user.name to prevent git commit from complaining.
23478
23479 2009-05-10  Bruno Haible  <bruno@clisp.org>
23480
23481         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23482         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23483         it rewrites every file name only once.
23484         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23485
23486 2009-05-08  Bruno Haible  <bruno@clisp.org>
23487
23488         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23489         instead of 'max'.
23490
23491 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23492
23493         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23494         sockaddr_storage test.
23495
23496 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23497
23498         * modules/sys_socket (Makefile.am): Substitute
23499         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23500         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23501         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23502         * tests/test-sys_socket.c: Check sockaddr_storage.
23503
23504 2009-05-08  Bruno Haible  <bruno@clisp.org>
23505
23506         New module 'alignof'.
23507         * lib/alignof.h: New file.
23508         * modules/alignof: New file.
23509
23510 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23511             Bruno Haible  <bruno@clisp.org>
23512
23513         Fix test-file-has-acl on FreeBSD.
23514         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23515         mask is implicitly added.
23516         * tests/test-file-has-acl.c: Include <signal.h>.
23517         (main): Terminate the test after 5 seconds.
23518         * modules/acl-tests (configure.ac): Check for alarm function.
23519
23520 2009-05-04  Bruno Haible  <bruno@clisp.org>
23521
23522         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23523         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23524         * modules/errno (configure.ac): Drop AC_REQUIRE.
23525         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23526         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23527
23528 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23529
23530         * modules/glob-tests: New module.
23531         * tests/test-glob.c: Add.
23532
23533 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23534
23535         * modules/fnmatch-tests: New module.
23536         * tests/test-fnmatch.c: Add.
23537
23538 2009-05-04  Eric Blake  <ebb9@byu.net>
23539
23540         maint: make the new no-submodule-changes rule VPATH-safe
23541         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23542
23543 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23544             Bruno Haible  <bruno@clisp.org>
23545
23546         acl: Fix infinite loop on FreeBSD.
23547         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23548         of return value from acl_get_entry.
23549         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23550         Likewise.
23551
23552 2009-05-03  Bruno Haible  <bruno@clisp.org>
23553
23554         * lib/acl-internal.h (acl_entries): Clarify return value.
23555         * lib/acl_entries.c (acl_entries): Likewise.
23556
23557 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23558
23559         Bug fix in acl module.
23560         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23561
23562 2009-05-03  Bruno Haible  <bruno@clisp.org>
23563
23564         Create gperf-generated file in the source dir, not in the build dir.
23565         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23566         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23567         * modules/unicase/locale-language (unicase/locale-languages.h):
23568         Likewise.
23569         * modules/unicase/special-casing (unicase/special-casing-table.h):
23570         Likewise.
23571         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23572         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23573         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23574         Reported by Ralf Wildenhues.
23575
23576 2009-05-03  Bruno Haible  <bruno@clisp.org>
23577
23578         * modules/fnmatch (Description, configure.ac): Taken from
23579         fnmatch-posix.
23580         * modules/fnmatch-posix: Turn into a symbolic reference to the
23581         'fnmatch' module, and deprecate.
23582         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23583
23584 2009-05-03  Bruno Haible  <bruno@clisp.org>
23585
23586         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23587         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23588         Reported by Ralf Wildenhues.
23589
23590 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23591
23592         * m4/fnmatch.m4: Fix fnmatch re-define.
23593
23594 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23595
23596         priv-set: new module and tests; adapt write-any-file
23597         * lib/priv-set.c: New file.
23598         * lib/priv-set.h: New file.
23599         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23600         * lib/write-any-file.c: Simplify by using priv-set module.
23601         * m4/priv-set.m4: New file.
23602         * modules/priv-set: New file.
23603         * modules/unlinkdir: Add dependency on priv-set module.
23604         * modules/write-any-file: Likewise.
23605
23606         Tests for module 'priv-set'.
23607         * modules/priv-set-tests: New file.
23608         * tests/test-priv-set.c: New file.
23609
23610 2009-05-03  Jim Meyering  <meyering@redhat.com>
23611             Bruno Haible  <bruno@clisp.org>
23612
23613         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23614         use the converted UTF-8 variant of the name instead.
23615
23616 2009-05-03  Jim Meyering  <meyering@redhat.com>
23617
23618         tests: tighten some getdate tests
23619         * tests/test-getdate.c (main): Tighten tests: require equality,
23620         not just greater than.  Set TZ envvar to UTC0.
23621
23622 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23623
23624         getdate: correctly interpret "next monday" when run on a Monday
23625         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23626         that e.g., "next tues" (when run on a tuesday) results in a date
23627         that is one week in the future, and not today's date.
23628         I.e., add a week when the wday is the same as the current one.
23629         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23630         and earlier by Martin Bernreuther and Jan Minář.
23631         * tests/test-getdate.c (main): Check that "next DAY" is always in
23632         the future and that "last DAY" is always in the past.
23633
23634 2009-05-02  Jim Meyering  <meyering@redhat.com>
23635
23636         build: ensure that a release build fails when a submodule is unclean
23637         * top/maint.mk (no-submodule-changes): New rule.
23638         (alpha beta major): Depend on it.
23639
23640 2009-05-02  Bruno Haible  <bruno@clisp.org>
23641
23642         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23643         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23644         shell variable gl_fnmatch_required to detect which variant is
23645         requested.
23646         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23647         gl_FUNC_FNMATCH_POSIX.
23648         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23649         exclude fnmatch-posix.
23650
23651 2009-05-02  Bruno Haible  <bruno@clisp.org>
23652
23653         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23654         * modules/mbsrtowcs (License): Change to LGPLv2+.
23655         * modules/strnlen1 (License): Likewise.
23656         Reported by Simon Josefsson.
23657
23658 2009-05-02  Bruno Haible  <bruno@clisp.org>
23659
23660         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23661         "cross".
23662         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23663         gnulib-tool was called with option --source-base=lib.
23664
23665 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23666
23667         Use automake *-local hooks without commands, for extensibility.
23668         * modules/localcharset (Makefile.am): Rename install-exec-local
23669         rule to install-exec-localcharset, and make it a prerequisite of
23670         install-exec-local.  Likewise, rename the uninstall-local rule to
23671         uninstall-localcharset, and make it a prerequisite of the former.
23672
23673 2009-05-01  Bruno Haible  <bruno@clisp.org>
23674
23675         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23676         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23677         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23679         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23680         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23681         m4/locale-zh.m4, m4/codeset.m4.
23682
23683         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23684         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23685         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23686         m4/locale-zh.m4.
23687
23688         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23689         REPLACE_WCRTOMB if mbstate_t must be replaced.
23690         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23691         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23692
23693 2009-05-01  Bruno Haible  <bruno@clisp.org>
23694
23695         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23696         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23697         dngettext, dcngettext, textdomain, bindtextdomain,
23698         bind_textdomain_codeset): Undefine before redefining.
23699
23700 2009-04-30  Bruno Haible  <bruno@clisp.org>
23701
23702         Fix bug introduced on 2009-04-25.
23703         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23704         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23705         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23706         is defined.
23707         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23708         is defined.
23709         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23710         is defined.
23711         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23712
23713 2009-04-28  Bruno Haible  <bruno@clisp.org>
23714
23715         Comment tweaks.
23716         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23717         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23718         * lib/unicase.h (u*_casexfrm): Likewise.
23719         Reported by Paolo Bonzini.
23720
23721 2009-04-28  Bruno Haible  <bruno@clisp.org>
23722
23723         Fix a compilation error.
23724         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23725         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23726         Reported by Jim Meyering.
23727
23728 2009-04-27  Bruno Haible  <bruno@clisp.org>
23729
23730         New module 'libunistring'.
23731         * modules/libunistring: New file.
23732         * m4/libunistring.m4: New file.
23733         * MODULES.html.sh (Unicode string functions): Add it.
23734
23735 2009-04-27  Eric Blake  <ebb9@byu.net>
23736
23737         maint.mk: allow package-specific header to provide <config.h>
23738         * top/maint.mk (sc_require_config_h): New variable.
23739         (sc_require_config_h, sc_require_config_h_first): Use it.
23740
23741 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23742
23743         * top/maint.mk (sc_avoid_if_before_free): Except
23744         useless-if-before-free script.
23745
23746 2009-04-27  Eric Blake  <ebb9@byu.net>
23747
23748         maintainer-makefile: depend on all required helper scripts
23749         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23750         useless-if-before-free.
23751         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23752         version, rather than assuming gnulib checkout is available.
23753         Reported by Simen Josefsson.
23754
23755 2009-04-26  Bruno Haible  <bruno@clisp.org>
23756
23757         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23758         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23759         "../" or "..".
23760
23761 2009-04-26  Bruno Haible  <bruno@clisp.org>
23762
23763         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23764         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23765         AC_LIB_HAVE_LINKFLAGS.
23766
23767 2009-04-26  Bruno Haible  <bruno@clisp.org>
23768
23769         Simplify calling convention of u*_conv_from_encoding.
23770         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23771         u32_conv_from_encoding): Expect a resultbuf argument and return the
23772         result directly as a pointer.
23773         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23774         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23775         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23776         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23777         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23778         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23779         Update.
23780         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23781         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23782         * lib/vasnprintf.c (VASNPRINTF): Update.
23783         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23784         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23785         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23786         * NEWS: Mention the change.
23787
23788 2009-04-26  Bruno Haible  <bruno@clisp.org>
23789
23790         Simplify calling convention of u*_conv_to_encoding.
23791         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23792         u32_conv_to_encoding): Expect a resultbuf argument and return the
23793         result directly as a pointer.
23794         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23795         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23796         freeing scaled_offsets if mem_iconveha failed.
23797         * lib/unicase/u-casexfrm.h (FUNC): Update.
23798         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23799         * lib/vasnprintf.c (VASNPRINTF): Update.
23800         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23801         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23802         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23803         * NEWS: Mention the change.
23804
23805 2009-04-26  Bruno Haible  <bruno@clisp.org>
23806
23807         Avoid test failures on AIX and OSF/1.
23808         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23809         malloc(0).
23810         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23811         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23812         Likewise.
23813         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23814         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23815         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23816         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23817         * doc/posix-functions/malloc.texi: Document the portability problem
23818         related to malloc(0).
23819
23820 2009-04-26  Bruno Haible  <bruno@clisp.org>
23821
23822         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23823         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23824         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23825
23826 2009-04-25  Bruno Haible  <bruno@clisp.org>
23827
23828         Avoid link error when creating a namespace clean library.
23829         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23830         as macro with arguments if already defined as an alias.
23831         * lib/signbitf.c (gl_signbitf): Don't undefine.
23832         * lib/signbitd.c (gl_signbitd): Don't undefine.
23833         * lib/signbitl.c (gl_signbitl): Don't undefine.
23834
23835 2009-04-25  Jim Meyering  <meyering@redhat.com>
23836
23837         vc-list-files: fix another quoting bug
23838         * build-aux/vc-list-files: Avoid sed backslash expansion
23839         of pathological directory names.
23840
23841 2009-04-25  Eric Blake  <ebb9@byu.net>
23842
23843         vc-list-files: fix shell quoting error
23844         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23845         timestamp.
23846
23847 2009-04-25  Jim Meyering  <meyering@redhat.com>
23848
23849         vc-list-files: restore lost functionality with subdir argument
23850         * build-aux/vc-list-files: When given a non-"." sub-directory
23851         argument, substitute the $dir/ prefix back onto each resulting name.
23852         Otherwise, coreutils' root_tests check would fail.
23853
23854 2009-04-24  Eric Blake  <ebb9@byu.net>
23855
23856         vc-list-files: ignore git symlinks
23857         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23858         than ls-files, to ignore git symlinks.
23859
23860         maint.mk: import improvements from m4
23861         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23862         (move_if_change): Delete unused macro.
23863         (news-date-check, vc-diff-check): Support VPATH builds.
23864         (announcement): Likewise.  Split --bootstrap-tools list...
23865         (boostrap-tools): ...into separate list, which can be overridden
23866         in cfg.mk.
23867         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23868         requiring dependency on useless-if-before-free module.
23869         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23870         Support VPATH builds.
23871
23872 2009-04-24  Jim Meyering  <meyering@redhat.com>
23873
23874         maint.mk: remove coreutils-specific rules and variables
23875         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23876         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23877         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23878
23879         maint.mk: remove obsolete rule
23880         * top/maint.mk (rel-check): Remove rule.
23881         (WGET, WGETFLAGS): Remove now-unused variables.
23882
23883 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23884
23885         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23886         consistency.
23887
23888         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23889         '$(PATH_SEPARATOR)' instead of ':'.
23890
23891 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23892
23893         * lib/getopt1.c (main): Use 'const' for static array.
23894
23895 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23896
23897         * top/maint.mk: Sync with coreutils.
23898         * NEWS: Explain incompatibilities.
23899
23900 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23901             Bruno Haible  <bruno@clisp.org>
23902
23903         Fix cross-compilation results.
23904         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23905         statement, as third argument of AC_TRY_RUN.
23906         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23907         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23908         Likewise.
23909         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23910         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23911         Likewise.
23912         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23913         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23914         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23915
23916 2009-04-20  Bruno Haible  <bruno@clisp.org>
23917
23918         Avoid test failure on mingw.
23919         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23920
23921 2009-04-20  Bruno Haible  <bruno@clisp.org>
23922
23923         Avoid compilation error on mingw.
23924         * modules/localename-tests (Depends-on): Add locale.
23925
23926 2009-04-19  Bruno Haible  <bruno@clisp.org>
23927
23928         Support for building a shared library on Windows platforms.
23929         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23930         (main): Test the presence of UNINORM_NFC here.
23931         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23932         (main): Test the presence of UNINORM_NFD here.
23933         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23934         (main): Test the presence of UNINORM_NFKC here.
23935         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23936         (main): Test the presence of UNINORM_NFKD here.
23937
23938 2009-04-19  Bruno Haible  <bruno@clisp.org>
23939
23940         Avoid a compiler warning.
23941         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23942         Change type of variable 'sequence'.
23943
23944 2009-04-19  Bruno Haible  <bruno@clisp.org>
23945
23946         * modules/configmake (Makefile.am): When the contents of configmake.h
23947         does not change, arrange to preserve its modification time.
23948
23949 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23950
23951         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23952         gettext domain.
23953
23954 2009-04-16  Jim Meyering  <meyering@redhat.com>
23955
23956         useless-if-before-free: improve conversion code
23957         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23958         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23959
23960 2009-04-14  Bruno Haible  <bruno@clisp.org>
23961
23962         * modules/fcntl (Depends-on): Add extensions.
23963         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23964
23965 2009-04-12  Ben Pfaff  <blp@gnu.org>
23966
23967         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23968         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23969
23970 2009-03-20  Ben Pfaff  <blp@gnu.org>
23971
23972         Make rename replace existing destinations on Windows.
23973         * m4/rename.m4: Add test for Mingw.
23974         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23975         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23976         * doc/posix-functions/rename.texi: Document.
23977
23978 2009-04-10  Bruno Haible  <bruno@clisp.org>
23979
23980         New include file "iconveh.h".
23981         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23982         * lib/striconveh.h: Include it.
23983         (enum iconv_ilseq_handler): Remove definition.
23984         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23985         striconveh.h.
23986         * lib/striconveha.c: Include striconveh.h.
23987         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23988         * modules/striconveh (Files): Add lib/iconveh.h.
23989         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23990         lib/striconveh.h.
23991
23992 2009-04-10  Bruno Haible  <bruno@clisp.org>
23993
23994         * lib/uniconv.h: Update comment.
23995
23996 2009-04-10  Bruno Haible  <bruno@clisp.org>
23997
23998         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23999         always.
24000         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24001         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24002         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24003         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
24004         "unistring-notinline.h", so that the function gets defined always.
24005         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24006         * lib/unistr/u8-uctomb.c: Likewise.
24007         * lib/unistr/u16-mbtouc.c: Likewise.
24008         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24009         * lib/unistr/u16-uctomb.c: Likewise.
24010         * lib/unistr/u32-mbtouc.c: Likewise.
24011         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24012         * lib/unistr/u32-uctomb.c: Likewise.
24013
24014 2009-04-10  Bruno Haible  <bruno@clisp.org>
24015
24016         Mark 'utime' obsolete.
24017         * modules/utime (Status, Notice): New sections.
24018         Suggested by Jim Meyering.
24019
24020         Fix cross-compile guess for utime test.
24021         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
24022         autoconf.
24023         * doc/posix-functions/utime.texi: Give more precisions.
24024         Reported by Jan <ipif@ymail.com>.
24025
24026 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
24027
24028         filevercmp: correct today's change
24029         * lib/filevercmp.c: Also handle coreutils' test inputs.
24030         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
24031
24032         Fix regression in 'filevercmp' module. Thanks Sven Joachim
24033         for reporting it.
24034         * lib/filevercmp.c: Special handle for "", "." and "..".
24035         * tests/test-filevercmp.c: Enlarge the set suite.
24036
24037 2009-04-07  Jim Meyering  <meyering@redhat.com>
24038
24039         useless-if-before-free: show how to remove braced useless free, too
24040         * build-aux/useless-if-before-free: still only in a comment, though.
24041
24042 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
24043
24044         maint.mk: import changes to syntax-check macros from coreutils
24045         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
24046         Use them in the relevant macros.
24047
24048 2009-04-06  Bruno Haible  <bruno@clisp.org>
24049
24050         Fix unportable use of bit-fields.
24051         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
24052         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
24053         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
24054
24055 2009-04-06  Bruno Haible  <bruno@clisp.org>
24056
24057         Avoid test failures on AIX and OSF/1.
24058         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
24059         that malloc(0) = NULL.
24060         * tests/unicase/test-u8-tolower.c (check): Likewise.
24061         * tests/unicase/test-u8-totitle.c (check): Likewise.
24062         * tests/unicase/test-u8-toupper.c (check): Likewise.
24063         * tests/unicase/test-u16-casefold.c (check): Likewise.
24064         * tests/unicase/test-u16-tolower.c (check): Likewise.
24065         * tests/unicase/test-u16-totitle.c (check): Likewise.
24066         * tests/unicase/test-u16-toupper.c (check): Likewise.
24067         * tests/unicase/test-u32-casefold.c (check): Likewise.
24068         * tests/unicase/test-u32-tolower.c (check): Likewise.
24069         * tests/unicase/test-u32-totitle.c (check): Likewise.
24070         * tests/unicase/test-u32-toupper.c (check): Likewise.
24071         * tests/uninorm/test-u8-nfc.c (check): Likewise.
24072         * tests/uninorm/test-u8-nfd.c (check): Likewise.
24073         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
24074         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
24075         * tests/uninorm/test-u16-nfc.c (check): Likewise.
24076         * tests/uninorm/test-u16-nfd.c (check): Likewise.
24077         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
24078         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
24079         * tests/uninorm/test-u32-nfc.c (check): Likewise.
24080         * tests/uninorm/test-u32-nfd.c (check): Likewise.
24081         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
24082         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
24083
24084 2009-04-05  Bruno Haible  <bruno@clisp.org>
24085
24086         Work around an autoconf limitation.
24087         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
24088         comment line if it would be longer than 3 KB.
24089
24090 2009-04-05  Bruno Haible  <bruno@clisp.org>
24091
24092         Avoid test failure with libiconv-1.13.
24093         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
24094         of the expected test results.
24095
24096 2009-04-05  Bruno Haible  <bruno@clisp.org>
24097
24098         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
24099         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
24100         that it should be installed.
24101
24102 2009-04-05  Bruno Haible  <bruno@clisp.org>
24103
24104         * gnulib-tool: New option --copy-file.
24105         (func_usage): Document it.
24106         (func_dest_tmpfilename): Moved out of func_import.
24107         (func_add_file, func_update_file): New functions, extracted from
24108         func_import.
24109         (func_import): Update.
24110
24111 2009-04-05  Karl Berry  <karl@gnu.org>
24112
24113         * README: prominently mention gnulib-tool.
24114         Rearrange sections so getting the code is near the top.
24115
24116 2009-04-05  Bruno Haible  <bruno@clisp.org>
24117
24118         * lib/unicase.h: Mention u*_cmp2.
24119         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24120         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
24121         * lib/unicase/ulc-casecmp.c: Likewise.
24122         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
24123         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
24124         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
24125         unistr/u8-cmp.
24126         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
24127         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
24128         unistr/u16-cmp.
24129         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
24130         unistr/u32-cmp.
24131
24132         * lib/uninorm.h: Mention u*_cmp2.
24133         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
24134         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
24135         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
24136         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
24137         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
24138         unistr/u8-cmp.
24139         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
24140         unistr/u16-cmp.
24141         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
24142         unistr/u32-cmp.
24143
24144         New module 'unistr/u32-cmp2'.
24145         * lib/unistr/u32-cmp2.c: New file.
24146         * modules/unistr/u32-cmp2: New file.
24147
24148         New module 'unistr/u16-cmp2'.
24149         * lib/unistr/u16-cmp2.c: New file.
24150         * modules/unistr/u16-cmp2: New file.
24151
24152         New module 'unistr/u8-cmp2'.
24153         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
24154         * lib/unistr/u8-cmp2.c: New file.
24155         * lib/unistr/u-cmp2.h: New file.
24156         * modules/unistr/u8-cmp2: New file.
24157
24158 2009-04-05  Bruno Haible  <bruno@clisp.org>
24159
24160         * lib/unictype.h (uc_property_is_valid): New macro.
24161         * tests/unictype/test-pr_byname.c (main): Use it.
24162
24163         * lib/unistr.h: Doc fixes.
24164         * lib/uniconv.h: Doc fixes.
24165         * lib/unictype.h: Doc fixes.
24166
24167 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         Port coreutils 7.2 to Solaris 8.
24170
24171         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
24172         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
24173         for Solaris 8.  This is a bit of a hack, as it means it's the
24174         caller's responsibility to add -lnsl if needed, but most likely it
24175         won't be needed since only getaddrinfo uses this and getaddrinfo
24176         isn't needed on Solaris 8.
24177
24178         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
24179         problem to Solaris 8 encountered with coreutils 7.2, which
24180         resulted in a message "fnmatch.c:292: warning: passing argument 4
24181         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
24182         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
24183
24184 2009-04-03  Simon Josefsson  <simon@josefsson.org>
24185
24186         * m4/ld-version-script.m4: Add FIXME comment.
24187
24188 2009-04-02  Simon Josefsson  <simon@josefsson.org>
24189
24190         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
24191         SOVERSION variable.
24192
24193 2009-04-02  Bruno Haible  <bruno@clisp.org>
24194
24195         * Makefile (info, html, dvi, pdf): Combine the rules.
24196         Suggested by Jim Meyering.
24197
24198 2009-04-01  Bruno Haible  <bruno@clisp.org>
24199
24200         * Makefile (info, html, dvi, pdf): New targets.
24201         Reported by Reuben Thomas <rrt@sc3d.org>.
24202
24203 2009-04-01  Bruno Haible  <bruno@clisp.org>
24204
24205         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
24206         can be put into PATH.
24207         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
24208
24209 2009-04-01  Bruno Haible  <bruno@clisp.org>
24210
24211         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
24212
24213 2009-04-01  Bruno Haible  <bruno@clisp.org>
24214
24215         Rename module 'visibility'.
24216         * modules/lib-symbol-visibility: Renamed from modules/visibility.
24217         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
24218         * doc/gnulib.texi: Update.
24219         * MODULES.html.sh (Misc): Update.
24220         * NEWS: Mention the change.
24221
24222 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24223
24224         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
24225         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
24226         Eric Blake <ebb9@byu.net> for review.
24227         * MODULES.html.sh: Add lib-msvc-compat.
24228         * doc/gnulib.texi: Link to new section.
24229         * m4/ld-output-def.m4: New file.
24230         * doc/ld-output-def.texi: New file.
24231
24232 2009-04-01  Simon Josefsson  <simon@josefsson.org>
24233
24234         Rename ld-version-script to lib-symbol-versions.  Suggested by
24235         Bruno Haible <bruno@clisp.org>.
24236         * modules/ld-version-script: Renamed to lib-symbol-versions.
24237         * doc/ld-version-script.texi: Fix module name.
24238         * MODULES.html.sh: Add lib-symbol-versions.
24239
24240 2009-03-31  Simon Josefsson  <simon@josefsson.org>
24241
24242         * modules/u64-tests: New file.
24243         * tests/test-u64.c: New file.
24244
24245 2009-03-04  Simon Josefsson  <simon@josefsson.org>
24246
24247         * MODULES.html.sh: Mention u64.
24248         * modules/u64: New module.
24249         * modules/crypto/sha512: Depend on u64 module instead of providing
24250         u64.h.
24251
24252 2009-03-27  Eric Blake  <ebb9@byu.net>
24253
24254         test-strerror: make debugging EAI_SYSTEM easier
24255         * modules/getaddrinfo-tests (Depends-on): Add strerror.
24256         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
24257         failure was EAI_SYSTEM.
24258
24259 2009-03-25  Bruno Haible  <bruno@clisp.org>
24260
24261         Fix a problem with --enable-relocatable on Solaris 7.
24262         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
24263         since 2008-02-24.
24264
24265 2009-03-25  Eric Blake  <ebb9@byu.net>
24266
24267         test-sockets: avoid gcc warning
24268         * tests/test-sockets.c (main): Silence compiler warning.
24269
24270 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24271
24272         New modules nproc, pthread, contributed by Glen Lenker.
24273
24274         * MODULES.html.sh: Add pthread, nproc.
24275         * lib/nproc.c: New file.
24276         * lib/nproc.h: New file.
24277         * lib/pthread.in.h: New file.
24278         * m4/pthread.m4: New file.
24279         * modules/nproc: New file.
24280         * modules/pthread: New file.
24281
24282 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24283
24284         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24285         New variable.
24286
24287 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24288
24289         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24290         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24291         * tests/test-filevercmp.c: Add tests for backup suffixes.
24292
24293 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24294
24295         * modules/stdlib (Depends-on): Add stdint, needed when defining
24296         struct random_data on, for example, HP-UX 10.20.  Reported by
24297         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24298
24299 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24300
24301         * lib/readline.c (readline): Call fflush on stdout after printing
24302         prompt.
24303
24304 2009-03-20  Bruno Haible  <bruno@clisp.org>
24305
24306         Remove dependency from 'close' module to -lws2_32 on native Windows.
24307         * lib/close-hook.h: New file.
24308         * lib/close-hook.c: New file.
24309         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24310         w32sock.h.
24311         (_gl_close_fd_maybe_socket): Remove function.
24312         (rpl_close): Invoke execute_all_close_hooks instead of
24313         _gl_close_fd_maybe_socket.
24314         * lib/sockets.c: Include close-hook.h, w32sock.h.
24315         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24316         (close_sockets_hook): New variable.
24317         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24318         (gl_sockets_cleanup): Unregister it.
24319         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24320         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24321         * modules/close-hook: New file.
24322         * modules/close (Files): Remove lib/w32sock.h.
24323         (Depends-on): Add close-hook.
24324         (Link): Remove section.
24325         * modules/sockets (Files): Add lib/w32sock.h.
24326         (Depends-on): Add close-hook.
24327         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24328         invocation.
24329         * NEWS: Mention that LIB_CLOSE is gone.
24330
24331 2009-03-23  Eric Blake  <ebb9@byu.net>
24332
24333         signal-tests: test previous patch
24334         * tests/test-signal.c: New file.
24335         * modules/signal-tests: Likewise.
24336
24337         signal.h: always support 'volatile sig_atomic_t'
24338         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24339         (gl_SIGNAL_H_DEFAULTS): Add a default.
24340         * modules/signal (Makefile.am): Substitute if needed.
24341         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24342         users can blindly add volatile.
24343         * doc/posix-headers/signal.texi (signal.h): Document it.
24344         Reported by Matthew Woehlke.
24345
24346 2009-03-23  Jim Meyering  <meyering@redhat.com>
24347
24348         pathmax: PATH_MAX: use pathconf only when available
24349         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24350         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24351         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24352         This avoids a link failure in a PSP cross-compilation environment
24353         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24354
24355         * lib/vasnprintf.c (divide): Fix typo in comment.
24356
24357 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24358
24359         * gnulib-tool (func_filter_filelist): Fix comment.
24360
24361 2009-03-20  Bruno Haible  <bruno@clisp.org>
24362
24363         Make sockets.h self-contained.
24364         * lib/sockets.c: Include sockets.h first.
24365         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24366
24367 2009-03-19  Eric Blake  <ebb9@byu.net>
24368
24369         doc: mention more functions added in cygwin 1.7.0
24370         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24371         addition.
24372         * doc/posix-functions/log2f.texi: Likewise.
24373
24374 2009-03-19  Jim Meyering  <meyering@redhat.com>
24375
24376         fsusage: avoid syntax error due to statement-before-declaration
24377         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24378         after all declarations.  Reported by Matthew Woehlke in
24379         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24380
24381 2009-03-18  Eric Blake  <ebb9@byu.net>
24382
24383         build-aux/compile: sync from automake
24384         * build-aux/compile: New file, from automake.
24385         * config/srclist.txt: Mention build-aux/compile.
24386
24387 2009-03-17  Bruno Haible  <bruno@clisp.org>
24388
24389         * lib/git-merge-changelog.c: Fix typo in comment.
24390         Reported by Reuben Thomas <rrt@sc3d.org>.
24391
24392 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24393
24394         * m4/regex.m4: update and improve help for
24395         --without-included-regex.
24396
24397 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24398
24399         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24400         failure on missing include files.
24401
24402 2009-03-17  Eric Blake  <ebb9@byu.net>
24403
24404         doc: mention more functions added in cygwin 1.7.0
24405         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24406         addition.
24407         * doc/posix-functions/fwscanf.texi: Likewise.
24408         * doc/posix-functions/swprintf.texi: Likewise.
24409         * doc/posix-functions/swscanf.texi: Likewise.
24410         * doc/posix-functions/vfwprintf.texi: Likewise.
24411         * doc/posix-functions/vfwscanf.texi: Likewise.
24412         * doc/posix-functions/vswprintf.texi: Likewise.
24413         * doc/posix-functions/vswscanf.texi: Likewise.
24414         * doc/posix-functions/vwprintf.texi: Likewise.
24415         * doc/posix-functions/vwscanf.texi: Likewise.
24416         * doc/posix-functions/wcscasecmp.texi: Likewise.
24417         * doc/posix-functions/wcsdup.texi: Likewise.
24418         * doc/posix-functions/wcsftime.texi: Likewise.
24419         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24420         * doc/posix-functions/wprintf.texi: Likewise.
24421         * doc/posix-functions/wscanf.texi: Likewise.
24422         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24423
24424 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24425
24426         maint.mk: really add $(AM_MAKEFLAGS)
24427         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24428         was inadvertently omitted in the last commit.
24429         Spotted by Bruno Haible.
24430
24431         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24432         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24433         $(AM_MAKEFLAGS)' rather than plain `make'.
24434
24435         gnulib-tool: execute $MAKE not make
24436         * gnulib-tool: Default $MAKE to 'make'.
24437         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24438         than make.  Initialize $MAKE in the do-autobuild script.
24439
24440         gnulib-tool: use $MAKE not make in generated files
24441         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24442         make, in generated files.  Initialize $MAKE in the do-autobuild
24443         script.
24444
24445         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24446
24447         GNUmakefile: disable parallelism only for multiple, recursive targets
24448         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24449         additions in the Makefile.
24450         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24451         by Automake.
24452         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24453         are listed on the command line and at least one of them is
24454         listed in $(ALL_RECURSIVE_TARGETS).
24455
24456 2009-03-14  Bruno Haible  <bruno@clisp.org>
24457
24458         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24459         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24460         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24461         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24462         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24463         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24464         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24465         unistr/u8-uctomb.
24466         * modules/unistr/u8-strchr (Depends-on): Likewise.
24467         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24468         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24469         unistr/u16-uctomb.
24470         * modules/unistr/u16-strchr (Depends-on): Likewise.
24471         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24472
24473 2009-03-12  Bruno Haible  <bruno@clisp.org>
24474
24475         Work around select() bug on Interix 3.5.
24476         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24477         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24478         * m4/select.m4: New file.
24479         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24480         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24481         * modules/select (Files): Add m4/select.m4.
24482         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24483         * modules/nanosleep (Depends-on): Add select.
24484         * modules/poll (Depends-on): Likewise.
24485         * doc/posix-functions/select.texi: Mention the Interix bug.
24486         Reported by Markus Duft <mduft@gentoo.org>.
24487
24488         * lib/select.c: Renamed from lib/winsock-select.c.
24489         * modules/select (Files): Add lib/select.c, remove
24490         lib/winsock-select.c.
24491         (configure.ac): Update.
24492
24493 2009-03-12  Jim Meyering  <meyering@redhat.com>
24494
24495         avoid gcc warnings about unused macro definitions
24496         * lib/readtokens.c (STREQ): Remove unused definition.
24497         * lib/xmalloc.c (SIZE_MAX): Likewise.
24498         * lib/openat-die.c (N_): Likewise.
24499         * lib/mountlist.c (SIZE_MAX): Remove definition.
24500         Instead, include <stdint.h>.
24501         * lib/readutmp.c: Likewise.
24502         * modules/readutmp (Depends-on): Add stdint.
24503         * modules/mountlist (Depends-on): Add stdint.
24504         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24505
24506 2009-03-10  Bruno Haible  <bruno@clisp.org>
24507
24508         Tests for module 'mbmemcasecoll'.
24509         * modules/mbmemcasecoll-tests: New file.
24510         * tests/test-mbmemcasecoll1.sh: New file.
24511         * tests/test-mbmemcasecoll2.sh: New file.
24512         * tests/test-mbmemcasecoll3.sh: New file.
24513         * tests/test-mbmemcasecoll.c: New file.
24514
24515         New module 'mbmemcasecoll'.
24516         * lib/mbmemcasecoll.h: New file.
24517         * lib/mbmemcasecoll.c: New file.
24518         * modules/mbmemcasecoll: New file.
24519
24520         * tests/test-mbmemcasecmp.h: New file, extracted from
24521         tests/test-mbmemcasecmp.c.
24522         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24523         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24524         (main): Update.
24525         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24526
24527 2009-03-09  Bruno Haible  <bruno@clisp.org>
24528
24529         Tests for module 'mbmemcasecmp'.
24530         * modules/mbmemcasecmp-tests: New file.
24531         * tests/test-mbmemcasecmp1.sh: New file.
24532         * tests/test-mbmemcasecmp2.sh: New file.
24533         * tests/test-mbmemcasecmp3.sh: New file.
24534         * tests/test-mbmemcasecmp.c: New file.
24535
24536         New module 'mbmemcasecmp'.
24537         * lib/mbmemcasecmp.h: New file.
24538         * lib/mbmemcasecmp.c: New file.
24539         * modules/mbmemcasecmp: New file.
24540
24541 2009-03-09  Bruno Haible  <bruno@clisp.org>
24542
24543         Tests for module 'unicase/ulc-casecoll'.
24544         * modules/unicase/ulc-casecoll-tests: New file.
24545         * tests/unicase/test-ulc-casecoll1.sh: New file.
24546         * tests/unicase/test-ulc-casecoll2.sh: New file.
24547         * tests/unicase/test-ulc-casecoll.c: New file.
24548
24549         New module 'unicase/ulc-casecoll'.
24550         * lib/unicase.h (ulc_casecoll): New declaration.
24551         * lib/unicase/ulc-casecoll.c: New file.
24552         * modules/unicase/ulc-casecoll: New file.
24553
24554         New module 'unicase/ulc-casexfrm'.
24555         * lib/unicase.h (ulc_casexfrm): New declaration.
24556         * lib/unicase/ulc-casexfrm.c: New file.
24557         * modules/unicase/ulc-casexfrm: New file.
24558
24559 2009-03-09  Bruno Haible  <bruno@clisp.org>
24560
24561         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24562         invocations.
24563
24564         * m4/mbscasecmp.m4: Remove file.
24565         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24566         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24567
24568         * m4/mbscasestr.m4: Remove file.
24569         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24570         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24571
24572         * m4/mbschr.m4: Remove file.
24573         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24574         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24575
24576         * m4/mbscspn.m4: Remove file.
24577         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24578         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24579
24580         * m4/mbslen.m4: Remove file.
24581         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24582         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24583
24584         * m4/mbsncasecmp.m4: Remove file.
24585         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24586         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24587
24588         * m4/mbsnlen.m4: Remove file.
24589         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24590         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24591
24592         * m4/mbspbrk.m4: Remove file.
24593         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24594         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24595
24596         * m4/mbspcasecmp.m4: Remove file.
24597         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24598         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24599
24600         * m4/mbsrchr.m4: Remove file.
24601         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24602         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24603
24604         * m4/mbssep.m4: Remove file.
24605         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24606         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24607
24608         * m4/mbsspn.m4: Remove file.
24609         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24610         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24611
24612         * m4/mbsstr.m4: Remove file.
24613         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24614         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24615
24616         * m4/mbstok_r.m4: Remove file.
24617         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24618         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24619
24620         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24621
24622         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24623         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24624
24625         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24626
24627 2009-03-08  Bruno Haible  <bruno@clisp.org>
24628
24629         Tests for module 'unicase/ulc-casecmp'.
24630         * modules/unicase/ulc-casecmp-tests: New file.
24631         * tests/unicase/test-ulc-casecmp1.sh: New file.
24632         * tests/unicase/test-ulc-casecmp2.sh: New file.
24633         * tests/unicase/test-ulc-casecmp.c: New file.
24634
24635         New module 'unicase/ulc-casecmp'.
24636         * lib/unicase.h (ulc_casecmp): New declaration.
24637         * lib/unicase/ulc-casecmp.c: New file.
24638         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24639         'const SRC_UNIT *'.
24640         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24641         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24642         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24643         * modules/unicase/ulc-casecmp: New file.
24644
24645         Tests for module 'unicase/u32-is-cased'.
24646         * modules/unicase/u32-is-cased-tests: New file.
24647         * tests/unicase/test-u32-is-cased.c: New file.
24648
24649         Tests for module 'unicase/u16-is-cased'.
24650         * modules/unicase/u16-is-cased-tests: New file.
24651         * tests/unicase/test-u16-is-cased.c: New file.
24652
24653         Tests for module 'unicase/u8-is-cased'.
24654         * modules/unicase/u8-is-cased-tests: New file.
24655         * tests/unicase/test-u8-is-cased.c: New file.
24656         * tests/unicase/test-is-cased.h: New file.
24657
24658         New module 'unicase/u32-is-cased'.
24659         * lib/unicase/u32-is-cased.c: New file.
24660         * modules/unicase/u32-is-cased: New file.
24661
24662         New module 'unicase/u16-is-cased'.
24663         * lib/unicase/u16-is-cased.c: New file.
24664         * modules/unicase/u16-is-cased: New file.
24665
24666         New module 'unicase/u8-is-cased'.
24667         * lib/unicase/u8-is-cased.c: New file.
24668         * lib/unicase/u-is-cased.h: New file.
24669         * modules/unicase/u8-is-cased: New file.
24670
24671         Tests for module 'unicase/u32-is-casefolded'.
24672         * modules/unicase/u32-is-casefolded-tests: New file.
24673         * tests/unicase/test-u32-is-casefolded.c: New file.
24674
24675         Tests for module 'unicase/u16-is-casefolded'.
24676         * modules/unicase/u16-is-casefolded-tests: New file.
24677         * tests/unicase/test-u16-is-casefolded.c: New file.
24678
24679         Tests for module 'unicase/u8-is-casefolded'.
24680         * modules/unicase/u8-is-casefolded-tests: New file.
24681         * tests/unicase/test-u8-is-casefolded.c: New file.
24682         * tests/unicase/test-is-casefolded.h: New file.
24683
24684         New module 'unicase/u32-is-casefolded'.
24685         * lib/unicase/u32-is-casefolded.c: New file.
24686         * modules/unicase/u32-is-casefolded: New file.
24687
24688         New module 'unicase/u16-is-casefolded'.
24689         * lib/unicase/u16-is-casefolded.c: New file.
24690         * modules/unicase/u16-is-casefolded: New file.
24691
24692         New module 'unicase/u8-is-casefolded'.
24693         * lib/unicase/u8-is-casefolded.c: New file.
24694         * modules/unicase/u8-is-casefolded: New file.
24695
24696         Tests for module 'unicase/u32-is-titlecase'.
24697         * modules/unicase/u32-is-titlecase-tests: New file.
24698         * tests/unicase/test-u32-is-titlecase.c: New file.
24699
24700         Tests for module 'unicase/u16-is-titlecase'.
24701         * modules/unicase/u16-is-titlecase-tests: New file.
24702         * tests/unicase/test-u16-is-titlecase.c: New file.
24703
24704         Tests for module 'unicase/u8-is-titlecase'.
24705         * modules/unicase/u8-is-titlecase-tests: New file.
24706         * tests/unicase/test-u8-is-titlecase.c: New file.
24707         * tests/unicase/test-is-titlecase.h: New file.
24708
24709         New module 'unicase/u32-is-titlecase'.
24710         * lib/unicase/u32-is-titlecase.c: New file.
24711         * modules/unicase/u32-is-titlecase: New file.
24712
24713         New module 'unicase/u16-is-titlecase'.
24714         * lib/unicase/u16-is-titlecase.c: New file.
24715         * modules/unicase/u16-is-titlecase: New file.
24716
24717         New module 'unicase/u8-is-titlecase'.
24718         * lib/unicase/u8-is-titlecase.c: New file.
24719         * modules/unicase/u8-is-titlecase: New file.
24720
24721         Tests for module 'unicase/u32-is-lowercase'.
24722         * modules/unicase/u32-is-lowercase-tests: New file.
24723         * tests/unicase/test-u32-is-lowercase.c: New file.
24724
24725         Tests for module 'unicase/u16-is-lowercase'.
24726         * modules/unicase/u16-is-lowercase-tests: New file.
24727         * tests/unicase/test-u16-is-lowercase.c: New file.
24728
24729         Tests for module 'unicase/u8-is-lowercase'.
24730         * modules/unicase/u8-is-lowercase-tests: New file.
24731         * tests/unicase/test-u8-is-lowercase.c: New file.
24732         * tests/unicase/test-is-lowercase.h: New file.
24733
24734         New module 'unicase/u32-is-lowercase'.
24735         * lib/unicase/u32-is-lowercase.c: New file.
24736         * modules/unicase/u32-is-lowercase: New file.
24737
24738         New module 'unicase/u16-is-lowercase'.
24739         * lib/unicase/u16-is-lowercase.c: New file.
24740         * modules/unicase/u16-is-lowercase: New file.
24741
24742         New module 'unicase/u8-is-lowercase'.
24743         * lib/unicase/u8-is-lowercase.c: New file.
24744         * modules/unicase/u8-is-lowercase: New file.
24745
24746         Tests for module 'unicase/u32-is-uppercase'.
24747         * modules/unicase/u32-is-uppercase-tests: New file.
24748         * tests/unicase/test-u32-is-uppercase.c: New file.
24749
24750         Tests for module 'unicase/u16-is-uppercase'.
24751         * modules/unicase/u16-is-uppercase-tests: New file.
24752         * tests/unicase/test-u16-is-uppercase.c: New file.
24753
24754         Tests for module 'unicase/u8-is-uppercase'.
24755         * modules/unicase/u8-is-uppercase-tests: New file.
24756         * tests/unicase/test-u8-is-uppercase.c: New file.
24757         * tests/unicase/test-is-uppercase.h: New file.
24758
24759         New module 'unicase/u32-is-uppercase'.
24760         * lib/unicase/u32-is-uppercase.c: New file.
24761         * modules/unicase/u32-is-uppercase: New file.
24762
24763         New module 'unicase/u16-is-uppercase'.
24764         * lib/unicase/u16-is-uppercase.c: New file.
24765         * modules/unicase/u16-is-uppercase: New file.
24766
24767         New module 'unicase/u8-is-uppercase'.
24768         * lib/unicase/u8-is-uppercase.c: New file.
24769         * modules/unicase/u8-is-uppercase: New file.
24770
24771         New module 'unicase/u32-is-invariant'.
24772         * lib/unicase/u32-is-invariant.c: New file.
24773         * modules/unicase/u32-is-invariant: New file.
24774
24775         New module 'unicase/u16-is-invariant'.
24776         * lib/unicase/u16-is-invariant.c: New file.
24777         * modules/unicase/u16-is-invariant: New file.
24778
24779         New module 'unicase/u8-is-invariant'.
24780         * lib/unicase/u8-is-invariant.c: New file.
24781         * lib/unicase/invariant.h: New file.
24782         * lib/unicase/u-is-invariant.h: New file.
24783         * modules/unicase/u8-is-invariant: New file.
24784
24785         Tests for module 'unicase/u32-casecoll'.
24786         * modules/unicase/u32-casecoll-tests: New file.
24787         * tests/unicase/test-u32-casecoll.c: New file.
24788
24789         Tests for module 'unicase/u16-casecoll'.
24790         * modules/unicase/u16-casecoll-tests: New file.
24791         * tests/unicase/test-u16-casecoll.c: New file.
24792
24793         Tests for module 'unicase/u8-casecoll'.
24794         * modules/unicase/u8-casecoll-tests: New file.
24795         * tests/unicase/test-u8-casecoll.c: New file.
24796
24797         New module 'unicase/u32-casecoll'.
24798         * lib/unicase/u32-casecoll.c: New file.
24799         * modules/unicase/u32-casecoll: New file.
24800
24801         New module 'unicase/u16-casecoll'.
24802         * lib/unicase/u16-casecoll.c: New file.
24803         * modules/unicase/u16-casecoll: New file.
24804
24805         New module 'unicase/u8-casecoll'.
24806         * lib/unicase/u8-casecoll.c: New file.
24807         * lib/unicase/u-casecoll.h: New file.
24808         * modules/unicase/u8-casecoll: New file.
24809
24810         New module 'unicase/u32-casexfrm'.
24811         * lib/unicase/u32-casexfrm.c: New file.
24812         * modules/unicase/u32-casexfrm: New file.
24813
24814         New module 'unicase/u16-casexfrm'.
24815         * lib/unicase/u16-casexfrm.c: New file.
24816         * modules/unicase/u16-casexfrm: New file.
24817
24818         New module 'unicase/u8-casexfrm'.
24819         * lib/unicase/u8-casexfrm.c: New file.
24820         * lib/unicase/u-casexfrm.h: New file.
24821         * modules/unicase/u8-casexfrm: New file.
24822
24823         Tests for module 'unicase/u32-casecmp'.
24824         * modules/unicase/u32-casecmp-tests: New file.
24825         * tests/unicase/test-u32-casecmp.c: New file.
24826
24827         Tests for module 'unicase/u16-casecmp'.
24828         * modules/unicase/u16-casecmp-tests: New file.
24829         * tests/unicase/test-u16-casecmp.c: New file.
24830
24831         Tests for module 'unicase/u8-casecmp'.
24832         * modules/unicase/u8-casecmp-tests: New file.
24833         * tests/unicase/test-u8-casecmp.c: New file.
24834         * tests/unicase/test-casecmp.h: New file.
24835
24836         New module 'unicase/u32-casecmp'.
24837         * lib/unicase/u32-casecmp.c: New file.
24838         * modules/unicase/u32-casecmp: New file.
24839
24840         New module 'unicase/u16-casecmp'.
24841         * lib/unicase/u16-casecmp.c: New file.
24842         * modules/unicase/u16-casecmp: New file.
24843
24844         New module 'unicase/u8-casecmp'.
24845         * lib/unicase/u8-casecmp.c: New file.
24846         * lib/unicase/u-casecmp.h: New file.
24847         * modules/unicase/u8-casecmp: New file.
24848
24849         Tests for module 'unicase/u32-casefold'.
24850         * modules/unicase/u32-casefold-tests: New file.
24851         * tests/unicase/test-u32-casefold.c: New file.
24852
24853         Tests for module 'unicase/u16-casefold'.
24854         * modules/unicase/u16-casefold-tests: New file.
24855         * tests/unicase/test-u16-casefold.c: New file.
24856
24857         Tests for module 'unicase/u8-casefold'.
24858         * modules/unicase/u8-casefold-tests: New file.
24859         * tests/unicase/test-u8-casefold.c: New file.
24860
24861         New module 'unicase/u32-casefold'.
24862         * lib/unicase/u32-casefold.c: New file.
24863         * modules/unicase/u32-casefold: New file.
24864
24865         New module 'unicase/u16-casefold'.
24866         * lib/unicase/u16-casefold.c: New file.
24867         * modules/unicase/u16-casefold: New file.
24868
24869         New module 'unicase/u8-casefold'.
24870         * lib/unicase/u8-casefold.c: New file.
24871         * lib/unicase/u-casefold.h: New file.
24872         * modules/unicase/u8-casefold: New file.
24873
24874         New module 'unicase/tocasefold'.
24875         * lib/unicase/casefold.h: New file.
24876         * lib/unicase/tocasefold.c: New file.
24877         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24878         * modules/unicase/tocasefold: New file.
24879
24880         Tests for module 'unicase/u32-totitle'.
24881         * modules/unicase/u32-totitle-tests: New file.
24882         * tests/unicase/test-u32-totitle.c: New file.
24883
24884         Tests for module 'unicase/u16-totitle'.
24885         * modules/unicase/u16-totitle-tests: New file.
24886         * tests/unicase/test-u16-totitle.c: New file.
24887
24888         Tests for module 'unicase/u8-totitle'.
24889         * modules/unicase/u8-totitle-tests: New file.
24890         * tests/unicase/test-u8-totitle.c: New file.
24891
24892         New module 'unicase/u32-totitle'.
24893         * lib/unicase/u32-totitle.c: New file.
24894         * modules/unicase/u32-totitle: New file.
24895
24896         New module 'unicase/u16-totitle'.
24897         * lib/unicase/u16-totitle.c: New file.
24898         * modules/unicase/u16-totitle: New file.
24899
24900         New module 'unicase/u8-totitle'.
24901         * lib/unicase/u8-totitle.c: New file.
24902         * lib/unicase/u-totitle.h: New file.
24903         * modules/unicase/u8-totitle: New file.
24904
24905         Tests for module 'unicase/u32-tolower'.
24906         * modules/unicase/u32-tolower-tests: New file.
24907         * tests/unicase/test-u32-tolower.c: New file.
24908
24909         Tests for module 'unicase/u16-tolower'.
24910         * modules/unicase/u16-tolower-tests: New file.
24911         * tests/unicase/test-u16-tolower.c: New file.
24912
24913         Tests for module 'unicase/u8-tolower'.
24914         * modules/unicase/u8-tolower-tests: New file.
24915         * tests/unicase/test-u8-tolower.c: New file.
24916
24917         New module 'unicase/u32-tolower'.
24918         * lib/unicase/u32-tolower.c: New file.
24919         * modules/unicase/u32-tolower: New file.
24920
24921         New module 'unicase/u16-tolower'.
24922         * lib/unicase/u16-tolower.c: New file.
24923         * modules/unicase/u16-tolower: New file.
24924
24925         New module 'unicase/u8-tolower'.
24926         * lib/unicase/u8-tolower.c: New file.
24927         * modules/unicase/u8-tolower: New file.
24928
24929         Tests for module 'unicase/u32-toupper'.
24930         * modules/unicase/u32-toupper-tests: New file.
24931         * tests/unicase/test-u32-toupper.c: New file.
24932
24933         Tests for module 'unicase/u16-toupper'.
24934         * modules/unicase/u16-toupper-tests: New file.
24935         * tests/unicase/test-u16-toupper.c: New file.
24936
24937         Tests for module 'unicase/u8-toupper'.
24938         * modules/unicase/u8-toupper-tests: New file.
24939         * tests/unicase/test-u8-toupper.c: New file.
24940
24941         New module 'unicase/u32-toupper'.
24942         * lib/unicase/u32-toupper.c: New file.
24943         * modules/unicase/u32-toupper: New file.
24944
24945         New module 'unicase/u16-toupper'.
24946         * lib/unicase/u16-toupper.c: New file.
24947         * modules/unicase/u16-toupper: New file.
24948
24949         New module 'unicase/u8-toupper'.
24950         * lib/unicase/u8-toupper.c: New file.
24951         * modules/unicase/u8-toupper: New file.
24952
24953         New module 'unicase/u32-casemap'.
24954         * lib/unicase/u32-casemap.c: New file.
24955         * modules/unicase/u32-casemap: New file.
24956
24957         New module 'unicase/u16-casemap'.
24958         * lib/unicase/u16-casemap.c: New file.
24959         * modules/unicase/u16-casemap: New file.
24960
24961         New module 'unicase/u8-casemap'.
24962         * lib/unicase/unicasemap.h: New file.
24963         * lib/unicase/u8-casemap.c: New file.
24964         * lib/unicase/u-casemap.h: New file.
24965         * modules/unicase/u8-casemap: New file.
24966
24967         New module 'unicase/special-casing'.
24968         * lib/unicase/special-casing.h: New file.
24969         * lib/unicase/special-casing.c: New file.
24970         * lib/unicase/special-casing-table.gperf: New file, generated by
24971         gen-uni-tables.c.
24972         * modules/unicase/special-casing: New file.
24973
24974         Tests for module 'unicase/locale-language'.
24975         * modules/unicase/locale-language-tests: New file.
24976         * tests/unicase/test-locale-language.sh: New file.
24977         * tests/unicase/test-locale-language.c: New file.
24978
24979         New module 'unicase/locale-language'.
24980         * lib/unicase/locale-language.c: New file.
24981         * lib/unicase/locale-languages.gperf: New file.
24982         * modules/unicase/locale-language: New file.
24983
24984         Generate more tables for case conversion and case folding.
24985         * lib/gen-uni-tables.c (SCC_*): New enum items.
24986         (struct special_casing_rule): New type.
24987         (casing_rules, num_casing_rules, allocated_casing_rules): New
24988         variables.
24989         (add_casing_rule, fill_casing_rules): New functions.
24990         (struct casefold_rule): New type.
24991         (casefolding_rules, num_casefolding_rules,
24992         allocated_casefolding_rules): New variables.
24993         (fill_casefolding_rules): New function.
24994         (unicode_casefold): New variable.
24995         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24996         sort_casing_rules, output_casing_rules): New functions.
24997         (main): Accept to more arguments: SpecialCasing.txt and
24998         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24999         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
25000         Output mapping for casefolding.
25001
25002         * lib/unicase.h: Include stdbool.h, uninorm.h.
25003         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
25004         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
25005         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
25006         arguments.
25007         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
25008         resultp arguments.
25009         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
25010         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
25011         resultp arguments.
25012         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
25013         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
25014         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
25015         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
25016         declarations.
25017         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
25018
25019 2009-03-08  Bruno Haible  <bruno@clisp.org>
25020
25021         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25022         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
25023         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
25024         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25025
25026 2009-03-07  Bruno Haible  <bruno@clisp.org>
25027
25028         Adjust u*_normcmp, u*_normcoll API.
25029         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
25030         u16_normcoll, u32_normcoll): Change failure conventions.
25031         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
25032         errno and return -1.
25033         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
25034
25035 2009-03-07  Bruno Haible  <bruno@clisp.org>
25036
25037         Tests for module 'uninorm/u32-normcoll'.
25038         * modules/uninorm/u32-normcoll-tests: New file.
25039         * tests/uninorm/test-u32-normcoll.c: New file.
25040
25041         Tests for module 'uninorm/u16-normcoll'.
25042         * modules/uninorm/u16-normcoll-tests: New file.
25043         * tests/uninorm/test-u16-normcoll.c: New file.
25044
25045         Tests for module 'uninorm/u8-normcoll'.
25046         * modules/uninorm/u8-normcoll-tests: New file.
25047         * tests/uninorm/test-u8-normcoll.c: New file.
25048
25049 2009-03-07  Bruno Haible  <bruno@clisp.org>
25050
25051         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
25052         tests/uninorm/test-u32-normcmp.c.
25053         * tests/uninorm/test-u32-normcmp.c: Include it.
25054         (test_nonascii): New function, extracted from main. Add some more
25055         tests.
25056         (main): Invoke test_ascii and test_nonascii.
25057         * modules/uninorm/u32-normcmp-tests (Files): Add
25058         tests/uninorm/test-u32-normcmp.h.
25059         (Depends-on): Remove uninorm/u32-normcmp.
25060
25061         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
25062         tests/uninorm/test-u16-normcmp.c.
25063         * tests/uninorm/test-u16-normcmp.c: Include it.
25064         (test_nonascii): New function, extracted from main. Add some more
25065         tests.
25066         (main): Invoke test_ascii and test_nonascii.
25067         * modules/uninorm/u16-normcmp-tests (Files): Add
25068         tests/uninorm/test-u16-normcmp.h.
25069         (Depends-on): Remove uninorm/u16-normcmp.
25070
25071         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
25072         tests/uninorm/test-u8-normcmp.c.
25073         * tests/uninorm/test-u8-normcmp.c: Include it.
25074         (test_nonascii): New function, extracted from main. Add some more
25075         tests.
25076         (main): Invoke test_ascii and test_nonascii.
25077         * modules/uninorm/u8-normcmp-tests (Files): Add
25078         tests/uninorm/test-u8-normcmp.h.
25079         (Depends-on): Remove uninorm/u8-normcmp.
25080
25081 2009-03-07  Bruno Haible  <bruno@clisp.org>
25082
25083         New module 'uninorm/u32-normcoll'.
25084         * lib/uninorm/u32-normcoll.c: New file.
25085         * modules/uninorm/u32-normcoll: New file.
25086
25087         New module 'uninorm/u16-normcoll'.
25088         * lib/uninorm/u16-normcoll.c: New file.
25089         * modules/uninorm/u16-normcoll: New file.
25090
25091         New module 'uninorm/u8-normcoll'.
25092         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
25093         declarations.
25094         * lib/uninorm/u8-normcoll.c: New file.
25095         * lib/uninorm/u-normcoll.h: New file.
25096         * modules/uninorm/u8-normcoll: New file.
25097
25098         New module 'uninorm/u32-normxfrm'.
25099         * lib/uninorm/u32-normxfrm.c: New file.
25100         * modules/uninorm/u32-normxfrm: New file.
25101
25102         New module 'uninorm/u16-normxfrm'.
25103         * lib/uninorm/u16-normxfrm.c: New file.
25104         * modules/uninorm/u16-normxfrm: New file.
25105
25106         New module 'uninorm/u8-normxfrm'.
25107         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
25108         declarations.
25109         * lib/uninorm/u8-normxfrm.c: New file.
25110         * lib/uninorm/u-normxfrm.h: New file.
25111         * modules/uninorm/u8-normxfrm: New file.
25112
25113 2009-03-07  Bruno Haible  <bruno@clisp.org>
25114
25115         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
25116         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
25117         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
25118
25119 2009-03-07  Bruno Haible  <bruno@clisp.org>
25120
25121         New module 'memxfrm'.
25122         * lib/memxfrm.h: New file.
25123         * lib/memxfrm.c: New file.
25124         * modules/memxfrm: New file.
25125
25126 2009-03-07  Bruno Haible  <bruno@clisp.org>
25127
25128         New module 'memcmp2'.
25129         * lib/memcmp2.h: New file.
25130         * lib/memcmp2.c: New file.
25131         * modules/memcmp2: New file.
25132
25133 2009-03-07  Bruno Haible  <bruno@clisp.org>
25134
25135         Tests for module 'uninorm/decomposing-form'.
25136         * modules/uninorm/decomposing-form-tests: New file.
25137         * tests/uninorm/test-decomposing-form.c: New file.
25138
25139         New module 'uninorm/decomposing-form'.
25140         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
25141         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
25142         Add 'decomposing_variant' field.
25143         * lib/uninorm/decomposing-form.c: New file.
25144         * lib/uninorm/nfc.c (uninorm_nfc): Update.
25145         * lib/uninorm/nfd.c (uninorm_nfd): Update.
25146         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
25147         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
25148         * modules/uninorm/decomposing-form: New file.
25149         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
25150         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
25151
25152 2009-03-07  Bruno Haible  <bruno@clisp.org>
25153
25154         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
25155         strings.
25156
25157 2009-03-06  Bruno Haible  <bruno@clisp.org>
25158
25159         Tests for module 'uninorm/u32-normcmp'.
25160         * tests/uninorm/test-u32-normcmp.c: New file.
25161         * modules/uninorm/u32-normcmp-tests: New file.
25162
25163         Tests for module 'uninorm/u16-normcmp'.
25164         * tests/uninorm/test-u16-normcmp.c: New file.
25165         * modules/uninorm/u16-normcmp-tests: New file.
25166
25167         Tests for module 'uninorm/u8-normcmp'.
25168         * tests/uninorm/test-u8-normcmp.c: New file.
25169         * modules/uninorm/u8-normcmp-tests: New file.
25170
25171         New module 'uninorm/u32-normcmp'.
25172         * lib/uninorm/u32-normcmp.c: New file.
25173         * modules/uninorm/u32-normcmp: New file.
25174
25175         New module 'uninorm/u16-normcmp'.
25176         * lib/uninorm/u16-normcmp.c: New file.
25177         * modules/uninorm/u16-normcmp: New file.
25178
25179         New module 'uninorm/u8-normcmp'.
25180         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
25181         declarations.
25182         * lib/uninorm/u8-normcmp.c: New file.
25183         * lib/uninorm/u-normcmp.h: New file.
25184         * modules/uninorm/u8-normcmp: New file.
25185
25186 2009-03-06  Bruno Haible  <bruno@clisp.org>
25187
25188         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
25189         Reported by Eric Blake.
25190
25191 2009-03-06  Eric Blake  <ebb9@byu.net>
25192             Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
25195         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
25196         condition.
25197         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25198         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
25199         condition.
25200         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
25201
25202 2009-03-06  Eric Blake  <ebb9@byu.net>
25203
25204         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
25205         to avoid compiler warnings.
25206         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
25207
25208 2009-03-05  Bruno Haible  <bruno@clisp.org>
25209
25210         * tests/test-ftell.c (main): Disable test beyond end of file on
25211         FreeMiNT.
25212         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25213
25214 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
25215
25216         * lib/filevercmp.c: Move hidden files up in ordering.
25217         * tests/test-filevercmp.c: Add tests for hidden files.
25218
25219 2009-03-04  Bruno Haible  <bruno@clisp.org>
25220
25221         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
25222         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
25223         AM_CFLAGS.
25224         Reported by Simon Josefsson.
25225
25226 2009-03-03  Bruno Haible  <bruno@clisp.org>
25227
25228         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
25229         Reported by Simon Josefsson.
25230
25231         * doc/ld-version-script.texi: Update node reference.
25232
25233 2009-03-03  Bruno Haible  <bruno@clisp.org>
25234
25235         * modules/visibility (License): Change to 'unlimited'.
25236         Suggested by Simon Josefsson.
25237
25238 2009-03-03  Jim Meyering  <meyering@redhat.com>
25239
25240         unlinkdir: cannot_unlink_dir may modify process state
25241         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
25242         it's neither thread-safe nor appropriate for use in a library.
25243
25244 2009-03-03  Eric Blake  <ebb9@byu.net>
25245
25246         test-closein: silence test under Darwin
25247         * tests/test-closein.sh: Ignore stderr from cat, since we don't
25248         care if it dies from EPIPE or EBADF.
25249
25250 2009-03-03  Bruno Haible  <bruno@clisp.org>
25251
25252         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
25253         earlier.
25254         * doc/visibility.texi: Fix @node and @section.
25255
25256 2009-03-03  Simon Josefsson  <simon@josefsson.org>
25257
25258         * doc/gnulib.texi: Link to sections for ld version script and
25259         visibility.
25260         * doc/visibility.texi: Add @node and @section.
25261         * modules/ld-version-script: New module.
25262         * m4/ld-version-script.m4: New file.
25263         * doc/ld-version-script.texi: New file.
25264
25265 2009-03-02  David Lutterkort  <lutter@redhat.com>
25266
25267         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
25268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25269
25270 2009-03-02  Bruno Haible  <bruno@clisp.org>
25271
25272         * doc/visibility.texi: Mention libtool's -export-symbols option.
25273
25274 2009-03-02  Jim Meyering  <meyering@redhat.com>
25275
25276         announce-gen: new option: --no-print-checksums
25277         * build-aux/announce-gen (usage): Describe it.
25278         (print_checksums): Print a newline here, not in the [*] footnote.
25279         (main): Honor it.
25280
25281 2009-03-01  Bruno Haible  <bruno@clisp.org>
25282
25283         Use socklen_t in the native Windows replacements prototypes.
25284         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25285         instead of 'int'.
25286         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25287         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25288         * modules/getsockopt (Depends-on): Add socklen.
25289         * modules/setsockopt (Depends-on): Add socklen.
25290
25291 2009-03-01  Bruno Haible  <bruno@clisp.org>
25292
25293         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25294         least 4.2.
25295
25296 2009-03-01  Eric Blake  <ebb9@byu.net>
25297             Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25300         error messages.
25301         * lib/wait-process.c (wait_subprocess): Omit error message about
25302         deadly signal sent to the child of termsigp != NULL.
25303
25304 2009-03-01  Eric Blake  <ebb9@byu.net>
25305
25306         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25307
25308 2009-03-01  Bruno Haible  <bruno@clisp.org>
25309
25310         Avoid a gcc warning.
25311         * tests/test-sched.c (b): Make global.
25312         Reported by Eric Blake.
25313
25314 2009-01-19  Martin Lambers  <marlam@marlam.de>
25315
25316         Provide POSIX semantics for socket timeout options on W32.
25317         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25318         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25319         * modules/setsockopt: Depend on sys_time module for struct timeval.
25320         * modules/getsockopt: Depend on sys_time module for struct timeval.
25321
25322 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25323
25324         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25325         __USE_GNU, for consistency with netdb.in.h.
25326         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25327
25328 2009-03-01  Bruno Haible  <bruno@clisp.org>
25329
25330         More support for FreeMiNT.
25331         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25332         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25333
25334 2009-03-01  Bruno Haible  <bruno@clisp.org>
25335
25336         More support for FreeMiNT.
25337         * lib/fpurge.c (fpurge): Correct last commit.
25338         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25339
25340 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25341
25342         Fix unportable awk script in vc-list-files.
25343         * build-aux/vc-list-files: In the replacement awk script, use
25344         substr with a second argument of 1, not zero.
25345         Report by Simon Josefsson.
25346
25347 2009-02-28  Bruno Haible  <bruno@clisp.org>
25348
25349         More support for FreeMiNT.
25350         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25351         to FreeMiNT today.
25352         * lib/fwriting.c (fwriting): Likewise.
25353         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25354
25355 2009-02-28  Bruno Haible  <bruno@clisp.org>
25356
25357         * tests/test-freadseek.c (main): Disable test beyond end of file on
25358         FreeMiNT.
25359         * tests/test-ftello.c (main): Likewise.
25360         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25361
25362 2009-02-28  Bruno Haible  <bruno@clisp.org>
25363
25364         Add tentative support for FreeMiNT.
25365         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25366         * lib/fpurge.c (fpurge): Likewise.
25367         * lib/freadable.c (freadable): Likewise.
25368         * lib/freading.c (freading): Likewise.
25369         * lib/freadptr.c (freadptr): Likewise.
25370         * lib/freadseek.c (freadptrinc): Likewise.
25371         * lib/fseeko.c (rpl_fseeko): Likewise.
25372         * lib/fseterr.c (fseterr): Likewise.
25373         * lib/fwritable.c (fwritable): Likewise.
25374         * lib/fwriting.c (fwriting): Likewise.
25375         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25376         Hourihane.
25377         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25378
25379 2009-02-28  Bruno Haible  <bruno@clisp.org>
25380
25381         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25382         SIGCHLD.
25383         Reported by Jim Meyering.
25384
25385 2009-02-28  Bruno Haible  <bruno@clisp.org>
25386
25387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25388         Mention the results of these tests on various platforms.
25389         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25390         order.
25391         * doc/posix-functions/printf.texi: Likewise.
25392         * doc/posix-functions/snprintf.texi: Likewise.
25393         * doc/posix-functions/sprintf.texi: Likewise.
25394         * doc/posix-functions/vfprintf.texi: Likewise.
25395         * doc/posix-functions/vprintf.texi: Likewise.
25396         * doc/posix-functions/vsnprintf.texi: Likewise.
25397         * doc/posix-functions/vsprintf.texi: Likewise.
25398         * doc/glibc-functions/obstack_printf.texi: Likewise.
25399         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25400
25401 2009-02-28  Bruno Haible  <bruno@clisp.org>
25402
25403         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25404         Reported by Loïc Minier <lool@dooz.org>.
25405
25406 2009-02-27  Bruno Haible  <bruno@clisp.org>
25407
25408         * gnulib-tool (func_import): Make the sed expression used to create the
25409         sed script for updating the .gitignore file POSIX compliant.
25410         Reported by Eric Blake.
25411
25412 2009-02-27  Bruno Haible  <bruno@clisp.org>
25413
25414         * gnulib-tool (sed): Don't alias as "sed --posix".
25415         Reported by Eric Blake.
25416
25417 2009-02-27  Bruno Haible  <bruno@clisp.org>
25418
25419         Avoid test link errors.
25420         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25421         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25422         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25423         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25425
25426 2009-02-27  Bruno Haible  <bruno@clisp.org>
25427
25428         Avoid spurious "(cached)" in configure output.
25429         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25430         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25431         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25432         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25433         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25434         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25435         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25436         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25437         Reported by Eric Blake.
25438
25439 2009-02-27  Eric Blake  <ebb9@byu.net>
25440
25441         printf: fix regression in previous patch
25442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25443
25444 2009-02-27  Bruno Haible  <bruno@clisp.org>
25445
25446         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25447         value.
25448         * lib/stdint.in.h: Likewise.
25449         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25450
25451 2009-02-27  Eric Blake  <ebb9@byu.net>
25452
25453         doc: mention more functions added in cygwin 1.7.0
25454         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25455         addition.
25456         * doc/posix-functions/open_wmemstream.texi: Likewise.
25457         * doc/posix-functions/wcsnlen.texi: Likewise.
25458         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25459         * doc/posix-functions/wcstod.texi: Likewise.
25460         * doc/posix-functions/wcstof.texi: Likewise.
25461         * doc/posix-functions/wcstoimax.texi: Likewise.
25462         * doc/posix-functions/wcstok.texi: Likewise.
25463         * doc/posix-functions/wcstoumax.texi: Likewise.
25464
25465         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25467         * doc/posix-functions/fprintf.texi: Update.
25468         * doc/posix-functions/printf.texi: Update.
25469         * doc/posix-functions/snprintf.texi: Update.
25470         * doc/posix-functions/sprintf.texi: Update.
25471         * doc/posix-functions/vfprintf.texi: Update.
25472         * doc/posix-functions/vprintf.texi: Update.
25473         * doc/posix-functions/vsnprintf.texi: Update.
25474         * doc/posix-functions/vsprintf.texi: Update.
25475         * doc/glibc-functions/obstack_printf.texi: Update.
25476         * doc/glibc-functions/obstack_vprintf.texi: Update.
25477
25478 2009-02-26  Eric Blake  <ebb9@byu.net>
25479
25480         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25481         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25482         compilation bug by using runtime conversion.
25483         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25484         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25485         * modules/ceill-tests (Files): Use nan.h.
25486         * modules/floorl-tests (Files): Likewise.
25487         * modules/frexpl-tests (Files): Likewise.
25488         * modules/isnanl-tests (Files): Likewise.
25489         * modules/ldexpl-tests (Files): Likewise.
25490         * modules/roundl-tests (Files): Likewise.
25491         * modules/truncl-tests (Files): Likewise.
25492         * tests/test-ceill.c (main): Use a working NaN.
25493         * tests/test-floorl.c (main): Likewise.
25494         * tests/test-frexpl.c (main): Likewise.
25495         * tests/test-isnan.c (test_long_double): Likewise.
25496         * tests/test-isnanl.h (main): Likewise.
25497         * tests/test-ldexpl.h (main): Likewise.
25498         * tests/test-roundl.h (main): Likewise.
25499         * tests/test-truncl.h (main): Likewise.
25500         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25501
25502 2009-02-26  Eric Blake  <ebb9@byu.net>
25503             Bruno Haible  <bruno@clisp.org>
25504
25505         Work around a *printf bug with %ls on Solaris.
25506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25507         precision is specified, sprintf stops converting the wide string
25508         argument when the number of bytes that have been produced by this
25509         conversion equals or exceeds the precision.
25510         * doc/posix-functions/fprintf.texi: Update.
25511         * doc/posix-functions/printf.texi: Update.
25512         * doc/posix-functions/snprintf.texi: Update.
25513         * doc/posix-functions/sprintf.texi: Update.
25514         * doc/posix-functions/vfprintf.texi: Update.
25515         * doc/posix-functions/vprintf.texi: Update.
25516         * doc/posix-functions/vsnprintf.texi: Update.
25517         * doc/posix-functions/vsprintf.texi: Update.
25518         * doc/glibc-functions/obstack_printf.texi: Update.
25519         * doc/glibc-functions/obstack_vprintf.texi: Update.
25520
25521 2009-02-26  Eric Blake  <ebb9@byu.net>
25522
25523         stdlib: favor compiler check of random.h
25524         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25525         to avoid an ObjC random.h installed by Swarm.
25526
25527 2009-02-26  Bruno Haible  <bruno@clisp.org>
25528
25529         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25530         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25531         Reported by Gary V. Vaughan <gary@gnu.org>.
25532
25533 2009-02-26  Bruno Haible  <bruno@clisp.org>
25534
25535         Fix *printf behaviour regarding the %ls directive.
25536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25537         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25538         NEED_PRINTF_DIRECTIVE_LS.
25539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25540         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25542         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25543         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25544         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25545         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25547         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25548         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25550         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25553         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25554         * doc/posix-functions/fprintf.texi: Update.
25555         * doc/posix-functions/printf.texi: Update.
25556         * doc/posix-functions/snprintf.texi: Update.
25557         * doc/posix-functions/sprintf.texi: Update.
25558         * doc/posix-functions/vfprintf.texi: Update.
25559         * doc/posix-functions/vprintf.texi: Update.
25560         * doc/posix-functions/vsnprintf.texi: Update.
25561         * doc/posix-functions/vsprintf.texi: Update.
25562         * doc/glibc-functions/obstack_printf.texi: Update.
25563         * doc/glibc-functions/obstack_vprintf.texi: Update.
25564         Reported by Eric Blake.
25565
25566 2009-02-25  Bruno Haible  <bruno@clisp.org>
25567
25568         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25569         with known value.
25570         Reported by Gary V. Vaughan <gary@gnu.org>.
25571
25572 2009-02-25  Bruno Haible  <bruno@clisp.org>
25573
25574         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25575         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25576         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25577         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25578         Reported by Gary V. Vaughan <gary@gnu.org>.
25579
25580 2009-02-25  Bruno Haible  <bruno@clisp.org>
25581
25582         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25583         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25584         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25585         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25586         Reported by Gary V. Vaughan <gary@gnu.org>.
25587
25588 2009-02-25  Eric Blake  <ebb9@byu.net>
25589
25590         tests: skip fseek/ftell tests if ungetc is broken
25591         * m4/ungetc.m4: New file.
25592         * modules/fseek-tests: Split test, so ungetc dependency is
25593         separate from rest of test.
25594         * modules/fseeko-tests: Likewise.
25595         * modules/ftell-tests: Likewise.
25596         * modules/ftello-tests: Likewise.
25597         * tests/test-fseek.c (main): Isolate ungetc dependency.
25598         * tests/test-fseeko.c (main): Likewise.
25599         * tests/test-ftell.c (main): Likewise.
25600         * tests/test-ftello.c (main): Likewise.
25601         * tests/test-fseek2.sh: New file.
25602         * tests/test-fseeko2.sh: Likewise.
25603         * tests/test-ftell2.sh: Likewise.
25604         * tests/test-ftello2.sh: Likewise.
25605
25606 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
25607
25608         test-getaddrinfo: fix usage of skip return code 77
25609         * tests/test-gettaddrinfo.c: Return skip code 77 only
25610         for first occurance of skip (4x77 is not 77)
25611
25612 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25613
25614         strtod: avoid C99 decl-after-statement
25615         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25616
25617 2009-02-24  Eric Blake  <ebb9@byu.net>
25618
25619         strtod: detect HP-UX 11.31 bug
25620         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25621         Reported by Gary V. Vaughan.
25622
25623 2009-02-23  Bruno Haible  <bruno@clisp.org>
25624
25625         Fix invalid read past end of memory block.
25626         * lib/vasnprintf.c (DCHAR_SET): Define.
25627         (local_wcslen): Define only when needed.
25628         (local_strnlen, local_wcsnlen): New functions.
25629         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25630         directives that involve a conversion ourselves.
25631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25632         wcsnlen, mbrtowc, wcrtomb.
25633         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25634         * tests/test-vasprintf-posix.c (test_function): Likewise.
25635         * tests/test-snprintf-posix.h (test_function): Likewise.
25636         * tests/test-sprintf-posix.h (test_function): Likewise.
25637         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25638
25639 2009-02-22  Bruno Haible  <bruno@clisp.org>
25640
25641         Implement new clarified decomposition of Hangul syllables.
25642         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25643         of type LTV, return only a pairwise decomposition.
25644         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25645         Likewise.
25646         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25647         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25648         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25649
25650 2009-02-22  Bruno Haible  <bruno@clisp.org>
25651
25652         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25653         zero-length results and shrink excess allocated memory.
25654         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25655         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25656         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25657         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25658         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25659         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25660         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25661         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25662         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25663         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25664         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25665         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25666
25667 2009-02-21  Bruno Haible  <bruno@clisp.org>
25668
25669         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25670         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25671         spaces after a period. Put a space between a macro name and its
25672         argument list. Trivial rewordings.
25673         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25674         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25675         (main): Return 0 explicitly.
25676
25677 2009-02-21  Bruno Haible  <bruno@clisp.org>
25678
25679         Tests for module 'uninorm/filter'.
25680         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25681         * modules/uninorm/filter-tests: New file.
25682
25683         New module 'uninorm/filter'.
25684         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25685         uninorm_filter_flush, uninorm_filter_free): New declarations.
25686         * lib/uninorm/uninorm-filter.c: New file.
25687         * modules/uninorm/filter: New file.
25688
25689 2009-02-21  Bruno Haible  <bruno@clisp.org>
25690
25691         Tests for module 'uninorm/nfkc'.
25692         * tests/uninorm/test-nfkc.c: New file.
25693         * tests/uninorm/test-u8-nfkc.c: New file.
25694         * tests/uninorm/test-u16-nfkc.c: New file.
25695         * tests/uninorm/test-u32-nfkc.c: New file.
25696         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25697         * tests/uninorm/test-u32-nfkc-big.c: New file.
25698         * modules/uninorm/nfkc-tests: New file.
25699
25700         New module 'uninorm/nfkc'.
25701         * lib/uninorm/nfkc.c: New file.
25702         * modules/uninorm/nfkc: New file.
25703
25704         Tests for module 'uninorm/nfkd'.
25705         * tests/uninorm/test-nfkd.c: New file.
25706         * tests/uninorm/test-u8-nfkd.c: New file.
25707         * tests/uninorm/test-u16-nfkd.c: New file.
25708         * tests/uninorm/test-u32-nfkd.c: New file.
25709         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25710         * tests/uninorm/test-u32-nfkd-big.c: New file.
25711         * modules/uninorm/nfkd-tests: New file.
25712
25713         New module 'uninorm/nfkd'.
25714         * lib/uninorm/nfkd.c: New file.
25715         * modules/uninorm/nfkd: New file.
25716
25717         Tests for module 'uninorm/nfc'.
25718         * tests/uninorm/test-nfc.c: New file.
25719         * tests/uninorm/test-u8-nfc.c: New file.
25720         * tests/uninorm/test-u16-nfc.c: New file.
25721         * tests/uninorm/test-u32-nfc.c: New file.
25722         * tests/uninorm/test-u32-nfc-big.sh: New file.
25723         * tests/uninorm/test-u32-nfc-big.c: New file.
25724         * modules/uninorm/nfc-tests: New file.
25725
25726         New module 'uninorm/nfc'.
25727         * lib/uninorm/nfc.c: New file.
25728         * modules/uninorm/nfc: New file.
25729
25730         Tests for module 'uninorm/nfd'.
25731         * tests/uninorm/test-nfd.c: New file.
25732         * tests/uninorm/test-u8-nfd.c: New file.
25733         * tests/uninorm/test-u16-nfd.c: New file.
25734         * tests/uninorm/test-u32-nfd.c: New file.
25735         * tests/uninorm/test-u32-nfd-big.sh: New file.
25736         * tests/uninorm/test-u32-nfd-big.c: New file.
25737         * tests/uninorm/test-u32-normalize-big.h: New file.
25738         * tests/uninorm/test-u32-normalize-big.c: New file.
25739         * tests/uninorm/NormalizationTest.txt: New file, created from
25740         Unicode 5.1.0 NormalizationTest.txt.
25741         * modules/uninorm/nfd-tests: New file.
25742
25743         New module 'uninorm/nfd'.
25744         * lib/uninorm/nfd.c: New file.
25745         * modules/uninorm/nfd: New file.
25746
25747         New module 'uninorm/u32-normalize'.
25748         * lib/uninorm/u32-normalize.c: New file.
25749         * modules/uninorm/u32-normalize: New file.
25750
25751         New module 'uninorm/u16-normalize'.
25752         * lib/uninorm/u16-normalize.c: New file.
25753         * modules/uninorm/u16-normalize: New file.
25754
25755         New module 'uninorm/u8-normalize'.
25756         * lib/uninorm/u8-normalize.c: New file.
25757         * lib/uninorm/normalize-internal.h: New file.
25758         * lib/uninorm/u-normalize-internal.h: New file.
25759         * modules/uninorm/u8-normalize: New file.
25760
25761         New module 'uninorm/decompose-internal'.
25762         * lib/uninorm/decompose-internal.c: New file.
25763         * modules/uninorm/decompose-internal: New file.
25764
25765         Tests for module 'uninorm/composition'.
25766         * tests/uninorm/test-composition.c: New file.
25767         * modules/uninorm/composition-tests: New file.
25768
25769         New module 'uninorm/composition'.
25770         * lib/uninorm/composition.c: New file.
25771         * lib/uninorm/composition-table.gperf: New file, generated by
25772         gen-uni-tables.
25773         * modules/uninorm/composition: New file.
25774
25775         Tests for module 'uninorm/compat-decomposition'.
25776         * tests/uninorm/test-compat-decomposition.c: New file.
25777         * modules/uninorm/compat-decomposition-tests: New file.
25778
25779         New module 'uninorm/compat-decomposition'.
25780         * lib/uninorm/decompose-internal.h: New file.
25781         * lib/uninorm/compat-decomposition.c: New file.
25782         * modules/uninorm/compat-decomposition: New file.
25783
25784         Tests for module 'uninorm/canonical-decomposition'.
25785         * tests/uninorm/test-canonical-decomposition.c: New file.
25786         * modules/uninorm/canonical-decomposition-tests: New file.
25787
25788         New module 'uninorm/canonical-decomposition'.
25789         * lib/uninorm/canonical-decomposition.c: New file.
25790         * modules/uninorm/canonical-decomposition: New file.
25791
25792         Tests for module 'uninorm/decomposition'.
25793         * tests/uninorm/test-decomposition.c: New file.
25794         * modules/uninorm/decomposition-tests: New file.
25795
25796         New module 'uninorm/decomposition'.
25797         * lib/uninorm/decomposition.c: New file.
25798         * modules/uninorm/decomposition: New file.
25799
25800         New module 'uninorm/decomposition-table'.
25801         * lib/uninorm/decomposition-table.h: New file.
25802         * lib/uninorm/decomposition-table.c: New file.
25803         * lib/uninorm/decomposition-table1.h: New file, generated by
25804         gen-uni-tables.
25805         * lib/uninorm/decomposition-table2.h: New file, generated by
25806         gen-uni-tables.
25807         * modules/uninorm/decomposition-table: New file.
25808
25809         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25810         (UC_DECOMP_*): New enumeration items.
25811         (get_decomposition): New function.
25812         (struct decomp_table): New type.
25813         (output_decomposition, output_decomposition_tables): New functions.
25814         (unicode_composition_exclusions): New variable.
25815         (fill_composition_exclusions, debug_output_composition_tables): New
25816         functions.
25817         (main): Accept one more argument. Invoke fill_composition_exclusions.
25818         Output decomposition and composition tables.
25819
25820         New module 'uninorm/base'.
25821         * lib/uninorm.h: New file.
25822         * lib/unictype.h: Update comment.
25823         * modules/uninorm/base: New file.
25824
25825 2009-02-21  David Lutterkort  <lutter@redhat.com>
25826
25827         Tests for module 'safe-alloc'.
25828         * tests/test-safe-alloc.c: New file.
25829         * modules/safe-alloc-tests: New file.
25830
25831         New module 'safe-alloc'.
25832         * lib/safe-alloc.h: New file.
25833         * lib/safe-alloc.c: New file.
25834         * m4/safe-alloc.m4: New file.
25835         * modules/safe-alloc: New file.
25836         * doc/safe-alloc.texi: New file.
25837         * doc/gnulib.texi: Include it.
25838         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25839         safe-alloc.
25840
25841 2009-02-18  Bruno Haible  <bruno@clisp.org>
25842
25843         Fix link error on non-glibc systems.
25844         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25845         variable.
25846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25847
25848 2009-02-18  Jim Meyering  <meyering@redhat.com>
25849
25850         fts: avoid used-uninitialized error due to recent change
25851         * lib/fts.c (fts_read): Guard uses of the new member,
25852         parent->fts_n_dirs_remaining, since it's not relevant for
25853         the parent of a directory specified on the command-line.
25854
25855 2009-02-17  James Youngman  <jay@gnu.org>
25856             Bruno Haible  <bruno@clisp.org>
25857
25858         * m4/include_next.m4: Reformulate comment.
25859
25860 2009-02-16  Jim Meyering  <meyering@redhat.com>
25861
25862         fts: add #if guards so that the fts_lgpl module still builds
25863         * lib/fts.c: Guard just-added hash-table-using parts with
25864         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25865         Reported by Simon Josefsson.
25866
25867 2009-02-15  Bruno Haible  <bruno@clisp.org>
25868
25869         * modules/array-mergesort-tests: New file.
25870         * tests/test-array-mergesort.c: New file.
25871
25872         New module 'array-mergesort'.
25873         * modules/array-mergesort: New file.
25874         * lib/array-mergesort.h: New file.
25875
25876 2009-02-15  Bruno Haible  <bruno@clisp.org>
25877
25878         Fix 2009-02-07 commit.
25879         * lib/gen-uni-tables.c (output_predicate, output_category,
25880         output_combclass, output_bidi_category, output_decimal_digit,
25881         output_digit, output_numeric, output_mirror, output_scripts,
25882         output_ident_category, output_simple_mapping): Fix format directives.
25883         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25884
25885 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25886
25887         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25888         fixes are available from IBM.
25889
25890 2009-02-13  Jim Meyering  <meyering@redhat.com>
25891
25892         fts: arrange not to stat non-directories in more cases
25893         This makes GNU find (when it doesn't need to stat each file)
25894         *much* more efficient at traversing reiserfs file systems.
25895         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25896         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25897         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25898         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25899         (leaf_optimization_applies): New function.
25900         (LCO_hash, LCO_compare): New helper functions.
25901         (link_count_optimize_ok): New function.
25902         (fts_stat): Initialize new member (if dir).
25903         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25904         we've just stat'ed a directory.  Skip the stat call when possible.
25905         ---
25906         Note this AFS-related exchange:
25907         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25908         and note find's pioctl call in find/fstype.c.
25909         But that is necessary only if you want to enable the
25910         optimization for AFS, and for now, I don't.
25911
25912         fts: move a function definition "up" (no semantic change)
25913         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25914         "up" to precede upcoming use of a related function.
25915
25916 2009-02-11  Jim Meyering  <meyering@redhat.com>
25917
25918         fts: correct internal computation of nlinks (optimization-related)
25919         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25920         whether the current entry is a directory, so don't test it.
25921
25922 2009-02-10  Bruno Haible  <bruno@clisp.org>
25923
25924         Tests for module 'uniwbrk/ulc-wordbreaks'.
25925         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25926         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25927         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25928
25929         Tests for module 'uniwbrk/u32-wordbreaks'.
25930         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25931         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25932
25933         Tests for module 'uniwbrk/u16-wordbreaks'.
25934         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25935         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25936
25937         Tests for module 'uniwbrk/u8-wordbreaks'.
25938         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25939         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25940
25941 2009-02-10  Bruno Haible  <bruno@clisp.org>
25942
25943         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25944         property.
25945         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25946         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25947         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25948
25949 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25950
25951         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25952         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25953
25954 2009-02-10  Bruno Haible  <bruno@clisp.org>
25955
25956         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25957         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25958         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25959         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25960         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25961         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25962
25963 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25964
25965         * lib/sockets.h (gl_fd_to_handle): New function.
25966
25967         * tests/test-sockets.c: Call gl_fd_to_handle.
25968
25969 2009-02-09  Bruno Haible  <bruno@clisp.org>
25970
25971         * doc/havelib.texi: Document the conventions on bi-arch systems.
25972
25973 2009-02-08  Bruno Haible  <bruno@clisp.org>
25974
25975         Document the AC_LIB_LINKFLAGS macro.
25976         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25977         * doc/gnulib.texi: Include it.
25978
25979 2009-02-08  Bruno Haible  <bruno@clisp.org>
25980
25981         Fix wrong order of sections, compared to TOC.
25982         * doc/gnulib.texi: Include relocatable-maint.texi after the
25983         "Regular expressions" node, not before.
25984
25985 2009-02-08  Bruno Haible  <bruno@clisp.org>
25986
25987         Tests for module 'unicase/totitle'.
25988         * modules/unicase/totitle-tests: New file.
25989
25990         Tests for module 'unicase/tolower'.
25991         * modules/unicase/tolower-tests: New file.
25992
25993         Tests for module 'unicase/toupper'.
25994         * modules/unicase/toupper-tests: New file.
25995         * tests/unicase/test-mapping-part1.h: New file.
25996         * tests/unicase/test-mapping-part2.h: New file.
25997
25998         New module 'unicase/totitle'.
25999         * modules/unicase/totitle: New file.
26000         * lib/unicase/totitle.c: New file.
26001
26002         New module 'unicase/tolower'.
26003         * modules/unicase/tolower: New file.
26004         * lib/unicase/tolower.c: New file.
26005
26006         New module 'unicase/toupper'.
26007         * modules/unicase/toupper: New file.
26008         * lib/unicase/toupper.c: New file.
26009         * lib/unicase/simple-mapping.h: New file.
26010
26011         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
26012         (mapping_table): New structure.
26013         (output_simple_mapping): New function.
26014         (main): Invoke output_simple_mapping_test and output_simple_mapping.
26015         * modules/gen-uni-tables (Description): Update.
26016         * lib/unicase/toupper.h: New file, automatically generated by
26017         gen-uni-tables.
26018         * lib/unicase/tolower.h: New file, automatically generated by
26019         gen-uni-tables.
26020         * lib/unicase/totitle.h: New file, automatically generated by
26021         gen-uni-tables.
26022         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
26023         gen-uni-tables.
26024         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
26025         gen-uni-tables.
26026         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
26027         gen-uni-tables.
26028
26029         New module 'unicase/base'.
26030         * modules/unicase/base: New file.
26031         * lib/unicase.h: New file.
26032
26033 2009-02-08  Bruno Haible  <bruno@clisp.org>
26034
26035         New module 'uniwbrk/ulc-wordbreaks'.
26036         * modules/uniwbrk/ulc-wordbreaks: New file.
26037         * lib/uniwbrk/ulc-wordbreaks.c: New file.
26038
26039         New module 'uniwbrk/u32-wordbreaks'.
26040         * modules/uniwbrk/u32-wordbreaks: New file.
26041         * lib/uniwbrk/u32-wordbreaks.c: New file.
26042
26043         New module 'uniwbrk/u16-wordbreaks'.
26044         * modules/uniwbrk/u16-wordbreaks: New file.
26045         * lib/uniwbrk/u16-wordbreaks.c: New file.
26046
26047         New module 'uniwbrk/u8-wordbreaks'.
26048         * modules/uniwbrk/u8-wordbreaks: New file.
26049         * lib/uniwbrk/u8-wordbreaks.c: New file.
26050         * lib/uniwbrk/u-wordbreaks.h: New file.
26051
26052         New module 'uniwbrk/table'.
26053         * modules/uniwbrk/table: New file.
26054         * lib/uniwbrk/wbrktable.h: New file.
26055         * lib/uniwbrk/wbrktable.c: New file.
26056
26057         New module 'uniwbrk/wordbreak-property'.
26058         * modules/uniwbrk/wordbreak-property: New file.
26059         * lib/uniwbrk/wordbreak-property.c: New file.
26060
26061         * lib/gen-uni-tables.c (WBP_*): New enum items.
26062         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
26063         (unicode_org_wbp): New variable.
26064         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
26065         New functions.
26066         (wbp_table): New structure.
26067         (output_wbp, output_wbrk_tables): New functions.
26068         (main): Accept additional argument. Invoke fill_org_wbp,
26069         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
26070         output_wbrk_tables.
26071         * modules/gen-uni-tables (Description): Update.
26072         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
26073         gen-uni-tables.
26074
26075         New module 'uniwbrk/base'.
26076         * modules/uniwbrk/base: New file.
26077         * lib/uniwbrk.h: New file.
26078
26079 2009-02-08  Bruno Haible  <bruno@clisp.org>
26080
26081         Update to Unicode 5.1.0.
26082         * lib/gen-uni-tables.c (is_property_alphabetic): Include
26083         U+2185..U+2188.
26084         (is_property_default_ignorable_code_point): Don't include characters
26085         of category Cc or Cs and not-a-characters.
26086         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
26087         U+0D79, U+109E, U+109F, U+A60C.
26088         * lib/unictype/bidi_of.h: Regenerated.
26089         * lib/unictype/blocks.h: Regenerated.
26090         * lib/unictype/categ_C.h: Regenerated.
26091         * lib/unictype/categ_Cf.h: Regenerated.
26092         * lib/unictype/categ_Cn.h: Regenerated.
26093         * lib/unictype/categ_L.h: Regenerated.
26094         * lib/unictype/categ_Ll.h: Regenerated.
26095         * lib/unictype/categ_Lm.h: Regenerated.
26096         * lib/unictype/categ_Lo.h: Regenerated.
26097         * lib/unictype/categ_Lu.h: Regenerated.
26098         * lib/unictype/categ_M.h: Regenerated.
26099         * lib/unictype/categ_Mc.h: Regenerated.
26100         * lib/unictype/categ_Me.h: Regenerated.
26101         * lib/unictype/categ_Mn.h: Regenerated.
26102         * lib/unictype/categ_N.h: Regenerated.
26103         * lib/unictype/categ_Nd.h: Regenerated.
26104         * lib/unictype/categ_Nl.h: Regenerated.
26105         * lib/unictype/categ_No.h: Regenerated.
26106         * lib/unictype/categ_P.h: Regenerated.
26107         * lib/unictype/categ_Pd.h: Regenerated.
26108         * lib/unictype/categ_Pe.h: Regenerated.
26109         * lib/unictype/categ_Pf.h: Regenerated.
26110         * lib/unictype/categ_Pi.h: Regenerated.
26111         * lib/unictype/categ_Po.h: Regenerated.
26112         * lib/unictype/categ_Ps.h: Regenerated.
26113         * lib/unictype/categ_S.h: Regenerated.
26114         * lib/unictype/categ_Sk.h: Regenerated.
26115         * lib/unictype/categ_Sm.h: Regenerated.
26116         * lib/unictype/categ_So.h: Regenerated.
26117         * lib/unictype/categ_of.h: Regenerated.
26118         * lib/unictype/combining.h: Regenerated.
26119         * lib/unictype/ctype_alnum.h: Regenerated.
26120         * lib/unictype/ctype_alpha.h: Regenerated.
26121         * lib/unictype/ctype_graph.h: Regenerated.
26122         * lib/unictype/ctype_lower.h: Regenerated.
26123         * lib/unictype/ctype_print.h: Regenerated.
26124         * lib/unictype/ctype_punct.h: Regenerated.
26125         * lib/unictype/ctype_upper.h: Regenerated.
26126         * lib/unictype/decdigit.h: Regenerated.
26127         * lib/unictype/digit.h: Regenerated.
26128         * lib/unictype/mirror.h: Regenerated.
26129         * lib/unictype/numeric.h: Regenerated.
26130         * lib/unictype/pr_alphabetic.h: Regenerated.
26131         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
26132         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
26133         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
26134         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
26135         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
26136         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
26137         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
26138         * lib/unictype/pr_combining.h: Regenerated.
26139         * lib/unictype/pr_dash.h: Regenerated.
26140         * lib/unictype/pr_decimal_digit.h: Regenerated.
26141         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
26142         * lib/unictype/pr_deprecated.h: Regenerated.
26143         * lib/unictype/pr_diacritic.h: Regenerated.
26144         * lib/unictype/pr_extender.h: Regenerated.
26145         * lib/unictype/pr_format_control.h: Regenerated.
26146         * lib/unictype/pr_grapheme_base.h: Regenerated.
26147         * lib/unictype/pr_grapheme_extend.h: Regenerated.
26148         * lib/unictype/pr_grapheme_link.h: Regenerated.
26149         * lib/unictype/pr_id_continue.h: Regenerated.
26150         * lib/unictype/pr_id_start.h: Regenerated.
26151         * lib/unictype/pr_ideographic.h: Regenerated.
26152         * lib/unictype/pr_ignorable_control.h: Regenerated.
26153         * lib/unictype/pr_lowercase.h: Regenerated.
26154         * lib/unictype/pr_math.h: Regenerated.
26155         * lib/unictype/pr_numeric.h: Regenerated.
26156         * lib/unictype/pr_other_alphabetic.h: Regenerated.
26157         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
26158         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
26159         * lib/unictype/pr_other_id_continue.h: Regenerated.
26160         * lib/unictype/pr_other_lowercase.h: Regenerated.
26161         * lib/unictype/pr_other_math.h: Regenerated.
26162         * lib/unictype/pr_punctuation.h: Regenerated.
26163         * lib/unictype/pr_sentence_terminal.h: Regenerated.
26164         * lib/unictype/pr_soft_dotted.h: Regenerated.
26165         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
26166         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
26167         * lib/unictype/pr_unified_ideograph.h: Regenerated.
26168         * lib/unictype/pr_uppercase.h: Regenerated.
26169         * lib/unictype/pr_xid_continue.h: Regenerated.
26170         * lib/unictype/pr_xid_start.h: Regenerated.
26171         * lib/unictype/pr_zero_width.h: Regenerated.
26172         * lib/unictype/scripts.h: Regenerated.
26173         * lib/unictype/scripts_byname.gperf: Regenerated.
26174         * lib/unictype/sy_java_ident.h: Regenerated.
26175         * lib/unilbrk/lbrkprop1.h: Regenerated.
26176         * lib/unilbrk/lbrkprop2.h: Regenerated.
26177         * tests/unictype/test-categ_C.c: Regenerated.
26178         * tests/unictype/test-categ_Cf.c: Regenerated.
26179         * tests/unictype/test-categ_Cn.c: Regenerated.
26180         * tests/unictype/test-categ_L.c: Regenerated.
26181         * tests/unictype/test-categ_Ll.c: Regenerated.
26182         * tests/unictype/test-categ_Lm.c: Regenerated.
26183         * tests/unictype/test-categ_Lo.c: Regenerated.
26184         * tests/unictype/test-categ_Lu.c: Regenerated.
26185         * tests/unictype/test-categ_M.c: Regenerated.
26186         * tests/unictype/test-categ_Mc.c: Regenerated.
26187         * tests/unictype/test-categ_Me.c: Regenerated.
26188         * tests/unictype/test-categ_Mn.c: Regenerated.
26189         * tests/unictype/test-categ_N.c: Regenerated.
26190         * tests/unictype/test-categ_Nd.c: Regenerated.
26191         * tests/unictype/test-categ_Nl.c: Regenerated.
26192         * tests/unictype/test-categ_No.c: Regenerated.
26193         * tests/unictype/test-categ_P.c: Regenerated.
26194         * tests/unictype/test-categ_Pd.c: Regenerated.
26195         * tests/unictype/test-categ_Pe.c: Regenerated.
26196         * tests/unictype/test-categ_Pf.c: Regenerated.
26197         * tests/unictype/test-categ_Pi.c: Regenerated.
26198         * tests/unictype/test-categ_Po.c: Regenerated.
26199         * tests/unictype/test-categ_Ps.c: Regenerated.
26200         * tests/unictype/test-categ_S.c: Regenerated.
26201         * tests/unictype/test-categ_Sk.c: Regenerated.
26202         * tests/unictype/test-categ_Sm.c: Regenerated.
26203         * tests/unictype/test-categ_So.c: Regenerated.
26204         * tests/unictype/test-ctype_alnum.c: Regenerated.
26205         * tests/unictype/test-ctype_alpha.c: Regenerated.
26206         * tests/unictype/test-ctype_graph.c: Regenerated.
26207         * tests/unictype/test-ctype_lower.c: Regenerated.
26208         * tests/unictype/test-ctype_print.c: Regenerated.
26209         * tests/unictype/test-ctype_punct.c: Regenerated.
26210         * tests/unictype/test-ctype_upper.c: Regenerated.
26211         * tests/unictype/test-decdigit.h: Regenerated.
26212         * tests/unictype/test-digit.h: Regenerated.
26213         * tests/unictype/test-numeric.h: Regenerated.
26214         * tests/unictype/test-pr_alphabetic.c: Regenerated.
26215         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
26216         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
26217         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
26218         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
26219         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
26220         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
26221         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
26222         * tests/unictype/test-pr_combining.c: Regenerated.
26223         * tests/unictype/test-pr_dash.c: Regenerated.
26224         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
26225         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
26226         * tests/unictype/test-pr_deprecated.c: Regenerated.
26227         * tests/unictype/test-pr_diacritic.c: Regenerated.
26228         * tests/unictype/test-pr_extender.c: Regenerated.
26229         * tests/unictype/test-pr_format_control.c: Regenerated.
26230         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
26231         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
26232         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
26233         * tests/unictype/test-pr_id_continue.c: Regenerated.
26234         * tests/unictype/test-pr_id_start.c: Regenerated.
26235         * tests/unictype/test-pr_ideographic.c: Regenerated.
26236         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
26237         * tests/unictype/test-pr_lowercase.c: Regenerated.
26238         * tests/unictype/test-pr_math.c: Regenerated.
26239         * tests/unictype/test-pr_numeric.c: Regenerated.
26240         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
26241         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
26242         Regenerated.
26243         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
26244         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
26245         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
26246         * tests/unictype/test-pr_other_math.c: Regenerated.
26247         * tests/unictype/test-pr_punctuation.c: Regenerated.
26248         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
26249         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
26250         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
26251         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
26252         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
26253         * tests/unictype/test-pr_uppercase.c: Regenerated.
26254         * tests/unictype/test-pr_xid_continue.c: Regenerated.
26255         * tests/unictype/test-pr_xid_start.c: Regenerated.
26256         * tests/unictype/test-pr_zero_width.c: Regenerated.
26257
26258         Update to Unicode 5.1.0.
26259         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
26260         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
26261         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
26262         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
26263         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
26264         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
26265         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
26266         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
26267         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
26268         (nonspacing_table_ind): Update.
26269         * tests/uniwidth/test-uc_width2.sh: Update expected result.
26270
26271         Update to Unicode 5.1.0.
26272         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
26273         code transform.
26274         * lib/uniname/uniname.c (unicode_character_name,
26275         unicode_name_character): Add the range 0x1Fxxx to the code transform.
26276         * lib/uniname/uninames.h: Regenerated.
26277         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
26278
26279 2009-02-07  Bruno Haible  <bruno@clisp.org>
26280
26281         Merge gen-ctype and gen-lbrk into a single program.
26282         * lib/gen-uni-tables.c: New file, incorporating
26283         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26284         Add directory prefixes to the names of the generated files.
26285         * lib/unictype/gen-ctype.c: Remove file.
26286         * lib/unilbrk/gen-lbrk.c: Remove file.
26287         * modules/gen-uni-tables: New file.
26288         * modules/unictype/gen-ctype: Remove file.
26289         * modules/unilbrk/gen-lbrk: Remove file.
26290
26291 2009-02-07  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26294
26295         New module 'unistr/u32-strcoll'.
26296         * modules/unistr/u32-strcoll: New file.
26297         * lib/unistr/u32-strcoll.c: New file.
26298
26299         New module 'unistr/u16-strcoll'.
26300         * modules/unistr/u16-strcoll: New file.
26301         * lib/unistr/u16-strcoll.c: New file.
26302
26303         New module 'unistr/u8-strcoll'.
26304         * modules/unistr/u8-strcoll: New file.
26305         * lib/unistr/u8-strcoll.c: New file.
26306         * lib/unistr/u-strcoll.h: New file.
26307
26308 2009-02-07  Bruno Haible  <bruno@clisp.org>
26309
26310         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26311         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26312         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26313         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26314         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26315         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26316
26317 2009-02-07  Bruno Haible  <bruno@clisp.org>
26318
26319         Make 64-bit clean.
26320         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26321         output_combclass, output_bidi_category, output_decimal_digit,
26322         output_digit, output_numeric, output_mirror, output_scripts,
26323         output_ident_category): Use proper width specifier in format strings.
26324
26325 2009-02-07  Bruno Haible  <bruno@clisp.org>
26326
26327         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26328         failure behaviour.
26329
26330 2009-02-07  Jim Meyering  <meyering@redhat.com>
26331
26332         regex: avoid compilation failure with upcoming gcc-4.4
26333         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26334         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26335         "... error: integer overflow in preprocessor expression".
26336
26337 2009-02-05  Ben Pfaff  <blp@gnu.org>
26338
26339         Fix link errors on Windows when close module is used.
26340         * modules/close: Add $(LIB_CLOSE) to Link section.
26341         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26342         $(LIB_CLOSE) on Windows.
26343
26344 2009-02-05  Jim Meyering  <meyering@redhat.com>
26345
26346         still avoid unused-parameter warnings, but do it cleanly
26347         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26348         (get_fs_usage): Cast to void instead.
26349         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26350         (dev_from_mount_options, read_file_system_list): Cast to void.
26351         Prompted by Bruno Haible.
26352
26353 2009-02-04  Jim Meyering  <meyering@redhat.com>
26354
26355         fsusage.c: correct copyright year
26356         * lib/fsusage.c: Reflect year in which the change is pushed into
26357
26358         avoid misc. warnings
26359         * lib/fsusage.c (UNUSED_PARAM): Define.
26360         (get_fs_usage): Mark parameter "disk" as unused.
26361         * lib/getugroups.c (getgrent): Use "void" in prototype.
26362         * lib/mountlist.c: Mark unused parameters.
26363         (read_file_system_list): Declare a local with "const".
26364         * lib/nanosleep.c (getnow): Declare static.
26365         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26366
26367         dirfd: set errno upon failure
26368         * lib/dirfd.c: Include <errno.h>.
26369         Set errno to ENOTSUP when returning -1.
26370         * modules/dirfd (Depends-on): Add errno.
26371         Suggested by John Kodis <kodis@comcast.net>.
26372
26373 2009-02-01  Bruno Haible  <bruno@clisp.org>
26374
26375         Don't assume sizeof (long) >= sizeof (void *).
26376         * lib/memcmp.c: Include stdint.h.
26377         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26378         srcp2 to 'const byte *'.
26379         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26380         types to uintptr_t.
26381         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26382         * modules/memcmp (Depends-on): Add stdint.
26383         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26384
26385 2009-01-30  Eric Blake  <ebb9@byu.net>
26386
26387         fix more require-before-expand issues
26388         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26389         expand, AC_PROG_AWK.
26390         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26391
26392 2009-01-28  Eric Blake  <ebb9@byu.net>
26393
26394         version-etc: use consistent URL formatting
26395         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26396         Improve formatting.  Use fputs for string without %.
26397
26398 2009-01-28  Jim Meyering  <meyering@redhat.com>
26399
26400         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26401         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26402         "underquoted definition of NAME" from autoconf-2.59.
26403
26404 2009-01-28  Bruno Haible  <bruno@clisp.org>
26405
26406         * doc/gnulib.texi: Add "Obsolete modules" to index.
26407
26408 2009-01-28  Jim Meyering  <meyering@redhat.com>
26409
26410         useless-if-before-free: recognize more variants
26411         * build-aux/useless-if-before-free: Also recognize e.g.,
26412         if (NULL != p) free (p);
26413
26414 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26415
26416         test-getaddrinfo: skip (don't fail) this test when there's no network
26417         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26418         on the presumption that it means you lack network access.
26419
26420 2009-01-26  Jim Meyering  <meyering@redhat.com>
26421
26422         fflush: avoid warnings on modern systems
26423         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26424         pos and result, into scopes where they're used.
26425
26426 2009-01-26  Eric Blake  <ebb9@byu.net>
26427
26428         Silence warning reintroduced by recent extensions patch.
26429         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26430         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26431         autoconf.
26432
26433         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26434         * m4/00gnulib.m4: New file.
26435         * gnulib-tool (func_get_filelist): Always use it.
26436         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26437         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26438
26439 2009-01-25  Bruno Haible  <bruno@clisp.org>
26440
26441         Make test-quotearg work on MacOS X and AIX.
26442         * tests/test-quotearg.sh: New file.
26443         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26444         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26445         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26446         include <libintl.h>.
26447         (fake_locale): Remove variable.
26448         (gettext, dgettext, dcgettext): Remove functions.
26449         (main): Instead of setting a fake locale, set a real locale. Call
26450         textdomain and bindtextdomain.
26451         * modules/quotearg-tests (Files): Add the new files.
26452         (Depends-on): Add gettext, setenv, unsetenv.
26453         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26454         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26455         Augment TESTS_ENVIRONMENT.
26456
26457 2009-01-25  Bruno Haible  <bruno@clisp.org>
26458
26459         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26460         fr_FR.ISO8859-1 locale on MacOS X.
26461         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26462         ja_JP.eucJP locale on MacOS X.
26463         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26464         zh_CN.GB18030 locale on MacOS X.
26465
26466 2009-01-25  Bruno Haible  <bruno@clisp.org>
26467
26468         Avoid link errors on MacOS X 10.3.
26469         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26470         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26471
26472 2009-01-25  Bruno Haible  <bruno@clisp.org>
26473
26474         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26475         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26476         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26477         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26478         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26479         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26480         posix_spawnattr_init, posix_spawnattr_setsigmask,
26481         posix_spawnattr_setflags, posix_spawnattr_destroy.
26482
26483         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26484         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26485         * modules/execute (Files): Remove m4/posix_spawn.m4.
26486         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26487         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26488         posix_spawnattr_init, posix_spawnattr_setsigmask,
26489         posix_spawnattr_setflags, posix_spawnattr_destroy.
26490
26491 2009-01-25  Bruno Haible  <bruno@clisp.org>
26492
26493         * lib/glthread/threadlib.c: Include <stdlib.h>.
26494
26495 2009-01-25  Bruno Haible  <bruno@clisp.org>
26496
26497         * lib/glthread/threadlib.c (dummy): New declaration.
26498
26499 2009-01-25  Bruno Haible  <bruno@clisp.org>
26500
26501         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26502         multibyte characters also for the GB18030 encoding. Don't crash when
26503         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26504
26505 2009-01-25  Bruno Haible  <bruno@clisp.org>
26506
26507         Avoid redefining 'struct random_data' on OSF/1 5.1.
26508         * lib/stdlib.in.h: Include <random.h> if it exists.
26509         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26510         HAVE_RANDOM_H. Include <random.h> when testing whether
26511         'struct random_data' exists.
26512         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26513
26514 2009-01-25  Bruno Haible  <bruno@clisp.org>
26515
26516         Don't install charset.alias on MacOS X >= 10.3.
26517         * lib/localcharset.c (DARWIN7): New macro.
26518         (get_charset_aliases): Hardcode the result for Darwin7.
26519         * modules/localcharset (install-exec-local): Don't install
26520         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26521
26522 2009-01-25  Bruno Haible  <bruno@clisp.org>
26523
26524         Don't install charset.alias on mingw and Cygwin.
26525         * modules/localcharset (install-exec-local): Don't install
26526         charset.alias on mingw and Cygwin, if the file does not yet exist.
26527         The result for these platforms is hardcoded in localcharset.c.
26528
26529 2009-01-25  Bruno Haible  <bruno@clisp.org>
26530
26531         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26532         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26533         before requiring AC_USE_SYSTEM_EXTENSIONS.
26534
26535 2009-01-25  Jim Meyering  <meyering@redhat.com>
26536
26537         c-strtod: avoid warnings
26538         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26539         "assignment discards qualifiers from pointer target type" warnings.
26540
26541 2009-01-24  Bruno Haible  <bruno@clisp.org>
26542
26543         Add support for non-UTF-8 locales on MacOS X.
26544         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26545         canonical encodings. For Darwin 7 and newer, don't map traditional
26546         encodings to UTF-8.
26547         Reported by Vincent Lefevre <vincent@vinc17.org>
26548         at <http://savannah.gnu.org/bugs/?25235>.
26549
26550 2009-01-24  Bruno Haible  <bruno@clisp.org>
26551
26552         * doc/gnulib.texi (Obsolete modules): New section.
26553         Reported by Mike Frysinger <vapier@gentoo.org>.
26554
26555 2009-01-24  Bruno Haible  <bruno@clisp.org>
26556
26557         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26558         (%.dvi): New rule.
26559
26560 2009-01-24  Bruno Haible  <bruno@clisp.org>
26561
26562         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26563         Reported by Eric Blake.
26564
26565 2009-01-24  Bruno Haible  <bruno@clisp.org>
26566
26567         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26568         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26569         Reported by Gary V. Vaughan <gary@gnu.org>.
26570
26571 2009-01-24  Bruno Haible  <bruno@clisp.org>
26572
26573         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26574
26575 2009-01-23  Bruno Haible  <bruno@clisp.org>
26576
26577         Make c-strtod, c-strtold usable in libraries.
26578         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26579         (C_STRTOD): Call strdup instead of xstrdup.
26580         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26581         * modules/c-strtold (Depends-on): Likewise.
26582         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26583         * NEWS: Mention the change.
26584         Reported by Michael Gold <mgold@ncf.ca>.
26585
26586 2009-01-23  Jim Meyering  <meyering@redhat.com>
26587
26588         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26589         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26590         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26591
26592 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26593
26594         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26595         GNU CoreUtils.
26596         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26597         * modules/version-etc (Description): Update.
26598
26599 2009-01-22  Bruno Haible  <bruno@clisp.org>
26600
26601         Cache the C locale object.
26602         * lib/c-strtod.c (c_locale_cache): New variable.
26603         (c_locale): New function.
26604         (C_STRTOD): Use it, and don't call freelocale.
26605         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26606         Suggested by Paolo Bonzini.
26607
26608 2009-01-21  Bruno Haible  <bruno@clisp.org>
26609
26610         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26611         conditions other than overflow.
26612
26613 2009-01-21  Bruno Haible  <bruno@clisp.org>
26614
26615         * lib/c-strtod.c: Include errno.h.
26616         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26617         value from STRTOD_L and STRTOD.
26618
26619 2009-01-21  Bruno Haible  <bruno@clisp.org>
26620         and Jim Meyering  <meyering@redhat.com>
26621
26622         nanosleep: skip configure test (fail it) for apple universal builds
26623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26624         universal builds, assume that nanosleep does not work.
26625         * modules/nanosleep (Depends-on): Add multiarch.
26626
26627         mktime: skip configure test (fail it) for apple universal builds
26628         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26629         universal builds, assume that mktime does not work.
26630         * modules/mktime (Depends-on): Add multiarch.
26631
26632 2009-01-21  Eric Blake  <ebb9@byu.net>
26633
26634         multiarch: avoid expand-before-require warning
26635         * modules/multiarch (configure.ac): Require, rather than expand,
26636         gl_MULTIARCH.
26637         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26638         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26639         enforce that all clients require it.  Partial reversion of
26640         2008-12-29 patch.
26641
26642         error: avoid expand-before-require warning
26643         * modules/errno (configure.ac): Require, rather than expand,
26644         gl_HEADER_ERRNO_H.
26645         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26646         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26647         enforce that all clients require it.
26648
26649         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26650         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26651         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26652         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26653
26654 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26655
26656         Revert:
26657         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26658
26659         regex: do not depend on obsolete modules.
26660         * modules/regex: Remove memcmp and memmove.
26661
26662 2009-01-20  Bruno Haible  <bruno@clisp.org>
26663
26664         Make the 'link' module link on Windows NT 4.
26665         * lib/link.c (_WIN32_WINNT): Don't define.
26666         (CreateHardLinkFuncType): New type.
26667         (CreateHardLinkFunc, initialized): New variables.
26668         (initialize): New function.
26669         (link): Invoke CreateHardLink indirectly through the function pointer.
26670
26671 2009-01-20  Bruno Haible  <bruno@clisp.org>
26672
26673         Fix compilation failure on mingw.
26674         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26675
26676 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26677
26678         * doc/c-strtod.texi: Mention a couple of restrictions.
26679
26680 2009-01-20  Jim Meyering  <meyering@redhat.com>
26681
26682         gettimeofday: move more declarations out of functions
26683         * lib/gettimeofday.c: Move extern declarations of tzset and
26684         gmtime out of containing functions.  Prompted by Bruno Haible.
26685
26686 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26687
26688         regex: do not depend on obsolete modules.
26689         * modules/regex: Remove memcmp and memmove.
26690
26691 2009-01-19  Bruno Haible  <bruno@clisp.org>
26692
26693         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26694         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26695         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26696         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26697         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26698
26699 2009-01-19  Bruno Haible  <bruno@clisp.org>
26700
26701         * tests/test-link.c: Include <errno.h>.
26702         (main): Exit with code 77 when a hard link cannot be created due to
26703         the file system.
26704         * tests/test-link.sh: Skip test when a hard link cannot be created due
26705         to the file system.
26706         Suggested by Eric Blake.
26707
26708 2009-01-19  Martin Lambers  <marlam@marlam.de>
26709
26710         * modules/link-tests: New file.
26711         * tests/test-link.sh: New file.
26712         * tests/test-link.c: New file.
26713
26714 2009-01-19  Eric Blake  <ebb9@byu.net>
26715
26716         doc: mention another function added in cygwin 1.7.0
26717         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26718         Another new function in cygwin 1.7.
26719
26720 2009-01-19  Bruno Haible  <bruno@clisp.org>
26721
26722         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26723         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26724         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26725         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26726         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26727         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26728         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26729         * m4/md4.m4 (gl_MD4): Likewise.
26730         * m4/md5.m4 (gl_MD5): Likewise.
26731         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26732         * m4/sha1.m4 (gl_SHA1): Likewise.
26733         * m4/sha256.m4 (gl_SHA256): Likewise.
26734         * m4/sha512.m4 (gl_SHA512): Likewise.
26735
26736 2009-01-19  Bruno Haible  <bruno@clisp.org>
26737
26738         * modules/uniname/uniname-tests (Depends-on): Add progname.
26739         * tests/uniname/test-uninames.c: Include progname.h.
26740         (main): Call set_program_name.
26741
26742         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26743         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26744         (main): Call set_program_name.
26745
26746         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26747         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26748         (main): Call set_program_name.
26749
26750         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26751         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26752         (main): Call set_program_name.
26753
26754         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26755         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26756         (main): Call set_program_name.
26757
26758         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26759         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26760         (main): Call set_program_name.
26761
26762         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26763         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26764         (main): Call set_program_name.
26765
26766         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26767         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26768         (main): Call set_program_name.
26769
26770         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26771         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26772         (main): Call set_program_name.
26773
26774 2009-01-19  Eric Blake  <ebb9@byu.net>
26775
26776         test-unistd: test previous patch
26777         * tests/test-unistd.c: Test *_FILENO macros.
26778
26779         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26780         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26781         Guarantee a definition.
26782         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26783         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26784         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26785         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26786         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26787         Likewise.
26788         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26789         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26790         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26791         Likewise.
26792         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26793         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26794         (STDERR_FILENO): Likewise.
26795         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26796         (STDERR_FILENO): Likewise.
26797         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26798         (STDERR_FILENO): Likewise.
26799         Reported by Elbert Pol.
26800
26801 2009-01-19  Eric Blake  <ebb9@byu.net>
26802
26803         doc: mention more functions added in cygwin 1.7.0
26804         * doc/posix-functions/abort.texi (abort): Update wording related
26805         to cygwin.
26806         * doc/posix-functions/daylight.texi (daylight): Likewise.
26807         * doc/posix-functions/optarg.texi (optarg): Likewise.
26808         * doc/posix-functions/optarg.texi (opterr): Likewise.
26809         * doc/posix-functions/optarg.texi (optind): Likewise.
26810         * doc/posix-functions/optarg.texi (optopt): Likewise.
26811         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26812         worked in 1.5.x, and was withdrawn in 1.7.
26813         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26814         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26815         cygwin versions.
26816         * doc/posix-functions/perror.texi (perror): Likewise.
26817         * doc/posix-functions/printf.texi (printf): Likewise.
26818         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26819         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26820         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26821         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26822         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26823         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26824         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26825         Likewise.
26826         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26827         Likewise.
26828         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26829         this function.
26830         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26831         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26832         Likewise.
26833         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26834         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26835         * doc/posix-functions/confstr.texi (confstr): Likewise.
26836         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26837         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26838         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26839         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26840         * doc/posix-functions/fputws.texi (fputws): Likewise.
26841         * doc/posix-functions/fwide.texi (fwide): Likewise.
26842         * doc/posix-functions/getwc.texi (getwc): Likewise.
26843         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26844         * doc/posix-functions/putwc.texi (putwc): Likewise.
26845         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26846         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26847         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26848         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26849         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26850         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26851         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26852         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26853         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26854         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26855         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26856
26857 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26858
26859         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26860         * lib/ioctl.c: Include <sys/ioctl.h>.
26861
26862 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26863
26864         * modules/getdate-tests (Depends-on): Add progname.
26865         * tests/test-getdate.c: Use progname module, to avoid link errors
26866         on non-glibc systems.
26867
26868 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26869
26870         * modules/filenamecat-tests (Depends-on): Add progname.
26871         * modules/fstrcmp-tests (Depends-on): Likewise.
26872
26873         * tests/test-filenamecat.c: Use progname module, to avoid link
26874         errors on non-glibc systems.
26875         * tests/test-fstrcmp.c: Likewise.
26876
26877 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26878
26879         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26880         * lib/gettimeofday.c: Move extern declaration out of function.
26881
26882 2009-01-18  Bruno Haible  <bruno@clisp.org>
26883
26884         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26885         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26886         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26887
26888 2009-01-18  Bruno Haible  <bruno@clisp.org>
26889
26890         * lib/strftime.c (MEMPCPY): Remove unused macro.
26891         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26892
26893 2009-01-18  Martin Lambers  <marlam@marlam.de>
26894
26895         New module 'link'.
26896         * lib/unistd.in.h (link): New declaration.
26897         * lib/link.c: New file.
26898         * m4/link.m4: New file.
26899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26900         HAVE_LINK.
26901         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26902         * modules/link: New file.
26903         * doc/posix-functions/link.texi: Mention the new module.
26904
26905 2009-01-18  Bruno Haible  <bruno@clisp.org>
26906
26907         * tests/test-avltree_list.c (main): Call set_program_name.
26908         * tests/test-avltree_oset.c (main): Likewise.
26909         * tests/test-obstack-printf.c: Include progname.h.
26910         (main): Call set_program_name.
26911         * tests/test-quotearg.c: Include progname.h.
26912         (main): Call set_program_name.
26913         * tests/test-xmemdup0.c: Include progname.h.
26914         (main): Call set_program_name.
26915
26916 2009-01-18  Bruno Haible  <bruno@clisp.org>
26917
26918         New module 'alphasort'.
26919         * lib/dirent.in.h (alphasort): New declaration.
26920         * lib/alphasort.c: New file, from glibc with modifications.
26921         * m4/alphasort.m4: New file.
26922         * modules/alphasort: New file.
26923         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26924         HAVE_ALPHASORT.
26925         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26926         HAVE_ALPHASORT.
26927         * doc/posix-functions/alphasort.texi: Mention the new module and the
26928         portability problems.
26929
26930 2009-01-18  Bruno Haible  <bruno@clisp.org>
26931
26932         New module 'scandir'.
26933         * lib/dirent.in.h (scandir): New declaration.
26934         * lib/scandir.c: New file, from glibc with modifications.
26935         * m4/scandir.m4: New file.
26936         * modules/scandir: New file.
26937         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26938         HAVE_SCANDIR.
26939         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26940         HAVE_SCANDIR.
26941         * doc/posix-functions/scandir.texi: Mention the new module and the
26942         portability problems.
26943
26944 2009-01-17  Bruno Haible  <bruno@clisp.org>
26945
26946         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26947         Update documentation.
26948         (func_remove_suffix): Escape all dots in the suffix. Update
26949         documentation.
26950         (func_filter_filelist): Update documentation.
26951         Reported by Ralf Wildenhues.
26952
26953 2009-01-17  Bruno Haible  <bruno@clisp.org>
26954
26955         * modules/dprintf-posix-tests: New file.
26956         * tests/test-dprintf-posix.sh: New file.
26957         * tests/test-dprintf-posix.c: New file.
26958
26959         New modules 'dprintf', 'dprintf-posix'.
26960         * lib/stdio.in.h (dprintf): New declaration.
26961         * lib/dprintf.c: New file.
26962         * m4/dprintf.m4: New file.
26963         * m4/dprintf-posix.m4: New file.
26964         * modules/dprintf: New file.
26965         * modules/dprintf-posix: New file.
26966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26967         HAVE_DPRINTF, REPLACE_DPRINTF.
26968         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26969         HAVE_DPRINTF, REPLACE_DPRINTF.
26970         * doc/posix-functions/dprintf.texi: Mention the new modules.
26971
26972 2009-01-17  Bruno Haible  <bruno@clisp.org>
26973
26974         * modules/vdprintf-posix-tests: New file.
26975         * tests/test-vdprintf-posix.sh: New file.
26976         * tests/test-vdprintf-posix.c: New file.
26977
26978         New modules 'vdprintf', 'vdprintf-posix'.
26979         * lib/stdio.in.h (vdprintf): New declaration.
26980         * lib/vdprintf.c: New file.
26981         * m4/vdprintf.m4: New file.
26982         * m4/vdprintf-posix.m4: New file.
26983         * modules/vdprintf: New file.
26984         * modules/vdprintf-posix: New file.
26985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26986         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26987         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26988         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26989         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26990
26991 2009-01-17  Bruno Haible  <bruno@clisp.org>
26992
26993         Fix replacement of fopen on mingw.
26994         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26995         mingw.
26996
26997 2009-01-17  Bruno Haible  <bruno@clisp.org>
26998
26999         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
27000         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
27001
27002 2009-01-17  Bruno Haible  <bruno@clisp.org>
27003
27004         Avoid test-fflush2.sh failure on mingw.
27005         * tests/test-fflush2.c: Include binary-io.h.
27006         (main): Put standard input into binary mode.
27007         * modules/fflush-tests (Depends-on): Add binary-io.
27008
27009 2009-01-17  Bruno Haible  <bruno@clisp.org>
27010
27011         * lib/wchar.in.h: In another particular situation, include only the
27012         system's <wchar.h> file.
27013         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
27014         Reported by Albert Chin-A-Young <china@thewrittenword.com>
27015         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
27016
27017 2009-01-17  Bruno Haible  <bruno@clisp.org>
27018
27019         Support for stripping executables in --enable-relocatable.
27020         * build-aux/install-reloc: Expect one more argument, or an environment
27021         variable RELOC_STRIP_PROG. If set, strip the destination program and
27022         its wrapper.
27023         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
27024         RELOC_STRIP_PROG.
27025         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
27026         to set RELOCATABLE_STRIP.
27027         * NEWS: Mention the new Makefile requirement.
27028
27029 2009-01-17  Bruno Haible  <bruno@clisp.org>
27030
27031         * build-aux/install-reloc: Remove debugging information left over by
27032         C compiler on MacOS X.
27033
27034 2009-01-17  Bruno Haible  <bruno@clisp.org>
27035
27036         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
27037         * lib/progreloc.c (find_executable): Fix type of pointer passed to
27038         _NSGetExecutablePath.
27039
27040 2009-01-16  Jim Meyering  <meyering@redhat.com>
27041
27042         strerror: avoid warnings about discarding "const"
27043         * lib/strerror.c (rpl_strerror): Instead of returning a const
27044         string from each and every "case", use a variable, and add a single
27045         cast after the switch.
27046
27047 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
27048
27049         * lib/arpa_inet.in.h: Add extern "C" block for C++.
27050
27051 2009-01-16  Bruno Haible  <bruno@clisp.org>
27052
27053         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
27054         array initializer syntax that also works in C++ mode.
27055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27056
27057 2009-01-16  Jim Meyering  <meyering@redhat.com>
27058
27059         poll: suppress a warning
27060         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
27061         to ignore "...unsigned expression < 0 is always false" warnings.
27062
27063 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
27064
27065         poll: remove declarations of unused variables
27066         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
27067         sockbuf and optlen.
27068
27069 2009-01-15  Bruno Haible  <bruno@clisp.org>
27070
27071         Make fflush-after-ungetc POSIX compliant on BSD systems.
27072         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
27073         (clear_ungetc_buffer): Implement also for other systems.
27074         (rpl_fflush): On glibc systems, invoke
27075         clear_ungetc_buffer_preserving_position. Otherwise, invoke
27076         clear_ungetc_buffer after fetching the stream's position, not before.
27077
27078 2009-01-15  Bruno Haible  <bruno@clisp.org>
27079
27080         Make fflush-after-ungetc POSIX compliant on glibc systems.
27081         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
27082         after ungetc.
27083         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
27084         (rpl_fflush): On glibc systems, simply call the system's fflush
27085         function after clearing the ungetc buffer.
27086         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
27087         Instead, lseek only to the end of file, then use the system's fseeko
27088         for the rest. On glibc systems, reset the EOF indicator bit.
27089
27090 2009-01-15  Jim Meyering  <meyering@redhat.com>
27091
27092         openmp.m4: revert quote-adding change, for portability to older autoconf
27093         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
27094         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
27095         Simon Josefsson noticed the problem when using autoconf-2.61.
27096
27097 2009-01-15  Bruno Haible  <bruno@clisp.org>
27098
27099         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
27100         * tests/test-fflush2.c (ASSERT): Always fail.
27101         (main): Add two tests for fflush() after ungetc(), taking into account
27102         the Austin Group's clarification.
27103         Suggested by Eric Blake.
27104
27105 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
27106
27107         mktime.m4: remove K&R-style function prototypes
27108         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
27109         for the Sun C++ compiler.
27110
27111 2009-01-14  Bruno Haible  <bruno@clisp.org>
27112
27113         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
27114         while including <wchar.h>.
27115         * lib/wchar.in.h: In two particular situations on HP-UX, include only
27116         the system's <wchar.h> file.
27117         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27118
27119 2009-01-14  Bruno Haible  <bruno@clisp.org>
27120
27121         * m4/csharp.m4: Don't mention gettext on the serial number line.
27122         * m4/csharpexec.m4: Likewise.
27123         * m4/eaccess.m4: Likewise.
27124         * m4/javaexec.m4: Likewise.
27125         * m4/sig_atomic_t.m4: Likewise.
27126         * m4/tmpdir.m4: Likewise.
27127         * m4/intldir.m4: Bump gettext version.
27128         * m4/lib-ld.m4: Likewise.
27129
27130 2009-01-14  Bruno Haible  <bruno@clisp.org>
27131
27132         * lib/progname.c (set_program_name): Add more comments.
27133         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27134
27135 2009-01-14  Simon Josefsson  <simon@josefsson.org>
27136
27137         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
27138         were sys/stat.h does not define it.
27139
27140 2009-01-14  Jim Meyering  <meyering@redhat.com>
27141
27142         many *.m4 files: improve m4 quoting
27143         99% of this change was performed by running the following commands:
27144         git ls-files | grep '\.m4$' | xargs perl -pi \
27145           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
27146           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27147           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
27148           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
27149         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
27150         The remainder were to add Copyright dates, increment serial numbers,
27151         undo some changes in comments, exclude m4/intl.m4, and add quotes
27152         around the "1" in ",1" where the unusual spacing prohibited the
27153         above regexps from doing the job.  For more details, see
27154         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
27155         * m4/acl.m4: Modified.
27156         * m4/afs.m4: Likewise.
27157         * m4/alloca.m4: Likewise.
27158         * m4/argp.m4: Likewise.
27159         * m4/argz.m4: Likewise.
27160         * m4/atexit.m4: Likewise.
27161         * m4/bison-i18n.m4: Likewise.
27162         * m4/bison.m4: Likewise.
27163         * m4/byteswap.m4: Likewise.
27164         * m4/c-stack.m4: Likewise.
27165         * m4/c-strtod.m4: Likewise.
27166         * m4/calloc.m4: Likewise.
27167         * m4/canonicalize-lgpl.m4: Likewise.
27168         * m4/chown.m4: Likewise.
27169         * m4/clock_time.m4: Likewise.
27170         * m4/codeset.m4: Likewise.
27171         * m4/copy-file.m4: Likewise.
27172         * m4/csharp.m4: Likewise.
27173         * m4/csharpcomp.m4: Likewise.
27174         * m4/csharpexec.m4: Likewise.
27175         * m4/d-ino.m4: Likewise.
27176         * m4/d-type.m4: Likewise.
27177         * m4/dirfd.m4: Likewise.
27178         * m4/double-slash-root.m4: Likewise.
27179         * m4/eaccess.m4: Likewise.
27180         * m4/eealloc.m4: Likewise.
27181         * m4/environ.m4: Likewise.
27182         * m4/errno_h.m4: Likewise.
27183         * m4/euidaccess.m4: Likewise.
27184         * m4/execute.m4: Likewise.
27185         * m4/fatal-signal.m4: Likewise.
27186         * m4/fchdir.m4: Likewise.
27187         * m4/fcntl_h.m4: Likewise.
27188         * m4/fileblocks.m4: Likewise.
27189         * m4/filenamecat.m4: Likewise.
27190         * m4/findprog.m4: Likewise.
27191         * m4/flexmember.m4: Likewise.
27192         * m4/fnmatch.m4: Likewise.
27193         * m4/fopen.m4: Likewise.
27194         * m4/fpending.m4: Likewise.
27195         * m4/fprintf-posix.m4: Likewise.
27196         * m4/free.m4: Likewise.
27197         * m4/frexp.m4: Likewise.
27198         * m4/frexpl.m4: Likewise.
27199         * m4/fsusage.m4: Likewise.
27200         * m4/ftruncate.m4: Likewise.
27201         * m4/gc-camellia.m4: Likewise.
27202         * m4/gc-random.m4: Likewise.
27203         * m4/gc.m4: Likewise.
27204         * m4/getaddrinfo.m4: Likewise.
27205         * m4/getcwd-abort-bug.m4: Likewise.
27206         * m4/getcwd-path-max.m4: Likewise.
27207         * m4/getdate.m4: Likewise.
27208         * m4/getdomainname.m4: Likewise.
27209         * m4/getgroups.m4: Likewise.
27210         * m4/gethostname.m4: Likewise.
27211         * m4/gethrxtime.m4: Likewise.
27212         * m4/getline.m4: Likewise.
27213         * m4/getloadavg.m4: Likewise.
27214         * m4/getndelim2.m4: Likewise.
27215         * m4/getpass.m4: Likewise.
27216         * m4/gettext.m4: Likewise.
27217         * m4/gettime.m4: Likewise.
27218         * m4/gettimeofday.m4: Likewise.
27219         * m4/gnulib-common.m4: Likewise.
27220         * m4/group-member.m4: Likewise.
27221         * m4/host-os.m4: Likewise.
27222         * m4/iconv.m4: Likewise.
27223         * m4/iconv_open.m4: Likewise.
27224         * m4/inet_ntop.m4: Likewise.
27225         * m4/inet_pton.m4: Likewise.
27226         * m4/inline.m4: Likewise.
27227         * m4/intldir.m4: Likewise.
27228         * m4/intlmacosx.m4: Likewise.
27229         * m4/intmax.m4: Likewise.
27230         * m4/intmax_t.m4: Likewise.
27231         * m4/inttypes.m4: Likewise.
27232         * m4/inttypes_h.m4: Likewise.
27233         * m4/inttypes-pri.m4: Likewise.
27234         * m4/isapipe.m4: Likewise.
27235         * m4/isnand.m4: Likewise.
27236         * m4/isnanf.m4: Likewise.
27237         * m4/isnanl.m4: Likewise.
27238         * m4/javacomp.m4: Likewise.
27239         * m4/javaexec.m4: Likewise.
27240         * m4/jm-winsz1.m4: Likewise.
27241         * m4/jm-winsz2.m4: Likewise.
27242         * m4/lchown.m4: Likewise.
27243         * m4/lcmessage.m4: Likewise.
27244         * m4/ldexpl.m4: Likewise.
27245         * m4/lib-ld.m4: Likewise.
27246         * m4/lib-link.m4: Likewise.
27247         * m4/libsigsegv.m4: Likewise.
27248         * m4/link-follow.m4: Likewise.
27249         * m4/localcharset.m4: Likewise.
27250         * m4/locale-fr.m4: Likewise.
27251         * m4/locale-ja.m4: Likewise.
27252         * m4/locale-tr.m4: Likewise.
27253         * m4/locale-zh.m4: Likewise.
27254         * m4/lock.m4: Likewise.
27255         * m4/longlong.m4: Likewise.
27256         * m4/ls-mntd-fs.m4: Likewise.
27257         * m4/lstat.m4: Likewise.
27258         * m4/malloc.m4: Likewise.
27259         * m4/mathl.m4: Likewise.
27260         * m4/mbrtowc.m4: Likewise.
27261         * m4/mbstate_t.m4: Likewise.
27262         * m4/mbswidth.m4: Likewise.
27263         * m4/memchr.m4: Likewise.
27264         * m4/memcmp.m4: Likewise.
27265         * m4/memcpy.m4: Likewise.
27266         * m4/memmem.m4: Likewise.
27267         * m4/memmove.m4: Likewise.
27268         * m4/mempcpy.m4: Likewise.
27269         * m4/memrchr.m4: Likewise.
27270         * m4/memset.m4: Likewise.
27271         * m4/minmax.m4: Likewise.
27272         * m4/mkdir-slash.m4: Likewise.
27273         * m4/mkdtemp.m4: Likewise.
27274         * m4/mktime.m4: Likewise.
27275         * m4/mmap-anon.m4: Likewise.
27276         * m4/mountlist.m4: Likewise.
27277         * m4/nanosleep.m4: Likewise.
27278         * m4/nls.m4: Likewise.
27279         * m4/nocrash.m4: Likewise.
27280         * m4/open.m4: Likewise.
27281         * m4/openat.m4: Likewise.
27282         * m4/openmp.m4: Likewise.
27283         * m4/pathmax.m4: Likewise.
27284         * m4/perl.m4: Likewise.
27285         * m4/physmem.m4: Likewise.
27286         * m4/pipe.m4: Likewise.
27287         * m4/po.m4: Likewise.
27288         * m4/poll.m4: Likewise.
27289         * m4/posixtm.m4: Likewise.
27290         * m4/posixver.m4: Likewise.
27291         * m4/printf-frexp.m4: Likewise.
27292         * m4/printf-frexpl.m4: Likewise.
27293         * m4/printf-posix.m4: Likewise.
27294         * m4/printf-posix-rpl.m4: Likewise.
27295         * m4/printf.m4: Likewise.
27296         * m4/progtest.m4: Likewise.
27297         * m4/putenv.m4: Likewise.
27298         * m4/readline.m4: Likewise.
27299         * m4/readlink.m4: Likewise.
27300         * m4/readutmp.m4: Likewise.
27301         * m4/realloc.m4: Likewise.
27302         * m4/regex.m4: Likewise.
27303         * m4/relocatable.m4: Likewise.
27304         * m4/relocatable-lib.m4: Likewise.
27305         * m4/rename-dest-slash.m4: Likewise.
27306         * m4/rename.m4: Likewise.
27307         * m4/rmdir-errno.m4: Likewise.
27308         * m4/rmdir.m4: Likewise.
27309         * m4/roundf.m4: Likewise.
27310         * m4/roundl.m4: Likewise.
27311         * m4/rpmatch.m4: Likewise.
27312         * m4/save-cwd.m4: Likewise.
27313         * m4/selinux-selinux-h.m4: Likewise.
27314         * m4/setenv.m4: Likewise.
27315         * m4/settime.m4: Likewise.
27316         * m4/sig2str.m4: Likewise.
27317         * m4/sig_atomic_t.m4: Likewise.
27318         * m4/signalblocking.m4: Likewise.
27319         * m4/signbit.m4: Likewise.
27320         * m4/sigpipe.m4: Likewise.
27321         * m4/sockets.m4: Likewise.
27322         * m4/sockpfaf.m4: Likewise.
27323         * m4/st_dm_mode.m4: Likewise.
27324         * m4/stat-time.m4: Likewise.
27325         * m4/stdbool.m4: Likewise.
27326         * m4/stdint.m4: Likewise.
27327         * m4/stdint_h.m4: Likewise.
27328         * m4/stpcpy.m4: Likewise.
27329         * m4/stpncpy.m4: Likewise.
27330         * m4/strcase.m4: Likewise.
27331         * m4/strchrnul.m4: Likewise.
27332         * m4/strcspn.m4: Likewise.
27333         * m4/strdup.m4: Likewise.
27334         * m4/strftime.m4: Likewise.
27335         * m4/strndup.m4: Likewise.
27336         * m4/strnlen.m4: Likewise.
27337         * m4/strpbrk.m4: Likewise.
27338         * m4/strptime.m4: Likewise.
27339         * m4/strsep.m4: Likewise.
27340         * m4/strtod.m4: Likewise.
27341         * m4/strtoimax.m4: Likewise.
27342         * m4/strtok_r.m4: Likewise.
27343         * m4/strtol.m4: Likewise.
27344         * m4/strtoll.m4: Likewise.
27345         * m4/strtoul.m4: Likewise.
27346         * m4/strtoull.m4: Likewise.
27347         * m4/strtoumax.m4: Likewise.
27348         * m4/strverscmp.m4: Likewise.
27349         * m4/threadlib.m4: Likewise.
27350         * m4/timegm.m4: Likewise.
27351         * m4/tm_gmtoff.m4: Likewise.
27352         * m4/tmpdir.m4: Likewise.
27353         * m4/tmpfile.m4: Likewise.
27354         * m4/tzset.m4: Likewise.
27355         * m4/uintmax_t.m4: Likewise.
27356         * m4/unlinkdir.m4: Likewise.
27357         * m4/unlocked-io.m4: Likewise.
27358         * m4/uptime.m4: Likewise.
27359         * m4/userspec.m4: Likewise.
27360         * m4/utimbuf.m4: Likewise.
27361         * m4/utime.m4: Likewise.
27362         * m4/utimes-null.m4: Likewise.
27363         * m4/utimes.m4: Likewise.
27364         * m4/vararrays.m4: Likewise.
27365         * m4/vasnprintf.m4: Likewise.
27366         * m4/vfprintf-posix.m4: Likewise.
27367         * m4/vprintf-posix.m4: Likewise.
27368         * m4/wait-process.m4: Likewise.
27369         * m4/wchar_t.m4: Likewise.
27370         * m4/wint_t.m4: Likewise.
27371         * m4/write-any-file.m4: Likewise.
27372         * m4/yield.m4: Likewise.
27373
27374 2009-01-13  Bruno Haible  <bruno@clisp.org>
27375
27376         Avoid test-copy-file.sh failures when ACL support insufficient.
27377         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27378         TESTS_ENVIRONMENT.
27379         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27380         Reported by Jim Meyering.
27381
27382 2009-01-13  Bruno Haible  <bruno@clisp.org>
27383
27384         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27385         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27386         * modules/unistdio/u8-printf-parse (Files): Likewise.
27387         * modules/unistdio/u32-printf-parse (Files): Likewise.
27388         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27389
27390 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27391
27392         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27393         and m4/inttypes_h.m4 too.
27394
27395 2009-01-12  Eric Blake  <ebb9@byu.net>
27396
27397         tests: IRIX 6.2 cc can't compile -0.0 into .data
27398         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27399         rather than at compile-time.
27400         * tests/test-floorl.c (minus_zero): Likewise.
27401         * tests/test-frexpl.c (minus_zero): Likewise.
27402         * tests/test-isnan.c (minus_zerol): Likewise.
27403         * tests/test-isnanl.h (minus_zero): Likewise.
27404         * tests/test-ldexpl.c (minus_zero): Likewise.
27405         * tests/test-roundl.c (minus_zero): Likewise.
27406         * tests/test-signbit.c (minus_zerol): Likewise.
27407         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27408         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27409         * tests/test-truncl.c (minus_zero): Likewise.
27410         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27411         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27412         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27413
27414 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27415
27416         regex: fix glibc bug 9697
27417         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27418         handling.
27419
27420 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27421
27422         regex: fix glibc bug 697
27423         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27424         being NULL also if there are no backreferences.
27425
27426 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27427
27428         regex: merge glibc changes
27429         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27430         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27431         re_string_skip_chars, re_string_reconstruct): Likewise.
27432         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27433
27434 2009-01-07  Jim Meyering  <meyering@redhat.com>
27435
27436         poll: filter through cppi
27437         * lib/poll.c: Indent cpp directives to reflect nesting.
27438
27439 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27440
27441         poll: don't return uninitialized
27442         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27443
27444 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27445
27446         avoid compile failure on AIX 6.1
27447         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27448         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27449
27450 2009-01-04  Jim Meyering  <meyering@redhat.com>
27451
27452         remove duplicate inclusion of <stdio.h>
27453         * tests/test-fprintf-posix.c: Likewise.
27454         * tests/test-printf-posix.c: Likewise.
27455         * tests/test-snprintf-posix.c: Likewise.
27456         * tests/test-sprintf-posix.c: Likewise.
27457         * tests/test-vasprintf-posix.c: Likewise.
27458         * tests/test-vfprintf-posix.c: Likewise.
27459         * tests/test-vprintf-posix.c: Likewise.
27460         * tests/test-vsnprintf-posix.c: Likewise.
27461         * tests/test-vsprintf-posix.c: Likewise.
27462
27463 2009-01-03  Jim Meyering  <meyering@redhat.com>
27464
27465         gnulib-tool: fix sed-based filtering
27466         * gnulib-tool (func_filter_filelist): Remove extra backslash
27467         in sed_fff_filter definition.
27468
27469 2009-01-02  Jim Meyering  <meyering@redhat.com>
27470
27471         strftime: avoid compilation failure on Solaris 2.6
27472         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27473         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27474         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27475         be available.  Reported by Tom G. Christensen.  Details in
27476         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27477
27478 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27479             Bruno Haible  <bruno@clisp.org>
27480
27481         Speed up gnulib-tool by doing more string processing through shell
27482         built-ins.
27483         * gnulib-tool (fast_func_append): New variable.
27484         (func_remove_prefix, func_remove_suffix): New functions.
27485         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27486         (func_filter_filelist): New function.
27487         (func_get_dependencies): Use func_remove_suffix instead of sed.
27488         (func_get_automake_snippet): Use func_filter_filelist instead of a
27489         subshell and sed invocation.
27490
27491 2009-01-01  Bruno Haible  <bruno@clisp.org>
27492
27493         Fix a security bug.
27494         * gnulib-tool (func_import, import, update): Don't allow the characters
27495         '"', '$', '`', '\' in macro arguments that become part of commands that
27496         are evaluated.
27497
27498 2009-01-01  Bruno Haible  <bruno@clisp.org>
27499
27500         * gnulib-tool (func_reset_sigpipe): Add more comments.
27501
27502 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27503
27504         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27505         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27506         already know the answer.
27507
27508 2009-01-01  Jim Meyering  <meyering@redhat.com>
27509
27510         * lib/version-etc.c (version_etc_va): Update copyright year.
27511
27512 2008-12-30  Bruno Haible  <bruno@clisp.org>
27513
27514         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27515         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27516         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27517
27518 2008-12-29  Eric Blake  <ebb9@byu.net>
27519
27520         multiarch: avoid autoconf AC_REQUIRE bug
27521         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27522         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27523         2.63 and older.
27524         Reported by Bruno Haible, and analyzed in
27525         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27526
27527 2008-12-29  Bruno Haible  <bruno@clisp.org>
27528
27529         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27530         files in subdirectories correctly.
27531         Reported by Ralf Wildenhues.
27532
27533 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27534
27535         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27536         rather than 'join FILE -', for Solaris join.
27537
27538 2008-12-29  Bruno Haible  <bruno@clisp.org>
27539
27540         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27541         quoting.
27542         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27543         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27544         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27545         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27546         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27547         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27548         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27549         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27550         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27551         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27552         * m4/nls.m4 (AM_NLS): Likewise.
27553         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27554         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27555         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27556         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27557         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27558         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27559         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27560         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27561         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27562         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27563         * m4/xsize.m4 (gl_XSIZE): Likewise.
27564         Suggested by Jim Meyering.
27565
27566 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27567
27568         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27569         * lib/parse-duration.c: use a switch instead of cascading if's.
27570
27571 2008-12-29  Eric Blake  <ebb9@byu.net>
27572
27573         wchar.h: supply WEOF on Irix 5.3
27574         * lib/wchar.in.h (wint_t): Also supply WEOF.
27575         * lib/wctype.in.h (wint_t): Likewise.
27576         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27577         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27578         Reported by Tom G. Christensen.
27579
27580 2008-12-26  Bruno Haible  <bruno@clisp.org>
27581
27582         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27583         i486, i586, i686.
27584
27585 2008-12-26  Bruno Haible  <bruno@clisp.org>
27586
27587         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27588
27589 2008-12-26  Bruno Haible  <bruno@clisp.org>
27590
27591         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27592         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27593         not __STDC_CONSTANT_MACROS.
27594         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27595
27596 2008-12-25  Bruno Haible  <bruno@clisp.org>
27597
27598         Add support for universal builds to vasnprintf.
27599         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27600         universal builds, guess no.
27601         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27602         * modules/vasprintf-posix (Depends-on): Likewise.
27603         * modules/fprintf-posix (Depends-on): Likewise.
27604         * modules/vfprintf-posix (Depends-on): Likewise.
27605         * modules/snprintf-posix (Depends-on): Likewise.
27606         * modules/vsnprintf-posix (Depends-on): Likewise.
27607         * modules/sprintf-posix (Depends-on): Likewise.
27608         * modules/vsprintf-posix (Depends-on): Likewise.
27609         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27610         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27611         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27612         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27613         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27614         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27615         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27616
27617         Add support for universal builds to <inttypes.h>.
27618         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27619         _SCNu64_PREFIX): In Apple
27620         universal builds, define directly, using _LP64.
27621         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27622         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27623         * modules/inttypes (Depends-on): Add multiarch.
27624         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27625
27626         Add support for universal builds to <stdint.h>.
27627         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27628         universal builds, define directly, using _LP64.
27629         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27630         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27631         and size_t.
27632         * modules/stdint (Depends-on): Add multiarch.
27633         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27634
27635         New module 'multiarch'.
27636         * modules/multiarch: New file.
27637         * m4/multiarch.m4: New file.
27638
27639 2008-12-25  Bruno Haible  <bruno@clisp.org>
27640
27641         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27642
27643 2008-12-25  Bruno Haible  <bruno@clisp.org>
27644
27645         * modules/btowc (License): Relicense under LGPLv2+.
27646         * modules/mbsinit (License): Likewise.
27647         * modules/mbrtowc (License): Likewise.
27648         * modules/wcrtomb (License): Likewise.
27649         * modules/streq (License): Likewise.
27650         Reported by David Lutterkort <lutter@redhat.com>.
27651
27652 2008-12-23  Bruno Haible  <bruno@clisp.org>
27653
27654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27655
27656 2008-12-23  Bruno Haible  <bruno@clisp.org>
27657
27658         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27660         GETADDRINFO_LIB, not in LIBS.
27661         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27662         * modules/canon-host (Link): Likewise.
27663         * NEWS: Mention the change.
27664         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27665         GETADDRINFO_LIB.
27666
27667 2008-12-22  Bruno Haible  <bruno@clisp.org>
27668
27669         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27670         * doc/posix-functions/iswalpha_l.texi: Likewise.
27671         * doc/posix-functions/iswblank_l.texi: Likewise.
27672         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27673         * doc/posix-functions/iswctype_l.texi: Likewise.
27674         * doc/posix-functions/iswdigit_l.texi: Likewise.
27675         * doc/posix-functions/iswgraph_l.texi: Likewise.
27676         * doc/posix-functions/iswlower_l.texi: Likewise.
27677         * doc/posix-functions/iswprint_l.texi: Likewise.
27678         * doc/posix-functions/iswpunct_l.texi: Likewise.
27679         * doc/posix-functions/iswspace_l.texi: Likewise.
27680         * doc/posix-functions/iswupper_l.texi: Likewise.
27681         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27682         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27683         * doc/posix-functions/open_wmemstream.texi: Likewise.
27684         * doc/posix-functions/swscanf.texi: Likewise.
27685         * doc/posix-functions/towctrans_l.texi: Likewise.
27686         * doc/posix-functions/towlower.texi: Likewise.
27687         * doc/posix-functions/towlower_l.texi: Likewise.
27688         * doc/posix-functions/towupper.texi: Likewise.
27689         * doc/posix-functions/towupper_l.texi: Likewise.
27690         * doc/posix-functions/vfwprintf.texi: Likewise.
27691         * doc/posix-functions/vfwscanf.texi: Likewise.
27692         * doc/posix-functions/vswscanf.texi: Likewise.
27693         * doc/posix-functions/vwprintf.texi: Likewise.
27694         * doc/posix-functions/vwscanf.texi: Likewise.
27695         * doc/posix-functions/wcpcpy.texi: Likewise.
27696         * doc/posix-functions/wcpncpy.texi: Likewise.
27697         * doc/posix-functions/wcscasecmp.texi: Likewise.
27698         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27699         * doc/posix-functions/wcscoll_l.texi: Likewise.
27700         * doc/posix-functions/wcsdup.texi: Likewise.
27701         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27702         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27703         * doc/posix-functions/wcsnlen.texi: Likewise.
27704         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27705         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27706         * doc/posix-functions/wctrans_l.texi: Likewise.
27707         * doc/posix-functions/wctype_l.texi: Likewise.
27708         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27709         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27710         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27711         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27712         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27713         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27714         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27715         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27716         * doc/glibc-functions/wcschrnul.texi: Likewise.
27717         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27718         * doc/glibc-functions/wcstod_l.texi: Likewise.
27719         * doc/glibc-functions/wcstof_l.texi: Likewise.
27720         * doc/glibc-functions/wcstol_l.texi: Likewise.
27721         * doc/glibc-functions/wcstold_l.texi: Likewise.
27722         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27723         * doc/glibc-functions/wcstoq.texi: Likewise.
27724         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27725         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27726         * doc/glibc-functions/wcstouq.texi: Likewise.
27727         * doc/glibc-functions/wmempcpy.texi: Likewise.
27728
27729 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27730             Eric Blake  <ebb9@byu.net>
27731             Paolo Bonzini  <bonzini@gnu.org>
27732             Bruno Haible  <bruno@clisp.org>
27733
27734         Make c-stack work on Haiku.
27735         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27736         (c_stack_action): Use SA_ONSTACK flag.
27737
27738 2008-12-22  Bruno Haible  <bruno@clisp.org>
27739
27740         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27741
27742 2008-12-22  Bruno Haible  <bruno@clisp.org>
27743
27744         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27745         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27746         being overridden.
27747         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27748         New macros.
27749         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27751         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27752         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27753
27754 2008-12-22  Bruno Haible  <bruno@clisp.org>
27755
27756         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27757         from test code.
27758
27759 2008-12-22  Eric Blake  <ebb9@byu.net>
27760
27761         Avoid gcc warnings on cygwin.
27762         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27763         Avoid unused variable.
27764         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27765         Likewise.
27766
27767 2008-12-22  Bruno Haible  <bruno@clisp.org>
27768
27769         Remove HAVE_MBRTOWC conditionals.
27770         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27771         (mbscasecmp): Assume mbrtowc function.
27772         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27773         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27774         * lib/mbschr.c: Include mbuiter.h unconditionally.
27775         (mbschr): Assume mbrtowc function.
27776         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27777         (mbscspn): Assume mbrtowc function.
27778         * lib/mbslen.c: Include mbuiter.h unconditionally.
27779         (mbslen): Assume mbrtowc function.
27780         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27781         (mbsncasecmp): Assume mbrtowc function.
27782         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27783         (mbsnlen): Assume mbrtowc function.
27784         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27785         (mbspbrk): Assume mbrtowc function.
27786         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27787         (mbspcasecmp): Assume mbrtowc function.
27788         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27789         (mbsrchr): Assume mbrtowc function.
27790         * lib/mbssep.c: Include mbuiter.h unconditionally.
27791         (mbssep): Assume mbrtowc function.
27792         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27793         (mbsspn): Assume mbrtowc function.
27794         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27795         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27796         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27797         (mbstok_r): Assume mbrtowc function.
27798         * lib/propername.c: Include mbuiter.h unconditionally.
27799         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27800         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27801         (trim2): Assume mbrtowc function.
27802         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27803         (mbsnwidth): Assume mbrtowc function.
27804         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27805         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27806         fallback definitions.
27807         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27808
27809 2008-12-22  Bruno Haible  <bruno@clisp.org>
27810
27811         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27812
27813 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27814
27815         * modules/regex: Request emulations for the mb*/wc* functions we need.
27816         * m4/regex.m4: Don't look for those functions here.
27817         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27818
27819 2008-12-22  Bruno Haible  <bruno@clisp.org>
27820
27821         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27822
27823 2008-12-21  Bruno Haible  <bruno@clisp.org>
27824
27825         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27826         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27827         (Include): Remove conditionalization.
27828         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27829         (Include): Remove conditionalization.
27830         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27831         (Include): Remove conditionalization.
27832         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27833         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27834         * NEWS: Mention the change.
27835         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27836         via Sergey Poznyakoff <gray@gnu.org.ua>.
27837
27838 2008-12-21  Bruno Haible  <bruno@clisp.org>
27839
27840         * MODULES.html.sh (Extended multibyte and wide character utilities
27841         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27842         wcrtomb, wcsrtombs.
27843         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27844         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27845         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27846         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27847
27848 2008-12-21  Bruno Haible  <bruno@clisp.org>
27849
27850         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27851
27852 2008-12-21  Bruno Haible  <bruno@clisp.org>
27853
27854         * modules/wcsnrtombs-tests: New file.
27855         * tests/test-wcsnrtombs1.sh: New file.
27856         * tests/test-wcsnrtombs2.sh: New file.
27857         * tests/test-wcsnrtombs3.sh: New file.
27858         * tests/test-wcsnrtombs4.sh: New file.
27859         * tests/test-wcsnrtombs.c: New file.
27860
27861         New module 'wcsnrtombs'.
27862         * lib/wchar.in.h (wcsnrtombs): New declaration.
27863         * lib/wcsnrtombs.c: New file.
27864         * lib/wcsrtombs-state.c: New file.
27865         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27866         (internal_state): Remove variable.
27867         * m4/wcsnrtombs.m4: New file.
27868         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27869         compilation units.
27870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27871         HAVE_WCSNRTOMBS.
27872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27873         HAVE_WCSNRTOMBS.
27874         * modules/wcsnrtombs: New file.
27875         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27876         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27877
27878 2008-12-21  Bruno Haible  <bruno@clisp.org>
27879
27880         * modules/wcsrtombs-tests: New file.
27881         * tests/test-wcsrtombs1.sh: New file.
27882         * tests/test-wcsrtombs2.sh: New file.
27883         * tests/test-wcsrtombs3.sh: New file.
27884         * tests/test-wcsrtombs4.sh: New file.
27885         * tests/test-wcsrtombs.c: New file.
27886
27887         New module 'wcsrtombs'.
27888         * lib/wchar.in.h (wcsrtombs): New declaration.
27889         * lib/wcsrtombs.c: New file.
27890         * m4/wcsrtombs.m4: New file.
27891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27892         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27894         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27895         * modules/wcsrtombs: New file.
27896         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27897         bugs.
27898
27899 2008-12-21  Bruno Haible  <bruno@clisp.org>
27900
27901         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27902         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27904         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27905         if not correct.
27906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27907         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27908         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27909         m4/locale-zh.m4, m4/codeset.m4.
27910         * doc/posix-functions/wcrtomb.texi: Document the bug.
27911
27912 2008-12-21  Bruno Haible  <bruno@clisp.org>
27913
27914         Work around a btowc() bug on IRIX 6.5.
27915         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27916         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27917         REPLACE_WTOBC if not.
27918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27919         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27920         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27921
27922 2008-12-21  Bruno Haible  <bruno@clisp.org>
27923
27924         * modules/wcrtomb-tests: New file.
27925         * tests/test-wcrtomb.sh: New file.
27926         * tests/test-wcrtomb.c: New file.
27927
27928         New module 'wcrtomb'.
27929         * lib/wchar.in.h (wcrtomb): New declaration.
27930         * lib/wcrtomb.c: New file.
27931         * m4/wcrtomb.m4: New file.
27932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27933         HAVE_WCRTOMB.
27934         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27935         HAVE_WCRTOMB.
27936         * modules/wcrtomb: New file.
27937         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27938
27939 2008-12-21  Bruno Haible  <bruno@clisp.org>
27940
27941         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27942         * modules/mbsrtowcs (Files): Likewise.
27943         * modules/wctob (Files): Likewise.
27944         * modules/c-strcase-tests (Files): Likewise.
27945         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27946         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27947         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27948         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27949         * modules/vasnprintf-posix-tests (Files): Likewise.
27950
27951 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27952
27953         gitlog-to-changelog: pass all command-line arguments to git-log
27954         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27955         it is sometimes convenient to filter the commits in various ways.
27956         gitlog-to-changelog only allows --since to specify a start date,
27957         but git-log itself supports many other filtering mechanisms.
27958         At the moment, I want to filter by branch name.  Rather than
27959         adding a --branch option to gitlog-to-changelog, it seems more
27960         flexible to simply pass all options directly to git-log and let
27961         git do the work.  Notice that this effectively makes --since a
27962         redundant option for gitlog-to-changelog, but removing it would
27963         require current usage to change since calls would then require
27964         an additional '--'.
27965
27966 2008-12-21  Bruno Haible  <bruno@clisp.org>
27967
27968         * modules/mbsnrtowcs-tests: New file.
27969         * tests/test-mbsnrtowcs1.sh: New file.
27970         * tests/test-mbsnrtowcs2.sh: New file.
27971         * tests/test-mbsnrtowcs3.sh: New file.
27972         * tests/test-mbsnrtowcs4.sh: New file.
27973         * tests/test-mbsnrtowcs.c: New file.
27974
27975         New module 'mbsnrtowcs'.
27976         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27977         * lib/mbsnrtowcs.c: New file.
27978         * lib/mbsrtowcs-state.c: New file.
27979         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27980         (internal_state): Remove variable.
27981         * m4/mbsnrtowcs.m4: New file.
27982         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27983         compilation units.
27984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27985         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27986         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27987         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27988         * modules/mbsnrtowcs: New file.
27989         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27990         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27991         portability problem.
27992
27993 2008-12-21  Bruno Haible  <bruno@clisp.org>
27994
27995         Work around mbsrtowcs bug.
27996         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27997         (gl_FUNC_MBSRTOWCS): Invoke it.
27998         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27999         m4/locale-zh.m4.
28000         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
28001
28002 2008-12-21  Bruno Haible  <bruno@clisp.org>
28003
28004         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
28005
28006 2008-12-21  Bruno Haible  <bruno@clisp.org>
28007
28008         Update doc for AIX.
28009         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
28010         16-bit wchar_t type.
28011         * doc/posix-functions/btowc.texi: Likewise.
28012         * doc/posix-functions/fgetwc.texi: Likewise.
28013         * doc/posix-functions/fgetws.texi: Likewise.
28014         * doc/posix-functions/fputwc.texi: Likewise.
28015         * doc/posix-functions/fputws.texi: Likewise.
28016         * doc/posix-functions/fwide.texi: Likewise.
28017         * doc/posix-functions/fwprintf.texi: Likewise.
28018         * doc/posix-functions/fwscanf.texi: Likewise.
28019         * doc/posix-functions/getwchar.texi: Likewise.
28020         * doc/posix-functions/getwc.texi: Likewise.
28021         * doc/posix-functions/iswalnum.texi: Likewise.
28022         * doc/posix-functions/iswalpha.texi: Likewise.
28023         * doc/posix-functions/iswblank.texi: Likewise.
28024         * doc/posix-functions/iswcntrl.texi: Likewise.
28025         * doc/posix-functions/iswctype.texi: Likewise.
28026         * doc/posix-functions/iswdigit.texi: Likewise.
28027         * doc/posix-functions/iswgraph.texi: Likewise.
28028         * doc/posix-functions/iswlower.texi: Likewise.
28029         * doc/posix-functions/iswprint.texi: Likewise.
28030         * doc/posix-functions/iswpunct.texi: Likewise.
28031         * doc/posix-functions/iswspace.texi: Likewise.
28032         * doc/posix-functions/iswupper.texi: Likewise.
28033         * doc/posix-functions/iswxdigit.texi: Likewise.
28034         * doc/posix-functions/mbrtowc.texi: Likewise.
28035         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28036         * doc/posix-functions/mbstowcs.texi: Likewise.
28037         * doc/posix-functions/mbtowc.texi: Likewise.
28038         * doc/posix-functions/putwchar.texi: Likewise.
28039         * doc/posix-functions/putwc.texi: Likewise.
28040         * doc/posix-functions/swprintf.texi: Likewise.
28041         * doc/posix-functions/tolower.texi: Likewise.
28042         * doc/posix-functions/toupper.texi: Likewise.
28043         * doc/posix-functions/towctrans.texi: Likewise.
28044         * doc/posix-functions/ungetwc.texi: Likewise.
28045         * doc/posix-functions/vswprintf.texi: Likewise.
28046         * doc/posix-functions/wcrtomb.texi: Likewise.
28047         * doc/posix-functions/wcscat.texi: Likewise.
28048         * doc/posix-functions/wcschr.texi: Likewise.
28049         * doc/posix-functions/wcscmp.texi: Likewise.
28050         * doc/posix-functions/wcscoll.texi: Likewise.
28051         * doc/posix-functions/wcscpy.texi: Likewise.
28052         * doc/posix-functions/wcscspn.texi: Likewise.
28053         * doc/posix-functions/wcsftime.texi: Likewise.
28054         * doc/posix-functions/wcslen.texi: Likewise.
28055         * doc/posix-functions/wcsncat.texi: Likewise.
28056         * doc/posix-functions/wcsncmp.texi: Likewise.
28057         * doc/posix-functions/wcsncpy.texi: Likewise.
28058         * doc/posix-functions/wcspbrk.texi: Likewise.
28059         * doc/posix-functions/wcsrchr.texi: Likewise.
28060         * doc/posix-functions/wcsrtombs.texi: Likewise.
28061         * doc/posix-functions/wcsspn.texi: Likewise.
28062         * doc/posix-functions/wcsstr.texi: Likewise.
28063         * doc/posix-functions/wcstod.texi: Likewise.
28064         * doc/posix-functions/wcstof.texi: Likewise.
28065         * doc/posix-functions/wcstoimax.texi: Likewise.
28066         * doc/posix-functions/wcstok.texi: Likewise.
28067         * doc/posix-functions/wcstold.texi: Likewise.
28068         * doc/posix-functions/wcstoll.texi: Likewise.
28069         * doc/posix-functions/wcstol.texi: Likewise.
28070         * doc/posix-functions/wcstombs.texi: Likewise.
28071         * doc/posix-functions/wcstoull.texi: Likewise.
28072         * doc/posix-functions/wcstoul.texi: Likewise.
28073         * doc/posix-functions/wcstoumax.texi: Likewise.
28074         * doc/posix-functions/wcswidth.texi: Likewise.
28075         * doc/posix-functions/wcsxfrm.texi: Likewise.
28076         * doc/posix-functions/wctob.texi: Likewise.
28077         * doc/posix-functions/wctomb.texi: Likewise.
28078         * doc/posix-functions/wctrans.texi: Likewise.
28079         * doc/posix-functions/wctype.texi: Likewise.
28080         * doc/posix-functions/wcwidth.texi: Likewise.
28081         * doc/posix-functions/wmemchr.texi: Likewise.
28082         * doc/posix-functions/wmemcmp.texi: Likewise.
28083         * doc/posix-functions/wmemcpy.texi: Likewise.
28084         * doc/posix-functions/wmemmove.texi: Likewise.
28085         * doc/posix-functions/wmemset.texi: Likewise.
28086         * doc/posix-functions/wprintf.texi: Likewise.
28087         * doc/posix-functions/wscanf.texi: Likewise.
28088
28089 2008-12-21  Bruno Haible  <bruno@clisp.org>
28090
28091         Update doc for HP-UX 11.11.
28092         * doc/posix-functions/btowc.texi: Clarify that the function is missing
28093         in HP-UX version 11.00, not in all versions of HP-UX 11.
28094         * doc/posix-functions/fwide.texi: Likewise.
28095         * doc/posix-functions/fwprintf.texi: Likewise.
28096         * doc/posix-functions/fwscanf.texi: Likewise.
28097         * doc/posix-functions/inet_ntop.texi: Likewise.
28098         * doc/posix-functions/inet_pton.texi: Likewise.
28099         * doc/posix-functions/mbrlen.texi: Likewise.
28100         * doc/posix-functions/mbrtowc.texi: Likewise.
28101         * doc/posix-functions/mbsinit.texi: Likewise.
28102         * doc/posix-functions/mbsrtowcs.texi: Likewise.
28103         * doc/posix-functions/swprintf.texi: Likewise.
28104         * doc/posix-functions/swscanf.texi: Likewise.
28105         * doc/posix-functions/towctrans.texi: Likewise.
28106         * doc/posix-functions/vfwprintf.texi: Likewise.
28107         * doc/posix-functions/vswprintf.texi: Likewise.
28108         * doc/posix-functions/vwprintf.texi: Likewise.
28109         * doc/posix-functions/wcrtomb.texi: Likewise.
28110         * doc/posix-functions/wcsrtombs.texi: Likewise.
28111         * doc/posix-functions/wcsstr.texi: Likewise.
28112         * doc/posix-functions/wctob.texi: Likewise.
28113         * doc/posix-functions/wctrans.texi: Likewise.
28114         * doc/posix-functions/wmemchr.texi: Likewise.
28115         * doc/posix-functions/wmemcmp.texi: Likewise.
28116         * doc/posix-functions/wmemcpy.texi: Likewise.
28117         * doc/posix-functions/wmemmove.texi: Likewise.
28118         * doc/posix-functions/wmemset.texi: Likewise.
28119         * doc/posix-functions/wprintf.texi: Likewise.
28120         * doc/posix-functions/wscanf.texi: Likewise.
28121
28122 2008-12-21  Bruno Haible  <bruno@clisp.org>
28123
28124         Work around a portability problem.
28125         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
28126         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
28127
28128 2008-12-20  Bruno Haible  <bruno@clisp.org>
28129
28130         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
28131         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
28132         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
28133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
28134         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
28135
28136         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
28137         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
28138         set.
28139         (GNULIB_defined_mbstate_t): New macro.
28140         (mbsinit): Redefine if REPLACE_MBSINIT is set.
28141         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
28142         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
28143         reuses the system's mbrtowc function but works around the bugs.
28144         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
28145         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
28146         macros.
28147         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
28148         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
28149         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
28150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
28151         REPLACE_MBSINIT if mbsinit needs to be overridden.
28152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
28153         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28154         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
28155         REPLACE_MBSINIT, REPLACE_MBRTOWC.
28156         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
28157         m4/locale-zh.m4.
28158         (Depends): Add mbsinit.
28159         * modules/mbsinit (Depends): Add mbrtowc.
28160         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
28161
28162 2008-12-20  Bruno Haible  <bruno@clisp.org>
28163
28164         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
28165         so that there are no conversion errors on AIX.
28166         * tests/test-mbsrtowcs.c (main): LIkewise.
28167
28168 2008-12-20  Bruno Haible  <bruno@clisp.org>
28169
28170         Work around wctob bug on Solaris <= 9.
28171         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
28172         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
28173         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
28174         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
28175         * modules/wctob (Files): Add m4/locale-fr.m4.
28176         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
28177
28178 2008-12-20  Bruno Haible  <bruno@clisp.org>
28179
28180         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
28181         /dev/null.
28182         * tests/test-select-in.sh: Likewise.
28183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28184
28185 2008-12-20  Bruno Haible  <bruno@clisp.org>
28186
28187         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
28188         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
28189         Cygwin 1.5.x.
28190
28191 2008-12-20  Bruno Haible  <bruno@clisp.org>
28192
28193         Ensure mbstate_t is defined on HP-UX 11.11.
28194         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
28195         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
28196         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
28197         AC_USE_SYSTEM_EXTENSIONS.
28198         * modules/fnmatch (Depends-on): Add extensions.
28199         * modules/mbrlen (Depends-on): Likewise.
28200         * modules/mbrtowc (Depends-on): Likewise.
28201         * modules/mbsinit (Depends-on): Likewise.
28202         * modules/mbsrtowcs (Depends-on): Likewise.
28203         * modules/mbswidth (Depends-on): Likewise.
28204         * modules/quotearg (Depends-on): Likewise.
28205         * modules/strftime (Depends-on): Likewise.
28206
28207 2008-12-20  Bruno Haible  <bruno@clisp.org>
28208
28209         Ensure wctob is declared on IRIX 6.5.
28210         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
28211         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
28212         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
28213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
28214         of HAVE_WCTOB.
28215         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
28216         HAVE_WCTOB.
28217         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
28218
28219 2008-12-19  Bruno Haible  <bruno@clisp.org>
28220
28221         * modules/mbsrtowcs-tests: New file.
28222         * tests/test-mbsrtowcs1.sh: New file.
28223         * tests/test-mbsrtowcs2.sh: New file.
28224         * tests/test-mbsrtowcs3.sh: New file.
28225         * tests/test-mbsrtowcs4.sh: New file.
28226         * tests/test-mbsrtowcs.c: New file.
28227
28228         New module 'mbsrtowcs'.
28229         * lib/wchar.in.h (mbsrtowcs): New declaration.
28230         * lib/mbsrtowcs.c: New file.
28231         * m4/mbsrtowcs.m4: New file.
28232         * modules/mbsrtowcs: New file.
28233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
28234         HAVE_MBSRTOWCS.
28235         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
28236         HAVE_MBSRTOWCS.
28237         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
28238
28239 2008-12-19  Bruno Haible  <bruno@clisp.org>
28240
28241         New module 'mbrlen'.
28242         * lib/wchar.in.h (mbrlen): New declaration.
28243         * lib/mbrlen.c: New file.
28244         * m4/mbrlen.m4: New file.
28245         * modules/mbrlen: New file.
28246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
28247         HAVE_MBRLEN.
28248         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
28249         HAVE_MBRLEN.
28250         * doc/posix-functions/mbrlen.texi: Document the new module.
28251
28252 2008-12-19  Bruno Haible  <bruno@clisp.org>
28253
28254         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
28255         * modules/mbrtowc (Depends-on): Add verify.
28256         Suggested by Paul Eggert.
28257
28258 2008-12-18  Bruno Haible  <bruno@clisp.org>
28259
28260         * modules/mbsinit-tests: New file.
28261         * tests/test-mbsinit.sh: New file.
28262         * tests/test-mbsinit.c: New file.
28263
28264 2008-12-18  Bruno Haible  <bruno@clisp.org>
28265
28266         * modules/mbrtowc-tests: New file.
28267         * tests/test-mbrtowc1.sh: New file.
28268         * tests/test-mbrtowc2.sh: New file.
28269         * tests/test-mbrtowc3.sh: New file.
28270         * tests/test-mbrtowc4.sh: New file.
28271         * tests/test-mbrtowc.c: New file.
28272
28273         New module 'mbrtowc'.
28274         * lib/wchar.in.h (mbstate_t): Override when the system does not have
28275         mbsinit and mbrtowc.
28276         (mbrtowc): New declaration.
28277         * lib/mbrtowc.c: New file.
28278         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
28279         * modules/mbrtowc: New file.
28280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28281         HAVE_MBRTOWC.
28282         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28283         HAVE_MBRTOWC.
28284         * doc/posix-functions/mbrtowc.texi: Document the new module.
28285
28286 2008-12-18  Bruno Haible  <bruno@clisp.org>
28287
28288         New module 'wctob'.
28289         * lib/wchar.in.h (wctob): New declaration.
28290         * lib/wctob.c: New file.
28291         * m4/wctob.m4: New file.
28292         * modules/wctob: New file.
28293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28294         HAVE_WCTOB.
28295         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28296         * doc/posix-functions/wctob.texi: Document the new module.
28297
28298 2008-12-18  Bruno Haible  <bruno@clisp.org>
28299
28300         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28301         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28302
28303 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28304
28305         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28306         G. Christensen" <tgc@jupiterrise.com>.
28307
28308         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28309         G. Christensen" <tgc@jupiterrise.com>.
28310
28311         * lib/flock.c: Need to include string.h.  Reported by "Tom
28312         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28313         <ebb9@byu.net>.
28314
28315 2008-12-18  Bruno Haible  <bruno@clisp.org>
28316
28317         * m4/locale-ja.m4: New file, from GNU gettext.
28318
28319 2008-12-17  Bruno Haible  <bruno@clisp.org>
28320
28321         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28322         Suggested by Eric Blake.
28323
28324 2008-12-17  Bruno Haible  <bruno@clisp.org>
28325
28326         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28327
28328 2008-12-17  Bruno Haible  <bruno@clisp.org>
28329
28330         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28331         * modules/mbsinit (Depends-on): Add verify.
28332         Suggested by Paul Eggert.
28333
28334 2008-12-17  Bruno Haible  <bruno@clisp.org>
28335
28336         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28337         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28338         gl_FUNC_MBRTOWC.
28339         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28340         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28341         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28342         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28343         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28344         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28345         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28346         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28347         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28348         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28349         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28350         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28351         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28352         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28353         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28354         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28355         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28356         * modules/trim (configure.ac): Likewise.
28357
28358 2008-12-17  Bruno Haible  <bruno@clisp.org>
28359
28360         * modules/btowc-tests: New file.
28361         * tests/test-btowc1.sh: New file.
28362         * tests/test-btowc2.sh: New file.
28363         * tests/test-btowc.c: New file.
28364
28365         New module 'btowc'.
28366         * lib/wchar.in.h (btowc): New declaration.
28367         * lib/btowc.c: New file.
28368         * m4/btowc.m4: New file.
28369         * modules/btowc: New file.
28370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28371         HAVE_BTOWC.
28372         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28373         * doc/posix-functions/btowc.texi: Document the new module.
28374
28375 2008-12-17  Bruno Haible  <bruno@clisp.org>
28376
28377         New module 'mbsinit'.
28378         * lib/wchar.in.h (mbsinit): New declaration.
28379         * lib/mbsinit.c: New file.
28380         * m4/mbsinit.m4: New file.
28381         * modules/mbsinit: New file.
28382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28383         HAVE_MBSINIT.
28384         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28385         HAVE_MBSINIT.
28386         * doc/posix-functions/mbsinit.texi: Document the new module.
28387
28388 2008-12-16  Bruno Haible  <bruno@clisp.org>
28389
28390         * lib/unistd.in.h: Add comment.
28391         * tests/test-environ.c: Don't include <stdlib.h>.
28392
28393 2008-12-16  Bruno Haible  <bruno@clisp.org>
28394
28395         * lib/parse-duration.h (parse_duration): Document return value
28396         convention.
28397         * lib/parse-duration.c: Include specification header first. Add
28398         comments.
28399         (_): Remove macro.
28400         (parse_year_month_day, parse_hour_minute_second): Move side effects
28401         outside of strchr call.
28402         (parse_non_iso8601): Move side effects outside of isspace call.
28403         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28404         call.
28405
28406 2008-12-16  Bruno Haible  <bruno@clisp.org>
28407
28408         * tests/test-parse-duration.sh: Produce no output when the test
28409         succeeds.
28410
28411 2008-12-16  Bruno Haible  <bruno@clisp.org>
28412
28413         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28414         expressions.
28415
28416 2008-12-15  Bruno Haible  <bruno@clisp.org>
28417
28418         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28419         * doc/glibc-functions/flistxattr.texi: Likewise.
28420         * doc/glibc-functions/fopencookie.texi: Likewise.
28421         * doc/glibc-functions/fremovexattr.texi: Likewise.
28422         * doc/glibc-functions/fsetxattr.texi: Likewise.
28423         * doc/glibc-functions/getxattr.texi: Likewise.
28424         * doc/glibc-functions/lgetxattr.texi: Likewise.
28425         * doc/glibc-functions/listxattr.texi: Likewise.
28426         * doc/glibc-functions/llistxattr.texi: Likewise.
28427         * doc/glibc-functions/lremovexattr.texi: Likewise.
28428         * doc/glibc-functions/lsetxattr.texi: Likewise.
28429         * doc/glibc-functions/removexattr.texi: Likewise.
28430         * doc/glibc-functions/setxattr.texi: Likewise.
28431         * doc/posix-functions/open_memstream.texi: Likewise.
28432
28433 2008-12-15  Eric Blake  <ebb9@byu.net>
28434
28435         Update doc for cygwin 1.7.
28436         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28437         functions.
28438         * doc/posix-functions/fchmodat.texi: Likewise.
28439         * doc/posix-functions/fchownat.texi: Likewise.
28440         * doc/posix-functions/fdopendir.texi: Likewise.
28441         * doc/posix-functions/fmemopen.texi: Likewise.
28442         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28443         * doc/posix-functions/fstatat.texi: Likewise.
28444         * doc/posix-functions/futimens.texi: Likewise.
28445         * doc/posix-functions/gai_strerror.texi: Likewise.
28446         * doc/posix-functions/getaddrinfo.texi: Likewise.
28447         * doc/posix-functions/getnameinfo.texi: Likewise.
28448         * doc/posix-functions/if_freenameindex.texi: Likewise.
28449         * doc/posix-functions/if_indextoname.texi: Likewise.
28450         * doc/posix-functions/if_nameindex.texi: Likewise.
28451         * doc/posix-functions/if_nametoindex.texi: Likewise.
28452         * doc/posix-functions/insque.texi: Likewise.
28453         * doc/posix-functions/linkat.texi: Likewise.
28454         * doc/posix-functions/llrint.texi: Likewise.
28455         * doc/posix-functions/llrintf.texi: Likewise.
28456         * doc/posix-functions/llrintl.texi: Likewise.
28457         * doc/posix-functions/lockf.texi: Likewise.
28458         * doc/posix-functions/lrintl.texi: Likewise.
28459         * doc/posix-functions/mkdirat.texi: Likewise.
28460         * doc/posix-functions/mkfifoat.texi: Likewise.
28461         * doc/posix-functions/mknodat.texi: Likewise.
28462         * doc/posix-functions/mq_close.texi: Likewise.
28463         * doc/posix-functions/mq_getattr.texi: Likewise.
28464         * doc/posix-functions/mq_notify.texi: Likewise.
28465         * doc/posix-functions/mq_open.texi: Likewise.
28466         * doc/posix-functions/mq_receive.texi: Likewise.
28467         * doc/posix-functions/mq_send.texi: Likewise.
28468         * doc/posix-functions/mq_setattr.texi: Likewise.
28469         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28470         * doc/posix-functions/mq_timedsend.texi: Likewise.
28471         * doc/posix-functions/mq_unlink.texi: Likewise.
28472         * doc/posix-functions/open_memstream.texi: Likewise.
28473         * doc/posix-functions/openat.texi: Likewise.
28474         * doc/posix-functions/posix_fadvise.texi: Likewise.
28475         * doc/posix-functions/posix_fallocate.texi: Likewise.
28476         * doc/posix-functions/posix_madvise.texi: Likewise.
28477         * doc/posix-functions/posix_memalign.texi: Likewise.
28478         * doc/posix-functions/posix_openpt.texi: Likewise.
28479         * doc/posix-functions/readlinkat.texi: Likewise.
28480         * doc/posix-functions/remque.texi: Likewise.
28481         * doc/posix-functions/renameat.texi: Likewise.
28482         * doc/posix-functions/rintl.texi: Likewise.
28483         * doc/posix-functions/sem_unlink.texi: Likewise.
28484         * doc/posix-functions/shm_open.texi: Likewise.
28485         * doc/posix-functions/shm_unlink.texi: Likewise.
28486         * doc/posix-functions/signgam.texi: Likewise.
28487         * doc/posix-functions/sigset.texi: Likewise.
28488         * doc/posix-functions/stpcpy.texi: Likewise.
28489         * doc/posix-functions/stpncpy.texi: Likewise.
28490         * doc/posix-functions/strerror.texi: Likewise.
28491         * doc/posix-functions/strtod.texi: Likewise.
28492         * doc/posix-functions/symlinkat.texi: Likewise.
28493         * doc/posix-functions/unlinkat.texi: Likewise.
28494         * doc/posix-functions/utimensat.texi: Likewise.
28495         * doc/glibc-functions/bindresvport.texi: Likewise.
28496         * doc/glibc-functions/dn_expand.texi: Likewise.
28497         * doc/glibc-functions/exp10.texi: Likewise.
28498         * doc/glibc-functions/exp10f.texi: Likewise.
28499         * doc/glibc-functions/fgetxattr.texi: Likewise.
28500         * doc/glibc-functions/flistxattr.texi: Likewise.
28501         * doc/glibc-functions/fopencookie.texi: Likewise.
28502         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28503         * doc/glibc-functions/fremovexattr.texi: Likewise.
28504         * doc/glibc-functions/fsetxattr.texi: Likewise.
28505         * doc/glibc-functions/getifaddrs.texi: Likewise.
28506         * doc/glibc-functions/getxattr.texi: Likewise.
28507         * doc/glibc-functions/lgetxattr.texi: Likewise.
28508         * doc/glibc-functions/listxattr.texi: Likewise.
28509         * doc/glibc-functions/llistxattr.texi: Likewise.
28510         * doc/glibc-functions/lremovexattr.texi: Likewise.
28511         * doc/glibc-functions/lsetxattr.texi: Likewise.
28512         * doc/glibc-functions/pow10.texi: Likewise.
28513         * doc/glibc-functions/pow10f.texi: Likewise.
28514         * doc/glibc-functions/rcmd_af.texi: Likewise.
28515         * doc/glibc-functions/removexattr.texi: Likewise.
28516         * doc/glibc-functions/res_init.texi: Likewise.
28517         * doc/glibc-functions/res_mkquery.texi: Likewise.
28518         * doc/glibc-functions/res_query.texi: Likewise.
28519         * doc/glibc-functions/res_querydomain.texi: Likewise.
28520         * doc/glibc-functions/res_send.texi: Likewise.
28521         * doc/glibc-functions/rresvport_af.texi: Likewise.
28522         * doc/glibc-functions/setxattr.texi: Likewise.
28523         * doc/glibc-functions/strcasestr.texi: Likewise.
28524
28525 2008-12-15  Bruno Haible  <bruno@clisp.org>
28526
28527         Fix compilation error on OSF/1 4.0.
28528         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28529         <sys/time.h>, simply delegate to the system header.
28530         Reported by Daniel Richard G. <oss@teragram.com>.
28531
28532 2008-12-15  Bruno Haible  <bruno@clisp.org>
28533
28534         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28535         * doc/posix-functions/fchmodat.texi: Likewise.
28536         * doc/posix-functions/fchownat.texi: Likewise.
28537         * doc/posix-functions/fdopendir.texi: Likewise.
28538         * doc/posix-functions/fstatat.texi: Likewise.
28539         * doc/posix-functions/mkdirat.texi: Likewise.
28540         * doc/posix-functions/unlinkat.texi: Likewise.
28541
28542 2008-12-14  Bruno Haible  <bruno@clisp.org>
28543
28544         Update doc for POSIX:2008.
28545         * doc/posix-functions/faccessat.texi: New file.
28546         * doc/posix-functions/fchmodat.texi: New file.
28547         * doc/posix-functions/fchownat.texi: New file.
28548         * doc/posix-functions/fdopendir.texi: New file.
28549         * doc/posix-functions/fstatat.texi: New file.
28550         * doc/posix-functions/futimens.texi: New file.
28551         * doc/posix-functions/linkat.texi: New file.
28552         * doc/posix-functions/mkdirat.texi: New file.
28553         * doc/posix-functions/mkfifoat.texi: New file.
28554         * doc/posix-functions/mknodat.texi: New file.
28555         * doc/posix-functions/open_wmemstream.texi: New file.
28556         * doc/posix-functions/openat.texi: New file.
28557         * doc/posix-functions/psiginfo.texi: New file.
28558         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28559         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28560         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28561         * doc/posix-functions/readlinkat.texi: New file.
28562         * doc/posix-functions/renameat.texi: New file.
28563         * doc/posix-functions/strerror_l.texi: New file.
28564         * doc/posix-functions/symlinkat.texi: New file.
28565         * doc/posix-functions/unlinkat.texi: New file.
28566         * doc/posix-functions/utimensat.texi: New file.
28567         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28568
28569 2008-12-14  Bruno Haible  <bruno@clisp.org>
28570
28571         Update doc for POSIX:2008.
28572         * doc/posix-functions/alphasort.texi: Renamed from
28573         doc/glibc-functions/alphasort.texi.
28574         * doc/posix-functions/dirfd.texi: Renamed from
28575         doc/glibc-functions/dirfd.texi.
28576         * doc/posix-functions/dprintf.texi: Renamed from
28577         doc/glibc-functions/dprintf.texi.
28578         * doc/posix-functions/duplocale.texi: Renamed from
28579         doc/glibc-functions/duplocale.texi.
28580         * doc/posix-functions/fexecve.texi: Renamed from
28581         doc/glibc-functions/fexecve.texi.
28582         * doc/posix-functions/fmemopen.texi: Renamed from
28583         doc/glibc-functions/fmemopen.texi.
28584         * doc/posix-functions/freelocale.texi: Renamed from
28585         doc/glibc-functions/freelocale.texi.
28586         * doc/posix-functions/getdate_err.texi: Renamed from
28587         doc/glibc-functions/getdate_err.texi.
28588         * doc/posix-functions/isalnum_l.texi: Renamed from
28589         doc/glibc-functions/isalnum_l.texi.
28590         * doc/posix-functions/isalpha_l.texi: Renamed from
28591         doc/glibc-functions/isalpha_l.texi.
28592         * doc/posix-functions/isblank_l.texi: Renamed from
28593         doc/glibc-functions/isblank_l.texi.
28594         * doc/posix-functions/iscntrl_l.texi: Renamed from
28595         doc/glibc-functions/iscntrl_l.texi.
28596         * doc/posix-functions/isdigit_l.texi: Renamed from
28597         doc/glibc-functions/isdigit_l.texi.
28598         * doc/posix-functions/isgraph_l.texi: Renamed from
28599         doc/glibc-functions/isgraph_l.texi.
28600         * doc/posix-functions/islower_l.texi: Renamed from
28601         doc/glibc-functions/islower_l.texi.
28602         * doc/posix-functions/isprint_l.texi: Renamed from
28603         doc/glibc-functions/isprint_l.texi.
28604         * doc/posix-functions/ispunct_l.texi: Renamed from
28605         doc/glibc-functions/ispunct_l.texi.
28606         * doc/posix-functions/isspace_l.texi: Renamed from
28607         doc/glibc-functions/isspace_l.texi.
28608         * doc/posix-functions/isupper_l.texi: Renamed from
28609         doc/glibc-functions/isupper_l.texi.
28610         * doc/posix-functions/iswalnum_l.texi: Renamed from
28611         doc/glibc-functions/iswalnum_l.texi.
28612         * doc/posix-functions/iswalpha_l.texi: Renamed from
28613         doc/glibc-functions/iswalpha_l.texi.
28614         * doc/posix-functions/iswblank_l.texi: Renamed from
28615         doc/glibc-functions/iswblank_l.texi.
28616         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28617         doc/glibc-functions/iswcntrl_l.texi.
28618         * doc/posix-functions/iswctype_l.texi: Renamed from
28619         doc/glibc-functions/iswctype_l.texi.
28620         * doc/posix-functions/iswdigit_l.texi: Renamed from
28621         doc/glibc-functions/iswdigit_l.texi.
28622         * doc/posix-functions/iswgraph_l.texi: Renamed from
28623         doc/glibc-functions/iswgraph_l.texi.
28624         * doc/posix-functions/iswlower_l.texi: Renamed from
28625         doc/glibc-functions/iswlower_l.texi.
28626         * doc/posix-functions/iswprint_l.texi: Renamed from
28627         doc/glibc-functions/iswprint_l.texi.
28628         * doc/posix-functions/iswpunct_l.texi: Renamed from
28629         doc/glibc-functions/iswpunct_l.texi.
28630         * doc/posix-functions/iswspace_l.texi: Renamed from
28631         doc/glibc-functions/iswspace_l.texi.
28632         * doc/posix-functions/iswupper_l.texi: Renamed from
28633         doc/glibc-functions/iswupper_l.texi.
28634         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28635         doc/glibc-functions/iswxdigit_l.texi.
28636         * doc/posix-functions/isxdigit_l.texi: Renamed from
28637         doc/glibc-functions/isxdigit_l.texi.
28638         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28639         doc/glibc-functions/mbsnrtowcs.texi.
28640         * doc/posix-functions/mkdtemp.texi: Renamed from
28641         doc/glibc-functions/mkdtemp.texi.
28642         * doc/posix-functions/newlocale.texi: Renamed from
28643         doc/glibc-functions/newlocale.texi.
28644         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28645         doc/glibc-functions/nl_langinfo_l.texi.
28646         * doc/posix-functions/open_memstream.texi: Renamed from
28647         doc/glibc-functions/open_memstream.texi.
28648         * doc/posix-functions/opterr.texi: Renamed from
28649         doc/glibc-functions/opterr.texi.
28650         * doc/posix-functions/optind.texi: Renamed from
28651         doc/glibc-functions/optind.texi.
28652         * doc/posix-functions/optopt.texi: Renamed from
28653         doc/glibc-functions/optopt.texi.
28654         * doc/posix-functions/psignal.texi: Renamed from
28655         doc/glibc-functions/psignal.texi.
28656         * doc/posix-functions/scandir.texi: Renamed from
28657         doc/glibc-functions/scandir.texi.
28658         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28659         doc/glibc-functions/sched_get_priority_min.texi.
28660         * doc/posix-functions/signgam.texi: Renamed from
28661         doc/glibc-functions/signgam.texi.
28662         * doc/posix-functions/stpcpy.texi: Renamed from
28663         doc/glibc-functions/stpcpy.texi.
28664         * doc/posix-functions/stpncpy.texi: Renamed from
28665         doc/glibc-functions/stpncpy.texi.
28666         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28667         doc/glibc-functions/strcasecmp_l.texi.
28668         * doc/posix-functions/strcoll_l.texi: Renamed from
28669         doc/glibc-functions/strcoll_l.texi.
28670         * doc/posix-functions/strfmon_l.texi: Renamed from
28671         doc/glibc-functions/strfmon_l.texi.
28672         * doc/posix-functions/strftime_l.texi: Renamed from
28673         doc/glibc-functions/strftime_l.texi.
28674         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28675         doc/glibc-functions/strncasecmp_l.texi.
28676         * doc/posix-functions/strndup.texi: Renamed from
28677         doc/glibc-functions/strndup.texi.
28678         * doc/posix-functions/strnlen.texi: Renamed from
28679         doc/glibc-functions/strnlen.texi.
28680         * doc/posix-functions/strsignal.texi: Renamed from
28681         doc/glibc-functions/strsignal.texi.
28682         * doc/posix-functions/strxfrm_l.texi: Renamed from
28683         doc/glibc-functions/strxfrm_l.texi.
28684         * doc/posix-functions/timer_gettime.texi: Renamed from
28685         doc/glibc-functions/timer_gettime.texi.
28686         * doc/posix-functions/tolower_l.texi: Renamed from
28687         doc/glibc-functions/tolower_l.texi.
28688         * doc/posix-functions/toupper_l.texi: Renamed from
28689         doc/glibc-functions/toupper_l.texi.
28690         * doc/posix-functions/towctrans_l.texi: Renamed from
28691         doc/glibc-functions/towctrans_l.texi.
28692         * doc/posix-functions/towlower_l.texi: Renamed from
28693         doc/glibc-functions/towlower_l.texi.
28694         * doc/posix-functions/towupper_l.texi: Renamed from
28695         doc/glibc-functions/towupper_l.texi.
28696         * doc/posix-functions/uselocale.texi: Renamed from
28697         doc/glibc-functions/uselocale.texi.
28698         * doc/posix-functions/vdprintf.texi: Renamed from
28699         doc/glibc-functions/vdprintf.texi.
28700         * doc/posix-functions/wcpcpy.texi:
28701         Renamed from doc/glibc-functions/wcpcpy.texi.
28702         * doc/posix-functions/wcpncpy.texi: Renamed from
28703         doc/glibc-functions/wcpncpy.texi.
28704         * doc/posix-functions/wcscasecmp.texi: Renamed from
28705         doc/glibc-functions/wcscasecmp.texi.
28706         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28707         doc/glibc-functions/wcscasecmp_l.texi.
28708         * doc/posix-functions/wcscoll_l.texi: Renamed from
28709         doc/glibc-functions/wcscoll_l.texi.
28710         * doc/posix-functions/wcsdup.texi: Renamed from
28711         doc/glibc-functions/wcsdup.texi.
28712         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28713         doc/glibc-functions/wcsncasecmp.texi.
28714         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28715         doc/glibc-functions/wcsncasecmp_l.texi.
28716         * doc/posix-functions/wcsnlen.texi: Renamed from
28717         doc/glibc-functions/wcsnlen.texi.
28718         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28719         doc/glibc-functions/wcsnrtombs.texi.
28720         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28721         doc/glibc-functions/wcsxfrm_l.texi.
28722         * doc/posix-functions/wctrans_l.texi: Renamed from
28723         doc/glibc-functions/wctrans_l.texi.
28724         * doc/posix-functions/wctype_l.texi: Renamed from
28725         doc/glibc-functions/wctype_l.texi.
28726         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28727         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28728         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28729         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28730         these subsections.
28731         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28732         Remove sections.
28733
28734 2008-12-14  Bruno Haible  <bruno@clisp.org>
28735
28736         Update doc for POSIX:2008.
28737         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28738
28739 2008-12-14  Bruno Haible  <bruno@clisp.org>
28740
28741         Update doc for POSIX:2008.
28742         * doc/pastposix-functions/bcmp.texi: Renamed from
28743         doc/posix-functions/bcmp.texi.
28744         * doc/pastposix-functions/bcopy.texi: Renamed from
28745         doc/posix-functions/bcopy.texi.
28746         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28747         doc/posix-functions/bsd_signal.texi.
28748         * doc/pastposix-functions/bzero.texi: Renamed from
28749         doc/posix-functions/bzero.texi.
28750         * doc/pastposix-functions/ecvt.texi: Renamed from
28751         doc/posix-functions/ecvt.texi.
28752         * doc/pastposix-functions/fcvt.texi: Renamed from
28753         doc/posix-functions/fcvt.texi.
28754         * doc/pastposix-functions/ftime.texi: Renamed from
28755         doc/posix-functions/ftime.texi.
28756         * doc/pastposix-functions/gcvt.texi: Renamed from
28757         doc/posix-functions/gcvt.texi.
28758         * doc/pastposix-functions/getcontext.texi: Renamed from
28759         doc/posix-functions/getcontext.texi.
28760         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28761         doc/posix-functions/gethostbyaddr.texi.
28762         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28763         doc/posix-functions/gethostbyname.texi.
28764         * doc/pastposix-functions/getwd.texi: Renamed from
28765         doc/posix-functions/getwd.texi.
28766         * doc/pastposix-functions/h_errno.texi: Renamed from
28767         doc/posix-functions/h_errno.texi.
28768         * doc/pastposix-functions/index.texi: Renamed from
28769         doc/posix-functions/index.texi.
28770         * doc/pastposix-functions/makecontext.texi: Renamed from
28771         doc/posix-functions/makecontext.texi.
28772         * doc/pastposix-functions/mktemp.texi: Renamed from
28773         doc/posix-functions/mktemp.texi.
28774         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28775         doc/posix-functions/pthread_attr_getstackaddr.texi.
28776         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28777         doc/posix-functions/pthread_attr_setstackaddr.texi.
28778         * doc/pastposix-functions/rindex.texi: Renamed from
28779         doc/posix-functions/rindex.texi.
28780         * doc/pastposix-functions/scalb.texi: Renamed from
28781         doc/posix-functions/scalb.texi.
28782         * doc/pastposix-functions/setcontext.texi: Renamed from
28783         doc/posix-functions/setcontext.texi.
28784         * doc/pastposix-functions/swapcontext.texi: Renamed from
28785         doc/posix-functions/swapcontext.texi.
28786         * doc/pastposix-functions/ualarm.texi: Renamed from
28787         doc/posix-functions/ualarm.texi.
28788         * doc/pastposix-functions/usleep.texi: Renamed from
28789         doc/posix-functions/usleep.texi.
28790         * doc/pastposix-functions/vfork.texi: Renamed from
28791         doc/posix-functions/vfork.texi.
28792         * doc/pastposix-functions/wcswcs.texi: Renamed from
28793         doc/posix-functions/wcswcs.texi.
28794         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28795         (Function Substitutes): Update.
28796
28797 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28798
28799         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28800         m4/strerror.m4.
28801
28802 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28803             Bruno Haible  <bruno@clisp.org>
28804
28805         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28806
28807 2008-12-13  Bruno Haible  <bruno@clisp.org>
28808
28809         * modules/strtoull (Depends-on): Remove unistd.
28810
28811 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28812
28813         * modules/strtoull (Depends-on): Add stdlib.
28814
28815 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28816
28817         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28818
28819 2008-12-10  Jim Meyering  <meyering@redhat.com>
28820
28821         gl_ASSERT: don't say assertions are disabled when they're not
28822         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28823         "checking whether to enable assertions... no", when they are in
28824         fact enabled.  This is solely a bug in the output of configure.
28825         In spite of saying "no", NDEBUG was not defined in that case.
28826         Also, as noted by Eric Blake, leave assertions enabled upon
28827         --enable-assert=INVALID.
28828
28829 2008-12-10  Bruno Haible  <bruno@clisp.org>
28830
28831         Change MODULES.html to refer to POSIX:2008 where possible.
28832         * MODULES.html.sh (POSIX2008_URL): New variable.
28833         (posix_headers): Remove sys/timeb, ucontext.
28834         (posix2001_headers): New variable.
28835         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28836         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28837         index, makecontext, mktemp, pthread_attr_getstackaddr,
28838         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28839         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28840         (posix2001_functions): New variable.
28841         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28842         otherwise.
28843
28844 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28845
28846         add missing include to parse-duration.c
28847         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28848         * modules/parse-duration (Depends-on): Add xalloc.
28849
28850         fix sed script reading maint.mk
28851         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28852         (syntax-check-rules): Use it.
28853
28854 2008-12-09  Bruno Haible  <bruno@clisp.org>
28855
28856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28857         MacOS X 10.4/PowerPC.
28858         Reported by Simon Josefsson.
28859
28860 2008-12-08  Jim Meyering  <meyering@redhat.com>
28861
28862         work around mingw's lack of some S_IF definitions
28863         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28864         Reported by Simon Josefsson.
28865
28866 2008-12-08  Bruno Haible  <bruno@clisp.org>
28867
28868         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28869         applied to variables. Needed on MacOS X 10.4/PowerPC.
28870         Reported by Simon Josefsson.
28871
28872 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28873         and Eric Blake  <ebb9@byu.net>
28874
28875         assert: honor --enable-assert
28876         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28877         order to honor --enable-assert, rather than treating it as a
28878         synonym for --disable-assert.
28879
28880 2008-12-08  Jim Meyering  <meyering@redhat.com>
28881
28882         * lib/posixtm.c: Remove now-useless declaration of mktime.
28883
28884         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28885
28886 2008-12-07  Bruno Haible  <bruno@clisp.org>
28887
28888         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28889         test_once): Mark functions as static.
28890         * tests/test-tls.c (test_tls): Likewise.
28891
28892 2008-12-07  Bruno Haible  <bruno@clisp.org>
28893
28894         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28895         iconv_register_autodetect.
28896
28897 2008-12-07  Jim Meyering  <meyering@redhat.com>
28898
28899         posixtm.c: avoid a warning
28900         * lib/posixtm.c (posixtime): Don't initialize tm0.
28901         It's no longer needed to placate gcc4's -Wuninitialized,
28902         and the attempt to placate would elicit a new warning.
28903
28904         unicodeio.c: mark unused parameters
28905         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28906         (fallback_failure_callback): Likewise.
28907
28908 2008-12-07  Bruno Haible  <bruno@clisp.org>
28909
28910         * gnulib-tool (func_create_testdir): When building the tests
28911         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28912         Reported by Simon Josefsson.
28913
28914 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28915
28916         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28917
28918 2008-12-06  Bruno Haible  <bruno@clisp.org>
28919
28920         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28921         Suggested by Eric Blake.
28922
28923 2008-12-06  Bruno Haible  <bruno@clisp.org>
28924
28925         Fix a c-stack test failure on MacOS X.
28926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28927         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28928         handler for SIGBUS as well.
28929         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28930         install a signal handler for SIGBUS as well.
28931         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28932
28933 2008-12-06  Bruno Haible  <bruno@clisp.org>
28934
28935         Advocacy documentation.
28936         * doc/gnulib-intro.texi (Benefits): New section.
28937         * doc/gnulib.texi: Update.
28938
28939 2008-12-06  Bruno Haible  <bruno@clisp.org>
28940
28941         Document the 'manywarnings' module.
28942         * doc/manywarnings.texi: New file.
28943         * doc/gnulib.texi: Include it.
28944
28945 2008-12-05  Eric Blake  <ebb9@byu.net>
28946
28947         tests: silence some gcc warnings
28948         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28949         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28950         type mismatches.
28951
28952 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28953             Bruno Haible  <bruno@clisp.org>
28954
28955         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28956
28957 2008-11-29  Jim Meyering  <meyering@redhat.com>
28958
28959         unicodeio.c: mark unused parameters
28960         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28961         (fallback_failure_callback): Likewise.
28962
28963         fts: fix a thinko
28964         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28965         (set_stat_type): Return S_IF*-valued "type" directly.
28966         Prompted by James Youngman's spotting a related bug.
28967         Confirmed by further testing through find.
28968
28969         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28970         * lib/fts.c (D_TYPE): Define.
28971         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28972         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28973         (s_ifmt_shift_bits): New function.
28974         (set_stat_type): New function.
28975         (fts_build): When not calling fts_stat, call set_stat_type
28976         to propagate dirent.d_type info to fts_read caller.
28977         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28978         fts_statp->st_mode type information may be valid.
28979
28980 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28981
28982         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28983         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28984         <sds@gnu.org>.
28985
28986 2008-11-20  Bruno Haible  <bruno@clisp.org>
28987
28988         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28989         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28990         INCLUDE_NEXT.
28991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28992         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28993         * modules/math (Makefile.am): Substitute
28994         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28995         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28996
28997 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28998             Bruno Haible  <bruno@clisp.org>
28999
29000         * lib/stdint.in.h: Define all type macros so that their expansion is
29001         a single typedef'ed token. Fixes a compilation failure in Boost which
29002         does "using ::int8_t;".
29003
29004 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29005
29006         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
29007         gl_MANYWARN_ALL_GCC.
29008         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
29009         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
29010         * modules/manywarnings: New file.
29011         * MODULES.html.sh: Mention manywarnings module.
29012
29013 2008-11-18  Bruno Haible  <bruno@clisp.org>
29014
29015         * doc/gnulib-tool.texi (Unit tests): New section.
29016
29017 2008-11-18  Simon Josefsson  <simon@josefsson.org>
29018
29019         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
29020         paths like 'lib/po/foo.po'.
29021
29022 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29023
29024         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
29025         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
29026
29027 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29028
29029         * m4/warnings.m4: Use CPPFLAGS to really check whether the
29030         parameter works.
29031
29032 2008-11-17  Simon Josefsson  <simon@josefsson.org>
29033
29034         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
29035
29036 2008-11-17  Bruce Korb  <bkorb@gnu.org>
29037
29038         * modules/parse-duration-tests: New file.
29039         * tests/test-parse-duration.sh: New file.
29040         * tests/test-parse-duration.c: New file.
29041
29042         New module 'parse-duration'.
29043         * lib/parse-duration.h: New file.
29044         * lib/parse-duration.c: New file.
29045         * modules/parse-duration: New file.
29046
29047 2008-11-17  Bruno Haible  <bruno@clisp.org>
29048
29049         * tests/test-select-out.sh: Comment out the first pipe test.
29050         Reported by Simon Josefsson.
29051
29052 2008-11-17  Bruno Haible  <bruno@clisp.org>
29053
29054         * modules/getaddrinfo (Depends-on): Add servent, hostent.
29055         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
29056         gl_HOSTENT.
29057
29058 2008-11-17  Bruno Haible  <bruno@clisp.org>
29059
29060         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
29061         -lnetwork and -lnet. Needed for Haiku and BeOS.
29062
29063 2008-11-16  Bruno Haible  <bruno@clisp.org>
29064
29065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
29066
29067 2008-11-16  Bruno Haible  <bruno@clisp.org>
29068
29069         Avoid test failure on Haiku.
29070         * tests/test-fsync.c: Include <errno.h>.
29071         (main): Don't require that fsync (0) fails.
29072
29073 2008-11-15  Bruno Haible  <bruno@clisp.org>
29074
29075         New module 'hostent'.
29076         * modules/hostent: New file.
29077         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
29078
29079 2008-11-15  Bruno Haible  <bruno@clisp.org>
29080
29081         New module 'servent'.
29082         * modules/servent: New file.
29083         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
29084
29085 2008-11-15  Bruno Haible  <bruno@clisp.org>
29086
29087         Avoid generating same test program with two different rules.
29088         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
29089         test-frexp to test-frexp-nolibm.
29090         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
29091         test-frexpl to test-frexpl-nolibm.
29092
29093 2008-11-15  Bruno Haible  <bruno@clisp.org>
29094
29095         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
29096         $(FREXPL_LIBM).
29097
29098 2008-11-15  Bruno Haible  <bruno@clisp.org>
29099
29100         * lib/netdb.in.h: Activate the definitions also when the system's
29101         <netdb.h> has 'struct addrinfo'.
29102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
29103         EAI_OVERFLOW or AI_NUMERICSERV.
29104         * doc/posix-headers/netdb.texi: Document the problem.
29105
29106 2008-11-15  Bruno Haible  <bruno@clisp.org>
29107
29108         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
29109
29110         Make the 'sched' module work on platforms where <sched.h> exists but
29111         is incomplete (such as Haiku).
29112         * lib/sched.in.h; Include the system's <sched.h> if it exists.
29113         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
29114         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
29115         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
29116         HAVE_STRUCT_SCHED_PARAM.
29117         * modules/sched (Depends-on): Add include_next.
29118         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
29119         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
29120         * doc/posix-headers/sched.texi: Document the issue.
29121
29122 2008-11-13  Jim Meyering  <meyering@redhat.com>
29123
29124         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
29125         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
29126         test would fail due to the difference in the Report bugs to ...
29127         line.  The expected address is empty, "<>", while the actual
29128         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
29129
29130 2008-11-12  Bruno Haible  <bruno@clisp.org>
29131
29132         lstat: don't compile lstat.c on systems lacking lstat
29133         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
29134         which don't have lstat; this is handled by lib/sys_stat.in.h already.
29135         Reported by Daniel P. Berrange via Jim Meyering.
29136
29137 2008-11-12  Jim Meyering  <meyering@redhat.com>
29138
29139         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
29140
29141 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29142
29143         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
29144         instead.
29145
29146 2008-11-12  Bruno Haible  <bruno@clisp.org>
29147
29148         * lib/unicodeio.c: Include unistr.h.
29149         (utf8_wctomb): Remove function.
29150         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
29151
29152 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29153
29154         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
29155         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
29156         <bruno@clisp.org>.
29157         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
29158
29159 2008-11-12  Simon Josefsson  <simon@josefsson.org>
29160
29161         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
29162         * doc/gnulib.texi: Add section for warnings.
29163
29164 2008-11-11  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/sockets.h: Add a comment.
29167
29168 2008-11-11  Karl Berry  <karl@gnu.org>
29169
29170         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
29171
29172 2008-11-11  Eric Blake  <ebb9@byu.net>
29173
29174         fdl.texi: avoid git symlinks
29175         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
29176
29177 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29178
29179         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
29180
29181 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29182
29183         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
29184         (gl_WARN_ADD): Substitute $2 if literal.
29185
29186 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29187
29188         * m4/warning.m4: Remove.
29189
29190 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
29191
29192         * m4/warnings.m4: Almost complete rewrite. :-)
29193
29194 2008-11-10  Simon Josefsson  <simon@josefsson.org>
29195
29196         * modules/warnings: New module.
29197         * m4/warnings.m4: New file.
29198         * MODULES.html.sh: Mention warnings module.
29199         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
29200         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29201
29202 2008-11-10  Eric Blake  <ebb9@byu.net>
29203
29204         fdl.texi: make a symlink to the latest version
29205         * doc/standards.texi: Revert today's earlier change.
29206         * doc/fdl-1.2.texi: Rename from old fdl.texi...
29207         * doc/fdl.texi: ...and replace this with a symlink to the newer
29208         fdl-1.3.texi.
29209
29210 2008-11-10  Bruno Haible  <bruno@clisp.org>
29211
29212         * tests/test-select-fd.c (main): Accept the result file name as fourth
29213         argument.
29214         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
29215         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
29216
29217 2008-11-10  Bruno Haible  <bruno@clisp.org>
29218
29219         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
29220         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
29221         as autoconf-substituted macros.
29222         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
29223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
29224         gl_NETDB_H_DEFAULTS. Set these variables.
29225         * modules/netdb (Makefile.am): Substitute these variables.
29226
29227 2008-11-10  Eric Blake  <ebb9@byu.net>
29228
29229         standards.texi: include correct file for FDL 1.3
29230         * doc/standards.texi (GNU Free Documentation License): Change
29231         include file to pull in FDL 1.3, not 1.2.
29232
29233         fdl.texi: revert accidental change to license
29234         * doc/fdl.texi: This is FDL 1.2, not 1.3.
29235
29236 2008-11-10  Bruno Haible  <bruno@clisp.org>
29237
29238         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
29239         cross-compiling guesses also when the native compile gives no result.
29240
29241 2008-11-10  Bruno Haible  <bruno@clisp.org>
29242
29243         * lib/spawni.c (__spawni): Force variable into the stack.
29244
29245 2008-11-10  Bruno Haible  <bruno@clisp.org>
29246
29247         Add support for Haiku.
29248         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
29249         glibc and BeOS, but also on Haiku.
29250         * lib/fpurge.c (fpurge): Likewise.
29251         * lib/freadable.c (freadable): Likewise.
29252         * lib/freadahead.c (freadahead): Likewise.
29253         * lib/freading.c (freading): Likewise.
29254         * lib/freadptr.c (freadptr): Likewise.
29255         * lib/freadseek.c (freadptrinc): Likewise.
29256         * lib/fseeko.c (rpl_fseeko): Likewise.
29257         * lib/fseterr.c (fseterr): Likewise.
29258         * lib/fwritable.c (fwritable): Likewise.
29259         * lib/fwriting.c (fwriting): Likewise.
29260         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
29261
29262 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29263
29264         * lib/config.charset: Treat Haiku like BeOS.
29265
29266 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
29267
29268         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
29269         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
29270
29271 2008-11-08  Bruno Haible  <bruno@clisp.org>
29272
29273         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
29274         AC_CACHE_CHECK.
29275
29276 2008-11-08  Bruno Haible  <bruno@clisp.org>
29277
29278         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
29279
29280 2008-11-08  Bruno Haible  <bruno@clisp.org>
29281
29282         * tests/test-select-fd.c: New file.
29283         * tests/test-select-in.sh: New file.
29284         * tests/test-select-out.sh: New file.
29285         * tests/test-select-stdin.c: New file.
29286         * modules/select-tests (Files): Add the new files.
29287         (Depends-on): Add gettimeofday.
29288         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29289         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29290         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29291
29292 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29293             Bruno Haible  <bruno@clisp.org>
29294
29295         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29296
29297 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29298
29299         * build-aux/pmccabe2html: Added support for C++ source files.
29300
29301 2008-11-05  Ben Pfaff  <blp@gnu.org>
29302
29303         Fix lib/close.c build on Windows.
29304         * modules/close (Files): Add lib/w32sock.h.
29305
29306 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29307
29308         Accept Bison's NEWS format.
29309         * build-aux/announce-gen (print_news_deltas): Tweak
29310         $re_prefix.
29311
29312 2008-11-04  Bruno Haible  <bruno@clisp.org>
29313
29314         * modules/random_r (Maintainer): Add glibc.
29315
29316 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29317
29318         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29319         by karl@freefriends.org (Karl Berry).
29320         * doc/alloca.texi: Likewise.
29321         * doc/c-ctype.texi: Likewise.
29322         * doc/c-strcase.texi: Likewise.
29323         * doc/c-strcaseeq.texi: Likewise.
29324         * doc/c-strcasestr.texi: Likewise.
29325         * doc/c-strstr.texi: Likewise.
29326         * doc/c-strtod.texi: Likewise.
29327         * doc/c-strtold.texi: Likewise.
29328         * doc/ctime.texi: Likewise.
29329         * doc/error.texi: Likewise.
29330         * doc/fdl.texi: Likewise.
29331         * doc/gcd.texi: Likewise.
29332         * doc/getdate.texi: Likewise.
29333         * doc/gnulib-intro.texi: Likewise.
29334         * doc/gnulib-tool.texi: Likewise.
29335         * doc/gnulib.texi: Likewise.
29336         * doc/inet_ntoa.texi: Likewise.
29337         * doc/maintain.texi: Likewise.
29338         * doc/make-stds.texi: Likewise.
29339         * doc/quote.texi: Likewise.
29340         * doc/regexprops-generic.texi: Likewise.
29341         * doc/standards.texi: Likewise.
29342         * doc/verify.texi: Likewise.
29343         * doc/visibility.texi: Likewise.
29344         * doc/gnulib.texi (GNU Free Documentation License): Include
29345         fdl-1.3.texi instead of fdl.texi.
29346
29347 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29348
29349         * doc/fdl-1.3.texi: New file, from
29350         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29351         * modules/fdl-1.3: Add.
29352         * MODULES.html.sh: Add fdl-1.3.
29353
29354 2008-11-03  Bruno Haible  <bruno@clisp.org>
29355
29356         Make determination of absolute name of header file work with AIX xlc.
29357         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29358         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29359         preprocessing.
29360         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29361         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29362
29363 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29364
29365         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29366         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29367         <ludo@gnu.org>.
29368
29369 2008-11-02  Bruno Haible  <bruno@clisp.org>
29370
29371         Mark 'strpbrk' obsolete.
29372         * modules/strpbrk (Status, Notice): New sections.
29373         * modules/strtok_r (Depends-on): Add strpbrk.
29374
29375 2008-11-02  Bruno Haible  <bruno@clisp.org>
29376
29377         Mark 'strdup' obsolete.
29378         * modules/strdup (Status, Notice): New sections.
29379         * modules/findprog (Depends-on): Add strdup.
29380         * modules/getaddrinfo (Depends-on): Likewise.
29381         * modules/localename (Depends-on): Likewise.
29382         * modules/relocatable-lib (Depends-on): Likewise.
29383         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29384         * modules/relocatable-prog (Depends-on): Likewise.
29385         * modules/trim (Depends-on): Likewise.
29386         * modules/unictype/gen-ctype (Depends-on): Likewise.
29387         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29388
29389 2008-11-02  Bruno Haible  <bruno@clisp.org>
29390
29391         Mark 'strcspn' obsolete.
29392         * modules/strcspn (Status, Notice): New sections.
29393
29394 2008-11-02  Bruno Haible  <bruno@clisp.org>
29395
29396         Mark 'rmdir' obsolete.
29397         * modules/rmdir (Status, Notice): New sections.
29398         * modules/clean-temp (Depends-on): Add rmdir.
29399         * modules/openat (Depends-on): Likewise.
29400
29401 2008-11-02  Bruno Haible  <bruno@clisp.org>
29402
29403         Mark 'raise' obsolete.
29404         * modules/raise (Status, Notice): New sections.
29405         (Include): Specify <signal.h>.
29406         * modules/stdio (Depends-on): Add raise.
29407         * modules/write (Depends-on): Likewise.
29408
29409 2008-11-02  Bruno Haible  <bruno@clisp.org>
29410
29411         Mark 'memset' obsolete.
29412         * modules/memset (Status, Notice): New sections.
29413
29414 2008-11-02  Bruno Haible  <bruno@clisp.org>
29415
29416         Mark 'memmove' obsolete.
29417         * modules/memmove (Status, Notice): New sections.
29418         * modules/argp (Depends-on): Add memmove.
29419         * modules/argz (Depends-on): Likewise.
29420         * modules/canonicalize (Depends-on): Likewise.
29421         * modules/canonicalize-lgpl (Depends-on): Likewise.
29422         * modules/fts (Depends-on): Likewise.
29423         * modules/getcwd (Depends-on): Likewise.
29424         * modules/human (Depends-on): Likewise.
29425         * modules/regex (Depends-on): Likewise.
29426         * modules/striconveh (Depends-on): Likewise.
29427         * modules/trim (Depends-on): Likewise.
29428         * modules/unistr/u8-move (Depends-on): Likewise.
29429         * modules/unistr/u16-move (Depends-on): Likewise.
29430         * modules/unistr/u32-move (Depends-on): Likewise.
29431
29432 2008-11-02  Bruno Haible  <bruno@clisp.org>
29433
29434         Mark 'memcpy' obsolete.
29435         * modules/memcpy (Status, Notice): New sections.
29436
29437 2008-11-02  Bruno Haible  <bruno@clisp.org>
29438
29439         Mark 'memcmp' obsolete.
29440         * modules/memcmp (Status, Notice): New sections.
29441         * modules/argmatch (Depends-on): Add memchr.
29442         * modules/backupfile (Depends-on): Likewise.
29443         * modules/c-strcasestr (Depends-on): Likewise.
29444         * modules/crypto/des (Depends-on): Likewise.
29445         * modules/csharpcomp (Depends-on): Likewise.
29446         * modules/fnmatch (Depends-on): Likewise.
29447         * modules/git-merge-changelog (Depends-on): Likewise.
29448         * modules/isnand (Depends-on): Likewise.
29449         * modules/isnand-nolibm (Depends-on): Likewise.
29450         * modules/isnanf (Depends-on): Likewise.
29451         * modules/isnanf-nolibm (Depends-on): Likewise.
29452         * modules/isnanl (Depends-on): Likewise.
29453         * modules/isnanl-nolibm (Depends-on): Likewise.
29454         * modules/mbchar (Depends-on): Likewise.
29455         * modules/memcoll (Depends-on): Likewise.
29456         * modules/quotearg (Depends-on): Likewise.
29457         * modules/regex (Depends-on): Likewise.
29458         * modules/relocatable-prog (Depends-on): Likewise.
29459         * modules/same (Depends-on): Likewise.
29460         * modules/signbit (Depends-on): Likewise.
29461         * modules/strcasestr-simple (Depends-on): Likewise.
29462         * modules/unictype/gen-ctype (Depends-on): Likewise.
29463         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29464         * modules/uniname/uniname (Depends-on): Likewise.
29465         * modules/unistr/u8-cmp (Depends-on): Likewise.
29466
29467 2008-11-02  Bruno Haible  <bruno@clisp.org>
29468
29469         Mark 'memchr' obsolete.
29470         * modules/memchr (Status, Notice): New sections.
29471         * modules/argp (Depends-on): Add memchr.
29472         * modules/base64 (Depends-on): Likewise.
29473         * modules/c-strcasestr (Depends-on): Likewise.
29474         * modules/chdir-long (Depends-on): Likewise.
29475         * modules/fnmatch (Depends-on): Likewise.
29476         * modules/getsubopt (Depends-on): Likewise.
29477         * modules/git-merge-changelog (Depends-on): Likewise.
29478         * modules/glob (Depends-on): Likewise.
29479         * modules/strcasestr-simple (Depends-on): Likewise.
29480         * modules/strnlen (Depends-on): Likewise.
29481
29482 2008-11-02  Bruno Haible  <bruno@clisp.org>
29483
29484         Mark 'atexit' obsolete.
29485         * modules/atexit (Status, Notice): New sections.
29486         * modules/chdir-long (Depends-on): Add atexit.
29487         * modules/wait-process (Depends-on): Likewise.
29488
29489 2008-11-02  Bruno Haible  <bruno@clisp.org>
29490
29491         * gnulib-tool: New option --with-obsolete.
29492         (func_usage): Document it.
29493         (func_modules_transitive_closure): Drop obsolete dependencies if
29494         incobsolete is not true.
29495         (func_import): Read and save the incobsolete variable to the cache.
29496
29497 2008-11-02  Bruno Haible  <bruno@clisp.org>
29498
29499         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29500         * gnulib-tool: New option --extract-status.
29501         (func_usage): Document it.
29502         (sed_extract_prog): Recognize it.
29503         (func_get_status): New function.
29504
29505 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29506
29507         * modules/sockets (License): Change from LGPL to LGPLv2+.
29508
29509 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29510
29511         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29512
29513 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29514
29515         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29516         Mention times and sys_times.
29517         * modules/sys_times, modules/sys_times-tests: New modules.
29518         * modules/times, modules/times-tests: Likewise
29519         * m4/sys_times_h.m4: New file.
29520         * lib/sys_times.in.h: Likewise
29521         * lib/times.c: Likewise.
29522         * tests/test-sys_times.c: Likewise.
29523         * tests/test-times.c: Likewise.
29524         * doc/posix-headers/sys_times.texi: Update.
29525         * doc/posix-functions/times.texi: Update.
29526
29527 2008-10-28  Jim Meyering  <meyering@redhat.com>
29528
29529         * modules/tempname (Depends-on): Add lstat.
29530
29531         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29532
29533 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29534
29535         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29536         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29537         using idiom used elsewhere in gnulib.
29538
29539 2008-10-27  Jim Meyering  <meyering@redhat.com>
29540
29541         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29542
29543 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29544
29545         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29546         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29547         programs.
29548         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29549
29550 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29551
29552         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29553
29554 2008-10-27  Bruno Haible  <bruno@clisp.org>
29555
29556         * tests/test-lstat.c: Include <stdio.h>.
29557
29558 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29559
29560         * modules/lstat-tests: New module.
29561         * tests/test-lstat.c: New file.
29562
29563 2008-10-26  Jim Meyering  <meyering@redhat.com>
29564
29565         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29566
29567 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29568             Bruno Haible  <bruno@clisp.org>
29569
29570         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29571         * modules/configmake (Include): Add a note that the include must come
29572         after all system headers.
29573         * lib/javaversion.c: Include configmake.h after all other includes.
29574
29575 2008-10-26  Bruno Haible  <bruno@clisp.org>
29576
29577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29578         HAVE_STRUCT_RANDOM_DATA to 1.
29579         (gl_STDLIB_H): Simplify.
29580
29581 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29582
29583         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29584         substitute HAVE_STRUCT_RANDOM_DATA.
29585         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29586         random_data.
29587         * modules/stdlib (Makefile.am): Substitute
29588         HAVE_STRUCT_RANDOM_DATA.
29589
29590 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29591
29592         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29593         * doc/gnulib-intro.texi (Copyright): Likewise.
29594
29595 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29596
29597         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29598         findings.
29599
29600 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29601             Bruno Haible  <bruno@clisp.org>
29602
29603         * lib/unistd.in.h: Include <winsock2.h>.
29604         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29605         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29606         Provide dummy declarations.
29607         (gethostname): Override.
29608         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29609         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29610         gl_PREREQ_SYS_H_WINSOCK2.
29611         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29612         * doc/posix-functions/gethostname.texi: More details.
29613
29614 2008-10-25  Bruno Haible  <bruno@clisp.org>
29615
29616         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29617         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29618         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29619
29620         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29621         here ...
29622         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29624         gl_UNISTD_H_DEFAULTS.
29625
29626 2008-10-25  Eric Blake  <ebb9@byu.net>
29627
29628         signbit: avoid spurious compiler failure
29629         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29630         declarations inside function.
29631
29632 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29633             Bruno Haible  <bruno@clisp.org>
29634
29635         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29636         * modules/random_r (Depends-on): Add stdint.
29637
29638 2008-10-24  Bruno Haible  <bruno@clisp.org>
29639
29640         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29641         Eggert.
29642         * modules/strerror (License): Likewise.
29643
29644 2008-10-24  Jim Meyering  <meyering@redhat.com>
29645
29646         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29647         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29648
29649 2008-10-24  Eric Blake  <ebb9@byu.net>
29650
29651         getgroups: fix compilation when getgroups is available
29652         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29653         but with <config.h> override of getgroups disabled.
29654
29655 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29656
29657         * doc/gnulib.texi (Header files): Add note about C++ problems.
29658         Explained by Bruno Haible <bruno@clisp.org>.
29659
29660 2008-10-23  Bruno Haible  <bruno@clisp.org>
29661
29662         Define a dummy SA_NODEFER macro on Interix.
29663         * lib/signal.in.h (SA_NODEFER): Define fallback.
29664         Reported by Aleksey Cheusov <cheusov@tut.by> via
29665         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29666
29667 2008-10-23  Bruno Haible  <bruno@clisp.org>
29668
29669         * modules/freadahead (License): Change to LGPLv2+.
29670         Suggested by Simon Josefsson.
29671
29672 2008-10-23  Jim Meyering  <meyering@redhat.com>
29673
29674         random_r: new module
29675         * modules/random_r: New file.
29676         * m4/random_r.m4: New file.
29677         * lib/random_r.c: New file, from glibc.
29678         * modules/random_r-tests: New file.
29679         * tests/test-random_r.c: New file.
29680         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29681          Declare.
29682         (RAND_MAX): Define.
29683         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29684         * modules/stdlib: Substitute them, too.
29685         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29686         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29687         * doc/glibc-functions/random_r.texi: Likewise.
29688         * doc/glibc-functions/setstate_r.texi: Likewise.
29689         * doc/glibc-functions/srandom_r.texi: Likewise.
29690         * config/srclist.txt: Mention it.
29691
29692 2008-10-23  David Lutterkort  <lutter@redhat.com>
29693
29694         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29695         link requirement
29696
29697 2008-10-23  Jim Meyering  <meyering@redhat.com>
29698
29699         selinux-h: mark parameters of stub functions as intentionally unused
29700         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29701         * lib/se-context.in.h: Likewise.
29702
29703 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29704
29705         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29706
29707 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29708
29709         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29710
29711 2008-10-22  Eric Blake  <ebb9@byu.net>
29712
29713         glthread/thread: avoid compiler warning
29714         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29715         Add unreachable abort to silence compiler.
29716
29717 2008-10-22  Eric Blake  <ebb9@byu.net>
29718
29719         netdb: also supply struct addrinfo for cygwin 1.5.x
29720         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29721         older cygwin.
29722         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29723         cygwin.
29724         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29725
29726 2008-10-22  Bruno Haible  <bruno@clisp.org>
29727
29728         * users.txt: Update entry about pspp.
29729
29730 2008-10-21  Bruno Haible  <bruno@clisp.org>
29731
29732         Simplification.
29733         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29734         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29735
29736         Simplification.
29737         * lib/ioctl.c (ioctl): Don't undefine.
29738         * lib/socket.c (socket): Don't undefine.
29739
29740         Remove unused module indicator macros.
29741         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29742         GNULIB_$1 as a C macro.
29743
29744         * doc/posix-functions/close.texi: Undo last change.
29745         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29746         Windows platforms.
29747
29748 2008-10-21  Bruno Haible  <bruno@clisp.org>
29749
29750         Add gethostname() declaration to <unistd.h>.
29751         * lib/unistd.in.h (gethostname): New declaration.
29752         * lib/gethostname.c: Include <unistd.h>.
29753         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29754         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29756         and HAVE_GETHOSTNAME.
29757         * modules/gethostname (Depends-on): Add unistd.
29758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29759         (Include): Specify <unistd.h>.
29760         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29761         HAVE_GETHOSTNAME.
29762         * tests/test-gethostname.c: Include <unistd.h> first.
29763
29764 2008-10-21  Bruno Haible  <bruno@clisp.org>
29765
29766         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29767         * modules/select-tests (Depends-on): Likewise.
29768         Reported by Simon Josefsson.
29769
29770 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29771
29772         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29773         * lib/accept.c: New file, based on winsock.c.
29774         * lib/bind.c: New file, based on winsock.c.
29775         * lib/connect.c: New file, based on winsock.c.
29776         * lib/getpeername.c: New file, based on winsock.c.
29777         * lib/getsockname.c: New file, based on winsock.c.
29778         * lib/getsockopt.c: New file, based on winsock.c.
29779         * lib/ioctl.c: New file, based on winsock.c.
29780         * lib/listen.c: New file, based on winsock.c.
29781         * lib/recv.c: New file, based on winsock.c.
29782         * lib/recvfrom.c: New file, based on winsock.c.
29783         * lib/send.c: New file, based on winsock.c.
29784         * lib/sendto.c: New file, based on winsock.c.
29785         * lib/setsockopt.c: New file, based on winsock.c.
29786         * lib/shutdown.c: New file, based on winsock.c.
29787         * lib/socket.c: New file, based on winsock.c.
29788         * lib/w32sock.h: New file, based on winsock.c.
29789         * lib/winsock.c: Remove file.
29790         * modules/accept: Likewise.
29791         * modules/bind: Likewise.
29792         * modules/connect: Likewise.
29793         * modules/getpeername: Likewise.
29794         * modules/getsockname: Likewise.
29795         * modules/getsockopt: Likewise.
29796         * modules/ioctl: Likewise.
29797         * modules/listen: Likewise.
29798         * modules/recv: Likewise.
29799         * modules/recvfrom: Likewise.
29800         * modules/send: Likewise.
29801         * modules/sendto: Likewise.
29802         * modules/setsockopt: Likewise.
29803         * modules/shutdown: Likewise.
29804         * modules/socket: Use socket.c instead of winsock.c.
29805         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29806         * doc/posix-functions/accept.texi: Doc fix.
29807         * doc/posix-functions/bind.texi: Doc fix.
29808         * doc/posix-functions/close.texi: Doc fix.
29809         * doc/posix-functions/connect.texi: Doc fix.
29810         * doc/posix-functions/getpeername.texi: Doc fix.
29811         * doc/posix-functions/getsockname.texi: Doc fix.
29812         * doc/posix-functions/getsockopt.texi: Doc fix.
29813         * doc/posix-functions/ioctl.texi: Doc fix.
29814         * doc/posix-functions/listen.texi: Doc fix.
29815         * doc/posix-functions/recv.texi: Doc fix.
29816         * doc/posix-functions/recvfrom.texi: Doc fix.
29817         * doc/posix-functions/send.texi: Doc fix.
29818         * doc/posix-functions/sendto.texi: Doc fix.
29819         * doc/posix-functions/setsockopt.texi: Doc fix.
29820         * doc/posix-functions/shutdown.texi: Doc fix.
29821         * doc/posix-functions/socket.texi: Doc fix.
29822
29823 2008-10-20  Bruno Haible  <bruno@clisp.org>
29824
29825         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29826         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29827         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29828         as an alias for SIGABRT.
29829         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29830         (sigaction): Map it to SIGABRT.
29831         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29832
29833 2008-10-20  Bruno Haible  <bruno@clisp.org>
29834
29835         * lib/fts.c: Don't include lstat.h.
29836         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29837
29838         Move the lstat() declaration to <sys/stat.h>.
29839         * lib/lstat.h: Remove file.
29840         * lib/sys_stat.in.h: Add special invocation convention.
29841         (lstat): New declaration.
29842         * lib/lstat.c (orig_lstat): New function.
29843         (rpl_lstat): Use orig_lstat instead of lstat.
29844         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29845         AC_C_INLINE. Set REPLACE_LSTAT.
29846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29847         and REPLACE_LSTAT.
29848         * modules/lstat (Files): Remove lib/lstat.h.
29849         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29850         (Include): Specify <sys/stat.h> instead of lstat.h.
29851         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29852         REPLACE_LSTAT.
29853         * NEWS: Mention the change.
29854
29855 2008-10-20  Bruno Haible  <bruno@clisp.org>
29856
29857         * modules/posix_spawn-tests: New file.
29858         * tests/test-posix_spawn3.c: New file.
29859
29860 2008-10-20  Bruno Haible  <bruno@clisp.org>
29861
29862         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29863         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29864         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29865         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29866         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29867
29868 2008-10-20  Bruno Haible  <bruno@clisp.org>
29869
29870         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29871         of posix_spawn on AIX 5.3.
29872
29873 2008-10-20  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29876
29877 2008-10-20  Bruno Haible  <bruno@clisp.org>
29878
29879         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29880         of AC_LANG_PROGRAM.
29881
29882 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29883
29884         * lib/netdb.in.h: Don't define GNU specific constants until they
29885         are supported or needed.  Reported by Bruno Haible
29886         <bruno@clisp.org>.
29887
29888 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29889
29890         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29891
29892 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29893
29894         * lib/getaddrinfo.h: Remove file.
29895         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29896         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29897         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29898         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29899         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29900         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29901         * tests/test-getaddrinfo.c: Likewise.
29902         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29903         * NEWS: Mention change.
29904
29905 2008-10-19  Bruno Haible  <bruno@clisp.org>
29906
29907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29908
29909 2008-10-19  Bruno Haible  <bruno@clisp.org>
29910
29911         * lib/wait-process.c: Include simply <sys/wait.h>.
29912         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29913         WIFSTOPPED): Remove fallback definitions.
29914         * modules/wait-process (Depends-on): Add sys_wait.
29915
29916         New module 'sys_wait'.
29917         * modules/sys_wait: New file.
29918         * lib/sys_wait.in.h: New file, partially copied from
29919         lib/wait-process.c.
29920         * m4/sys_wait_h.m4: New file.
29921         * doc/posix-headers/sys_wait.texi: Mention the new module.
29922
29923 2008-10-19  Bruno Haible  <bruno@clisp.org>
29924
29925         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29926
29927 2008-10-19  Bruno Haible  <bruno@clisp.org>
29928
29929         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29930         * lib/wait-process.c (WAIT_T): Remove type.
29931         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29932         (wait_subprocess): Update.
29933
29934 2008-10-19  Bruno Haible  <bruno@clisp.org>
29935
29936         New module 'atoll'.
29937         * modules/atoll: New file.
29938         * lib/stdlib.in.h (atoll): New declaration.
29939         * lib/atoll.c: New file, from glibc with modifications.
29940         * m4/atoll.m4: New file.
29941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29942         HAVE_ATOLL.
29943         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29944         * doc/posix-functions/atoll.texi: Mention the new module.
29945
29946 2008-10-19  Bruno Haible  <bruno@clisp.org>
29947
29948         Add strtoull() declaration to <stdlib.h>.
29949         * lib/stdlib.in.h (strtoull): New declaration.
29950         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29951         Set HAVE_STRTOULL.
29952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29953         HAVE_STRTOULL.
29954         * modules/strtoull (Depends-on): Add stdlib.
29955         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29956         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29957         HAVE_STRTOULL.
29958
29959 2008-10-19  Bruno Haible  <bruno@clisp.org>
29960
29961         Add strtoll() declaration to <stdlib.h>.
29962         * lib/stdlib.in.h (strtoll): New declaration.
29963         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29964         Set HAVE_STRTOLL.
29965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29966         HAVE_STRTOLL.
29967         * modules/strtoll (Depends-on): Add stdlib.
29968         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29969         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29970
29971 2008-10-19  Bruno Haible  <bruno@clisp.org>
29972
29973         * modules/bcopy (Depends-on): Add strings.
29974         (Include): Specify <strings.h>.
29975
29976 2008-10-19  Bruno Haible  <bruno@clisp.org>
29977
29978         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29979
29980 2008-10-19  Bruno Haible  <bruno@clisp.org>
29981
29982         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29983         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29984         mingw.
29985
29986 2008-10-19  Bruno Haible  <bruno@clisp.org>
29987
29988         * lib/atanl.c: Don't include isnanl.h.
29989         * lib/cosl.c: Likewise.
29990         * lib/ldexpl.c: Likewise.
29991         * lib/logl.c: Likewise.
29992         * lib/sinl.c: Likewise.
29993         * lib/sqrtl.c: Likewise.
29994         * lib/tanl.c: Likewise.
29995
29996         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29997         * lib/isnanf.h: Remove file.
29998         * lib/isnand.h: Remove file.
29999         * lib/isnanl.h: Remove file.
30000         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
30001         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
30002         macros.
30003         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
30004         HAVE_ISNANF, don't define it as a C macro.
30005         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
30006         HAVE_ISNAND, don't define it as a C macro.
30007         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
30008         HAVE_ISNANL, don't define it as a C macro.
30009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
30010         HAVE_ISNAN[FDL].
30011         * modules/isnanf (Files): Remove lib/isnanf.h.
30012         (Depends-on): Add math.
30013         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30014         (Include): Specify <math.h> instead of isnanf.h.
30015         * modules/isnand (Files): Remove lib/isnand.h.
30016         (Depends-on): Add math.
30017         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30018         (Include): Specify <math.h> instead of isnand.h.
30019         * modules/isnanl (Files): Remove lib/isnanl.h.
30020         (Depends-on): Add math.
30021         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
30022         (Include): Specify <math.h> instead of isnanl.h.
30023         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
30024         HAVE_ISNAN[FDL].
30025         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
30026         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
30027         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
30028         * NEWS: Mention the change.
30029
30030 2008-10-18  Bruno Haible  <bruno@clisp.org>
30031
30032         Add getusershell(), setusershell(), endusershell() declarations to
30033         <unistd.h>.
30034         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
30035         declarations.
30036         * lib/getusershell.c: Include unistd.h.
30037         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
30038         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30039         HAVE_GETUSERSHELL.
30040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
30041         and HAVE_GETUSERSHELL.
30042         * modules/getusershell (Depends-on): Add unistd, extensions.
30043         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30044         (Include): Specify <unistd.h>.
30045         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
30046         HAVE_GETUSERSHELL.
30047
30048 2008-10-18  Bruno Haible  <bruno@clisp.org>
30049
30050         Add a getloadavg() declaration to <stdlib.h>.
30051         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
30052         getloadavg declaration.
30053         (getloadavg): New declaration.
30054         * lib/getloadavg.c: Include <stdlib.h> first.
30055         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
30056         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
30057         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
30058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
30059         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30060         * modules/getloadavg (Depends-on): Add stdlib, extensions.
30061         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30062         (Include): Specify <stdlib.h>.
30063         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
30064         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
30065
30066 2008-10-18  Bruno Haible  <bruno@clisp.org>
30067
30068         * lib/dirchownmod.c: Don't include lchmod.h.
30069
30070         Move the lchmod() declaration to <sys/stat.h>.
30071         * lib/lchmod.h: Remove file.
30072         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
30073         (lchmod): New declaration, moved here from lib/lchown.h.
30074         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
30075         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
30076         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
30077         and HAVE_LCHMOD.
30078         * modules/lchmod (Files): Remove lib/lchmod.h.
30079         (Depends-on): Add sys_stat, extensions.
30080         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30081         (Include): Specify <sys/stat.h> instead of lchmod.h.
30082         * modules/sys_stat (Depends-on): Add link-warning.
30083         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
30084         definition of GL_LINK_WARNING.
30085         * NEWS: Mention the change.
30086
30087 2008-10-18  Bruno Haible  <bruno@clisp.org>
30088
30089         * lib/fchdir.c: Don't include dirfd.h.
30090         * lib/fts.c: Likewise.
30091         * lib/getcwd.c: Likewise.
30092         * lib/glob.c: Likewise.
30093
30094         Move the dirfd() declaration to <dirent.h>.
30095         * lib/dirfd.h: Remove file.
30096         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
30097         (dirfd): New declaration.
30098         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
30099         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
30100         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
30101         HAVE_DECL_DIRFD.
30102         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
30103         HAVE_DECL_DIRFD.
30104         * modules/dirfd (Files): Remove lib/dirfd.h.
30105         (Depends-on): Add dirent, extensions.
30106         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
30107         (Include): Specify <dirent.h> instead of dirfd.h.
30108         * modules/dirent (Depends-on): Add link-warning.
30109         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
30110         definition of GL_LINK_WARNING.
30111         * NEWS: Mention the change.
30112
30113 2008-10-18  Bruno Haible  <bruno@clisp.org>
30114
30115         Move the euidaccess() declaration to <unistd.h>.
30116         * lib/euidaccess.h: Remove file.
30117         * lib/unistd.in.h (euidaccess): New declaration.
30118         * lib/euidaccess.c: Don't include euidaccess.h.
30119         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
30120         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
30121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
30122         and HAVE_EUIDACCESS.
30123         * modules/euidaccess (Files): Remove lib/euidaccess.h.
30124         (Depends-on): Add unistd.
30125         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30126         (Include): Specify <unistd.h> instead of euidaccess.h.
30127         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
30128         HAVE_EUIDACCESS.
30129         * NEWS: Mention the change.
30130
30131 2008-10-18  Bruno Haible  <bruno@clisp.org>
30132
30133         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
30134
30135         Move the getdomainname() declaration to <unistd.h>.
30136         * lib/getdomainname.h: Remove file.
30137         * lib/unistd.in.h (getdomainname): New declaration.
30138         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
30139         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
30140         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
30141         HAVE_GETDOMAINNAME.
30142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30143         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
30144         * modules/getdomainname (Files): Remove lib/getdomainname.h.
30145         (Depends-on): Add unistd, extensions.
30146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30147         (Includes): Specify <unistd.h> instead of getdomainname.h.
30148         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
30149         HAVE_GETDOMAINNAME.
30150         * NEWS: Mention the change.
30151
30152 2008-10-18  Bruno Haible  <bruno@clisp.org>
30153
30154         * modules/dirent: New file.
30155         * m4/dirent_h.m4: New file.
30156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
30157         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
30158         * modules/fchdir (Files): Remove lib/dirent.in.h.
30159         (Depends-on): Add dirent.
30160         (Makefile.am): Move rules to modules/dirent.
30161         * doc/posix-headers/dirent.texi: Mention the new module.
30162
30163 2008-10-18  Bruno Haible  <bruno@clisp.org>
30164
30165         Avoid -Wunused-parameter warnings in public gnulib header files.
30166         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
30167         macro.
30168         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
30169
30170 2008-10-18  Bruno Haible  <bruno@clisp.org>
30171
30172         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
30173         * doc/glibc-functions/error.texi: Mention the module 'error'.
30174         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
30175         * doc/glibc-functions/getdomainname.texi: Mention the module
30176         'getdomainname'.
30177         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
30178         * doc/glibc-functions/getpagesize.texi: Mention the module
30179         'getpagesize'.
30180         * doc/glibc-functions/getusershell.texi: Mention the module
30181         'getusershell'.
30182         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
30183         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
30184         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
30185         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
30186         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
30187         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
30188         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
30189         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
30190         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
30191         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
30192         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
30193         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
30194         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
30195         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
30196
30197 2008-10-17  Bruno Haible  <bruno@clisp.org>
30198
30199         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
30200         HP-UX and IRIX, use -0.0L.
30201         * tests/test-ceill.c (minus_zero): Likewise.
30202         * tests/test-floorl.c (minus_zero): Likewise.
30203         * tests/test-frexpl.c (minus_zero): Likewise.
30204         * tests/test-isnan.c (minus_zerol): Likewise.
30205         * tests/test-isnanl.h (minus_zero): Likewise.
30206         * tests/test-ldexpl.c (minus_zero): Likewise.
30207         * tests/test-roundl.c (minus_zero): Likewise.
30208         * tests/test-signbit.c (minus_zerol): Likewise.
30209         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
30210         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
30211         * tests/test-truncl.c (minus_zero): Likewise.
30212         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
30213         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
30214         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
30215         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
30216
30217 2008-10-17  Bruno Haible  <bruno@clisp.org>
30218
30219         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
30220         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
30221         that it gets activated only for gcc >= 3.0.
30222         * lib/dirent.in.h: Likewise.
30223         * lib/errno.in.h: Likewise.
30224         * lib/fcntl.in.h: Likewise.
30225         * lib/float.in.h: Likewise.
30226         * lib/iconv.in.h: Likewise.
30227         * lib/inttypes.in.h: Likewise.
30228         * lib/locale.in.h: Likewise.
30229         * lib/math.in.h: Likewise.
30230         * lib/netdb.in.h: Likewise.
30231         * lib/netinet_in.in.h: Likewise.
30232         * lib/search.in.h: Likewise.
30233         * lib/signal.in.h: Likewise.
30234         * lib/spawn.in.h: Likewise.
30235         * lib/stdarg.in.h: Likewise.
30236         * lib/stdint.in.h: Likewise.
30237         * lib/stdio.in.h: Likewise.
30238         * lib/stdlib.in.h: Likewise.
30239         * lib/string.in.h: Likewise.
30240         * lib/strings.in.h: Likewise.
30241         * lib/sys_file.in.h: Likewise.
30242         * lib/sys_ioctl.in.h: Likewise.
30243         * lib/sys_select.in.h: Likewise.
30244         * lib/sys_socket.in.h: Likewise.
30245         * lib/sys_stat.in.h: Likewise.
30246         * lib/sys_time.in.h: Likewise.
30247         * lib/sysexits.in.h: Likewise.
30248         * lib/time.in.h: Likewise.
30249         * lib/unistd.in.h: Likewise.
30250         * lib/wchar.in.h: Likewise.
30251         * lib/wctype.in.h: Likewise.
30252         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30253
30254 2008-10-17  Jim Meyering  <meyering@redhat.com>
30255
30256         ignore-value: don't depend on inline module
30257         * modules/ignore-value (Depends-on): Remove 'inline'.
30258         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
30259         Suggestion from Bruno Haible.
30260
30261 2008-10-17  Bruno Haible  <bruno@clisp.org>
30262
30263         New implementation of condition variables for Win32.
30264         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
30265         (gl_linked_waitqueue_t): New type.
30266         (gl_cond_t): Use it.
30267         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
30268         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
30269         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
30270         (glthread_cond_init_func, glthread_cond_wait_func,
30271         glthread_cond_timedwait_func, glthread_cond_signal_func,
30272         glthread_cond_broadcast_func, glthread_cond_destroy_func):
30273         Reimplemented on the basis of gl_linked_waitqueue_t.
30274         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
30275         gl_waitqueue_t.
30276         (gl_rwlock_t): Update.
30277         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
30278
30279 2008-10-17  Simon Josefsson  <simon@josefsson.org>
30280
30281         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30282         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30283
30284 2008-10-17  Jim Meyering  <meyering@redhat.com>
30285
30286         ignore-value: new module
30287         * modules/ignore-value: New file.
30288         * lib/ignore-value.h: New file.
30289         * MODULES.html.sh (Compiler warning management): New section,
30290         just for this module.  More to come.
30291
30292 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30293
30294         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30295         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30296         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30297
30298 2008-10-16  Jim Meyering  <meyering@redhat.com>
30299
30300         openat-die.c: avoid 'no previous prototype' warning
30301         * lib/openat-die.c: Include "openat.h".
30302         Reported by Reuben Thomas <rrt@sc3d.org>.
30303
30304 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30305
30306         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30307         * lib/netdb.in.h: Fix typo.
30308         Reported by Bruno Haible  <bruno@clisp.org>
30309
30310         * lib/netdb.in.h: Include sys/socket.h for platforms without
30311         netdb.h, to get structures like hostent on MinGW.
30312         * modules/netdb (Depends-on): Add sys_socket.
30313
30314 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30315
30316         * modules/netdb, modules/netdb-tests: New file.
30317         * m4/netdb_h.m4: New file.
30318         * lib/netdb.in.h: Add, currently just an empty file pending
30319         definitions.
30320         * tests/test-netdb.c: New file.
30321         * doc/posix-headers/netdb.texi: Mention that we replace it if
30322         needed.
30323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30324         netdb.
30325
30326 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30327
30328         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30329         with code.
30330
30331 2008-10-13  Bruno Haible  <bruno@clisp.org>
30332
30333         * lib/glthread/cond.c (glthread_cond_wait_func,
30334         glthread_cond_timedwait_func): Add a comment.
30335
30336 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30337
30338         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30339         * tests/test-select.c: Likewise,
30340
30341 2008-10-13  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/glthread/cond.c (glthread_cond_wait_func,
30344         glthread_cond_timedwait_func): Fix variable name.
30345         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30346
30347 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30348
30349         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30351         struct sockaddr.sa_len.
30352         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30353
30354 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30355
30356         * build-aux/pmccabe2html: Add css and css_url parameters.
30357
30358 2008-10-12  Bruno Haible  <bruno@clisp.org>
30359
30360         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30361         calling aclx_get.
30362         Reported by Rainer Tammer <tammer@tammer.net>.
30363
30364 2008-10-12  Bruno Haible  <bruno@clisp.org>
30365
30366         Use msvcrt aware primitives for creation/termination of Win32 threads.
30367         * lib/glthread/thread.c: Include <process.h>.
30368         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30369         (wrapper_func): Update signature.
30370         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30371
30372 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30373             Bruno Haible  <bruno@clisp.org>
30374
30375         Provide a Win32 implementation of the 'cond' module.
30376         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30377         * lib/glthread/cond.c (glthread_cond_init_func,
30378         glthread_cond_wait_func, glthread_cond_timedwait_func,
30379         glthread_cond_signal_func, glthread_cond_broadcast_func,
30380         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30381         * modules/cond (Dependencies): Add gettimeofday.
30382
30383 2008-10-11  Bruno Haible  <bruno@clisp.org>
30384
30385         Make sleep work on older versions of mingw.
30386         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30387         only whether it exists.
30388         * doc/posix-functions/sleep.texi: Mention the problem with older
30389         versions of mingw.
30390
30391 2008-10-11  Bruno Haible  <bruno@clisp.org>
30392
30393         New module 'shutdown'.
30394         * modules/shutdown: New file.
30395         * lib/sys_socket.in.h (shutdown): New declaration.
30396         * lib/winsock.c (shutdown): New function.
30397         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30398         GNULIB_SHUTDOWN.
30399         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30400         * doc/posix-functions/shutdown.texi: Document the new module.
30401
30402 2008-10-11  Jim Meyering  <meyering@redhat.com>
30403
30404         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30405
30406 2008-10-11  Bruno Haible  <bruno@clisp.org>
30407
30408         New module 'fclose'.
30409         * modules/fclose: New file.
30410         * lib/stdio.in.h (fclose): New declaration.
30411         * lib/fclose.c: New file.
30412         * m4/fclose.m4: New file.
30413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30414         REPLACE_FCLOSE.
30415         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30416         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30417         REPLACE_FCLOSE.
30418         * modules/close (Depends-on): fclose.
30419         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30420
30421 2008-10-11  Bruno Haible  <bruno@clisp.org>
30422
30423         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30424         set errno and don't call _close.
30425
30426 2008-10-10  Bruno Haible  <bruno@clisp.org>
30427
30428         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30429         ACL, not afterwards. Fixes test failure on Cygwin.
30430
30431 2008-10-09  Ben Pfaff  <blp@gnu.org>
30432
30433         * build-aux/announce-gen: Fix gnulib version related part of usage
30434         message.  Die with a useful error message if no tarballs are
30435         found.
30436
30437 2008-10-10  Jim Meyering  <meyering@redhat.com>
30438
30439         bootstrap: use git's --depth=N option only if it's supported
30440         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30441         recognize the --depth option.  Reported by Pádraig Brady.
30442
30443 2008-10-09  Bruno Haible  <bruno@clisp.org>
30444
30445         New module 'ioctl'.
30446         * modules/ioctl: New file.
30447         * lib/sys_socket.in.h (ioctl): Remove declaration.
30448         * lib/winsock.c: Include <sys/ioctl.h>.
30449         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30450         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30451         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30452         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30453         * doc/posix-functions/ioctl.texi: Mention the new module.
30454
30455 2008-10-09  Bruno Haible  <bruno@clisp.org>
30456
30457         New module 'sys_ioctl'.
30458         * lib/sys_ioctl.in.h: New file.
30459         * m4/sys_ioctl_h.m4: New file.
30460         * modules/sys_ioctl: New file.
30461         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30462
30463 2008-10-09  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30466         * lib/winsock.c: Include <stdarg.h>.
30467         (rpl_ioctl): Change to second argument 'int' and then varargs.
30468
30469 2008-10-09  Bruno Haible  <bruno@clisp.org>
30470
30471         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30472         when the sys_socket module is present and the system has <winsock2.h>.
30473
30474 2008-10-09  Bruno Haible  <bruno@clisp.org>
30475
30476         * doc/posix-functions/close.texi: Mention module 'close' instead of
30477         module 'sys_socket'.
30478
30479 2008-10-09  Bruno Haible  <bruno@clisp.org>
30480
30481         * doc/glibc-headers/sys_ioctl.texi: New file.
30482         * doc/gnulib.texi: Include it.
30483
30484 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30485             Bruno Haible  <bruno@clisp.org>
30486
30487         Combine the two replacements of 'close'.
30488         * lib/sys_socket.in.h (close): Define to a reminder to include
30489         <unistd.h>.
30490         (_gl_close_fd_maybe_socket): New declaration.
30491         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30492         * lib/winsock.c (close): Remove undefinition.
30493         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30494         needed for the gnulib module 'close'.
30495         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30496         define to an error symbol or to a warning, if suitable.
30497         * lib/close.c: Include <sys/socket.h>.
30498         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30499         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30500         UNISTD_H_HAVE_WINSOCK2_H.
30501         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30503         UNISTD_H_HAVE_WINSOCK2_H.
30504         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30505         (configure.ac): Set a module indicator.
30506         (Makefile.am): Substitute GNULIB_CLOSE.
30507         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30508         * modules/poll-tests (Depends-on): Add close.
30509         * modules/select-tests (Depends-on): Likewise.
30510
30511 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30512             Bruno Haible  <bruno@clisp.org>
30513
30514         New module 'close'.
30515         * modules/close: New file.
30516         * lib/unistd.in.h (close): Move declaration out of the
30517         FCHDIR_REPLACEMENT scope.
30518         (_gl_unregister_fd): New declaration.
30519         * lib/close.c: New file.
30520         * lib/fchdir.c (rpl_close): Remove function.
30521         * m4/close.m4: New file.
30522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30523         close.
30524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30525         REPLACE_CLOSE.
30526         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30527         REPLACE_CLOSE.
30528         * modules/fchdir (Depends-on): Add close.
30529
30530 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30531             Bruno Haible  <bruno@clisp.org>
30532
30533         * lib/fcntl.in.h (open): Simplify conditionals.
30534         (_gl_register_fd): New declaration.
30535         * lib/fchdir.c (rpl_open): Remove function.
30536         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30537         also.
30538         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30540         open.
30541
30542 2008-10-09  Jim Meyering  <meyering@redhat.com>
30543
30544         GNUmakefile: use the more name-space-friendly "_version"
30545         * top/GNUmakefile (_dummy): Update.
30546         (_version): Rename from "version".
30547
30548 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30549             Bruno Haible  <bruno@clisp.org>
30550
30551         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30552         rpl_close.
30553         (_gl_register_fd): New function, extracted from rpl_open.
30554         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30555         (rpl_open, rpl_opendir): Use _gl_register_fd.
30556
30557 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30558
30559         Fix organization of 'open' replacement.
30560         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30561         (gl_FUNC_OPEN): Use it.
30562         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30563
30564 2008-10-08  Bruno Haible  <bruno@clisp.org>
30565
30566         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30567
30568 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30569
30570         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30571         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30572         listen).
30573
30574 2008-10-08  Eric Blake  <ebb9@byu.net>
30575
30576         GNUmakefile: add 'make version' target
30577         * top/GNUmakefile (_curr-ver): Split version update rules...
30578         (version): ...into a target.
30579
30580 2008-10-07  Bruno Haible  <bruno@clisp.org>
30581
30582         Use a more portable replacement expression for -0.0L.
30583         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30584         instead of -0.0L. Fix m4 quotation.
30585
30586         * tests/test-signbit.c: Include <float.h>.
30587         (minus_zero): New variable.
30588         (test_signbitl): Use minus_zero instead of -zero.
30589         * modules/signbit-tests (Depends-on): Add float.
30590
30591         * tests/test-ceill.c: Include <float.h>.
30592         (zero): Remove variable.
30593         (minus_zero): New variable.
30594         (main): Use minus_zero instead of -zero.
30595         * modules/ceill-tests (Depends-on): Add float.
30596
30597         * tests/test-floorl.c: Include <float.h>.
30598         (zero): Remove variable.
30599         (minus_zero): New variable.
30600         (main): Use minus_zero instead of -zero.
30601         * modules/floorl-tests (Depends-on): Add float.
30602
30603         * tests/test-roundl.c: Include <float.h>.
30604         (zero): Remove variable.
30605         (minus_zero): New variable.
30606         (main): Use minus_zero instead of -zero.
30607         * modules/roundl-tests (Depends-on): Add float.
30608
30609         * tests/test-truncl.c: Include <float.h>.
30610         (zero): Remove variable.
30611         (minus_zero): New variable.
30612         (main): Use minus_zero instead of -zero.
30613         * modules/truncl-tests (Depends-on): Add float.
30614
30615         * tests/test-frexpl.c (zero): Remove variable.
30616         (minus_zero): New variable.
30617         (main): Use minus_zero instead of -zero.
30618         * modules/frexpl-tests (Depends-on): Add float.
30619
30620         * tests/test-isnan.c (zerol): Remove variable.
30621         (minus_zerol): New variable.
30622         (test_long_double): Use minus_zerol instead of -zerol.
30623         * modules/isnan-tests (Depends-on): Add float.
30624
30625         * tests/test-isnanl.h (zero): Remove variable.
30626         (minus_zero): New variable.
30627         (main): Use minus_zero instead of -zero.
30628         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30629         * modules/isnanl-tests (Depends-on): Add float.
30630
30631         * tests/test-ldexpl.c (zero): Remove variable.
30632         (minus_zero): New variable.
30633         (main): Use minus_zero instead of -zero.
30634         * modules/ldexpl-tests (Depends-on): Add float.
30635
30636         * tests/test-snprintf-posix.h (zerol): Remove variable.
30637         (minus_zerol): New variable.
30638         (test_function): Use minus_zerol instead of -zerol.
30639         * modules/snprintf-posix-tests (Depends-on): Add float.
30640         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30641
30642         * tests/test-sprintf-posix.h (zerol): Remove variable.
30643         (minus_zerol): New variable.
30644         (test_function): Use minus_zerol instead of -zerol.
30645         * modules/sprintf-posix-tests (Depends-on): Add float.
30646         * modules/vsprintf-posix-tests (Depends-on): Add float.
30647
30648         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30649         (minus_zerol): New variable.
30650         (test_function): Use minus_zerol instead of -zerol.
30651         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30652
30653         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30654         (minus_zerol): New variable.
30655         (test_function): Use minus_zerol instead of -zerol.
30656         * modules/vasprintf-posix-tests (Depends-on): Add float.
30657
30658 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30659
30660         * MODULES.html.sh (Support for building documentation): Mention
30661         pmccabe2html.  Sort entries.
30662
30663         Add pmccabe2html module, from gnupdf.
30664         * build-aux/pmccabe.css: New file.
30665         * build-aux/pmccabe2html: New file.
30666         * m4/pmccabe2html.m4: New file.
30667         * modules/pmccabe2html: New file.
30668
30669 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30670
30671         flock: new module
30672         * MODULES.html.sh: Add to list of modules.
30673         * lib/flock.c: flock implementation for Windows and Unix systems
30674         which have fcntl.
30675         * doc/glibc-functions/flock.texi: Update documentation.
30676         * lib/sys_file.in.h: <sys/file.h> header file.
30677         * m4/flock.m4: M4 macros.
30678         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30679         * modules/flock: flock module.
30680         * modules/flock-tests: flock tests module.
30681         * modules/sys_file: sys/file.h module.
30682         * tests/test-flock.c: test suite for flock.
30683
30684 2008-10-06  Jim Meyering  <meyering@redhat.com>
30685
30686         bootstrap: check for LT_INIT more portably still ;-)
30687         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30688         Spotted by Bruno Haible.
30689
30690 2008-10-06  Eric Blake  <ebb9@byu.net>
30691
30692         test-signbit: avoid tripping Irix cc bug on -0.0L
30693         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30694         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30695         entire testsuite consistent and avoids an Irix 6.2 bug.
30696
30697 2008-10-05  Bruno Haible  <bruno@clisp.org>
30698             Jim Meyering  <jim@meyering.net>
30699
30700         Add an option for ignoring EPIPE during close_stdout.
30701         * lib/closeout.h: Include <stdbool.h>.
30702         (close_stdout_set_ignore_EPIPE): New declaration.
30703         * lib/closeout.c: Include <stdbool.h>.
30704         (ignore_EPIPE): New variable.
30705         (close_stdout_set_ignore_EPIPE): New function.
30706         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30707         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30708         failure.
30709         * modules/closeout (Depends-on): Add stdbool.
30710
30711 2008-10-05  Bruno Haible  <bruno@clisp.org>
30712
30713         * modules/accept: New file.
30714         * modules/bind: New file.
30715         * modules/connect: New file.
30716         * modules/getpeername: New file.
30717         * modules/getsockname: New file.
30718         * modules/getsockopt: New file.
30719         * modules/listen: New file.
30720         * modules/recv: New file.
30721         * modules/recvfrom: New file.
30722         * modules/send: New file.
30723         * modules/sendto: New file.
30724         * modules/setsockopt: New file.
30725         * modules/socket: New file.
30726         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30727         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30728         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30729         the particular module is requested. Add a link warning when the
30730         particular module is not requested.
30731         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30732         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30733         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30734         the particular module is requested.
30735         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30736         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30737         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30738         * modules/sys_socket (Depends-on): Add link-warning.
30739         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30740         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30741         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30742         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30743         GL_LINK_WARNING.
30744         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30745         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30746         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30747         * doc/posix-functions/getpeername.texi: Mention the new module
30748         'getpeername'.
30749         * doc/posix-functions/getsockname.texi: Mention the new module
30750         'getsockname'.
30751         * doc/posix-functions/getsockopt.texi: Mention the new module
30752         'getsockopt'.
30753         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30754         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30755         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30756         * doc/posix-functions/send.texi: Mention the new module 'send'.
30757         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30758         * doc/posix-functions/setsockopt.texi: Mention the new module
30759         'setsockopt'.
30760         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30761         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30762         listen, connect, accept.
30763         * modules/select-tests (Depends-on): Likewise.
30764
30765 2008-10-05  Bruno Haible  <bruno@clisp.org>
30766
30767         * lib/winsock.c (strerror): Remove unused #undef.
30768         (rpl_close): Remove unused local variable.
30769
30770         * modules/sys_socket (Depends-on); Add errno.
30771
30772 2008-10-05  Bruno Haible  <bruno@clisp.org>
30773
30774         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30775         (select): Add a link warning when the 'select' module is not used.
30776         * modules/sys_select (Depends-on): Add link-warning.
30777         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30778         Suggested by Paolo Bonzini.
30779
30780 2008-10-05  Jim Meyering  <meyering@redhat.com>
30781
30782         bootstrap: check for LT_INIT more portably
30783         * build-aux/bootstrap: Avoid using grep -E, since it's not
30784         portable enough.  Suggestion from Bruno Haible.
30785
30786 2008-10-05  Bruno Haible  <bruno@clisp.org>
30787
30788         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30789         as being fixed by gnulib.
30790
30791 2008-10-05  Bruno Haible  <bruno@clisp.org>
30792
30793         * modules/select-tests: New file, mostly copied from
30794         modules/sys_select-tests.
30795         * tests/test-select.c: New file, mostly copied from
30796         tests/test-sys_select.c.
30797         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30798         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30799         (Makefile.am): Remove test_sys_select_LDADD.
30800
30801         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30802         to an undefined symbol, for an error message.
30803         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30804         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30805         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30806         winsock-select.c here.
30807         * modules/sys_select (Files): Remove lib/winsock-select.c.
30808         (Depends-on): Remove alloca.
30809         (Makefile.am): Substitute GNULIB_SELECT.
30810         * modules/select: New file.
30811         * doc/posix-functions/select.texi: Update.
30812
30813 2008-10-05  Bruno Haible  <bruno@clisp.org>
30814
30815         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30816         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30817         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30818         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30819         getdtablesize.
30820         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30821         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30822
30823 2008-10-05  Bruno Haible  <bruno@clisp.org>
30824
30825         * modules/getdtablesize-tests: New file.
30826         * tests/test-getdtablesize.c: New file.
30827
30828         New module 'getdtablesize'.
30829         * lib/unistd.in.h (getdtablesize): New declaration.
30830         * lib/getdtablesize.c: New file.
30831         * m4/getdtablesize.m4: New file.
30832         * modules/getdtablesize: New file.
30833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30834         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30835         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30836         HAVE_GETDTABLESIZE.
30837         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30838
30839 2008-10-05  Bruno Haible  <bruno@clisp.org>
30840
30841         * modules/sched (Makefile.am): Fix typo.
30842         Reported by Simon Josefsson.
30843
30844 2008-10-05  Jim Meyering  <meyering@redhat.com>
30845
30846         bootstrap: check for LT_INIT, too
30847         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30848         are deprecated.  Suggestion from Ralf Wildenhues.
30849
30850 2008-10-05  Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30853         overriding them by ours.
30854         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30855
30856 2008-10-05  Jim Meyering  <meyering@redhat.com>
30857
30858         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30859         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30860         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30861
30862 2008-10-04  Bruno Haible  <bruno@clisp.org>
30863
30864         * modules/dup2 (License): Change to LGPLv2+.
30865         * modules/sleep (License): Likewise.
30866         * modules/perror (License): Likewise.
30867         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30868         Blake.
30869         * modules/signal (License): Likewise.
30870         * modules/sigprocmask (License): Likewise.
30871         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30872         Meyering.
30873
30874 2008-10-04  Bruno Haible  <bruno@clisp.org>
30875
30876         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30877         Reported by Rainer Tammer <tammer@tammer.net>.
30878
30879 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30880             Bruno Haible  <bruno@clisp.org>
30881
30882         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30883         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30884         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30885
30886 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30887
30888         filevercmp: new module
30889         * lib/filevercmp.h: New function filevercmp comparing version strings.
30890         * lib/filevercmp.c: Implementation of filevercmp function.
30891         * modules/filevercmp: Module metadata.
30892         * tests/test-filevercmp.c: Unit test for new module.
30893         * modules/filevercmp-tests: Unit test metadata.
30894         * MODULES.html.sh: Add filevercmp module.
30895
30896 2008-10-03  Bruno Haible  <bruno@clisp.org>
30897
30898         * lib/c-ctype.h: Add comment.
30899         Reported by Jim Meyering.
30900
30901 2008-10-02  Bruno Haible  <bruno@clisp.org>
30902
30903         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30904
30905 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30906
30907         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30908         name of bootstrap.conf accordingly.
30909
30910 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30911
30912         * build-aux/bootstrap: Install git-merge-changelog configuration
30913         items into .gitconfig if needed.
30914
30915 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30916
30917         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30918         git repository, and initialize/update it accordingly.
30919
30920 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30921
30922         * modules/fsync-tests: New file.
30923         * tests/test-fsync.c: New file.
30924
30925         New module 'fsync'.
30926         * lib/fsync.c: New file.
30927         * m4/fsync.m4: New file.
30928         * modules/fsync: New file.
30929         * lib/unistd.in.h (fsync): New declaration.
30930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30931         GNULIB_FSYNC and HAVE_FSYNC.
30932         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30933         * MODULES.html.sh (posix_functions): Add fsync.
30934         * doc/posix-functions/fsync.texi: Mention the new module.
30935
30936 2008-10-02  Jim Meyering  <meyering@redhat.com>
30937
30938         fts.c: sync with similar code from coreutils' remove.c
30939         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30940         Guard also with "#if defined __linux__", since for now at least,
30941         this code is Linux-kernel-specific.
30942
30943 2008-10-02  Jim Meyering  <meyering@redhat.com>
30944
30945         fts: bug fixes
30946         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30947         Include <sys/vfs.h>, not <sys/statfs.h>.
30948
30949         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30950         Include <sys/vfs.h>, not <sys/statfs.h>.
30951
30952 2008-10-01  Bruno Haible  <bruno@clisp.org>
30953
30954         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30955         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30956         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30957         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30958         * doc/posix-functions/posix_spawnp.texi: Likewise.
30959         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30960         whether posix_spawn actually works.
30961         * m4/pipe.m4 (gl_PIPE): Likewise.
30962         * modules/execute (Files): Add m4/posix_spawn.m4.
30963         * modules/pipe (Files): Add m4/posix_spawn.m4.
30964         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30965
30966 2008-10-01  Jim Meyering  <meyering@redhat.com>
30967
30968         remove trailing spaces
30969         * NEWS: Likewise.
30970         * lib/poll.c (poll): Likewise.
30971         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30972         * lib/winsock.c (rpl_close): Likewise.
30973         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30974         * modules/yield: Likewise.
30975         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30976         * tests/test-sys_select.c (connect_to_socket): Likewise.
30977
30978         fts.c: adjust a new interface to be more generally useful
30979         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30980         (fts_build): Adjust caller.
30981
30982 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30983
30984         * modules/cond-tests: New file.
30985         * tests/test-cond.c: New file.
30986
30987 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30988             Bruno Haible  <bruno@clisp.org>
30989
30990         * modules/cond (Dependencies): Add errno, time.
30991         * lib/glthread/cond.h: Include <time.h>.
30992         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30993         across platforms.
30994
30995 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30996             Bruno Haible  <bruno@clisp.org>
30997
30998         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30999
31000 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31001             Bruno Haible  <bruno@clisp.org>
31002
31003         * modules/tls-tests (Depends-on): Add thread, yield.
31004         (configure.ac): Remove all checks.
31005         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
31006         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31007         gl_thread_self): Remove definitions. Include glthread/thread.h and
31008         glthread/yield.h instead.
31009         (test_tls): Pass an additional NULL argument to gl_thread_join.
31010
31011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31012             Bruno Haible  <bruno@clisp.org>
31013
31014         * modules/lock-tests (Depends-on): Add thread, yield.
31015         (configure.ac): Remove all checks.
31016         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
31017         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
31018         gl_thread_self): Remove definitions. Include glthread/thread.h and
31019         glthread/yield.h instead.
31020         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
31021         additional NULL argument to gl_thread_join.
31022
31023 2008-09-30  Bruno Haible  <bruno@clisp.org>
31024
31025         Fix the Win32 implementation of the 'thread' module.
31026         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
31027         pointer type.
31028         (gl_thread_self): Invoke gl_thread_self_func.
31029         (gl_thread_self_func): New declaration.
31030         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
31031         (do_init_self_key, init_self_key): New functions.
31032         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
31033         Remove some fields.
31034         (running_threads, running_lock): Remove variables.
31035         (get_current_thread_handle): New function.
31036         (gl_thread_self_func, wrapper_func, glthread_create_func,
31037         glthread_join_func, gl_thread_exit_func): Largely rewritten and
31038         simplified.
31039
31040 2008-09-30  Bruno Haible  <bruno@clisp.org>
31041
31042         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
31043         files.
31044
31045 2008-09-30  Jim Meyering  <meyering@redhat.com>
31046
31047         fts.m4: correct the test for statfs.f_type
31048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
31049         when checking for statfs.f_type.
31050
31051 2008-09-15  Simon Josefsson  <simon@josefsson.org>
31052
31053         tests: avoid some compiler warnings
31054         * tests/test-memchr.c (main): Pass NULL indirectly.
31055         * tests/test-getdate.c (main): Remove unused variable 'ret'.
31056
31057 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
31058
31059         getdate.y: disallow countable dayshifts like "4 yesterday ago"
31060         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
31061         exactly specified dayshifts.
31062         (dayshift): New rule.
31063         (rel): Add dayshift.
31064         (relative_time_table) [tomorrow, yesterday, today, now]:
31065         Use tDAY_SHIFT in place of tDAY_UNIT.
31066         * tests/test-getdate.c: Add tests for now-disallowed countable
31067         dayshifts, e.g., "4 yesterday ago".
31068
31069 2008-09-29  Bruno Haible  <bruno@clisp.org>
31070
31071         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
31072         * tests/test-posix_spawn1.in.sh: Renamed from
31073         tests/test-posix_spawn.in.sh.
31074         * tests/test-posix_spawn2.c: New file.
31075         * tests/test-posix_spawn2.in.sh: New file.
31076         * modules/posix_spawnp-tests (Files): Update.
31077         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
31078
31079 2008-09-29  Bruno Haible  <bruno@clisp.org>
31080
31081         Propagate effects of putenv/setenv/unsetenv to child processes.
31082         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
31083         * lib/pipe.c (create_pipe): Likewise.
31084
31085 2008-09-29  Bruno Haible  <bruno@clisp.org>
31086
31087         Enable use of shell scripts as executables in mingw.
31088         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
31089         run the program as a shell script.
31090         * lib/pipe.c (create_pipe): Likewise.
31091         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
31092         resulting array.
31093
31094 2008-09-29  Eric Blake  <ebb9@byu.net>
31095
31096         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
31097
31098 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
31099
31100         * doc/posix-functions/accept.texi: Update mingw problems.
31101         * doc/posix-functions/bind.texi: Update mingw problems.
31102         * doc/posix-functions/close.texi: Update mingw problems.
31103         * doc/posix-functions/connect.texi: Update mingw problems.
31104         * doc/posix-functions/getpeername.texi: Update mingw problems.
31105         * doc/posix-functions/getsockname.texi: Update mingw problems.
31106         * doc/posix-functions/getsockopt.texi: Update mingw problems.
31107         * doc/posix-functions/ioctl.texi: Update mingw problems.
31108         * doc/posix-functions/listen.texi: Update mingw problems.
31109         * doc/posix-functions/recv.texi: Update mingw problems.
31110         * doc/posix-functions/recvfrom.texi: Update mingw problems.
31111         * doc/posix-functions/select.texi: Update mingw problems.
31112         * doc/posix-functions/send.texi: Update mingw problems.
31113         * doc/posix-functions/sendto.texi: Update mingw problems.
31114         * doc/posix-functions/setsockopt.texi: Update mingw problems.
31115         * doc/posix-functions/socket.texi: Update mingw problems.
31116
31117 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
31118             Bruno Haible  <bruno@clisp.org>
31119
31120         * lib/sys_select.in.h: Include sys/time.h.
31121         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
31122         * modules/sys_select: Depend on sys_time.
31123         * tests/test-sys_select.c: Test that sys/select.h defines struct
31124         timeval fully.
31125
31126 2008-09-29  Bruno Haible  <bruno@clisp.org>
31127
31128         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
31129         * lib/sys_select.in.h: Likewise.
31130
31131 2008-09-29  Bruno Haible  <bruno@clisp.org>
31132
31133         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
31134
31135 2008-09-29  Bruno Haible  <bruno@clisp.org>
31136
31137         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
31138         Set LIBSOCKET instead of augmenting LIBS.
31139         * modules/sockets (Link): New section.
31140         * modules/sockets-tests (test_sockets_LDADD): New variable.
31141         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
31142         * modules/poll-tests (test_poll_LDADD): New variable.
31143         * NEWS: Document the change.
31144
31145 2008-09-29  Bruno Haible  <bruno@clisp.org>
31146
31147         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
31148         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
31149         ARPA_INET_H directly.
31150         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31151
31152 2008-09-28  Bruno Haible  <bruno@clisp.org>
31153
31154         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
31155         from gl_HEADER_SYS_SOCKET.
31156         (gl_HEADER_SYS_SOCKET): Invoke it.
31157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31158
31159 2008-09-28  Bruno Haible  <bruno@clisp.org>
31160
31161         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
31162         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
31163         Needed on OSF/1 4.0.
31164
31165 2008-09-28  Bruno Haible  <bruno@clisp.org>
31166
31167         Override open more carefully.
31168         * lib/open.c (orig_open): New function.
31169         (rpl_open): Use orig_open instead of open.
31170         * lib/fcntl.in.h: Add special invocation convention.
31171         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
31172         (gl_FUNC_OPEN): Invoke it.
31173
31174         Override freopen more carefully.
31175         * lib/freopen.c (orig_freopen): New function.
31176         (rpl_freopen): Use orig_freopen instead of freopen.
31177         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
31178         (gl_FUNC_FREOPEN): Invoke it.
31179
31180         Override fopen more carefully.
31181         * lib/fopen.c (orig_fopen): New function.
31182         (rpl_fopen): Use orig_fopen instead of fopen.
31183         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
31184         (gl_FUNC_FOPEN): Invoke it.
31185         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
31186
31187 2008-09-28  Bruno Haible  <bruno@clisp.org>
31188
31189         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
31190         SIGPIPE.
31191
31192 2008-09-28  Bruno Haible  <bruno@clisp.org>
31193
31194         * tests/test-sigaction.c (handler, main): Disable the check whether
31195         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
31196         glibc systems with LinuxThreads.
31197
31198 2008-09-28  Bruno Haible  <bruno@clisp.org>
31199
31200         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
31201
31202         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
31203         with AIX xlc.
31204         * lib/fcntl.in.h (open): Likewise.
31205         Reported by Rainer Tammer <tammer@tammer.net>.
31206
31207 2008-09-28  Bruno Haible  <bruno@clisp.org>
31208
31209         * modules/posix_spawnp-tests: New file.
31210         * tests/test-posix_spawn.c: New file.
31211         * tests/test-posix_spawn.in.sh: New file.
31212
31213         New module 'posix_spawnp'.
31214         * modules/posix_spawnp: New file.
31215         * lib/spawnp.c: New file, from GNU libc with modifications.
31216         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
31217
31218         New module 'posix_spawn'.
31219         * modules/posix_spawn: New file.
31220         * lib/spawn.c: New file, from GNU libc with modifications.
31221         * doc/posix-functions/posix_spawn.texi: Mention the new module.
31222
31223         New module 'posix_spawnattr_destroy'.
31224         * modules/posix_spawnattr_destroy: New file.
31225         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
31226         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
31227         module.
31228
31229         New module 'posix_spawnattr_setsigmask'.
31230         * modules/posix_spawnattr_setsigmask: New file.
31231         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
31232         modifications.
31233         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
31234         new module.
31235
31236         New module 'posix_spawnattr_getsigmask'.
31237         * modules/posix_spawnattr_getsigmask: New file.
31238         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
31239         modifications.
31240         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
31241         new module.
31242
31243         New module 'posix_spawnattr_setsigdefault'.
31244         * modules/posix_spawnattr_setsigdefault: New file.
31245         * lib/spawnattr_setdefault.c: New file, from GNU libc with
31246         modifications.
31247         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
31248         new module.
31249
31250         New module 'posix_spawnattr_getsigdefault'.
31251         * modules/posix_spawnattr_getsigdefault: New file.
31252         * lib/spawnattr_getdefault.c: New file, from GNU libc with
31253         modifications.
31254         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
31255         new module.
31256
31257         New module 'posix_spawnattr_setschedpolicy'.
31258         * modules/posix_spawnattr_setschedpolicy: New file.
31259         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
31260         modifications.
31261         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
31262         new module.
31263
31264         New module 'posix_spawnattr_getschedpolicy'.
31265         * modules/posix_spawnattr_getschedpolicy: New file.
31266         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
31267         modifications.
31268         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
31269         new module.
31270
31271         New module 'posix_spawnattr_setschedparam'.
31272         * modules/posix_spawnattr_setschedparam: New file.
31273         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
31274         modifications.
31275         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
31276         new module.
31277
31278         New module 'posix_spawnattr_getschedparam'.
31279         * modules/posix_spawnattr_getschedparam: New file.
31280         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31281         modifications.
31282         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31283         new module.
31284
31285         New module 'posix_spawnattr_setpgroup'.
31286         * modules/posix_spawnattr_setpgroup: New file.
31287         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31288         modifications.
31289         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31290         module.
31291
31292         New module 'posix_spawnattr_getpgroup'.
31293         * modules/posix_spawnattr_getpgroup: New file.
31294         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31295         modifications.
31296         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31297         module.
31298
31299         New module 'posix_spawnattr_setflags'.
31300         * modules/posix_spawnattr_setflags: New file.
31301         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31302         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31303         module.
31304
31305         New module 'posix_spawnattr_getflags'.
31306         * modules/posix_spawnattr_getflags: New file.
31307         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31308         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31309         module.
31310
31311         New module 'posix_spawnattr_init'.
31312         * modules/posix_spawnattr_init: New file.
31313         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31314         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31315         module.
31316
31317         New module 'posix_spawn_file_actions_destroy'.
31318         * modules/posix_spawn_file_actions_destroy: New file.
31319         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31320         modifications.
31321         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31322         the new module.
31323
31324         New module 'posix_spawn_file_actions_addopen'.
31325         * modules/posix_spawn_file_actions_addopen: New file.
31326         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31327         modifications.
31328         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31329         the new module.
31330
31331         New module 'posix_spawn_file_actions_adddup2'.
31332         * modules/posix_spawn_file_actions_adddup2: New file.
31333         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31334         modifications.
31335         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31336         the new module.
31337
31338         New module 'posix_spawn_file_actions_addclose'.
31339         * modules/posix_spawn_file_actions_addclose: New file.
31340         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31341         modifications.
31342         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31343         the new module.
31344
31345         New module 'posix_spawn_file_actions_init'.
31346         * modules/posix_spawn_file_actions_init: New file.
31347         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31348         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31349         new module.
31350
31351         New module 'posix_spawn-internal'.
31352         * modules/posix_spawn-internal: New file.
31353         * lib/spawn_int.h: New file, from GNU libc with modifications.
31354         * lib/spawni.c: New file, from GNU libc with modifications.
31355         * m4/posix_spawn.m4: New file.
31356
31357         New module 'spawn'.
31358         * modules/spawn: New file.
31359         * lib/spawn.in.h: New file, from GNU libc with modifications.
31360         * m4/spawn_h.m4: New file.
31361         * doc/posix-headers/spawn.texi: Mention the new module.
31362
31363 2008-09-28  Bruno Haible  <bruno@clisp.org>
31364
31365         * modules/sched-tests: New file.
31366         * tests/test-sched.c: New file.
31367
31368         New module 'sched'.
31369         * modules/sched: New file.
31370         * lib/sched.in.h: New file.
31371         * m4/sched_h.m4: New file.
31372         * doc/posix-headers/sched.texi: Mention the new module.
31373
31374 2008-09-27  Eric Blake  <ebb9@byu.net>
31375
31376         Fix previous patch, and tweak references to $0.
31377         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31378         (func_version, func_gnulib_dir): Don't call this program
31379         gnulib-tool.
31380         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31381         with using $0 in function.
31382         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31383         (func_fatal_error): Reuse the name the user invoked us with.
31384
31385 2008-09-27  Bruno Haible  <bruno@clisp.org>
31386
31387         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31388         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31389         (gl_ICONV_H): Not here.
31390         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31391         instead of assigning ICONV_H directly.
31392
31393         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31395         WCHAR_H directly.
31396
31397 2008-09-27  Bruno Haible  <bruno@clisp.org>
31398
31399         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31400         * modules/arpa_inet (Depends-on): Add link-warning.
31401         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31402         * modules/unistd (Makefile.am): Likewise.
31403
31404 2008-09-26  Bruno Haible  <bruno@clisp.org>
31405
31406         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31407         variables.
31408         (func_version): Essentially copied from gnulib-tool.
31409         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31410         func_readlink): Copied from gnulib-tool.
31411
31412 2008-09-26  Bruno Haible  <bruno@clisp.org>
31413
31414         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31415         invoking git-version-gen.
31416
31417 2008-09-26  Bruno Haible  <bruno@clisp.org>
31418
31419         * posix-modules: Update to directory names changed on 2008-01-19.
31420         Remove commas in output before splitting into words. No more need to
31421         avoid 'ftruncate' since 2007-02-19.
31422
31423 2008-09-26  Bruno Haible  <bruno@clisp.org>
31424
31425         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31426
31427 2008-09-26  Bruno Haible  <bruno@clisp.org>
31428
31429         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31430         * modules/fwriteerror (Depends-on): Add errno.
31431
31432 2008-09-26  Bruno Haible  <bruno@clisp.org>
31433
31434         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31435         * tests/test-vc-list-files-cvs.sh: Likewise.
31436
31437 2008-09-26  Bruno Haible  <bruno@clisp.org>
31438
31439         * doc/posix-headers/sys_resource.texi: Reorder items.
31440
31441 2008-09-26  Jim Meyering  <meyering@redhat.com>
31442
31443         fts: tweak inode comparison function
31444         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31445         inode numbers, as documented.
31446
31447         fts: sort dirent entries on inode number before traversing
31448         This avoids a quadratic, seek-related performance penalty when
31449         operating on a directory containing many entries (measurable at 10k;
31450         3.5 hours at 2 million entries with a cold cache) on certain types
31451         of file systems, including ext3 and ext4, but not tmpfs.
31452         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31453         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31454         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31455         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31456         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31457         (fts_build): Set the stat.st_ino member from D_INO.
31458         If it is likely to be useful, sort dirent entries on inode number.
31459
31460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31461         and the struct statfs.f_type member.
31462         * modules/fts (Depends-on): Add d-ino.
31463
31464 2008-09-26  Bruno Haible  <bruno@clisp.org>
31465
31466         * modules/sigpipe-die (Depends-on): Add sigpipe.
31467
31468         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31469         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31470         and GNULIB_STDIO_H_SIGPIPE are set.
31471         * lib/stdio-write.c: New file.
31472         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31473         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31474         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31475         REPLACE_STDIO_WRITE_FUNCS.
31476         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31477         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31478         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31479         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31480         * modules/stdio (Files): Add lib/stdio-write.c.
31481         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31482         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31483         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31484         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31485         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31486         REPLACE_FPRINTF_POSIX.
31487         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31488         REPLACE_PRINTF_POSIX.
31489         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31490         REPLACE_VFPRINTF_POSIX.
31491         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31492         REPLACE_VPRINTF_POSIX.
31493         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31494         SIGPIPE issue.
31495         * doc/posix-functions/fputc.texi: Likewise.
31496         * doc/posix-functions/fputs.texi: Likewise.
31497         * doc/posix-functions/fwrite.texi: Likewise.
31498         * doc/posix-functions/printf.texi: Likewise.
31499         * doc/posix-functions/putc.texi: Likewise.
31500         * doc/posix-functions/putchar.texi: Likewise.
31501         * doc/posix-functions/puts.texi: Likewise.
31502         * doc/posix-functions/vfprintf.texi: Likewise.
31503         * doc/posix-functions/vprintf.texi: Likewise.
31504
31505         * modules/safe-write (Depends-on): Add write.
31506
31507         * modules/sigpipe-tests: New file.
31508         * tests/test-sigpipe.c: New file.
31509         * tests/test-sigpipe.sh: New file.
31510
31511         * modules/write: New file.
31512         * lib/unistd.in.h: Include <sys/types.h>.
31513         (write): New declaration.
31514         * lib/write.c: New file.
31515         * m4/write.m4: New file.
31516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31517         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31518         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31519         GNULIB_WRITE, REPLACE_WRITE.
31520         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31521         and the SIGPIPE issue.
31522
31523         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31524         (raise): New declaration.
31525         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31526         (ext_signal): New function.
31527         (rpl_raise): New function.
31528         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31529         GNULIB_SIGNAL_H_SIGPIPE.
31530         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31531         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31532
31533         * modules/sigpipe: New file.
31534         * m4/sigpipe.m4: New file.
31535
31536 2008-09-25  Derek Price  <derek@ximbiot.com>
31537             Bruno Haible  <bruno@clisp.org>
31538
31539         * gnulib-tool (func_import): Report all license incompatibilities, not
31540         just the first one.
31541
31542 2008-09-25  Bruno Haible  <bruno@clisp.org>
31543
31544         * gnulib-tool (func_import): When computing the edits, consider not
31545         only the Makefile.ams that exist but also those that will be generated.
31546
31547 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31548
31549         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31550         fixes gnulib-tool --test warning about duplicate dependency.
31551
31552 2008-09-25  Bruno Haible  <bruno@clisp.org>
31553
31554         * gnulib-tool: Don't ask the user to perform edits in the generated
31555         Makefile.ams.
31556         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31557         apply to the Makefile.am being generated.
31558         (func_emit_tests_Makefile_am): Execute edits that apply to the
31559         Makefile.am being generated.
31560         (func_import): Setup list of Makefile.am edits before emitting the
31561         Makefile.ams, not at the end.
31562         (func_create_testdir): Update.
31563         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31564
31565 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31566
31567         * gnulib-tool (func_import): Store the --tests-base option in the
31568         comment in gnulib-cache.m4.
31569
31570 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31571
31572         * NEWS: Document increased portability that sys_select now provides.
31573
31574         * lib/sys_select.in.h: Install select wrapper.
31575         * lib/sys_socket.in.h: Use more descriptive name when there is no
31576         select wrapper.
31577         * lib/winsock-select.c: New.
31578         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31579         Require gl_HEADER_SYS_SOCKET.
31580         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31581         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31582         * tests/test-sys_select.c: Add functional tests.
31583
31584 2008-09-24  Eric Blake  <ebb9@byu.net>
31585
31586         open, fopen: close fd leak in last patch
31587         * lib/open.c (rpl_open): Close fd before returning error.
31588         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31589         * doc/posix-functions/open.texi (open): Document that Irix also
31590         has the bug.
31591         * doc/posix-functions/fopen.texi (fopen): Likewise.
31592         Reported by Paolo Bonzini.
31593
31594 2008-09-24  Bruno Haible  <bruno@clisp.org>
31595
31596         Ensure that a filename ending in a slash cannot be used to access a
31597         non-directory.
31598         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31599         to check whether it's really a directory.
31600         * lib/fopen.c: Include fcntl.h, unistd.h.
31601         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31602         and fdopen().
31603         * modules/fopen (Depends-on): Add unistd.
31604         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31605         * tests/test-fopen.c (main): Likewise.
31606         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31607         * doc/posix-functions/fopen.texi: Likewise.
31608         Reported by Eric Blake.
31609
31610 2008-09-23  Eric Blake  <ebb9@byu.net>
31611
31612         c-stack: avoid compiler optimizations when provoking overflow
31613         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31614         recursion harder to optimize, to ensure a stack overflow occurs.
31615         * tests/test-c-stack.c (recurse): Likewise.
31616         Borrowed from libsigsegv.
31617
31618         c-stack: work around Irix sigaltstack bug
31619         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31620         whether sigaltstack uses wrong end of stack_t (copied in part from
31621         libsigsegv).
31622         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31623         Irix bug, without requiring an over-allocation.
31624         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31625         bug.
31626
31627         fopen: document mingw bug on directories
31628         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31629         not allowing a stream visiting a directory, even though reading
31630         from such a stream is not portable.
31631
31632 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31633
31634         * lib/poll.c: Rewrite.
31635         * modules/poll: Depend on alloca.
31636
31637 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31638
31639         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31640         instead define prototypes for a full set of wrappers.  Ensure
31641         that Cygwin does not use the compatibility code, which is only
31642         for MinGW.
31643         * lib/winsock.c: New.
31644         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31645         * modules/sys_socket: Add lib/winsock.c.
31646
31647         * modules/poll-tests: Add errno and perror.
31648         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31649
31650 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31651
31652         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31653
31654 2008-09-23  Bruno Haible  <bruno@clisp.org>
31655
31656         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31657         * doc/glibc-functions/*: Likewise.
31658
31659 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31660
31661         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31662         success.
31663
31664 2008-09-22  Eric Blake  <ebb9@byu.net>
31665             Bruno Haible  <bruno@clisp.org>
31666
31667         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31668         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31669         supply %A but mishandle pseudo-NaN.
31670         Reported by Simon Josefsson.
31671
31672 2008-09-21  Bruno Haible  <bruno@clisp.org>
31673
31674         * tests/test-lock.c (main): Tweak skip message.
31675         * tests/test-tls.c (main): Likewise.
31676
31677 2008-09-21  Bruno Haible  <bruno@clisp.org>
31678
31679         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31680         whether 'struct sigaction' has sa_sigaction here...
31681         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31682         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31683
31684 2008-09-21  Bruno Haible  <bruno@clisp.org>
31685
31686         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31687         section.
31688         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31689         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31690         the new section.
31691         (Support for obsolete systems lacking POSIX:2001): New section.
31692         (String handling <string.h>): Move strdup to the new section.
31693         Suggested by Simon Josefsson and Paolo Bonzini.
31694
31695 2008-09-21  Bruno Haible  <bruno@clisp.org>
31696
31697         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31698         exponents in %e and %g results on 'long double'. Needed for mingw's
31699         improved *printf functions.
31700         * tests/test-vasprintf-posix.c (test_function): Likewise.
31701         * tests/test-snprintf-posix.h (test_function): Likewise.
31702         * tests/test-sprintf-posix.h (test_function): Likewise.
31703         Reported by Eric Blake.
31704
31705 2008-09-21  Bruno Haible  <bruno@clisp.org>
31706
31707         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31708         * tests/test-sprintf-posix.h (test_function): Likewise.
31709
31710 2008-09-21  Bruno Haible  <bruno@clisp.org>
31711
31712         * modules/getpass (Depends-on): Add strdup-posix.
31713
31714         New module 'strdup-posix'.
31715         * modules/strdup-posix: New file.
31716         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31717         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31719         REPLACE_STRDUP.
31720         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31721         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31723         strdup-posix.
31724
31725         * modules/strdup (Depends-on): Remove malloc-posix.
31726
31727 2008-09-20  Bruno Haible  <bruno@clisp.org>
31728
31729         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31730         Wildenhues.
31731
31732 2008-09-20  Bruno Haible  <bruno@clisp.org>
31733
31734         Ensure that wint_t gets defined on IRIX 5.3.
31735         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31736         * lib/wctype.in.h (wint_t): Likewise.
31737         (__wctype_wint_t): Remove type.
31738         (isw*): Use wint_t instead of __wctype_wint_t.
31739         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31740         * modules/wchar (Files): Add m4/wint_t.m4.
31741         (Makefile.am): Substitute HAVE_WINT_T.
31742         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31743         * tests/test-wctype.c: Check that wint_t is defined.
31744         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31745         * doc/posix-headers/wctype.texi: Likewise.
31746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31747
31748 2008-09-18  Bruno Haible  <bruno@clisp.org>
31749
31750         * gnulib-tool (func_exit): Update comment.
31751
31752 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31753
31754         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31755         assumes strdup exists and does not depend on strdup to return
31756         ENOMEM on out of memory conditions.
31757
31758 2008-09-18  Bruno Haible  <bruno@clisp.org>
31759
31760         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
31761         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31762         digits for the exponent.
31763
31764 2008-09-18  Jim Meyering  <meyering@redhat.com>
31765             Bruno Haible  <bruno@clisp.org>
31766
31767         * lib/vasnprintf.c (decimal_point_char): Define also if
31768         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31769
31770 2008-09-16  Bruno Haible  <bruno@clisp.org>
31771         and Eric Blake  <ebb9@byu.net>
31772
31773         vasnprintf: support Irix 5.3
31774         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31775         that mishandle long double infinity.
31776         Reported by Tom G. Christensen.
31777
31778 2008-09-16  Bruno Haible  <bruno@clisp.org>
31779
31780         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31781         Solaris 9.
31782         * doc/glibc-functions/alphasort.texi: Likewise.
31783         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31784
31785 2008-09-16  Jim Meyering  <meyering@redhat.com>
31786
31787         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31788         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31789         a umask modification leak out of a subshell.  Otherwise, the
31790         opensolaris /bin/sh would be accepted and thus cause unwarranted
31791         failures in the coreutils test suite.
31792
31793 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31794
31795         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31796         to succeed.
31797
31798 2008-09-16  Jim Meyering  <meyering@redhat.com>
31799
31800         avoid spurious test failure when library is built without ACL support
31801         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31802         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31803         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31804         * tests/test-copy-acl.sh: Likewise.
31805
31806 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31807
31808         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31809         based on character occurrence counts.
31810
31811 2008-09-15  Eric Blake  <ebb9@byu.net>
31812
31813         tests: avoid some compiler warnings
31814         * tests/test-memchr.c (main): Pass NULL indirectly.
31815         * tests/test-closein.c (main): Avoid unused variable.
31816
31817 2008-09-15  Bruno Haible  <bruno@clisp.org>
31818
31819         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31820         are missing on OpenBSD 4.0 individually.
31821         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31822
31823 2008-09-15  Bruno Haible  <bruno@clisp.org>
31824
31825         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31826         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31827         * doc/posix-functions/perror.texi: Likewise.
31828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31829         is missing.
31830         Reported by Eric Blake.
31831
31832         * lib/errno.in.h: Use replacement values >= 2000.
31833         Reported by Eric Blake.
31834
31835 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31836
31837         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31838         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31839         limit.
31840         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31841         compareseq was aborted.
31842
31843 2008-09-14  Bruno Haible  <bruno@clisp.org>
31844
31845         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31846         yvec_edit_count.
31847         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31848         (fstrcmp_bounded): Simplify result computation accordingly.
31849
31850 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31851
31852         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31853         (fstrcmp): Define in terms of fstrcmp_bounded.
31854         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31855         lower_bound argument.
31856         Return quickly if the result is certainly < lower_bound.
31857         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31858
31859 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31860
31861         * lib/diffseq.h (EARLY_ABORT): New macro.
31862         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31863         evaluates to true.
31864
31865 2008-09-14  Bruno Haible  <bruno@clisp.org>
31866
31867         * modules/perror-tests: New file.
31868         * tests/test-perror.sh: New file.
31869         * tests/test-perror.c: New file.
31870
31871         New module 'perror'.
31872         * lib/stdio.in.h (perror): New declaration.
31873         * lib/perror.c: New file.
31874         * m4/perror.m4: New file.
31875         * modules/perror: New file.
31876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31877         * doc/posix-functions/perror.texi: Mention the perror module.
31878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31879         REPLACE_PERROR.
31880         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31881         REPLACE_PERROR.
31882
31883 2008-09-14  Bruno Haible  <bruno@clisp.org>
31884
31885         * modules/stdio (Makefile.am): Reorder to match the order in
31886         lib/stdio.in.h.
31887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31888
31889 2008-09-13  Bruno Haible  <bruno@clisp.org>
31890
31891         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31892
31893 2008-09-13  Bruno Haible  <bruno@clisp.org>
31894
31895         Extend strerror to cover the added errno values.
31896         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31897         (rpl_strerror): Provide error messages for the added errno values and
31898         for the WSA* values.
31899         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31900         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31901         strerror.
31902         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31903         * modules/strerror (Depends-on): Add errno.
31904         * doc/posix-functions/strerror.texi: Document the change.
31905         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31906         and EOVERFLOW.
31907
31908 2008-09-13  Bruno Haible  <bruno@clisp.org>
31909
31910         * modules/EOVERFLOW: Remove file.
31911         * m4/eoverflow.m4: Remove file.
31912         * modules/EOVERFLOW-tests: Remove file.
31913         * tests/test-EOVERFLOW.c: Remove file.
31914         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31915         * modules/ftell (Depends-on): Likewise.
31916         * modules/getdelim (Depends-on): Likewise.
31917         * modules/getugroups (Depends-on): Likewise.
31918         * modules/poll (Depends-on): Likewise.
31919         * modules/snprintf (Depends-on): Likewise.
31920         * modules/sprintf-posix (Depends-on): Likewise.
31921         * modules/vasnprintf (Depends-on): Likewise.
31922         * modules/vasprintf (Depends-on): Likewise.
31923         * modules/vfprintf-posix (Depends-on): Likewise.
31924         * modules/vsnprintf (Depends-on): Likewise.
31925         * modules/vsprintf-posix (Depends-on): Likewise.
31926         * modules/xvasprintf (Depends-on): Likewise.
31927         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31928         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31929         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31930         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31931         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31932         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31933         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31934         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31935         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31936         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31937         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31938         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31939         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31940         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31941         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31942         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31944         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31945         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31946         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31947         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31948         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31949         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31950         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31951         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31952         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31953         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31954         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31955         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31956         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31957         * MODULES.html.sh: Remove EOVERFLOW.
31958         * NEWS: Mention the change.
31959
31960 2008-09-13  Bruno Haible  <bruno@clisp.org>
31961
31962         * modules/errno-tests: New file.
31963         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31964
31965         * lib/errno.in.h: New file.
31966         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31967         * modules/errno: New file.
31968         * doc/posix-headers/errno.texi: Update documentation.
31969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31970
31971 2008-09-13  Bruno Haible  <bruno@clisp.org>
31972
31973         * tests/test-poll.c: Use #if for native Windows, rather than testing
31974         __MSVCRT__.
31975
31976 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31977             Bruno Haible  <bruno@clisp.org>
31978
31979         * lib/glob.c: Don't include <pwd.h> on native Windows.
31980         (WINDOWS32): New macro.
31981         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31982
31983 2008-09-13  Bruno Haible  <bruno@clisp.org>
31984
31985         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31986         (ETIMEDOUT): Remove macro.
31987         (glthread_cond_timedwait_multithreaded): New declaration.
31988         (glthread_cond_timedwait): Use it.
31989         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31990         (glthread_cond_timedwait_multithreaded): New function.
31991
31992 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31993
31994         * modules/poll-tests: Do not check for io.h.
31995         * tests/test-poll.c: Check for __MSVCRT__ instead.
31996
31997 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31998
31999         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
32000         * modules/poll-tests: Add inet_pton, stdbool, sockets.
32001         * tests/test-poll.c: Use them.  Use _pipe on Windows.
32002
32003 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
32004
32005         * modules/poll-tests: New.
32006         * tests/test-poll.c: New.
32007
32008 2008-09-12  Eric Blake  <ebb9@byu.net>
32009
32010         frexp: test for NetBSD failure on -0.0
32011         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
32012         not all, bugs from NetBSD 3.0 have been fixed.
32013         * doc/posix-functions/frexp.texi (frexp): Document bug.
32014         Reported by Thomas Klausner.
32015
32016         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
32017         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
32018         literal -0.0.
32019         Reported by Jonathan C. Patschke <jp@centtech.com>.
32020
32021 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32022
32023         * lib/glthread/cond.h: Use dummy implementation also if
32024         USE_WIN32_THREADS.
32025
32026 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32027
32028         * modules/fnmatch-posix (License): Change to LGPLv2+.
32029         * modules/fnmatch-gnu (License): Likewise.
32030
32031 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32032
32033         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
32034
32035 2008-09-11  Jim Meyering  <meyering@redhat.com>
32036
32037         * users.txt: Add gtk-vnc.
32038
32039 2008-09-08  Simon Josefsson  <simon@josefsson.org>
32040
32041         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
32042         rotate amounts.
32043
32044         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
32045         required for 16-bit and 8-bit rotates.
32046         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
32047         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
32048         UINT8_MAX instead of hard-coded constants.
32049         Suggested by Paul Eggert.
32050
32051 2008-09-07  Bruno Haible  <bruno@clisp.org>
32052
32053         * tests/test-striconveh.c (main): Check behaviour when converting from
32054         UTF-7.
32055
32056         Make striconveh work better with stateful encodings.
32057         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
32058         that iconv does not increment the inptr when returning -1/EINVAL.
32059
32060 2008-09-07  Bruno Haible  <bruno@clisp.org>
32061
32062         * build-aux/config.rpath: Update according to libtool-2.2.6.
32063         * build-aux/config.libpath: Likewise.
32064
32065 2008-09-06  Bruno Haible  <bruno@clisp.org>
32066
32067         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
32068         * lib/freadptr.c (freadptr): Likewise.
32069         * lib/freadseek.c (freadptrinc): Likewise.
32070         Reported by Simon Josefsson.
32071
32072 2008-09-06  Bruno Haible  <bruno@clisp.org>
32073
32074         * modules/freadptr (License): Change to LGPLv2+.
32075         * modules/freadseek (License): Likewise.
32076         Suggested by Eric Blake.
32077
32078         * modules/memchr2 (License): Change to LGPLv2+.
32079         Approved by Eric Blake.
32080
32081 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32082             Bruno Haible  <bruno@clisp.org>
32083
32084         Make gnulib-tool work with native 'sed' on AIX.
32085         * gnulib-tool (sed_noop): New variable.
32086         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
32087         func_add_or_update, func_create_testdir): Use it to initialize sed
32088         script variables.
32089         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32090
32091 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
32092             Bruno Haible  <bruno@clisp.org>
32093
32094         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
32095         also works after #include directives.
32096
32097 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
32098
32099         getdate.y: reject an out-of-range timezone value
32100         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
32101         the range [-24...+24].  When specified with only one or two digits,
32102         * tests/test-getdate.c: Tests for the fix.
32103         * doc/getdate.texi: Document this change.
32104
32105 2008-09-03  Bruno Haible  <bruno@clisp.org>
32106
32107         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
32108
32109 2008-09-02  Simon Josefsson  <simon@josefsson.org>
32110
32111         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
32112         <bruce.korb@gmail.com> with ideas from Ben Pfaff
32113         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
32114         Blake <ebb9@byu.net>.
32115
32116         * tests/test-bitrotate.c: Add more test vectors.
32117
32118 2008-09-02  Eric Blake  <ebb9@byu.net>
32119
32120         vasnprintf-posix: handle large precision via %.*d
32121         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
32122         when handling it ourselves.
32123         * tests/test-vasnprintf-posix.c (test_function): Add test.
32124         * tests/test-snprintf-posix.h (test_function): Likewise.
32125         * tests/test-sprintf-posix.h (test_function): Likewise.
32126         * tests/test-vasprintf-posix.c (test_function): Likewise.
32127         Reported by Alain Guibert.
32128
32129 2008-09-01  Eric Blake  <ebb9@byu.net>
32130
32131         c-stack: make configure-time check more robust
32132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
32133         successful sigaction call.
32134         Reported by Tom G. Christensen.
32135
32136 2008-09-01  Bruno Haible  <bruno@clisp.org>
32137
32138         New module 'findprog-lgpl'.
32139         * modules/findprog-lgpl: New file.
32140         * lib/findprog-lgpl.c: New file.
32141         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
32142         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
32143         to decide whether to use strdup or xstrdup, concatenated_filename or
32144         xconcatenated_filename.
32145
32146 2008-09-01  Bruno Haible  <bruno@clisp.org>
32147
32148         Split module 'concat-filename' into 'concat-filename' (LGPL) and
32149         'xconcat-filename' (GPL).
32150         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
32151         (License): Change to LGPLv2+.
32152         * modules/xconcat-filename: New file.
32153         * lib/concat-filename.h (concatenated_filename): Change specification.
32154         (xconcatenated_filename): New declaration.
32155         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
32156         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
32157         memory situations.
32158         * lib/xconcat-filename.c: New file.
32159         * NEWS: Mention the change.
32160         * lib/findprog.c: Include concat-filename.h, not filename.h.
32161         (find_in_path): Use xconcatenated_filename instead of
32162         concatenated_filename.
32163         * lib/javacomp.c: Include concat-filename.h, not filename.h.
32164         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32165         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32166         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32167         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
32168         instead of concatenated_filename.
32169         * lib/javaexec.c: Include concat-filename.h, not filename.h.
32170         (execute_java_class): Use xconcatenated_filename instead of
32171         concatenated_filename.
32172         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
32173         * modules/javacomp (Depends-on): Likewise.
32174         * modules/javaexec (Depends-on): Likewise.
32175
32176 2008-09-01  Bruno Haible  <bruno@clisp.org>
32177
32178         Split module 'filename' into 'filename' and 'concat-filename'.
32179         * modules/filename: Keep only lib/filename.h.
32180         (License): Change to LGPLv2+.
32181         * modules/concat-filename: New file, extracted from modules/filename.
32182         * lib/filename.h (concatenated_filename): Remove declaration.
32183         * lib/concat-filename.h: New file, extracted from lib/filename.h.
32184         * lib/concat-filename.c: Include concat-filename.h.
32185         * NEWS: Mention the change.
32186
32187 2008-09-01  Simon Josefsson  <simon@josefsson.org>
32188
32189         * lib/bitrotate.h (rotl8, rotr8): Add.
32190
32191         * modules/bitrotate (configure.ac): Need
32192         AC_REQUIRE([AC_C_INLINE]).
32193         (Description): Mention stdint.h.  Reported by Bruno Haible
32194         <bruno@clisp.org>.
32195
32196         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
32197         Paolo Bonzini <bonzini@gnu.org>.
32198
32199 2008-08-31  Bruno Haible  <bruno@clisp.org>
32200
32201         Assume Solaris specific bi-arch conventions on Solaris systems.
32202         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
32203         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
32204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
32205         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
32206         like acl_libdirstem.
32207         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
32208         acl_libdirstem.
32209         * NEWS: Mention the change.
32210         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
32211
32212 2008-08-31  Jim Meyering  <meyering@redhat.com>
32213
32214         * lib/strftime.h: Add comments describing the two added arguments.
32215
32216         remove duplicate #include directives
32217         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
32218         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
32219
32220 2008-08-31  Bruno Haible  <bruno@clisp.org>
32221
32222         New module 'sigpipe-die'.
32223         * modules/sigpipe-die: New file.
32224         * lib/sigpipe-die.h: New file.
32225         * lib/sigpipe-die.c: New file.
32226         * MODULES.html.sh (Signal handling): Add sigpipe-die.
32227
32228 2008-08-31  Bruno Haible  <bruno@clisp.org>
32229
32230         Don't override previously installed signal handlers.
32231         * lib/fatal-signal.c (saved_sigactions): New variable.
32232         (uninstall_handlers): Reset the signal to the saved handler, not
32233         to SIG_DFL (except when ignored).
32234         (install_handlers): Save the previous handlers.
32235
32236 2008-08-30  Bruno Haible  <bruno@clisp.org>
32237
32238         * gnulib-tool (func_reset_sigpipe): New function.
32239         (func_get_automake_snippet, func_modules_transitive_closure,
32240         func_import): Invoke it before a join command that reads from stdin,
32241         to avoid "echo: write error: Broken pipe" error messages on stderr.
32242         Reported by Sam Steingold <sds@gnu.org>.
32243
32244 2008-08-30  Bruno Haible  <bruno@clisp.org>
32245
32246         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
32247         Code copied from m4/open.m4.
32248         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
32249         access and the filename ends in a slash. Code copied from lib/open.c.
32250         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
32251         * tests/test-fopen.c (main): Check against bug with trailing slash.
32252
32253 2008-08-29  Bruno Haible  <bruno@clisp.org>
32254
32255         Avoid some "gcc -pedantic" warnings.
32256         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
32257         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
32258         * lib/dirent.in.h: Likewise.
32259         * lib/fcntl.in.h: Likewise.
32260         * lib/float.in.h: Likewise.
32261         * lib/iconv.in.h: Likewise.
32262         * lib/inttypes.in.h: Likewise.
32263         * lib/locale.in.h: Likewise.
32264         * lib/math.in.h: Likewise.
32265         * lib/netinet_in.in.h: Likewise.
32266         * lib/search.in.h: Likewise.
32267         * lib/signal.in.h: Likewise.
32268         * lib/stdarg.in.h: Likewise.
32269         * lib/stdint.in.h: Likewise.
32270         * lib/stdio.in.h: Likewise.
32271         * lib/stdlib.in.h: Likewise.
32272         * lib/string.in.h: Likewise.
32273         * lib/strings.in.h: Likewise.
32274         * lib/sys_select.in.h: Likewise.
32275         * lib/sys_socket.in.h: Likewise.
32276         * lib/sys_stat.in.h: Likewise.
32277         * lib/sys_time.in.h: Likewise.
32278         * lib/sysexits.in.h: Likewise.
32279         * lib/time.in.h: Likewise.
32280         * lib/unistd.in.h: Likewise.
32281         * lib/wchar.in.h: Likewise.
32282         * lib/wctype.in.h: Likewise.
32283         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32284         * modules/fchdir (Makefile.am): Likewise.
32285         * modules/fcntl (Makefile.am): Likewise.
32286         * modules/float (Makefile.am): Likewise.
32287         * modules/iconv_open (Makefile.am): Likewise.
32288         * modules/inttypes (Makefile.am): Likewise.
32289         * modules/locale (Makefile.am): Likewise.
32290         * modules/math (Makefile.am): Likewise.
32291         * modules/netinet_in (Makefile.am): Likewise.
32292         * modules/search (Makefile.am): Likewise.
32293         * modules/signal (Makefile.am): Likewise.
32294         * modules/stdarg (Makefile.am): Likewise.
32295         * modules/stdint (Makefile.am): Likewise.
32296         * modules/stdio (Makefile.am): Likewise.
32297         * modules/stdlib (Makefile.am): Likewise.
32298         * modules/string (Makefile.am): Likewise.
32299         * modules/strings (Makefile.am): Likewise.
32300         * modules/sys_select (Makefile.am): Likewise.
32301         * modules/sys_socket (Makefile.am): Likewise.
32302         * modules/sys_stat (Makefile.am): Likewise.
32303         * modules/sys_time (Makefile.am): Likewise.
32304         * modules/sysexits (Makefile.am): Likewise.
32305         * modules/time (Makefile.am): Likewise.
32306         * modules/unistd (Makefile.am): Likewise.
32307         * modules/wchar (Makefile.am): Likewise.
32308         * modules/wctype (Makefile.am): Likewise.
32309         Reported by Reuben Thomas <rrt@sc3d.org>.
32310
32311 2008-08-29  Bruno Haible  <bruno@clisp.org>
32312
32313         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32314         any more.
32315
32316 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32317
32318         * MODULES.html.sh (Misc): Add bitrotate.
32319
32320         * modules/bitrotate: New file.
32321
32322         * lib/bitrotate.h: New file.
32323
32324         * modules/bitrotate-tests: New file.
32325
32326         * tests/test-bitrotate.c: New file.
32327
32328         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32329         on the bitrotate module.
32330
32331         * lib/arctwo.c: Use new bitrotate module.
32332
32333 2008-08-29  Jim Meyering  <meyering@redhat.com>
32334
32335         bootstrap: merge changes from coreutils
32336         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32337         of copied files.  Remove a kludge, now that this is fixed.
32338         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32339         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32340         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32341
32342 2008-08-29  Bruno Haible  <bruno@clisp.org>
32343
32344         * MODULES.html.sh: Remove --cvs-urls option.
32345
32346 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32347
32348         maint.mk: adjust to file name change
32349         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32350
32351 2008-08-28  Jim Meyering  <meyering@redhat.com>
32352
32353         * modules/getndelim2 (License): Relicense to LGPLv2+.
32354         Approved by Richard Stallman for the version of 1995, and by
32355         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32356
32357 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32358
32359         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32360         dummy if one is not available.  Do not touch them if
32361         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32362         (getc_maybe_unlocked): New.
32363         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32364
32365 2008-08-26  Eric Blake  <ebb9@byu.net>
32366
32367         doc/INSTALL: resync from autoconf
32368         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32369         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32370         moving...
32371         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32372         * INSTALL: Regenerate.
32373         * INSTALL.ISO: New file.
32374         * INSTALL.UTF-8: Likewise.
32375
32376 2008-08-26  Jim Meyering  <meyering@redhat.com>
32377
32378         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32379         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32380         these definitions conditional, so that they may be overridden, too.
32381
32382 2008-08-26  Bruno Haible  <bruno@clisp.org>
32383
32384         Generate INSTALL file variants with prettier quotes.
32385         * doc/Makefile (INSTALL_PRELUDE): New macro.
32386         (INSTALL): Use it.
32387         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32388
32389 2008-08-26  Bruno Haible  <bruno@clisp.org>
32390
32391         Run makeinfo in an English locale.
32392         * doc/Makefile (MAKEINFO): New variable.
32393
32394 2008-08-26  Bruno Haible  <bruno@clisp.org>
32395
32396         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32397         Suggested by Eric Blake.
32398
32399 2008-08-25  Bruno Haible  <bruno@clisp.org>
32400
32401         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32402
32403 2008-08-25  Eric Blake  <ebb9@byu.net>
32404
32405         c-stack: test that stack overflow can be caught
32406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32407         that platform allows handling stack overflow; at least OS/2 EMX
32408         has sigaltstack, but crashes before transferring control to
32409         handler on stack overflow.
32410         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32411         check for HAVE_STACK_OVERFLOW_HANDLING.
32412         Reported by Elbert Pol.
32413
32414 2008-08-25  Bruno Haible  <bruno@clisp.org>
32415
32416         * doc/posix-functions/strftime.texi: Fix description of strftime
32417         module.
32418
32419 2008-08-24  Bruno Haible  <bruno@clisp.org>
32420
32421         * tests/uniwidth/test-uc_width2.c: New file.
32422         * tests/uniwidth/test-uc_width2.sh: New file.
32423         * modules/uniwidth/width-tests (Files): Add the new files.
32424         (TESTS): Add uniwidth/test-uc_width2.sh.
32425         (TESTS_ENVIRONMENT): New variable.
32426         (check_PROGRAMS): Add test-uc_width2.
32427         (test_uc_width2_SOURCES): New variable.
32428
32429         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32430         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32431         not 0x00AB.
32432         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32433
32434 2008-08-22  Eric Blake  <ebb9@byu.net>
32435
32436         test-lock, test-tls: mention why a test is skipped
32437         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32438         skipped.
32439         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32440
32441         count-one-bits: relax license
32442         * modules/count-one-bits (License): Relicense to LGPLv2+.
32443         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32444
32445 2008-08-22  Andreas Schwab  <schwab@suse.de>
32446
32447         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32448         Remove spurious space in assignment.
32449
32450 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32451
32452         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32453         Paul Eggert <eggert@CS.UCLA.EDU>.
32454
32455 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32456
32457         * modules/gettext: Add m4/threadlib.m4.
32458
32459 2008-08-19  Eric Blake  <ebb9@byu.net>
32460
32461         test-c-stack: fix compilation failure on FreeBSD 5.0
32462         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32463         headers before <sys/resource.h>.
32464         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32465         the bug.
32466         Reported by Nelson H. F. Beebe.
32467
32468         strverscmp: migrate from "strverscmp.h" to <string.h>
32469         * modules/string (Makefile.am): Add new hooks.
32470         * modules/strverscmp (Files): Remove strverscmp.h.
32471         (Depends-on): Add string.
32472         (configure.ac): Add indicator.
32473         (Include): Mention new header.
32474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32475         defaults.
32476         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32477         results.
32478         * lib/strverscmp.h: Delete.
32479         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32480         * tests/test-strverscmp.c (includes): Adjust client.
32481         * lib/check-version.c (includes): Likewise.
32482         * NEWS: Document the change.
32483
32484         strverscmp: add unit test
32485         * modules/strverscmp-tests: New file.
32486         * tests/test-strverscmp.c: Likewise.
32487
32488 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32489
32490         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32491         regarding Windows crypto stuff, from Mono.
32492
32493 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32494
32495         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32496         if present, for intel RND.  Return error on failures.
32497
32498 2008-08-18  Ben Pfaff  <blp@gnu.org>
32499
32500         gitlog-to-changelog: give better diagnostic for failed pipe-open
32501         * build-aux/gitlog-to-changelog: Improve error message: suggest
32502         that the version of Git may be too old.
32503
32504 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32505
32506         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32507         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32508
32509 2008-08-18  Bruno Haible  <bruno@clisp.org>
32510
32511         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32512         pthread_in_use().
32513
32514 2008-08-18  Bruno Haible  <bruno@clisp.org>
32515
32516         * lib/glthread/threadlib.c: Include <pthread.h>.
32517
32518 2008-08-18  Bruno Haible  <bruno@clisp.org>
32519
32520         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32521         glthread_recursive_lock_* macros.
32522         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32523         Fix syntax error.
32524
32525 2008-08-18  Bruno Haible  <bruno@clisp.org>
32526
32527         * lib/glthread/thread.c: Avoid forcing a context switch right after
32528         thread creation.
32529
32530 2008-08-17  Bruno Haible  <bruno@clisp.org>
32531
32532         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32533         * lib/glthread/thread.h: Provide Win32 specific implementation.
32534         * modules/thread (Files): Add lib/glthread/thread.c.
32535         (Depends-on): Add lock.
32536         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32537
32538 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32539
32540         New module 'yield'.
32541         * modules/yield: New file.
32542         * lib/glthread/yield.h: New file.
32543         * m4/yield.m4: New file.
32544         * MODULES.html.sh (Multithreading): Add yield.
32545
32546 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32547
32548         New module 'thread'.
32549         * modules/thread: New file.
32550         * lib/glthread/thread.h: New file.
32551         * m4/thread.m4: New file.
32552         * MODULES.html.sh (Multithreading): Add thread.
32553
32554 2008-08-17  Bruno Haible  <bruno@clisp.org>
32555
32556         * lib/glthread/lock.h: Include <stdlib.h> always.
32557         * lib/glthread/tls.h: Likewise.
32558         * lib/glthread/cond.h: Likewise.
32559
32560 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32561
32562         New module 'cond'.
32563         * modules/cond: New file.
32564         * lib/glthread/cond.h: New file.
32565         * lib/glthread/cond.c: New file.
32566         * m4/cond.m4: New file.
32567         * MODULES.html.sh (Multithreading): Add cond.
32568
32569 2008-08-16  Eric Blake  <ebb9@byu.net>
32570
32571         c-stack: fix regression on Irix 5.3 from 2008-06-21
32572         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32573         sa_sigaction...
32574         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32575         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32576         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32577         * modules/signal (Makefile.am): Use the value.
32578         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32579         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32580         * doc/posix-headers/signal.texi (signal.h): Document this
32581         portability issue.
32582         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32583         Reported by Tom G. Christensen.
32584
32585 2008-08-17  Bruno Haible  <bruno@clisp.org>
32586
32587         New module 'threadlib'.
32588         * modules/threadlib: New file.
32589         * lib/glthread/threadlib.c: New file, extracted from
32590         lib/glthread/lock.c.
32591         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32592         functions.
32593         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32594         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32595         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32596         macros.
32597         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32598         (gl_DISABLE_THREADS): Remove macro.
32599         * modules/lock (Files): Remove build-aux/config.rpath.
32600         (Depends-on): Remove havelib. Add threadlib.
32601         (configure.ac-early): Remove section.
32602         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32603         * modules/tls (Depends-on): Remove lock. Add threadlib.
32604         (Link): New section, copied from threadlib.
32605         * MODULES.html.sh (Multithreading): Add threadlib.
32606
32607 2008-08-14  Bruno Haible  <bruno@clisp.org>
32608
32609         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32610         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32611         glthread_rwlock_unlock, glthread_rwlock_destroy,
32612         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32613         glthread_recursive_lock_destroy): Define as macros always.
32614         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32615         glthread_lock_lock.
32616         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32617         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32618         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32619         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32620         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32621         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32622         (glthread_recursive_lock_lock_func): Renamed from
32623         glthread_recursive_lock_lock.
32624         (glthread_recursive_lock_unlock_func): Renamed from
32625         glthread_recursive_lock_unlock.
32626         (glthread_recursive_lock_destroy_func): Renamed from
32627         glthread_recursive_lock_destroy.
32628
32629 2008-08-14  Bruno Haible  <bruno@clisp.org>
32630
32631         * lib/glthread/lock.h: Renamed from lib/lock.h.
32632         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32633         * lib/glthread/tls.h: Renamed from lib/tls.h.
32634         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32635         * lib/fstrcmp.c: Update includes.
32636         * lib/strsignal.c: Update includes.
32637         * modules/lock (Files, Makefile.am): Update.
32638         (Include): Change to "glthread/lock.h".
32639         * modules/tls (Files, Makefile.am): Update.
32640         (Include): Change to "glthread/tls.h".
32641         * tests/test-lock.c: Update includes.
32642         * tests/test-tls.c: Update includes.
32643         * NEWS: Mention the renamed header files.
32644
32645 2008-08-11  Jim Meyering  <meyering@redhat.com>
32646
32647         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32648
32649 2008-08-11  Eric Blake  <ebb9@byu.net>
32650
32651         test-c-stack: avoid C99-ism
32652         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32653         before statement.
32654         Reported by Alain Guibert.
32655
32656 2008-08-10  Jim Meyering  <meyering@redhat.com>
32657
32658         ensure that return value of uinttostr et al are not ignored
32659         * lib/inttostr.h (__GNUC_PREREQ): Define.
32660         (__attribute_warn_unused_result__): Define.
32661         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32662
32663 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32664
32665         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32666         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32667
32668 2008-08-07  Jim Meyering  <meyering@redhat.com>
32669
32670         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32671
32672         * modules/mkstemp (License): Relicense under LGPLv2+.
32673         * modules/tempname (License): Likewise.
32674
32675 2008-08-06  Bruno Haible  <bruno@clisp.org>
32676
32677         * lib/poll.c (poll): Further micro-optimization.
32678
32679 2008-08-06  Jim Meyering  <meyering@redhat.com>
32680
32681         inet_pton.c: use locale-independent tolower
32682         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32683         (inet_pton6): Use c_tolower rather than tolower.
32684         * modules/inet_pton (Depends-on): Add c-ctype.
32685
32686 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32687
32688         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32689         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32690
32691 2008-08-06  Jim Meyering  <meyering@redhat.com>
32692
32693         * modules/inet_pton (License): Relicense under LGPLv2+.
32694
32695 2008-08-03  Bruno Haible  <bruno@clisp.org>
32696
32697         Additional non-aborting API for lock and tls.
32698         * lib/lock.h: Include <errno.h>.
32699         (glthread_lock_init): New macro/function.
32700         (gl_lock_init): Define as wrapper around glthread_lock_init.
32701         (glthread_lock_lock): New macro/function.
32702         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32703         (glthread_lock_unlock): New macro/function.
32704         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32705         (glthread_lock_destroy): New macro/function.
32706         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32707         (glthread_rwlock_init): New macro/function.
32708         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32709         (glthread_rwlock_rdlock): New macro/function.
32710         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32711         (glthread_rwlock_wrlock): New macro/function.
32712         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32713         (glthread_rwlock_unlock): New macro/function.
32714         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32715         (glthread_rwlock_destroy): New macro/function.
32716         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32717         (glthread_recursive_lock_init): New macro/function.
32718         (gl_recursive_lock_init): Define as wrapper around
32719         glthread_recursive_lock_init.
32720         (glthread_recursive_lock_lock): New macro/function.
32721         (gl_recursive_lock_lock): Define as wrapper around
32722         glthread_recursive_lock_lock.
32723         (glthread_recursive_lock_unlock): New macro/function.
32724         (gl_recursive_lock_unlock): Define as wrapper around
32725         glthread_recursive_lock_unlock.
32726         (glthread_recursive_lock_destroy): New macro/function.
32727         (gl_recursive_lock_destroy): Define as wrapper around
32728         glthread_recursive_lock_destroy.
32729         (glthread_once): New macro/function.
32730         (gl_once): Define as wrapper around glthread_once.
32731         Update function declarations.
32732         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32733         glthread_rwlock_init. Return error code.
32734         (glthread_rwlock_rdlock_multithreaded): Renamed from
32735         glthread_rwlock_rdlock. Return error code.
32736         (glthread_rwlock_wrlock_multithreaded): Renamed from
32737         glthread_rwlock_wrlock. Return error code.
32738         (glthread_rwlock_unlock_multithreaded): Renamed from
32739         glthread_rwlock_unlock. Return error code.
32740         (glthread_rwlock_destroy_multithreaded): Renamed from
32741         glthread_rwlock_destroy. Return error code.
32742         (glthread_recursive_lock_init_multithreaded): Renamed from
32743         glthread_recursive_lock_init. Return error code.
32744         (glthread_recursive_lock_lock_multithreaded): Renamed from
32745         glthread_recursive_lock_lock. Return error code.
32746         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32747         glthread_recursive_lock_unlock. Return error code.
32748         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32749         glthread_recursive_lock_destroy. Return error code.
32750         (glthread_once_call): Make static.
32751         (glthread_once_multithreaded): Renamed from glthread_once.
32752         * lib/tls.h: Include <errno.h>.
32753         (glthread_tls_key_init): New macro/function.
32754         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32755         (glthread_tls_set): New macro/function.
32756         (gl_tls_set): Define as wrapper around glthread_tls_set.
32757         (glthread_tls_key_destroy): New macro/function.
32758         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32759         Update function declarations.
32760         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32761         glthread_tls_get.
32762         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32763
32764 2008-08-04  Eric Blake  <ebb9@byu.net>
32765
32766         gnumakefile: use space, not TAB, outside of targets
32767         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32768
32769 2008-08-02  Jim Meyering  <meyering@redhat.com>
32770
32771         getdate.y: avoid locale-dependent date parsing failure
32772         In Turkish locales, getdate would fail to recognize keywords
32773         containing a lowercase "i".  The solution is not to rely on
32774         locale-sensitive case-conversion.
32775         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32776         (lookup_word): Use c_toupper in place of toupper.
32777         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32778         Reported by Vefa Bicakci <bicave@superonline.com> in
32779         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32780         * modules/getdate (Depends-on): Add c-ctype.
32781
32782 2008-08-02  Bruno Haible  <bruno@clisp.org>
32783
32784         * gnulib-tool (func_import): When updating or creating a .gitignore
32785         file, prepend each added line with a slash, and ignore leading slashes
32786         from the existing lines.
32787         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32788
32789 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32790
32791         Portability fix for GNU make 3.79.1.
32792         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32793         versions do not understand.
32794
32795 2008-08-01  Bruno Haible  <bruno@clisp.org>
32796
32797         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32798         * tests/test-isnanf.h (zero): New variable.
32799         (main): Avoid literal -0.0f.
32800         * tests/test-isnand.h (zero): New variable.
32801         (main): Avoid literal -0.0.
32802         * tests/test-isnanl.h (zero): New variable.
32803         (main): Avoid literal -0.0L.
32804         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32805         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32806         -0.0, -0.0L.
32807         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32808         (test_signbitd): Avoid literal -0.0.
32809         (test_signbitl): Avoid literal -0.0L.
32810         * tests/test-ceilf1.c (zero): New variable.
32811         (main): Avoid literal -0.0f.
32812         * tests/test-ceill.c (zero): New variable.
32813         (main): Avoid literal -0.0L.
32814         * tests/test-floorf1.c (zero): New variable.
32815         (main): Avoid literal -0.0f.
32816         * tests/test-floorl.c (zero): New variable.
32817         (main): Avoid literal -0.0L.
32818         * tests/test-roundf1.c (zero): New variable.
32819         (main): Avoid literal -0.0f.
32820         * tests/test-round1.c (zero): New variable.
32821         (main): Avoid literal -0.0.
32822         * tests/test-roundl.c (zero): New variable.
32823         (main): Avoid literal -0.0L.
32824         * tests/test-truncf1.c (zero): New variable.
32825         (main): Avoid literal -0.0f.
32826         * tests/test-trunc1.c (zero): New variable.
32827         (main): Avoid literal -0.0.
32828         * tests/test-truncl.c (zero): New variable.
32829         (main): Avoid literal -0.0L.
32830         * tests/test-frexp.c (zero): New variable.
32831         (main): Avoid literal -0.0.
32832         * tests/test-frexpl.c (zero): New variable.
32833         (main): Avoid literal -0.0L.
32834         * tests/test-ldexpl.c (zero): New variable.
32835         (main): Avoid literal -0.0L.
32836         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32837         (zerod, zerol): New variables.
32838         (test_function): Avoid literals -0.0, -0.0L.
32839         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32840         (zerod, zerol): New variables.
32841         (test_function): Avoid literals -0.0, -0.0L.
32842         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32843         (zerod, zerol): New variables.
32844         (test_function): Avoid literals -0.0, -0.0L.
32845         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32846         (zerod, zerol): New variables.
32847         (test_function): Avoid literals -0.0, -0.0L.
32848         * tests/test-strtod.c (zero): New variable.
32849         (main): Avoid literal -0.0.
32850         Reported by Jonathan C. Patschke <jp@centtech.com>.
32851
32852 2008-07-31  Jim Meyering  <meyering@redhat.com>
32853
32854         sha256.h: correct definition of SHA224_DIGEST_SIZE
32855         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32856         Reported by Paulie Pena IV <paulie4@gmail.com>.
32857         Define as 224 / 8, rather than as a literal.
32858         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32859         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32860         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32861
32862 2008-07-31  Bruno Haible  <bruno@clisp.org>
32863
32864         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32865         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32866         Reported by Jonathan Patschke <jp@centtech.com>.
32867
32868 2008-07-31  Bruno Haible  <bruno@clisp.org>
32869
32870         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32871         Reported by Paolo Bonzini <bonzini@gnu.org>.
32872
32873 2008-07-30  Eric Blake  <ebb9@byu.net>
32874
32875         test-strtod: allow compilation without -lm
32876         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32877         Reported by Dennis Clarke <blastwave@gmail.com>.
32878
32879 2008-07-28  Jim Meyering  <meyering@redhat.com>
32880
32881         bootstrap: work also when there are no .po files in po/
32882         * build-aux/bootstrap (update_po_files): Complete the change
32883         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32884
32885 2008-07-27  Jim Meyering  <meyering@redhat.com>
32886
32887         * users.txt: Add zile.
32888
32889 2008-07-26  Ben Pfaff  <blp@gnu.org>
32890
32891         Add missing dependencies on new m4/exponent[fdl].m4 files.
32892         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32893         * modules/isnand-nolibm: Add m4/exponentd.m4.
32894         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32895         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32896         m4/isnan[fdl].m4, because the macros actually used moved.
32897         Reported by Jim Meyering.
32898
32899 2008-07-14  Ben Pfaff  <blp@gnu.org>
32900
32901         Add isinf module.
32902         * lib/isinf.c: New file.
32903         * lib/math.in.h: Define isinf macro if we have decided to replace
32904         it.
32905         * m4/isinf.m4: New file.
32906         * m4/math_h.m4: Initialize and substitute variables for isinf
32907         module.
32908         * modules/isinf: New file.
32909         * modules/isinf-tests: New file.
32910         * modules/math: Add substitutions for new module.
32911         * tests/test-isinf.c: New file.
32912         * doc/posix-functions/isinf.texi: Mention new module.
32913         * MODULES.html.sh: Mention new module.
32914
32915 2008-07-14  Ben Pfaff  <blp@gnu.org>
32916
32917         Factor out some macros for use by additional modules.
32918         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32919         exponentf.m4.
32920         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32921         exponentd.m4.
32922         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32923         file exponentl.m4.
32924         * m4/exponentf.m4: New file.
32925         * m4/exponentd.m4: New file.
32926         * m4/exponentl.m4: New file.
32927         * modules/isnanf: Use new file m4/exponentf.m4.
32928         * modules/isnand: Use new file m4/exponentd.m4.
32929         * modules/isnanl: Use new file m4/exponentl.m4.
32930
32931 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32932
32933         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32934         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32935         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32936         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32937
32938         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32939         readlink on platforms without PATH_MAX.
32940
32941 2008-07-21  Eric Blake  <ebb9@byu.net>
32942
32943         Warn, not fail, on stale version.
32944         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32945
32946         Don't allow installation with stale devel version number.
32947         * top/GNUmakefile (_is-install-target): New macro.
32948         (_curr-ver): Forbid installation with stale version number.
32949
32950 2008-07-20  Bruno Haible  <bruno@clisp.org>
32951
32952         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32953         TESTS_ENVIRONMENT.
32954         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32955
32956 2008-07-20  Bruno Haible  <bruno@clisp.org>
32957
32958         * lib/c-stack.h (c_stack_action): Add documentation.
32959         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32960
32961 2008-07-20  Bruno Haible  <bruno@clisp.org>
32962
32963         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32964         * modules/readlink (License): Likewise.
32965
32966 2008-07-17  Eric Blake  <ebb9@byu.net>
32967
32968         * modules/c-stack (Link): Fix typo.
32969
32970         Make c-stack use libsigsegv, when available.
32971         * modules/c-stack (Depends-on): Add libsigsegv.
32972         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32973         needed.
32974         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32975         (segv_handler, overflow_handler, c_stack_action)
32976         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32977         implementation when libsigsegv is available, but only when using
32978         the library is necessary.
32979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32980         comment, explaining why XSI check fails on Linux.
32981         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32982         * tests/test-c-stack2.sh: Tweak skip message.
32983         * NEWS: Document new link-time requirements.
32984
32985 2008-07-16  Eric Blake  <ebb9@byu.net>
32986
32987         c-stack: Expose false positives when not using libsigsegv.
32988         * modules/c-stack-tests (Files): Expand test.
32989         * tests/test-c-stack.c (main): Add means to conditionally trigger
32990         non-overflow SIGSEGV.
32991         * tests/test-c-stack2.sh: New file.
32992
32993 2008-07-14  Bruno Haible  <bruno@clisp.org>
32994
32995         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32996         Reported by Eric Blake.
32997
32998 2008-07-14  Sam Steingold  <sds@gnu.org>
32999             Bruno Haible  <bruno@clisp.org>
33000
33001         New module libsigsegv.
33002         * modules/libsigsegv: New file.
33003         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
33004         modifications.
33005         * MODULES.html.sh (Signal handling): New section.
33006
33007 2008-07-14  Bruno Haible  <bruno@clisp.org>
33008
33009         * modules/unictype/ctype-* (Description): Add the word "function".
33010         Improves the resulting doc in MODULES.html.
33011
33012 2008-07-12  Ben Pfaff  <blp@gnu.org>
33013
33014         Add longlong module.
33015         * modules/longlong: New file.
33016
33017 2008-07-12  Bruno Haible  <bruno@clisp.org>
33018
33019         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
33020         to empty.
33021
33022 2008-07-10  Ben Pfaff  <blp@gnu.org>
33023
33024         Add isnan module.
33025         * doc/posix-functions/isnan.texi: Mention new module.
33026         * lib/math.in.h: Define isnan macro if we have decided to replace
33027         it.
33028         * m4/isnan.m4: New file.
33029         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
33030         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
33031         also.
33032         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
33033         redundancy.
33034         * m4/math_h.m4: Initialize and substitute variables for isnan
33035         module.
33036         * modules/isnan: New file.
33037         * modules/isnan-tests: New file.
33038         * modules/math: Add substitutions for new module.
33039         * tests/test-isnan.c: New file.
33040         * MODULES.html.sh: Mention new module.
33041
33042 2008-07-10  Ben Pfaff  <blp@gnu.org>
33043
33044         Add isnanf module.
33045         * lib/isnanf.m4: New file.
33046         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
33047         (gl_HAVE_ISNANF_IN_LIBM): New macro.
33048         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
33049         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
33050         * modules/isnanf: New file.
33051         * modules/isnanf-tests: New file.
33052         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
33053         files.
33054         * tests/test-isnanf-nolibm.c: factored most of its contents into
33055         new file tests/test-isnanf.h.
33056         * tests/test-isnanf.h: New file.
33057         * tests/test-isnanf.c: New file.
33058         * MODULES.html.sh: Mention new module.
33059         * doc/glibc-functions/isnanf.texi: Mention new module.
33060
33061 2008-07-10  Ben Pfaff  <blp@gnu.org>
33062
33063         Add isnand module.
33064         * lib/isnand.h: New file.
33065         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
33066         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
33067         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
33068         functionality also.
33069         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
33070         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
33071         (gl_HAVE_ISNAND_IN_LIBM): New macro.
33072         * modules/isnand: New file.
33073         * modules/isnand-tests: New file.
33074         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
33075         files.
33076         * tests/test-isnand-nolibm.c: factored most of its contents into
33077         new file tests/test-isnand.h.
33078         * tests/test-isnand.h: New file.
33079         * tests/test-isnand.c: New file.
33080         * MODULES.html.sh: Mention new module.
33081
33082 2008-07-10  Ben Pfaff  <blp@gnu.org>
33083
33084         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
33085         * lib/isnand.h: Rename lib/isnand-nolibm.h.
33086         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
33087         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
33088         * modules/isnanf-nolibm: Update references to renamed files.
33089         * modules/isnand-nolibm: Likewise.
33090         * modules/isnanf-nolibm-tests: Likewise.
33091         * modules/isnand-nolibm-tests: Likewise.
33092         * lib/frexp.c: Likewise.
33093         * lib/isfinite.c: Likewise.
33094         * lib/signbitd.c: Likewise.
33095         * lib/signbitf.c: Likewise.
33096         * lib/vasnprintf.c: Likewise.
33097         * tests/test-ceilf1.c: Likewise.
33098         * tests/test-ceilf2.c: Likewise.
33099         * tests/test-floorf1.c: Likewise.
33100         * tests/test-floorf2.c: Likewise.
33101         * tests/test-frexp.c: Likewise.
33102         * tests/test-round1.c: Likewise.
33103         * tests/test-round2.c: Likewise.
33104         * tests/test-roundf1.c: Likewise.
33105         * tests/test-strtod.c: Likewise.
33106         * tests/test-trunc1.c: Likewise.
33107         * tests/test-trunc2.c: Likewise.
33108         * tests/test-truncf1.c: Likewise.
33109         * tests/test-truncf2.c: Likewise.
33110         * NEWS: Mention the renamed header files.
33111
33112 2008-07-11  Jim Meyering  <meyering@redhat.com>
33113
33114         vc-list-files: make the last-resort awk code more portable
33115         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
33116         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
33117         does not support it.
33118
33119 2008-07-10  Eric Blake  <ebb9@byu.net>
33120
33121         Work with tar's bootstrap.
33122         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
33123         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
33124         an m4 comment.
33125
33126 2008-07-09  Jim Meyering  <meyering@redhat.com>
33127
33128         posix-shell.m4: fix typo that made this test malfunction
33129         * m4/posix-shell.m4: Remove capitalization in variable name.
33130
33131 2008-07-08  Bruno Haible  <bruno@clisp.org>
33132
33133         * m4/onceonly.m4: Update comments.
33134         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33135
33136 2008-07-04  Jim Meyering  <meyering@redhat.com>
33137
33138         * users.txt: Add vc-dwim.
33139         (bison, coreutils): Use the gitweb URL.
33140
33141 2008-07-03  Jim Meyering  <meyering@redhat.com>
33142
33143         * users.txt: Add libffcall.  From Sam Steingold.
33144
33145 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
33146
33147         getdate.y: do not ignore TZ with relative day, month or year offset
33148         * lib/getdate.y (get_date): Move the tz-handling block to follow the
33149         relative-date-handling, since otherwise, the latter would clobber the
33150         sole output (an updated Start value) of the tz-handling block.
33151         * tests/test-getdate.c: Tests for the fix
33152
33153 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33154
33155         Recognize 'foo_LIBRARIES += libgnu.a'.
33156         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
33157         makefile snippet has already specified an installation location,
33158         also using '+='.
33159
33160 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
33161
33162         getdate.y: factor out common actions
33163         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
33164         Use them in place of open-coded actions.
33165
33166 2008-07-01  Simon Josefsson  <simon@josefsson.org>
33167
33168         Add self-test for getdate module.
33169         * modules/getdate-tests: New file.
33170         * tests/test-getdate.c: New file.
33171
33172 2008-06-29  Bruno Haible  <bruno@clisp.org>
33173
33174         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
33175         .gitignore.
33176         Reported by Sylvain Beucler <beuc@beuc.net>.
33177
33178 2008-06-29  Bruno Haible  <bruno@clisp.org>
33179
33180         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
33181         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
33182
33183 2008-06-29  Bruno Haible  <bruno@clisp.org>
33184
33185         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
33186         EXTRA_DIST.
33187         Reported by Sylvain Beucler <beuc@beuc.net>.
33188
33189 2008-06-26  Jim Meyering  <meyering@redhat.com>
33190
33191         make several modules depend on the "open" module
33192         This provides slightly increased consistency when opening-for-write
33193         the name of a non-directory spelled with a trailing slash.
33194         * modules/chdir-safer: Likewise.
33195         * modules/chown: Likewise.
33196         * modules/clean-temp: Likewise.
33197         * modules/copy-file: Likewise.
33198         * modules/fchdir: Likewise.
33199         * modules/fcntl-safer: Likewise.
33200         * modules/pipe: Likewise.
33201         * modules/utime: Likewise.
33202         Prompted by Eric Blake and Bruno Haible.
33203
33204 2008-06-24  Andreas Schwab  <schwab@suse.de>
33205
33206         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
33207         literals can be used as initializers for global variables.
33208
33209 2008-06-23  Eric Blake  <ebb9@byu.net>
33210
33211         Make gnulib-cache.m4 easier to diff.
33212         * gnulib-tool (func_import): Allow newlines when reading cached
33213         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
33214
33215 2008-06-23  Bruno Haible  <bruno@clisp.org>
33216
33217         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
33218         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
33219         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
33220         m4/signalblocking.m4.
33221         (gl_PREREQ_SIGACTION): Don't invoke it.
33222         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
33223         gl_PREREQ_SIG_HANDLER_H.
33224         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33225         Don't check for sigaction here.
33226
33227 2008-06-23  Bruno Haible  <bruno@clisp.org>
33228
33229         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
33230         (install_handlers): Don't set the SA_RESETHAND flag.
33231
33232 2008-06-23  Bruno Haible  <bruno@clisp.org>
33233
33234         * m4/sigaction.m4: Comment fixes.
33235         * lib/signal.in.h: Likewise.
33236
33237 2008-06-23  Eric Blake  <ebb9@byu.net>
33238
33239         Fix typo.
33240         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
33241
33242         Avoid SA_ namespace.
33243         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
33244         Reported by Ralf Wildenhues.
33245
33246         Avoid test failure due to SA_RESTORER.
33247         * tests/test-sigaction.c (SA_MASK): New macro.
33248         (main): Avoid failing due to extension flags being set.
33249         Reported by Jim Meyering.
33250
33251         Revert use of sig-handler.h in sigprocmask.c.
33252         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
33253         it requires the existence of struct sigaction.
33254         * lib/sigprocmask.c (handler_t): Restore typedef.
33255         (rpl_signal, old_handlers): Use local type.
33256
33257 2008-06-22  Bruno Haible  <bruno@clisp.org>
33258
33259         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
33260         conditionally.
33261         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33262
33263 2008-06-22  Bruno Haible  <bruno@clisp.org>
33264
33265         * doc/posix-functions/siginterrupt.texi: Move note.
33266
33267         * lib/signal.in.h (SA_RESTART): New macro.
33268         * lib/sigaction.c: Update comment.
33269
33270         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
33271
33272         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
33273         (gl_PREREQ_SIGPROCMASK): Invoke it.
33274         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
33275
33276         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
33277
33278         * lib/sigprocmask.c: Update a comment.
33279
33280 2008-06-21  Eric Blake  <ebb9@byu.net>
33281
33282         Use sigaction module rather than signal().
33283         * modules/c-stack (Depends-on): Add sigaction.
33284         * modules/fatal-signal (Depends-on): Likewise.
33285         * modules/nanosleep (Depends-on): Likewise.
33286         * modules/sigprocmask (Files): Add sig-handler.h.
33287         * modules/sigaction (Files): Likewise.
33288         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33289         Eggert.
33290         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33291         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33292         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33293         (init_fatal_signals): Likewise.
33294         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33295         (siginterrupt): Delete fallback.
33296         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33297         instead.
33298         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33299         siginterrupt.
33300
33301         New module sigaction, for mingw.
33302         * modules/sigaction: New module...
33303         * modules/sigaction-tests: ...and its test.
33304         * m4/sigaction.m4: New file.
33305         * lib/sigaction.c: Likewise.
33306         * tests/test-sigaction.c: Likewise.
33307         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33308         * modules/signal (Makefile.am): Likewise.
33309         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33310         needed.
33311         * doc/posix-headers/signal.texi (signal.h): Mention provided
33312         types.
33313         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33314         that sigaction is preferable.
33315         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33316         module.
33317         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33318         sigaction.
33319
33320         Improve robustness of sigprocmask by overriding signal.
33321         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33322         is in use.
33323         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33324         (SIGKILL, SIGSTOP): Provide fallbacks.
33325         (rpl_signal): Implement.
33326         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33327         signal can be called inside handlers.
33328
33329         Fix nanosleep module on mingw.
33330         * modules/nanosleep (Depends-on): Add sys_select.
33331         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33332
33333         Fix licensing of sigprocmask.
33334         * modules/raise (License): Relicense as LGPL.
33335
33336 2008-06-21  Bruno Haible  <bruno@clisp.org>
33337
33338         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33339         result if it contains question marks.
33340         Reported by Michael Geng <linux@michaelgeng.de>.
33341
33342 2008-06-19  Bruno Haible  <bruno@clisp.org>
33343
33344         Fix CVS-ism.
33345         * doc/gnulib.texi: Include updated-stamp.texi.
33346         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33347         (updated-stamp.texi): New rule.
33348         (gnulib.info): Depend on it.
33349         * doc/.gitignore: Add updated-stamp.texi.
33350         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33351
33352 2008-06-19  Bruno Haible  <bruno@clisp.org>
33353
33354         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33355         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33356
33357 2008-06-19  Eric Blake  <ebb9@byu.net>
33358
33359         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33360         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33361         Reported by Stepan Kasal.
33362
33363 2008-06-18  Bruno Haible  <bruno@clisp.org>
33364
33365         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33366         Reported by Eric Blake.
33367
33368 2008-06-18  Eric Blake  <ebb9@byu.net>
33369
33370         Work around cygwin 1.5.25 strsignal bug.
33371         * tests/test-strsignal.c: Allow for const char *.
33372         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33373
33374 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33375
33376         * users.txt: Update URL to article and add author/date
33377         information.
33378
33379 2008-06-17  Bruno Haible  <bruno@clisp.org>
33380
33381         New macro gl_DISABLE_THREADS.
33382         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33383         if the user did not pass --enable-threads or --disable-threads option.
33384         (gl_DISABLE_THREADS): New macro.
33385         Reported by Eric Blake <ebb9@byu.net>.
33386
33387 2008-06-17  Bruno Haible  <bruno@clisp.org>
33388
33389         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33390         when the macro ignores it.
33391         Based on a patch by Eric Blake <ebb9@byu.net>.
33392
33393 2008-06-17  Bruno Haible  <bruno@clisp.org>
33394
33395         * modules/tls (License): Change to LGPLv2+.
33396         Reported by Eric Blake.
33397
33398 2008-06-17  Eric Blake  <ebb9@byu.net>
33399
33400         Simplify c-stack prerequisites.
33401         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33403         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33404         check.
33405         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33406         <sys/resource.h>.
33407
33408         Move c-stack test into testsuite.
33409         * modules/c-stack-tests: New file.
33410         * lib/c-stack.c [DEBUG]: Move test program...
33411         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33412         fail test if sigaltstack is lacking.
33413         * tests/test-c-stack.sh: New driver file.
33414
33415 2008-06-16  Eric Blake  <ebb9@byu.net>
33416
33417         Use raise module consistently.
33418         * modules/fatal-signal (Depends-on): Add raise.
33419         * modules/sigprocmask (Depends-on): Likewise.
33420         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33421         * lib/sigprocmask.c (sigprocmask): Likewise.
33422         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33423         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33424
33425         Fix compliance bug in sigpending.
33426         * lib/sigprocmask.c (sigpending): Return pending array via
33427         parameter, not return value.
33428
33429 2008-06-14  Eric Blake  <ebb9@byu.net>
33430
33431         Improve obstack-printf test code.
33432         * tests/test-obstack-printf.c (test_function): Fix comment, and
33433         simplify usage of obstack_* in macros.  Add a test for coverage.
33434         Reported by Bruno Haible.
33435
33436 2008-06-14  Bruno Haible  <bruno@clisp.org>
33437
33438         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33439         array size as a constant, not as a const variable.
33440         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33441         AC_USE_SYSTEM_EXTENSIONS.
33442         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33443         Test whether the obstack_printf function actually exists.
33444         * modules/obstack-printf (Depends-on): Add extensions.
33445         (Include): Remove obstack.h.
33446         * modules/obstack-printf-posix (Depends-on): Add extensions.
33447         (Include): Remove obstack.h.
33448
33449 2008-06-13  Eric Blake  <ebb9@byu.net>
33450
33451         Add obstack-printf and obstack-printf-posix modules.
33452         * modules/obstack-printf: New file.
33453         * modules/obstack-printf-posix: Likewise.
33454         * MODULES.html.sh (Misc): Mention them.
33455         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33456         Likewise.
33457         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33458         Likewise.
33459         * modules/stdio (Makefile.am): Accomodate new modules.
33460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33461         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33462         Declare.
33463         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33464         functions.
33465         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33466         (gl_REPLACE_OBSTACK_PRINTF): New macros
33467         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33468         * tests/test-obstack-printf.c: New file.
33469         * modules/obstack-printf-tests: Likewise.
33470         * modules/obstack-printf-posix-tests: Likewise.
33471
33472 2008-06-11  Bruno Haible  <bruno@clisp.org>
33473
33474         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33475         * lib/open.c: Include errno.h.
33476         (open): Fail when attempting to write to a file that has a trailing
33477         slash.
33478         * tests/test-open.c (main): Test against trailing slash bug.
33479         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33480
33481 2008-06-10  Bruno Haible  <bruno@clisp.org>
33482
33483         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33484         for $? to work inside the trap command, with various /bin/sh-s.
33485         * tests/test-vc-list-files-cvs.sh: Likewise.
33486
33487 2008-06-10  Bruno Haible  <bruno@clisp.org>
33488
33489         * lib/acl-internal.h: Don't include gettext.h here.
33490         * lib/set-mode-acl.c: Include gettext.h here.
33491         * lib/copy-acl.c: Likewise.
33492
33493 2008-06-10  Bruno Haible  <bruno@clisp.org>
33494
33495         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33496         * lib/wait-process.c (wait_subprocess): Likewise.
33497         * lib/execute.h (execute): Add termsigp argument.
33498         * lib/execute.c (execute): Likewise.
33499         * lib/csharpcomp.c (compile_csharp_using_pnet,
33500         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33501         * lib/csharpexec.c (execute_csharp_using_pnet,
33502         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33503         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33504         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33505         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33506         is_jikes_present): Update.
33507         * lib/javaexec.c (execute_java_class): Update.
33508         * lib/javaversion.c (execute_and_read_line): Update.
33509         * NEWS: Document the changes.
33510         Reported by Eric Blake.
33511
33512 2008-06-10  Eric Blake  <ebb9@byu.net>
33513
33514         Add missing include.
33515         * tests/test-strstr.c (includes): Add <signal.h>.
33516         * tests/test-strcasestr.c (includes): Likewise.
33517         * tests/test-memmem.c (includes): Likewise.
33518
33519 2008-06-10  Bruno Haible  <bruno@clisp.org>
33520
33521         * lib/wait-process.c (wait_subprocess): Add an assertion.
33522
33523 2008-06-10  Bruno Haible  <bruno@clisp.org>
33524
33525         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33526
33527 2008-06-10  Bruno Haible  <bruno@clisp.org>
33528
33529         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33530         using alarm().
33531         * tests/test-strcasestr.c (main): Likewise.
33532         * tests/test-strstr.c (main): Likewise.
33533
33534 2008-06-09  Bruno Haible  <bruno@clisp.org>
33535
33536         Work around the Solaris 10 ACE ACLs ABI change.
33537         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33538         declare if ACL_NO_TRIVIAL is present.
33539         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33540         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33541         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33542         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33543         define if ACL_NO_TRIVIAL is present.
33544         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33545         and use the current ABI.
33546         (file_has_acl): Use same #if condition as elsewhere.
33547         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33548         in use, and use the current ABI.
33549         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33550         Reported by Jim Meyering.
33551
33552 2008-06-09  Eric Blake  <ebb9@byu.net>
33553
33554         Work around environments that (stupidly) ignore SIGALRM.
33555         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33556         before using alarm().
33557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33558         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33559         Reported by Ian Beckwith <ianb@erislabs.net>.
33560
33561         Produce autobuild blurb earlier in log.
33562         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33563
33564 2008-06-09  Jim Meyering  <meyering@redhat.com>
33565         and Ondřej Vašík  <ovasik@redhat.com>
33566
33567         utimens.c: correct kernel bug work-around
33568         Ondřej Vašík found that the invalid return value of 280 indicates
33569         failure, not success, and the kernel bug we're trying to work
33570         around affects not just the utimensat call, but also the fallback
33571         futimens call.
33572         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33573         not success.
33574         [HAVE_FUTIMENS]: Use the same work-around, here.
33575
33576 2008-06-09  Jim Meyering  <meyering@redhat.com>
33577
33578         add more guards around definition of ACE_-related code
33579         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33580         ALLOW and ACE_OWNER are also defined.
33581
33582 2008-06-08  Bruno Haible  <bruno@clisp.org>
33583
33584         * lib/acl-internal.h: Add me as co-author.
33585         * lib/file-has-acl.c: Likewise.
33586         * lib/set-mode-acl.c: Likewise.
33587         * lib/copy-acl.c: Likewise.
33588
33589 2008-06-08  Bruno Haible  <bruno@clisp.org>
33590
33591         Add support for AIX ACLs.
33592         * lib/acl-internal.h (acl_nontrivial): New declaration.
33593         * lib/file-has-acl.c (acl_nontrivial): New function.
33594         (file_has_acl): Add implementation using AIX 4 ACL API.
33595         * lib/set-mode-acl.c (qset_acl): Likewise.
33596         * lib/copy-acl.c (qcopy_acl): Likewise.
33597
33598 2008-06-08  Bruno Haible  <bruno@clisp.org>
33599
33600         Add support for HP-UX ACLs.
33601         * lib/acl-internal.h (acl_nontrivial): New declaration.
33602         * lib/file-has-acl.c (acl_nontrivial): New function.
33603         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33604         * lib/set-mode-acl.c (qset_acl): Likewise.
33605         * lib/copy-acl.c (qcopy_acl): Likewise.
33606
33607 2008-06-08  Bruno Haible  <bruno@clisp.org>
33608
33609         Add support for Cygwin ACLs.
33610         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33611         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33612         the chmod_or_fchmod call.
33613         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33614
33615 2008-06-08  Bruno Haible  <bruno@clisp.org>
33616
33617         Fix bug with setuid modes in Solaris 10+ code.
33618         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33619         succeeded, when the mode contains some special bits.
33620
33621 2008-06-08  Bruno Haible  <bruno@clisp.org>
33622
33623         Add support for Solaris 7..10 ACLs.
33624         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33625         declarations.
33626         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33627         functions.
33628         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33629         * lib/set-mode-acl.c (qset_acl): Likewise.
33630         * lib/copy-acl.c (qcopy_acl): Likewise.
33631
33632 2008-06-08  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33635         declaration.
33636         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33637         (acl_access_nontrivial): Remove MacOS X case.
33638         (file_has_acl): Use acl_extended_nontrivial.
33639         * lib/copy-acl.c (qcopy_acl): Likewise.
33640
33641 2008-06-08  Bruno Haible  <bruno@clisp.org>
33642
33643         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33644
33645 2008-06-08  Jim Meyering  <meyering@redhat.com>
33646
33647         * modules/acl (Maintainer): Add Bruno Haible.
33648
33649 2008-06-07  Bruno Haible  <bruno@clisp.org>
33650
33651         Improve support for Tru64 ACLs.
33652         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33653         ACL on OSF/1.
33654
33655 2008-06-07  Bruno Haible  <bruno@clisp.org>
33656
33657         Add support for MacOS X ACLs.
33658         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33659         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33660         * lib/set-mode-acl.c (qset_acl): Likewise.
33661         * lib/copy-acl.c (qcopy_acl): Likewise.
33662
33663 2008-06-07  Bruno Haible  <bruno@clisp.org>
33664
33665         Fix memory leak introduced on 2008-05-22.
33666         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33667         use.
33668
33669 2008-06-07  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33672         to construct an empty ACL.
33673
33674 2008-06-07  Bruno Haible  <bruno@clisp.org>
33675
33676         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33677         precisely.
33678         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33679
33680 2008-06-07  Bruno Haible  <bruno@clisp.org>
33681
33682         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33683         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33684
33685 2008-06-07  Bruno Haible  <bruno@clisp.org>
33686
33687         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33688         regardless of POSIX.
33689         * doc/posix-functions/_longjmp.texi: Likewise.
33690         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33691         SystemV platform in this case.
33692
33693 2008-06-06  Eric Blake  <ebb9@byu.net>
33694
33695         Document abort() bugs.
33696         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33697
33698         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33699         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33700         sigsetjmp.
33701         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33702         siglongjmp, but only as a macro.
33703         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33704         is obsolete.
33705         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33706
33707         Tweak documentation to cover cygwin argz bugs.
33708         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33709         argz bug fix; no code change needed since no cygwin releases
33710         occurred between the last fix and the bug being tested.
33711         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33712         module and recently fixed cygwin bugs.
33713         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33714         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33715         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33716         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33717         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33718         Likewise.
33719         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33720         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33721         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33722         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33723         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33724         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33725         Likewise.
33726
33727         Avoid gcc warning on cygwin.
33728         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33729         !ACL_NO_TRIVIAL]: Avoid unused variable.
33730
33731 2008-06-05  Eric Blake  <ebb9@byu.net>
33732
33733         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33734         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33735         git-version-gen fails to come up with a version.
33736         Reported by Simon Josefsson.
33737
33738 2008-06-05  Jim Meyering  <meyering@redhat.com>
33739             Paul Eggert  <eggert@cs.ucla.edu>
33740
33741         utimens.c: work around a probable Linux kernel bug
33742         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33743         appears to be a kernel bug that causes utimensat to return 280
33744         instead of 0, indicating success.
33745
33746 2008-06-04  Bruno Haible  <bruno@clisp.org>
33747
33748         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33749         2008-06-01 commit.
33750
33751 2008-06-04  Bruno Haible  <bruno@clisp.org>
33752
33753         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33754         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33755         (file_has_acl): Use it. Save errno afterwards.
33756         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33757
33758 2008-06-03  Bruno Haible  <bruno@clisp.org>
33759
33760         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33761         draft code. Simplify #ifs.
33762         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33763         Put Solaris code after POSIX-draft code. Fix comments regarding
33764         Solaris 10, HP-UX. Mention Cygwin.
33765         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33766
33767 2008-06-03  Eric Blake  <ebb9@byu.net>
33768
33769         Provide fallback for older kernels.
33770         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33771         Provide runtime fallback if kernel lacks support.
33772         Reported by Mike Frysinger.
33773
33774 2008-06-02  Bruno Haible  <bruno@clisp.org>
33775
33776         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33777         it exists.
33778
33779 2008-06-02  Bruno Haible  <bruno@clisp.org>
33780
33781         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33782         * lib/copy-acl.c (qcopy_acl): Update comment.
33783
33784 2008-06-02  Bruno Haible  <bruno@clisp.org>
33785
33786         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33787         like ACL APIs.
33788
33789 2008-06-02  Bruno Haible  <bruno@clisp.org>
33790
33791         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33792         * tests/test-set-mode-acl.sh: Likewise.
33793         * tests/test-copy-acl.sh: Likewise.
33794         * tests/test-copy-file.sh: Likewise.
33795
33796 2008-06-02  Bruno Haible  <bruno@clisp.org>
33797
33798         * tests/test-file-has-acl.sh: Remove unused code.
33799
33800 2008-06-01  Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33803         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33804         messages.
33805         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33806
33807 2008-06-01  Bruno Haible  <bruno@clisp.org>
33808
33809         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33810         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33811         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33812         APIs.
33813         * modules/acl-tests (configure.ac): Remove tests now contained in
33814         m4/acl.m4.
33815
33816 2008-06-02  Jim Meyering  <meyering@redhat.com>
33817
33818         announce-gen: use a better key-server host name
33819         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33820         it may be more consistently reliable.  Suggested by Werner Koch
33821         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33822
33823 2008-06-01  Bruno Haible  <bruno@clisp.org>
33824
33825         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33826         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33827
33828 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33829
33830         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33831
33832 2008-06-01  Bruno Haible  <bruno@clisp.org>
33833
33834         New ACL tests.
33835         * tests/test-file-has-acl.sh: New file.
33836         * tests/test-file-has-acl.c: New file.
33837         * tests/test-set-mode-acl.sh: New file.
33838         * tests/test-set-mode-acl.c: New file.
33839         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33840         * tests/test-copy-acl.c: New file.
33841         * modules/acl-tests: New file, based on modules/copy-file-tests.
33842         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33843         (Depends-on): Add acl-tests.
33844         (configure.ac): Remove checks.
33845         (Makefile.am): Don't create test-sameacls program here any more.
33846
33847 2008-06-01  Bruno Haible  <bruno@clisp.org>
33848
33849         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33850         * tests/test-sameacls.c: Include progname.h.
33851         (main): Invoke set_program_name. Portability fixes for MacOS X,
33852         Solaris, HP-UX.
33853
33854 2008-06-01  Bruno Haible  <bruno@clisp.org>
33855
33856         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33857         function.
33858         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33859
33860 2008-06-01  Bruno Haible  <bruno@clisp.org>
33861
33862         * modules/rpmatch (Depends-on): Add strdup.
33863
33864 2008-06-01  Bruno Haible  <bruno@clisp.org>
33865
33866         * lib/pipe.c: Include unistd-safer.h.
33867         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33868         * modules/pipe (Depends-on): Add unistd-safer.
33869
33870 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33871
33872         * modules/autobuild (configure.ac): Call AB_INIT.
33873
33874 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33875
33876         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33877         Suggested by Bruno Haible <bruno@clisp.org>.
33878
33879 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33880
33881         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33882         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33883         <bruno@clisp.org>.
33884
33885 2008-05-29  Eric Blake  <ebb9@byu.net>
33886
33887         Prefer new POSIX 200x interfaces over futimesat.
33888         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33889         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33890         when available.
33891         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33892
33893 2008-05-28  Bruno Haible  <bruno@clisp.org>
33894
33895         * modules/stpcpy (License): Change to LGPLv2+.
33896         Requested by David Lutterkort <dlutter@redhat.com>.
33897
33898 2008-05-27  Bruno Haible  <bruno@clisp.org>
33899
33900         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33901         current mingw.
33902         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33903
33904 2008-05-27  Bruno Haible  <bruno@clisp.org>
33905
33906         * modules/iconv_open (Link): New section, from module 'iconv'.
33907         * modules/striconv (Link): Likewise.
33908         * modules/striconveh (Link): Likewise.
33909         * modules/xstriconv (Link): Likewise.
33910         * modules/unicodeio (Link): Likewise.
33911         * modules/propername (Link): Likewise.
33912         Reported by Jim Meyering.
33913
33914 2008-05-26  Jim Meyering  <meyering@redhat.com>
33915
33916         sha256: do not artificially restrict buffer length to be < 2^32
33917         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33918         uint32_t to size_t.
33919         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33920         to match.
33921
33922         avoid unaligned access errors, e.g., on sparc
33923         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33924         direct access through a possibly-unaligned uint64* pointer.
33925         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33926         direct access through a possibly-unaligned uint32* pointer.
33927         Prompted by this patch from Tom "spot" Callaway:
33928         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33929
33930         sha512.c: fix typo in comment
33931         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33932
33933 2008-05-25  Bruno Haible  <bruno@clisp.org>
33934
33935         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33936         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33937         (Makefile.am): Update lib_SOURCES.
33938
33939 2008-05-25  Bruno Haible  <bruno@clisp.org>
33940
33941         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33942
33943 2008-05-25  Jim Meyering  <meyering@redhat.com>
33944
33945         useless-if-before-free: freed expr may have white-space differences
33946         * build-aux/useless-if-before-free: Recognize cases in which the
33947         freed expression differs from the tested one in embedded white
33948         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33949         $1 was used, so we can't make any regexp shy.  Improved tests now
33950         detect this.
33951
33952         useless-if-before-free: accept white space in the expression.
33953         * build-aux/useless-if-before-free: For now, any white space
33954         in the expression must be identical in the free argument.
33955
33956         useless-if-before-free: efficiency tweak
33957         * build-aux/useless-if-before-free: Make the expression-matching
33958         regexp "shy".
33959         Make the *outer* regexp shy, not the expr-matching one.
33960
33961         update code-in-comment to accept cast of free arg
33962         * build-aux/useless-if-before-free: Update regexp.
33963
33964 2008-05-25  Bruno Haible  <bruno@clisp.org>
33965
33966         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33967         * modules/copy-file-tests (Files, Makefile.am): Update.
33968         * tests/test-copy-file.c (func_test_copy): Update.
33969
33970 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33971
33972         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33973
33974 2008-05-23  Bruno Haible  <bruno@clisp.org>
33975
33976         Improve support for ACLs on OSF/1.
33977         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33978         Remove fallback for unknown flavors of ACLs.
33979
33980 2008-05-22  Bruno Haible  <bruno@clisp.org>
33981
33982         Add support for ACLs on OSF/1.
33983         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33984         replacements.
33985         (acl_free_text): New macro fallback.
33986         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33987         acl_free.
33988         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33989         acl_free_text function. Require AC_C_INLINE.
33990
33991 2008-05-22  Bruno Haible  <bruno@clisp.org>
33992
33993         Make copy_acl work on MacOS X 10.5.
33994         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33995         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33996         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33997         If MODE_INSIDE_ACL, don't assume that every system has the same text
33998         representation for ACLs as FreeBSD.
33999         * lib/copy-acl.c (copy_acl): Add support for platforms with
34000         !MODE_INSIDE_ACL.
34001         * lib/file-has-acl.c (file_has_acl): Likewise.
34002         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
34003         FreeBSD, MacOS X, or IRIX, respectively.
34004
34005 2008-05-22  Bruno Haible  <bruno@clisp.org>
34006
34007         * lib/acl.h: Don't include <sys/acl.h>.
34008         (GETACLCNT): Move fallback to lib/acl-internal.h.
34009         * lib/acl-internal.h: Include <sys/acl.h> here.
34010         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
34011
34012 2008-05-22  Bruno Haible  <bruno@clisp.org>
34013
34014         Split off copy_acl function to separate file.
34015         * lib/copy-acl.c: New file, extracted from lib/acl.c.
34016         * lib/acl.c (copy_acl): Moved function to separate file.
34017         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
34018         * modules/acl (Files): Add lib/copy-acl.c.
34019         (Makefiles.am): Augment lib_SOURCES.
34020
34021 2008-05-22  Bruno Haible  <bruno@clisp.org>
34022
34023         * modules/copy-file-tests: New file.
34024         * tests/test-copy-file.sh: New file.
34025         * tests/test-copy-file.c: New file.
34026         * tests/test-copy-file-sameacls.c: New file.
34027
34028 2008-05-22  Eric Blake  <ebb9@byu.net>
34029
34030         Avoid gcc warning.
34031         * tests/test-memcmp.c (main): Pass NULL indirectly.
34032
34033 2008-05-21  Bruno Haible  <bruno@clisp.org>
34034
34035         Add reference doc about ACLs.
34036         * doc/acl-resources.txt: New file.
34037         * doc/acl-cygwin.txt: New file.
34038
34039 2008-05-21  Bruno Haible  <bruno@clisp.org>
34040
34041         Avoid one more warning from gcc.
34042         * lib/vasnprintf.c (IF_LINT): Update comments.
34043         (VASNPRINTF): Use it also for the 'prefix' array initializer.
34044
34045 2008-05-21  Jim Meyering  <meyering@redhat.com>
34046
34047         avoid a warning from gcc
34048         * lib/vasnprintf.c (IF_LINT): Define.
34049         (scale10_round_decimal_long_double):
34050         Use it to avoid a "may be used uninitialized" warning.
34051         (scale10_round_decimal_double): Likewise.
34052
34053 2008-05-21  Simon Josefsson  <simon@josefsson.org>
34054
34055         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
34056         declared.
34057
34058 2008-05-20  Bruno Haible  <bruno@clisp.org>
34059
34060         * tests/test-memcmp.c (main): Test also the sign of the result. Test
34061         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
34062
34063 2008-05-20  Simon Josefsson  <simon@josefsson.org>
34064
34065         * modules/memcmp-tests: New file.
34066         * tests/test-memcmp.c: New file.
34067
34068 2008-05-19  Bruno Haible  <bruno@clisp.org>
34069
34070         * modules/propername (Notice, configure.ac): Put quoted "..." into
34071         --keyword option.
34072         * lib/propername.h: Update comments accordingly.
34073         Reported by Eric Blake.
34074
34075 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
34076
34077         * modules/getpass-gnu (Depends-on): Add fseeko.
34078
34079 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34080
34081         * modules/base64-tests: New file.
34082
34083 2008-05-19  Bo Borgerson <gigabo@gmail.com>
34084
34085         * lib/base64.c (base64_decode_ctx): If a decode context structure
34086         was passed in use it to ignore newlines.  If a context structure
34087         was _not_ passed in, continue to treat newlines as garbage (this
34088         is the historical behavior).  Formerly base64_decode.
34089         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34090         takes a decode context structure.
34091         * lib/base64.h (base64_decode): Macro for four-argument calls.
34092         (base64_decode_alloc): Likewise.
34093         * lib/base64.c (base64_decode_ctx): If a decode context structure
34094         was passed in use it to ignore newlines.  If a context structure
34095         was _not_ passed in, continue to treat newlines as garbage (this
34096         is the historical behavior).  Formerly base64_decode.
34097         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
34098         takes a decode context structure.
34099         * lib/base64.h (base64_decode): Macro for four-argument calls.
34100         (base64_decode_alloc): Likewise.
34101
34102 2008-05-19  Jim Meyering  <meyering@redhat.com>
34103
34104         avoid a warning from gcc
34105         * lib/trim.c (IF_LINT): Define.
34106         (trim2): Use it to avoid a "may be used uninitialized" warning.
34107
34108         Fix doc typo.
34109         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
34110
34111 2008-05-19  Bruno Haible  <bruno@clisp.org>
34112
34113         * doc/glibc-functions/getpass.texi: Document limits of other
34114         implementations.
34115
34116 2008-05-19  Simon Josefsson  <simon@josefsson.org>
34117             Bruno Haible <bruno@clisp.org>
34118
34119         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
34120
34121 2008-05-18  Bruno Haible  <bruno@clisp.org>
34122
34123         * modules/propername: New file, from GNU gettext.
34124         * lib/propername.h: New file, from GNU gettext.
34125         * lib/propername.c: New file, from GNU gettext.
34126         * MODULES.html.sh (Internationalization functions): Add propername.
34127
34128 2008-05-16  Jim Meyering  <meyering@redhat.com>
34129             Bruno Haible  <bruno@clisp.org>
34130
34131         Avoid some warnings from "gcc -Wshadow".
34132         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
34133
34134 2008-05-15  Eric Blake  <ebb9@byu.net>
34135
34136         Extend previous patch to cygwin 1.7.0.
34137         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
34138         fast implementation in cygwin >= 1.7.0.
34139         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34141
34142 2008-05-15  Bruno Haible  <bruno@clisp.org>
34143
34144         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
34145         implementation in glibc >= 2.9.
34146         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34148
34149 2008-05-15  Bruno Haible  <bruno@clisp.org>
34150
34151         * MODULES.html.sh (Internationalization functions): Remove linebreak.
34152         (Unicode string functions): Add unilbrk/*.
34153         Reported by Karl Berry.
34154
34155 2008-05-15  Eric Blake  <ebb9@byu.net>
34156
34157         Fix violation of <stdbool.h> replacement in regex.
34158         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
34159         * lib/regexec.c (re_search_internal): Likewise.
34160         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
34161
34162 2008-05-15  Jim Meyering  <meyering@redhat.com>
34163
34164         avoid distracting test output when git or cvs is not found
34165         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
34166         * tests/test-vc-list-files-git.sh: Likewise.
34167
34168 2008-05-15  Eric Blake  <ebb9@byu.net>
34169
34170         Glibc finally accepted the memmem speedup code, bugzilla #5514.
34171         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
34172         glibc version.
34173         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34174         * doc/posix-functions/strstr.texi (strstr): Likewise.
34175         * lib/str-two-way.h (MAX): Sychronize with glibc.
34176
34177 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
34178
34179         * lib/regcomp.c (optimize_utf8): Add a note on why we test
34180         opr.ctx_type.
34181         (calc_first): Initialize constraint field.
34182         (duplicate_node_closure): Use it instead of special casing ANCHORS.
34183         Fix grammar.
34184         (duplicate_node): Merge constraint field for all node types.
34185         (calc_eclosure_iter): Look at constraint field for all node types.
34186         * lib/regex_internal.c (create_cd_newstate): Don't look at
34187         opr.ctx_type.
34188
34189 2008-05-14  Bruno Haible  <bruno@clisp.org>
34190
34191         Help GCC to do better code generation.
34192         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
34193         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
34194         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
34195         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
34196         Declare with attribute 'malloc' if supported.
34197
34198 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
34199
34200         use "echo STR|wc -c" rather than unportable "expr length STR"
34201         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
34202         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
34203
34204 2008-05-14  Jim Meyering  <meyering@redhat.com>
34205
34206         use dd ibs=$n count=1 ... rather than less-portable head -c$n
34207         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
34208         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
34209         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
34210         via Collin Lasse.
34211
34212 2008-05-14  Eric Blake  <ebb9@byu.net>
34213
34214         Avoid quadratic growth in gl_LIBSOURCES.
34215         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
34216         Suggested by Bruno Haible.
34217
34218         Test xmemdup0.
34219         * modules/xmemdup0-tests: New file.
34220         * tests/test-xmemdup0.c: Likewise.
34221
34222 2008-05-13  Eric Blake  <ebb9@byu.net>
34223
34224         Split xmemdup0 into its own module.
34225         * modules/xmemdup0: New file.
34226         * lib/xmemdup0.h: Likewise.
34227         * lib/xmemdup0.c: Likewise.
34228         * MODULES.html.sh (Memory management functions): Add xmemdup0.
34229         * lib/xalloc.h (xmemdup0): Remove.
34230         * lib/xmalloc.c (xmemdup0): Likewise.
34231
34232 2008-05-13  Eric Blake  <ebb9@byu.net>
34233             Bruno Haible  <bruno@clisp.org>
34234
34235         Reduce number of forks required during autoconf.
34236         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
34237         and gl_LIBSOURCES_DIR.
34238         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
34239         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
34240         m4_syscmd per file.
34241         <m4_foreach_w>: Move...
34242         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
34243
34244 2008-05-13  Eric Blake  <ebb9@byu.net>
34245
34246         * gnulib-tool: Fix various comment typos.
34247
34248 2008-05-12  Bruno Haible  <bruno@clisp.org>
34249
34250         Tailor the linebreaking algorithm.
34251         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
34252
34253 2008-05-12  Bruno Haible  <bruno@clisp.org>
34254
34255         Update to Unicode 5.0.0.
34256         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34257         LBP_JV, LBP_JT. Redistribute values.
34258         (unilbrk_table): Change size.
34259         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
34260         Unicode TR#14 rev. 22.
34261         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
34262         LBP_JV, LBP_JT. Redistribute values.
34263         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
34264         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
34265         Update.
34266         * lib/unilbrk/lbrkprop1.h: Regenerated.
34267         * lib/unilbrk/lbrkprop2.h: Regenerated.
34268         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
34269         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
34270         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
34271         Likewise.
34272         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
34273         Likewise.
34274         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
34275         result.
34276         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
34277         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
34278         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
34279         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
34280         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34281         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34282
34283 2008-05-11  Bruno Haible  <bruno@clisp.org>
34284
34285         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34286
34287 2008-05-11  Bruno Haible  <bruno@clisp.org>
34288
34289         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34290         * modules/unilbrk/gen-lbrk: New file.
34291
34292 2008-05-11  Bruno Haible  <bruno@clisp.org>
34293
34294         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34295         * m4/sha512.m4 (gl_SHA512): Likewise.
34296
34297 2008-05-11  Jim Meyering  <meyering@redhat.com>
34298
34299         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34300         * modules/crypto/sha256: New file.
34301         * modules/crypto/sha512: Likewise.
34302         * lib/sha256.c: Likewise.
34303         * lib/sha256.h: Likewise.
34304         * lib/sha512.c: Likewise.
34305         * lib/sha512.h: Likewise.
34306         * lib/u64.h: Likewise.
34307         * m4/sha256.m4: Likewise.
34308         * m4/sha512.m4: Likewise.
34309         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34310
34311 2008-05-10  Bruno Haible  <bruno@clisp.org>
34312
34313         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34314         (Input/Output <stdio.h>): Add xprintf.
34315         (Signal handling <signal.h>): Add strsignal.
34316         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34317         (Core language properties): Add func.
34318         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34319         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34320         strings.
34321         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34322         (Input/output): New section.
34323         (File system functions): Add openat-die, stat-macros.
34324         (Networking functions): Add sockets.
34325         (Unicode string functions): Add unictype/*.
34326         (Support for building libraries and executables): Add gperf.
34327         (Support for building documentation): Add agpl-3.0.
34328         (Misc): Add nocrash.
34329
34330 2008-05-10  Bruno Haible  <bruno@clisp.org>
34331
34332         * modules/unictype/gen-ctype: New file.
34333
34334 2008-05-10  Jim Meyering  <meyering@redhat.com>
34335
34336         Make chdir-safer.c more efficient on a system with no symlinks.
34337         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34338         also if ELOOP is zero.  Suggested by Bruno Haible.
34339
34340         Make chdir-safer.c slightly safer.
34341         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34342         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34343
34344         Avoid compile failure on systems without ELOOP (like mingw).
34345         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34346         Reported by Bruno Haible.
34347
34348 2008-05-10  Bruno Haible  <bruno@clisp.org>
34349
34350         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34351         (is_utf8_encoding): Use a case-insensitive comparison.
34352         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34353         streq.
34354
34355 2008-05-10  Bruno Haible  <bruno@clisp.org>
34356
34357         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34358         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34359         * lib/unilbrk/ulc-common.h (iconv_string_length,
34360         iconv_string_keeping_offsets): Remove declarations.
34361         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34362         Don't include <iconv.h>, streq.h, xsize.h.
34363         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34364         conversion.
34365         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34366         <iconv.h>, streq.h, xsize.h.
34367         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34368         conversion.
34369         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34370         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34371         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34372         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34373
34374 2008-05-10  Bruno Haible  <bruno@clisp.org>
34375
34376         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34377         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34378
34379         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34380         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34381
34382         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34383         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34384
34385         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34386         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34387
34388         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34389         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34390
34391         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34392         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34393
34394         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34395         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34396
34397         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34398         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34399
34400 2008-05-10  Bruno Haible  <bruno@clisp.org>
34401
34402         Split up 'linebreak' module.
34403         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34404         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34405         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34406         modifications.
34407         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34408         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34409         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34410         lib/linebreak.c.
34411         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34412         lib/linebreak.c.
34413         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34414         lib/linebreak.c.
34415         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34416         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34417         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34418         lib/linebreak.c.
34419         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34420         lib/linebreak.c.
34421         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34422         lib/linebreak.c.
34423         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34424         lib/linebreak.c.
34425         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34426         lib/linebreak.c.
34427         * modules/unilbrk/base: New file.
34428         * modules/unilbrk/tables: New file.
34429         * modules/unilbrk/u8-possible-linebreaks: New file.
34430         * modules/unilbrk/u16-possible-linebreaks: New file.
34431         * modules/unilbrk/u32-possible-linebreaks: New file.
34432         * modules/unilbrk/ulc-common: New file.
34433         * modules/unilbrk/ulc-possible-linebreaks: New file.
34434         * modules/unilbrk/u8-width-linebreaks: New file.
34435         * modules/unilbrk/u16-width-linebreaks: New file.
34436         * modules/unilbrk/u32-width-linebreaks: New file.
34437         * modules/unilbrk/ulc-width-linebreaks: New file.
34438         * lib/linebreak.h: Remove file.
34439         * lib/linebreak.c: Remove file.
34440         * m4/linebreak.m4: Remove file.
34441         * modules/linebreak: Remove file.
34442         * NEWS: Mention the changes.
34443
34444 2008-05-09  Eric Blake  <ebb9@byu.net>
34445
34446         Add xmemdup0.
34447         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34448         implementation.
34449         * lib/xmalloc.c (xmemdup0): New C implementation.
34450
34451 2008-05-08  Bruno Haible  <bruno@clisp.org>
34452
34453         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34454
34455 2008-05-07  Eric Blake  <ebb9@byu.net>
34456
34457         Support cross-compilation of <wctype.h>.
34458         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34459         AC_CACHE_CHECK.
34460
34461 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34462
34463         * build-aux/vc-list-files: Add support for bzr.
34464
34465 2008-05-03  Jim Meyering  <meyering@redhat.com>
34466
34467         avoid failed assertion with tight malloc
34468         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34469
34470 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34471
34472         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34473         are needed from arpa/inet.h.
34474         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34475         Reported by Bruno Haible.
34476
34477 2008-05-02  Jim Meyering  <meyering@redhat.com>
34478
34479         avoid compilation error on FreeBSD 6
34480         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34481
34482 2008-05-01  Jim Meyering  <meyering@redhat.com>
34483
34484         useless-if-before-free: correct --help's exit status description
34485         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34486         for one or more matches, etc.  Reported by Bruno Haible.
34487
34488         vc-list-files: make the stand-alone gnulib test work
34489         * modules/vc-list-files-tests (configure.ac):
34490         Define and AC_SUBST abs_aux_dir.
34491         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34492         $(abs_top_srcdir) to each script and having each of them
34493         duplicate the work of setting PATH, set PATH here, using
34494         the new variable, abs_aux_dir instead.
34495         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34496         * tests/test-vc-list-files-git.sh: Likewise.
34497         Reported by Bruno Haible.
34498
34499 2008-05-01  Bruno Haible  <bruno@clisp.org>
34500
34501         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34502         reallocation. Rename 'done' to 'found_delimiter'.
34503
34504 2008-05-01  Jim Meyering  <meyering@redhat.com>
34505
34506         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34507         * build-aux/vc-list-files: Use `...`, not $(...).
34508
34509 2008-04-30  Jim Meyering  <meyering@redhat.com>
34510
34511         add tests for vc-list-files
34512         * modules/vc-list-files-tests: New module.
34513         * tests/test-vc-list-files-cvs.sh: New file.
34514         * tests/test-vc-list-files-git.sh: New file.
34515
34516         avoid a warning from gcc
34517         * lib/getndelim2.c (IF_LINT): Define.
34518         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34519
34520         vc-list-files: work properly with build-aux/cvsu, too
34521         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34522         to all cvs-based clauses.
34523
34524         vc-list-files: work properly in the CVS+awk case, too
34525         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34526
34527         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34528         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34529         take more than one file argument, so .  Add quotes, just in case $dir
34530         ever contains a shell meta-character.  Prompted by Soren Hansen in
34531         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34532
34533 2008-04-29  Eric Blake  <ebb9@byu.net>
34534
34535         Optimize getndelim2 to use block operations when possible.
34536         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34537         freadseek, and memchr2.
34538         * lib/getndelim2.c (getndelim2): Use them for block reads.
34539
34540 2008-04-29  Bruno Haible  <bruno@clisp.org>
34541
34542         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34543         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34544         * modules/inet_ntop (Depends-on): Add extensions.
34545         * modules/inet_pton (Depends-on): Likewise.
34546         Reported by Simon Josefsson.
34547
34548 2008-04-29  Jim Meyering  <meyering@redhat.com>
34549
34550         When the is more than one match in a block, match all of them.
34551         * build-aux/useless-if-before-free: Iterate through each block
34552         until there are no more matches.
34553
34554         Fix broken useless-if-before-free script.
34555         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34556         the expression to match cast of argument to free-like function.
34557
34558 2008-04-29  Eric Blake  <ebb9@byu.net>
34559
34560         Use new header.
34561         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34562
34563 2008-04-29  Jim Meyering  <meyering@redhat.com>
34564
34565         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34566         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34567         by gnulib to exist and to declare e.g., inet_ntop.
34568         Don't include "inet_ntop.h", now removed.
34569
34570         * m4/arpa_inet_h.m4: Remove trailing blanks.
34571
34572 2008-04-29  Eric Blake  <ebb9@byu.net>
34573
34574         Silence valgrind on safe reads beyond potential array bounds.
34575         * lib/rawmemchr.valgrind: New file.
34576         * lib/strchrnul.valgrind: Likewise.
34577         * modules/rawmemchr (Files): Distribute new file.
34578         * modules/strchrnul (Files): Likewise.
34579         Suggested by Bruno Haible.
34580
34581 2008-04-29  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34584         (inet_ntop, inet_pton): Change portability warning's wording.
34585         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34586         Invoke gl_CHECK_NEXT_HEADERS.
34587         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34588         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34589         set ARPA_INET_H.
34590         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34591         * modules/arpa_inet (Description): No longer only for systems that
34592         lack it.
34593         (Depends-on): Add include_next.
34594         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34595         HAVE_ARPA_INET_H.
34596
34597 2008-04-29  Jim Meyering  <meyering@redhat.com>
34598
34599         * modules/mkdir (License): Re-license as LGPLv2+.
34600
34601 2008-04-29  Bruno Haible  <bruno@clisp.org>
34602
34603         * modules/rawmemchr (Maintainer): Set to Eric.
34604         * modules/strchrnul (Maintainer): Likewise.
34605
34606 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34607
34608         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34609         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34610
34611         * modules/arpa_inet (arpa/inet.h): Use them.
34612
34613 2008-04-28  Eric Blake  <ebb9@byu.net>
34614
34615         Test getndelim2.
34616         * modules/getndelim2-tests: New file.
34617         * tests/test-getndelim2.c: Likewise.
34618         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34619         stream.
34620         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34621
34622         * MODULES.html.sh: Document new module.
34623
34624 2008-04-20  Bruno Haible  <bruno@clisp.org>
34625
34626         * lib/c-stack.c (die): Use raise.
34627         * modules/c-stack (Depends-on): Add raise.
34628
34629 2008-04-28  Bruno Haible  <bruno@clisp.org>
34630
34631         Expect rpmatch to be declared.
34632         * lib/yesno.c (rpmatch): Remove declaration.
34633
34634         Declare rpmatch.
34635         * lib/stdlib.in.h (rpmatch): New declaration.
34636         * lib/rpmatch.c: Include <stdlib.h> first.
34637         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34638         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34640         HAVE_RPMATCH.
34641         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34642         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34643         (Include): Set to <stdlib.h>.
34644         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34645         HAVE_RPMATCH.
34646         * NEWS: Document the change.
34647
34648 2008-04-28  Bruno Haible  <bruno@clisp.org>
34649
34650         Change rpmatch to use nl_langinfo when appropriate.
34651         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34652         (N_): New macro.
34653         (localized_pattern): New function/macro.
34654         (try): Remove match, nomatch arguments. Copy the pattern into safe
34655         memory before caching it.
34656         (rpmatch): Use localized_pattern. Add translator comments.
34657         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34658         Suggested by Eric Blake.
34659         * modules/rpmatch (Depends-on): Add stdbool.
34660
34661 2008-04-28  Eric Blake  <ebb9@byu.net>
34662
34663         Add rawmemchr module, matching glibc.
34664         * modules/string (Makefile.am): New indicator.
34665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34666         * lib/string.in.h (rawmemchr): Declare when appropriate.
34667         * modules/rawmemchr: New file.
34668         * m4/rawmemchr.m4: Likewise.
34669         * lib/rawmemchr.c: Likewise.
34670         * modules/rawmemchr-tests: Likewise.
34671         * tests/test-rawmemchr.c: Likewise.
34672         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34673         module.
34674         * modules/strchrnul (Depends-on): Add rawmemchr.
34675         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34676
34677         Whitespace cleanup.
34678         * tests/test-strchrnul.c: Reindent.
34679         * lib/strchrnul.c: Likewise.
34680
34681         Optimize and test strchrnul.
34682         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34683         * modules/strchrnul-tests: New file.
34684         * tests/test-strchrnul.c: Likewise.
34685
34686         Remove intprops dependency.
34687         * modules/memchr (Depends-on): Remove intprops.
34688         * modules/memrchr (Depends-on): Likewise.
34689         * modules/memchr2 (Depends-on): Likewise.
34690         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34691         * lib/memrchr.c (__memrchr): Likewise.
34692         * lib/memrchr2.c (memchr2): Likewise.
34693         Reported by Simon Josefsson.
34694
34695 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34696
34697         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34698         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34699
34700 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34701
34702         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34703
34704         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34705
34706         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34707
34708         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34709         declarations.
34710         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34711
34712         * m4/inet_pton.m4: Don't check for header files.
34713
34714         * m4/inet_ntop.m4: Don't check for header files.
34715
34716 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34717
34718         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34719         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34720         trigger for cygwin).
34721         Reported by Bruno Haible  <bruno@clisp.org>.
34722
34723 2008-04-28  Bruno Haible  <bruno@clisp.org>
34724
34725         * doc/posix-functions/strdup.texi: Mention mingw problem.
34726
34727 2008-04-27  Bruno Haible  <bruno@clisp.org>
34728
34729         * modules/stat-time-tests (Depends-on): Add sleep.
34730         * tests/test-stat-time.c (force_unlink): New function.
34731         (cleanup): Use it.
34732         (test_mtime): Remove the ctime related tests.
34733         (test_ctime): New function, containing the ctime related tests.
34734         (main): Call test_ctime, except on native Windows platforms.
34735
34736 2008-04-27  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/rpmatch.c (rpmatch): Add some comments.
34739         Reported by James Youngman <jay@gnu.org>.
34740
34741 2008-04-27  Bruno Haible  <bruno@clisp.org>
34742
34743         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34744         quiet NaNs.
34745
34746 2008-04-27  Bruno Haible  <bruno@clisp.org>
34747
34748         Make test-yesno.sh work on mingw.
34749         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34750         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34751         (main): Set stdin to binary mode.
34752         * modules/yesno-tests (Depends-on): Add binary-io.
34753
34754 2008-04-27  Bruno Haible  <bruno@clisp.org>
34755
34756         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34757         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34758         argument that lie outside the IEEE 854 domain.
34759         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34760         (gl_ISFINITE): Use it.
34761         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34762
34763 2008-04-27  Bruno Haible  <bruno@clisp.org>
34764
34765         Allow local renaming in config.h.
34766         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34767
34768 2008-04-27  Bruno Haible  <bruno@clisp.org>
34769
34770         * lib/memchr.c (__memchr): Change type of 'i'.
34771         * lib/memchr2.c (memchr2): Likewise.
34772
34773 2008-04-26  Eric Blake  <ebb9@byu.net>
34774         and Bruno Haible  <bruno@clisp.org>
34775
34776         Optimize and test memrchr.
34777         * modules/memrchr (Depends-on): Add intprops.
34778         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34779         * modules/memrchr-tests: New file.
34780         * tests/test-memrchr.c: New file.
34781
34782 2008-04-26  Bruno Haible  <bruno@clisp.org>
34783
34784         Add tentative support for DragonFly BSD.
34785         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34786         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34787         fp.
34788         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34789         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34790         * lib/fpurge.c (fpurge): Likewise.
34791         * lib/freadable.c (freaadable): Likewise.
34792         * lib/freadahead.c (freadahead): Likewise.
34793         * lib/freading.c (freading): Likewise.
34794         * lib/freadptr.c (freadptr): Likewise.
34795         * lib/freadseek.c (freadptrinc): Likewise.
34796         * lib/fseeko.c (fseeko): Likewise.
34797         * lib/fseterr.c (fseterr): Likewise.
34798         * lib/fwritable.c (fwritable): Likewise.
34799         * lib/fwriting.c (fwriting): Likewise.
34800
34801 2008-04-26  Bruno Haible  <bruno@clisp.org>
34802
34803         * lib/stdio-impl.h: New file.
34804         * lib/fbufmode.c: Include stdio-impl.h.
34805         (fbufmode): Use fp_, remove redundant #defines.
34806         * lib/fflush.c: Include stdio-impl.h.
34807         (clear_ungetc_buffer): Remove redundant #defines.
34808         * lib/fpurge.c: Include stdio-impl.h.
34809         (fpurge): Remove redundant #defines.
34810         * lib/freadable.c: Include stdio-impl.h.
34811         (freadable): Remove redundant #defines.
34812         * lib/freadahead.c: Include stdio-impl.h.
34813         (freadahead): Remove redundant #defines.
34814         * lib/freading.c: Include stdio-impl.h.
34815         (freading): Remove redundant #defines.
34816         * lib/freadptr.c: Include stdio-impl.h.
34817         (freadptr): Remove redundant #defines.
34818         * lib/freadseek.c: Include stdio-impl.h.
34819         (freadptrinc): Remove redundant #defines.
34820         * lib/fseeko.c: Include stdio-impl.h.
34821         (rpl_fseeko): Remove redundant #defines.
34822         * lib/fseterr.c: Include stdio-impl.h.
34823         (fseterr): Remove redundant #defines.
34824         * lib/fwritable.c: Include stdio-impl.h.
34825         (fwritable: Remove redundant #defines.
34826         * lib/fwriting.c: Include stdio-impl.h.
34827         (fwriting): Remove redundant #defines.
34828         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34829         * modules/fflush (Files): Likewise.
34830         * modules/fpurge (Files): Likewise.
34831         * modules/freadable (Files): Likewise.
34832         * modules/freadahead (Files): Likewise.
34833         * modules/freading (Files): Likewise.
34834         * modules/freadptr (Files): Likewise.
34835         * modules/freadseek (Files): Likewise.
34836         * modules/fseeko (Files): Likewise.
34837         * modules/fseterr (Files): Likewise.
34838         * modules/fwritable (Files): Likewise.
34839         * modules/fwriting (Files): Likewise.
34840
34841 2008-04-26  Bruno Haible  <bruno@clisp.org>
34842
34843         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34844         restore_seek_optimization, update_fpos_cache): New functions, extracted
34845         from rpl_fflush.
34846         (rpl_fflush): Use them.
34847         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34848         (gl_REPLACE_FFLUSH): Use it.
34849
34850 2008-04-26  Bruno Haible  <bruno@clisp.org>
34851
34852         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34853         on Solaris.
34854         * tests/test-xstrtoimax.sh: Likewise.
34855         * tests/test-xstrtoumax.sh: Likewise.
34856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34857
34858 2008-04-26  Bruno Haible  <bruno@clisp.org>
34859
34860         * modules/memchr-tests: New file.
34861         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34862
34863 2008-04-26  Eric Blake  <ebb9@byu.net>
34864             Bruno Haible  <bruno@clisp.org>
34865
34866         * lib/memchr.c: Include intprops.h.
34867         (__memchr): Optimize parallel detection of matching bytes. Rename local
34868         variables. Add explanatory comments.
34869
34870 2008-04-26  Bruno Haible  <bruno@clisp.org>
34871
34872         Fix module 'memchr', broken since 2000-10-28.
34873         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34874
34875 2008-04-26  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34878         comments.
34879
34880 2008-04-25  Eric Blake  <ebb9@byu.net>
34881
34882         Use native fstatat on cygwin 1.7.0.
34883         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34884         first.
34885
34886 2008-04-23  Eric Blake  <ebb9@byu.net>
34887
34888         Improve memchr2 performance.
34889         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34890         NUL bytes.
34891         * modules/memchr2 (Depends-on): Use intprops.h.
34892
34893 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34894
34895         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34896         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34897         <blp@cs.stanford.edu>.
34898
34899 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34900
34901         * lib/arpa_inet.in.h: New file.
34902
34903         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34904         (Makefile.am): Sed in substitute header file.
34905
34906         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34907         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34908
34909         * modules/inet_ntop (configure.ac): Use
34910         gl_ARPA_INET_MODULE_INDICATOR.
34911
34912         * modules/inet_pton (configure.ac): Use
34913         gl_ARPA_INET_MODULE_INDICATOR.
34914
34915 2008-04-22  Jim Meyering  <meyering@redhat.com>
34916
34917         * modules/verify (License): Re-license as LGPLv2+.
34918
34919 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34920
34921         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34922         parameter to void* as per POSIX standard (MinGW uses char*).
34923
34924 2008-04-21  Bruno Haible  <bruno@clisp.org>
34925
34926         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34927         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34928         Define to replacements if REPLACE_ISWCNTRL is 1.
34929         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34930         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34931         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34932         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34933         what it fixes.
34934         * doc/posix-functions/iswalpha.texi: Likewise.
34935         * doc/posix-functions/iswblank.texi: Likewise.
34936         * doc/posix-functions/iswcntrl.texi: Likewise.
34937         * doc/posix-functions/iswdigit.texi: Likewise.
34938         * doc/posix-functions/iswgraph.texi: Likewise.
34939         * doc/posix-functions/iswlower.texi: Likewise.
34940         * doc/posix-functions/iswprint.texi: Likewise.
34941         * doc/posix-functions/iswpunct.texi: Likewise.
34942         * doc/posix-functions/iswspace.texi: Likewise.
34943         * doc/posix-functions/iswupper.texi: Likewise.
34944         * doc/posix-functions/iswxdigit.texi: Likewise.
34945         Reported by Alain Guibert.
34946
34947 2008-04-21  Bruno Haible  <bruno@clisp.org>
34948
34949         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34950         Patch by Alain Guibert.
34951
34952 2008-04-21  Bruno Haible  <bruno@clisp.org>
34953
34954         Fix test failures on mingw.
34955         * tests/test-xstrtol.c (print_no_progname): New function.
34956         (main): Install it in error_print_progname hook.
34957         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34958         * tests/test-xstrtoimax.sh: Likewise.
34959         * tests/test-xstrtoumax.sh: Likewise.
34960
34961 2008-04-21  Bruno Haible  <bruno@clisp.org>
34962
34963         Fix test failure on mingw.
34964         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34965
34966 2008-04-21  Bruno Haible  <bruno@clisp.org>
34967
34968         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34969         Actually assign a value.
34970
34971 2008-04-20  Bruno Haible  <bruno@clisp.org>
34972
34973         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34974         take 2.
34975         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34976         'canonicalize-lgpl' module is also used.
34977         * lib/canonicalize-lgpl.c: Undo last change.
34978         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34979
34980 2008-04-20  Bruno Haible  <bruno@clisp.org>
34981
34982         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34983         config.h. Provide _mkdir based fallback for mingw.
34984         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34985         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34986         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34987         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34988         rather than defining mkdir in config.h.
34989         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34990         (gl_SYS_STAT_H_DEFAULTS): New macro.
34991         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34992         HAVE_IO_H any more.
34993         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34994         HAVE_DECL_MKDIR and HAVE_IO_H.
34995
34996 2008-04-20  Bruno Haible  <bruno@clisp.org>
34997
34998         * lib/isapipe.c: Port to native Windows platforms.
34999
35000 2008-04-20  Bruno Haible  <bruno@clisp.org>
35001
35002         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
35003
35004 2008-04-21  Eric Blake  <ebb9@byu.net>
35005
35006         Work around preprocessors that don't handle UINTMAX_MAX.
35007         * lib/memchr2.c (memchr2): Avoid embedded #if.
35008         Reported by Alain Guibert, fix suggested by Bruno Haible.
35009
35010 2008-04-21  Simon Josefsson  <simon@josefsson.org>
35011
35012         * doc/posix-functions/strftime.texi (strftime): Explain better
35013         Windows incompatibility.  Suggested by Micah Cowan
35014         <micah@cowan.name>.
35015
35016 2008-04-20  Bruno Haible  <bruno@clisp.org>
35017
35018         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
35019         unistr/u8-mblen.
35020
35021 2008-04-20  Bruno Haible  <bruno@clisp.org>
35022
35023         Fix test failure on platforms with non-GNU iconv.
35024         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
35025         (U_TO_U8): Use it, rather than u16_to_u8.
35026         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
35027         units at the end of the input string.
35028         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
35029
35030 2008-04-20  Bruno Haible  <bruno@clisp.org>
35031
35032         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
35033         when the resulting length is 0.
35034         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
35035
35036 2008-04-20  Bruno Haible  <bruno@clisp.org>
35037
35038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
35039         works.
35040         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
35041
35042 2008-04-20  Bruno Haible  <bruno@clisp.org>
35043
35044         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
35045         * modules/tsearch-tests (configure.ac): Test for initstate function.
35046
35047 2008-04-20  Bruno Haible  <bruno@clisp.org>
35048
35049         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
35050         for nlink_t if missing.
35051         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
35052
35053 2008-04-19  Bruno Haible  <bruno@clisp.org>
35054
35055         Work around snprintf bug on Linux libc5.
35056         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
35057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35058         gl_SNPRINTF_SIZE1.
35059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35060         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
35061         that test failed.
35062         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35063         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
35064         * modules/snprintf (Files): Add m4/printf.m4.
35065         * modules/vsnprintf (Files): Likewise.
35066         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
35067         * doc/posix-functions/vsnprintf.texi: Likewise.
35068
35069 2008-04-19  Bruno Haible  <bruno@clisp.org>
35070
35071         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
35072         from 0.0058 to less than 10^-7.
35073
35074 2008-04-19  Bruno Haible  <bruno@clisp.org>
35075
35076         Fix rounding when a precision is given.
35077         * lib/vasnprintf.c (is_borderline): New function.
35078         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
35079         9...9x.
35080         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
35081         %e, %g.
35082         * tests/test-vasprintf-posix.c (test_function): Likewise.
35083         * tests/test-snprintf-posix.h (test_function): Likewise.
35084         * tests/test-sprintf-posix.h (test_function): Likewise.
35085         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
35086         * tests/test-printf-posix.h (test_function): Likewise.
35087         * tests/test-printf-posix.output: Update.
35088         Reported by John Darrington <john@darrington.wattle.id.au> via
35089         Ben Pfaff <blp@cs.stanford.edu>.
35090
35091 2008-04-18  Simon Josefsson  <simon@josefsson.org>
35092
35093         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
35094         Suggested by Bruno Haible <bruno@clisp.org>.
35095
35096 2008-04-17  Bruno Haible  <bruno@clisp.org>
35097
35098         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
35099         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
35100         implementation.
35101         Patch by Bruce Merry <bmerry@gmail.com>.
35102
35103 2008-04-17  Simon Josefsson  <simon@josefsson.org>
35104
35105         * doc/posix-functions/strftime.texi (strftime): Mention that %e
35106         doesn't work under Windows.
35107
35108 2008-04-16  Bruno Haible  <bruno@clisp.org>
35109
35110         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
35111         New macros.
35112         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
35113         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
35114         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
35115         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
35116         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
35117         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
35118         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
35119         macros.
35120         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
35121         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
35122         Northern Sotho, Uighur.
35123
35124 2008-04-16  Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
35127         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
35128         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
35129         Reported by Daniel Bergström <daniel@octocode.com>.
35130
35131 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
35132             Bruno Haible  <bruno@clisp.org>
35133
35134         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
35135         function.
35136         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
35137         New functions, mostly extracted from gl_locale_name_default.
35138         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
35139
35140 2008-04-16  Eric Blake  <ebb9@byu.net>
35141
35142         Adjust strtod detection to catch glibc 2.7 bug.
35143         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
35144         Reported by John Gatewood Ham.
35145
35146 2008-04-16  Bruno Haible  <bruno@clisp.org>
35147
35148         Add tentative support for Linux libc5.
35149         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
35150         * lib/fpurge.c (fpurge): Likewise.
35151         * lib/freadable.c (freadable): Likewise.
35152         * lib/freadahead.c (freadahead): Likewise.
35153         * lib/freading.c (freading): Likewise.
35154         * lib/freadptr.c (freadptr): Likewise.
35155         * lib/freadseek.c (freadptrinc): Likewise.
35156         * lib/fseeko.c (rpl_fseeko): Likewise.
35157         * lib/fseterr.c (fseterr): Likewise.
35158         * lib/fwritable.c (fwritable): Likewise.
35159         * lib/fwriting.c (fwriting): Likewise.
35160         Reported by Alain Guibert <alguibert+bts@free.fr>.
35161
35162 2008-04-15  Bruno Haible  <bruno@clisp.org>
35163
35164         * modules/mathl (configure.ac): Define module indicator.
35165
35166 2008-04-15  Bruno Haible  <bruno@clisp.org>
35167
35168         * lib/logl.c (logl): Remove unused variables.
35169
35170 2008-04-15  Bruno Haible  <bruno@clisp.org>
35171
35172         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
35173         fails.
35174
35175 2008-04-15  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/trim.c (trim2): Fix argument of isspace() macro.
35178
35179 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
35180
35181         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
35182         to 0.
35183         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
35184
35185 2008-04-14  Bruno Haible  <bruno@clisp.org>
35186
35187         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
35188         AC_LANG_PROGRAM argument.
35189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
35190         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
35191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35192         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35193         * m4/math_h.m4 (gl_MATH_H): Likewise.
35194         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
35195         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35196         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
35197         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
35198         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35199         * m4/regex.m4 (gl_REGEX): Likewise.
35200         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
35201         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
35202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35203         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
35204         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35205         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35208
35209 2008-04-14  Jim Meyering  <meyering@redhat.com>
35210
35211         test-strtod: fix typos: s/abs/fabs/
35212         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
35213
35214 2008-04-13  Bruno Haible  <bruno@clisp.org>
35215
35216         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
35217         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
35218         module is also used and while not building the reloc-wrapper.
35219
35220 2008-04-13  Bruno Haible  <bruno@clisp.org>
35221
35222         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
35223
35224 2008-04-13  Bruno Haible  <bruno@clisp.org>
35225
35226         Fix AIX compilation failure introduced on 2008-04-02.
35227         * tests/test-frexp.c (exp): Undefine before redefining.
35228         * tests/test-frexpl.c (exp): Likewise.
35229
35230 2008-04-13  Bruno Haible  <bruno@clisp.org>
35231
35232         Work around a HP-UX stdio bug.
35233         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
35234         * tests/test-ftello.c (main): Likewise.
35235         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
35236         * doc/posix-functions/ftello.texi: Likewise.
35237
35238 2008-04-13  Bruno Haible  <bruno@clisp.org>
35239
35240         Make test-signbit pass on HP-UX/hppa.
35241         * tests/test-signbit.c (minus_zerol): New variable.
35242         (test_signbitl): Use it.
35243
35244 2008-04-13  Bruno Haible  <bruno@clisp.org>
35245
35246         Make truncl work on OSF/1 4.0.
35247         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
35248         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35249         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
35250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
35251         HAVE_DECL_TRUNCL.
35252         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
35253         HAVE_DECL_TRUNCL.
35254         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
35255
35256 2008-04-13  Bruno Haible  <bruno@clisp.org>
35257
35258         * lib/unictype.h: Remove trailing comma from enumeration definitions.
35259
35260 2008-04-13  Bruno Haible  <bruno@clisp.org>
35261
35262         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
35263         expression, so as to avoid HP-UX 11 cc compiler bug.
35264
35265 2008-04-13  Bruno Haible  <bruno@clisp.org>
35266
35267         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
35268
35269 2008-04-13  Bruno Haible  <bruno@clisp.org>
35270
35271         * lib/git-merge-changelog.c: Remove empty declaration outside of
35272         functions.
35273
35274 2008-04-13  Bruno Haible  <bruno@clisp.org>
35275
35276         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
35277
35278 2008-04-13  Bruno Haible  <bruno@clisp.org>
35279
35280         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35281         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35283         also if it exists but lacks definitions of the SHUT_* macros.
35284         * modules/sys_socket (Description): Update.
35285         Reported by Elbert Pol <e.pol@chello.nl>.
35286
35287 2008-04-13  Bruno Haible  <bruno@clisp.org>
35288
35289         * lib/localcharset.c (OS2): Don't redefine if already defined.
35290         Reported by Elbert Pol <e.pol@chello.nl>.
35291
35292 2008-04-13  Bruno Haible  <bruno@clisp.org>
35293
35294         * lib/binary-io.h [__EMX__]: Include <io.h>.
35295         Reported by Elbert Pol <e.pol@chello.nl>.
35296
35297 2008-04-12  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/fpucw.h: Enable the definitions also for x86_64.
35300         Needed for NetBSD/x86_64.
35301         Reported by Thomas Klausner <tk@giga.or.at>.
35302
35303 2008-04-12  Bruno Haible  <bruno@clisp.org>
35304
35305         * tests/test-strtod.c: Include isnand.h.
35306         (main): Use isnand instead of isnan.
35307         Reported by Jim Meyering.
35308
35309 2008-04-12  Bruno Haible  <bruno@clisp.org>
35310
35311         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35312         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35313
35314 2008-04-12  Jim Meyering  <meyering@redhat.com>
35315
35316         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35317
35318 2008-04-12  Bruno Haible  <bruno@clisp.org>
35319
35320         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35321         Reported by Elbert Pol <e.pol@chello.nl>.
35322
35323 2008-04-12  Eric Blake  <ebb9@byu.net>
35324
35325         Work around Solaris 10 math.h bug.
35326         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35327         (gl_MATH_H_DEFAULTS): Set up default.
35328         * modules/math (Makefile.am): Replace new indicators.
35329         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35330         * tests/test-math.c (main): Test this.
35331         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35332         * doc/posix-headers/math.texi (math.h): Mention bug.
35333         Reported by Nelson H. F. Beebe and Jim Meyering.
35334
35335 2008-04-11  Bruno Haible  <bruno@clisp.org>
35336
35337         Adapt to future versions of Apple GCC.
35338         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35339         Reported by Peter O'Gorman <peter@pogma.com>.
35340
35341 2008-04-11  Bruno Haible  <bruno@clisp.org>
35342
35343         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35344
35345 2008-04-11  Bruno Haible  <bruno@clisp.org>
35346
35347         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35348
35349         * modules/getaddrinfo-tests (Makefile.am): Define
35350         test_getaddrinfo_LDADD.
35351
35352 2008-04-11  Bruno Haible  <bruno@clisp.org>
35353
35354         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35355         (init): Fix syntax error.
35356         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35357         is declared.
35358
35359 2008-04-11  Bruno Haible  <bruno@clisp.org>
35360
35361         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35362         * modules/glob (Depends-on): Add stdbool.
35363
35364 2008-04-11  Bruno Haible  <bruno@clisp.org>
35365
35366         * lib/trim.c: Include <string.h>.
35367
35368 2008-04-11  Eric Blake  <ebb9@byu.net>
35369
35370         Avoid compile failure on OS/2.
35371         * lib/regex_internal.h (internal_function): Disable optimization
35372         on OS/2 (__EMX__), where it caused compiler error.
35373         Reported by Elbert Pol.
35374
35375 2008-04-11  Bruno Haible  <bruno@clisp.org>
35376
35377         Flush the standard error stream before aborting. Needed on mingw.
35378         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35379         * tests/test-array_list.c (ASSERT): Likewise.
35380         * tests/test-array_oset.c (ASSERT): Likewise.
35381         * tests/test-avltree_list.c (ASSERT): Likewise.
35382         * tests/test-avltree_oset.c (ASSERT): Likewise.
35383         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35384         * tests/test-binary-io.c (ASSERT): Likewise.
35385         * tests/test-byteswap.c (ASSERT): Likewise.
35386         * tests/test-c-ctype.c (ASSERT): Likewise.
35387         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35388         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35389         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35390         * tests/test-c-strstr.c (ASSERT): Likewise.
35391         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35392         * tests/test-canonicalize.c (ASSERT): Likewise.
35393         * tests/test-carray_list.c (ASSERT): Likewise.
35394         * tests/test-ceilf1.c (ASSERT): Likewise.
35395         * tests/test-ceilf2.c (ASSERT): Likewise.
35396         * tests/test-ceill.c (ASSERT): Likewise.
35397         * tests/test-count-one-bits.c (ASSERT): Likewise.
35398         * tests/test-fbufmode.c (ASSERT): Likewise.
35399         * tests/test-fflush2.c (ASSERT): Likewise.
35400         * tests/test-floorf1.c (ASSERT): Likewise.
35401         * tests/test-floorf2.c (ASSERT): Likewise.
35402         * tests/test-floorl.c (ASSERT): Likewise.
35403         * tests/test-fopen.c (ASSERT): Likewise.
35404         * tests/test-fpending.c (ASSERT): Likewise.
35405         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35406         * tests/test-fpurge.c (ASSERT): Likewise.
35407         * tests/test-freadable.c (ASSERT): Likewise.
35408         * tests/test-freadahead.c (ASSERT): Likewise.
35409         * tests/test-freading.c (ASSERT): Likewise.
35410         * tests/test-freadptr.c (ASSERT): Likewise.
35411         * tests/test-freadptr2.c (ASSERT): Likewise.
35412         * tests/test-freadseek.c (ASSERT): Likewise.
35413         * tests/test-freopen.c (ASSERT): Likewise.
35414         * tests/test-frexp.c (ASSERT): Likewise.
35415         * tests/test-frexpl.c (ASSERT): Likewise.
35416         * tests/test-fseek.c (ASSERT): Likewise.
35417         * tests/test-fseeko.c (ASSERT): Likewise.
35418         * tests/test-fstrcmp.c (ASSERT): Likewise.
35419         * tests/test-ftell.c (ASSERT): Likewise.
35420         * tests/test-ftello.c (ASSERT): Likewise.
35421         * tests/test-func.c (ASSERT): Likewise.
35422         * tests/test-fwritable.c (ASSERT): Likewise.
35423         * tests/test-fwriting.c (ASSERT): Likewise.
35424         * tests/test-getdelim.c (ASSERT): Likewise.
35425         * tests/test-getline.c (ASSERT): Likewise.
35426         * tests/test-i-ring.c (ASSERT): Likewise.
35427         * tests/test-iconv-utf.c (ASSERT): Likewise.
35428         * tests/test-iconv.c (ASSERT): Likewise.
35429         * tests/test-isfinite.c (ASSERT): Likewise.
35430         * tests/test-isnand.c (ASSERT): Likewise.
35431         * tests/test-isnanf.c (ASSERT): Likewise.
35432         * tests/test-isnanl.h (ASSERT): Likewise.
35433         * tests/test-ldexpl.c (ASSERT): Likewise.
35434         * tests/test-linked_list.c (ASSERT): Likewise.
35435         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35436         * tests/test-localename.c (ASSERT): Likewise.
35437         * tests/test-lseek.c (ASSERT): Likewise.
35438         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35439         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35440         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35441         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35442         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35443         * tests/test-mbschr.c (ASSERT): Likewise.
35444         * tests/test-mbscspn.c (ASSERT): Likewise.
35445         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35446         * tests/test-mbspbrk.c (ASSERT): Likewise.
35447         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35448         * tests/test-mbsrchr.c (ASSERT): Likewise.
35449         * tests/test-mbsspn.c (ASSERT): Likewise.
35450         * tests/test-mbsstr1.c (ASSERT): Likewise.
35451         * tests/test-mbsstr2.c (ASSERT): Likewise.
35452         * tests/test-mbsstr3.c (ASSERT): Likewise.
35453         * tests/test-memchr2.c (ASSERT): Likewise.
35454         * tests/test-memmem.c (ASSERT): Likewise.
35455         * tests/test-open.c (ASSERT): Likewise.
35456         * tests/test-printf-frexp.c (ASSERT): Likewise.
35457         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35458         * tests/test-printf-posix.c (ASSERT): Likewise.
35459         * tests/test-quotearg.c (ASSERT): Likewise.
35460         * tests/test-rbtree_list.c (ASSERT): Likewise.
35461         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35462         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35463         * tests/test-round1.c (ASSERT): Likewise.
35464         * tests/test-roundf1.c (ASSERT): Likewise.
35465         * tests/test-roundl.c (ASSERT): Likewise.
35466         * tests/test-signbit.c (ASSERT): Likewise.
35467         * tests/test-sleep.c (ASSERT): Likewise.
35468         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35469         * tests/test-snprintf.c (ASSERT): Likewise.
35470         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35471         * tests/test-stat-time.c (ASSERT): Likewise.
35472         * tests/test-strcasestr.c (ASSERT): Likewise.
35473         * tests/test-strerror.c (ASSERT): Likewise.
35474         * tests/test-striconv.c (ASSERT): Likewise.
35475         * tests/test-striconveh.c (ASSERT): Likewise.
35476         * tests/test-striconveha.c (ASSERT): Likewise.
35477         * tests/test-strsignal.c (ASSERT): Likewise.
35478         * tests/test-strstr.c (ASSERT): Likewise.
35479         * tests/test-strtod.c (ASSERT): Likewise.
35480         * tests/test-trunc1.c (ASSERT): Likewise.
35481         * tests/test-trunc2.c (ASSERT): Likewise.
35482         * tests/test-truncf1.c (ASSERT): Likewise.
35483         * tests/test-truncf2.c (ASSERT): Likewise.
35484         * tests/test-truncl.c (ASSERT): Likewise.
35485         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35486         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35487         * tests/test-vasnprintf.c (ASSERT): Likewise.
35488         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35489         * tests/test-vasprintf.c (ASSERT): Likewise.
35490         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35491         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35492         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35493         * tests/test-vsnprintf.c (ASSERT): Likewise.
35494         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35495         * tests/test-wcwidth.c (ASSERT): Likewise.
35496         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35497         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35498         * tests/test-xvasprintf.c (ASSERT): Likewise.
35499         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35500         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35501         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35502         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35503         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35504         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35505         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35506         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35507         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35508         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35509         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35510         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35511         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35512         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35513         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35514         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35515         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35516         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35517         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35518         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35519         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35520         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35521         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35522         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35523         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35524         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35525         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35526         * tests/unictype/test-combining.c (ASSERT): Likewise.
35527         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35528         * tests/unictype/test-digit.c (ASSERT): Likewise.
35529         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35530         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35531         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35532         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35533         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35534         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35535         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35536         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35537         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35538         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35539         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35540         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35541         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35542         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35543         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35544         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35545         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35546         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35547         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35548         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35549         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35550         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35551         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35552         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35553         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35554         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35555         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35556         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35557         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35558         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35559         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35560         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35561         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35562         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35563         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35564         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35565         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35566         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35567         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35568         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35569         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35570         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35571         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35572         Reported by Eric Blake.
35573
35574 2008-04-11  Bruno Haible  <bruno@clisp.org>
35575
35576         * lib/wchar.in.h: Tweak comment.
35577
35578 2008-04-11  Bruno Haible  <bruno@clisp.org>
35579
35580         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35581         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35582         gl_COMMON.
35583         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35584
35585 2008-04-11  Bruno Haible  <bruno@clisp.org>
35586
35587         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35588
35589 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35590
35591         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35592         of attempting to use non-existing /dev/*random.  Based on patch
35593         from Adam Strzelecki <ono@java.pl> in
35594         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35595
35596 2008-04-08  Bruno Haible  <bruno@clisp.org>
35597
35598         Add tentative support for emx+gcc.
35599         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35600         * lib/fpurge.c (fpurge): Likewise.
35601         * lib/freadable.c (freadable): Likewise.
35602         * lib/freadahead.c (freadahead): Likewise.
35603         * lib/freading.c (freading): Likewise.
35604         * lib/freadptr.c (freadptr): Likewise.
35605         * lib/freadseek.c (freadptrinc): Likewise.
35606         * lib/fseeko.c (rpl_fseeko): Likewise.
35607         * lib/fseterr.c (fseterr): Likewise.
35608         * lib/fwritable.c (fwritable): Likewise.
35609         * lib/fwriting.c (fwriting): Likewise.
35610         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35611
35612 2008-04-09  Eric Blake  <ebb9@byu.net>
35613
35614         Avoid some autoconf warnings.
35615         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35616         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35617         * m4/afs.m4 (gl_AFS): Likewise.
35618         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35619         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35621         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35622         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35623         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35624         (AC_CHECK_DECLS_ONCE): Likewise.
35625         Rename file...
35626         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35627         gnulib-tool requires autoconf 2.59 or better.
35628         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35629
35630 2008-04-08  Eric Blake  <ebb9@byu.net>
35631
35632         Use 'git describe --match' if present (added in git 1.5.5).
35633         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35634         if possible.
35635
35636 2008-04-08  Bruno Haible  <bruno@clisp.org>
35637
35638         Add tentative support for OpenServer.
35639         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35640         _ptr, _cnt.
35641         * lib/fpurge.c (fpurge): Likewise.
35642         * lib/freadable.c (freadable): Likewise.
35643         * lib/freadahead.c (freadahead): Likewise.
35644         * lib/freading.c (freading): Likewise.
35645         * lib/freadptr.c (freadptr): Likewise.
35646         * lib/freadseek.c (freadptrinc): Likewise.
35647         * lib/fseeko.c (rpl_fseeko): Likewise.
35648         * lib/fseterr.c (fseterr): Likewise.
35649         * lib/fwritable.c (fwritable): Likewise.
35650         * lib/fwriting.c (fwriting): Likewise.
35651         Reported by Roger Cornelius <rac@tenzing.org> and
35652         Brian K. White <brian@aljex.com>.
35653
35654 2008-04-06  Jim Meyering  <meyering@redhat.com>
35655
35656         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35657
35658 2008-04-06  Bruno Haible  <bruno@clisp.org>
35659
35660         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35661         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35662         * tests/test-printf-posix.sh: Likewise.
35663         * tests/test-vfprintf-posix.sh: Likewise.
35664         * tests/test-vprintf-posix.sh: Likewise.
35665         * tests/test-xprintf-posix.sh: Likewise.
35666
35667 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35668
35669         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35670         hide error from 'ls', needed on OS/2.
35671         Report by Elbert Pol <elbert.pol@gmail.com>.
35672
35673 2008-04-04  Eric Blake  <ebb9@byu.net>
35674
35675         Make test-fseeko.c failures meaningful.
35676         * tests/test-fseeko.c: Print line number on failure.
35677         * tests/test-fseek.c: Likewise.
35678         Reported by Nelson H. F. Beebe.
35679
35680         Improve strtod bug detection check.
35681         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35682         required for Solaris 10.
35683         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35684
35685 2008-04-04  Bruno Haible  <bruno@clisp.org>
35686
35687         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35688         by m4/setenv.m4.
35689
35690 2008-04-03  Eric Blake  <ebb9@byu.net>
35691
35692         Ensure sane .version contents.
35693         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35694         version string.
35695         * build-aux/git-version-gen: Improve documentation.
35696
35697         Make GNU make output nicer.
35698         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35699         MAKECMDGOALS to enforce message for all command line targets.  Set
35700         srcdir for use in maint.mk.
35701
35702         Another maintainer tweak.
35703         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35704         a target that regenerates version.
35705
35706 2008-04-03  Jim Meyering  <meyering@redhat.com>
35707
35708         vc-list-files: don't cause coreutils "make po-check" failure
35709         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35710
35711 2008-04-03  Eric Blake  <ebb9@byu.net>
35712
35713         Allow VPATH usage of vc-list-files.
35714         * build-aux/vc-list-files (scriptversion): Add timestamp.
35715         (options): Add --help, --version, -C.
35716         (CVS): Support installed cvsu.
35717
35718 2008-04-02  Bruno Haible  <bruno@clisp.org>
35719
35720         Avoid some "statement with no effect" warnings from gcc.
35721         * tests/test-wctype.c (main): Explicitly ignore unused values.
35722         Reported by Jim Meyering.
35723
35724 2008-04-02  Jim Meyering  <meyering@redhat.com>
35725
35726         Avoid some warnings from "gcc -Wshadow".
35727         * tests/test-frexp.c (exp): Define to a different identifier.
35728         * tests/test-frexpl.c (exp): Likewise.
35729
35730 2008-04-03  Jim Meyering  <meyering@redhat.com>
35731
35732         bootstrap: remove dangling *.[ch] symlinks from lib
35733         * build-aux/bootstrap [dangling symlink removal]: Move find's
35734         -depth option to precede all others, to avoid a warning.
35735         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35736
35737 2008-04-02  Bruno Haible  <bruno@clisp.org>
35738
35739         Avoid some warnings from "gcc -Wshadow".
35740         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35741         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35742         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35743         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35744         Reported by Jim Meyering.
35745
35746 2008-04-01  Bruno Haible  <bruno@clisp.org>
35747
35748         Fix test to work on IRIX 6.5 with cc.
35749         * tests/test-math.c (numeric_equal): New function.
35750         (main): Use it.
35751
35752 2008-04-01  Bruno Haible  <bruno@clisp.org>
35753
35754         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35755
35756 2008-04-01  Bruno Haible  <bruno@clisp.org>
35757
35758         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35759         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35760         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35761         (Depends-on): Remove math.
35762
35763         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35764         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35765         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35766         (Depends-on): Remove math.
35767
35768         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35769         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35770         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35771         (Depends-on): Remove math.
35772         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35773         (Depends-on): Remove math.
35774
35775         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35776         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35777         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35778         (Depends-on): Remove math.
35779         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35780         (Depends-on): Remove math.
35781
35782         * tests/test-round1.c: Include nan.h.
35783         (main): Use NaNd instead of NAN.
35784         * modules/round-tests (Files): Add tests/nan.h.
35785
35786         * tests/test-trunc1.c: Include nan.h.
35787         (main): Use NaNd instead of NAN.
35788         * modules/trunc-tests (Files): Add tests/nan.h.
35789
35790         * tests/test-roundf1.c: Include nan.h.
35791         (main): Use NaNf instead of NAN.
35792         * modules/roundf-tests (Files): Add tests/nan.h.
35793
35794         * tests/test-truncf1.c: Include nan.h.
35795         (main): Use NaNf instead of NAN.
35796         * modules/truncf-tests (Files): Add tests/nan.h.
35797
35798         * tests/test-ceilf1.c: Include nan.h.
35799         (main): Use NaNf instead of NAN.
35800         * modules/ceilf-tests (Files): Add tests/nan.h.
35801
35802         * tests/test-floorf1.c: Include nan.h.
35803         (main): Use NaNf instead of NAN.
35804         * modules/floorf-tests (Files): Add tests/nan.h.
35805
35806         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35807         (main): Use NaNf instead of NAN.
35808         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35809
35810         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35811         (main): Use NaNd instead of NAN.
35812         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35813
35814         * tests/test-frexp.c: Include nan.h.
35815         (main): Use NaNd instead of NAN.
35816         * modules/frexp-tests (Files): Add tests/nan.h.
35817
35818         * lib/isnan.c: Don't include <math.h>.
35819         (FUNC): Don't use NAN macro.
35820         * modules/isnand-nolibm (Depends-on): Remove math.
35821         * modules/isnanf-nolibm (Depends-on): Remove math.
35822         * modules/isnanl (Depends-on): Remove math.
35823         * modules/isnanl-nolibm (Depends-on): Remove math.
35824
35825         * tests/nan.h: New file.
35826
35827 2008-04-01  Eric Blake  <ebb9@byu.net>
35828
35829         Fix typos.
35830         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35831         values to be the right type.
35832
35833         For now, cater to gnulib strtod inaccuracies.
35834         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35835         fractional results.  While not as nice from a QoI perspective, it
35836         is a quicker patch than correctly implementing decimal to binary
35837         rounding.
35838
35839 2008-03-31  Eric Blake  <ebb9@byu.net>
35840
35841         Guarantee a definition of NAN.
35842         * lib/math.in.h (NAN): Define if missing.
35843         * tests/test-math.c (main): Test it.
35844         * doc/posix-headers/math.texi (math.h): Document this.
35845         * lib/isnan.c (rpl_isnand): Use it.
35846         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35847         * tests/test-floorf1.c (NaN): Likewise.
35848         * tests/test-frexp.c (NaN): Likewise.
35849         * tests/test-isnand.c (NaN): Likewise.
35850         * tests/test-isnanf.c (NaN): Likewise.
35851         * tests/test-round1.c (NaN): Likewise.
35852         * tests/test-roundf1.c (NaN): Likewise.
35853         * tests/test-snprintf-posix.h (NaN): Likewise.
35854         * tests/test-sprintf-posix.h (NaN): Likewise.
35855         * tests/test-trunc1.c (NaN): Likewise.
35856         * tests/test-truncf1.c (NaN): Likewise.
35857         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35858         * tests/test-vasprintf-posix.c (NaN): Likewise.
35859         * modules/isnand-nolibm (Depends-on): Add math.
35860         * modules/isnanf-nolibm (Depends-on): Likewise.
35861         * modules/isnanl (Depends-on): Likewise.
35862         * modules/isnanl-nolibm (Depends-on): Likewise.
35863         * modules/snprintf-posix-tests (Depends-on): Likewise.
35864         * modules/sprintf-posix-tests (Depends-on): Likewise.
35865         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35866         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35867         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35868         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35869
35870 2008-03-31  Bruno Haible  <bruno@clisp.org>
35871
35872         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35873         * doc/posix-functions/strtod.texi: Likewise.
35874
35875 2008-03-31  Bruno Haible  <bruno@clisp.org>
35876
35877         * tests/test-strtod.c (main): Don't use C99 syntax.
35878
35879 2008-03-31  Bruno Haible  <bruno@clisp.org>
35880
35881         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35882         Reported by Eric Blake.
35883
35884 2008-03-31  Jim Meyering  <meyering@redhat.com>
35885
35886         Don't compare actual signbit return values.
35887         * tests/test-strtod.c (main): Rather, compare only their
35888         zero/non-zero nature.
35889
35890 2008-03-31  Eric Blake  <ebb9@byu.net>
35891
35892         More strtod documentation.
35893         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35894         failures as distinct bugs.
35895
35896 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35897
35898         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35899         Problem reported by Erik Benada in
35900         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35901
35902 2008-03-30  Bruno Haible  <bruno@clisp.org>
35903
35904         * tests/test-strtod.c: Add comments about which assertion fails on which
35905         platform.
35906         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35907
35908 2008-03-30  Eric Blake  <ebb9@byu.net>
35909
35910         Test signbit behavior on zeros.
35911         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35912         (test_signbitd, test_signbitl): Likewise.
35913
35914         More strtod touchups.
35915         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35916         sign of negative underflow, for now.  Use .5, not .1.
35917         * doc/posix-functions/strtod.texi (strtod): Mention these
35918         limitations.
35919         Reported by Jim Meyering.
35920
35921 2008-03-30  Bruno Haible  <bruno@clisp.org>
35922
35923         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35924         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35925
35926 2008-03-30  Bruno Haible  <bruno@clisp.org>
35927
35928         Avoid failure when attempting to return empty iconv results on some
35929         platforms.
35930         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35931         allocation, don't report ENOMEM when the resulting string is empty.
35932
35933 2008-03-30  Bruno Haible  <bruno@clisp.org>
35934
35935         Fix buffer overrun.
35936         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35937         Don't consider the width for tmp_length. Check count against tmp_length
35938         before doing the padding. Ensure enough allocation during padding.
35939
35940 2008-03-30  Eric Blake  <ebb9@byu.net>
35941
35942         strtod touchups.
35943         * lib/strtod.c (strtod): Avoid compiler warnings.
35944         Reported by Jim Meyering.
35945
35946 2008-03-30  Bruno Haible  <bruno@clisp.org>
35947
35948         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35949         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35950         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35951         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35952         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35953         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35954         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35955         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35956
35957         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35958         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35959         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35960         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35961         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35962         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35963         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35964         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35965
35966         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35967         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35968         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35969         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35970         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35971         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35972         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35973         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35974
35975         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35976         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35977
35978         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35979         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35980
35981         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35982         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35983
35984         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35985         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35986         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35987
35988         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35990         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35991
35992         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35994         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35995
35996         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35998         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35999
36000         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
36001         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
36002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
36003         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
36004         (Depends-on): Add EOVERFLOW.
36005         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
36006         (Depends-on): Add EOVERFLOW.
36007         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36008         (Depends-on): Add EOVERFLOW.
36009         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
36010         (Depends-on): Add EOVERFLOW.
36011         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36012         (Depends-on): Add EOVERFLOW.
36013         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
36014         (Depends-on): Add EOVERFLOW.
36015         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36016         (Depends-on): Add EOVERFLOW.
36017         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
36018         (Depends-on): Add EOVERFLOW.
36019
36020         * lib/sprintf.c (EOVERFLOW): Remove fallback.
36021         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
36022         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
36023
36024         * lib/snprintf.c (EOVERFLOW): Remove fallback.
36025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
36026         * modules/snprintf (Depends-on): Add EOVERFLOW.
36027
36028         * lib/poll.c (EOVERFLOW): Remove fallback.
36029         * modules/poll (Depends-on): Add EOVERFLOW.
36030
36031         * lib/getugroups.c (EOVERFLOW): Remove fallback.
36032         * modules/getugroups (Depends-on): Add EOVERFLOW.
36033
36034         * lib/getdelim.c (EOVERFLOW): Remove fallback.
36035         * modules/getdelim (Depends-on): Add EOVERFLOW.
36036
36037         * lib/ftell.c (EOVERFLOW): Remove fallback.
36038         * modules/ftell (Depends-on): Add EOVERFLOW.
36039
36040         * lib/fprintf.c (EOVERFLOW): Remove fallback.
36041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
36042         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
36043
36044         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
36045
36046         * modules/EOVERFLOW-tests: New file.
36047         * tests/test-EOVERFLOW.c: New file.
36048
36049         * modules/EOVERFLOW: New file.
36050         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
36051
36052 2008-03-30  Bruno Haible  <bruno@clisp.org>
36053
36054         Fix bug introduced on 2007-06-10.
36055         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
36056         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
36057
36058 2008-03-30  Bruno Haible  <bruno@clisp.org>
36059
36060         Improve freadseek's efficiency after ungetc.
36061         * lib/freadseek.c: Include freadahead.h.
36062         (freadptrinc): New function, extracted from freadseek.
36063         (freadseek): Use it in a loop. Use freadahead to determine the number
36064         of loop iterations.
36065         * modules/freadseek (Depends-on): Add freadahead.
36066         (configure.ac): Require AC_C_INLINE.
36067
36068 2008-03-30  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/freadseek.c (freadseek): Don't ignore the return value of
36071         freadptr.
36072
36073 2008-03-29  Eric Blake  <ebb9@byu.net>
36074
36075         Add hex float support.
36076         * modules/strtod (Depends-on): Add c-ctype.
36077         (Link): Mention POW_LIB.
36078         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
36079         whitespace between 'e' and exponent.
36080         * tests/test-strtod.c (main): Enable hex float tests.
36081         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
36082         now provides.
36083
36084         Document various strtod bugs, with some fixes.
36085         * doc/posix-functions/strtod.texi (strtod): Document bugs with
36086         "-0x", "inf", "nan", and hex constants.
36087         * doc/posix-functions/atof.texi (atof): Likewise.
36088         * modules/stdlib (Makefile.am): Support strtod.
36089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36090         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
36091         detect additional strtod bugs.
36092         * lib/stdlib.in.h (rpl_strtod): Add declarations.
36093         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
36094         bool where appropriate.  Parse 'inf' and 'nan'.
36095         * tests/test-strtod.c: New file.
36096         * modules/strtod (Depends-on): Add stdbool, stdlib.
36097         (configure.ac): Turn on module indicator.
36098         * modules/strtod-tests: New module.
36099
36100 2008-03-29  Eric Blake  <ebb9@byu.net>
36101
36102         Fix ftell on mingw.
36103         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
36104         * modules/ftell-tests (Depends-on): Add binary-io.
36105         * modules/ftello-tests (Depends-on): Likewise.
36106         * tests/test-ftell.c (main): Enhance test to cover behavior after
36107         ungetc.  Enforce binary mode.
36108         * tests/test-ftello.c (main): Likewise.
36109
36110         Pass test-freadseek on cygwin.
36111         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
36112         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
36113         ungetc buffer.
36114
36115         * tests/test-fflush2.c (main): Fix typo.
36116
36117 2008-03-29  Bruno Haible  <bruno@clisp.org>
36118
36119         * tests/test-fflush2.c (main): Temporarily disable the contents of
36120         this test.
36121         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
36122         Reported by Eric Blake.
36123
36124 2008-03-28  Simon Josefsson  <simon@josefsson.org>
36125
36126         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
36127         (GC_SHA224_DIGEST_SIZE): Add.
36128
36129         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
36130         (gc_hash_digest_length): Likewise.
36131         (gc_hash_buffer): Likewise.
36132
36133 2008-03-25  Bruno Haible  <bruno@clisp.org>
36134
36135         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
36136         detail which gettext release to use.
36137         Reported by Simon Josefsson.
36138
36139 2008-03-26  Jim Meyering  <meyering@redhat.com>
36140
36141         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
36142         * modules/gnumakefile (clean-GNUmakefile): Also, use
36143         test ... && ... || : syntax rather than if-then ... fi.
36144
36145         gnumakefile: Don't double-quote-expand $(VPATH) value.
36146         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
36147
36148 2008-03-24  Eric Blake  <ebb9@byu.net>
36149
36150         Alter GNUmakefile to install into top directory.
36151         * modules/maintainer-makefile: Split, and add dependency...
36152         * modules/gnumakefile: to this new module.
36153         * build-aux/GNUmakefile: Move...
36154         * top/GNUmakefile: ...here.
36155         * build-aux/maint.mk: Move...
36156         * top/maint.mk: ...here.
36157         * MODULES.html.sh (Support for maintaining...): Document new
36158         module.
36159
36160 2008-03-23  Bruno Haible  <bruno@clisp.org>
36161
36162         * gnulib-tool: New options --vc-files, --no-vc-files.
36163         (func_usage): Document them.
36164         (vc_files): New variable.
36165         (func_import): Consider vc_files.
36166         (func_create_testdir): Set vc_files to empty.
36167         Suggested by Jim Meyering and Karl Berry.
36168
36169 2008-03-23  Bruno Haible  <bruno@clisp.org>
36170
36171         Fix regex compilation error on HP-UX 11.
36172         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
36173         * modules/regex (Files): Add m4/mbstate_t.m4.
36174         Reported by Ton Voon <ton.voon@altinity.com>.
36175
36176 2008-03-23  Bruno Haible  <bruno@clisp.org>
36177
36178         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
36179
36180 2008-03-23  Eric Blake  <ebb9@byu.net>
36181             Bruno Haible  <bruno@clisp.org>
36182
36183         Install files from top/ in the destination directory.
36184         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
36185         augmentation also for the files from top/.
36186         (func_import, func_create_testdir): Rewrite file names:
36187         top/filename -> filename.
36188
36189 2008-03-23  Bruno Haible  <bruno@clisp.org>
36190
36191         Tweak "gnulib --version" output.
36192         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
36193
36194 2008-03-23  Bruno Haible  <bruno@clisp.org>
36195
36196         Tweak "gnulib --version" output.
36197         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
36198         rather than contents of ChangeLog, when possible.
36199
36200 2008-03-21  Eric Blake  <ebb9@byu.net>
36201
36202         More --version tweaks.
36203         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
36204         date of last ChangeLog entry.
36205
36206 2008-03-21  Jim Meyering  <meyering@redhat.com>
36207
36208         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
36209
36210 2008-03-20  Eric Blake  <ebb9@byu.net>
36211
36212         VPATH fix.
36213         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
36214
36215 2008-03-20  Simon Josefsson  <simon@josefsson.org>
36216
36217         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
36218         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
36219
36220 2008-03-20  Eric Blake  <ebb9@byu.net>
36221
36222         Sync GNUmakefile with coreutils.
36223         * build-aux/GNUmakefile (have-Makefile): Rename...
36224         (_have-Makefile): ...to this, for namespace consideration.
36225         (GNUmakefile.cfg): Include, if present.
36226         (_autoreconf): Define a default.
36227         (_is-dist-target): New rule for rebuilds to pick up intra-release
36228         version.
36229         (maint-cfg.mk): Rename...
36230         (cfg.mk): ...to this.
36231
36232 2008-03-18  Jim Meyering  <meyering@redhat.com>
36233
36234         New script and module: mktempd
36235         * MODULES.html.sh (maint+release support): Add mktempd.
36236         * build-aux/mktempd: New file.
36237         * modules/mktempd: New file.
36238
36239 2008-03-15  Jim Meyering  <meyering@redhat.com>
36240
36241         Undo last change.
36242         * lib/sha1.c, lib/md5.c: 63 != ~63.
36243         Reported by Andreas Schwab.
36244
36245         sha1.c, md5.c: Hoist a redundant expression.
36246         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
36247         "ctx->buflen" only once, before calling *_process_block.
36248         * lib/md5.c (md5_process_bytes): Likewise.
36249
36250 2008-03-14  Eric Blake  <ebb9@byu.net>
36251
36252         Bump copyright year in files generated by gnulib-tool.
36253         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
36254         gnulib-tool, rather than hard-coding it.
36255
36256         Fix 'gnulib-tool --version' output to work with git.
36257         * gnulib-tool (func_gnulib_dir): New function, extracted from...
36258         (startup): ...here.
36259         (func_version): Use it to invoke git-version-gen, rather than
36260         relying on CVS keyword expansion.  Modernize wording.
36261         (cvsdatestamp, last_checkin_date, version): Kill unused
36262         variables.
36263
36264 2008-03-12  Jim Meyering  <meyering@redhat.com>
36265
36266         Recognize optional cast of the argument to free.
36267         * build-aux/useless-if-before-free: Update regexps.
36268
36269         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
36270
36271 2008-03-11  Bruno Haible  <bruno@clisp.org>
36272
36273         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
36274         by a single package.
36275         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
36276         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
36277         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
36278         Reported by Sam Steingold <sds@gnu.org>.
36279
36280 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36281
36282         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36283         repositories.
36284
36285 2008-03-11  Bruno Haible  <bruno@clisp.org>
36286
36287         Avoid conflicts between local macro definitions.
36288         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36289         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36290
36291 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36292             Bruno Haible  <bruno@clisp.org>
36293
36294         Make va_copy work with some version of xlc on AIX 5.1.
36295         * lib/stdarg.in.h: New file.
36296         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36297         On AIX, use a <stdarg.h> file substitute.
36298         * modules/stdarg (Files): Add lib/stdarg.in.h.
36299         (Depends-on): Add include_next.
36300         (Makefile.am): Build a stdarg.h substitute if requested.
36301         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36302
36303 2008-03-10  Bruno Haible  <bruno@clisp.org>
36304
36305         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36306         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36307         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36308
36309 2008-03-10  Bruno Haible  <bruno@clisp.org>
36310
36311         * modules/stdlib (Depends-on): Add include_next, remove
36312         absolute-header.
36313
36314 2008-03-09  Bruno Haible  <bruno@clisp.org>
36315
36316         * lib/freadahead.h (freadahead): Document more precisely.
36317         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36318         the sum of both buffer sizes.
36319         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36320         * NEWS: Document the change.
36321
36322 2008-03-09  Bruno Haible  <bruno@clisp.org>
36323
36324         Extend freadptr to return also the buffer size.
36325         * lib/freadptr.h (freadptr): Add sizep argument.
36326         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36327         (freadptr): Add sizep argument. Determine buffer size like freadahead
36328         does.
36329         * tests/test-freadptr.c: Don't include freadahead.h.
36330         (main): Adapt for new calling convention of freadptr.
36331         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36332         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36333         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36334         tests/test-freadptr2.sh.
36335         (Depends): Remove freadahead.
36336         (TESTS): Add test-freadptr2.sh.
36337         (check_PROGRAMS): Add test-freadptr2.
36338
36339 2008-03-09  Bruno Haible  <bruno@clisp.org>
36340
36341         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36342         Report and solution by Simon Josefsson.
36343
36344 2008-03-06  Bruno Haible  <bruno@clisp.org>
36345
36346         Make fflush after ungetc work on BSD platforms.
36347         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36348         * tests/test-fflush2.c: New file.
36349         * tests/test-fflush2.sh: New file.
36350         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36351         tests/test-fflush2.c.
36352         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36353         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36354
36355 2008-03-06  Eric Blake  <ebb9@byu.net>
36356
36357         Likewise for ftello.
36358         * modules/ftello (Dependencies): Add extensions.
36359         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36360
36361 2008-03-06  Bruno Haible  <bruno@clisp.org>
36362
36363         * modules/fseeko (Dependencies): Add extensions.
36364         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36365         Needed on glibc systems.
36366
36367 2008-03-06  Bruno Haible  <bruno@clisp.org>
36368
36369         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36370         email address.
36371         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36372
36373 2008-03-06  Bruno Haible  <bruno@clisp.org>
36374
36375         * users.txt: Add libgnupdf.
36376
36377 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36378
36379         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36380         (Header File Substitutes, Function Substitutes,
36381         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36382         (Build robot for gnulib): Fix typo.
36383
36384 2008-03-06  Bruno Haible  <bruno@clisp.org>
36385
36386         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36387         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36388
36389 2008-03-06  Bruno Haible  <bruno@clisp.org>
36390
36391         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36392         * doc/gnulib.texi: Include it.
36393
36394 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36395
36396         * modules/func (License): Change license to unlimited; there was
36397         no LGPL parts in the module anyway.
36398
36399 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36400
36401         * modules/__func__: Renamed to modules/func.
36402         * modules/__func__-tests: Renamed to modules/func-tests.
36403         * tests/test-__func__.c: Renamed to tests/test-func.c.
36404         * m4/__func__.m4: Renamed to m4/func.m4.
36405         * doc/gnulib.texi (__func__): Section renamed to func.
36406         Suggested by Eric Blake <ebb9@byu.net>.
36407
36408 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36409
36410         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36411         about __func__.  Make example self-contained.  Suggested by Eric
36412         Blake <ebb9@byu.net>.
36413
36414         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36415         Suggested by Eric Blake <ebb9@byu.net>.
36416
36417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36418
36419         * modules/__func__: New file.
36420         * modules/__func__-tests: New file.
36421         * tests/test-__func__.c: New file.
36422         * m4/__func__.m4: New file.
36423         * doc/gnulib.texi (__func__): Document __func__ module.
36424
36425 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36426
36427         * modules/byteswap (License): Re-license as LGPLv2+.
36428
36429 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36430
36431         * doc/Makefile: Add pdf target.
36432
36433 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36434
36435         * modules/inline (License): Use 'unlimited', since there are only
36436         *.m4 files in this module.
36437
36438 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36439             Bruno Haible  <bruno@clisp.org>
36440
36441         Add support for HP C 7.1 on OpenVMS 8.3.
36442         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36443
36444 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36445
36446         Update VMS specifics.
36447         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36448
36449 2008-03-02  Jim Meyering  <meyering@redhat.com>
36450
36451         Remove the last dependency on the "free" module.
36452         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36453         Reported by Bob Proulx.
36454
36455         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36456
36457         Remove useless "if" tests before free.  Deprecate "free" module.
36458         * doc/posix-functions/free.texi: Mention that this
36459         module is no longer useful.
36460         * modules/free (Notice): Say this module is obsolete.
36461         * modules/readutmp (Depends-on): Remove free.
36462         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36463         * lib/putenv.c (putenv): Likewise.
36464         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36465         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36466         * tests/test-c-strcasestr.c (main): Likewise.
36467         * tests/test-c-strstr.c (main): Likewise.
36468         * tests/test-mbscasestr1.c (main): Likewise.
36469         * tests/test-mbscasestr2.c (main): Likewise.
36470         * tests/test-mbsstr1.c (main): Likewise.
36471         * tests/test-mbsstr2.c (main): Likewise.
36472         * tests/test-memmem.c (main): Likewise.
36473         * tests/test-strcasestr.c (main): Likewise.
36474         * tests/test-striconv.c (main): Likewise.
36475         * tests/test-striconveh.c (main): Likewise.
36476         * tests/test-striconveha.c (main): Likewise.
36477         * tests/test-strstr.c (main): Likewise.
36478
36479         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36480
36481         bootstrap: sync from coreutils again
36482         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36483
36484 2008-03-01  Jim Meyering  <meyering@redhat.com>
36485
36486         bootstrap: sync from coreutils
36487         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36488         also when the target doesn't exist.
36489
36490 2008-03-01  Eric Blake  <ebb9@byu.net>
36491
36492         Fix bugs in last patch.
36493         * lib/memchr2.c (memchr2): Fix typo.
36494         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36495         extension.
36496         Reported by Bruce Korb.
36497
36498         New module 'memchr2'.
36499         * modules/memchr2: New file.
36500         * modules/memchr2-tests: Likewise.
36501         * lib/memchr2.h: Likewise.
36502         * lib/memchr2.c: Likewise, based on memchr.c.
36503         * tests/test-memchr2.c: New test.
36504         * MODULES.html.sh (String handling): Add memchr2.
36505
36506 2008-02-29  Bruno Haible  <bruno@clisp.org>
36507
36508         * modules/freadseek-tests: New file.
36509         * tests/test-freadseek.sh: New file.
36510         * tests/test-freadseek.c: New file.
36511
36512         New module 'freadseek'.
36513         * modules/freadseek: New file.
36514         * lib/freadseek.h: New file.
36515         * lib/freadseek.c: New file.
36516         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36517
36518 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36519
36520         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36521         wydawca.
36522
36523         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36524         program_invocation_name and program_invocation_short_name are
36525         present.
36526
36527 2008-02-28  Bruno Haible  <bruno@clisp.org>
36528
36529         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36530         * tests/test-freadptr.sh: Also test non-seekable stdin.
36531
36532 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36533
36534         * build-aux/bootstrap (source_base, m4_base)
36535         (doc_base, tests_base): New variables.
36536         (gnulib_tool_options): Do not hardcode base directories, use
36537         the above variables instead.
36538
36539 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36540
36541         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36542
36543 2008-02-28  Bruno Haible  <bruno@clisp.org>
36544
36545         * modules/freadptr-tests: New file.
36546         * tests/test-freadptr.sh: New file.
36547         * tests/test-freadptr.c: New file.
36548
36549         New module 'freadptr'.
36550         * modules/freadptr: New file.
36551         * lib/freadptr.h: New file.
36552         * lib/freadptr.c: New file.
36553         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36554
36555 2008-02-26  Karl Berry  <karl@freefriends.org>
36556
36557         Sync from Libtool:
36558         * libltdl/argz.c (argz_add, argz_count): New functions.
36559         * libltdl/argz.in.h: Declare them.
36560         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36561
36562 2008-02-22  Bruno Haible  <bruno@clisp.org>
36563
36564         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36565         is a pointer type.  Needed for HP-UX 10.
36566         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36567         * doc/posix-functions/gmtime_r.texi: Likewise.
36568         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36569
36570 2008-02-24  Bruno Haible  <bruno@clisp.org>
36571
36572         * modules/environ-tests: New file.
36573         * tests/test-environ.c: New file.
36574
36575         New module 'environ'.
36576         * modules/environ: New file.
36577         * lib/unistd.in.h (environ): New declaration.
36578         * m4/environ.m4: New file.
36579         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36580         after use.
36581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36582         HAVE_DECL_ENVIRON.
36583         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36584         HAVE_DECL_ENVIRON.
36585         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36586         wrong claim that 'environ' is missing on some systems.
36587         * modules/execute (Depends-on): Add environ.
36588         * lib/execute.c (environ): Remove fallback declaration.
36589         * modules/pipe (Depends-on): Add environ.
36590         * lib/pipe.c (environ): Remove fallback declaration.
36591         * modules/setenv (Depends-on): Add environ.
36592         * lib/setenv.c (environ): Remove fallback declaration.
36593         * modules/unsetenv (Depends-on): Add environ.
36594         * lib/unsetenv.c (environ): Remove fallback declaration.
36595         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36596         m4/environ.m4.
36597         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36598         (gl_PREREQ_UNSETENV): Likewise.
36599
36600 2008-02-24  Bruno Haible  <bruno@clisp.org>
36601
36602         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36603
36604 2008-02-20  Bob Proulx  <bob@proulx.com>
36605
36606         Enable use of older two part flavor 'git describe'.
36607         * build-aux/git-version-gen: If using the older two part flavor of
36608         git version then recreate the third part now present in the
36609         newer three part flavor of git describe.
36610
36611 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36612
36613         * lib/fts.c (fts_build): Typo correction to comment.
36614
36615 2008-02-17  Bruno Haible  <bruno@clisp.org>
36616
36617         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36618         generating no-op conflicts.
36619
36620 2008-02-17  Bruno Haible  <bruno@clisp.org>
36621
36622         Speed up by 10%.
36623         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36624         result_entries, rather than an index-based loop.
36625
36626 2008-02-17  Bruno Haible  <bruno@clisp.org>
36627
36628         Speed up by 25%.
36629         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36630         'hashcode_cached'.
36631         (entry_create): New function.
36632         (entry_hashcode): Use the cached hashcode if possible.
36633         (read_changelog_file, try_split_merged_entry): Use entry_create.
36634
36635 2008-02-17  Bruno Haible  <bruno@clisp.org>
36636
36637         Speed up from O(n^2) to O(n) for long ChangeLog files.
36638         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36639         (read_changelog_file): Change implementation of entries_reversed list
36640         to rbtreehash.
36641         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36642
36643 2008-02-17  Bruno Haible  <bruno@clisp.org>
36644
36645         New option --split-merged-entry.
36646         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36647         (find_paragraph_end, try_split_merged_entry): New functions.
36648         (long_options): Add option --split-merged-entry.
36649         (usage): Document option --split-merged-entry.
36650         (main): Implement option --split-merged-entry.
36651         Reported by Eric Blake.
36652
36653 2008-02-17  Bruno Haible  <bruno@clisp.org>
36654
36655         * lib/git-merge-changelog.c: Include c-strstr.h.
36656         (main): Support the "git pull --rebase" situation.
36657         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36658         Reported by Eric Blake.
36659
36660 2008-02-16  Eric Blake  <ebb9@byu.net>
36661
36662         Avoid doubling \ in common case of "c-maybe" quoting style.
36663         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36664         eliding outer quotes.
36665         * lib/quotearg.h: Document this.
36666         * tests/test-quotearg.c (result_strings, inputs, results_g)
36667         (flag_results, locale_results): Test it by adding a new string to
36668         each test group.
36669         (compare_strings): Test new string.
36670
36671 2008-02-13  Eric Blake  <ebb9@byu.net>
36672
36673         Avoid trigraph quoting in default output.
36674         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36675         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36676         unless explicitly requested.
36677         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36678
36679 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36680
36681         Don't rely on signed integer overflowing to negative value.
36682         * lib/getugroups.c (getugroups): Include <limits.h>.
36683         Instead, compare against INT_MAX, and increment only if the test passes.
36684
36685 2008-02-13  Jim Meyering  <meyering@redhat.com>
36686         and Eric Blake  <ebb9@byu.net>
36687
36688         Avoid shadowing warning and compile errors on Linux.
36689         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36690         forwarding macros on Linux.
36691         (dcgettext): Define a stub, for Linux.
36692         (results_g, main): Avoid warnings.
36693
36694 2008-02-12  Eric Blake  <ebb9@byu.net>
36695
36696         Silence warning in last patch.
36697         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36698
36699         Quotearg part 4: add tests, fix c-maybe colon quoting.
36700         * lib/quotearg.h: Improve documentation.
36701         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36702         escapes when adding outer quotes.  When quoting trigraphs, use
36703         valid C notation.  When quoting NUL, omit extra characters if next
36704         character is not digit.  Alter prototype.
36705         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36706         callers.
36707         * modules/quotearg-tests: New module.
36708         * tests/test-quotearg.c: New test.
36709
36710 2008-02-07  Eric Blake  <ebb9@byu.net>
36711
36712         Quotearg part 3: add flag to control outer quote elision.
36713         * lib/quotearg.h (c_maybe_quoting_style): New style.
36714         (enum quoting_flags): Better documentation of flags.
36715         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36716         c-maybe style.
36717         (quotearg_buffer_restyled): Handle new flag to elide outer
36718         quotes.
36719
36720         Quotearg part 2: add flag that can control NUL elision.
36721         * lib/quotearg.h (set_quoting_flags): New prototype.
36722         * lib/quotearg.c (struct quoting_options): Add flag field.
36723         (set_quoting_flags): New function.
36724         (quotearg_buffer_restyled): Add flags parameter.
36725         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36726         (quotearg_n_options): Set the flag, since length cannot be
36727         returned.
36728         (quoting_options_from_style): Default flags correctly.
36729
36730         Quotearg part 1: more wrappers, restore quotearg_char state.
36731         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36732         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36733         (quotearg_colon_mem): New wrappers.
36734         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36735         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36736         functions.
36737         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36738         (quotearg_colon_mem): New functions.
36739
36740 2008-02-11  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36743         library in the current directory: it does not work with parallel make.
36744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36745
36746 2008-02-11  Bruno Haible  <bruno@clisp.org>
36747
36748         * .gitattributes: New file.
36749
36750 2008-02-11  Jim Meyering  <meyering@redhat.com>
36751
36752         useless-if-before-free: Fix reversed exit values.
36753         * build-aux/useless-if-before-free: Use correct values
36754         for EXIT_MATCH and EXIT_NO_MATCH.
36755
36756         * build-aux/useless-if-before-free: Close stdout carefully.
36757
36758 2008-02-10  Bruno Haible  <bruno@clisp.org>
36759
36760         New module 'git-merge-changelog'.
36761         * modules/git-merge-changelog: New file.
36762         * lib/git-merge-changelog.c: New file.
36763
36764 2008-02-10  Jim Meyering  <meyering@redhat.com>
36765
36766         useless-if-before-free: New option: --list (-l).
36767
36768         useless-if-before-free: Don't exit immediately upon open failure.
36769         * build-aux/useless-if-before-free: Exit 2 for errors.
36770         Upon failure to open a file, don't exit immediately.
36771         Rather, just warn and continue with any remaining files.
36772
36773 2008-02-10  Bruno Haible  <bruno@clisp.org>
36774
36775         New abstract list operation 'node_set_value'.
36776         * lib/gl_list.h (gl_list_node_set_value): New function.
36777         (struct gl_list_implementation): New field node_set_value.
36778         * lib/gl_list.c (gl_list_node_set_value): New function.
36779         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36780         (gl_array_list_implementation): Update.
36781         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36782         (gl_carray_list_implementation): Update.
36783         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36784         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36785         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36786         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36787         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36788         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36789         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36790         Update.
36791         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36792         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36793         (gl_sublist_list_implementation): Update.
36794
36795 2008-02-10  Bruno Haible  <bruno@clisp.org>
36796
36797         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36798         Needed when ELEMENT is #defined to 'some_type *'.
36799
36800 2008-02-10  Jim Meyering  <meyering@redhat.com>
36801
36802         New script and module: useless-if-before-free
36803         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36804         * build-aux/useless-if-before-free: New file.
36805         * modules/useless-if-before-free: New file.
36806
36807         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36808
36809         xstrtol_error: Fix typo.
36810         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36811         s/exit_failure/exit_status/.
36812
36813 2008-02-09  Jim Meyering  <meyering@redhat.com>
36814
36815         New script and module: gitlog-to-changelog
36816         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36817         * modules/gitlog-to-changelog: New file.
36818         * build-aux/gitlog-to-changelog: New file.
36819
36820 2008-02-08  Jim Meyering  <meyering@redhat.com>
36821
36822         Avoid two "parameter unused" warnings.
36823         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36824         Mark "st" as used.
36825
36826         Use "git COMMAND", not "git-COMMAND".
36827         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36828         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36829         * build-aux/git-version-gen: Use "git status", not "git-status".
36830
36831 2008-02-07  Bruno Haible  <bruno@clisp.org>
36832
36833         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36834         Avoids a crash on Windows Vista.
36835         Reported by Adam Strzelecki <ono@java.pl> via
36836         Simon Josefsson <simon@josefsson.org>.
36837
36838 2008-02-06  Bruno Haible  <bruno@clisp.org>
36839
36840         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36841         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36842         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36844         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36846         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36847         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36855         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36856         left-adjust flag.
36857         * tests/test-snprintf-posix.h (test_function): Likewise.
36858         * tests/test-sprintf-posix.h (test_function): Likewise.
36859         * tests/test-vasprintf-posix.c (test_function): Likewise.
36860         * doc/posix-functions/fprintf.texi: Update.
36861         * doc/posix-functions/printf.texi: Update.
36862         * doc/posix-functions/snprintf.texi: Update.
36863         * doc/posix-functions/sprintf.texi: Update.
36864         * doc/posix-functions/vfprintf.texi: Update.
36865         * doc/posix-functions/vprintf.texi: Update.
36866         * doc/posix-functions/vsnprintf.texi: Update.
36867         * doc/posix-functions/vsprintf.texi: Update.
36868         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36869
36870 2008-02-06  Bruno Haible  <bruno@clisp.org>
36871
36872         Fix bug introduced on 2008-01-26.
36873         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36874
36875 2008-02-06  Bruno Haible  <bruno@clisp.org>
36876
36877         Fix bug introduced on 2007-06-10.
36878         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36879         !NEED_PRINTF_FLAG_ZERO.
36880
36881 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36882
36883         getloadavg: use libperfstat on AIX5
36884         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36885
36886 2008-02-03  Bruno Haible  <bruno@clisp.org>
36887
36888         * lib/diffseq.h: Add comments about required #includes.
36889         Reported by Michael Biggs <gnulib@doubleplum.net>.
36890
36891 2008-02-01  Bruno Haible  <bruno@clisp.org>
36892
36893         * users.txt: Add gnuit.
36894
36895 2008-01-31  Bruno Haible  <bruno@clisp.org>
36896
36897         * lib/md4.c (set_uint32): Mark as inline.
36898         * lib/md5.c (set_uint32): Likewise.
36899         * lib/sha1.c (set_uint32): Likewise.
36900         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36901         * m4/md5.m4 (gl_MD5): Likewise.
36902         * m4/sha1.m4 (gl_SHA1): Likewise.
36903
36904 2008-01-31  Jim Meyering  <meyering@redhat.com>
36905
36906         Use "sizeof VAR", rather than a literal "4".
36907         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36908         * lib/md4.c (md4_read_ctx): Likewise.
36909         * lib/sha1.c (sha1_read_ctx): Likewise.
36910
36911 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36912
36913         * tests/test-sha1.c: New file, based on test-md5.c.
36914
36915         * modules/crypto/sha1-tests: New file.
36916
36917 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36918
36919         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36920
36921 2008-01-31  Jim Meyering  <meyering@redhat.com>
36922
36923         Prefer "sizeof v" over the equivalent "4".
36924         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36925         * lib/md5.c (set_uint32): Likewise.
36926         * lib/sha1.c (set_uint32): Likewise.
36927
36928 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36929
36930         * lib/sha1.c (set_uint32): Mark function as static.
36931
36932 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36933
36934         md2: clarify comments to say that alignment is not required.
36935         * lib/md2.h: Remove warning about alignment in comment.
36936         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36937         never been required.
36938
36939 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36940
36941         md4: adapt alignment constraint fix from sha1.
36942         * lib/md4.c (set_uint32): New function, from sha1.c
36943         (md4_read_ctx): Use it.
36944         (md4_finish_ctx): Doc fix.
36945         * lib/md4.h: Doc fix.
36946
36947 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36948
36949         md5: adapt alignment constraint fix from sha1.
36950         * lib/md5.c (set_uint32): New function, from sha1.c
36951         (md5_read_ctx): Use it.
36952         (md5_finish_ctx): Doc fix.
36953         * lib/md5.h: Doc fix.
36954
36955 2008-01-30  Peter Palfrader  <weasel@debian.org>
36956
36957         sha1: remove the result buffer alignment constraint
36958         * lib/sha1.c (set_uint32): New function.
36959         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36960         constraint.
36961         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36962         * lib/sha1.h: Likewise.
36963
36964 2008-01-30  Andreas Schwab  <schwab@suse.de>
36965             Bruno Haible  <bruno@clisp.org>
36966
36967         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36968         correct definition of LDBL_MIN_EXP.
36969
36970 2008-01-30  Karl Berry  <karl@gnu.org>
36971
36972         * config/srclist-update: try to preserve x bit on updates.
36973         * config/srclistvars.sh: update for karl.
36974
36975 2008-01-29  Jim Meyering  <meyering@redhat.com>
36976
36977         vasnprintf.c: Avoid warning about unused label
36978         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36979         "overflow" label definition and associated code with the
36980         same cpp condition that guards the sole use of that label.
36981
36982 2008-01-26  Bruno Haible  <bruno@clisp.org>
36983
36984         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36985         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36986         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36987         * lib/isnanl-nolibm.h (isnanl): Likewise.
36988         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36989
36990 2008-01-26  Bruno Haible  <bruno@clisp.org>
36991
36992         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36993         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36994
36995 2008-01-26  Bruno Haible  <bruno@clisp.org>
36996
36997         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36998         GCC >= 4.0 built-in.
36999         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
37000
37001 2008-01-26  Bruno Haible  <bruno@clisp.org>
37002
37003         Rename isnan, applicable to 'double' only, to isnand.
37004         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
37005         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
37006         (configure.ac): Update.
37007         (Include): Replace "isnan.h" with "isnand.h".
37008         * m4/isnand.m4: Renamed from m4/isnan.m4.
37009         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
37010         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
37011         instead of isnan.c.
37012         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
37013         instead of HAVE_ISNAN_IN_LIBC.
37014         (isnand): Renamed from isnan.
37015         * lib/isnand.c: New file.
37016         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
37017         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
37018         (Makefile.am): Update.
37019         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
37020         Include isnand.h instead of isnan.h.
37021         (main): Test isnand instead of isnan.
37022         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
37023         isnan-nolibm.
37024         * modules/frexp (Depends-on): Likewise.
37025         * modules/frexp-tests (Depends-on): Likewise.
37026         * modules/frexp-nolibm (Depends-on): Likewise.
37027         * modules/frexp-nolibm-tests (Depends-on): Likewise.
37028         * modules/isfinite (Depends-on): Likewise.
37029         * modules/round-tests (Depends-on): Likewise.
37030         * modules/signbit (Depends-on): Likewise.
37031         * modules/signbit-tests (Depends-on): Likewise.
37032         * modules/snprintf-posix (Depends-on): Likewise.
37033         * modules/sprintf-posix (Depends-on): Likewise.
37034         * modules/trunc-tests (Depends-on): Likewise.
37035         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37036         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37037         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37038         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37039         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37040         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37041         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37042         * modules/vasnprintf-posix (Depends-on): Likewise.
37043         * modules/vasprintf-posix (Depends-on): Likewise.
37044         * modules/vfprintf-posix (Depends-on): Likewise.
37045         * modules/vsnprintf-posix (Depends-on): Likewise.
37046         * modules/vsprintf-posix (Depends-on): Likewise.
37047         * lib/frexp.c: Include isnand.h instead of isnan.h.
37048         (ISNAN): Set to isnand instead of isnan.
37049         * lib/isfinite.c: Include isnand.h instead of isnan.h.
37050         (gl_isfinited): Use isnand instead of isnan.
37051         * lib/signbitd.c: Include isnand.h instead of isnan.h.
37052         (gl_signbitd): Use isnand instead of isnan.
37053         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
37054         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
37055         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
37056         (main): Use isnand instead of isnan.
37057         * tests/test-round1.c: Include isnand.h.
37058         (main): Use isnand instead of isnan.
37059         * tests/test-round2.c: Include isnand.h instead of isnan.h.
37060         (ISNAN): Set to isnand instead of isnan.
37061         * tests/test-trunc1.c: Include isnand.h.
37062         (main): Use isnand instead of isnan.
37063         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
37064         (equal): Use isnand instead of isnan.
37065         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
37066         isnand-nolibm.
37067         * NEWS: Mention the change.
37068
37069 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37070             Bruno Haible  <bruno@clisp.org>
37071
37072         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
37073         the GCC builtins for signbits are present and set
37074         REPLACE_SIGNBIT_USING_GCC if so.
37075         * lib/math.in.h (signbit): Define using GCC builtins if
37076         REPLACE_SIGNBIT_USING_GCC is set.
37077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
37078         REPLACE_SIGNBIT_USING_GCC.
37079         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
37080
37081 2008-01-25  Jim Meyering  <meyering@redhat.com>
37082
37083         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
37084         * lib/poll.c: Include <config.h>, not "config.h".
37085         * tests/test-getaddrinfo.c: Likewise.
37086
37087 2008-01-25  Simon Josefsson  <simon@josefsson.org>
37088
37089         * modules/sockets-tests: New file.
37090
37091 2008-01-24  Simon Josefsson  <simon@josefsson.org>
37092
37093         * modules/sockets: New module, can be used to call WSA_Startup and
37094         WSA_Cleanup when needed.
37095
37096         * lib/sockets.h, lib/sockets.c: New files.
37097
37098         * m4/sockets.m4: New file.
37099
37100         * tests/test-sockets.c: New file.
37101
37102 2008-01-19  Bruno Haible  <bruno@clisp.org>
37103
37104         * doc/posix-headers: Renamed from doc/headers.
37105         * doc/posix-functions: Renamed from doc/functions.
37106         * doc/gnulib.texi: Update.
37107
37108 2008-01-19  Bruno Haible  <bruno@clisp.org>
37109
37110         * doc/glibc-functions/strcasestr.texi: Include contents of
37111         doc/functions/strcasestr.texi, fixing the list of platforms.
37112         * doc/functions/strcasestr.texi: Remove file.
37113
37114 2008-01-19  Bruno Haible  <bruno@clisp.org>
37115
37116         * doc/glibc-functions/memmem.texi: Include contents of
37117         doc/functions/memmem.texi.
37118         * doc/functions/memmem.texi: Remove file.
37119
37120 2008-01-18  Bruno Haible  <bruno@clisp.org>
37121
37122         * doc/glibc-functions/*.texi: New files.
37123         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
37124         to use the new files.
37125
37126 2008-01-17  Bruno Haible  <bruno@clisp.org>
37127
37128         * tests/test-gethostname.c (main): Fix printf statement.
37129
37130 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37131
37132         * modules/gethostname-tests: New file.
37133
37134         * tests/test-gethostname.c: New file.
37135
37136 2008-01-17  Simon Josefsson  <simon@josefsson.org>
37137
37138         * lib/gethostname.c: Include string.h unconditionally, strncpy is
37139         used by the UNAME case.  Reported by Bruno Haible
37140         <bruno@clisp.org>.
37141
37142 2008-01-17  Eric Blake  <ebb9@byu.net>
37143
37144         Convert c-strcasestr to be more efficient.
37145         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
37146         (Depends-on): Add c-strcase, remove malloca, strnlen.
37147         * tests/test-c-strcasestr.c (main): Enhance test.
37148         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
37149
37150 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37151
37152         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
37153         Use it in creating po/Makevars.
37154
37155 2008-01-15  Simon Josefsson  <simon@josefsson.org>
37156
37157         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
37158         Applications that requires it should initialize libgcrypt
37159         manually.
37160
37161 2008-01-16  Simon Josefsson  <simon@josefsson.org>
37162
37163         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
37164
37165 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
37166
37167         Fix problem with getdate on mingw32 reported by Simon Josefsson
37168         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
37169         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
37170         tzname", when deciding whether to declare tzname.
37171         * lib/strftime.c (tzname): Likewise.
37172
37173 2008-01-15  Bruno Haible  <bruno@clisp.org>
37174
37175         Work around a MacOS X 10.5 bug in frexpl().
37176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
37177         * doc/functions/frexpl.texi: Document the bug.
37178         Reported by Elias Pipping <pipping@gentoo.org>.
37179
37180 2008-01-14  Eric Blake  <ebb9@byu.net>
37181
37182         Touch up previous patch.
37183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
37184         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
37185
37186         Convert strcasestr module to use Two-Way algorithm.
37187         * modules/strcasestr-simple: New module, based on the old
37188         strcasestr, but with Two-Way rather than KMP.
37189         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
37190         * lib/string.in.h (rpl_strcasestr): Declare.
37191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
37192         performance.
37193         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
37194         * modules/string (Makefile.am): Support strcasestr.
37195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37196         * modules/strcasestr-tests (Depends-on): Check for alarm.
37197         * tests/test-strcasestr.c: Augment test.
37198         * lib/str-two-way.h: Clean up stray macro.
37199         * NEWS: Document new module.
37200         * MODULES.html.sh (string handling): Likewise.
37201         * doc/functions/strcasestr.texi: New file.
37202         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
37203         here, since it is not a POSIX function.
37204
37205 2008-01-14  Colin Watson  <cjwatson@debian.org>
37206             Bruno Haible  <bruno@clisp.org>
37207
37208         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
37209         works fine; if not, set REPLACE_STRSIGNAL.
37210         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
37211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37212         REPLACE_STRSIGNAL.
37213         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
37214         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
37215         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
37216
37217 2008-01-14  Bruno Haible  <bruno@clisp.org>
37218
37219         * modules/strsignal (Include): Change to <string.h>.
37220
37221 2008-01-14  Colin Watson  <cjwatson@debian.org>
37222
37223         * modules/argp (Notice): Add a notice recommending to change
37224         XGETTEXT_OPTIONS.
37225         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
37226
37227 2008-01-13  Colin Watson  <cjwatson@debian.org>
37228
37229         * modules/strsignal-tests: New file.
37230         * tests/test-strsignal.c: New file.
37231
37232         * lib/strsignal.c: New file, from glibc with modifications.
37233         * lib/siglist.h: New file, from glibc with modifications.
37234         * lib/string.in.h (strsignal): New declaration.
37235         * m4/strsignal.m4: New file.
37236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37237         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
37238         * modules/strsignal: New file.
37239         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
37240         HAVE_DECL_STRSIGNAL.
37241
37242 2008-01-13  Bruno Haible  <bruno@clisp.org>
37243
37244         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
37245         locale encoding is not ASCII. Needed for OpenBSD 4.0.
37246         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37247         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37248
37249 2008-01-13  Bruno Haible  <bruno@clisp.org>
37250
37251         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
37252         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
37253         * lib/argp.h (__attribute__): Likewise.
37254         * lib/c-stack.c (__attribute__): Likewise.
37255         * lib/error.h (__attribute__): Likewise.
37256         * lib/fts.c (__attribute__): Likewise.
37257         * lib/openat.h (__attribute__): Likewise.
37258         * lib/stdio.in.h (__attribute__): Likewise.
37259         * lib/string.in.h (__attribute__): Likewise.
37260         * lib/utimens.c (__attribute__): Likewise.
37261         * lib/vasnprintf.h (__attribute__): Likewise.
37262         * lib/xalloc.h (__attribute__): Likewise.
37263         * lib/xprintf.h (__attribute__): Likewise.
37264         * lib/xstrtol.h (__attribute__): Likewise.
37265         * lib/xvasprintf.h (__attribute__): Likewise.
37266
37267 2008-01-12  Bruno Haible  <bruno@clisp.org>
37268
37269         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
37270         * doc/glibc-headers/a.out.texi: New file.
37271         * doc/glibc-headers/aliases.texi: New file.
37272         * doc/glibc-headers/alloca.texi: New file.
37273         * doc/glibc-headers/ar.texi: New file.
37274         * doc/glibc-headers/argp.texi: New file.
37275         * doc/glibc-headers/argz.texi: New file.
37276         * doc/glibc-headers/byteswap.texi: New file.
37277         * doc/glibc-headers/crypt.texi: New file.
37278         * doc/glibc-headers/endian.texi: New file.
37279         * doc/glibc-headers/envz.texi: New file.
37280         * doc/glibc-headers/err.texi: New file.
37281         * doc/glibc-headers/error.texi: New file.
37282         * doc/glibc-headers/execinfo.texi: New file.
37283         * doc/glibc-headers/fpu_control.texi: New file.
37284         * doc/glibc-headers/fstab.texi: New file.
37285         * doc/glibc-headers/fts.texi: New file.
37286         * doc/glibc-headers/getopt.texi: New file.
37287         * doc/glibc-headers/ieee754.texi: New file.
37288         * doc/glibc-headers/ifaddrs.texi: New file.
37289         * doc/glibc-headers/libintl.texi: New file.
37290         * doc/glibc-headers/mcheck.texi: New file.
37291         * doc/glibc-headers/mntent.texi: New file.
37292         * doc/glibc-headers/obstack.texi: New file.
37293         * doc/glibc-headers/paths.texi: New file.
37294         * doc/glibc-headers/printf.texi: New file.
37295         * doc/glibc-headers/pty.texi: New file.
37296         * doc/glibc-headers/resolv.texi: New file.
37297         * doc/glibc-headers/shadow.texi: New file.
37298         * doc/glibc-headers/sysexits.texi: New file.
37299         * doc/glibc-headers/ttyent.texi: New file.
37300
37301 2008-01-12  Jim Meyering  <meyering@redhat.com>
37302
37303         announce-gen: emit Gnulib's git-based version string.
37304         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37305         New option --gnulib-version=V, where V is expected to be
37306         the output of running git describe in the gnulib directory.
37307         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37308         not useful, and plan to stop publishing an xdelta file with each
37309         coreutils release.
37310
37311         * build-aux/announce-gen: Also check for lzma-compressed files.
37312
37313 2008-01-11  Bruno Haible  <bruno@clisp.org>
37314
37315         * tests/test-memmem.c (main): Increase maximum allowed time.
37316         * tests/test-strstr.c (main): Likewise.
37317
37318 2008-01-11  Bruno Haible  <bruno@clisp.org>
37319
37320         * doc/functions/memmem.texi: Add more precisions about platforms.
37321         * doc/functions/strstr.texi: Likewise.
37322
37323 2008-01-10  Eric Blake  <ebb9@byu.net>
37324
37325         * m4/strstr.m4: Delete cruft from copy-n-paste.
37326         Reported by Bruno Haible.
37327
37328 2008-01-10  Bruno Haible  <bruno@clisp.org>
37329
37330         Make c-strstr rely on strstr.
37331         * lib/c-strstr.c: Don't include str-kmp.h.
37332         (c_strstr): Define in terms of strstr.
37333         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37334         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37335
37336 2008-01-10  Bruno Haible  <bruno@clisp.org>
37337
37338         * doc/gnulib.texi (String Functions in C Locale): New section.
37339         * doc/c-ctype.texi: New file.
37340         * doc/c-strcase.texi: New file.
37341         * doc/c-strcaseeq.texi: New file.
37342         * doc/c-strcasestr.texi: New file.
37343         * doc/c-strstr.texi: New file.
37344         * doc/c-strtod.texi: New file.
37345         * doc/c-strtold.texi: New file.
37346
37347 2008-01-10  Eric Blake  <ebb9@byu.net>
37348
37349         * lib/relocatable.h: Fix a comment.
37350
37351 2008-01-10  Eric Blake  <ebb9@byu.net>
37352
37353         Share two-way algorithm.
37354         * lib/str-two-way.h: New file, merged from...
37355         * lib/memmem.c: ...here...
37356         * lib/strstr.c: ...and here.
37357         * modules/memmem (Files): Use it.
37358         * modules/strstr (Files): Likewise.
37359
37360         Avoid quadratic strstr implementations.
37361         * lib/strstr.c: New file.
37362         * m4/strstr.m4: Likewise.
37363         * modules/strstr: Likewise.
37364         * modules/strstr-tests: Likewise.
37365         * tests/test-strstr.c: Likewise.
37366         * lib/string.in.h (rpl_strstr): Declare.
37367         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37369         * modules/string (Makefile.am): Likewise.
37370         * MODULES.html.sh (string handling): Mention new module.
37371         * doc/functions/strstr.texi (strstr): Document the bug.
37372
37373 2008-01-10  Bruno Haible  <bruno@clisp.org>
37374
37375         * lib/relocatable.h (relocate): State whether result is freshly
37376         allocated or not.
37377         * lib/relocatable.c (relocate): Return a freshly allocated string
37378         instead of a pointer to a privately held string.
37379         Reported by Sylvain Beucler <beuc@gnu.org>.
37380
37381 2008-01-10  Colin Watson  <cjwatson@debian.org>
37382
37383         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37384         s/S_ISNLK/S_ISLNK/.
37385
37386 2008-01-09  Bruno Haible  <bruno@clisp.org>
37387
37388         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37389         and other files.
37390         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37391         if it's only a guess.
37392         * modules/memmem: Simplify by depending on memmem-simple.
37393
37394 2008-01-09  Bruno Haible  <bruno@clisp.org>
37395
37396         Work around OpenBSD 4.0 tdelete() bug.
37397         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37398         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37399         macros and don't redefine the enum values.
37400         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37401         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37402         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37403
37404 2008-01-09  Bruno Haible  <bruno@clisp.org>
37405
37406         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37407         (main): Don't perform the tests if setlocale did not install a UTF-8
37408         locale. Needed on OpenBSD 4.0.
37409         * modules/wcwidth-tests (Depends-on): Add localcharset.
37410
37411 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37412
37413         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37414         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37415         * NEWS: announce this.
37416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37417
37418 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37419         and Eric Blake  <ebb9@byu.net>
37420
37421         Add memmem-simple module.
37422         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37423         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37424         * modules/memmem-simple: New file.
37425         * modules/memmem (Description): Tweak.
37426         * MODULES.html.sh (string handling): Mention new module.
37427         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37428         addressed by memmem-simple.
37429         * NEWS: Document the difference.
37430
37431 2008-01-09  Eric Blake  <ebb9@byu.net>
37432
37433         Give gcc some memmem optimization hints.
37434         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37435         (strcasestr): Declare as pure.
37436         * modules/memmem (Maintainer): Claim my implementation.
37437
37438 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37439
37440         Support AIX 6.1 and higher.
37441         * build-aux/config.libpath: Likewise.
37442         * build-aux/config.rpath: Likewise.
37443
37444 2008-01-08  Jim Meyering  <meyering@redhat.com>
37445             Bruno Haible  <bruno@clisp.org>
37446
37447         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37448         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37449         Reported by Peter Fales in
37450         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37451
37452 2008-01-08  Bruno Haible  <bruno@clisp.org>
37453
37454         * modules/unictype/category-of (Depends-on): Add
37455         unictype/category-none.
37456         * modules/unictype/category-and-tests (Depends-on): Add
37457         unictype/category-{L,N,Lu,Nd}.
37458         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37459         * modules/unictype/category-or-tests (Depends-on): Add
37460         unictype/category-{L,N}.
37461         * modules/unictype/category-name-tests (Depends-on): Add
37462         unictype/category-{Z,Nl}.
37463         Reported by Simon Josefsson.
37464
37465 2008-01-08  Bruno Haible  <bruno@clisp.org>
37466
37467         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37468         convention better.
37469         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37470         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37471         Reported by Peter Miller <millerp@canb.auug.org.au>.
37472
37473 2008-01-08  Eric Blake  <ebb9@byu.net>
37474
37475         Rewrite memmem to guarantee linear complexity without malloc.
37476         * lib/memmem.c (memmem): Use Two-Way rather than
37477         Knuth-Morris-Pratt, to allow O(1) space usage.
37478         (critical_factorization, two_way_short_needle)
37479         (two_way_long_needle): New functions.
37480         (knuth_morris_pratt): Delete.
37481         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37482         Add stdint.
37483         * tests/test-memmem.c (main): Add tests for periodic needle and
37484         sublinear performance.
37485         * doc/functions/memmem.texi (memmem): Document other deficiencies
37486         in cygwin and older glibc.
37487
37488 2008-01-08  Bruno Haible  <bruno@clisp.org>
37489
37490         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37491         augmentation.
37492
37493 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37494
37495         Add a configure time option: --disable-acl.
37496         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37497         AC_ARG_ENABLE(acl).
37498
37499 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37500
37501         * tests/test-localename.c: Don't include obsolete "setenv.h".
37502
37503         * modules/localename-tests (Depends-on): Need unsetenv.
37504
37505 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37506
37507         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37508
37509 2008-01-06  Colin Watson  <cjwatson@debian.org>
37510
37511         * users.txt: Add man-db.
37512
37513 2008-01-07  Bruno Haible  <bruno@clisp.org>
37514
37515         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37516         previous section name.
37517
37518 2008-01-07  Bruno Haible  <bruno@clisp.org>
37519
37520         * lib/progname.c (set_program_name): Don't strip off a leading
37521         "lt-" prefix outside a .libs directory.
37522         Suggested by Paul Eggert.
37523
37524 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37525             Bruno Haible  <bruno@clisp.org>
37526
37527         Improve memory cleanup in 'relocatable' module.
37528         * lib/relocatable.h (compute_curr_prefix): Change return type to
37529         'char *'.
37530         * lib/relocatable.c (compute_curr_prefix): Change return type to
37531         'char *'. Free curr_installdir after use.
37532         (relocate): Free curr_prefix_better after use.
37533         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37534
37535 2008-01-01  Bruno Haible  <bruno@clisp.org>
37536
37537         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37538         failure on older glibc systems.
37539         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37540
37541 2008-01-05  Eric Blake  <ebb9@byu.net>
37542
37543         Avoid quadratic system memmem.
37544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37545         Reported by Ralf Wildenhues.
37546
37547         Fix memmem test for mingw.
37548         * modules/memmem-tests (configure.ac): Check for alarm.
37549         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37550         it.
37551         * doc/functions/memmem.texi: New file.
37552         * doc/gnulib.texi (Function Substitutes): Add memmem.
37553         Reported by Bruno Haible.
37554
37555 2008-01-04  Bruno Haible  <bruno@clisp.org>
37556
37557         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37558         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37559         gl_HEADER_STRING_H_DEFAULTS.
37560
37561 2008-01-04  Eric Blake  <ebb9@byu.net>
37562
37563         Shorten duration of memmem test.
37564         * tests/test-memmem.c (main): Use alarm to declare failure if test
37565         is taking too long.
37566         Reported by Ralf Wildenhues.
37567
37568 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37569
37570         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37571         string, needed by strerror.
37572
37573 2008-01-03  Colin Watson  <cjwatson@debian.org>
37574             Bruno Haible  <bruno@clisp.org>
37575
37576         * doc/gnulib-tool.texi (Localization): New section.
37577
37578 2008-01-02  Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37581         variables to 'unsigned char *' type.
37582         Reported by Paul Eggert.
37583
37584 2008-01-02  Jim Meyering  <jim@meyering.net>
37585
37586         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37587
37588 2007-12-31  Jim Meyering  <jim@meyering.net>
37589
37590         Avoid use of private FTS type name.
37591         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37592
37593 2007-12-30  Karl Berry  <karl@gnu.org>
37594
37595         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37596         work around defect in Texinfo and/or the standalone Info browser.
37597
37598 2007-12-30  Bruno Haible  <bruno@clisp.org>
37599
37600         Unify 5 copies of the KMP code.
37601         * lib/str-kmp.h: New file.
37602         * lib/c-strcasestr.c: Include str-kmp.h.
37603         (knuth_morris_pratt): Remove function.
37604         (c_strcasestr): Update.
37605         * lib/c-strstr.c: Include str-kmp.h.
37606         (knuth_morris_pratt): Remove function.
37607         (c_strcasestr): Update.
37608         * lib/mbscasestr.c: Include str-kmp.h.
37609         (knuth_morris_pratt_unibyte): Remove function.
37610         * lib/mbsstr.c: Include str-kmp.h.
37611         (knuth_morris_pratt_unibyte): Remove function.
37612         * lib/strcasestr.c: Include str-kmp.h.
37613         (knuth_morris_pratt): Remove function.
37614         (strcasestr): Update.
37615         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37616         * modules/c-strstr (Files): Likewise.
37617         * modules/mbscasestr (Files): Likewise.
37618         * modules/mbsstr (Files): Likewise.
37619         * modules/strcasestr (Files): Likewise.
37620         Suggested by Paul Eggert.
37621
37622 2007-12-30  Bruno Haible  <bruno@clisp.org>
37623
37624         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37625         defined.
37626
37627 2007-12-30  Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/xmalloca.h: Include xalloc.h.
37630         (xnmalloca): New macro.
37631
37632 2007-12-30  Bruno Haible  <bruno@clisp.org>
37633
37634         * lib/malloca.h (nmalloca): New macro.
37635         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37636         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37637         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37638         knuth_morris_pratt_multibyte): Likewise.
37639         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37640         knuth_morris_pratt_multibyte): Likewise.
37641         * lib/memmem.c (knuth_morris_pratt): Likewise.
37642         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37643
37644 2007-12-25  Bruno Haible  <bruno@clisp.org>
37645
37646         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37647         * lib/glob.c: Don't include openat.h.
37648         (link_exists2_p): Add back the code that deals with the
37649         !GLOB_ALTDIRFUNC case.
37650         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37651         let it do the filename concatenation.
37652         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37653         * modules/glob (Depends-on): Remove openat.
37654
37655 2007-12-31  Bruno Haible  <bruno@clisp.org>
37656
37657         * modules/dirfd (License): Change to LGPLv2+.
37658         Approved by Jim Meyering.
37659
37660 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37661
37662         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37663         when multiplying M by sizeof (size_t).
37664
37665 2007-12-10  Martin Lambers  <marlam@marlam.de>
37666
37667         Override getpagesize on mingw.
37668         * lib/getpagesize.c: New file.
37669         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37670         * modules/getpagesize (Files): Add lib/getpagesize.c.
37671         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37673         REPLACE_GETPAGESIZE.
37674         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37675
37676 2007-12-25  Bruno Haible  <bruno@clisp.org>
37677
37678         * modules/localcharset (Notice): New field.
37679         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37680         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37681
37682 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37683             Bruno Haible  <bruno@clisp.org>
37684
37685         Avoid using the syntax symbol() in formatted documentation.
37686         * MODULES.html.sh (func_module): When replacing symbol() with a
37687         hyperlink, remove the parentheses. Show an error if some remain.
37688         Recognize and render the '...' syntax.
37689         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37690         Rework. Add paragraph about GCC's inlining.
37691         * doc/alloca.texi: Likewise.
37692         * doc/error.texi: Remove parentheses from symbol reference.
37693         * doc/gnulib-intro.texi: Likewise.
37694         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37695         * modules/fnmatch (Description): Reword to say "the ... function".
37696         * modules/full-read (Description): Likewise.
37697         * modules/full-write (Description): Likewise.
37698         * modules/safe-read (Description): Likewise.
37699         * modules/safe-write (Description): Likewise.
37700         * modules/strchrnul (Description): Likewise.
37701         * modules/trim (Description): Likewise.
37702         * modules/error (Description): Remove parentheses from symbol
37703         references.
37704         * modules/verror (Description): Likewise.
37705         Reported by Karl Berry.
37706
37707 2007-12-25  Bruno Haible  <bruno@clisp.org>
37708
37709         Fixup after 2007-10-16 commit.
37710         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37711
37712 2007-12-24  Bruno Haible  <bruno@clisp.org>
37713
37714         Make --enable-relocatable work with DESTDIR.
37715         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37716         to compute installdir from destprog.
37717         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37718         also set the RELOC_DESTDIR variable.
37719         Reported by Левашев Иван <octagram@bluebottle.com>.
37720
37721 2007-12-24  Bruno Haible  <bruno@clisp.org>
37722
37723         Fix link error due to xalloc_die().
37724         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37725         of xreadlink.
37726         * lib/relocwrapper.c: Update comments.
37727         * build-aux/install-reloc: Remove xreadlink.c from file list.
37728         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37729         xreadlink.c.
37730         Reported by Левашев Иван <octagram@bluebottle.com>.
37731
37732 2007-12-24  Bruno Haible  <bruno@clisp.org>
37733
37734         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37735         * lib/setenv.h: Remove file.
37736         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37737         lib/setenv.h.
37738         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37739         (Depends-on): Add stdlib.
37740         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37741         gl_FUNC_UNSETENV.
37742         (Include): Replace setenv.h with <stdlib.h>.
37743         * modules/unsetenv: New file.
37744         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37745         * lib/unsetenv.c: Include <stdlib.h> first.
37746         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37747         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37748         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37749         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37750         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37751         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37753         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37754         * doc/functions/unsetenv.texi: Update.
37755         * modules/xsetenv (Depends-on): Add unsetenv.
37756         * modules/getdate (Depends-on): Likewise.
37757         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37758         * lib/xsetenv.c: Don't include setenv.h.
37759         * lib/getdate.y: Likewise.
37760         * lib/relocwrapper.c: Likewise.
37761         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37762         (Depends-on): Add stdlib.
37763         * NEWS: Mention the changes.
37764         Reported by Левашев Иван <octagram@bluebottle.com>.
37765
37766 2007-12-23  Bruno Haible  <bruno@clisp.org>
37767
37768         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37769         indentation.
37770
37771 2007-12-23  Bruno Haible  <bruno@clisp.org>
37772
37773         * lib/c-strcasestr.c: Add more comments.
37774         * lib/c-strstr.c: Likewise.
37775         * lib/mbscasestr.c: Likewise.
37776         * lib/mbsstr.c: Likewise.
37777         * lib/strcasestr.c: Likewise.
37778         * lib/memmem.c: Likewise.
37779
37780 2007-12-23  Bruno Haible  <bruno@clisp.org>
37781
37782         * tests/test-memmem.c: Include <string.h> first.
37783
37784 2007-12-22  Bruno Haible  <bruno@clisp.org>
37785
37786         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37787         the contents of $testsbase.
37788         Reported by Ralf Wildenhues.
37789
37790 2007-12-22  Bruno Haible  <bruno@clisp.org>
37791
37792         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37793         two variables local_ldadd_before, local_ldadd_last.
37794
37795 2007-12-20  Eric Blake  <ebb9@byu.net>
37796
37797         Work around circular library issue when cross-compiling.
37798         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37799         that progname.o does not need to pull in rpl_memcmp.
37800
37801 2007-12-19  Eric Blake  <ebb9@byu.net>
37802
37803         Fix memmem to avoid O(n^2) worst-case complexity.
37804         * lib/memmem.c (knuth_morris_pratt): New function.
37805         (memmem): Use it if first few naive iterations fail.
37806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37807         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37808         * modules/memchr (License): Likewise.
37809         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37810         malloca.
37811         * tests/test-memmem.c: Rewrite, borrowing ideas from
37812         test-mbsstr1.c; the old version wouldn't even compile!
37813         * modules/memmem-tests: New file.
37814         * lib/string.in.h (rpl_memmem): Add declaration.
37815         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37817         REPLACE_MEMMEM.
37818
37819 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37820
37821         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37822         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37823         before any system include files, and undef after them all.  This
37824         should fix a problem on VMS reported by John E. Malmberg in
37825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37826
37827 2007-12-17  Eric Blake  <ebb9@byu.net>
37828
37829         Revert addition of verify, for BSD/OS.
37830         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37831         can't handle large files, for the sake of obsolete platforms.
37832         * modules/fseeko (Depends-on): Remove verify.
37833         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37834         * doc/functions/ftello.texi (ftello): Likewise.
37835         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37836         Reported by Larry Jones.
37837
37838 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37839
37840         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37841         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37842
37843 2007-12-17  Jim Meyering  <meyering@redhat.com>
37844
37845         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37846         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37847         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37848         * modules/getcwd (Depends-on): Add openat.
37849         Reported by Petr Salinger.
37850
37851 2007-12-17  Bruno Haible  <bruno@clisp.org>
37852
37853         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37854         avoid a segmentation fault of the configure test on x86_64 systems.
37855
37856 2007-12-15  Jim Meyering  <meyering@redhat.com>
37857
37858         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37859
37860 2007-12-13  Eric Blake  <ebb9@byu.net>
37861
37862         Another fseek test.
37863         * tests/test-fseek.c (main): Also test ungetc handling.
37864         * tests/test-fseeko.c (main): Likewise.
37865         * modules/fseeko (Depends-on): Add verify.
37866         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37867         large.
37868         Reported by Larry Jones.
37869
37870         Fix fseeko on mingw.
37871         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37872         seek.
37873
37874         Beef up fseek tests.
37875         * tests/test-fseek.c (main): Also test eof handling.
37876         * tests/test-fseeko.c (main): Likewise.
37877         Reported by Larry Jones.
37878
37879 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37880
37881         Fix fseeko on BSD-based platforms.
37882         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37883         successful seek.
37884
37885 2007-12-12  Eric Blake  <ebb9@byu.net>
37886
37887         Allow circular dependency of separate libtests.a
37888         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37889         when use_libtests.
37890
37891 2007-12-11  Eric Blake  <ebb9@byu.net>
37892
37893         Fix bug with -0.0L in previous patch.
37894         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37895         * tests/test-isnan.c (main): Also test on zeroes.
37896         * tests/test-isnanf.c (main): Likewise.
37897         * tests/test-isnanl.h (main): Likewise.
37898
37899         Detect pseudo-denormals on x86 even when cross-compiling.
37900         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37901         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37902         invalid bit patterns that happen to satisfy ==.
37903
37904         Avoid link failures with separate libtests.a.
37905         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37906         last, to satisfy circular dependencies.
37907
37908 2007-12-11  Eric Blake  <ebb9@byu.net>
37909         and Bruno Haible  <bruno@clisp.org>
37910
37911         Fix OpenBSD 4.0 <float.h> handling of long double.
37912         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37913         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37914         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37915
37916 2007-12-11  Jim Meyering  <meyering@redhat.com>
37917
37918         * users.txt: Add libvirt.
37919
37920         Support versions of autoconf prior to 2.59c.
37921         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37922         if it is not already defined.
37923
37924 2007-12-09  Bruno Haible  <bruno@clisp.org>
37925
37926         Let 'gnulib-tool --import' collect sources needed for the tests in
37927         tests/ rather than in lib/.
37928         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37929         argument. If true, add rules to generate libtests.a, and put libtests.a
37930         into $(LDADD). Consider source files in subdirectories and set
37931         uses_subdirs.
37932         (func_emit_initmacro_start, func_emit_initmacro_end,
37933         func_emit_initmacro_done): Pass all arguments explicitly.
37934         (func_import): Determine two module lists main_modules,
37935         testsrelated_modules. Determine use_libtests. Determine two variables
37936         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37937         instead of just sed_transform_lib_file. Determine two variables
37938         main_files and testsrelated_files. Compute 'files' as the union of
37939         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37940         func_add_or_update. In the generated gnulib-comp.m4, collect the
37941         object files for tests/ in different variables than those for lib/.
37942         Substitute LIBTESTS_LIBDEPS.
37943         (func_create_testdir): Combine the uses_subdirs results from
37944         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37945
37946 2007-12-09  Bruno Haible  <bruno@clisp.org>
37947
37948         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37949         the build-aux directory.
37950
37951 2007-12-09  Bruno Haible  <bruno@clisp.org>
37952
37953         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37954         introduced on 2006-09-09.
37955
37956 2007-12-07  Jim Meyering  <meyering@redhat.com>
37957
37958         Let these macros work also with autoconf-2.59.
37959         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37960         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37961         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37962
37963 2007-12-06  Jim Meyering  <meyering@redhat.com>
37964
37965         Avoid a configure-time syntax error in gl_FUNC_ACL.
37966         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37967         function in each branch, before testing the cache variable.
37968
37969 2007-12-04  Eric Blake  <ebb9@byu.net>
37970
37971         Make scripts executable.
37972         * build-aux/config.guess: Add execute permissions.
37973         * build-aux/config.sub: Likewise.
37974         * build-aux/gendocs.sh: Likewise.
37975
37976         Fix frexp on mingw.
37977         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37978         cross-compiling.
37979         * doc/functions/frexp.texi (frexp): Document the bug.
37980
37981         Make cygwin fseeko check more reliable.
37982         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37983         version numbers, rather than unrelated feature check.
37984         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37985         * doc/functions/ftello.texi (ftello): Likewise.
37986         Reported by Bruno Haible.
37987
37988         * m4/strerror.m4: Bump version number.
37989
37990 2007-12-03  Bruno Haible  <bruno@clisp.org>
37991
37992         * doc/functions/mprotect.texi: Mention the mingw problem.
37993
37994 2007-12-03  Eric Blake  <ebb9@byu.net>
37995
37996         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37997         REPLACE_STRERROR is initialized before this macro.
37998
37999 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38000
38001         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
38002         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
38003         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
38004         put -lsec in even for programs other than 'ls'.  This fixes a problem
38005         for gettext reported by Bruno Haible in
38006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
38007         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
38008         Add support for Solaris 10.  This isn't efficient, but should get the
38009         job done for now.
38010
38011 2007-12-03  James Youngman  <jay@gnu.org>
38012
38013         * doc/regexprops-generic.texi: change "an close-group" to "a
38014         close-group" and "illegal" to "not allowed".
38015
38016 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38017
38018         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
38019         pr_byname.h. Needed for the rare case when the maintainer has done
38020         "make maintainer-clean" in the source directory and then attempts a
38021         build outside the source directory.
38022         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
38023         scripts_byname.h.
38024
38025 2007-12-02  Martin Lambers <marlam@marlam.de>
38026             Bruno Haible  <bruno@clisp.org>
38027
38028         * lib/getpagesize.h: Remove file.
38029         * lib/unistd.in.h: Include declaration of getpagesize here.
38030         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
38031         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
38032         HAVE_SYS_PARAM_H.
38033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
38034         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38035         * modules/getpagesize (Files): Remove lib/getpagesize.h.
38036         (Depends-on): Add unistd.
38037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38038         (Include): Use <unistd.h> instead of getpagesize.h.
38039         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
38040         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
38041         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
38042         gl_GETPAGESIZE invocation, already handled by module dependency.
38043         * lib/pagealign_alloc.c: Don't include getpagesize.h.
38044
38045 2007-12-02  Bruno Haible  <bruno@clisp.org>
38046
38047         * modules/strings-tests: New file.
38048         * tests/test-strings.c: New file.
38049
38050         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
38051         * lib/strings.in.h: New file.
38052         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
38053         * m4/strings_h.m4: New file.
38054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
38055         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
38056         * modules/strings: New file.
38057         * modules/string (Makefile.am): Update.
38058         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
38059         Reported by Karl Berry.
38060
38061 2007-12-01  Eric Blake  <ebb9@byu.net>
38062
38063         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
38064         accomodate fix in cygwin 1.5.25.
38065
38066 2007-12-01  Jim Meyering  <meyering@redhat.com>
38067
38068         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
38069         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
38070         that would inhibit utf8-optimization of a regexp containing line-
38071         or buffer-anchors, e.g., `^', `$'.
38072
38073 2007-11-30  Bruno Haible  <bruno@clisp.org>
38074
38075         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
38076         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
38077         glthread_recursive_lock_init.
38078         * lib/lock.c (glthread_recursive_lock_init)
38079         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
38080         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38081
38082 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
38083
38084         New function qset_acl, like set_acl but with syscall semantics.
38085         * lib/acl.h (qset_acl): New decl.
38086         * lib/acl.c (qset_acl): New function.
38087         (set_acl): Use new function.  Use more-consistent diagnostics.
38088
38089 2007-11-28  Jim Meyering  <meyering@redhat.com>
38090
38091         * modules/physmem (License): Change from GPL to LGPLv2+.
38092
38093 2007-11-26  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/vasnprintf.c (decode_long_double): Don't abort if the
38096         'long double' type has excess precision.
38097         Reported by Jim Meyering in
38098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
38099
38100 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38101
38102         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
38103         Sync from <http://gnu.org/licenses>.
38104         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
38105         with license text from same location.
38106         * doc/maintain.texi, doc/standards.texi:  Sync from
38107         <http://savannah.gnu.org/projects/gnustandards>.
38108
38109 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
38110         and Jim Meyering  <meyering@redhat.com>
38111
38112         Adjust getdate' grammar to accept a slightly more regular language.
38113         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
38114         Before, the former was rejected.
38115         * lib/getdate.y (digits_to_date_time): New function, factored
38116         out of ...
38117         (number): ...here.  Just call digits_to_date_time.
38118         (hybrid): New non-terminal to handle an <unsigned number,
38119         signed relative offset> sequence consistently.
38120
38121 2007-11-18  Jim Meyering  <meyering@redhat.com>
38122
38123         Pull my changes from coreutils:
38124         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
38125         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
38126         use of $gnulib_tool_option_extras, so that it's separated from the
38127         preceding argument.
38128
38129         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
38130         * build-aux/bootstrap (cp_mark_as_generated): Create any required
38131         parent destination directories before copying a file into place.
38132
38133 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38134
38135         bootstrap: work also with 4-argument variant of AC_INIT
38136         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
38137
38138 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38139
38140         Port test-getaddrinfo to Solaris.
38141         Problem reported by Bruno Haible in
38142         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
38143         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
38144         explanation of setting 'hints'.
38145         Don't reject an implementation merely because it returns EAI_SERVICE.
38146         (EAI_SERVICE): Define to 0 if not defined.
38147
38148 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
38149
38150         The license of gnu-make and posix-shell is now "GPLed build tool".
38151         * modules/gnu-make (License): Likewise.
38152         * modules/posix-shell (License): Likewise.
38153
38154         New module posix-shell, for determining a POSIX shell
38155         or perhaps something that is close enough to a POSIX shell.
38156         * m4/posix-shell.m4: New file.
38157         * modules/posix-shell: New file.
38158
38159         * MODULES.html.sh: Mention new module.
38160
38161         New module gnu-make, for determining whether we're using GNU Make.
38162         * m4/gnu-make.m4: New file.
38163         * modules/gnu-make: New file.
38164         * MODULES.html.sh: Mention new module.
38165
38166 2007-11-14  Jim Meyering  <meyering@redhat.com>
38167
38168         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
38169         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
38170         use this macro to create a function _definition_.
38171         Remove useless "#undef ARGMATCH_DIE".
38172
38173 2007-11-14  Bruno Haible  <bruno@clisp.org>
38174
38175         * lib/config.charset: Update for OpenBSD 4.1.
38176         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
38177
38178 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
38179
38180         Document 64-bit #if problems in stdint.texi.
38181         * doc/headers/stdint.texi (stdint.h): Mention problems with
38182         64-bit-#if, and how to work around them.
38183
38184         Don't insist on 'long long int' support in the preprocessor.  It
38185         breaks too many things.  For example, PRIdMAX still uses a 'long
38186         long int' format with the latest Sun compiler, even though
38187         HAVE_LONG_LONG_INT isn't defined due to that compiler's
38188         preprocessor problem.  This causes the latest coreutils to dump
38189         core on Solaris 10 sparc with the Sun C compiler.
38190         Instead, fix the 2007-10-16 problem in a different way, by evaluating
38191         the troublesome expressions at configure-time, not at #if-time.
38192         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
38193         preprocessor.
38194         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
38195         compile-time C checks, done at 'configure'-time.
38196         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
38197         * modules/inttypes (Makefile): Substitute the new symbols that
38198         gl_INTTYPES_H now generates.
38199         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
38200
38201 2007-11-12  Bruno Haible  <bruno@clisp.org>
38202
38203         Tests for Unicode character classification functions.
38204
38205         * modules/unictype/bidicategory-byname-tests: New file.
38206         * modules/unictype/bidicategory-name-tests: New file.
38207         * modules/unictype/bidicategory-of-tests: New file.
38208         * modules/unictype/bidicategory-test-tests: New file.
38209         * modules/unictype/block-list-tests: New file.
38210         * modules/unictype/block-of-tests: New file.
38211         * modules/unictype/block-test-tests: New file.
38212         * modules/unictype/category-C-tests: New file.
38213         * modules/unictype/category-Cc-tests: New file.
38214         * modules/unictype/category-Cf-tests: New file.
38215         * modules/unictype/category-Cn-tests: New file.
38216         * modules/unictype/category-Co-tests: New file.
38217         * modules/unictype/category-Cs-tests: New file.
38218         * modules/unictype/category-L-tests: New file.
38219         * modules/unictype/category-Ll-tests: New file.
38220         * modules/unictype/category-Lm-tests: New file.
38221         * modules/unictype/category-Lo-tests: New file.
38222         * modules/unictype/category-Lt-tests: New file.
38223         * modules/unictype/category-Lu-tests: New file.
38224         * modules/unictype/category-M-tests: New file.
38225         * modules/unictype/category-Mc-tests: New file.
38226         * modules/unictype/category-Me-tests: New file.
38227         * modules/unictype/category-Mn-tests: New file.
38228         * modules/unictype/category-N-tests: New file.
38229         * modules/unictype/category-Nd-tests: New file.
38230         * modules/unictype/category-Nl-tests: New file.
38231         * modules/unictype/category-No-tests: New file.
38232         * modules/unictype/category-P-tests: New file.
38233         * modules/unictype/category-Pc-tests: New file.
38234         * modules/unictype/category-Pd-tests: New file.
38235         * modules/unictype/category-Pe-tests: New file.
38236         * modules/unictype/category-Pf-tests: New file.
38237         * modules/unictype/category-Pi-tests: New file.
38238         * modules/unictype/category-Po-tests: New file.
38239         * modules/unictype/category-Ps-tests: New file.
38240         * modules/unictype/category-S-tests: New file.
38241         * modules/unictype/category-Sc-tests: New file.
38242         * modules/unictype/category-Sk-tests: New file.
38243         * modules/unictype/category-Sm-tests: New file.
38244         * modules/unictype/category-So-tests: New file.
38245         * modules/unictype/category-Z-tests: New file.
38246         * modules/unictype/category-Zl-tests: New file.
38247         * modules/unictype/category-Zp-tests: New file.
38248         * modules/unictype/category-Zs-tests: New file.
38249         * modules/unictype/category-and-not-tests: New file.
38250         * modules/unictype/category-and-tests: New file.
38251         * modules/unictype/category-byname-tests: New file.
38252         * modules/unictype/category-name-tests: New file.
38253         * modules/unictype/category-none-tests: New file.
38254         * modules/unictype/category-of-tests: New file.
38255         * modules/unictype/category-or-tests: New file.
38256         * modules/unictype/category-test-withtable-tests: New file.
38257         * modules/unictype/combining-class-tests: New file.
38258         * modules/unictype/ctype-alnum-tests: New file.
38259         * modules/unictype/ctype-alpha-tests: New file.
38260         * modules/unictype/ctype-blank-tests: New file.
38261         * modules/unictype/ctype-cntrl-tests: New file.
38262         * modules/unictype/ctype-digit-tests: New file.
38263         * modules/unictype/ctype-graph-tests: New file.
38264         * modules/unictype/ctype-lower-tests: New file.
38265         * modules/unictype/ctype-print-tests: New file.
38266         * modules/unictype/ctype-punct-tests: New file.
38267         * modules/unictype/ctype-space-tests: New file.
38268         * modules/unictype/ctype-upper-tests: New file.
38269         * modules/unictype/ctype-xdigit-tests: New file.
38270         * modules/unictype/decimal-digit-tests: New file.
38271         * modules/unictype/digit-tests: New file.
38272         * modules/unictype/mirror-tests: New file.
38273         * modules/unictype/numeric-tests: New file.
38274         * modules/unictype/property-alphabetic-tests: New file.
38275         * modules/unictype/property-ascii-hex-digit-tests: New file.
38276         * modules/unictype/property-bidi-arabic-digit-tests: New file.
38277         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
38278         * modules/unictype/property-bidi-block-separator-tests: New file.
38279         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
38280         * modules/unictype/property-bidi-common-separator-tests: New file.
38281         * modules/unictype/property-bidi-control-tests: New file.
38282         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38283         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38284         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38285         * modules/unictype/property-bidi-european-digit-tests: New file.
38286         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38287         * modules/unictype/property-bidi-left-to-right-tests: New file.
38288         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38289         * modules/unictype/property-bidi-other-neutral-tests: New file.
38290         * modules/unictype/property-bidi-pdf-tests: New file.
38291         * modules/unictype/property-bidi-segment-separator-tests: New file.
38292         * modules/unictype/property-bidi-whitespace-tests: New file.
38293         * modules/unictype/property-byname-tests: New file.
38294         * modules/unictype/property-combining-tests: New file.
38295         * modules/unictype/property-composite-tests: New file.
38296         * modules/unictype/property-currency-symbol-tests: New file.
38297         * modules/unictype/property-dash-tests: New file.
38298         * modules/unictype/property-decimal-digit-tests: New file.
38299         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38300         * modules/unictype/property-deprecated-tests: New file.
38301         * modules/unictype/property-diacritic-tests: New file.
38302         * modules/unictype/property-extender-tests: New file.
38303         * modules/unictype/property-format-control-tests: New file.
38304         * modules/unictype/property-grapheme-base-tests: New file.
38305         * modules/unictype/property-grapheme-extend-tests: New file.
38306         * modules/unictype/property-grapheme-link-tests: New file.
38307         * modules/unictype/property-hex-digit-tests: New file.
38308         * modules/unictype/property-hyphen-tests: New file.
38309         * modules/unictype/property-id-continue-tests: New file.
38310         * modules/unictype/property-id-start-tests: New file.
38311         * modules/unictype/property-ideographic-tests: New file.
38312         * modules/unictype/property-ids-binary-operator-tests: New file.
38313         * modules/unictype/property-ids-trinary-operator-tests: New file.
38314         * modules/unictype/property-ignorable-control-tests: New file.
38315         * modules/unictype/property-iso-control-tests: New file.
38316         * modules/unictype/property-join-control-tests: New file.
38317         * modules/unictype/property-left-of-pair-tests: New file.
38318         * modules/unictype/property-line-separator-tests: New file.
38319         * modules/unictype/property-logical-order-exception-tests: New file.
38320         * modules/unictype/property-lowercase-tests: New file.
38321         * modules/unictype/property-math-tests: New file.
38322         * modules/unictype/property-non-break-tests: New file.
38323         * modules/unictype/property-not-a-character-tests: New file.
38324         * modules/unictype/property-numeric-tests: New file.
38325         * modules/unictype/property-other-alphabetic-tests: New file.
38326         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38327         * modules/unictype/property-other-grapheme-extend-tests: New file.
38328         * modules/unictype/property-other-id-continue-tests: New file.
38329         * modules/unictype/property-other-id-start-tests: New file.
38330         * modules/unictype/property-other-lowercase-tests: New file.
38331         * modules/unictype/property-other-math-tests: New file.
38332         * modules/unictype/property-other-uppercase-tests: New file.
38333         * modules/unictype/property-paired-punctuation-tests: New file.
38334         * modules/unictype/property-paragraph-separator-tests: New file.
38335         * modules/unictype/property-pattern-syntax-tests: New file.
38336         * modules/unictype/property-pattern-white-space-tests: New file.
38337         * modules/unictype/property-private-use-tests: New file.
38338         * modules/unictype/property-punctuation-tests: New file.
38339         * modules/unictype/property-quotation-mark-tests: New file.
38340         * modules/unictype/property-radical-tests: New file.
38341         * modules/unictype/property-sentence-terminal-tests: New file.
38342         * modules/unictype/property-soft-dotted-tests: New file.
38343         * modules/unictype/property-space-tests: New file.
38344         * modules/unictype/property-terminal-punctuation-tests: New file.
38345         * modules/unictype/property-test-tests: New file.
38346         * modules/unictype/property-titlecase-tests: New file.
38347         * modules/unictype/property-unassigned-code-value-tests: New file.
38348         * modules/unictype/property-unified-ideograph-tests: New file.
38349         * modules/unictype/property-uppercase-tests: New file.
38350         * modules/unictype/property-variation-selector-tests: New file.
38351         * modules/unictype/property-white-space-tests: New file.
38352         * modules/unictype/property-xid-continue-tests: New file.
38353         * modules/unictype/property-xid-start-tests: New file.
38354         * modules/unictype/property-zero-width-tests: New file.
38355         * modules/unictype/scripts-tests: New file.
38356         * modules/unictype/syntax-c-ident-tests: New file.
38357         * modules/unictype/syntax-c-whitespace-tests: New file.
38358         * modules/unictype/syntax-java-ident-tests: New file.
38359         * modules/unictype/syntax-java-whitespace-tests: New file.
38360         * tests/unictype/test-bidi_byname.c: New file.
38361         * tests/unictype/test-bidi_name.c: New file.
38362         * tests/unictype/test-bidi_of.c: New file.
38363         * tests/unictype/test-bidi_test.c: New file.
38364         * tests/unictype/test-block_list.c: New file.
38365         * tests/unictype/test-block_of.c: New file.
38366         * tests/unictype/test-block_test.c: New file.
38367         * tests/unictype/test-categ_and.c: New file.
38368         * tests/unictype/test-categ_and_not.c: New file.
38369         * tests/unictype/test-categ_byname.c: New file.
38370         * tests/unictype/test-categ_name.c: New file.
38371         * tests/unictype/test-categ_none.c: New file.
38372         * tests/unictype/test-categ_of.c: New file.
38373         * tests/unictype/test-categ_or.c: New file.
38374         * tests/unictype/test-categ_test_withtable.c: New file.
38375         * tests/unictype/test-combining.c: New file.
38376         * tests/unictype/test-decdigit.c: New file.
38377         * tests/unictype/test-digit.c: New file.
38378         * tests/unictype/test-mirror.c: New file.
38379         * tests/unictype/test-numeric.c: New file.
38380         * tests/unictype/test-pr_byname.c: New file.
38381         * tests/unictype/test-pr_test.c: New file.
38382         * tests/unictype/test-predicate-part1.h: New file.
38383         * tests/unictype/test-predicate-part2.h: New file.
38384         * tests/unictype/test-scripts.c: New file.
38385         * tests/unictype/test-sy_c_ident.c: New file.
38386         * tests/unictype/test-sy_java_ident.c: New file.
38387
38388         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38389         for Unicode 5.0.0.
38390         * tests/unictype/test-categ_Cc.c: Likewise.
38391         * tests/unictype/test-categ_Cf.c: Likewise.
38392         * tests/unictype/test-categ_Cn.c: Likewise.
38393         * tests/unictype/test-categ_Co.c: Likewise.
38394         * tests/unictype/test-categ_Cs.c: Likewise.
38395         * tests/unictype/test-categ_L.c: Likewise.
38396         * tests/unictype/test-categ_Ll.c: Likewise.
38397         * tests/unictype/test-categ_Lm.c: Likewise.
38398         * tests/unictype/test-categ_Lo.c: Likewise.
38399         * tests/unictype/test-categ_Lt.c: Likewise.
38400         * tests/unictype/test-categ_Lu.c: Likewise.
38401         * tests/unictype/test-categ_M.c: Likewise.
38402         * tests/unictype/test-categ_Mc.c: Likewise.
38403         * tests/unictype/test-categ_Me.c: Likewise.
38404         * tests/unictype/test-categ_Mn.c: Likewise.
38405         * tests/unictype/test-categ_N.c: Likewise.
38406         * tests/unictype/test-categ_Nd.c: Likewise.
38407         * tests/unictype/test-categ_Nl.c: Likewise.
38408         * tests/unictype/test-categ_No.c: Likewise.
38409         * tests/unictype/test-categ_P.c: Likewise.
38410         * tests/unictype/test-categ_Pc.c: Likewise.
38411         * tests/unictype/test-categ_Pd.c: Likewise.
38412         * tests/unictype/test-categ_Pe.c: Likewise.
38413         * tests/unictype/test-categ_Pf.c: Likewise.
38414         * tests/unictype/test-categ_Pi.c: Likewise.
38415         * tests/unictype/test-categ_Po.c: Likewise.
38416         * tests/unictype/test-categ_Ps.c: Likewise.
38417         * tests/unictype/test-categ_S.c: Likewise.
38418         * tests/unictype/test-categ_Sc.c: Likewise.
38419         * tests/unictype/test-categ_Sk.c: Likewise.
38420         * tests/unictype/test-categ_Sm.c: Likewise.
38421         * tests/unictype/test-categ_So.c: Likewise.
38422         * tests/unictype/test-categ_Z.c: Likewise.
38423         * tests/unictype/test-categ_Zl.c: Likewise.
38424         * tests/unictype/test-categ_Zp.c: Likewise.
38425         * tests/unictype/test-categ_Zs.c: Likewise.
38426         * tests/unictype/test-ctype_alnum.c: Likewise.
38427         * tests/unictype/test-ctype_alpha.c: Likewise.
38428         * tests/unictype/test-ctype_blank.c: Likewise.
38429         * tests/unictype/test-ctype_cntrl.c: Likewise.
38430         * tests/unictype/test-ctype_digit.c: Likewise.
38431         * tests/unictype/test-ctype_graph.c: Likewise.
38432         * tests/unictype/test-ctype_lower.c: Likewise.
38433         * tests/unictype/test-ctype_print.c: Likewise.
38434         * tests/unictype/test-ctype_punct.c: Likewise.
38435         * tests/unictype/test-ctype_space.c: Likewise.
38436         * tests/unictype/test-ctype_upper.c: Likewise.
38437         * tests/unictype/test-ctype_xdigit.c: Likewise.
38438         * tests/unictype/test-decdigit.h: Likewise.
38439         * tests/unictype/test-digit.h: Likewise.
38440         * tests/unictype/test-numeric.h: Likewise.
38441         * tests/unictype/test-pr_alphabetic.c: Likewise.
38442         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38443         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38444         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38445         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38446         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38447         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38448         * tests/unictype/test-pr_bidi_control.c: Likewise.
38449         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38450         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38451         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38452         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38453         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38454         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38455         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38456         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38457         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38458         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38459         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38460         * tests/unictype/test-pr_combining.c: Likewise.
38461         * tests/unictype/test-pr_composite.c: Likewise.
38462         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38463         * tests/unictype/test-pr_dash.c: Likewise.
38464         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38465         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38466         * tests/unictype/test-pr_deprecated.c: Likewise.
38467         * tests/unictype/test-pr_diacritic.c: Likewise.
38468         * tests/unictype/test-pr_extender.c: Likewise.
38469         * tests/unictype/test-pr_format_control.c: Likewise.
38470         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38471         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38472         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38473         * tests/unictype/test-pr_hex_digit.c: Likewise.
38474         * tests/unictype/test-pr_hyphen.c: Likewise.
38475         * tests/unictype/test-pr_id_continue.c: Likewise.
38476         * tests/unictype/test-pr_id_start.c: Likewise.
38477         * tests/unictype/test-pr_ideographic.c: Likewise.
38478         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38479         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38480         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38481         * tests/unictype/test-pr_iso_control.c: Likewise.
38482         * tests/unictype/test-pr_join_control.c: Likewise.
38483         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38484         * tests/unictype/test-pr_line_separator.c: Likewise.
38485         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38486         * tests/unictype/test-pr_lowercase.c: Likewise.
38487         * tests/unictype/test-pr_math.c: Likewise.
38488         * tests/unictype/test-pr_non_break.c: Likewise.
38489         * tests/unictype/test-pr_not_a_character.c: Likewise.
38490         * tests/unictype/test-pr_numeric.c: Likewise.
38491         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38492         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38493         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38494         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38495         * tests/unictype/test-pr_other_id_start.c: Likewise.
38496         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38497         * tests/unictype/test-pr_other_math.c: Likewise.
38498         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38499         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38500         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38501         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38502         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38503         * tests/unictype/test-pr_private_use.c: Likewise.
38504         * tests/unictype/test-pr_punctuation.c: Likewise.
38505         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38506         * tests/unictype/test-pr_radical.c: Likewise.
38507         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38508         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38509         * tests/unictype/test-pr_space.c: Likewise.
38510         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38511         * tests/unictype/test-pr_titlecase.c: Likewise.
38512         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38513         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38514         * tests/unictype/test-pr_uppercase.c: Likewise.
38515         * tests/unictype/test-pr_variation_selector.c: Likewise.
38516         * tests/unictype/test-pr_white_space.c: Likewise.
38517         * tests/unictype/test-pr_xid_continue.c: Likewise.
38518         * tests/unictype/test-pr_xid_start.c: Likewise.
38519         * tests/unictype/test-pr_zero_width.c: Likewise.
38520         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38521         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38522
38523 2007-11-12  Bruno Haible  <bruno@clisp.org>
38524
38525         Unicode character classification functions.
38526         * lib/unictype.h: New file.
38527         * modules/unictype/base: New file.
38528         * modules/unictype/category-L: New file.
38529         * modules/unictype/category-Lu: New file.
38530         * modules/unictype/category-Ll: New file.
38531         * modules/unictype/category-Lt: New file.
38532         * modules/unictype/category-Lm: New file.
38533         * modules/unictype/category-Lo: New file.
38534         * modules/unictype/category-M: New file.
38535         * modules/unictype/category-Mn: New file.
38536         * modules/unictype/category-Mc: New file.
38537         * modules/unictype/category-Me: New file.
38538         * modules/unictype/category-N: New file.
38539         * modules/unictype/category-Nd: New file.
38540         * modules/unictype/category-Nl: New file.
38541         * modules/unictype/category-No: New file.
38542         * modules/unictype/category-P: New file.
38543         * modules/unictype/category-Pc: New file.
38544         * modules/unictype/category-Pd: New file.
38545         * modules/unictype/category-Ps: New file.
38546         * modules/unictype/category-Pe: New file.
38547         * modules/unictype/category-Pi: New file.
38548         * modules/unictype/category-Pf: New file.
38549         * modules/unictype/category-Po: New file.
38550         * modules/unictype/category-S: New file.
38551         * modules/unictype/category-Sm: New file.
38552         * modules/unictype/category-Sc: New file.
38553         * modules/unictype/category-Sk: New file.
38554         * modules/unictype/category-So: New file.
38555         * modules/unictype/category-Z: New file.
38556         * modules/unictype/category-Zs: New file.
38557         * modules/unictype/category-Zl: New file.
38558         * modules/unictype/category-Zp: New file.
38559         * modules/unictype/category-C: New file.
38560         * modules/unictype/category-Cc: New file.
38561         * modules/unictype/category-Cf: New file.
38562         * modules/unictype/category-Cs: New file.
38563         * modules/unictype/category-Co: New file.
38564         * modules/unictype/category-Cn: New file.
38565         * modules/unictype/category-or: New file.
38566         * modules/unictype/category-of: New file.
38567         * modules/unictype/category-test: New file.
38568         * modules/unictype/category-test-withtable: New file.
38569         * modules/unictype/category-byname: New file.
38570         * modules/unictype/category-none: New file.
38571         * modules/unictype/category-and: New file.
38572         * modules/unictype/category-and-not: New file.
38573         * modules/unictype/category-name: New file.
38574         * modules/unictype/combining-class: New file.
38575         * modules/unictype/category-all: New file.
38576         * modules/unictype/bidicategory-all: New file.
38577         * modules/unictype/bidicategory-byname: New file.
38578         * modules/unictype/bidicategory-name: New file.
38579         * modules/unictype/bidicategory-of: New file.
38580         * modules/unictype/bidicategory-test: New file.
38581         * modules/unictype/decimal-digit: New file.
38582         * modules/unictype/digit: New file.
38583         * modules/unictype/numeric: New file.
38584         * modules/unictype/mirror: New file.
38585         * modules/unictype/property-white-space: New file.
38586         * modules/unictype/property-alphabetic: New file.
38587         * modules/unictype/property-other-alphabetic: New file.
38588         * modules/unictype/property-not-a-character: New file.
38589         * modules/unictype/property-default-ignorable-code-point: New file.
38590         * modules/unictype/property-other-default-ignorable-code-point: New
38591         file.
38592         * modules/unictype/property-deprecated: New file.
38593         * modules/unictype/property-logical-order-exception: New file.
38594         * modules/unictype/property-variation-selector: New file.
38595         * modules/unictype/property-private-use: New file.
38596         * modules/unictype/property-unassigned-code-value: New file.
38597         * modules/unictype/property-uppercase: New file.
38598         * modules/unictype/property-other-uppercase: New file.
38599         * modules/unictype/property-lowercase: New file.
38600         * modules/unictype/property-other-lowercase: New file.
38601         * modules/unictype/property-titlecase: New file.
38602         * modules/unictype/property-soft-dotted: New file.
38603         * modules/unictype/property-id-start: New file.
38604         * modules/unictype/property-other-id-start: New file.
38605         * modules/unictype/property-id-continue: New file.
38606         * modules/unictype/property-other-id-continue: New file.
38607         * modules/unictype/property-xid-start: New file.
38608         * modules/unictype/property-xid-continue: New file.
38609         * modules/unictype/property-pattern-white-space: New file.
38610         * modules/unictype/property-pattern-syntax: New file.
38611         * modules/unictype/property-join-control: New file.
38612         * modules/unictype/property-grapheme-base: New file.
38613         * modules/unictype/property-grapheme-extend: New file.
38614         * modules/unictype/property-other-grapheme-extend: New file.
38615         * modules/unictype/property-grapheme-link: New file.
38616         * modules/unictype/property-bidi-control: New file.
38617         * modules/unictype/property-bidi-left-to-right: New file.
38618         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38619         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38620         * modules/unictype/property-bidi-european-digit: New file.
38621         * modules/unictype/property-bidi-eur-num-separator: New file.
38622         * modules/unictype/property-bidi-eur-num-terminator: New file.
38623         * modules/unictype/property-bidi-arabic-digit: New file.
38624         * modules/unictype/property-bidi-common-separator: New file.
38625         * modules/unictype/property-bidi-block-separator: New file.
38626         * modules/unictype/property-bidi-segment-separator: New file.
38627         * modules/unictype/property-bidi-whitespace: New file.
38628         * modules/unictype/property-bidi-non-spacing-mark: New file.
38629         * modules/unictype/property-bidi-boundary-neutral: New file.
38630         * modules/unictype/property-bidi-pdf: New file.
38631         * modules/unictype/property-bidi-embedding-or-override: New file.
38632         * modules/unictype/property-bidi-other-neutral: New file.
38633         * modules/unictype/property-hex-digit: New file.
38634         * modules/unictype/property-ascii-hex-digit: New file.
38635         * modules/unictype/property-ideographic: New file.
38636         * modules/unictype/property-unified-ideograph: New file.
38637         * modules/unictype/property-radical: New file.
38638         * modules/unictype/property-ids-binary-operator: New file.
38639         * modules/unictype/property-ids-trinary-operator: New file.
38640         * modules/unictype/property-zero-width: New file.
38641         * modules/unictype/property-space: New file.
38642         * modules/unictype/property-non-break: New file.
38643         * modules/unictype/property-iso-control: New file.
38644         * modules/unictype/property-format-control: New file.
38645         * modules/unictype/property-dash: New file.
38646         * modules/unictype/property-hyphen: New file.
38647         * modules/unictype/property-punctuation: New file.
38648         * modules/unictype/property-line-separator: New file.
38649         * modules/unictype/property-paragraph-separator: New file.
38650         * modules/unictype/property-quotation-mark: New file.
38651         * modules/unictype/property-sentence-terminal: New file.
38652         * modules/unictype/property-terminal-punctuation: New file.
38653         * modules/unictype/property-currency-symbol: New file.
38654         * modules/unictype/property-math: New file.
38655         * modules/unictype/property-other-math: New file.
38656         * modules/unictype/property-paired-punctuation: New file.
38657         * modules/unictype/property-left-of-pair: New file.
38658         * modules/unictype/property-combining: New file.
38659         * modules/unictype/property-composite: New file.
38660         * modules/unictype/property-decimal-digit: New file.
38661         * modules/unictype/property-numeric: New file.
38662         * modules/unictype/property-diacritic: New file.
38663         * modules/unictype/property-extender: New file.
38664         * modules/unictype/property-ignorable-control: New file.
38665         * modules/unictype/property-test: New file.
38666         * modules/unictype/property-byname: New file.
38667         * modules/unictype/property-all: New file.
38668         * modules/unictype/scripts: New file.
38669         * modules/unictype/scripts-all: New file.
38670         * modules/unictype/block-of: New file.
38671         * modules/unictype/block-test: New file.
38672         * modules/unictype/block-list: New file.
38673         * modules/unictype/block-all: New file.
38674         * modules/unictype/syntax-c-whitespace: New file.
38675         * modules/unictype/syntax-java-whitespace: New file.
38676         * modules/unictype/syntax-c-ident: New file.
38677         * modules/unictype/syntax-java-ident: New file.
38678         * modules/unictype/ctype-alnum: New file.
38679         * modules/unictype/ctype-alpha: New file.
38680         * modules/unictype/ctype-cntrl: New file.
38681         * modules/unictype/ctype-digit: New file.
38682         * modules/unictype/ctype-graph: New file.
38683         * modules/unictype/ctype-lower: New file.
38684         * modules/unictype/ctype-print: New file.
38685         * modules/unictype/ctype-punct: New file.
38686         * modules/unictype/ctype-space: New file.
38687         * modules/unictype/ctype-upper: New file.
38688         * modules/unictype/ctype-xdigit: New file.
38689         * modules/unictype/ctype-blank: New file.
38690         * lib/unictype/bidi_byname.c: New file.
38691         * lib/unictype/bidi_name.c: New file.
38692         * lib/unictype/bidi_of.c: New file.
38693         * lib/unictype/bidi_test.c: New file.
38694         * lib/unictype/bitmap.h: New file.
38695         * lib/unictype/block_test.c: New file.
38696         * lib/unictype/blocks.c: New file.
38697         * lib/unictype/categ_C.c: New file.
38698         * lib/unictype/categ_Cc.c: New file.
38699         * lib/unictype/categ_Cf.c: New file.
38700         * lib/unictype/categ_Cn.c: New file.
38701         * lib/unictype/categ_Co.c: New file.
38702         * lib/unictype/categ_Cs.c: New file.
38703         * lib/unictype/categ_L.c: New file.
38704         * lib/unictype/categ_Ll.c: New file.
38705         * lib/unictype/categ_Lm.c: New file.
38706         * lib/unictype/categ_Lo.c: New file.
38707         * lib/unictype/categ_Lt.c: New file.
38708         * lib/unictype/categ_Lu.c: New file.
38709         * lib/unictype/categ_M.c: New file.
38710         * lib/unictype/categ_Mc.c: New file.
38711         * lib/unictype/categ_Me.c: New file.
38712         * lib/unictype/categ_Mn.c: New file.
38713         * lib/unictype/categ_N.c: New file.
38714         * lib/unictype/categ_Nd.c: New file.
38715         * lib/unictype/categ_Nl.c: New file.
38716         * lib/unictype/categ_No.c: New file.
38717         * lib/unictype/categ_P.c: New file.
38718         * lib/unictype/categ_Pc.c: New file.
38719         * lib/unictype/categ_Pd.c: New file.
38720         * lib/unictype/categ_Pe.c: New file.
38721         * lib/unictype/categ_Pf.c: New file.
38722         * lib/unictype/categ_Pi.c: New file.
38723         * lib/unictype/categ_Po.c: New file.
38724         * lib/unictype/categ_Ps.c: New file.
38725         * lib/unictype/categ_S.c: New file.
38726         * lib/unictype/categ_Sc.c: New file.
38727         * lib/unictype/categ_Sk.c: New file.
38728         * lib/unictype/categ_Sm.c: New file.
38729         * lib/unictype/categ_So.c: New file.
38730         * lib/unictype/categ_Z.c: New file.
38731         * lib/unictype/categ_Zl.c: New file.
38732         * lib/unictype/categ_Zp.c: New file.
38733         * lib/unictype/categ_Zs.c: New file.
38734         * lib/unictype/categ_and.c: New file.
38735         * lib/unictype/categ_and_not.c: New file.
38736         * lib/unictype/categ_byname.c: New file.
38737         * lib/unictype/categ_name.c: New file.
38738         * lib/unictype/categ_none.c: New file.
38739         * lib/unictype/categ_of.c: New file.
38740         * lib/unictype/categ_or.c: New file.
38741         * lib/unictype/categ_test.c: New file.
38742         * lib/unictype/combining.c: New file.
38743         * lib/unictype/ctype_alnum.c: New file.
38744         * lib/unictype/ctype_alpha.c: New file.
38745         * lib/unictype/ctype_blank.c: New file.
38746         * lib/unictype/ctype_cntrl.c: New file.
38747         * lib/unictype/ctype_digit.c: New file.
38748         * lib/unictype/ctype_graph.c: New file.
38749         * lib/unictype/ctype_lower.c: New file.
38750         * lib/unictype/ctype_print.c: New file.
38751         * lib/unictype/ctype_punct.c: New file.
38752         * lib/unictype/ctype_space.c: New file.
38753         * lib/unictype/ctype_upper.c: New file.
38754         * lib/unictype/ctype_xdigit.c: New file.
38755         * lib/unictype/decdigit.c: New file.
38756         * lib/unictype/digit.c: New file.
38757         * lib/unictype/identsyntaxmap.h: New file.
38758         * lib/unictype/mirror.c: New file.
38759         * lib/unictype/numeric.c: New file.
38760         * lib/unictype/pr_alphabetic.c: New file.
38761         * lib/unictype/pr_ascii_hex_digit.c: New file.
38762         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38763         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38764         * lib/unictype/pr_bidi_block_separator.c: New file.
38765         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38766         * lib/unictype/pr_bidi_common_separator.c: New file.
38767         * lib/unictype/pr_bidi_control.c: New file.
38768         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38769         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38770         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38771         * lib/unictype/pr_bidi_european_digit.c: New file.
38772         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38773         * lib/unictype/pr_bidi_left_to_right.c: New file.
38774         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38775         * lib/unictype/pr_bidi_other_neutral.c: New file.
38776         * lib/unictype/pr_bidi_pdf.c: New file.
38777         * lib/unictype/pr_bidi_segment_separator.c: New file.
38778         * lib/unictype/pr_bidi_whitespace.c: New file.
38779         * lib/unictype/pr_byname.c: New file.
38780         * lib/unictype/pr_byname.gperf: New file.
38781         * lib/unictype/pr_combining.c: New file.
38782         * lib/unictype/pr_composite.c: New file.
38783         * lib/unictype/pr_currency_symbol.c: New file.
38784         * lib/unictype/pr_dash.c: New file.
38785         * lib/unictype/pr_decimal_digit.c: New file.
38786         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38787         * lib/unictype/pr_deprecated.c: New file.
38788         * lib/unictype/pr_diacritic.c: New file.
38789         * lib/unictype/pr_extender.c: New file.
38790         * lib/unictype/pr_format_control.c: New file.
38791         * lib/unictype/pr_grapheme_base.c: New file.
38792         * lib/unictype/pr_grapheme_extend.c: New file.
38793         * lib/unictype/pr_grapheme_link.c: New file.
38794         * lib/unictype/pr_hex_digit.c: New file.
38795         * lib/unictype/pr_hyphen.c: New file.
38796         * lib/unictype/pr_id_continue.c: New file.
38797         * lib/unictype/pr_id_start.c: New file.
38798         * lib/unictype/pr_ideographic.c: New file.
38799         * lib/unictype/pr_ids_binary_operator.c: New file.
38800         * lib/unictype/pr_ids_trinary_operator.c: New file.
38801         * lib/unictype/pr_ignorable_control.c: New file.
38802         * lib/unictype/pr_iso_control.c: New file.
38803         * lib/unictype/pr_join_control.c: New file.
38804         * lib/unictype/pr_left_of_pair.c: New file.
38805         * lib/unictype/pr_line_separator.c: New file.
38806         * lib/unictype/pr_logical_order_exception.c: New file.
38807         * lib/unictype/pr_lowercase.c: New file.
38808         * lib/unictype/pr_math.c: New file.
38809         * lib/unictype/pr_non_break.c: New file.
38810         * lib/unictype/pr_not_a_character.c: New file.
38811         * lib/unictype/pr_numeric.c: New file.
38812         * lib/unictype/pr_other_alphabetic.c: New file.
38813         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38814         * lib/unictype/pr_other_grapheme_extend.c: New file.
38815         * lib/unictype/pr_other_id_continue.c: New file.
38816         * lib/unictype/pr_other_id_start.c: New file.
38817         * lib/unictype/pr_other_lowercase.c: New file.
38818         * lib/unictype/pr_other_math.c: New file.
38819         * lib/unictype/pr_other_uppercase.c: New file.
38820         * lib/unictype/pr_paired_punctuation.c: New file.
38821         * lib/unictype/pr_paragraph_separator.c: New file.
38822         * lib/unictype/pr_pattern_syntax.c: New file.
38823         * lib/unictype/pr_pattern_white_space.c: New file.
38824         * lib/unictype/pr_private_use.c: New file.
38825         * lib/unictype/pr_punctuation.c: New file.
38826         * lib/unictype/pr_quotation_mark.c: New file.
38827         * lib/unictype/pr_radical.c: New file.
38828         * lib/unictype/pr_sentence_terminal.c: New file.
38829         * lib/unictype/pr_soft_dotted.c: New file.
38830         * lib/unictype/pr_space.c: New file.
38831         * lib/unictype/pr_terminal_punctuation.c: New file.
38832         * lib/unictype/pr_test.c: New file.
38833         * lib/unictype/pr_titlecase.c: New file.
38834         * lib/unictype/pr_unassigned_code_value.c: New file.
38835         * lib/unictype/pr_unified_ideograph.c: New file.
38836         * lib/unictype/pr_uppercase.c: New file.
38837         * lib/unictype/pr_variation_selector.c: New file.
38838         * lib/unictype/pr_white_space.c: New file.
38839         * lib/unictype/pr_xid_continue.c: New file.
38840         * lib/unictype/pr_xid_start.c: New file.
38841         * lib/unictype/pr_zero_width.c: New file.
38842         * lib/unictype/scripts.c: New file.
38843         * lib/unictype/sy_c_ident.c: New file.
38844         * lib/unictype/sy_c_whitespace.c: New file.
38845         * lib/unictype/sy_java_ident.c: New file.
38846         * lib/unictype/sy_java_whitespace.c: New file.
38847
38848         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38849         Unicode 5.0.0.
38850         * lib/unictype/blocks.h: Likewise.
38851         * lib/unictype/categ_C.h: Likewise.
38852         * lib/unictype/categ_Cc.h: Likewise.
38853         * lib/unictype/categ_Cf.h: Likewise.
38854         * lib/unictype/categ_Cn.h: Likewise.
38855         * lib/unictype/categ_Co.h: Likewise.
38856         * lib/unictype/categ_Cs.h: Likewise.
38857         * lib/unictype/categ_L.h: Likewise.
38858         * lib/unictype/categ_Ll.h: Likewise.
38859         * lib/unictype/categ_Lm.h: Likewise.
38860         * lib/unictype/categ_Lo.h: Likewise.
38861         * lib/unictype/categ_Lt.h: Likewise.
38862         * lib/unictype/categ_Lu.h: Likewise.
38863         * lib/unictype/categ_M.h: Likewise.
38864         * lib/unictype/categ_Mc.h: Likewise.
38865         * lib/unictype/categ_Me.h: Likewise.
38866         * lib/unictype/categ_Mn.h: Likewise.
38867         * lib/unictype/categ_N.h: Likewise.
38868         * lib/unictype/categ_Nd.h: Likewise.
38869         * lib/unictype/categ_Nl.h: Likewise.
38870         * lib/unictype/categ_No.h: Likewise.
38871         * lib/unictype/categ_P.h: Likewise.
38872         * lib/unictype/categ_Pc.h: Likewise.
38873         * lib/unictype/categ_Pd.h: Likewise.
38874         * lib/unictype/categ_Pe.h: Likewise.
38875         * lib/unictype/categ_Pf.h: Likewise.
38876         * lib/unictype/categ_Pi.h: Likewise.
38877         * lib/unictype/categ_Po.h: Likewise.
38878         * lib/unictype/categ_Ps.h: Likewise.
38879         * lib/unictype/categ_S.h: Likewise.
38880         * lib/unictype/categ_Sc.h: Likewise.
38881         * lib/unictype/categ_Sk.h: Likewise.
38882         * lib/unictype/categ_Sm.h: Likewise.
38883         * lib/unictype/categ_So.h: Likewise.
38884         * lib/unictype/categ_Z.h: Likewise.
38885         * lib/unictype/categ_Zl.h: Likewise.
38886         * lib/unictype/categ_Zp.h: Likewise.
38887         * lib/unictype/categ_Zs.h: Likewise.
38888         * lib/unictype/categ_of.h: Likewise.
38889         * lib/unictype/combining.h: Likewise.
38890         * lib/unictype/ctype_alnum.h: Likewise.
38891         * lib/unictype/ctype_alpha.h: Likewise.
38892         * lib/unictype/ctype_blank.h: Likewise.
38893         * lib/unictype/ctype_cntrl.h: Likewise.
38894         * lib/unictype/ctype_digit.h: Likewise.
38895         * lib/unictype/ctype_graph.h: Likewise.
38896         * lib/unictype/ctype_lower.h: Likewise.
38897         * lib/unictype/ctype_print.h: Likewise.
38898         * lib/unictype/ctype_punct.h: Likewise.
38899         * lib/unictype/ctype_space.h: Likewise.
38900         * lib/unictype/ctype_upper.h: Likewise.
38901         * lib/unictype/ctype_xdigit.h: Likewise.
38902         * lib/unictype/decdigit.h: Likewise.
38903         * lib/unictype/digit.h: Likewise.
38904         * lib/unictype/mirror.h: Likewise.
38905         * lib/unictype/numeric.h: Likewise.
38906         * lib/unictype/pr_alphabetic.h: Likewise.
38907         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38908         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38909         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38910         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38911         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38912         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38913         * lib/unictype/pr_bidi_control.h: Likewise.
38914         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38915         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38916         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38917         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38918         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38919         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38920         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38921         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38922         * lib/unictype/pr_bidi_pdf.h: Likewise.
38923         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38924         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38925         * lib/unictype/pr_combining.h: Likewise.
38926         * lib/unictype/pr_composite.h: Likewise.
38927         * lib/unictype/pr_currency_symbol.h: Likewise.
38928         * lib/unictype/pr_dash.h: Likewise.
38929         * lib/unictype/pr_decimal_digit.h: Likewise.
38930         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38931         * lib/unictype/pr_deprecated.h: Likewise.
38932         * lib/unictype/pr_diacritic.h: Likewise.
38933         * lib/unictype/pr_extender.h: Likewise.
38934         * lib/unictype/pr_format_control.h: Likewise.
38935         * lib/unictype/pr_grapheme_base.h: Likewise.
38936         * lib/unictype/pr_grapheme_extend.h: Likewise.
38937         * lib/unictype/pr_grapheme_link.h: Likewise.
38938         * lib/unictype/pr_hex_digit.h: Likewise.
38939         * lib/unictype/pr_hyphen.h: Likewise.
38940         * lib/unictype/pr_id_continue.h: Likewise.
38941         * lib/unictype/pr_id_start.h: Likewise.
38942         * lib/unictype/pr_ideographic.h: Likewise.
38943         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38944         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38945         * lib/unictype/pr_ignorable_control.h: Likewise.
38946         * lib/unictype/pr_iso_control.h: Likewise.
38947         * lib/unictype/pr_join_control.h: Likewise.
38948         * lib/unictype/pr_left_of_pair.h: Likewise.
38949         * lib/unictype/pr_line_separator.h: Likewise.
38950         * lib/unictype/pr_logical_order_exception.h: Likewise.
38951         * lib/unictype/pr_lowercase.h: Likewise.
38952         * lib/unictype/pr_math.h: Likewise.
38953         * lib/unictype/pr_non_break.h: Likewise.
38954         * lib/unictype/pr_not_a_character.h: Likewise.
38955         * lib/unictype/pr_numeric.h: Likewise.
38956         * lib/unictype/pr_other_alphabetic.h: Likewise.
38957         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38958         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38959         * lib/unictype/pr_other_id_continue.h: Likewise.
38960         * lib/unictype/pr_other_id_start.h: Likewise.
38961         * lib/unictype/pr_other_lowercase.h: Likewise.
38962         * lib/unictype/pr_other_math.h: Likewise.
38963         * lib/unictype/pr_other_uppercase.h: Likewise.
38964         * lib/unictype/pr_paired_punctuation.h: Likewise.
38965         * lib/unictype/pr_paragraph_separator.h: Likewise.
38966         * lib/unictype/pr_pattern_syntax.h: Likewise.
38967         * lib/unictype/pr_pattern_white_space.h: Likewise.
38968         * lib/unictype/pr_private_use.h: Likewise.
38969         * lib/unictype/pr_punctuation.h: Likewise.
38970         * lib/unictype/pr_quotation_mark.h: Likewise.
38971         * lib/unictype/pr_radical.h: Likewise.
38972         * lib/unictype/pr_sentence_terminal.h: Likewise.
38973         * lib/unictype/pr_soft_dotted.h: Likewise.
38974         * lib/unictype/pr_space.h: Likewise.
38975         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38976         * lib/unictype/pr_titlecase.h: Likewise.
38977         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38978         * lib/unictype/pr_unified_ideograph.h: Likewise.
38979         * lib/unictype/pr_uppercase.h: Likewise.
38980         * lib/unictype/pr_variation_selector.h: Likewise.
38981         * lib/unictype/pr_white_space.h: Likewise.
38982         * lib/unictype/pr_xid_continue.h: Likewise.
38983         * lib/unictype/pr_xid_start.h: Likewise.
38984         * lib/unictype/pr_zero_width.h: Likewise.
38985         * lib/unictype/scripts.h: Likewise.
38986         * lib/unictype/scripts_byname.gperf: Likewise.
38987         * lib/unictype/sy_c_ident.h: Likewise.
38988         * lib/unictype/sy_c_whitespace.h: Likewise.
38989         * lib/unictype/sy_java_ident.h: Likewise.
38990         * lib/unictype/sy_java_whitespace.h: Likewise.
38991
38992         * lib/unictype/Makefile: New file.
38993         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38994         glibc.
38995         * lib/unictype/3level.h: New file, copied from glibc.
38996         * lib/unictype/3levelbit.h: New file.
38997
38998 2007-11-11  Bruno Haible  <bruno@clisp.org>
38999
39000         * modules/gperf: New file.
39001         * modules/iconv_open (Depends-on): Add it.
39002         (Makefile.am): Remove the GPERF definition.
39003
39004 2007-11-11  Bruno Haible  <bruno@clisp.org>
39005
39006         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
39007         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
39008
39009 2007-11-11  Bruno Haible  <bruno@clisp.org>
39010
39011         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
39012         (usage): Remove function.
39013
39014 2007-11-11  Bruno Haible  <bruno@clisp.org>
39015
39016         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
39017         gl_FUNC_CEILF_LIBS.
39018         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
39019         gl_FUNC_CEIL_LIBS.
39020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
39021         gl_FUNC_CEILL_LIBS.
39022         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
39023         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
39024         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
39025
39026 2007-11-11  Bruno Haible  <bruno@clisp.org>
39027
39028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
39029         roundf were declared but do not exist on functions.
39030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
39031         roundl were declared but do not exist on functions.
39032         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
39033         HAVE_FLOORL_AND_CEILL, respectively.
39034         Needed for Sun C on Solaris 10.
39035
39036 2007-11-11  Bruno Haible  <bruno@clisp.org>
39037
39038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
39039         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
39040         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
39041         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
39042         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
39043         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
39044         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
39045         HAVE_DECL_ROUNDF.
39046         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
39047         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
39048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
39049         of HAVE_DECL_ROUND*.
39050         * modules/math (Makefile.am): Update.
39051
39052 2007-11-10  Bruno Haible  <bruno@clisp.org>
39053
39054         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
39055         ptrdiff_t as m4/intl.m4.
39056
39057 2007-11-10  Jim Meyering  <meyering@redhat.com>
39058
39059         Avoid link failure for the argmatch test.
39060         * tests/test-argmatch.c (usage): Define function to avoid a link
39061         failure: argmatch_die requires a usage function.
39062
39063 2007-11-09  Bruno Haible  <bruno@clisp.org>
39064
39065         * doc/functions/snprintf.texi: Mention BeOS deficiency.
39066         * doc/functions/vsnprintf.texi: Likewise.
39067         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
39068         with a size argument < 2.
39069
39070 2007-11-09  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
39073         buffer. Fixes an inefficiency introduced on 2007-11-03.
39074
39075 2007-11-09  Bruno Haible  <bruno@clisp.org>
39076
39077         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
39078         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
39079
39080 2007-11-08  Jim Meyering  <meyering@redhat.com>
39081
39082         Change cache variable name prefix "jm_" to "gl_" everywhere.
39083         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
39084         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
39085         * m4/uptime.m4: s/gl_/jm_/
39086
39087 2007-11-07  Bruno Haible  <bruno@clisp.org>
39088
39089         Update to GNU gettext 0.17.
39090         * m4/intl.m4: Update to GNU gettext 0.17.
39091         * m4/po.m4: Likewise.
39092         * modules/gettext (Files): Remove m4/ulonglong.m4.
39093         (configure.ac): Require gettext infrastructure from version 0.17.
39094
39095 2007-11-06  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
39098         symbolic values are not defined in a public header.
39099         * lib/freadable.c (freadable) [QNX]: Likewise.
39100         * lib/freadahead.c (freadahead) [QNX]: Likewise.
39101         * lib/freading.c (freading) [QNX]: Likewise.
39102         * lib/fseterr.c (fseterr) [QNX]: Likewise.
39103         * lib/fwritable.c (fwritable) [QNX]: Likewise.
39104         * lib/fwriting.c (fwriting) [QNX]: Likewise.
39105         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
39106         Reported by Alain Magloire.
39107
39108         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
39109
39110 2007-11-05  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
39113         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
39114         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
39115         Reported by Eric Blake.
39116
39117 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39118             Bruno Haible  <bruno@clisp.org>
39119
39120         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
39121         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
39122         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
39123         (malloc): Undefine also before including <stdlib.h>.
39124         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
39125         Needed on OSF/1 4.0.
39126
39127 2007-11-05  Jim Meyering  <meyering@redhat.com>
39128
39129         git-version-gen: sync from coreutils.
39130         * build-aux/git-version-gen: Add comments.
39131         Change the first '-' to '.' in the snapshot version string,
39132         e.g., 6.9-377-08144 -> 6.9.377-08144
39133         Remove first parameter.
39134         Don't declare a version "-dirty" merely because a time
39135         stamp has changed.
39136
39137 2007-11-04  Bruno Haible  <bruno@clisp.org>
39138
39139         * lib/lock.h: Protect all macro definitions containing an 'if'
39140         statement through a "do { ... } while (0)".
39141         * lib/tls.h: Likewise.
39142
39143 2007-11-04  Bruno Haible  <bruno@clisp.org>
39144
39145         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
39146
39147 2007-11-04  Bruno Haible  <bruno@clisp.org>
39148
39149         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
39150         * modules/fprintf-posix (Depends-on): Add nocrash.
39151         * modules/snprintf-posix (Depends-on): Likewise.
39152         * modules/sprintf-posix (Depends-on): Likewise.
39153         * modules/vasnprintf-posix (Depends-on): Likewise.
39154         * modules/vasprintf-posix (Depends-on): Likewise.
39155         * modules/vfprintf-posix (Depends-on): Likewise.
39156         * modules/vsnprintf-posix (Depends-on): Likewise.
39157         * modules/vsprintf-posix (Depends-on): Likewise.
39158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39165
39166 2007-11-04  Bruno Haible  <bruno@clisp.org>
39167
39168         * modules/nocrash: New file.
39169         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
39170         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
39171
39172 2007-11-04  Bruno Haible  <bruno@clisp.org>
39173
39174         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
39175         precision handling.
39176         * tests/test-vasprintf-posix.c (test_function): Likewise.
39177         * tests/test-snprintf-posix.h (test_function): Likewise.
39178         * tests/test-sprintf-posix.h (test_function): Likewise.
39179
39180         Fix *printf behaviour for large precisions on mingw and BeOS.
39181         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
39182         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
39183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
39184         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39186         gl_PRINTF_PRECISION and test its result. Invoke
39187         gl_PREREQ_VASNPRINTF_PRECISION.
39188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39195         * doc/functions/fprintf.texi: Update.
39196         * doc/functions/printf.texi: Update.
39197         * doc/functions/snprintf.texi: Update.
39198         * doc/functions/sprintf.texi: Update.
39199         * doc/functions/vfprintf.texi: Update.
39200         * doc/functions/vprintf.texi: Update.
39201         * doc/functions/vsnprintf.texi: Update.
39202         * doc/functions/vsprintf.texi: Update.
39203
39204 2007-11-04  Bruno Haible  <bruno@clisp.org>
39205
39206         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
39207
39208 2007-11-04  Bruno Haible  <bruno@clisp.org>
39209
39210         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
39211         Reported by Sylvain Beucler <beuc@gnu.org>.
39212
39213 2007-11-03  Bruno Haible  <bruno@clisp.org>
39214
39215         * tests/test-fprintf-posix2.sh: New file.
39216         * tests/test-fprintf-posix2.c: New file.
39217         * modules/fprintf-posix-tests (Files): Add them.
39218         (TESTS): Add test-fprintf-posix2.sh.
39219         (configure.ac): Check for getrlimit and setrlimit.
39220         (check_PROGRAMS): Add test-fprintf-posix2.
39221
39222         * tests/test-printf-posix2.sh: New file.
39223         * tests/test-printf-posix2.c: New file.
39224         * modules/printf-posix-tests (Files): Add them.
39225         (TESTS): Add test-printf-posix2.sh.
39226         (configure.ac): Check for getrlimit and setrlimit.
39227         (check_PROGRAMS): Add test-printf-posix2.
39228
39229         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
39230         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
39231         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
39232         (decode_double): New function, copied from decode_long_double.
39233         (scale10_round_decimal_decoded): New function, extracted from
39234         scale10_round_decimal_long_double.
39235         (scale10_round_decimal_long_double): Use it.
39236         (scale10_round_decimal_double): New function.
39237         (floorlog10): New function.
39238         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
39239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
39240         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39242         gl_PRINTF_ENOMEM and test its result. Invoke
39243         gl_PREREQ_VASNPRINTF_ENOMEM.
39244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39251         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
39252         * modules/snprintf-posix (Depends-on): Likewise.
39253         * modules/sprintf-posix (Depends-on): Likewise.
39254         * modules/vasnprintf-posix (Depends-on): Likewise.
39255         * modules/vasprintf-posix (Depends-on): Likewise.
39256         * modules/vfprintf-posix (Depends-on): Likewise.
39257         * modules/vsnprintf-posix (Depends-on): Likewise.
39258         * modules/vsprintf-posix (Depends-on): Likewise.
39259         * doc/functions/fprintf.texi: Update.
39260         * doc/functions/printf.texi: Update.
39261         * doc/functions/snprintf.texi: Update.
39262         * doc/functions/sprintf.texi: Update.
39263         * doc/functions/vfprintf.texi: Update.
39264         * doc/functions/vprintf.texi: Update.
39265         * doc/functions/vsnprintf.texi: Update.
39266         * doc/functions/vsprintf.texi: Update.
39267
39268 2007-11-03  Bruno Haible  <bruno@clisp.org>
39269
39270         * modules/frexp-nolibm-tests: New file.
39271
39272         * modules/frexp-nolibm: New file.
39273         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
39274
39275 2007-11-03  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
39278         value is C99 compliant.
39279         Needed for OSF/1 5.1.
39280
39281 2007-11-03  Bruno Haible  <bruno@clisp.org>
39282
39283         Fix out-of-memory handling of vasnprintf.
39284         * lib/printf-parse.c: Include <errno.h>.
39285         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39286         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39287         is already set.
39288
39289 2007-11-02  Eric Blake  <ebb9@byu.net>
39290
39291         Fix tests on cygwin.
39292         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39293
39294 2007-11-01  Bruno Haible  <bruno@clisp.org>
39295
39296         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39297         warning.
39298         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39299         needed for POSIX compatibility.
39300
39301 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39302
39303         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39304         for compatibility with GNU.
39305
39306 2007-11-01  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39309         (putenv): Renamed from rpl_putenv. Change argument type from
39310         'const char *' to 'char *'.
39311         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39312         of defining putenv in config.h, just set REPLACE_PUTENV.
39313         * modules/putenv (Depends-on): Add stdlib.
39314         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39315         (Include): Use <stdlib.h>.
39316         * lib/stdlib.in.h (putenv): New declaration.
39317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39318         REPLACE_PUTENV.
39319         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39320         REPLACE_PUTENV.
39321         Needed for MacOS X 10.5.0.
39322         Reported by Peter O'Gorman <peter@pogma.com>.
39323
39324 2007-11-01  Jim Meyering  <meyering@redhat.com>
39325
39326         Treat an empty date string exactly like "0".
39327         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39328         if the remaining date string (to be parsed) is empty, use "0".
39329         Reported by Mischa Molhoek and discussed in this thread:
39330         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39331
39332 2007-10-31  Bruno Haible  <bruno@clisp.org>
39333
39334         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39335         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39336         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39337         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39338         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39339         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39340
39341 2007-10-31  Bruno Haible  <bruno@clisp.org>
39342
39343         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39344         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39345         (AC_TYPE_LONG_LONG_INT): Use it.
39346         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39347         it as well.
39348         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39349         to m4/longlong.m4.
39350         * modules/stdint (Files): Remove m4/ulonglong.m4.
39351         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39352         m4/ulonglong.m4.
39353         * modules/strtoumax (Files): Likewise.
39354
39355 2007-10-30  Bruno Haible  <bruno@clisp.org>
39356
39357         * modules/xvasprintf-posix: New file.
39358         Suggested by Eric Blake.
39359
39360 2007-10-30  Bruno Haible  <bruno@clisp.org>
39361
39362         * modules/xprintf-posix-tests: New file.
39363         * tests/test-xprintf-posix.sh: New file.
39364         * tests/test-xprintf-posix.c: New file.
39365         * tests/test-xfprintf-posix.c: New file.
39366
39367         * modules/xprintf-posix: New file.
39368
39369 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39370
39371         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39372         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39373         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39374
39375 2007-10-29  Bruno Haible  <bruno@clisp.org>
39376
39377         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39378         contain the special marker '_cv_'.
39379         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39380         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39381         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39382         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39383         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39384         Reported by Ralf Wildenhues.
39385
39386 2007-10-29  Bruno Haible  <bruno@clisp.org>
39387
39388         * gnulib-tool (func_import): When --lgpl is not specified, set
39389         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39390         GPLv3.
39391         Reported by Simon Josefsson.
39392
39393 2007-10-28  Bruno Haible  <bruno@clisp.org>
39394
39395         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39396         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39397         HAVE_DECL_ISFINITE.
39398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39399         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39400         HAVE_DECL_ISFINITE.
39401
39402 2007-10-28  Bruno Haible  <bruno@clisp.org>
39403
39404         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39405         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39406
39407 2007-10-28  Bruno Haible  <bruno@clisp.org>
39408
39409         Fix link errors with Sun C 5.0 on Solaris 10.
39410         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39411         function is declared but not present in the compiler's libm.
39412         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39413         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39414         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39415         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39416         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39417         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39418         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39420         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39421         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39422         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39423         HAVE_DECL_FLOORL.
39424
39425 2007-10-28  Bruno Haible  <bruno@clisp.org>
39426
39427         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39428         gl_FUNC_FLOORL. Cache the result.
39429         (gl_FUNC_FLOORL): Use it.
39430         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39431         gl_FUNC_CEILL. Cache the result.
39432         (gl_FUNC_CEILL): Use it.
39433
39434         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39435         gl_FUNC_FLOOR. Cache the result.
39436         (gl_FUNC_FLOOR): Use it.
39437         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39438         gl_FUNC_CEIL. Cache the result.
39439         (gl_FUNC_CEIL): Use it.
39440
39441         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39442         gl_FUNC_FLOORF. Cache the result.
39443         (gl_FUNC_FLOORF): Use it.
39444         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39445         gl_FUNC_CEILF. Cache the result.
39446         (gl_FUNC_CEILF): Use it.
39447
39448 2007-10-28  Bruno Haible  <bruno@clisp.org>
39449
39450         * gnulib-tool: Allow specifying the LGPL version number through
39451         --lgpl=2 or --lgpl=3.
39452         (func_usage): Document --lgpl with argument.
39453         Handle --lgpl=... arguments.
39454         (func_import): Recognize also gl_LGPL calls with an argument. When
39455         --lgpl=2 is used and the module's license is just LGPL, report an
39456         error. Set sed_transform_lib_file according to the lgpl variable. In
39457         the generated files, use --lgpl or gl_LGPL invocations with argument,
39458         if necessary.
39459         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39460         an LGPv2+ license.
39461         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39462         gl_LGPL macro.
39463
39464 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39465             Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39468         (u16_uctomb_aux): Likewise.
39469         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39470         !HAVE_INLINE.
39471         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39472
39473 2007-10-28  Bruno Haible  <bruno@clisp.org>
39474
39475         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39476         Invoke AM_GETTEXT_OPTION if it exists.
39477         * modules/vasprintf: Likewise.
39478         * modules/verror: Likewise.
39479         * modules/xprintf: Likewise.
39480         * modules/xvasprintf: Likewise.
39481
39482 2007-10-27  Ben Pfaff  <blp@gnu.org>
39483
39484         * lib/math.in.h: Define isfinite macro and prototypes for
39485         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39486         implementations.
39487         * m4/math_h.m4: New substitutions for isfinite module.
39488         * lib/isfinite.c: New file.
39489         * m4/isfinite.m4: New file.
39490         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39491         * modules/isfinite: New file.
39492         * modules/isfinite-tests: New file.
39493         * tests/tests-isfinite.c: New file.
39494         * doc/functions/isfinite.texi: Mention isfinite module.
39495         * MODULES.html.sh: Mention new module.
39496
39497 2007-10-27  Ben Pfaff  <blp@gnu.org>
39498
39499         Ralf Wildenhues reported that Tru64 4.0D declares the round
39500         functions but does not have definitions.
39501         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39502         cannot be found in any library, set the output variable to
39503         "missing" instead of "".
39504         * m4/round.m4: Also use our substitute if we cannot find round in
39505         any library, even if it is declared.
39506         * m4/roundf.m4: Likewise for roundf.
39507         * m4/roundl.m4: Likewise for roundl.
39508         * lib/math.in.h: Undefine roundf, round, roundl before defining
39509         their replacements, to allow for hypothetical systems where these
39510         may be defined as macros but not available in libraries.
39511
39512 2007-10-27  Bruno Haible  <bruno@clisp.org>
39513
39514         * doc/gnulib.texi: Invoke @firstparagraphindent.
39515         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39516         changes in gnulib.
39517         (Source changes): New section.
39518
39519 2007-10-26  Bruno Haible  <bruno@clisp.org>
39520
39521         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39522         borrowed from autoconf.
39523
39524 2007-10-26  Bruno Haible  <bruno@clisp.org>
39525
39526         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39527         strerror returned the empty string. Needed on HP-UX 11.00.
39528
39529 2007-10-24  Micah Cowan  <micah@cowan.name>
39530
39531         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39532         * build-aux/bootstrap: Remove support for now-unnecessary option,
39533         --cvs-user, and envvars CVS_USER, CVS_RSH.
39534
39535 2007-10-24  Jim Meyering  <meyering@redhat.com>
39536
39537         Avoid diagnostics from sha1sum when there is no cached checksum.
39538         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39539         if the po.s1 file hasn't been created yet.
39540
39541         * build-aux/bootstrap: Sync from coreutils:
39542         2007-10-24  Jim Meyering  <meyering@redhat.com>
39543         Get gnulib from the git repository, not from an obsolete cvs one.
39544         * build-aux/bootstrap: Suggestion from Micah Cowan.
39545         2007-10-04  Jim Meyering  <jim@meyering.net>
39546         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39547         (update_po_files): Work also when there are no .po files in po/.
39548
39549 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39550
39551         * README: Append ".git" to git and cg examples.
39552         Problem reported by Benoit Sigoure.
39553
39554 2007-10-23  Micah Cowan  <micah@cowan.name>
39555
39556         * users.txt: Add wget.
39557
39558 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39559
39560         Fix linking of some unistdio tests on FreeBSD.
39561         * modules/unistdio/u16-vsnprintf-tests
39562         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39563         * modules/unistdio/u16-vsprintf-tests
39564         (test_u16_vsnprintf1_LDADD): Likewise.
39565         * modules/unistdio/u32-vsnprintf-tests
39566         (test_u32_vsnprintf1_LDADD): Likewise.
39567         * modules/unistdio/u32-vsprintf-tests
39568         (test_u32_vsprintf1_LDADD): Likewise.
39569         * modules/unistdio/u8-vsnprintf-tests
39570         (test_u8_vsnprintf1_LDADD): Likewise.
39571         * modules/unistdio/u8-vsprintf-tests
39572         (test_u8_vsprintf1_LDADD): Likewise.
39573         * modules/unistdio/ulc-vsnprintf-tests
39574         (test_ulc_vsnprintf1_LDADD): Likewise.
39575         * modules/unistdio/ulc-vsprintf-tests
39576         (test_ulc_vsprintf1_LDADD): Likewise.
39577
39578         Fix linking of some uniconv tests on FreeBSD.
39579         * modules/uniconv/u16-conv-from-enc-tests
39580         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39581         * modules/uniconv/u16-conv-to-enc-tests
39582         (test_u16_conv_to_enc_LDADD): Likewise.
39583         * modules/uniconv/u16-strconv-from-enc-tests
39584         (test_u16_strconv_from_enc_LDADD): Likewise.
39585         * modules/uniconv/u16-strconv-to-enc-tests
39586         (test_u16_strconv_to_enc_LDADD): Likewise.
39587         * modules/uniconv/u32-conv-from-enc-tests
39588         (test_u32_conv_from_enc_LDADD): Likewise.
39589         * modules/uniconv/u32-conv-to-enc-tests
39590         (test_u32_conv_to_enc_LDADD): Likewise.
39591         * modules/uniconv/u32-strconv-from-enc-tests
39592         (test_u32_strconv_from_enc_LDADD): Likewise.
39593         * modules/uniconv/u32-strconv-to-enc-tests
39594         (test_u32_strconv_to_enc_LDADD): Likewise.
39595         * modules/uniconv/u8-conv-from-enc-tests
39596         (test_u8_conv_from_enc_LDADD): Likewise.
39597         * modules/uniconv/u8-conv-to-enc-tests
39598         (test_u8_conv_to_enc_LDADD): Likewise.
39599         * modules/uniconv/u8-strconv-from-enc-tests
39600         (test_u8_strconv_from_enc_LDADD): Likewise.
39601         * modules/uniconv/u8-strconv-to-enc-tests
39602         (test_u8_strconv_to_enc_LDADD): Likewise.
39603
39604 2007-10-22  Bruno Haible  <bruno@clisp.org>
39605
39606         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39607         size.
39608
39609 2007-10-22  Eric Blake  <ebb9@byu.net>
39610
39611         Tweak x*printf documentation.
39612         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39613         variable name and comments.
39614         Suggested by Bruno Haible.
39615
39616 2007-10-22  Bruno Haible  <bruno@clisp.org>
39617
39618         * lib/acl.c (copy_acl): Fix file name in comment.
39619
39620 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39621
39622         Fix Tru64 problem with stdbool.h.
39623         * lib/stdbool.in.h (false, true):
39624         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39625         Don't declare as an enum in this situation; it runs afoul of Tru64.
39626         Problem reported by Steven M. Schweda in
39627         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39628
39629 2007-10-22  Eric Blake  <ebb9@byu.net>
39630
39631         Also wrap vf?printf.
39632         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39633         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39634         (xvprintf, xvfprintf): New functions.
39635
39636 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39637
39638         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39639         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39640
39641         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39642         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39643
39644 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39645
39646         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39647         by Bruno Haible.
39648
39649 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39650
39651         * lib/getloadavg.c
39652         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39653         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39654
39655         * tests/test-i-ring.c: Work for C89.
39656
39657 2007-10-22  Bruno Haible  <bruno@clisp.org>
39658
39659         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39660         -1u, in preprocessor expression, so that we don't test for the bug
39661         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39663
39664 2007-10-22  Eric Blake  <ebb9@byu.net>
39665
39666         * tests/test-yesno.sh: Silence stderr during test.
39667
39668 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39669
39670         * modules/crypto/gc-camellia: New file.
39671
39672         * m4/gc-camellia.m4: New file.
39673
39674         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39675
39676         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39677
39678 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39679
39680         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39681         --help to stdout.  Reported by sms@antinode.org (Steven
39682         M. Schweda).
39683
39684 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39685
39686         * users.txt: Fix link to libksba.
39687
39688 2007-10-21  Ben Pfaff  <blp@gnu.org>
39689
39690         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39691         round.c roundf implementation that depends on floorf and ceilf to
39692         be tested unconditionally.
39693
39694 2007-10-21  Ben Pfaff  <blp@gnu.org>
39695
39696         * m4/check-libm-func.m4: Removed.
39697         * m4/check-math-lib.m4: New file.
39698         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39699         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39700         definition and lack of AC_LIBOBJ([roundf]).
39701         * m4/roundl.m4: Ditto, and similarly for roundl.
39702         * modules/round: Reference new m4 file.
39703         * modules/roundf: Ditto.
39704         * modules/roundl: Ditto.
39705         * tests/test-round2.c (main): Use ROUND instead of round.
39706         Bug report from Bruno Haible.
39707
39708 2007-10-21  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39711         context.
39712
39713 2007-10-21  Bruno Haible  <bruno@clisp.org>
39714
39715         * tests/test-wcwidth.c (main): Allow negative result for some control
39716         characters.
39717
39718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39719         Needed on OSF/1 5.1.
39720
39721 2007-10-21  Bruno Haible  <bruno@clisp.org>
39722
39723         * tests/test-floorf1.c: Include isnanf.h.
39724         (main): Use isnanf() instead of isnan().
39725         * tests/test-ceilf1.c: Include isnanf.h.
39726         (main): Use isnanf() instead of isnan().
39727         * tests/test-truncf1.c: Include isnanf.h.
39728         (main): Use isnanf() instead of isnan().
39729         * tests/test-roundf1.c: Include isnanf.h.
39730         (main): Use isnanf() instead of isnan().
39731
39732 2007-10-21  Eric Blake  <ebb9@byu.net>
39733
39734         * users.txt: Update URL for m4.
39735
39736 2007-10-21  Bruno Haible  <bruno@clisp.org>
39737
39738         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39739
39740 2007-10-21  Bruno Haible  <bruno@clisp.org>
39741
39742         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39743         Git's management files if the CVS files are not present.
39744
39745 2007-10-20  Bruno Haible  <bruno@clisp.org>
39746
39747         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39748         gcc-3.4.x.
39749
39750 2007-10-20  Ben Pfaff  <blp@gnu.org>
39751
39752         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39753         implementations.
39754         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39755         * lib/round.c: New file.
39756         * lib/roundf.c: New file.
39757         * lib/roundl.c: New file.
39758         * m4/round.m4: New file.
39759         * m4/roundf.m4: New file.
39760         * m4/roundl.m4: New file.
39761         * m4/check-libm-func-m4: New file.
39762         * modules/math: Replace round, roundf, roundl related @VARS@ in
39763         math.in.h.
39764         * modules/round: New file.
39765         * modules/round-tests: New file.
39766         * modules/roundf: New file.
39767         * modules/roundf-tests: New file.
39768         * modules/roundl: New file.
39769         * modules/roundl-tests: New file.
39770         * tests/test-round1.c: New file.
39771         * tests/test-round2.c: New file.
39772         * tests/test-roundf1.c: New file.
39773         * tests/test-roundf2.c: New file.
39774         * tests/test-roundl.c: New file.
39775         * doc/functions/round.texi: Mention round module.
39776         * doc/functions/roundf.texi: Mention roundf module.
39777         * doc/functions/roundl.texi: Mention roundl module.
39778         * MODULES.html.sh: Mention new modules.
39779         Thanks to Bruno Haible for suggestions.
39780
39781 2007-10-20  Jim Meyering  <meyering@redhat.com>
39782
39783         * lib/xprintf.c: Include <config.h> unconditionally.
39784
39785         Change xprintf's license to GPL.
39786         * modules/xprintf (License): s/LGPL/GPL/, since this module
39787         depends on modules (exit and exitfail) which are GPL.
39788         Suggestion from Bruno Haible.
39789
39790         xprintf fixes.
39791         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39792         Use a clearer diagnostic.
39793         Patch from Bruno Haible.
39794
39795 2007-10-20  Bruno Haible  <bruno@clisp.org>
39796
39797         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39798         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39799         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39800
39801 2007-10-20  Bruno Haible  <bruno@clisp.org>
39802
39803         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39804         precision in the comparison result > x - 1 or similar.
39805         * tests/test-ceilf2.c (correct_result_p): Likewise.
39806         * tests/test-truncf2.c (correct_result_p): Likewise.
39807         * tests/test-trunc2.c (correct_result_p): Likewise.
39808         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39809
39810 2007-10-20  Bruno Haible  <bruno@clisp.org>
39811
39812         * modules/ceil: New file.
39813         * m4/ceil.m4: New file.
39814         * doc/functions/ceil.texi: Mention the 'ceil' module.
39815
39816 2007-10-20  Bruno Haible  <bruno@clisp.org>
39817
39818         * modules/floor: New file.
39819         * m4/floor.m4: New file.
39820         * doc/functions/floor.texi: Mention the 'floor' module.
39821
39822 2007-10-20  Bruno Haible  <bruno@clisp.org>
39823
39824         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39825         of %a.
39826         * modules/floorf-tests (Depends-on): Likewise.
39827         * modules/truncf-tests (Depends-on): Likewise.
39828         * modules/trunc-tests (Depends-on): Likewise.
39829         Reported by Ben Pfaff.
39830
39831 2007-10-19  Jim Meyering  <meyering@redhat.com>
39832
39833         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39834         Don't bother testing specific errno values.  Just test ferror.
39835
39836         New module: xprintf
39837         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39838
39839 2007-10-19  Bruno Haible  <bruno@clisp.org>
39840
39841         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39842         syntax.
39843         * modules/javaexec (Makefile.am): Likewise.
39844         * modules/relocatable-prog (Makefile.am): Likewise.
39845         Suggested by Jim Meyering.
39846
39847 2007-10-18  Bruno Haible  <bruno@clisp.org>
39848
39849         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39850         Reported by Jim Meyering.
39851
39852 2007-10-18  Eric Blake  <ebb9@byu.net>
39853
39854         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39855
39856 2007-10-18  Bruno Haible  <bruno@clisp.org>
39857
39858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39859         the format string into writable memory. Needed in Fortify conditions.
39860
39861 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39862             Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39865         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39866         * modules/trim (Depends-on): Add mbchar.
39867         (configure.ac): Add gl_FUNC_MBRTOWC.
39868         (Makefile.am): Augment lib_SOURCES.
39869
39870 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39871
39872         Modify glob.c to use fstatat and dirfd, to simplify it.
39873         Suggested by Eric Blake.
39874         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39875         Don't include <stdbool.h>; not used.
39876         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39877         (link_exists_p): Simplify implementation, since we can now assume
39878         dirfd and fstatat.
39879         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39880
39881 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39882
39883         * gnulib-tool (func_get_dependencies): Fix sed script to
39884         match only tests.
39885
39886 2007-10-17  Bruno Haible  <bruno@clisp.org>
39887
39888         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39889         allow locale names without encoding suffix.
39890         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39891         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39892
39893 2007-10-16  Bruno Haible  <bruno@clisp.org>
39894
39895         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39896         * lib/getgroups.c (getgroups): Likewise.
39897         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39898
39899 2007-10-16  Bruno Haible  <bruno@clisp.org>
39900
39901         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39902         * modules/malloc-posix (License): Likewise.
39903         * modules/realloc-posix (License): Likewise.
39904         * modules/calloc-posix (License): Likewise.
39905         * modules/intprops (License): Change from GPL to LGPL, with
39906         Paul Eggert's approval.
39907
39908 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39909
39910         Merge glibc changes into lib/glob.c.
39911
39912         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39913         2007-10-15 04:59:03 UTC.  Here are the changes:
39914
39915         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39916
39917         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39918
39919         * lib/glob.c: Add some branch prediction throughout.
39920
39921         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39922
39923         [BZ #5103]
39924         * lib/glob.c (glob): Recognize patterns starting \/.
39925
39926         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39927
39928         [BZ #3996]
39929         * lib/glob.c (attribute_hidden): Define if not defined.
39930         (glob): Unescape dirname, filename or username when needed and not
39931         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39932         is NULL.  Handle unescaped [ in pattern without closing ].
39933         Don't pass GLOB_CHECK down to recursive glob for directories.
39934         (__glob_pattern_type): New function.
39935         (__glob_pattern_p): Implement using __glob_pattern_type.
39936         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39937         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39938         Remove unreachable code.
39939
39940         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39941
39942         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39943         explain why there are no leaks.
39944
39945         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39946
39947         [BZ #3253]
39948         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39949         time, rather allocate increasingly bigger arrays of pointers, if
39950         possible with alloca, if too large with malloc.
39951
39952 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39953
39954         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39955         Problem reported by H.Merijn Brand in
39956         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39957         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39958         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39959
39960 2007-10-15  Bruno Haible  <bruno@clisp.org>
39961
39962         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39963         with explicit rpl_ prefix.
39964         * lib/fopen.c (fopen): Likewise.
39965         * lib/freopen.c (freopen): Likewise.
39966         * lib/iconv.c (iconv): Likewise.
39967         * lib/iconv_close.c (iconv_close): Likewise.
39968
39969 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39970
39971         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39972
39973 2007-10-15  Bruno Haible  <bruno@clisp.org>
39974
39975         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39976         <stddef.h> instead of <stdlib.h> since we only need NULL.
39977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39978
39979 2007-10-15  Bruno Haible  <bruno@clisp.org>
39980
39981         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39982         Replace paragraph talking about LIBOBJS.
39983         Reported by Colin Watson <cjwatson@debian.org>.
39984
39985 2007-10-15  Bruno Haible  <bruno@clisp.org>
39986
39987         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39988         <stdlib.h> before using NULL.
39989
39990 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39991
39992         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39993         Reported by Albert Chin <china@thewrittenword.com>.
39994
39995 2007-10-14  Bruno Haible  <bruno@clisp.org>
39996
39997         * modules/iconv_open-utf-tests: New file.
39998         * tests/test-iconv-utf.c: New file.
39999
40000         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
40001         * modules/iconv_open-utf: New file.
40002         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
40003         (iconv, iconv_close): New declarations.
40004         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
40005         be defined.
40006         (iconv_open): Add special handling of conversion between UTF-8 and
40007         UTF-{16,32}{BE,LE}.
40008         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
40009         * lib/iconv_close.c: New file.
40010         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
40011         gl_FUNC_ICONV_OPEN.
40012         (gl_FUNC_ICONV_OPEN): Use it.
40013         (gl_FUNC_ICONV_OPEN_UTF): New macro.
40014         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
40015         and REPLACE_ICONV_UTF.
40016         * modules/iconv_open (Depends-on): Add c-strcase.
40017         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
40018         ICONV_CONST.
40019         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
40020
40021 2007-10-13  Albert Chin  <china@thewrittenword.com>
40022             Bruno Haible  <bruno@clisp.org>
40023
40024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
40025         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
40026
40027 2007-10-13  Bruno Haible  <bruno@clisp.org>
40028
40029         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
40030         defined, use the ISO C99 inline semantics.
40031         * lib/argp.h (ARGP_EI): Likewise.
40032
40033 2007-10-13  Bruno Haible  <bruno@clisp.org>
40034
40035         Handle 'inline' change in gcc 4.3.0.
40036         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
40037         argp_fmtstream_write, argp_fmtstream_set_lmargin,
40038         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
40039         argp_fmtstream_point): Disable 'extern' declaration if the function
40040         definition is going to be provided inline.
40041         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
40042         semantics, not the ISO C99 inline semantics.
40043         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
40044         'extern' declaration if the function definition is going to be provided
40045         inline.
40046         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
40047         the GNU C inline semantics, not the ISO C99 inline semantics. With
40048         GCC 4.2, avoid a warning.
40049
40050 2007-10-13  Bruno Haible  <bruno@clisp.org>
40051
40052         * lib/freading.h (freading): Enable the use of __freading for
40053         glibc >= 2.7.
40054         * lib/freading.c (freading): Likewise.
40055
40056 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40057
40058         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
40059         "warning: C99 inline functions are not supported; using GNU89".
40060
40061 2007-10-12  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
40064         of 2.
40065         * tests/test-ceilf2.c: New file.
40066         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
40067
40068         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
40069         * modules/ceilf-tests: Update.
40070
40071 2007-10-12  Bruno Haible  <bruno@clisp.org>
40072
40073         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
40074         of 2.
40075         * tests/test-floorf2.c: New file.
40076         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
40077
40078         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
40079         * modules/floorf-tests: Update.
40080
40081 2007-10-12  Bruno Haible  <bruno@clisp.org>
40082
40083         * tests/test-trunc2.c: New file.
40084         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
40085
40086         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
40087         * modules/trunc-tests: Update.
40088
40089 2007-10-12  Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
40092         of 2.
40093         * tests/test-truncf2.c: New file.
40094         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
40095
40096         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
40097         * modules/truncf-tests: Update.
40098
40099 2007-10-11  Eric Blake  <ebb9@byu.net>
40100
40101         Don't claim strerror is broken on Interix.
40102         * doc/functions/strerror.texi (strerror): Known broken systems are
40103         now Solaris 8, and not Interix.
40104         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
40105         Interix on cross-compile.
40106         Reported by Martin Koeppe in
40107         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
40108
40109 2007-10-11  Bruno Haible  <bruno@clisp.org>
40110
40111         * modules/i-ring-tests: New file.
40112         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
40113         instead of assert.
40114
40115 2007-10-11  Bruno Haible  <bruno@clisp.org>
40116
40117         * modules/filenamecat-tests: New file.
40118         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
40119         * lib/filenamecat.c: Remove test code.
40120
40121 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40122
40123         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
40124
40125         * lib/strerror.c: Include <string.h> always, to test interface,
40126         and to remove the need for the dummy.
40127         Include intprops.h to compute width instead of doing it ourselves
40128         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
40129         (strerror): Define it to return NULL if there's no system strerror.
40130         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
40131         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
40132         ancient pre-strerror Unix systems well any more.  Saying "unknown
40133         system error" is enough.
40134         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
40135         simpler strerror.c implementation.
40136         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
40137         Simplify the tests to reflect the simpler strerror implementation.
40138         * modules/strerror (Depends-on): Add intprops.
40139
40140 2007-10-09  Eric Blake  <ebb9@byu.net>
40141
40142         Silence test-fpending.
40143         * modules/fpending-tests (Files): Add wrapper script.
40144         * tests/test-fpending.sh: New file.
40145
40146 2007-10-09  Bruno Haible  <bruno@clisp.org>
40147
40148         * MODULES.html.sh (func_module): Don't create a hyperlink for
40149         function names like 'printf_frexp'.
40150         (Misc): Add crc, memxor.
40151         (Characteristics of floating types): New section.
40152         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
40153         isnanf-nolibm, signbit, trunc, truncf, truncl.
40154         (Enhancements for ISO C 99 functions): New subsection Input/output.
40155         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
40156         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
40157         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
40158         (Compatibility checks for POSIX:2001 functions): Add clock-time.
40159         (Enhancements for POSIX:2001 functions): Add chdir-long.
40160         (File system functions): Add areadlink, chdir-safer, read-file.
40161         Remove cycle-check.
40162         (File system as inode set): New section.
40163         (Date and time): Add gethrxtime.
40164         (Multithreading): Add openmp.
40165         (Internationalization functions): Add localename.
40166         (Unicode string functions): Add unistr/u*-mbsnlen.
40167         (Support for maintaining and releasing projects): Add git-version-gen.
40168         (Lone files): Remove directories.
40169
40170 2007-10-08  Ben Pfaff  <blp@gnu.org>
40171
40172         * lib/xmalloca.h: Fix typo in comment.
40173
40174 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40175
40176         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
40177         when avoiding problems with integer overflow.  Use a portable test
40178         instead.
40179
40180 2007-10-08  Simon Josefsson  <simon@josefsson.org>
40181
40182         * modules/dummy (License): Change to LGPLv2+.
40183         * modules/float (License): Likewise
40184         * modules/realloc (License): Likewise
40185         * modules/stdlib (License): Likewise
40186
40187 2007-10-07  Bruno Haible  <bruno@clisp.org>
40188
40189         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
40190         * floor.c (TWO_MANT_DIG): Likewise.
40191         * ceil.c (TWO_MANT_DIG): Likewise.
40192         Reported by Ben Pfaff.
40193
40194 2007-10-07  Bruno Haible  <bruno@clisp.org>
40195
40196         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
40197         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
40198         * lib/frexp.c (FUNC): Likewise.
40199         * lib/printf-frexp.h (printf_frexp): Likewise.
40200         * lib/printf-frexpl.h (printf_frexpl): Likewise.
40201         * lib/printf-frexp.c (FUNC): Likewise.
40202         Suggested by Jim Meyering.
40203
40204 2007-10-07  Jim Meyering  <meyering@redhat.com>
40205
40206         Make xnanosleep's integer overflow test more robust.
40207         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
40208         so that gcc-4.3.0 doesn't optimize away this test for overflow.
40209
40210 2007-10-07  Bruno Haible  <bruno@clisp.org>
40211
40212         * NEWS: Mention the license change.
40213
40214         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
40215         abbreviations in the modules files.
40216
40217         Change copyright notice from GPLv2+ to GPLv3+.
40218         * README: Change copyright notice.
40219         * MODULES.html.sh: Likewise.
40220         * build-aux/bootstrap.conf: Likewise.
40221         * build-aux/config.libpath: Likewise.
40222         * build-aux/csharpcomp.sh.in: Likewise.
40223         * build-aux/csharpexec.sh.in: Likewise.
40224         * build-aux/install-reloc: Likewise.
40225         * build-aux/javacomp.sh.in: Likewise.
40226         * build-aux/javaexec.sh.in: Likewise.
40227         * build-aux/ldd.sh.in: Likewise.
40228         * build-aux/reloc-ldflags: Likewise.
40229         * build-aux/relocatable.sh.in: Likewise.
40230         * build-aux/x-to-1.in: Likewise.
40231         * check-module: Likewise.
40232         * config/srclistvars.sh: Likewise.
40233         * gnulib-tool: Likewise.
40234         * lib/acl-internal.h: Likewise.
40235         * lib/acl.c: Likewise.
40236         * lib/acl.h: Likewise.
40237         * lib/acl_entries.c: Likewise.
40238         * lib/areadlink-with-size.c: Likewise.
40239         * lib/areadlink.c: Likewise.
40240         * lib/areadlink.h: Likewise.
40241         * lib/argmatch.c: Likewise.
40242         * lib/argmatch.h: Likewise.
40243         * lib/argp-ba.c: Likewise.
40244         * lib/argp-eexst.c: Likewise.
40245         * lib/argp-fmtstream.c: Likewise.
40246         * lib/argp-fmtstream.h: Likewise.
40247         * lib/argp-fs-xinl.c: Likewise.
40248         * lib/argp-help.c: Likewise.
40249         * lib/argp-namefrob.h: Likewise.
40250         * lib/argp-parse.c: Likewise.
40251         * lib/argp-pin.c: Likewise.
40252         * lib/argp-pv.c: Likewise.
40253         * lib/argp-pvh.c: Likewise.
40254         * lib/argp-xinl.c: Likewise.
40255         * lib/argp.h: Likewise.
40256         * lib/at-func.c: Likewise.
40257         * lib/atanl.c: Likewise.
40258         * lib/backupfile.c: Likewise.
40259         * lib/backupfile.h: Likewise.
40260         * lib/basename.c: Likewise.
40261         * lib/binary-io.h: Likewise.
40262         * lib/byteswap.in.h: Likewise.
40263         * lib/c-stack.c: Likewise.
40264         * lib/c-stack.h: Likewise.
40265         * lib/c-strcasestr.c: Likewise.
40266         * lib/c-strcasestr.h: Likewise.
40267         * lib/c-strstr.c: Likewise.
40268         * lib/c-strstr.h: Likewise.
40269         * lib/c-strtod.c: Likewise.
40270         * lib/calloc.c: Likewise.
40271         * lib/canon-host.c: Likewise.
40272         * lib/canon-host.h: Likewise.
40273         * lib/canonicalize-lgpl.c: Likewise.
40274         * lib/canonicalize.c: Likewise.
40275         * lib/canonicalize.h: Likewise.
40276         * lib/ceil.c: Likewise.
40277         * lib/ceilf.c: Likewise.
40278         * lib/ceill.c: Likewise.
40279         * lib/chdir-long.c: Likewise.
40280         * lib/chdir-long.h: Likewise.
40281         * lib/chdir-safer.c: Likewise.
40282         * lib/chdir-safer.h: Likewise.
40283         * lib/chown.c: Likewise.
40284         * lib/classpath.c: Likewise.
40285         * lib/classpath.h: Likewise.
40286         * lib/clean-temp.c: Likewise.
40287         * lib/clean-temp.h: Likewise.
40288         * lib/cloexec.c: Likewise.
40289         * lib/close-stream.c: Likewise.
40290         * lib/closein.c: Likewise.
40291         * lib/closein.h: Likewise.
40292         * lib/closeout.c: Likewise.
40293         * lib/closeout.h: Likewise.
40294         * lib/concat-filename.c: Likewise.
40295         * lib/copy-file.c: Likewise.
40296         * lib/copy-file.h: Likewise.
40297         * lib/count-one-bits.h: Likewise.
40298         * lib/crc.c: Likewise.
40299         * lib/crc.h: Likewise.
40300         * lib/creat-safer.c: Likewise.
40301         * lib/csharpcomp.c: Likewise.
40302         * lib/csharpcomp.h: Likewise.
40303         * lib/csharpexec.c: Likewise.
40304         * lib/csharpexec.h: Likewise.
40305         * lib/cycle-check.c: Likewise.
40306         * lib/cycle-check.h: Likewise.
40307         * lib/diacrit.c: Likewise.
40308         * lib/diacrit.h: Likewise.
40309         * lib/diffseq.h: Likewise.
40310         * lib/dirchownmod.c: Likewise.
40311         * lib/dirent.in.h: Likewise.
40312         * lib/dirfd.c: Likewise.
40313         * lib/dirfd.h: Likewise.
40314         * lib/dirname.c: Likewise.
40315         * lib/dirname.h: Likewise.
40316         * lib/dummy.c: Likewise.
40317         * lib/dup-safer.c: Likewise.
40318         * lib/dup2.c: Likewise.
40319         * lib/eealloc.h: Likewise.
40320         * lib/error.c: Likewise.
40321         * lib/error.h: Likewise.
40322         * lib/euidaccess.c: Likewise.
40323         * lib/exclude.c: Likewise.
40324         * lib/exclude.h: Likewise.
40325         * lib/execute.c: Likewise.
40326         * lib/execute.h: Likewise.
40327         * lib/exitfail.c: Likewise.
40328         * lib/exitfail.h: Likewise.
40329         * lib/expl.c: Likewise.
40330         * lib/fatal-signal.c: Likewise.
40331         * lib/fatal-signal.h: Likewise.
40332         * lib/fbufmode.c: Likewise.
40333         * lib/fbufmode.h: Likewise.
40334         * lib/fchdir.c: Likewise.
40335         * lib/fchmodat.c: Likewise.
40336         * lib/fchownat.c: Likewise.
40337         * lib/fcntl--.h: Likewise.
40338         * lib/fcntl-safer.h: Likewise.
40339         * lib/fcntl.in.h: Likewise.
40340         * lib/fd-safer.c: Likewise.
40341         * lib/fflush.c: Likewise.
40342         * lib/file-has-acl.c: Likewise.
40343         * lib/file-set.c: Likewise.
40344         * lib/file-type.c: Likewise.
40345         * lib/file-type.h: Likewise.
40346         * lib/fileblocks.c: Likewise.
40347         * lib/filemode.c: Likewise.
40348         * lib/filemode.h: Likewise.
40349         * lib/filename.h: Likewise.
40350         * lib/filenamecat.c: Likewise.
40351         * lib/filenamecat.h: Likewise.
40352         * lib/findprog.c: Likewise.
40353         * lib/findprog.h: Likewise.
40354         * lib/float.in.h: Likewise.
40355         * lib/floor.c: Likewise.
40356         * lib/floorf.c: Likewise.
40357         * lib/floorl.c: Likewise.
40358         * lib/fopen-safer.c: Likewise.
40359         * lib/fopen.c: Likewise.
40360         * lib/fpending.c: Likewise.
40361         * lib/fpending.h: Likewise.
40362         * lib/fprintf.c: Likewise.
40363         * lib/fprintftime.h: Likewise.
40364         * lib/fpucw.h: Likewise.
40365         * lib/fpurge.c: Likewise.
40366         * lib/fpurge.h: Likewise.
40367         * lib/freadable.c: Likewise.
40368         * lib/freadable.h: Likewise.
40369         * lib/freadahead.c: Likewise.
40370         * lib/freadahead.h: Likewise.
40371         * lib/freading.c: Likewise.
40372         * lib/freading.h: Likewise.
40373         * lib/free.c: Likewise.
40374         * lib/freopen.c: Likewise.
40375         * lib/frexp.c: Likewise.
40376         * lib/frexpl.c: Likewise.
40377         * lib/fseek.c: Likewise.
40378         * lib/fseterr.c: Likewise.
40379         * lib/fseterr.h: Likewise.
40380         * lib/fstatat.c: Likewise.
40381         * lib/fstrcmp.c: Likewise.
40382         * lib/fstrcmp.h: Likewise.
40383         * lib/fsusage.c: Likewise.
40384         * lib/fsusage.h: Likewise.
40385         * lib/ftell.c: Likewise.
40386         * lib/ftello.c: Likewise.
40387         * lib/fts-cycle.c: Likewise.
40388         * lib/fts.c: Likewise.
40389         * lib/fts_.h: Likewise.
40390         * lib/full-read.c: Likewise.
40391         * lib/full-read.h: Likewise.
40392         * lib/full-write.c: Likewise.
40393         * lib/full-write.h: Likewise.
40394         * lib/fwritable.c: Likewise.
40395         * lib/fwritable.h: Likewise.
40396         * lib/fwriteerror.c: Likewise.
40397         * lib/fwriteerror.h: Likewise.
40398         * lib/fwriting.c: Likewise.
40399         * lib/fwriting.h: Likewise.
40400         * lib/gcd.c: Likewise.
40401         * lib/gcd.h: Likewise.
40402         * lib/getcwd.c: Likewise.
40403         * lib/getdate.h: Likewise.
40404         * lib/getdate.y: Likewise.
40405         * lib/getdomainname.c: Likewise.
40406         * lib/getdomainname.h: Likewise.
40407         * lib/getgroups.c: Likewise.
40408         * lib/gethostname.c: Likewise.
40409         * lib/gethrxtime.c: Likewise.
40410         * lib/gethrxtime.h: Likewise.
40411         * lib/getloadavg.c: Likewise.
40412         * lib/getndelim2.c: Likewise.
40413         * lib/getndelim2.h: Likewise.
40414         * lib/getnline.c: Likewise.
40415         * lib/getnline.h: Likewise.
40416         * lib/getopt.c: Likewise.
40417         * lib/getopt.in.h: Likewise.
40418         * lib/getopt1.c: Likewise.
40419         * lib/getopt_int.h: Likewise.
40420         * lib/getpagesize.h: Likewise.
40421         * lib/getsubopt.c: Likewise.
40422         * lib/gettime.c: Likewise.
40423         * lib/getugroups.c: Likewise.
40424         * lib/getugroups.h: Likewise.
40425         * lib/getusershell.c: Likewise.
40426         * lib/gl_anyavltree_list1.h: Likewise.
40427         * lib/gl_anyavltree_list2.h: Likewise.
40428         * lib/gl_anyhash_list1.h: Likewise.
40429         * lib/gl_anyhash_list2.h: Likewise.
40430         * lib/gl_anylinked_list1.h: Likewise.
40431         * lib/gl_anylinked_list2.h: Likewise.
40432         * lib/gl_anyrbtree_list1.h: Likewise.
40433         * lib/gl_anyrbtree_list2.h: Likewise.
40434         * lib/gl_anytree_list1.h: Likewise.
40435         * lib/gl_anytree_list2.h: Likewise.
40436         * lib/gl_anytree_oset.h: Likewise.
40437         * lib/gl_anytreehash_list1.h: Likewise.
40438         * lib/gl_anytreehash_list2.h: Likewise.
40439         * lib/gl_array_list.c: Likewise.
40440         * lib/gl_array_list.h: Likewise.
40441         * lib/gl_array_oset.c: Likewise.
40442         * lib/gl_array_oset.h: Likewise.
40443         * lib/gl_avltree_list.c: Likewise.
40444         * lib/gl_avltree_list.h: Likewise.
40445         * lib/gl_avltree_oset.c: Likewise.
40446         * lib/gl_avltree_oset.h: Likewise.
40447         * lib/gl_avltreehash_list.c: Likewise.
40448         * lib/gl_avltreehash_list.h: Likewise.
40449         * lib/gl_carray_list.c: Likewise.
40450         * lib/gl_carray_list.h: Likewise.
40451         * lib/gl_linked_list.c: Likewise.
40452         * lib/gl_linked_list.h: Likewise.
40453         * lib/gl_linkedhash_list.c: Likewise.
40454         * lib/gl_linkedhash_list.h: Likewise.
40455         * lib/gl_list.c: Likewise.
40456         * lib/gl_list.h: Likewise.
40457         * lib/gl_oset.c: Likewise.
40458         * lib/gl_oset.h: Likewise.
40459         * lib/gl_rbtree_list.c: Likewise.
40460         * lib/gl_rbtree_list.h: Likewise.
40461         * lib/gl_rbtree_oset.c: Likewise.
40462         * lib/gl_rbtree_oset.h: Likewise.
40463         * lib/gl_rbtreehash_list.c: Likewise.
40464         * lib/gl_rbtreehash_list.h: Likewise.
40465         * lib/gl_sublist.c: Likewise.
40466         * lib/gl_sublist.h: Likewise.
40467         * lib/group-member.c: Likewise.
40468         * lib/group-member.h: Likewise.
40469         * lib/hard-locale.c: Likewise.
40470         * lib/hard-locale.h: Likewise.
40471         * lib/hash-pjw.c: Likewise.
40472         * lib/hash-pjw.h: Likewise.
40473         * lib/hash-triple.c: Likewise.
40474         * lib/hash.c: Likewise.
40475         * lib/hash.h: Likewise.
40476         * lib/human.c: Likewise.
40477         * lib/human.h: Likewise.
40478         * lib/i-ring.c: Likewise.
40479         * lib/i-ring.h: Likewise.
40480         * lib/idcache.c: Likewise.
40481         * lib/imaxabs.c: Likewise.
40482         * lib/imaxdiv.c: Likewise.
40483         * lib/inet_pton.c: Likewise.
40484         * lib/inet_pton.h: Likewise.
40485         * lib/intprops.h: Likewise.
40486         * lib/inttostr.c: Likewise.
40487         * lib/inttostr.h: Likewise.
40488         * lib/inttypes.in.h: Likewise.
40489         * lib/isapipe.c: Likewise.
40490         * lib/isdir.c: Likewise.
40491         * lib/isnan.c: Likewise.
40492         * lib/isnan.h: Likewise.
40493         * lib/isnanf.c: Likewise.
40494         * lib/isnanf.h: Likewise.
40495         * lib/isnanl-nolibm.h: Likewise.
40496         * lib/isnanl.c: Likewise.
40497         * lib/isnanl.h: Likewise.
40498         * lib/javacomp.c: Likewise.
40499         * lib/javacomp.h: Likewise.
40500         * lib/javaexec.c: Likewise.
40501         * lib/javaexec.h: Likewise.
40502         * lib/javaversion.c: Likewise.
40503         * lib/javaversion.h: Likewise.
40504         * lib/javaversion.java: Likewise.
40505         * lib/lbrkprop.h: Likewise.
40506         * lib/lchmod.h: Likewise.
40507         * lib/lchown.c: Likewise.
40508         * lib/ldexpl.c: Likewise.
40509         * lib/linebreak.c: Likewise.
40510         * lib/linebreak.h: Likewise.
40511         * lib/linebuffer.c: Likewise.
40512         * lib/linebuffer.h: Likewise.
40513         * lib/locale.in.h: Likewise.
40514         * lib/logl.c: Likewise.
40515         * lib/long-options.c: Likewise.
40516         * lib/long-options.h: Likewise.
40517         * lib/lstat.c: Likewise.
40518         * lib/lstat.h: Likewise.
40519         * lib/math.in.h: Likewise.
40520         * lib/mbchar.c: Likewise.
40521         * lib/mbchar.h: Likewise.
40522         * lib/mbfile.h: Likewise.
40523         * lib/mbiter.h: Likewise.
40524         * lib/mbscasecmp.c: Likewise.
40525         * lib/mbscasestr.c: Likewise.
40526         * lib/mbschr.c: Likewise.
40527         * lib/mbscspn.c: Likewise.
40528         * lib/mbslen.c: Likewise.
40529         * lib/mbsncasecmp.c: Likewise.
40530         * lib/mbsnlen.c: Likewise.
40531         * lib/mbspbrk.c: Likewise.
40532         * lib/mbspcasecmp.c: Likewise.
40533         * lib/mbsrchr.c: Likewise.
40534         * lib/mbssep.c: Likewise.
40535         * lib/mbsspn.c: Likewise.
40536         * lib/mbsstr.c: Likewise.
40537         * lib/mbstok_r.c: Likewise.
40538         * lib/mbswidth.c: Likewise.
40539         * lib/mbswidth.h: Likewise.
40540         * lib/mbuiter.h: Likewise.
40541         * lib/memcasecmp.c: Likewise.
40542         * lib/memcasecmp.h: Likewise.
40543         * lib/memchr.c: Likewise.
40544         * lib/memcmp.c: Likewise.
40545         * lib/memcoll.c: Likewise.
40546         * lib/memcoll.h: Likewise.
40547         * lib/memcpy.c: Likewise.
40548         * lib/memrchr.c: Likewise.
40549         * lib/mkancesdirs.c: Likewise.
40550         * lib/mkdir-p.c: Likewise.
40551         * lib/mkdir-p.h: Likewise.
40552         * lib/mkdir.c: Likewise.
40553         * lib/mkdirat.c: Likewise.
40554         * lib/mkdtemp.c: Likewise.
40555         * lib/mkstemp-safer.c: Likewise.
40556         * lib/mkstemp.c: Likewise.
40557         * lib/modechange.c: Likewise.
40558         * lib/modechange.h: Likewise.
40559         * lib/mountlist.c: Likewise.
40560         * lib/mountlist.h: Likewise.
40561         * lib/mpsort.c: Likewise.
40562         * lib/nanosleep.c: Likewise.
40563         * lib/obstack.c: Likewise.
40564         * lib/obstack.h: Likewise.
40565         * lib/open-safer.c: Likewise.
40566         * lib/open.c: Likewise.
40567         * lib/openat-die.c: Likewise.
40568         * lib/openat-priv.h: Likewise.
40569         * lib/openat-proc.c: Likewise.
40570         * lib/openat.c: Likewise.
40571         * lib/openat.h: Likewise.
40572         * lib/pagealign_alloc.c: Likewise.
40573         * lib/pagealign_alloc.h: Likewise.
40574         * lib/physmem.c: Likewise.
40575         * lib/physmem.h: Likewise.
40576         * lib/pipe-safer.c: Likewise.
40577         * lib/pipe.c: Likewise.
40578         * lib/pipe.h: Likewise.
40579         * lib/posixtm.c: Likewise.
40580         * lib/posixtm.h: Likewise.
40581         * lib/posixver.c: Likewise.
40582         * lib/printf-frexp.c: Likewise.
40583         * lib/printf-frexp.h: Likewise.
40584         * lib/printf-frexpl.c: Likewise.
40585         * lib/printf-frexpl.h: Likewise.
40586         * lib/printf.c: Likewise.
40587         * lib/progname.c: Likewise.
40588         * lib/progname.h: Likewise.
40589         * lib/progreloc.c: Likewise.
40590         * lib/putenv.c: Likewise.
40591         * lib/quote.c: Likewise.
40592         * lib/quote.h: Likewise.
40593         * lib/quotearg.c: Likewise.
40594         * lib/quotearg.h: Likewise.
40595         * lib/raise.c: Likewise.
40596         * lib/readline.c: Likewise.
40597         * lib/readline.h: Likewise.
40598         * lib/readlink.c: Likewise.
40599         * lib/readtokens.c: Likewise.
40600         * lib/readtokens.h: Likewise.
40601         * lib/readtokens0.c: Likewise.
40602         * lib/readtokens0.h: Likewise.
40603         * lib/readutmp.c: Likewise.
40604         * lib/readutmp.h: Likewise.
40605         * lib/realloc.c: Likewise.
40606         * lib/relocwrapper.c: Likewise.
40607         * lib/rename-dest-slash.c: Likewise.
40608         * lib/rename.c: Likewise.
40609         * lib/rmdir.c: Likewise.
40610         * lib/rpmatch.c: Likewise.
40611         * lib/safe-read.c: Likewise.
40612         * lib/safe-read.h: Likewise.
40613         * lib/safe-write.c: Likewise.
40614         * lib/safe-write.h: Likewise.
40615         * lib/same-inode.h: Likewise.
40616         * lib/same.c: Likewise.
40617         * lib/same.h: Likewise.
40618         * lib/save-cwd.c: Likewise.
40619         * lib/save-cwd.h: Likewise.
40620         * lib/savedir.c: Likewise.
40621         * lib/savedir.h: Likewise.
40622         * lib/savewd.c: Likewise.
40623         * lib/savewd.h: Likewise.
40624         * lib/search.in.h: Likewise.
40625         * lib/setenv.c: Likewise.
40626         * lib/setenv.h: Likewise.
40627         * lib/settime.c: Likewise.
40628         * lib/sh-quote.c: Likewise.
40629         * lib/sh-quote.h: Likewise.
40630         * lib/sig2str.c: Likewise.
40631         * lib/sig2str.h: Likewise.
40632         * lib/signal.in.h: Likewise.
40633         * lib/signbitd.c: Likewise.
40634         * lib/signbitf.c: Likewise.
40635         * lib/signbitl.c: Likewise.
40636         * lib/sigprocmask.c: Likewise.
40637         * lib/sincosl.c: Likewise.
40638         * lib/sleep.c: Likewise.
40639         * lib/sprintf.c: Likewise.
40640         * lib/sqrtl.c: Likewise.
40641         * lib/stat-time.h: Likewise.
40642         * lib/stdio--.h: Likewise.
40643         * lib/stdio-safer.h: Likewise.
40644         * lib/stdlib--.h: Likewise.
40645         * lib/stdlib-safer.h: Likewise.
40646         * lib/stdlib.in.h: Likewise.
40647         * lib/stpcpy.c: Likewise.
40648         * lib/stpncpy.c: Likewise.
40649         * lib/strchrnul.c: Likewise.
40650         * lib/strcspn.c: Likewise.
40651         * lib/strerror.c: Likewise.
40652         * lib/strftime.c: Likewise.
40653         * lib/strftime.h: Likewise.
40654         * lib/striconveh.c: Likewise.
40655         * lib/striconveh.h: Likewise.
40656         * lib/striconveha.c: Likewise.
40657         * lib/striconveha.h: Likewise.
40658         * lib/stripslash.c: Likewise.
40659         * lib/strnlen1.c: Likewise.
40660         * lib/strnlen1.h: Likewise.
40661         * lib/strtod.c: Likewise.
40662         * lib/strtoimax.c: Likewise.
40663         * lib/strtok_r.c: Likewise.
40664         * lib/strtol.c: Likewise.
40665         * lib/strtoll.c: Likewise.
40666         * lib/strtoul.c: Likewise.
40667         * lib/strtoull.c: Likewise.
40668         * lib/sysexits.in.h: Likewise.
40669         * lib/tempname.c: Likewise.
40670         * lib/tempname.h: Likewise.
40671         * lib/timespec.h: Likewise.
40672         * lib/tls.c: Likewise.
40673         * lib/tls.h: Likewise.
40674         * lib/tmpdir.c: Likewise.
40675         * lib/tmpdir.h: Likewise.
40676         * lib/tmpfile-safer.c: Likewise.
40677         * lib/tmpfile.c: Likewise.
40678         * lib/trigl.c: Likewise.
40679         * lib/trigl.h: Likewise.
40680         * lib/trim.c: Likewise.
40681         * lib/trim.h: Likewise.
40682         * lib/trunc.c: Likewise.
40683         * lib/truncf.c: Likewise.
40684         * lib/truncl.c: Likewise.
40685         * lib/tsearch.c: Likewise.
40686         * lib/unicodeio.c: Likewise.
40687         * lib/unicodeio.h: Likewise.
40688         * lib/unistd--.h: Likewise.
40689         * lib/unistd-safer.h: Likewise.
40690         * lib/unistdio/ulc-fprintf.c: Likewise.
40691         * lib/unistdio/ulc-vfprintf.c: Likewise.
40692         * lib/unlinkdir.c: Likewise.
40693         * lib/unlinkdir.h: Likewise.
40694         * lib/unlocked-io.h: Likewise.
40695         * lib/unsetenv.c: Likewise.
40696         * lib/userspec.c: Likewise.
40697         * lib/utime.c: Likewise.
40698         * lib/utimecmp.c: Likewise.
40699         * lib/utimecmp.h: Likewise.
40700         * lib/utimens.c: Likewise.
40701         * lib/verify.h: Likewise.
40702         * lib/verror.c: Likewise.
40703         * lib/verror.h: Likewise.
40704         * lib/version-etc-fsf.c: Likewise.
40705         * lib/version-etc.c: Likewise.
40706         * lib/version-etc.h: Likewise.
40707         * lib/vfprintf.c: Likewise.
40708         * lib/vprintf.c: Likewise.
40709         * lib/vsprintf.c: Likewise.
40710         * lib/w32spawn.h: Likewise.
40711         * lib/wait-process.c: Likewise.
40712         * lib/wait-process.h: Likewise.
40713         * lib/wcwidth.c: Likewise.
40714         * lib/write-any-file.c: Likewise.
40715         * lib/xalloc-die.c: Likewise.
40716         * lib/xalloc.h: Likewise.
40717         * lib/xasprintf.c: Likewise.
40718         * lib/xgetcwd.c: Likewise.
40719         * lib/xgetcwd.h: Likewise.
40720         * lib/xgetdomainname.c: Likewise.
40721         * lib/xgetdomainname.h: Likewise.
40722         * lib/xgethostname.c: Likewise.
40723         * lib/xmalloc.c: Likewise.
40724         * lib/xmalloca.c: Likewise.
40725         * lib/xmalloca.h: Likewise.
40726         * lib/xmemcoll.c: Likewise.
40727         * lib/xnanosleep.c: Likewise.
40728         * lib/xreadlink.c: Likewise.
40729         * lib/xreadlink.h: Likewise.
40730         * lib/xsetenv.c: Likewise.
40731         * lib/xsetenv.h: Likewise.
40732         * lib/xstriconv.c: Likewise.
40733         * lib/xstriconv.h: Likewise.
40734         * lib/xstrndup.c: Likewise.
40735         * lib/xstrndup.h: Likewise.
40736         * lib/xstrtod.c: Likewise.
40737         * lib/xstrtod.h: Likewise.
40738         * lib/xstrtol-error.c: Likewise.
40739         * lib/xstrtol.c: Likewise.
40740         * lib/xstrtol.h: Likewise.
40741         * lib/xtime.h: Likewise.
40742         * lib/xvasprintf.c: Likewise.
40743         * lib/xvasprintf.h: Likewise.
40744         * lib/yesno.c: Likewise.
40745         * lib/yesno.h: Likewise.
40746         * posix-modules: Likewise.
40747         * tests/test-alloca-opt.c: Likewise.
40748         * tests/test-arcfour.c: Likewise.
40749         * tests/test-arctwo.c: Likewise.
40750         * tests/test-argmatch.c: Likewise.
40751         * tests/test-argp-2.sh: Likewise.
40752         * tests/test-argp.c: Likewise.
40753         * tests/test-arpa_inet.c: Likewise.
40754         * tests/test-array_list.c: Likewise.
40755         * tests/test-array_oset.c: Likewise.
40756         * tests/test-atexit.c: Likewise.
40757         * tests/test-avltree_list.c: Likewise.
40758         * tests/test-avltree_oset.c: Likewise.
40759         * tests/test-avltreehash_list.c: Likewise.
40760         * tests/test-base64.c: Likewise.
40761         * tests/test-binary-io.c: Likewise.
40762         * tests/test-byteswap.c: Likewise.
40763         * tests/test-c-ctype.c: Likewise.
40764         * tests/test-c-strcasecmp.c: Likewise.
40765         * tests/test-c-strcasestr.c: Likewise.
40766         * tests/test-c-strncasecmp.c: Likewise.
40767         * tests/test-c-strstr.c: Likewise.
40768         * tests/test-canonicalize-lgpl.c: Likewise.
40769         * tests/test-canonicalize.c: Likewise.
40770         * tests/test-carray_list.c: Likewise.
40771         * tests/test-ceilf.c: Likewise.
40772         * tests/test-ceill.c: Likewise.
40773         * tests/test-count-one-bits.c: Likewise.
40774         * tests/test-crc.c: Likewise.
40775         * tests/test-dirname.c: Likewise.
40776         * tests/test-fbufmode.c: Likewise.
40777         * tests/test-fcntl.c: Likewise.
40778         * tests/test-fflush.c: Likewise.
40779         * tests/test-floorf.c: Likewise.
40780         * tests/test-floorl.c: Likewise.
40781         * tests/test-fopen.c: Likewise.
40782         * tests/test-fprintf-posix.c: Likewise.
40783         * tests/test-fprintf-posix.h: Likewise.
40784         * tests/test-fpurge.c: Likewise.
40785         * tests/test-freadable.c: Likewise.
40786         * tests/test-freadahead.c: Likewise.
40787         * tests/test-freading.c: Likewise.
40788         * tests/test-freopen.c: Likewise.
40789         * tests/test-frexp.c: Likewise.
40790         * tests/test-frexpl.c: Likewise.
40791         * tests/test-fseek.c: Likewise.
40792         * tests/test-fseeko.c: Likewise.
40793         * tests/test-fseterr.c: Likewise.
40794         * tests/test-fstrcmp.c: Likewise.
40795         * tests/test-ftell.c: Likewise.
40796         * tests/test-ftello.c: Likewise.
40797         * tests/test-fwritable.c: Likewise.
40798         * tests/test-fwriting.c: Likewise.
40799         * tests/test-getaddrinfo.c: Likewise.
40800         * tests/test-getpass.c: Likewise.
40801         * tests/test-gettimeofday.c: Likewise.
40802         * tests/test-hmac-md5.c: Likewise.
40803         * tests/test-hmac-sha1.c: Likewise.
40804         * tests/test-iconv.c: Likewise.
40805         * tests/test-iconvme.c: Likewise.
40806         * tests/test-inttypes.c: Likewise.
40807         * tests/test-isnan.c: Likewise.
40808         * tests/test-isnanf.c: Likewise.
40809         * tests/test-isnanl-nolibm.c: Likewise.
40810         * tests/test-isnanl.c: Likewise.
40811         * tests/test-isnanl.h: Likewise.
40812         * tests/test-ldexpl.c: Likewise.
40813         * tests/test-linked_list.c: Likewise.
40814         * tests/test-linkedhash_list.c: Likewise.
40815         * tests/test-locale.c: Likewise.
40816         * tests/test-localename.c: Likewise.
40817         * tests/test-lock.c: Likewise.
40818         * tests/test-lseek.c: Likewise.
40819         * tests/test-malloca.c: Likewise.
40820         * tests/test-math.c: Likewise.
40821         * tests/test-mbscasecmp.c: Likewise.
40822         * tests/test-mbscasestr1.c: Likewise.
40823         * tests/test-mbscasestr2.c: Likewise.
40824         * tests/test-mbscasestr3.c: Likewise.
40825         * tests/test-mbscasestr4.c: Likewise.
40826         * tests/test-mbschr.c: Likewise.
40827         * tests/test-mbscspn.c: Likewise.
40828         * tests/test-mbsncasecmp.c: Likewise.
40829         * tests/test-mbspbrk.c: Likewise.
40830         * tests/test-mbspcasecmp.c: Likewise.
40831         * tests/test-mbsrchr.c: Likewise.
40832         * tests/test-mbsspn.c: Likewise.
40833         * tests/test-mbsstr1.c: Likewise.
40834         * tests/test-mbsstr2.c: Likewise.
40835         * tests/test-mbsstr3.c: Likewise.
40836         * tests/test-md5.c: Likewise.
40837         * tests/test-memmem.c: Likewise.
40838         * tests/test-netinet_in.c: Likewise.
40839         * tests/test-open.c: Likewise.
40840         * tests/test-printf-frexp.c: Likewise.
40841         * tests/test-printf-frexpl.c: Likewise.
40842         * tests/test-printf-posix.c: Likewise.
40843         * tests/test-printf-posix.h: Likewise.
40844         * tests/test-rbtree_list.c: Likewise.
40845         * tests/test-rbtree_oset.c: Likewise.
40846         * tests/test-rbtreehash_list.c: Likewise.
40847         * tests/test-read-file.c: Likewise.
40848         * tests/test-rijndael.c: Likewise.
40849         * tests/test-search.c: Likewise.
40850         * tests/test-signbit.c: Likewise.
40851         * tests/test-sleep.c: Likewise.
40852         * tests/test-snprintf-posix.c: Likewise.
40853         * tests/test-snprintf-posix.h: Likewise.
40854         * tests/test-snprintf.c: Likewise.
40855         * tests/test-sprintf-posix.c: Likewise.
40856         * tests/test-sprintf-posix.h: Likewise.
40857         * tests/test-stat-time.c: Likewise.
40858         * tests/test-stdbool.c: Likewise.
40859         * tests/test-stdint.c: Likewise.
40860         * tests/test-stdio.c: Likewise.
40861         * tests/test-stdlib.c: Likewise.
40862         * tests/test-stpncpy.c: Likewise.
40863         * tests/test-strcasestr.c: Likewise.
40864         * tests/test-striconv.c: Likewise.
40865         * tests/test-striconveh.c: Likewise.
40866         * tests/test-striconveha.c: Likewise.
40867         * tests/test-string.c: Likewise.
40868         * tests/test-sys_select.c: Likewise.
40869         * tests/test-sys_socket.c: Likewise.
40870         * tests/test-sys_stat.c: Likewise.
40871         * tests/test-sys_time.c: Likewise.
40872         * tests/test-sysexits.c: Likewise.
40873         * tests/test-time.c: Likewise.
40874         * tests/test-tls.c: Likewise.
40875         * tests/test-trunc.c: Likewise.
40876         * tests/test-truncf.c: Likewise.
40877         * tests/test-truncl.c: Likewise.
40878         * tests/test-unistd.c: Likewise.
40879         * tests/test-vasnprintf-posix.c: Likewise.
40880         * tests/test-vasnprintf-posix2.c: Likewise.
40881         * tests/test-vasnprintf.c: Likewise.
40882         * tests/test-vasprintf-posix.c: Likewise.
40883         * tests/test-vasprintf.c: Likewise.
40884         * tests/test-verify.c: Likewise.
40885         * tests/test-vfprintf-posix.c: Likewise.
40886         * tests/test-vprintf-posix.c: Likewise.
40887         * tests/test-vsnprintf-posix.c: Likewise.
40888         * tests/test-vsnprintf.c: Likewise.
40889         * tests/test-vsprintf-posix.c: Likewise.
40890         * tests/test-wchar.c: Likewise.
40891         * tests/test-wctype.c: Likewise.
40892         * tests/test-wcwidth.c: Likewise.
40893         * tests/test-xstrtol.c: Likewise.
40894         * tests/test-xvasprintf.c: Likewise.
40895         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40896         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40897         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40898         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40899         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40900         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40901         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40902         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40903         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40904         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40905         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40906         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40907         * tests/uniname/test-uninames.c: Likewise.
40908         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40909         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40910         * tests/unistdio/test-u16-printf1.h: Likewise.
40911         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40912         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40913         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40914         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40915         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40916         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40917         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40918         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40919         * tests/unistdio/test-u32-printf1.h: Likewise.
40920         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40921         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40922         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40923         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40924         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40925         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40926         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40927         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40928         * tests/unistdio/test-u8-printf1.h: Likewise.
40929         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40930         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40931         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40932         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40933         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40934         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40935         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40936         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40937         * tests/unistdio/test-ulc-printf1.h: Likewise.
40938         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40939         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40940         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40941         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40942         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40943         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40944         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40945         * tests/uniwidth/test-u16-width.c: Likewise.
40946         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40947         * tests/uniwidth/test-u32-width.c: Likewise.
40948         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40949         * tests/uniwidth/test-u8-width.c: Likewise.
40950         * tests/uniwidth/test-uc_width.c: Likewise.
40951         * config/srclist-update: Likewise.
40952         (fixlicense): Update to GPLv3+.
40953
40954         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40955         * tests/test-tsearch.c: Change copyright notice.
40956
40957         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40958         * lib/c-strcaseeq.h: Change copyright notice.
40959         * lib/streq.h: Likewise.
40960         * lib/uniconv.h: Likewise.
40961         * lib/uniconv/u-conv-from-enc.h: Likewise.
40962         * lib/uniconv/u-conv-to-enc.h: Likewise.
40963         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40964         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40965         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40966         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40967         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40968         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40969         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40970         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40971         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40972         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40973         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40974         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40975         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40976         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40977         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40978         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40979         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40980         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40981         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40982         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40983         * lib/uniname.h: Likewise.
40984         * lib/uniname/uniname.c: Likewise.
40985         * lib/unistdio.h: Likewise.
40986         * lib/unistdio/u-asnprintf.h: Likewise.
40987         * lib/unistdio/u-asprintf.h: Likewise.
40988         * lib/unistdio/u-printf-args.c: Likewise.
40989         * lib/unistdio/u-printf-args.h: Likewise.
40990         * lib/unistdio/u-printf-parse.h: Likewise.
40991         * lib/unistdio/u-snprintf.h: Likewise.
40992         * lib/unistdio/u-sprintf.h: Likewise.
40993         * lib/unistdio/u-vasprintf.h: Likewise.
40994         * lib/unistdio/u-vsnprintf.h: Likewise.
40995         * lib/unistdio/u-vsprintf.h: Likewise.
40996         * lib/unistdio/u16-asnprintf.c: Likewise.
40997         * lib/unistdio/u16-asprintf.c: Likewise.
40998         * lib/unistdio/u16-printf-parse.c: Likewise.
40999         * lib/unistdio/u16-snprintf.c: Likewise.
41000         * lib/unistdio/u16-sprintf.c: Likewise.
41001         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
41002         * lib/unistdio/u16-u16-asprintf.c: Likewise.
41003         * lib/unistdio/u16-u16-snprintf.c: Likewise.
41004         * lib/unistdio/u16-u16-sprintf.c: Likewise.
41005         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
41006         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
41007         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
41008         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
41009         * lib/unistdio/u16-vasnprintf.c: Likewise.
41010         * lib/unistdio/u16-vasprintf.c: Likewise.
41011         * lib/unistdio/u16-vsnprintf.c: Likewise.
41012         * lib/unistdio/u16-vsprintf.c: Likewise.
41013         * lib/unistdio/u32-asnprintf.c: Likewise.
41014         * lib/unistdio/u32-asprintf.c: Likewise.
41015         * lib/unistdio/u32-printf-parse.c: Likewise.
41016         * lib/unistdio/u32-snprintf.c: Likewise.
41017         * lib/unistdio/u32-sprintf.c: Likewise.
41018         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
41019         * lib/unistdio/u32-u32-asprintf.c: Likewise.
41020         * lib/unistdio/u32-u32-snprintf.c: Likewise.
41021         * lib/unistdio/u32-u32-sprintf.c: Likewise.
41022         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
41023         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
41024         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
41025         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
41026         * lib/unistdio/u32-vasnprintf.c: Likewise.
41027         * lib/unistdio/u32-vasprintf.c: Likewise.
41028         * lib/unistdio/u32-vsnprintf.c: Likewise.
41029         * lib/unistdio/u32-vsprintf.c: Likewise.
41030         * lib/unistdio/u8-asnprintf.c: Likewise.
41031         * lib/unistdio/u8-asprintf.c: Likewise.
41032         * lib/unistdio/u8-printf-parse.c: Likewise.
41033         * lib/unistdio/u8-snprintf.c: Likewise.
41034         * lib/unistdio/u8-sprintf.c: Likewise.
41035         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
41036         * lib/unistdio/u8-u8-asprintf.c: Likewise.
41037         * lib/unistdio/u8-u8-snprintf.c: Likewise.
41038         * lib/unistdio/u8-u8-sprintf.c: Likewise.
41039         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
41040         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
41041         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
41042         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
41043         * lib/unistdio/u8-vasnprintf.c: Likewise.
41044         * lib/unistdio/u8-vasprintf.c: Likewise.
41045         * lib/unistdio/u8-vsnprintf.c: Likewise.
41046         * lib/unistdio/u8-vsprintf.c: Likewise.
41047         * lib/unistdio/ulc-asnprintf.c: Likewise.
41048         * lib/unistdio/ulc-asprintf.c: Likewise.
41049         * lib/unistdio/ulc-printf-parse.c: Likewise.
41050         * lib/unistdio/ulc-snprintf.c: Likewise.
41051         * lib/unistdio/ulc-sprintf.c: Likewise.
41052         * lib/unistdio/ulc-vasnprintf.c: Likewise.
41053         * lib/unistdio/ulc-vasprintf.c: Likewise.
41054         * lib/unistdio/ulc-vsnprintf.c: Likewise.
41055         * lib/unistdio/ulc-vsprintf.c: Likewise.
41056         * lib/unistr.h: Likewise.
41057         * lib/unistr/u-cpy-alloc.h: Likewise.
41058         * lib/unistr/u-cpy.h: Likewise.
41059         * lib/unistr/u-endswith.h: Likewise.
41060         * lib/unistr/u-move.h: Likewise.
41061         * lib/unistr/u-set.h: Likewise.
41062         * lib/unistr/u-startswith.h: Likewise.
41063         * lib/unistr/u-stpcpy.h: Likewise.
41064         * lib/unistr/u-stpncpy.h: Likewise.
41065         * lib/unistr/u-strcat.h: Likewise.
41066         * lib/unistr/u-strcpy.h: Likewise.
41067         * lib/unistr/u-strcspn.h: Likewise.
41068         * lib/unistr/u-strdup.h: Likewise.
41069         * lib/unistr/u-strlen.h: Likewise.
41070         * lib/unistr/u-strncat.h: Likewise.
41071         * lib/unistr/u-strncpy.h: Likewise.
41072         * lib/unistr/u-strnlen.h: Likewise.
41073         * lib/unistr/u-strpbrk.h: Likewise.
41074         * lib/unistr/u-strspn.h: Likewise.
41075         * lib/unistr/u-strstr.h: Likewise.
41076         * lib/unistr/u-strtok.h: Likewise.
41077         * lib/unistr/u16-check.c: Likewise.
41078         * lib/unistr/u16-chr.c: Likewise.
41079         * lib/unistr/u16-cmp.c: Likewise.
41080         * lib/unistr/u16-cpy-alloc.c: Likewise.
41081         * lib/unistr/u16-cpy.c: Likewise.
41082         * lib/unistr/u16-endswith.c: Likewise.
41083         * lib/unistr/u16-mblen.c: Likewise.
41084         * lib/unistr/u16-mbsnlen.c: Likewise.
41085         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41086         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41087         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41088         * lib/unistr/u16-mbtouc.c: Likewise.
41089         * lib/unistr/u16-mbtoucr.c: Likewise.
41090         * lib/unistr/u16-move.c: Likewise.
41091         * lib/unistr/u16-next.c: Likewise.
41092         * lib/unistr/u16-prev.c: Likewise.
41093         * lib/unistr/u16-set.c: Likewise.
41094         * lib/unistr/u16-startswith.c: Likewise.
41095         * lib/unistr/u16-stpcpy.c: Likewise.
41096         * lib/unistr/u16-stpncpy.c: Likewise.
41097         * lib/unistr/u16-strcat.c: Likewise.
41098         * lib/unistr/u16-strchr.c: Likewise.
41099         * lib/unistr/u16-strcmp.c: Likewise.
41100         * lib/unistr/u16-strcpy.c: Likewise.
41101         * lib/unistr/u16-strcspn.c: Likewise.
41102         * lib/unistr/u16-strdup.c: Likewise.
41103         * lib/unistr/u16-strlen.c: Likewise.
41104         * lib/unistr/u16-strmblen.c: Likewise.
41105         * lib/unistr/u16-strmbtouc.c: Likewise.
41106         * lib/unistr/u16-strncat.c: Likewise.
41107         * lib/unistr/u16-strncmp.c: Likewise.
41108         * lib/unistr/u16-strncpy.c: Likewise.
41109         * lib/unistr/u16-strnlen.c: Likewise.
41110         * lib/unistr/u16-strpbrk.c: Likewise.
41111         * lib/unistr/u16-strrchr.c: Likewise.
41112         * lib/unistr/u16-strspn.c: Likewise.
41113         * lib/unistr/u16-strstr.c: Likewise.
41114         * lib/unistr/u16-strtok.c: Likewise.
41115         * lib/unistr/u16-to-u32.c: Likewise.
41116         * lib/unistr/u16-to-u8.c: Likewise.
41117         * lib/unistr/u16-uctomb-aux.c: Likewise.
41118         * lib/unistr/u16-uctomb.c: Likewise.
41119         * lib/unistr/u32-check.c: Likewise.
41120         * lib/unistr/u32-chr.c: Likewise.
41121         * lib/unistr/u32-cmp.c: Likewise.
41122         * lib/unistr/u32-cpy-alloc.c: Likewise.
41123         * lib/unistr/u32-cpy.c: Likewise.
41124         * lib/unistr/u32-endswith.c: Likewise.
41125         * lib/unistr/u32-mblen.c: Likewise.
41126         * lib/unistr/u32-mbsnlen.c: Likewise.
41127         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41128         * lib/unistr/u32-mbtouc.c: Likewise.
41129         * lib/unistr/u32-mbtoucr.c: Likewise.
41130         * lib/unistr/u32-move.c: Likewise.
41131         * lib/unistr/u32-next.c: Likewise.
41132         * lib/unistr/u32-prev.c: Likewise.
41133         * lib/unistr/u32-set.c: Likewise.
41134         * lib/unistr/u32-startswith.c: Likewise.
41135         * lib/unistr/u32-stpcpy.c: Likewise.
41136         * lib/unistr/u32-stpncpy.c: Likewise.
41137         * lib/unistr/u32-strcat.c: Likewise.
41138         * lib/unistr/u32-strchr.c: Likewise.
41139         * lib/unistr/u32-strcmp.c: Likewise.
41140         * lib/unistr/u32-strcpy.c: Likewise.
41141         * lib/unistr/u32-strcspn.c: Likewise.
41142         * lib/unistr/u32-strdup.c: Likewise.
41143         * lib/unistr/u32-strlen.c: Likewise.
41144         * lib/unistr/u32-strmblen.c: Likewise.
41145         * lib/unistr/u32-strmbtouc.c: Likewise.
41146         * lib/unistr/u32-strncat.c: Likewise.
41147         * lib/unistr/u32-strncmp.c: Likewise.
41148         * lib/unistr/u32-strncpy.c: Likewise.
41149         * lib/unistr/u32-strnlen.c: Likewise.
41150         * lib/unistr/u32-strpbrk.c: Likewise.
41151         * lib/unistr/u32-strrchr.c: Likewise.
41152         * lib/unistr/u32-strspn.c: Likewise.
41153         * lib/unistr/u32-strstr.c: Likewise.
41154         * lib/unistr/u32-strtok.c: Likewise.
41155         * lib/unistr/u32-to-u16.c: Likewise.
41156         * lib/unistr/u32-to-u8.c: Likewise.
41157         * lib/unistr/u32-uctomb.c: Likewise.
41158         * lib/unistr/u8-check.c: Likewise.
41159         * lib/unistr/u8-chr.c: Likewise.
41160         * lib/unistr/u8-cmp.c: Likewise.
41161         * lib/unistr/u8-cpy-alloc.c: Likewise.
41162         * lib/unistr/u8-cpy.c: Likewise.
41163         * lib/unistr/u8-endswith.c: Likewise.
41164         * lib/unistr/u8-mblen.c: Likewise.
41165         * lib/unistr/u8-mbsnlen.c: Likewise.
41166         * lib/unistr/u8-mbtouc-aux.c: Likewise.
41167         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41168         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41169         * lib/unistr/u8-mbtouc.c: Likewise.
41170         * lib/unistr/u8-mbtoucr.c: Likewise.
41171         * lib/unistr/u8-move.c: Likewise.
41172         * lib/unistr/u8-next.c: Likewise.
41173         * lib/unistr/u8-prev.c: Likewise.
41174         * lib/unistr/u8-set.c: Likewise.
41175         * lib/unistr/u8-startswith.c: Likewise.
41176         * lib/unistr/u8-stpcpy.c: Likewise.
41177         * lib/unistr/u8-stpncpy.c: Likewise.
41178         * lib/unistr/u8-strcat.c: Likewise.
41179         * lib/unistr/u8-strchr.c: Likewise.
41180         * lib/unistr/u8-strcmp.c: Likewise.
41181         * lib/unistr/u8-strcpy.c: Likewise.
41182         * lib/unistr/u8-strcspn.c: Likewise.
41183         * lib/unistr/u8-strdup.c: Likewise.
41184         * lib/unistr/u8-strlen.c: Likewise.
41185         * lib/unistr/u8-strmblen.c: Likewise.
41186         * lib/unistr/u8-strmbtouc.c: Likewise.
41187         * lib/unistr/u8-strncat.c: Likewise.
41188         * lib/unistr/u8-strncmp.c: Likewise.
41189         * lib/unistr/u8-strncpy.c: Likewise.
41190         * lib/unistr/u8-strnlen.c: Likewise.
41191         * lib/unistr/u8-strpbrk.c: Likewise.
41192         * lib/unistr/u8-strrchr.c: Likewise.
41193         * lib/unistr/u8-strspn.c: Likewise.
41194         * lib/unistr/u8-strstr.c: Likewise.
41195         * lib/unistr/u8-strtok.c: Likewise.
41196         * lib/unistr/u8-to-u16.c: Likewise.
41197         * lib/unistr/u8-to-u32.c: Likewise.
41198         * lib/unistr/u8-uctomb-aux.c: Likewise.
41199         * lib/unistr/u8-uctomb.c: Likewise.
41200         * lib/unitypes.h: Likewise.
41201         * lib/uniwidth.h: Likewise.
41202         * lib/uniwidth/cjk.h: Likewise.
41203         * lib/uniwidth/u16-strwidth.c: Likewise.
41204         * lib/uniwidth/u16-width.c: Likewise.
41205         * lib/uniwidth/u32-strwidth.c: Likewise.
41206         * lib/uniwidth/u32-width.c: Likewise.
41207         * lib/uniwidth/u8-strwidth.c: Likewise.
41208         * lib/uniwidth/u8-width.c: Likewise.
41209         * lib/uniwidth/width.c: Likewise.
41210
41211 2007-10-07  Bruno Haible  <bruno@clisp.org>
41212
41213         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
41214         The file is still under LGPL (see modules/inttypes).
41215
41216 2007-10-06  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/trunc (Dependencies): Add 'extensions'.
41219         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
41220         Reported by Ben Pfaff <blp@gnu.org>.
41221
41222 2007-10-06  Bruno Haible  <bruno@clisp.org>
41223
41224         * modules/freopen-tests: New file.
41225         * tests/test-freopen.c: New file.
41226
41227         * modules/fopen-tests: New file.
41228         * tests/test-fopen.c: New file.
41229
41230         * modules/fopen: New file.
41231         * lib/fopen.c: New file.
41232         * m4/fopen.m4: New file.
41233         * modules/freopen: New file.
41234         * lib/freopen.c: New file.
41235         * m4/freopen.m4: New file.
41236         * lib/stdio.in.h (fopen, freopen): New declarations.
41237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
41238         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41239         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
41240         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
41241         * doc/functions/fopen.texi: Mention the 'fopen' module.
41242         * doc/functions/freopen.texi: Mention the 'freopen' module.
41243
41244 2007-10-06  Bruno Haible  <bruno@clisp.org>
41245
41246         * modules/open-tests: New file.
41247         * tests/test-open.c: New file.
41248
41249         * modules/open: New file.
41250         * lib/open.c: New file.
41251         * m4/open.m4: New file.
41252         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
41253         lib/open.c does.
41254         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
41255         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
41256         macros.
41257         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
41258         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
41259         REPLACE_OPEN.
41260         * doc/functions/open.texi: Mention the 'open' module.
41261
41262 2007-10-04  Bruno Haible  <bruno@clisp.org>
41263
41264         * modules/ceill-tests: New file.
41265         * tests/test-ceill.c: New file.
41266
41267         * modules/ceill: New file.
41268         * lib/ceill.c: Replace entire file.
41269         * m4/ceill.m4: New file.
41270         * lib/math.in.h (ceill): Replace declaration.
41271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
41272         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
41273         * doc/functions/ceill.texi: Mention the 'ceill' module.
41274         * modules/mathl (Files): Remove lib/ceill.c.
41275         (Depends-on): Add ceill.
41276
41277 2007-10-04  Bruno Haible  <bruno@clisp.org>
41278
41279         * modules/ceilf-tests: New file.
41280         * tests/test-ceilf.c: New file.
41281
41282         * modules/ceilf: New file.
41283         * lib/ceil.c: New file.
41284         * lib/ceilf.c: New file.
41285         * m4/ceilf.m4: New file.
41286         * lib/math.in.h (ceilf): New declaration.
41287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41288         HAVE_DECL_CEILF.
41289         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41290         HAVE_DECL_CEILF.
41291         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41292
41293 2007-10-04  Bruno Haible  <bruno@clisp.org>
41294
41295         * modules/floorl-tests: New file.
41296         * tests/test-floorl.c: New file.
41297
41298         * modules/floorl: New file.
41299         * lib/floorl.c: Replace entire file.
41300         * m4/floorl.m4: New file.
41301         * lib/math.in.h (floorl): Replace declaration.
41302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41303         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41304         * doc/functions/floorl.texi: Mention the 'floorl' module.
41305         * modules/mathl (Files): Remove lib/floorl.c.
41306         (Depends-on): Add floorl.
41307
41308 2007-10-04  Bruno Haible  <bruno@clisp.org>
41309
41310         * modules/floorf-tests: New file.
41311         * tests/test-floorf.c: New file.
41312
41313         * modules/floorf: New file.
41314         * lib/floor.c: New file.
41315         * lib/floorf.c: New file.
41316         * m4/floorf.m4: New file.
41317         * lib/math.in.h (floorf): New declaration.
41318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41319         HAVE_DECL_FLOORF.
41320         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41321         HAVE_DECL_FLOORF.
41322         * doc/functions/floorf.texi: Mention the 'floorf' module.
41323
41324 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41325             Bruno Haible  <bruno@clisp.org>
41326
41327         Advertise for the Git server instead of the CVS server.
41328         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41329         repository instead of the CVS one.
41330         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41331         about all VCS systems generically.
41332         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41333
41334 2007-10-04  Bruno Haible  <bruno@clisp.org>
41335
41336         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41337         means.
41338         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41339
41340 2007-10-04  Bruno Haible  <bruno@clisp.org>
41341
41342         * modules/truncl-tests: New file.
41343         * tests/test-truncl.c: New file.
41344
41345         * modules/truncl: New file.
41346         * lib/truncl.c: New file.
41347         * m4/truncl.m4: New file.
41348         * lib/math.in.h (truncl): New declaration.
41349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41350         HAVE_DECL_TRUNCL.
41351         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41352         HAVE_DECL_TRUNCL.
41353         * doc/functions/truncl.texi: Mention the 'truncl' module.
41354
41355 2007-10-04  Bruno Haible  <bruno@clisp.org>
41356
41357         * modules/truncf-tests: New file.
41358         * tests/test-truncf.c: New file.
41359
41360         * modules/truncf: New file.
41361         * lib/trunc.c: Make paramerizable through USE_* macros.
41362         * lib/truncf.c: New file.
41363         * m4/truncf.m4: New file.
41364         * lib/math.in.h (truncf): New declaration.
41365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41366         HAVE_DECL_TRUNCF.
41367         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41368         HAVE_DECL_TRUNCF.
41369         * doc/functions/truncf.texi: Mention the 'truncf' module.
41370
41371 2007-10-03  Bruno Haible  <bruno@clisp.org>
41372
41373         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41374         augmentation also for tests modules.
41375         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41376         * modules/atexit-tests (Makefile.am): Likewise.
41377         * modules/binary-io-tests (Makefile.am): Likewise.
41378         * modules/c-strcase-tests (Makefile.am): Likewise.
41379         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41380         * modules/canonicalize-tests (Makefile.am): Likewise.
41381         * modules/closein-tests (Makefile.am): Likewise.
41382         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41383         * modules/freadahead-tests (Makefile.am): Likewise.
41384         * modules/fseek-tests (Makefile.am): Likewise.
41385         * modules/fseeko-tests (Makefile.am): Likewise.
41386         * modules/ftell-tests (Makefile.am): Likewise.
41387         * modules/ftello-tests (Makefile.am): Likewise.
41388         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41389         * modules/isnanl-tests (Makefile.am): Likewise.
41390         * modules/lseek-tests (Makefile.am): Likewise.
41391         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41392         * modules/mbscasestr-tests (Makefile.am): Likewise.
41393         * modules/mbschr-tests (Makefile.am): Likewise.
41394         * modules/mbscspn-tests (Makefile.am): Likewise.
41395         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41396         * modules/mbspbrk-tests (Makefile.am): Likewise.
41397         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41398         * modules/mbsrchr-tests (Makefile.am): Likewise.
41399         * modules/mbsspn-tests (Makefile.am): Likewise.
41400         * modules/mbsstr-tests (Makefile.am): Likewise.
41401         * modules/printf-posix-tests (Makefile.am): Likewise.
41402         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41403         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41404         * modules/tsearch-tests (Makefile.am): Likewise.
41405         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41406         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41407         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41408         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41409         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41410         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41411         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41412         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41413         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41414         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41415         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41416         * modules/xstrtol-tests (Makefile.am): Likewise.
41417         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41418         * modules/yesno-tests (Makefile.am): Likewise.
41419
41420 2007-10-03  Bruno Haible  <bruno@clisp.org>
41421
41422         * modules/trunc-tests: New file.
41423         * tests/test-trunc.c: New file.
41424
41425         * modules/trunc: New file.
41426         * lib/trunc.c: New file.
41427         * m4/trunc.m4: New file.
41428         * lib/math.in.h (trunc): New declaration.
41429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41430         HAVE_DECL_TRUNC.
41431         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41432         HAVE_DECL_TRUNC.
41433         * doc/functions/trunc.texi: Mention the 'trunc' module.
41434
41435 2007-10-03  Bruno Haible  <bruno@clisp.org>
41436
41437         * tests/test-fpending.c: New file, mostly copied
41438         from coreutils/lib/t-fpending.c.
41439         * modules/fpending-tests: New file.
41440
41441 2007-10-03  Bruno Haible  <bruno@clisp.org>
41442
41443         Port the stdio extensions to QNX (untested).
41444         * lib/fseterr.c (fseterr): Add support for QNX.
41445         * lib/fbufmode.c (fbufmode): Likewise.
41446         * lib/freadable.c (freadable): Likewise.
41447         * lib/fwritable.c (fwritable): Likewise.
41448         * lib/freading.c (freading): Likewise.
41449         * lib/fwriting.c (fwriting): Likewise.
41450         * lib/freadahead.c (freadahed): Likewise.
41451         * lib/fpurge.c (fpurge): Likewise.
41452         * lib/fseeko.c (rpl_fseeko): Likewise.
41453
41454 2007-10-03  Bruno Haible  <bruno@clisp.org>
41455             Jim Meyering  <jim@meyering.net>
41456             Eric Blake  <ebb9@byu.net>
41457
41458         * doc/relocatable.texi: Use @command instead of @program.
41459
41460 2007-10-02  Jim Meyering  <jim@meyering.net>
41461
41462         Perform one more "_.h" -> ".in.h" substitution.
41463         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41464         instead of unistd_.h here, too.
41465
41466 2007-10-01  Bruno Haible  <bruno@clisp.org>
41467
41468         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41469         Needed for the alloca-opt module.
41470
41471 2007-09-30  Bruno Haible  <bruno@clisp.org>
41472
41473         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41474         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41475         alloca_.h.
41476         * lib/argz.in.h: Renamed from lib/argz_.h.
41477         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41478         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41479         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41480         byteswap_.h.
41481         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41482         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41483         dirent_.h.
41484         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41485         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41486         fcntl_.h.
41487         * lib/float.in.h: Renamed from lib/float_.h.
41488         * modules/float (Files, Makefile.am): Use float.in.h instead of
41489         float_.h.
41490         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41491         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41492         fnmatch_.h.
41493         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41494         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41495         getopt_.h.
41496         * lib/glob.in.h: Renamed from lib/glob_.h.
41497         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41498         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41499         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41500         iconv_.h.
41501         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41502         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41503         inttypes_.h.
41504         * lib/locale.in.h: Renamed from lib/locale_.h.
41505         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41506         locale_.h.
41507         * lib/math.in.h: Renamed from lib/math_.h.
41508         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41509         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41510         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41511         of netinet_in_.h. Add dependency.
41512         * lib/poll.in.h: Renamed from lib/poll_.h.
41513         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41514         * lib/search.in.h: Renamed from lib/search_.h.
41515         * modules/search (Files, Makefile.am): Use search.in.h instead of
41516         search_.h.
41517         * lib/signal.in.h: Renamed from lib/signal_.h.
41518         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41519         _signal.h.
41520         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41521         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41522         stdbool_.h.
41523         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41524         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41525         stdint_.h.
41526         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41527         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41528         stdio_.h.
41529         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41530         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41531         stdlib_.h.
41532         * lib/string.in.h: Renamed from lib/string_.h.
41533         * modules/string (Files, Makefile.am): Use string.in.h instead of
41534         string_.h.
41535         * doc/gnulib-tool.texi (Initial import): Update.
41536         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41537         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41538         of sys_select_.h. Add dependency.
41539         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41540         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41541         of sys_socket_.h.
41542         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41543         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41544         sys_stat_.h.
41545         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41546         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41547         sys_time_.h.
41548         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41549         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41550         sysexits_.h.
41551         * lib/time.in.h: Renamed from lib/time_.h.
41552         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41553         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41554         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41555         unistd_.h.
41556         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41557         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41558         wchar_.h.
41559         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41560         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41561         wctype_.h.
41562         * build-aux/bootstrap (slurp): Update.
41563         * lib/.cppi-disable: Update.
41564
41565 2007-09-30  Bruno Haible  <bruno@clisp.org>
41566
41567         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41568         Needed on BeOS.
41569
41570 2007-09-30  Bruno Haible  <bruno@clisp.org>
41571
41572         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41573
41574 2007-09-29  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41577
41578 2007-09-29  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41581         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41582         * build-aux/install-reloc: Compile also areadlink.c.
41583         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41584
41585 2007-09-29  Bruno Haible  <bruno@clisp.org>
41586
41587         * gnulib-tool (func_emit_initmacro_done): Indentation.
41588
41589 2007-09-29  Bruno Haible  <bruno@clisp.org>
41590
41591         * README: Add CVS checkout update instructions.
41592         Info from Bob Proulx <bob@proulx.com>.
41593
41594 2007-09-28  Eric Blake  <ebb9@byu.net>
41595
41596         Provide move-if-change.
41597         * build-aux/move-if-change: New file, based on best practice
41598         rather than any canonical upstream location.
41599
41600 2007-09-28  Jim Meyering  <jim@meyering.net>
41601
41602         Fix canonicalize loop-detection corner case.
41603         Do not attempt to stat the symlink values stored via seen_triple.
41604         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41605         on linux-2.6.18, (but not 2.6.22).
41606         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41607         triple_compare.  The former compares dev,ino,filename, while the latter
41608         would actually stat dirname(filename) when dev and ino were equal.
41609         * lib/hash-triple.c: Install <string.h>.
41610         (STREQ): Define.
41611         (triple_compare_ino_str): New function.
41612         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41613
41614 2007-09-28  Eric Blake  <ebb9@byu.net>
41615
41616         Enforce that AC_REPLACE_FUNCS files exist.
41617         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41618         override check for typos.
41619
41620         Fix test-closein on Solaris 10.
41621         * tests/test-closein.c (main): Don't assume stdin can be inherited
41622         closed on all systems.
41623         * tests/test-closein.sh: Likewise.
41624         Reported by Piotr Tarnowski.
41625
41626 2007-09-28  Jim Meyering  <jim@meyering.net>
41627
41628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41629
41630 2007-09-27  Jim Meyering  <jim@meyering.net>
41631
41632         canonicalize: Avoid a false-positive cycle failure.
41633         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41634         Sort.  Remove cycle-check.
41635         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41636         not cycle-check.h.
41637         (seen_triple): New function.
41638         (canonicalize_filename_mode): Use it instead of cycle-check.
41639         * tests/test-canonicalize.c: Add a test for this bug.
41640         * tests/test-canonicalize.sh: Set up and run the test.
41641
41642         New module, file-set, from coreutils.
41643         * modules/file-set: Define it.
41644         * lib/file-set.c, lib/file-set.h: Implement.
41645
41646         New module, hash-triple, from coreutils.
41647         * modules/hash-triple: Define it.
41648         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41649
41650 2007-09-25  Eric Blake  <ebb9@byu.net>
41651
41652         Fix strerror on Interix.
41653         * lib/string_.h (strerror): Declare replacement.
41654         * doc/functions/strerror.texi (strerror): Document the Interix
41655         shortcoming.
41656         * modules/string (Makefile.am): Support new hooks.
41657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41658         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41659         gl_FUNC_STRERROR_SEPARATE.
41660         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41661         * lib/strerror.c (rpl_strerror): Provide replacement.
41662         * modules/strerror (Depends-on): Add string.
41663         (configure.ac): Detect use of module.
41664         * tests/test-strerror.c: New file.
41665         * modules/strerror-tests: New test module.
41666         * modules/argp (Depends-on): Add strerror.
41667         * modules/error (Depends-on): Likewise.
41668         Reported by Martin Koeppe.
41669
41670 2007-09-24  Bruno Haible  <bruno@clisp.org>
41671
41672         * README: Update git instructions.
41673
41674 2007-09-24  Eric Blake  <ebb9@byu.net>
41675
41676         Revert fpending breakage from 2007-09-08.
41677         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41678         __fpending.c.
41679
41680 2007-09-24  Jim Meyering  <jim@meyering.net>
41681
41682         filenamecat.c: Add a test.
41683         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41684         showing how the function works when DIR is the empty string.
41685
41686 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41687
41688         * tests/test-canonicalize.sh: Turn on executable bit.
41689
41690 2007-09-19  Eric Blake  <ebb9@byu.net>
41691
41692         * README: Update CVS instructions.
41693
41694 2007-09-18  Bruno Haible  <bruno@clisp.org>
41695
41696         * modules/areadlink: New file.
41697         * lib/areadlink.h (areadlink): New declaration.
41698         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41699
41700 2007-09-17  Jim Meyering  <jim@meyering.net>
41701
41702         * lib/savewd.c (ESTALE) [!defined]: Define.
41703         Reported to be required on Interix by Martin Koeppe.
41704
41705 2007-09-17  Bruno Haible  <bruno@clisp.org>
41706
41707         * gnulib-tool (func_version): Use $version.
41708
41709 2007-09-16  Bruno Haible  <bruno@clisp.org>
41710
41711         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41712         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41713         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41714         Reported by Greg Schafer <gschafer@zip.com.au>.
41715
41716 2007-09-15  Bruno Haible  <bruno@clisp.org>
41717
41718         * gnulib-tool (sed): Try a little harder to make bash understand the
41719         alias.
41720         Reported by Bruce Korb <bruce.korb@gmail.com>.
41721
41722 2007-09-13  Eric Blake  <ebb9@byu.net>
41723
41724         * ChangeLog: Remove conflict markers.
41725
41726 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41727
41728         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41729         Reported by Bruno Haible <bruno@clisp.org>.
41730
41731 2007-09-12  Bruno Haible  <bruno@clisp.org>
41732
41733         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41734         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41735         is not defined.
41736
41737 2007-09-12  Eric Blake  <ebb9@byu.net>
41738
41739         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41740         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41741         Autoconf definition.
41742         * modules/euidaccess (Depends-on): Add extensions, for
41743         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41744         * modules/fnmatch (Depends-on): Likewise.
41745         * modules/getaddrinfo (Depends-on): Likewise.
41746         * modules/getdelim (Depends-on): Likewise.
41747         * modules/getline (Depends-on): Likewise.
41748         * modules/getsubopt (Depends-on): Likewise.
41749         * modules/gettext (Depends-on): Likewise.
41750         * modules/group-member (Depends-on): Likewise.
41751         * modules/mbchar (Depends-on): Likewise.
41752         * modules/memmem (Depends-on): Likewise.
41753         * modules/mempcpy (Depends-on): Likewise.
41754         * modules/memrchr (Depends-on): Likewise.
41755         * modules/pagealign_alloc (Depends-on): Likewise.
41756         * modules/readutmp (Depends-on): Likewise.
41757         * modules/stpcpy (Depends-on): Likewise.
41758         * modules/stpncpy (Depends-on): Likewise.
41759         * modules/strchrnul (Depends-on): Likewise.
41760         * modules/strndup (Depends-on): Likewise.
41761         * modules/strsep (Depends-on): Likewise.
41762         * modules/strverscmp (Depends-on): Likewise.
41763         * modules/vasprintf (Depends-on): Likewise.
41764         * modules/wcwidth (Depends-on): Likewise.
41765         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41766         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41767         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41768         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41769         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41770         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41771         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41772         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41773         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41774         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41776         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41777         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41778         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41779         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41780         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41781         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41782         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41783         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41784         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41785         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41787         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41788         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41789         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41791         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41792         so that lock.m4 can be used in gettext without extensions module.
41793
41794 2007-09-11  Bruno Haible  <bruno@clisp.org>
41795
41796         * m4/isc-posix.m4: Remove file.
41797         Suggested by Eric Blake.
41798
41799 2007-09-11  Eric Blake  <ebb9@byu.net>
41800
41801         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41802
41803 2007-09-10  Bruno Haible  <bruno@clisp.org>
41804
41805         * posix-modules: Fix typo in error message.
41806         Reported by Matt <mkraai@beckman.com>.
41807
41808 2007-09-09  Bruno Haible  <bruno@clisp.org>
41809
41810         * doc/functions/getdelim.texi: Update list of platforms lacking the
41811         function.
41812         * doc/functions/getline.texi: Likewise.
41813
41814 2007-09-09  Jim Meyering  <jim@meyering.net>
41815
41816         * lib/hash.c (hash_initialize): Detect calloc failure.
41817         Reported by Bruno Haible.
41818
41819 2007-09-09  Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41822         malloc or realloc fails.
41823
41824 2007-09-09  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/getcwd (Depends-on): Add malloc-posix.
41827         * modules/glob (Depends-on): Likewise.
41828         * modules/putenv (Depends-on): Likewise.
41829         * modules/strdup (Depends-on): Likewise.
41830         * modules/getdelim (Depends-on): Add realloc-posix.
41831         * modules/read-file (Depends-on): Likewise.
41832
41833 2007-09-09  Bruno Haible  <bruno@clisp.org>
41834
41835         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41836         (gl_FUNC_MALLOC_POSIX): Require it.
41837         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41838         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41839         * modules/realloc (Files): Add m4/malloc.m4.
41840         * modules/calloc (Files): Likewise.
41841
41842 2007-09-09  Bruno Haible  <bruno@clisp.org>
41843
41844         * modules/malloc-posix: New file.
41845         * modules/malloc (Depends-on): Add malloc-posix.
41846         * lib/malloc.c: Include errno.h.
41847         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41848         and a POSIX-compatible malloc into a single function. Set ENOMEM
41849         when returning NULL.
41850         * m4/malloc.m4: New file.
41851         * doc/functions/malloc.texi: Mention the malloc-posix module.
41852         * lib/stdlib_.h (malloc): New declaration.
41853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41854         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41855         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41856         and HAVE_MALLOC_POSIX.
41857
41858 2007-09-09  Bruno Haible  <bruno@clisp.org>
41859
41860         * modules/realloc-posix: New file.
41861         * modules/realloc (Depends-on): Add realloc-posix.
41862         * lib/realloc.c: Include errno.h.
41863         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41864         and a POSIX-compatible realloc into a single function. Set ENOMEM
41865         when returning NULL.
41866         * m4/realloc.m4: New file.
41867         * doc/functions/realloc.texi: Mention the realloc-posix module.
41868         * lib/stdlib_.h (realloc): New declaration.
41869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41870         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41871         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41872         and HAVE_REALLOC_POSIX.
41873
41874 2007-09-09  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/calloc-posix: New file.
41877         * modules/calloc (Depends-on): Add calloc-posix.
41878         * lib/calloc.c: Include errno.h.
41879         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41880         and a POSIX-compatible calloc into a single function. Set ENOMEM
41881         when returning NULL.
41882         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41883         * doc/functions/calloc.texi: Mention the calloc-posix module.
41884         * lib/stdlib_.h (calloc): New declaration.
41885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41886         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41887         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41888         and HAVE_CALLOC_POSIX.
41889
41890 2007-09-09  Bruno Haible  <bruno@clisp.org>
41891
41892         Allow for modules to show an arbitrary notice.
41893         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41894         * gnulib-tool: New option --extract-notice.
41895         (func_usage): Document it.
41896         (sed_extract_prog): Update.
41897         (func_get_notice): New function.
41898         (func_modules_notice): New function.
41899         (func_import, func_create_testdir): Invoke it.
41900         Suggested by Jim Meyering.
41901
41902 2007-09-09  Bruno Haible  <bruno@clisp.org>
41903
41904         * gnulib-tool: New options --verbose, --quiet.
41905         (func_usage): Document them.
41906         (verbose): New variable.
41907         (func_execute_command): New function.
41908         (func_import): Don't show the module list and the file list if
41909         $verbose < 0.
41910         (func_create_testdir): Likewise. Use func_execute_command.
41911         (func_create_megatestdir): Use func_execute_command.
41912
41913 2007-09-08  Bruno Haible  <bruno@clisp.org>
41914
41915         * gnulib-tool (func_import): Prefer rsync over wget when available,
41916         for fetching the PO files.
41917
41918 2007-09-08  Bruno Haible  <bruno@clisp.org>
41919
41920         * posix-modules: New file. Portions copied from gnulib-tool.
41921         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41922
41923 2007-09-08  Jim Meyering  <jim@meyering.net>
41924
41925         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41926         * lib/fpending.h: Rename from __fpending.h.
41927         * lib/fpending.c: Rename from __fpending.c.
41928         Include "fpending.h", not "__fpending.h".
41929         * lib/__fpending.h, lib/__fpending.c: Remove files.
41930         * modules/fpending (Files): Reflect new file names.
41931         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41932
41933 2007-09-08  Bruno Haible  <bruno@clisp.org>
41934
41935         * m4/inttypes-h.m4: Remove stub file.
41936
41937 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41938
41939         * doc/headers/stdint.texi: Discuss #include_next issue.
41940
41941 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41942
41943         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41944
41945 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41946
41947         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41948         in variable name.
41949
41950 2007-09-03  Jim Meyering  <jim@meyering.net>
41951
41952         New module: git-version-gen.
41953         * modules/git-version-gen: New file.
41954
41955         Import changes from coreutils for bootstrap script.
41956
41957         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41958
41959         bootstrap: uses rsync to download the .po files
41960         * build-aux/bootstrap (po_download_command_format): New global.
41961         (download_po_files): Use rsync.
41962         (update_po_files): Don't remove .po files after download,
41963         so future rsync runs can take advantage of the copies.
41964
41965         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41966
41967         Solve the unnecessary-.po-file-regeneration problem once and for all.
41968         * build-aux/bootstrap (download_po_files): New function, renamed from
41969         get_translations.  Now, downloads, but doesn't update LINGUAS.
41970         (update_po_files): New function.
41971
41972         bootstrap: Ignore more.
41973         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41974         uniwidth to e.g., lib/.gitignore.
41975         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41976
41977         * build-aux/bootstrap: New setting: vc_ignore.
41978         (insert_sorted_if_absent): Create $file if absent.
41979         Adapt to new, possibly empty, list: $vc_ignore.
41980
41981         bootstrap: generate more ignorable names
41982         * build-aux/bootstrap (slurp): When generating ignorable names,
41983         also map .sin to .sed, .gperf to .c, and .y to .c.
41984
41985 2007-09-03  Jim Meyering  <jim@meyering.net>
41986
41987         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41988         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41989
41990 2007-09-02  Bruno Haible  <bruno@clisp.org>
41991
41992         Fix mis-recognition of 'mcs' on QNX 6.
41993         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41994         output contains the string "Mono".
41995         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41996         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41997
41998 2007-09-01  Bruno Haible  <bruno@clisp.org>
41999
42000         Fix collision between uniwidth/* and linebreak modules.
42001         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
42002         u32_width): Remove declarations.
42003         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
42004         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
42005         streq3, streq2, streq1, streq0): Remove functions.
42006         (STREQ): Remove macro.
42007         (is_cjk_encoding): Remove function.
42008         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
42009         (uc_width, u8_width, u16_width, u32_width): Remove functions.
42010         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
42011         * NEWS: Document the change.
42012
42013 2007-09-01  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/streq.h: Add double-inclusion guard.
42016
42017 2007-09-01  Karl Berry  <karl@gnu.org>
42018
42019         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
42020
42021 2007-08-28  Jim Meyering  <jim@meyering.net>
42022
42023         Rename mreadlink_with_size to areadlink_with_size.
42024         * NEWS: Document the change.
42025         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
42026         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
42027         * lib/mreadlink.h: Rename this to...
42028         * lib/areadlink.h: ...this.
42029         * modules/mreadlink-with-size: Rename this to...
42030         * modules/areadlink-with-size: ...this.
42031         * lib/canonicalize.c: Reflect the renaming.
42032         * modules/canonicalize: Likewise.
42033
42034 2007-08-26  Bruno Haible  <bruno@clisp.org>
42035
42036         * gnulib-tool (func_import): When deciding which files to remove,
42037         consider also dangling symbolic links.
42038         Reported by Eric Blake.
42039
42040 2007-08-26  Bruno Haible  <bruno@clisp.org>
42041
42042         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
42043
42044 2007-08-23  Simon Josefsson  <simon@josefsson.org>
42045
42046         * lib/readline.c: Don't include getline.h, the prototype is now
42047         found in stdio.h.
42048
42049 2007-08-23  Jim Meyering  <jim@meyering.net>
42050
42051         Getdelim touchup.
42052         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
42053         around the funlockfile call, since funlockfile never sets errno.
42054         Don't set errno upon failed realloc.
42055
42056 2007-08-22  Eric Blake  <ebb9@byu.net>
42057
42058         Getline touchups.
42059         * lib/getdelim.c (getdelim): Revert regression that required *n to
42060         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
42061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
42062         getdelim, rather than whether implementation is missing.
42063         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
42064         * lib/stdio_.h (getline): Also declare if replacement is
42065         required.
42066         * doc/functions/getdelim.texi: New file.
42067         * doc/functions/getline.texi: Likewise.
42068         * doc/gnulib.texi (Function Substitutes): Add new files.
42069         Reported by Bruno Haible.
42070
42071 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
42072
42073         * users.txt: Add Guile.
42074
42075 2007-08-22  Eric Blake  <ebb9@byu.net>
42076
42077         * tests/test-getdelim.c (main): Use remove, not unlink.
42078         * tests/test-getline.c (main): Likewise.
42079
42080         Move getline and getdelim into stdio.h, per POSIX 200x.
42081         * modules/getline (Files): Remove getline.h.
42082         (Depends-on): Add stdio.
42083         (configure.ac): Add module indicator.
42084         * modules/getdelim (Files): Remove getdelim.h.
42085         (Depends-on): Add stdio.
42086         (configure.ac): Add module indicator.
42087         * modules/stdio (Makefile.am): Work with new indicators.
42088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42089         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
42090         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42091         * lib/getdelim.h: Delete.
42092         * lib/getline.h: Delete.
42093         * lib/stdio_.h (getdelim, getline): Declare.
42094         * modules/getdelim-tests: New module.
42095         * modules/getline-tests: Likewise.
42096         * tests/test-getdelim.c: New file.
42097         * tests/test-getline.c: Likewise.
42098         * NEWS: Document the change.
42099         * lib/getline.c: Update choice of header.
42100         * lib/csharpcomp.c: Likewise.
42101         * lib/getpass.c: Likewise.
42102         * lib/javacomp.c: Likewise.
42103         * lib/javaversion.c: Likewise.
42104         * lib/yesno.c: Likewise.
42105         * lib/getdelim.c: Likewise.
42106         (getdelim): Set errno on failure, and avoid memory leak.
42107
42108 2007-08-19  Bruno Haible  <bruno@clisp.org>
42109
42110         * modules/closein (Depends-on): Add freadahead.
42111         * lib/closein.c: Include freadahead.h.
42112         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
42113         is zero.
42114
42115 2007-08-19  Bruno Haible  <bruno@clisp.org>
42116
42117         * modules/freadahead-tests: New file.
42118         * tests/test-freadahead.sh: New file.
42119         * tests/test-freadahead.c: New file.
42120
42121         * modules/freadahead: New file.
42122         * lib/freadahead.h: New file.
42123         * lib/freadahead.c: New file.
42124         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
42125         fbufmode, fpurge, freadable, fwritable.
42126
42127 2007-08-19  Eric Blake  <ebb9@byu.net>
42128
42129         Test yesno in combination with closein.
42130         * lib/yesno.c (yesno): Document use of stdin.
42131         * modules/yesno-tests (Files): New module.
42132         * tests/test-yesno.c (main): New file.
42133         * tests/test-yesno.sh: Likewise.
42134
42135 2007-08-19  Bruno Haible  <bruno@clisp.org>
42136
42137         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
42138         * lib/fseeko.c (rpl_fseeko): Likewise.
42139         * lib/fseterr.c (fseterr): Likewise.
42140
42141 2007-08-19  Bruno Haible  <bruno@clisp.org>
42142
42143         * tests/test-lseek.c (main): Disable a test for BeOS.
42144         * doc/functions/lseek.texi: Document the BeOS bug.
42145
42146 2007-08-19  Bruno Haible  <bruno@clisp.org>
42147             Eric Blake  <ebb9@byu.net>
42148
42149         * lib/lseek.c: Include <sys/stat.h>.
42150         (rpl_lseek): Add workaround code also for Unix platforms.
42151         Needed for BeOS.
42152         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
42153         * doc/functions/lseek.texi: Document BeOS definiency.
42154
42155 2007-08-18  Bruno Haible  <bruno@clisp.org>
42156
42157         * modules/fstrcmp-tests: New file.
42158         * tests/test-fstrcmp.c: New file.
42159
42160 2007-08-18  Bruno Haible  <bruno@clisp.org>
42161
42162         * modules/fstrcmp: New file, from GNU gettext with modifications.
42163         * lib/fstrcmp.h: New file, from GNU gettext.
42164         * lib/fstrcmp.c: New file, from GNU gettext.
42165         * MODULES.html.sh (String handling): Add fstrcmp.
42166
42167 2007-08-18  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
42170         'bool'.
42171         (diag, compareseq): Remove const from the ctxt argument.
42172         (USE_HEURISTIC): Undefine at the end.
42173
42174 2007-08-18  Jim Meyering  <jim@meyering.net>
42175
42176         New file: lib/idcache.h
42177         * NEWS: Mention the addition.
42178         * modules/idcache (Files): Add lib/idcache.h
42179         * lib/idcache.c: Include "idcache.h".
42180         Don't include <sys/types.h>.
42181         Add a FIXME comment.
42182         Move file-scoped "static" declarations to the top.
42183         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
42184
42185 2007-08-17  Bruno Haible  <bruno@clisp.org>
42186         and Paul Eggert  <eggert@cs.ucla.edu>
42187
42188         * MODULES.html.sh: Add diffseq.
42189         * modules/diffseq: New file.
42190         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
42191         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
42192
42193 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42194
42195         Import changes from coreutils for bootstrap script.
42196
42197         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
42198
42199         * build-aux/bootstrap (slurp): Work even in environments where
42200         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
42201         current code does not slurp files whose names start with ".", and
42202         this looks like it might be a troublesome area.
42203
42204         2007-07-11  Jim Meyering  <jim@meyering.net>
42205
42206         If there's a GPL vN copyright comment, require that N == 3.
42207
42208         2007-07-08  Jim Meyering  <jim@meyering.net>
42209
42210         Run the coreutils-specific code only if tests/Makefile.am.in exists.
42211         * build-aux/bootstrap (mam_template): Move definition out of loop.
42212
42213         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
42214
42215         * build-aux/bootstrap (symlink_to_dir): Rename function from
42216         symlink_to_gnulib.  Add a directory parameter.  Update all
42217         callers.
42218         (cp_mark_as_generated): Also check for -- and link to -- files in
42219         gl/.
42220
42221         2007-07-08  Jim Meyering  <jim@meyering.net>
42222
42223         Adapt to deeper hierarchy in gnulib.
42224         * build-aux/bootstrap (symlink_to_dir): If the destination
42225         directory doesn't exist, create it. This is required at least for
42226         "lib/uniwidth/cjk.h".
42227
42228         2007-05-15  Jim Meyering  <jim@meyering.net>
42229
42230         * build-aux/bootstrap: Now that generated Makefile.am files
42231         are no longer under version control, they must be created at
42232         bootstrap time.
42233
42234 2007-08-14  Ben Pfaff  <blp@gnu.org>
42235
42236         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
42237
42238 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42239
42240         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
42241         given the changes below.
42242         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
42243         even on hosts that have padding bits beyond the supported 64.
42244
42245 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42246
42247         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
42248         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
42249         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
42250         depends on it.
42251         (xstrtol_error): Remove.
42252         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
42253         but with a different signature.
42254         (ATTRIBUTE_NORETURN, __attribute__): New macros.
42255         * lib/xstrtol-error.c: Include exitfail.h.
42256         (xstrtol_fatal): New function, with a different signature from the
42257         old xstrtol_error, so that the caller need not worry about passing
42258         in an exit status, or about storage management of the option argument.
42259         (xstrtol_error): Now a static function.  Redo signature to
42260         implement xstrtol_fatal.  Output the correct number of hyphens in
42261         front of the option so that the caller need not worry about
42262         storage management.
42263         (N_): New macro.
42264         (_): Remove; not used now.
42265         * modules/xstrtol: Depend on getopt.
42266         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
42267         of old STRTOL_FATAL_ERROR macro.
42268         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
42269         of test program.
42270         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
42271         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
42272
42273 2007-08-08  Eric Blake  <ebb9@byu.net>
42274
42275         * lib/xstrtol-error.c: Add missing include.
42276
42277         Move xstrtol messages into gnulib domain, when --pobase is used.
42278         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
42279         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
42280         * modules/xstrtol (Files): Distribute new file.
42281         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42282         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42283         * tests/test-xstrtol.c: ...into new file.
42284         * tests/test-xstrtoul.c: Also test xstrtoul.
42285         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42286         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42287         * tests/test-xstrtol.sh: Drive the tests.
42288         * tests/test-xstrtoimax.sh: Likewise.
42289         * tests/test-xstrtoumax.sh: Likewise.
42290         * modules/xstrtol-tests: New module.
42291         * modules/xstrtoimax-tests: Likewise.
42292         * modules/xstrtoumax-tests: Likewise.
42293
42294 2007-08-08  Jim Meyering  <jim@meyering.net>
42295
42296         New function: mfile_name_concat.
42297         * lib/filenamecat.c (mfile_name_concat): New function, just like
42298         file_name_concat, but return NULL upon failure rather than exiting
42299         with a diagnostic.
42300         * lib/filenamecat.h: Declare it.
42301
42302 2007-08-07  Bruno Haible  <bruno@clisp.org>
42303
42304         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42305         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42306         warning from gcc.
42307         Reported by Eric Blake.
42308
42309 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42310
42311         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42312         * modules/crypto/arcfour (License): Likewise.
42313         * modules/crypto/des-tests (License): Likewise.
42314         * modules/crypto/gc-arctwo-tests (License): Likewise.
42315         * modules/crypto/gc-des-tests (License): Likewise.
42316         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42317         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42318         * modules/crypto/gc-md2-tests (License): Likewise.
42319         * modules/crypto/gc-md4-tests (License): Likewise.
42320         * modules/crypto/gc-md5-tests (License): Likewise.
42321         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42322         * modules/crypto/gc-rijndael-tests (License): Likewise.
42323         * modules/crypto/gc-sha1-tests (License): Likewise.
42324         * modules/crypto/gc-tests (License): Likewise.
42325         * modules/crypto/hmac-md5 (License): Likewise.
42326         * modules/crypto/hmac-sha1 (License): Likewise.
42327         * modules/crypto/md2-tests (License): Likewise.
42328         * modules/crypto/md4-tests (License): Likewise.
42329         * modules/crypto/md5 (License): Likewise.
42330         * modules/crypto/rijndael (License): Likewise.
42331         * modules/crypto/sha1 (License): Likewise.
42332         * modules/memxor (License): Likewise.
42333
42334 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42335         and Bruno Haible  <bruno@clisp.org>
42336
42337         * NEWS: Describe interface changes to human, xstrtol.
42338         * lib/human.h: Include <xstrtol.h>.
42339         (human_options): Return enum strtol_error, not int.  Remove
42340         bool arg; take int * instead.
42341         * lib/human.c: Don't include "gettext.h".
42342         (_): Remove; no longer used.
42343         Don't include <xstrtol.h>, since human.h does it.
42344         (human_options): Adjust to abovementioned interface changes.
42345         Do not report error to stderr; that's now the caller's
42346         responsibility.
42347         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42348         interface change.
42349         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42350         Str, Argument_type_string.  All uses changed.  Put " argument"
42351         in diagnostics to make them clearer.  Change wording of suffix
42352         message for clarity.
42353         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42354         Argument_type_string.
42355         (STRTOL_FATAL_WARN): Remove; no longer used.
42356         * modules/human (Depends-on): Remove gettext-h.
42357
42358 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42359
42360         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42361
42362 2007-07-31  Bruno Haible  <bruno@clisp.org>
42363
42364         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42365         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42366         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42367
42368 2007-07-31  Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42371         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42372
42373 2007-07-30  Bruno Haible  <bruno@clisp.org>
42374
42375         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42376         * modules/c-ctype (License): Likewise.
42377         * modules/c-strcase (License): Likewise.
42378         * modules/check-version (License): Likewise.
42379         * modules/iconv (License): Likewise.
42380         * modules/iconv_open (License): Likewise.
42381         * modules/read-file (License): Likewise.
42382         * modules/striconv (License): Likewise.
42383         * modules/strverscmp (License): Likewise.
42384         * modules/vasprintf (License): Likewise.
42385         * modules/crypto/des (License): Likewise.
42386         * modules/crypto/gc (License): Likewise.
42387         * modules/crypto/gc-arcfour (License): Likewise.
42388         * modules/crypto/gc-arctwo (License): Likewise.
42389         * modules/crypto/gc-des (License): Likewise.
42390         * modules/crypto/gc-hmac-md5 (License): Likewise.
42391         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42392         * modules/crypto/gc-md2 (License): Likewise.
42393         * modules/crypto/gc-md4 (License): Likewise.
42394         * modules/crypto/gc-md5 (License): Likewise.
42395         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42396         * modules/crypto/gc-random (License): Likewise.
42397         * modules/crypto/gc-rijndael (License): Likewise.
42398         * modules/crypto/gc-sha1 (License): Likewise.
42399         * modules/crypto/md2 (License): Likewise.
42400         * modules/crypto/md4 (License): Likewise.
42401
42402 2007-07-30  Jim Meyering  <jim@meyering.net>
42403
42404         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42405         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42406         it has valid stat data.  This bug would cause du not to count the
42407         sizes of inaccessible directories.
42408         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42409         in <http://bugzilla.redhat.com/250077>.
42410
42411 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42412             Bruno Haible  <bruno@clisp.org>
42413
42414         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42415         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42416         #include_next, gives a diagnostic about it, but reports no error in
42417         the exit code.
42418         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42419
42420 2007-07-24  Ben Pfaff  <blp@gnu.org>
42421
42422         Improve name: "count-one-bits" is better than "popcount".
42423         * MODULES.html.sh: Update name.
42424         * lib/popcount.h: Renamed lib/count-one-bits.h.
42425         (popcount): Renamed count_one_bits.
42426         (popcountl): Renamed count_one_bits_l.
42427         (popcountll): Renamed count_one_bits_ll.
42428         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42429         * modules/popcount: Renamed module/count-one-bits.
42430         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42431         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42432
42433 2007-07-23  Ben Pfaff  <blp@gnu.org>
42434
42435         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42436         better code generation, and add U to large constants to avoid
42437         warnings, in non-GCC case.
42438         Suggested by Bruno Haible.
42439
42440 2007-07-23  Ben Pfaff  <blp@gnu.org>
42441
42442         * lib/popcount.h: Use verify_true instead of if...abort.
42443         * modules/popcount: Depend on verify module.
42444         Suggested by Jim Meyering.
42445
42446 2007-07-23  Bruno Haible  <bruno@clisp.org>
42447
42448         * gnulib-tool (func_import): Create a .cvsignore file also when the
42449         directory is not yet in CVS but the toplevel directory is. When
42450         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42451         Reported by Karl Berry.
42452
42453 2007-07-22  Ben Pfaff  <blp@gnu.org>
42454
42455         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42456         case.
42457         Suggested by Eric Blake.
42458
42459 2007-07-22  Ben Pfaff  <blp@gnu.org>
42460
42461         New module: popcount.
42462         * MODULES.html.sh: Add popcount.
42463         * modules/popcount: New file.
42464         * modules/popcount-tests: New file.
42465         * tests/test-popcount.c: New file.
42466         * lib/popcount.h: New file.
42467         * m4/popcount.m4: New file.
42468
42469 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42470
42471         * build-aux/announce-gen: Update to GPLv3.
42472
42473         * build-aux/config.guess: Update from config.
42474
42475 2007-07-21  Bruno Haible  <bruno@clisp.org>
42476
42477         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42478         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42479
42480 2007-07-20  Jim Meyering  <jim@meyering.net>
42481
42482         * check-module: Diagnose a self-dependency.
42483
42484 2007-07-19  Bruno Haible  <bruno@clisp.org>
42485
42486         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42487         empty.
42488         Reported by Eric Blake.
42489
42490 2007-07-18  Bruno Haible  <bruno@clisp.org>
42491
42492         * gnulib-tool: New options --po-base, --po-domain.
42493         (func_usage): Document them.
42494         (pobase, po_domain): New variables.
42495         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42496         DEFAULT_TEXT_DOMAIN.
42497         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42498         (func_import): Consider pobase and po_domain. Create a po/ directory.
42499         (func_create_testdir): Set pobase and po_domain to empty.
42500         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42501         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42502
42503 2007-07-18  Bruno Haible  <bruno@clisp.org>
42504
42505         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42506         EXTRA_DIST augmentation for files in build-aux/.
42507
42508 2007-07-16  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42511         * modules/getdelim (License): Likewise.
42512
42513 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42514
42515         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42516         * modules/d-type (License): Likewise.
42517         * modules/extensions (License): Likewise.
42518         * modules/fnmatch (License): Likewise.
42519         * modules/fseeko (License): Likewise.
42520         * modules/getaddrinfo (License): Likewise.
42521         * modules/getline (License): Likewise.
42522         * modules/getlogin_r (License): Likewise.
42523         * modules/getpass (License): Likewise.
42524         * modules/gettimeofday (License): Likewise.
42525         * modules/glob (License): Likewise.
42526         * modules/inet_ntop (License): Likewise.
42527         * modules/malloc (License): Likewise.
42528         * modules/malloca (License): Likewise.
42529         * modules/memmem (License): Likewise.
42530         * modules/mempcpy (License): Likewise.
42531         * modules/memset (License): Likewise.
42532         * modules/minmax (License): Likewise.
42533         * modules/mktime (License): Likewise.
42534         * modules/netinet_in (License): Likewise.
42535         * modules/pathmax (License): Likewise.
42536         * modules/poll (License): Likewise.
42537         * modules/regex (License): Likewise.
42538         * modules/snprintf (License): Likewise.
42539         * modules/stdbool (License): Likewise.
42540         * modules/stdint (License): Likewise.
42541         * modules/stdio (License): Likewise.
42542         * modules/strcase (License): Likewise.
42543         * modules/strcasestr (License): Likewise.
42544         * modules/strdup (License): Likewise.
42545         * modules/string (License): Likewise.
42546         * modules/strndup (License): Likewise.
42547         * modules/strnlen (License): Likewise.
42548         * modules/strpbrk (License): Likewise.
42549         * modules/strptime (License): Likewise.
42550         * modules/strsep (License): Likewise.
42551         * modules/sys_select (License): Likewise.
42552         * modules/sys_socket (License): Likewise.
42553         * modules/sys_stat (License): Likewise.
42554         * modules/sys_time (License): Likewise.
42555         * modules/time (License): Likewise.
42556         * modules/time_r (License): Likewise.
42557         * modules/timegm (License): Likewise.
42558         * modules/unistd (License): Likewise.
42559         * modules/vsnprintf (License): Likewise.
42560         * modules/wctype (License): Likewise.
42561
42562 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42563
42564         * modules/argz (License): LGPLv2+.
42565
42566 2007-07-15  Karl Berry  <karl@gnu.org>
42567
42568         * doc/gnulib.texi: revise node structure per new fdl.texi.
42569
42570 2007-07-14  Bruno Haible  <bruno@clisp.org>
42571
42572         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42573         the output file.
42574         * lib/uniname/uninames.h: Regenerated.
42575
42576 2007-07-14  Karl Berry  <karl@gnu.org>
42577
42578         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42579         omitting sectioning and index commands.
42580
42581 2007-07-13  Bruno Haible  <bruno@clisp.org>
42582
42583         New gnulib-tool option --more-symlinks.
42584         * gnulib-tool (func_usage): Document --more-symlinks.
42585         (do_copyrights): New variable.
42586         Recognize option --more-symlinks.
42587         (func_import): Don't add a copyright notice transform to
42588         sed_transform_lib_file if do_copyrights is empty.
42589
42590 2007-07-13  Bruno Haible  <bruno@clisp.org>
42591
42592         * lib/vasnprintf.c (decimal_point_char): Define also if
42593         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42594         && !NEED_PRINTF_DIRECTIVE_A.
42595         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42596         Gary V. Vaughan <gary@gnu.org>.
42597
42598 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42599
42600         * lib/inttypes_.h: Undo previous change, since it was fixed
42601         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42602
42603 2007-07-13  Bruno Haible  <bruno@clisp.org>
42604
42605         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42606         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42607
42608 2007-07-13  Jim Meyering  <jim@meyering.net>
42609
42610         df: Don't fail for Tru64's "file-on-file mount".
42611         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42612         so we fall through and use statfs instead.  Details here:
42613         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42614         Reported by Albert Chin.
42615
42616 2007-07-13  Bruno Haible  <bruno@clisp.org>
42617
42618         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42619         * modules/configmake (License): Likewise.
42620         * modules/gettext (License): Likewise.
42621         * modules/gettext-h (License): Likewise.
42622         * modules/include_next (License): Likewise.
42623         * modules/link-warning (License): Likewise.
42624         * modules/localcharset (License): Likewise.
42625         * modules/localename (License): Likewise.
42626         * modules/lock (License): Likewise.
42627         * modules/relocatable-lib-lgpl (License): Likewise.
42628         * modules/size_max (License): Likewise.
42629         * modules/vasnprintf (License): Likewise.
42630         * modules/wchar (License): Likewise.
42631         * modules/xsize (License): Likewise.
42632
42633 2007-07-13  Bruno Haible  <bruno@clisp.org>
42634
42635         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42636         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42637
42638 2007-07-12  Bruno Haible  <bruno@clisp.org>
42639
42640         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42641         in the modules files.
42642
42643 2007-07-11  Karl Berry  <karl@gnu.org>
42644
42645         * MODULES.html.sh (func_module): use
42646          sed -e '\|^'"${includefile}"'$|d'
42647          instead of /.../d, to avoid errors on $includefile's containing /.
42648
42649 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42650
42651         * gnulib-tool (func_import): Avoid duplication of --avoid
42652         statements
42653         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42654         names to `_' in variable names.
42655
42656 2007-07-10  Eric Blake  <ebb9@byu.net>
42657
42658         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42659         * NEWS: Document this change.
42660
42661 2007-07-08  Bruno Haible  <bruno@clisp.org>
42662
42663         Update to Unicode 5.0.
42664         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42665         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42666         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42667         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42668         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42669         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42670         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42671         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42672         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42673         U+10A3F, U+1D242..U+1D244.
42674         (nonspacing_table_ind): Update.
42675         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42676         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42677
42678 2007-07-08  Bruno Haible  <bruno@clisp.org>
42679
42680         Update to Unicode 5.0.
42681         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42682         code transform. Extend the name index field of unicode_name_to_code and
42683         unicode_code_to_name from 16 to 24 bits.
42684         * lib/uniname/uniname.c (unicode_character_name,
42685         unicode_name_character): Add the range 0x12xxx to the code transform.
42686         * lib/uniname/uninames.h: Regenerated.
42687         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42688
42689 2007-07-07  Bruno Haible  <bruno@clisp.org>
42690
42691         * modules/wcwidth-tests: New file.
42692         * tests/test-wcwidth.c: New file.
42693
42694         Work around MacOS X wcwidth() bug.
42695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42696         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42697         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42698         original wcwidth in non-UTF-8 locales.
42699         * modules/wcwidth (Depends-on): Add localcharset, streq,
42700         uniwidth/width.
42701         * doc/functions/wcwidth.texi: Update.
42702
42703 2007-07-07  Bruno Haible  <bruno@clisp.org>
42704
42705         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42706         (wcwidth): New declaration.
42707         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42708         macros.
42709         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42710         here. Prepare for creating <wchar.h> unconditionally.
42711         * modules/wchar (Depends-on): Add link-warning.
42712         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42713         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42714         * lib/wcwidth.h: Remove file.
42715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42716         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42717         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42718         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42719         (Include): Replace wcwidth.h with <wchar.h>.
42720         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42721         * lib/mbchar.h: Don't include wcwidth.h.
42722         * lib/mbswidth.c: Likewise.
42723         * NEWS: Mention the change.
42724
42725 2007-07-07  Bruno Haible  <bruno@clisp.org>
42726
42727         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42728         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42729         definition with an external declaration.
42730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42731         defined as a function. Remove AC_C_INLINE requirement.
42732         * modules/wcwidth (Files): Add lib/wcwidth.c.
42733         (Makefile.am): Remove redundant statement.
42734
42735 2007-07-07  Bruno Haible  <bruno@clisp.org>
42736
42737         * MODULES.html.sh (Unicode string functions): Add the new modules.
42738
42739         * tests/uniwidth/test-u32-strwidth.c: New file.
42740         * modules/uniwidth/u32-strwidth-tests: New file.
42741
42742         * lib/uniwidth/u32-strwidth.c: New file.
42743         * modules/uniwidth/u32-strwidth: New file.
42744
42745         * tests/uniwidth/test-u16-strwidth.c: New file.
42746         * modules/uniwidth/u16-strwidth-tests: New file.
42747
42748         * lib/uniwidth/u16-strwidth.c: New file.
42749         * modules/uniwidth/u16-strwidth: New file.
42750
42751         * tests/uniwidth/test-u8-strwidth.c: New file.
42752         * modules/uniwidth/u8-strwidth-tests: New file.
42753
42754         * lib/uniwidth/u8-strwidth.c: New file.
42755         * modules/uniwidth/u8-strwidth: New file.
42756
42757         * tests/uniwidth/test-u32-width.c: New file.
42758         * modules/uniwidth/u32-width-tests: New file.
42759
42760         * lib/uniwidth/u32-width.c: New file.
42761         * modules/uniwidth/u32-width: New file.
42762
42763         * tests/uniwidth/test-u16-width.c: New file.
42764         * modules/uniwidth/u16-width-tests: New file.
42765
42766         * lib/uniwidth/u16-width.c: New file.
42767         * modules/uniwidth/u16-width: New file.
42768
42769         * tests/uniwidth/test-u8-width.c: New file.
42770         * modules/uniwidth/u8-width-tests: New file.
42771
42772         * lib/uniwidth/u8-width.c: New file.
42773         * modules/uniwidth/u8-width: New file.
42774
42775         * tests/uniwidth/test-uc_width.c: New file.
42776         * modules/uniwidth/width-tests: New file.
42777
42778         * lib/uniwidth/width.c: New file, from GNU libiconv.
42779         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42780         * modules/uniwidth/width: New file.
42781
42782         * lib/uniwidth.h: New file, from GNU libiconv.
42783         * modules/uniwidth/base: New file.
42784
42785 2007-07-07  Bruno Haible  <bruno@clisp.org>
42786
42787         * lib/uniname.h: New file, from GNU gettext.
42788         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42789         * lib/uniname/uninames.h: New file, from GNU gettext.
42790         * lib/uniname/uniname.c: New file, from GNU gettext.
42791         * tests/uniname/test-uninames.sh: New file.
42792         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42793         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42794         * modules/uniname/base: New file.
42795         * modules/uniname/uniname: New file.
42796         * modules/uniname/uniname-tests: New file.
42797         * MODULES.html.sh (Unicode string functions): Add the new modules.
42798
42799 2007-07-06  Bruno Haible  <bruno@clisp.org>
42800
42801         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42802
42803 2007-07-06  Bruno Haible  <bruno@clisp.org>
42804
42805         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42806         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42807         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42808         include <sys/time.h>.
42809         Reported by Eric Blake.
42810
42811 2007-07-06  Eric Blake  <ebb9@byu.net>
42812
42813         Fix testing canonicalize on cygwin.
42814         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42815         Revert patch from 2007-06-19.
42816         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42817         canonicalize module is also in use.
42818         * tests/test-canonicalize.c: New file.
42819         * tests/test-canonicalize.sh: Likewise.
42820         * modules/canonicalize-tests: Likewise.
42821
42822 2007-07-06  Jim Meyering  <jim@meyering.net>
42823
42824         * lib/getugroups.c (getugroups): Detect getgrent failure.
42825         Adjust comment to reflect reality: this function may return -1.
42826
42827 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42828
42829         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42830         the new TP address.
42831         (usage): Fix typo
42832         (gnulib_mk): New variable.
42833
42834 2007-07-05  Jim Meyering  <jim@meyering.net>
42835
42836         Don't let endgrent clobber errno, no matter how improbable.
42837         * lib/getugroups.c (getugroups): Save and restore errno around
42838         endgrent call.
42839
42840         Close the group DB even when failing with 2^31 or more members.
42841         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42842
42843 2007-07-04  Jim Meyering  <jim@meyering.net>
42844
42845         * lib/getugroups.h: New file.
42846         * lib/getugroups.c: Include "getugroups.h".
42847         Remove uses of "register" keyword.
42848         Move local variable, "cp", down into scope where used.
42849         Give "username" parameter the "const" attribute.
42850         * modules/getugroups (Files): Add lib/getugroups.h
42851
42852 2007-07-04  Karl Berry  <karl@gnu.org>
42853
42854         * MODULES.html.sh (func_all_modules): Complete rename of
42855         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42856
42857 2007-07-02  Bruno Haible  <bruno@clisp.org>
42858
42859         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42860         mode, when inttypes.h comes from gnulib.
42861         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42862
42863 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42864
42865         * NEWS: Mention lgpl module name change.
42866
42867         * modules/lgpl-2.1: Renamed from lgpl.
42868
42869         * NEWS: Mention gpl module name change.
42870
42871         * modules/gpl-3.0: New file, based on gpl-2.0.
42872
42873         * modules/gpl-2.0: Renamed from gpl.
42874
42875         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42876         doc/gpl-2.0.texi.
42877
42878 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42879
42880         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42881         #define __STDC_LIMIT_MACROS temporarily while including
42882         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42883         Problem reported by Joel E. Denny in
42884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42885
42886 2007-07-01  Bruno Haible  <bruno@clisp.org>
42887
42888         * lib/unistdio.h: New file.
42889         * lib/unistdio/u-asnprintf.h: New file.
42890         * lib/unistdio/u-asprintf.h: New file.
42891         * lib/unistdio/u-printf-args.c: New file.
42892         * lib/unistdio/u-printf-args.h: New file.
42893         * lib/unistdio/u-printf-parse.h: New file.
42894         * lib/unistdio/u-snprintf.h: New file.
42895         * lib/unistdio/u-sprintf.h: New file.
42896         * lib/unistdio/u-vasprintf.h: New file.
42897         * lib/unistdio/u-vsnprintf.h: New file.
42898         * lib/unistdio/u-vsprintf.h: New file.
42899         * lib/unistdio/ulc-asnprintf.c: New file.
42900         * lib/unistdio/ulc-asprintf.c: New file.
42901         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42902         * lib/unistdio/ulc-printf-parse.c: New file.
42903         * lib/unistdio/ulc-snprintf.c: New file.
42904         * lib/unistdio/ulc-sprintf.c: New file.
42905         * lib/unistdio/ulc-vasnprintf.c: New file.
42906         * lib/unistdio/ulc-vasprintf.c: New file.
42907         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42908         * lib/unistdio/ulc-vsnprintf.c: New file.
42909         * lib/unistdio/ulc-vsprintf.c: New file.
42910         * lib/unistdio/u8-asnprintf.c: New file.
42911         * lib/unistdio/u8-asprintf.c: New file.
42912         * lib/unistdio/u8-printf-parse.c: New file.
42913         * lib/unistdio/u8-snprintf.c: New file.
42914         * lib/unistdio/u8-sprintf.c: New file.
42915         * lib/unistdio/u8-vasnprintf.c: New file.
42916         * lib/unistdio/u8-vasprintf.c: New file.
42917         * lib/unistdio/u8-vsnprintf.c: New file.
42918         * lib/unistdio/u8-vsprintf.c: New file.
42919         * lib/unistdio/u8-u8-asnprintf.c: New file.
42920         * lib/unistdio/u8-u8-asprintf.c: New file.
42921         * lib/unistdio/u8-u8-snprintf.c: New file.
42922         * lib/unistdio/u8-u8-sprintf.c: New file.
42923         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42924         * lib/unistdio/u8-u8-vasprintf.c: New file.
42925         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42926         * lib/unistdio/u8-u8-vsprintf.c: New file.
42927         * lib/unistdio/u16-asnprintf.c: New file.
42928         * lib/unistdio/u16-asprintf.c: New file.
42929         * lib/unistdio/u16-printf-parse.c: New file.
42930         * lib/unistdio/u16-snprintf.c: New file.
42931         * lib/unistdio/u16-sprintf.c: New file.
42932         * lib/unistdio/u16-vasnprintf.c: New file.
42933         * lib/unistdio/u16-vasprintf.c: New file.
42934         * lib/unistdio/u16-vsnprintf.c: New file.
42935         * lib/unistdio/u16-vsprintf.c: New file.
42936         * lib/unistdio/u16-u16-asnprintf.c: New file.
42937         * lib/unistdio/u16-u16-asprintf.c: New file.
42938         * lib/unistdio/u16-u16-snprintf.c: New file.
42939         * lib/unistdio/u16-u16-sprintf.c: New file.
42940         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42941         * lib/unistdio/u16-u16-vasprintf.c: New file.
42942         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42943         * lib/unistdio/u16-u16-vsprintf.c: New file.
42944         * lib/unistdio/u32-asnprintf.c: New file.
42945         * lib/unistdio/u32-asprintf.c: New file.
42946         * lib/unistdio/u32-printf-parse.c: New file.
42947         * lib/unistdio/u32-snprintf.c: New file.
42948         * lib/unistdio/u32-sprintf.c: New file.
42949         * lib/unistdio/u32-vasnprintf.c: New file.
42950         * lib/unistdio/u32-vasprintf.c: New file.
42951         * lib/unistdio/u32-vsnprintf.c: New file.
42952         * lib/unistdio/u32-vsprintf.c: New file.
42953         * lib/unistdio/u32-u32-asnprintf.c: New file.
42954         * lib/unistdio/u32-u32-asprintf.c: New file.
42955         * lib/unistdio/u32-u32-snprintf.c: New file.
42956         * lib/unistdio/u32-u32-sprintf.c: New file.
42957         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42958         * lib/unistdio/u32-u32-vasprintf.c: New file.
42959         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42960         * lib/unistdio/u32-u32-vsprintf.c: New file.
42961         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42962         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42963         * tests/unistdio/test-ulc-printf1.h: New file.
42964         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42965         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42966         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42967         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42968         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42969         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42970         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42971         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42972         * tests/unistdio/test-u8-asnprintf1.c: New file.
42973         * tests/unistdio/test-u8-asnprintf1.h: New file.
42974         * tests/unistdio/test-u8-printf1.h: New file.
42975         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42976         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42977         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42978         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42979         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42980         * tests/unistdio/test-u8-vasprintf1.c: New file.
42981         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42982         * tests/unistdio/test-u8-vsprintf1.c: New file.
42983         * tests/unistdio/test-u16-asnprintf1.c: New file.
42984         * tests/unistdio/test-u16-asnprintf1.h: New file.
42985         * tests/unistdio/test-u16-printf1.h: New file.
42986         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42987         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42988         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42989         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42990         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42991         * tests/unistdio/test-u16-vasprintf1.c: New file.
42992         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42993         * tests/unistdio/test-u16-vsprintf1.c: New file.
42994         * tests/unistdio/test-u32-asnprintf1.c: New file.
42995         * tests/unistdio/test-u32-asnprintf1.h: New file.
42996         * tests/unistdio/test-u32-printf1.h: New file.
42997         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42998         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42999         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
43000         * tests/unistdio/test-u32-vasnprintf3.c: New file.
43001         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
43002         * tests/unistdio/test-u32-vasprintf1.c: New file.
43003         * tests/unistdio/test-u32-vsnprintf1.c: New file.
43004         * tests/unistdio/test-u32-vsprintf1.c: New file.
43005         * modules/unistdio/base: New file.
43006         * modules/unistdio/u-printf-args: New file.
43007         * modules/unistdio/ulc-asnprintf: New file.
43008         * modules/unistdio/ulc-asprintf: New file.
43009         * modules/unistdio/ulc-fprintf: New file.
43010         * modules/unistdio/ulc-printf-parse: New file.
43011         * modules/unistdio/ulc-snprintf: New file.
43012         * modules/unistdio/ulc-sprintf: New file.
43013         * modules/unistdio/ulc-vasnprintf: New file.
43014         * modules/unistdio/ulc-vasprintf: New file.
43015         * modules/unistdio/ulc-vfprintf: New file.
43016         * modules/unistdio/ulc-vsnprintf: New file.
43017         * modules/unistdio/ulc-vsprintf: New file.
43018         * modules/unistdio/u8-asnprintf: New file.
43019         * modules/unistdio/u8-asprintf: New file.
43020         * modules/unistdio/u8-printf-parse: New file.
43021         * modules/unistdio/u8-snprintf: New file.
43022         * modules/unistdio/u8-sprintf: New file.
43023         * modules/unistdio/u8-vasnprintf: New file.
43024         * modules/unistdio/u8-vasprintf: New file.
43025         * modules/unistdio/u8-vsnprintf: New file.
43026         * modules/unistdio/u8-vsprintf: New file.
43027         * modules/unistdio/u8-u8-asnprintf: New file.
43028         * modules/unistdio/u8-u8-asprintf: New file.
43029         * modules/unistdio/u8-u8-snprintf: New file.
43030         * modules/unistdio/u8-u8-sprintf: New file.
43031         * modules/unistdio/u8-u8-vasnprintf: New file.
43032         * modules/unistdio/u8-u8-vasprintf: New file.
43033         * modules/unistdio/u8-u8-vsnprintf: New file.
43034         * modules/unistdio/u8-u8-vsprintf: New file.
43035         * modules/unistdio/u16-asnprintf: New file.
43036         * modules/unistdio/u16-asprintf: New file.
43037         * modules/unistdio/u16-printf-parse: New file.
43038         * modules/unistdio/u16-snprintf: New file.
43039         * modules/unistdio/u16-sprintf: New file.
43040         * modules/unistdio/u16-vasnprintf: New file.
43041         * modules/unistdio/u16-vasprintf: New file.
43042         * modules/unistdio/u16-vsnprintf: New file.
43043         * modules/unistdio/u16-vsprintf: New file.
43044         * modules/unistdio/u16-u16-asnprintf: New file.
43045         * modules/unistdio/u16-u16-asprintf: New file.
43046         * modules/unistdio/u16-u16-snprintf: New file.
43047         * modules/unistdio/u16-u16-sprintf: New file.
43048         * modules/unistdio/u16-u16-vasnprintf: New file.
43049         * modules/unistdio/u16-u16-vasprintf: New file.
43050         * modules/unistdio/u16-u16-vsnprintf: New file.
43051         * modules/unistdio/u16-u16-vsprintf: New file.
43052         * modules/unistdio/u32-asnprintf: New file.
43053         * modules/unistdio/u32-asprintf: New file.
43054         * modules/unistdio/u32-printf-parse: New file.
43055         * modules/unistdio/u32-snprintf: New file.
43056         * modules/unistdio/u32-sprintf: New file.
43057         * modules/unistdio/u32-vasnprintf: New file.
43058         * modules/unistdio/u32-vasprintf: New file.
43059         * modules/unistdio/u32-vsnprintf: New file.
43060         * modules/unistdio/u32-vsprintf: New file.
43061         * modules/unistdio/u32-u32-asnprintf: New file.
43062         * modules/unistdio/u32-u32-asprintf: New file.
43063         * modules/unistdio/u32-u32-snprintf: New file.
43064         * modules/unistdio/u32-u32-sprintf: New file.
43065         * modules/unistdio/u32-u32-vasnprintf: New file.
43066         * modules/unistdio/u32-u32-vasprintf: New file.
43067         * modules/unistdio/u32-u32-vsnprintf: New file.
43068         * modules/unistdio/u32-u32-vsprintf: New file.
43069         * modules/unistdio/ulc-asnprintf-tests: New file.
43070         * modules/unistdio/ulc-vasnprintf-tests: New file.
43071         * modules/unistdio/ulc-vasprintf-tests: New file.
43072         * modules/unistdio/ulc-vsnprintf-tests: New file.
43073         * modules/unistdio/ulc-vsprintf-tests: New file.
43074         * modules/unistdio/u8-asnprintf-tests: New file.
43075         * modules/unistdio/u8-vasnprintf-tests: New file.
43076         * modules/unistdio/u8-vasprintf-tests: New file.
43077         * modules/unistdio/u8-vsnprintf-tests: New file.
43078         * modules/unistdio/u8-vsprintf-tests: New file.
43079         * modules/unistdio/u16-asnprintf-tests: New file.
43080         * modules/unistdio/u16-vasnprintf-tests: New file.
43081         * modules/unistdio/u16-vasprintf-tests: New file.
43082         * modules/unistdio/u16-vsnprintf-tests: New file.
43083         * modules/unistdio/u16-vsprintf-tests: New file.
43084         * modules/unistdio/u32-asnprintf-tests: New file.
43085         * modules/unistdio/u32-vasnprintf-tests: New file.
43086         * modules/unistdio/u32-vasprintf-tests: New file.
43087         * modules/unistdio/u32-vsnprintf-tests: New file.
43088         * modules/unistdio/u32-vsprintf-tests: New file.
43089         * MODULES.html.sh (Unicode string functions): Add the new modules.
43090
43091 2007-07-01  Bruno Haible  <bruno@clisp.org>
43092
43093         * lib/sprintf.c (sprintf): Limit the available length estimation,
43094         to avoid address wraparound.
43095         * lib/vsprintf.c (vsprintf): Likewise.
43096         * modules/sprintf-posix (Dependencies): Add stdint.
43097         * modules/vsprintf-posix (Dependencies): Likewise.
43098
43099 2007-07-01  Bruno Haible  <bruno@clisp.org>
43100
43101         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
43102         Windows PATH as well. Conservative double-quoting. Comments.
43103
43104 2007-07-01  Bruno Haible  <bruno@clisp.org>
43105             Eric Blake  <ebb9@byu.net>
43106             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43107
43108         * gnulib-tool (self_abspathname): Fix algorithm to cope with
43109         empty components in $PATH, denoting '.'.
43110
43111 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43112
43113         * gnulib-tool: Fix indentation.
43114         (func_create_megatestdir): Likewise.
43115         Report by Bruno Haible.
43116
43117 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43118
43119         Sync from Automake.
43120         * build-aux/gnupload: Fix shell portability issues with for loops.
43121         Report by Karl Berry.
43122
43123 2007-06-29  Simon Josefsson  <simon@josefsson.org>
43124
43125         * build-aux/maint.mk (POURL): Use translationproject.org.
43126
43127 2007-06-27  Simon Josefsson  <simon@josefsson.org>
43128             Bruno Haible  <bruno@clisp.org>
43129
43130         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
43131         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
43132         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
43133         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
43134         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
43135
43136 2007-06-27  Bruno Haible  <bruno@clisp.org>
43137
43138         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
43139         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
43140
43141 2007-06-26  Karl Berry  <karl@gnu.org>
43142
43143         * MODULES.html.sh: remove xreadlink-with-size.
43144
43145 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43146
43147         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
43148         method that I hope also handles the double-include problem noted
43149         by Bruno Haible in
43150         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
43151
43152 2007-06-23  Bruno Haible  <bruno@clisp.org>
43153
43154         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43155         Don't let the 'mostlyclean' target fail if the last subdirectory could
43156         not be removed.
43157         Reported by Karl Berry.
43158
43159 2007-06-23  Bruno Haible  <bruno@clisp.org>
43160
43161         * gnulib-tool (echo): Add a speedier workaround for ksh.
43162         * tests/test-echo.sh: Likewise.
43163
43164 2007-06-23  Bruno Haible  <bruno@clisp.org>
43165
43166         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
43167         * tests/test-echo.sh: Likewise.
43168
43169 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43170
43171         * gnulib-tool (IFS): Initialize early, so we don't set it to
43172         empty later.
43173         (self_abspathname): Rewrite algorithm to set it, reindent.
43174         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
43175         (func_create_megatestdir): Merge some sed scripts.
43176
43177 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43178
43179         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
43180         exposed by Sun Studio 11 cc on Solaris 8.
43181
43182 2007-06-22  Bruno Haible  <bruno@clisp.org>
43183
43184         * gnulib-tool (echo): Ensure the echo primitive does not interpret
43185         backslashes.
43186         * tests/test-echo.sh: New file.
43187
43188 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43189
43190         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
43191         simplify `sed_replace_build_aux' scripts, they are portable but
43192         echoing them with `echo' is not.
43193         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
43194
43195 2007-06-21  Karl Berry  <karl@gnu.org>
43196
43197         * config/srclist.txt: guess we can't handle the licenses via
43198         srclist at the moment.
43199
43200 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43201
43202         * MODULES.html.sh: Add include_next.
43203         * modules/include_next: New file.
43204
43205 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43206
43207         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
43208         INCLUDE_NEXT.
43209         (gl_CHECK_NEXT_HEADERS): New macro.
43210         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
43211         the obsolescent gl_ABSOLUTE_HEADER.
43212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
43213         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
43214         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43216         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
43217         * m4/math_h.m4 (gl_MATH_H): Likewise.
43218         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43219         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43220         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43221         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43222         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
43223         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
43224         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
43225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
43228         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
43229         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43230         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43231         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43232         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43233         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43234         * m4/inttypes.m4 (gl_INTTYPES_H): Define
43235         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
43236         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
43237         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
43238         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
43239         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
43240         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
43241         * lib/float_.h: Likewise.
43242         * lib/inttypes_.h: Likewise.
43243         * lib/math_.h: Likewise.
43244         * lib/search_.h: Likewise.
43245         * lib/signal_.h: Likewise.
43246         * lib/stdint_.h: Likewise.
43247         * lib/stdio_.h: Likewise.
43248         * lib/stdlib_.h: Likewise.
43249         * lib/string_.h: Likewise.
43250         * lib/sys_stat_.h: Likewise.
43251         * lib/sys_time_.h: Likewise.
43252         * lib/time_.h: Likewise.
43253         * lib/unistd_.h: Likewise.
43254         * lib/wchar_.h: Likewise.
43255         * lib/wctype_.h: Likewise.
43256         * lib/dirent_.h: Likewise.
43257         * lib/iconv_.h: Likewise.
43258         * lib/locale_.h: Likewise.
43259         * lib/netinet_in_.h: Likewise.
43260         * lib/sys_select_.h: Likewise.
43261         * lib/sys_socket_.h: Likewise.
43262         * lib/sysexits_.h: Likewise.
43263         * modules/fcntl (Depends-on): Depend on include_next, not
43264         absolute_header.
43265         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
43266         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
43267         * modules/fchdir: Likewise.
43268         * modules/float: Likewise.
43269         * modules/iconv_open: Likewise.
43270         * modules/inttypes: Likewise.
43271         * modules/locale: Likewise.
43272         * modules/math: Likewise.
43273         * modules/netinet_in: Likewise.
43274         * modules/search: Likewise.
43275         * modules/signal: Likewise.
43276         * modules/stdint: Likewise.
43277         * modules/stdio: Likewise.
43278         * modules/stdlib: Likewise.
43279         * modules/string: Likewise.
43280         * modules/sys_select: Likewise.
43281         * modules/sys_socket: Likewise.
43282         * modules/sys_stat: Likewise.
43283         * modules/sys_time: Likewise.
43284         * modules/sysexits: Likewise.
43285         * modules/time: Likewise.
43286         * modules/unistd: Likewise.
43287         * modules/wchar: Likewise.
43288         * modules/wctype: Likewise.
43289         * modules/sys_stat: Change maintainer to "all".
43290         * modules/unistd: Likewise.
43291
43292 2007-06-20  Karl Berry  <karl@gnu.org>
43293
43294         * config/srclist.txt: track www changes in license files.
43295
43296 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43297
43298         * build-aux/bootstrap: Remove stray dot.
43299         Make sure build_aux settings are honored when linking
43300         gnulib_extra_files.
43301
43302 2007-06-19  Eric Blake  <ebb9@byu.net>
43303
43304         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43305         Allow compilation on cygwin.
43306
43307 2007-06-19  Jim Meyering  <jim@meyering.net>
43308
43309         xreadlink-with-size: Remove module.  No longer used.
43310         Ex-callers now use xreadlink or mreadlink-with-size.
43311         * modules/xreadlink-with-size: Remove module.
43312         * lib/xreadlink-with-size.c: Remove file.
43313         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43314         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43315         just before the function definition *is* accurate.
43316
43317         Eliminate one way canonicalize_filename_mode could exit.
43318         * lib/canonicalize.c (canonicalize_filename_mode):
43319         Use mreadlink_with_size, not xreadlink_with_size.
43320
43321 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         Detect porting problems to FreeBSD/arm, which has time_t wider than
43324         long int.  Original problem reported for GNU diff by Xin Li in
43325         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43326         * modules/getdate (Depends-on): Add intprops, verify.
43327         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43328         is an integer type no wider than long int.
43329
43330 2007-06-18  Jim Meyering  <jim@meyering.net>
43331
43332         New module: mreadlink-with-size.
43333         * MODULES.html.sh: Add mreadlink-with-size.
43334         * modules/mreadlink-with-size: New module
43335         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43336         not xreadlink-with-size.
43337         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43338
43339 2007-06-16  Bruno Haible  <bruno@clisp.org>
43340
43341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43342         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43343         Reported by Gary V. Vaughan <gary@gnu.org>.
43344
43345 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43346
43347         Revamp lchown so that it lives in unistd.h where it belongs.
43348         * lib/lchown.h: Remove.
43349         * lib/dirchownmod.c: Don't include lib/lchown.h.
43350         * lib/fchownat.c: Likewise.
43351         * lib/openat.c: Likewise.
43352         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43353         does not follow symlinks.
43354         (EOPNOTSUPP): Define if not defined.
43355         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43356         is defined to 0.
43357         (lchown): New decl.
43358         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43359         Do not check for lchown decl.
43360         Set REPLACE_LCHOWN.
43361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43362         REPLACE_LCHOWN.
43363         * modules/chown: Make it clear it follows symlinks.
43364         * modules/lchown: Make it clear it doesn't follow symlinks.
43365         (Files): Remove lib/lchown.h
43366         (Depends-on): Add unistd.
43367         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43368         (Include): Include <unistd.h>, not "lchown.h".
43369         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43370         REPLACE_LCHOWN.
43371
43372 2007-06-15  Jim Meyering  <jim@meyering.net>
43373
43374         Change license (GPL to LGPL) of fsusage and dependents.
43375         * modules/fsusage (License): Change to LGPL.
43376         * modules/full-read (License): Likewise.
43377         * modules/full-write (License): Likewise.
43378         * modules/safe-read (License): Likewise.
43379         * modules/safe-write (License): Likewise.
43380
43381 2007-06-14  Ben Pfaff  <blp@gnu.org>
43382
43383         Missing part of allocsa -> malloca transition.
43384         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43385         gl_MALLOCA.
43386
43387 2007-06-12  Bruno Haible  <bruno@clisp.org>
43388
43389         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43390         to ia64, x86_64, i386.
43391         Reported by Eric Blake.
43392
43393 2007-06-12  Bruno Haible  <bruno@clisp.org>
43394
43395         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43396         cross-compiling to x86_64.
43397
43398 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43399
43400         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43401         glitch reported by Ralf Wildenhues in
43402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43403
43404         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43405         Vin Shelton.
43406
43407 2007-06-11  Bruno Haible  <bruno@clisp.org>
43408
43409         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43410         replacement string.
43411         Reported by Eric Blake.
43412
43413 2007-06-10  Bruno Haible  <bruno@clisp.org>
43414
43415         Prepare vasnprintf code for use with Unicode strings.
43416         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43417         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43418         TYPE_U32_STRING.
43419         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43420         a_u32_string variants.
43421         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43422         * lib/printf-args.c: Don't include config.h and the specification
43423         header if PRINTF_FETCHARGS is already defined.
43424         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43425         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43426         TYPE_U16_STRING, TYPE_U32_STRING.
43427         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43428         u16_directive, u16_directives, u32_directive, u32_directives): New
43429         types.
43430         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43431         New declarations.
43432         * lib/printf-parse.c: Don't include config.h and the specification
43433         header if PRINTF_PARSE is already defined. Eliminate the set of
43434         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43435         them now. Include c-ctype.h.
43436         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43437         directive and CHAR_T_ONLY_ASCII.
43438         * lib/vasnprintf.c: Don't include config.h and the specification header
43439         if VASNPRINTF is already defined.
43440         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43441         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43442         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43443         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43444         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43445         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43446         code accordingly.
43447         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43448         pad_ourselves also in this case, with the 'c' and 's' directives, and
43449         with a different notion of "width".
43450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43451
43452 2007-06-10  Bruno Haible  <bruno@clisp.org>
43453
43454         * modules/unistr/u32-mbsnlen: New file.
43455         * lib/unistr/u32-mbsnlen.c: New file.
43456
43457         * modules/unistr/u16-mbsnlen: New file.
43458         * lib/unistr/u16-mbsnlen.c: New file.
43459
43460         * modules/unistr/u8-mbsnlen: New file.
43461         * lib/unistr/u8-mbsnlen.c: New file.
43462
43463         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43464         declarations.
43465
43466 2007-06-10  Bruno Haible  <bruno@clisp.org>
43467
43468         * lib/string_.h (mbsnlen): New declaration.
43469         * lib/mbsnlen.c: New file.
43470         * m4/mbsnlen.m4: New file.
43471         * modules/mbsnlen: New file.
43472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43473         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43474         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43475
43476 2007-06-10  Bruno Haible  <bruno@clisp.org>
43477
43478         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43479
43480 2007-06-10  Bruno Haible  <bruno@clisp.org>
43481
43482         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43483         * lib/mbuiter.h: Likewise.
43484
43485 2007-06-10  Bruno Haible  <bruno@clisp.org>
43486
43487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43488         declaration.
43489
43490 2007-06-10  Karl Berry  <karl@gnu.org>
43491
43492         * config/srclist.txt: remove gettext entries, Bruno prefers
43493         to update individually.
43494
43495 2007-06-10  Bruno Haible  <bruno@clisp.org>
43496
43497         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43498         'maxlen'. Ensure only length + width bytes are allocated, not
43499         length + 1 + width.
43500
43501 2007-06-09  Bruno Haible  <bruno@clisp.org>
43502
43503         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43504         (CHAR_T): Remove macro.
43505         (VASNPRINTF): Update.
43506
43507 2007-06-09  Bruno Haible  <bruno@clisp.org>
43508
43509         * MODULES.html.sh (Unicode string functions): Add the new modules.
43510
43511         * modules/uniconv/u32-conv-to-enc: New file.
43512         * lib/uniconv/u32-conv-to-enc.c: New file.
43513         * modules/uniconv/u32-conv-to-enc-tests: New file.
43514         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43515
43516         * modules/uniconv/u16-conv-to-enc: New file.
43517         * lib/uniconv/u16-conv-to-enc.c: New file.
43518         * lib/uniconv/u-conv-to-enc.h: New file.
43519         * modules/uniconv/u16-conv-to-enc-tests: New file.
43520         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43521
43522         * modules/uniconv/u8-conv-to-enc: New file.
43523         * lib/uniconv/u8-conv-to-enc.c: New file.
43524         * modules/uniconv/u8-conv-to-enc-tests: New file.
43525         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43526
43527         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43528         u32_conv_to_encoding): New declarations.
43529
43530 2007-06-09  Bruno Haible  <bruno@clisp.org>
43531
43532         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43533
43534 2007-06-09  Bruno Haible  <bruno@clisp.org>
43535
43536         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43537         * modules/malloca: Renamed from modules/allocsa, updated.
43538         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43539         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43540         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43541         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43542         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43543         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43544         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43545         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43546         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43547         * modules/c-strcasestr (Depends-on): Update.
43548         * lib/c-strcasestr.c: Update.
43549         * modules/c-strstr (Depends-on): Update.
43550         * lib/c-strstr.c: Update.
43551         * modules/canonicalize-lgpl (Depends-on): Update.
43552         * lib/canonicalize-lgpl.c: Update.
43553         * modules/clean-temp (Depends-on): Update.
43554         * lib/clean-temp.c: Update.
43555         * modules/csharpcomp (Depends-on): Update.
43556         * lib/csharpcomp.c: Update.
43557         * modules/csharpexec (Depends-on): Update.
43558         * lib/csharpexec.c: Update.
43559         * modules/javacomp (Depends-on): Update.
43560         * lib/javacomp.c: Update.
43561         * modules/javaexec (Depends-on): Update.
43562         * lib/javaexec.c: Update.
43563         * modules/mbscasestr (Depends-on): Update.
43564         * lib/mbscasestr.c: Update.
43565         * modules/mbsstr (Depends-on): Update.
43566         * lib/mbsstr.c: Update.
43567         * modules/setenv (Depends-on): Update.
43568         * lib/setenv.c: Update.
43569         * modules/strcasestr (Depends-on): Update.
43570         * lib/strcasestr.c: Update.
43571         * modules/striconveha (Depends-on): Update.
43572         * lib/striconveha.c: Update.
43573         * modules/relocatable-prog-wrapper (Files): Update.
43574         * lib/relocwrapper.c: Update.
43575         * build-aux/install-reloc: Update.
43576         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43577
43578 2007-06-08  Bruno Haible  <bruno@clisp.org>
43579
43580         Port to uClibc.
43581         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43582         * lib/fpurge.c (fpurge): Likewise.
43583         * lib/freading.c (freading): Likewise.
43584         * lib/fseeko.c (rpl_fseeko): Likewise.
43585         * lib/fseterr.c (fseterr): Likewise.
43586         * lib/fwriting.c (fwriting): Likewise.
43587         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43588
43589 2007-06-08  Bruno Haible  <bruno@clisp.org>
43590
43591         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43592         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43593         * modules/gettext (Files): Add m4/intlmacosx.m4.
43594
43595 2007-06-07  Bruno Haible  <bruno@clisp.org>
43596
43597         * modules/localename-tests: New file.
43598         * tests/test-localename.c: New file.
43599
43600         New module 'localename'.
43601         * lib/localename.h: New file.
43602         * lib/localename.c: New file, from GNU gettext.
43603         * m4/localename.m4: New file.
43604         * modules/localename: New file.
43605
43606 2007-06-07  Bruno Haible  <bruno@clisp.org>
43607
43608         Work around the lack of <wchar.h> on some builds of uClibc.
43609         * doc/headers/wchar.texi: Update.
43610         * lib/wchar_.h: Include <wchar.h> only if it exists.
43611         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43612         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43613         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43614         doesn't exist.
43615         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43616         * modules/mbfile (Depends-on): Add wchar.
43617         * modules/mbiter (Depends-on): Likewise.
43618         * modules/mbuiter (Depends-on): Likewise.
43619         Reported by Simon Josefsson.
43620
43621 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43622
43623         Work around problem reported by Steven M. Schweda in
43624         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43625         Tru64 5.1B with the Compaq compiler environment installed declares
43626         an 'isblank' function but does not define it in the C library.
43627         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43628         * lib/regex_internal.h (isblank): Likewise.
43629         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43630         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43631
43632 2007-06-05  Bruno Haible  <bruno@clisp.org>
43633
43634         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43635         ia64.
43636         * modules/printf-safe: New file.
43637         * modules/fprintf-posix (Depends-on): Add printf-safe.
43638         * modules/printf-posix (Depends-on): Likewise.
43639         * modules/snprintf-posix (Depends-on): Likewise.
43640         * modules/sprintf-posix (Depends-on): Likewise.
43641         * modules/vasnprintf-posix (Depends-on): Likewise.
43642         * modules/vasprintf-posix (Depends-on): Likewise.
43643         * modules/vfprintf-posix (Depends-on): Likewise.
43644         * modules/vprintf-posix (Depends-on): Likewise.
43645         * modules/vsnprintf-posix (Depends-on): Likewise.
43646         * modules/vsprintf-posix (Depends-on): Likewise.
43647         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43648         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43649         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43650         "no" on i386, x86_64, ia64.
43651         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
43652         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43653         on i386, x86_64, ia64.
43654         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
43655         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43656         on i386, x86_64, ia64.
43657         * tests/test-vasnprintf-posix.c: Include float.h.
43658         (LDBL80_WORDS): New macro.
43659         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43660         on i386, x86_64, ia64.
43661         * tests/test-vasprintf-posix.c: Include float.h.
43662         (LDBL80_WORDS): New macro.
43663         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43664         on i386, x86_64, ia64.
43665         * tests/test-snprintf-posix.c: Include float.h.
43666         * tests/test-sprintf-posix.c: Likewise.
43667         * tests/test-vsnprintf-posix.c: Likewise.
43668         * tests/test-vsprintf-posix.c: Likewise.
43669
43670 2007-06-05  Bruno Haible  <bruno@clisp.org>
43671
43672         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43673         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43674         non-IEEE numbers on i386, x86_64, ia64.
43675         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43676         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43677         * tests/test-isnanl.h: Include float.h.
43678         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43679
43680 2007-06-05  Bruno Haible  <bruno@clisp.org>
43681
43682         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43683         also the %a / %A. Handle the %a / %A code before this extra handling.
43684
43685 2007-06-05  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43688         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43689
43690 2007-06-05  Bruno Haible  <bruno@clisp.org>
43691
43692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43693         typo in variable name.
43694
43695 2007-06-05  Eric Blake  <ebb9@byu.net>
43696
43697         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43698         Reported by Simon Josefsson.
43699
43700 2007-06-04  Bruno Haible  <bruno@clisp.org>
43701
43702         Avoid test failures on some PowerPC platforms.
43703         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43704         Define differently for PowerPC.
43705         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43706         Reported by Gary V. Vaughan <gary@gnu.org>.
43707
43708 2007-06-02  Bruno Haible  <bruno@clisp.org>
43709
43710         Fix test-stdint failure on FreeBSD/ia64.
43711         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43712         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43713         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43714         * doc/headers/stdint.texi: Update.
43715
43716 2007-06-01  Bruno Haible  <bruno@clisp.org>
43717
43718         * tests/test-binary-io.c (main): Pass a third argument to open().
43719         Reported by Gary V. Vaughan <gary@gnu.org>.
43720
43721 2007-06-01  Bruno Haible  <bruno@clisp.org>
43722
43723         * doc/functions/frexpl.texi: Update for mingw.
43724
43725 2007-06-01  Bruno Haible  <bruno@clisp.org>
43726
43727         * tests/test-lseek.c (main): Disable test of errno for invalid third
43728         argument.
43729         * doc/functions/lseek.texi: Update.
43730         Reported by Gary V. Vaughan <gary@gnu.org>.
43731
43732 2007-05-28  Bruno Haible  <bruno@clisp.org>
43733
43734         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43735
43736 2007-05-31  Eric Blake  <ebb9@byu.net>
43737
43738         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43739         cross compiling.
43740
43741 2007-05-30  Eric Blake  <ebb9@byu.net>
43742         and Bruno Haible  <bruno@clisp.org>
43743
43744         Work around mingw test failures exposed by m4-1.4.9b.
43745         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43746         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43747         moment.
43748
43749 2007-05-30  Bruno Haible  <bruno@clisp.org>
43750
43751         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43752         assuming that they are closed. Needed on HP-UX 11.
43753
43754 2007-05-29  Bruno Haible  <bruno@clisp.org>
43755
43756         Fix a problem with #include_next.
43757         * lib/dirent_.h: Split the double-inclusion guard.
43758         * lib/fcntl_.h: Likewise.
43759         * lib/float_.h: Likewise.
43760         * lib/iconv_.h: Likewise.
43761         * lib/inttypes_.h: Likewise.
43762         * lib/locale_.h: Likewise.
43763         * lib/math_.h: Likewise.
43764         * lib/netinet_in_.h: Likewise.
43765         * lib/search_.h: Likewise.
43766         * lib/signal_.h: Likewise.
43767         * lib/stdint_.h: Likewise.
43768         * lib/stdio_.h: Likewise.
43769         * lib/stdlib_.h: Likewise.
43770         * lib/string_.h: Likewise.
43771         * lib/sys_select_.h: Likewise.
43772         * lib/sys_socket_.h: Likewise.
43773         * lib/sys_stat_.h: Likewise.
43774         * lib/sys_time_.h: Likewise.
43775         * lib/sysexits_.h: Likewise.
43776         * lib/time_.h: Likewise.
43777         * lib/unistd_.h: Likewise.
43778         * lib/wchar_.h: Likewise.
43779         * lib/wctype_.h: Likewise.
43780
43781 2007-05-29  Bruno Haible  <bruno@clisp.org>
43782
43783         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43784         for the moment.
43785
43786 2007-05-29  Bruno Haible  <bruno@clisp.org>
43787
43788         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43789         invocation.
43790         Reported by Eric Blake.
43791
43792 2007-05-29  Bruno Haible  <bruno@clisp.org>
43793
43794         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43795         compiling case.
43796
43797 2007-05-29  Eric Blake  <ebb9@byu.net>
43798             Bruno Haible  <bruno@clisp.org>
43799
43800         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43801         cross compiles.
43802
43803 2007-05-28  Eric Blake  <ebb9@byu.net>
43804
43805         * modules/closein-tests (test_closein_LDADD): Support test on
43806         cygwin with libtool.
43807
43808 2007-05-28  Bruno Haible  <bruno@clisp.org>
43809
43810         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43811         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43812         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43813         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43814         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43815         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43816         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43817         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43818         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43819
43820 2007-05-28  Eric Blake  <ebb9@byu.net>
43821
43822         Unconditionally include <config.h> in unit tests.
43823         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43824         * tests/test-allocsa.c, tests/test-arcfour.c,
43825         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43826         tests/test-array_list.c, tests/test-array_oset.c,
43827         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43828         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43829         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43830         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43831         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43832         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43833         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43834         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43835         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43836         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43837         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43838         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43839         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43840         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43841         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43842         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43843         test-md5.c, test-memmem.c, test-printf-posix.c,
43844         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43845         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43846         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43847         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43848         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43849         test-vasnprintf-posix2.c, test-vasnprintf.c,
43850         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43851         test-vfprintf-posix.c, test-vprintf-posix.c,
43852         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43853         test-xvasprintf.c: Likewise.
43854
43855 2007-05-28  Bruno Haible  <bruno@clisp.org>
43856
43857         * gnulib-tool (func_import): Remember the --with-tests command-line
43858         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43859         Reported by Eric Blake.
43860
43861 2007-05-28  Bruno Haible  <bruno@clisp.org>
43862
43863         * modules/ftell-tests: New file.
43864         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43865         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43866
43867         * lib/ftell.c: New file.
43868         * modules/ftell: New file.
43869         * m4/ftell.m4: New file.
43870         * doc/functions/ftell.texi: Update.
43871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43872         REPLACE_FTELL.
43873         * lib/stdio_.h (rpl_ftell): New declaration.
43874         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43875         REPLACE_FTELL.
43876
43877 2007-05-28  Eric Blake  <ebb9@byu.net>
43878
43879         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43880
43881 2007-05-28  Bruno Haible  <bruno@clisp.org>
43882
43883         * modules/fseek-tests: New file.
43884         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43885         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43886
43887         * lib/fseek.c: New file.
43888         * modules/fseek: New file.
43889         * m4/fseek.m4: New file.
43890         * doc/functions/fseek.texi: Update.
43891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43892         REPLACE_FSEEK.
43893         * lib/stdio_.h (rpl_fseek): New declaration.
43894         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43895         REPLACE_FSEEK.
43896
43897 2007-05-28  Bruno Haible  <bruno@clisp.org>
43898
43899         * lib/stdio_.h (fflush): More comments.
43900
43901 2007-05-28  Bruno Haible  <bruno@clisp.org>
43902
43903         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43904         runtime test.
43905
43906 2007-05-28  Eric Blake  <ebb9@byu.net>
43907
43908         Improve lseek module.
43909         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43910         * lib/unistd_.h (lseek): Scale back link warning message.
43911         * tests/test-lseek.c: Beef up test.
43912         * tests/test-lseek.sh: Exercise more facets of lseek.
43913         Reported by Bruno Haible.
43914
43915 2007-05-28  Bruno Haible  <bruno@clisp.org>
43916
43917         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43918         to define.
43919
43920 2007-05-27  Bruno Haible  <bruno@clisp.org>
43921
43922         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43923
43924 2007-05-27  Bruno Haible  <bruno@clisp.org>
43925
43926         * modules/openmp: New file.
43927         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43928         Noah Misch.
43929
43930 2007-05-26  Bruno Haible  <bruno@clisp.org>
43931
43932         * modules/chdir-long (Depends-on): Add fchdir.
43933         * modules/chdir-safer (Depends-on): Likewise.
43934         * modules/fts (Depends-on): Likewise.
43935         * modules/fts-lgpl (Depends-on): Likewise.
43936         * modules/openat (Depends-on): Likewise.
43937         * modules/savewd (Depends-on): Likewise.
43938
43939 2007-05-24  Eric Blake  <ebb9@byu.net>
43940
43941         Fix lseek on mingw.
43942         * modules/lseek: New module.
43943         * m4/lseek.m4: New file.
43944         * lib/lseek.c: New file.
43945         * modules/lseek-tests: New file.
43946         * tests/test-lseek.c: New file.
43947         * tests/test-lseek.sh: New file.
43948         * MODULES.html.sh: Document lseek module.
43949         * modules/fflush (Depends-on): Add lseek, fseeko.
43950         * modules/fseeko (Depends-on): Likewise.
43951         * modules/ftello (Depends-on): Likewise.
43952         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43953         broken.
43954         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43955         broken.
43956         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43957         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43958         * lib/ftello.c (rpl_ftello): Likewise.
43959         * tests/test-fseeko.c (main): Test this.
43960         * tests/test-fseeko.sh: Likewise.
43961         * tests/test-ftello.c (main): Likewise.
43962         * tests/test-ftello.sh: Likewise.
43963         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43964         implies replacing fseek.
43965         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43966         HAVE_FTELLO.
43967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43968         * modules/unistd (Makefile.am): Likewise.
43969         * lib/unistd_.h (lseek): Declare a replacement.
43970         * doc/functions/lseek.texi (lseek): Document this fix.
43971         * doc/functions/fseek.texi (fseek): Likewise.
43972         * doc/functions/ftell.texi (ftell): Likewise.
43973
43974 2007-05-24  Bruno Haible  <bruno@clisp.org>
43975
43976         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43977         in the printed representation of a NaN.
43978         * tests/test-vasprintf-posix.c (test_function): Likewise.
43979         * tests/test-snprintf-posix.h (test_function): Likewise.
43980         * tests/test-sprintf-posix.h (test_function): Likewise.
43981         Reported by Eric Blake.
43982
43983 2007-05-23  Eric Blake  <ebb9@byu.net>
43984
43985         Fix fseeko/ftello on cygwin 1.5.24.
43986         * doc/functions/fseeko.texi (fseeko): Document the fix.
43987         * doc/functions/ftello.texi (ftello): Document the fix.
43988         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43989         * doc/functions/stdout.text (stdout): New file.
43990         * doc/functions/stderr.text (stderr): New file.
43991         * doc/gnulib.texi (Function Substitutes): Use new files.
43992         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43993         prior to 1.7.0.
43994         * tests/test-ftello.c (main): Likewise for ftello.
43995         * tests/test-fseeko.sh: New file.
43996         * tests/test-ftello.sh: New file.
43997         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43998         with seekable stdin.
43999         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
44000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
44001         (gl_REPLACE_FSEEKO): New macro.
44002         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
44003         * modules/fseeko (Files): Distribute fseeko.c.
44004         * modules/ftello (Files): Distribute ftello.c.
44005         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
44006         mode.
44007         * lib/ftello.c (rpl_ftello): New file.
44008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
44009         fseeko, ftello.
44010         (gl_STDIN_LARGE_OFFSET): New macro.
44011         * modules/stdio (Makefile.am): Perform the replacement.
44012         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
44013
44014 2007-05-23  Bruno Haible  <bruno@clisp.org>
44015
44016         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
44017         GNULIB_POSIXCHECK is defined.
44018
44019 2007-05-21  Bruno Haible  <bruno@clisp.org>
44020
44021         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
44022         Check also the output for NaN arguments. When cross-compiling, guess
44023         no on IRIX.
44024         * lib/vasnprintf.c: Update comments.
44025         * tests/test-vasnprintf-posix.c (strisnan): New function.
44026         (test_function): Use it.
44027         * tests/test-vasprintf-posix.c (strisnan): New function.
44028         (test_function): Use it.
44029         * tests/test-snprintf-posix.h (strisnan): New function.
44030         (test_function): Use it.
44031         * tests/test-sprintf-posix.h (strisnan): New function.
44032         (test_function): Use it.
44033         Reported by Eric Blake.
44034
44035 2007-05-20  Bruno Haible  <bruno@clisp.org>
44036
44037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
44038         numbers that fails on BeOS.
44039         * doc/functions/frexpl.texi: Update.
44040
44041 2007-05-20  Jim Meyering  <jim@meyering.net>
44042
44043         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
44044         forced upon us by glibc-2.6.
44045
44046 2007-05-20  Bruno Haible  <bruno@clisp.org>
44047
44048         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
44049         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
44050         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
44051         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
44052         NEED_PRINTF_INFINITE.
44053         (is_infinitel): New function.
44054         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
44055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
44056         gl_PREREQ_VASNPRINTF_INFINITE.
44057         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
44058         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44059         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
44060         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
44061         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
44062         gl_PREREQ_VASNPRINTF_INFINITE.
44063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44064         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44065         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44066         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44067         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44070         * doc/functions/fprintf.texi: Update.
44071         * doc/functions/printf.texi: Update.
44072         * doc/functions/snprintf.texi: Update.
44073         * doc/functions/sprintf.texi: Update.
44074         * doc/functions/vfprintf.texi: Update.
44075         * doc/functions/vprintf.texi: Update.
44076         * doc/functions/vsnprintf.texi: Update.
44077         * doc/functions/vsprintf.texi: Update.
44078
44079 2007-05-20  Bruno Haible  <bruno@clisp.org>
44080
44081         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
44082         was not found in libc.
44083         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44084
44085 2007-05-20  Bruno Haible  <bruno@clisp.org>
44086
44087         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44088         printed as "-nan" instead of "nan".
44089         * tests/test-vasprintf-posix.c (test_function): Likewise.
44090         * tests/test-snprintf-posix.h (test_function): Likewise.
44091         * tests/test-sprintf-posix.h (test_function): Likewise.
44092         Needed for HP-UX 11.
44093
44094 2007-05-20  Jim Meyering  <jim@meyering.net>
44095
44096         Fix buggy test for the fchownat-deref bug.
44097         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
44098         symlink required for the run-test.  Without it, this test would
44099         always declare that fchownat doesn't work, and client code would
44100         unnecessarily use the replacement function with fixed libc.
44101         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
44102         Reported by Greg Schafer.
44103
44104 2007-05-19  Bruno Haible  <bruno@clisp.org>
44105
44106         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
44107         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
44108         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
44109         Needed for IRIX 6.5 and Solaris 2.5.1.
44110
44111 2007-05-19  Bruno Haible  <bruno@clisp.org>
44112
44113         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
44114         (test_function): Skip tests involving -0.0 on platforms where
44115         -0.0 = 0.0.
44116         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
44117         (test_function): Skip tests involving -0.0 on platforms where
44118         -0.0 = 0.0.
44119         * tests/test-snprintf-posix.h (have_minus_zero): New function.
44120         (test_function): Skip tests involving -0.0 on platforms where
44121         -0.0 = 0.0.
44122         * tests/test-sprintf-posix.h (have_minus_zero): New function.
44123         (test_function): Skip tests involving -0.0 on platforms where
44124         -0.0 = 0.0.
44125         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
44126         tests.
44127         * tests/test-printf-posix.h (test_function): Likewise.
44128         * tests/test-printf-posix.output: Remove all -0.0 related results.
44129         Needed for IRIX 6.5.
44130
44131 2007-05-19  Bruno Haible  <bruno@clisp.org>
44132
44133         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
44134         printed as "nan0x7fffffff" instead of "nan".
44135         * tests/test-vasprintf-posix.c (test_function): Likewise.
44136         * tests/test-snprintf-posix.h (test_function): Likewise.
44137         * tests/test-sprintf-posix.h (test_function): Likewise.
44138         * tests/test-fprintf-posix.h (NaN): Remove macro.
44139         (test_function): Remove all NaN related tests.
44140         * tests/test-printf-posix.h (NaN): Remove macro.
44141         (test_function): Remove all NaN related tests.
44142         * tests/test-printf-posix.output: Remove all NaN related results.
44143         Needed for IRIX 6.5.
44144
44145 2007-05-19  Bruno Haible  <bruno@clisp.org>
44146
44147         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
44148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44149
44150 2007-05-19  Bruno Haible  <bruno@clisp.org>
44151
44152         * lib/float_.h: New file.
44153         * m4/float_h.m4: New file.
44154         * modules/float: New file.
44155         * modules/isnanl (Dependencies): Add float.
44156         * modules/isnanl-nolibm (Dependencies): Likewise.
44157         * modules/mathl (Dependencies): Likewise.
44158         * modules/printf-frexpl (Dependencies): Likewise.
44159         * modules/signbit (Dependencies): Likewise.
44160         * modules/vasnprintf (Dependencies): Likewise.
44161         * doc/headers/float.texi: Update.
44162
44163 2007-05-19  Jim Meyering  <jim@meyering.net>
44164
44165         * lib/utimens.c (gl_futimens): Rename from futimens,
44166         now that glibc-2.6 declares futimens.
44167         * lib/utimens.h: Likewise.
44168
44169 2007-05-19  Bruno Haible  <bruno@clisp.org>
44170
44171         Avoid test failures on mingw.
44172         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
44173         * tests/test-printf-posix.sh: Likewise.
44174         * tests/test-vfprintf-posix.sh: Likewise.
44175         * tests/test-vprintf-posix.sh: Likewise.
44176
44177 2007-05-19  Bruno Haible  <bruno@clisp.org>
44178
44179         Fix *printf result for NaN, Inf, -0.0 on mingw.
44180         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
44181         * lib/vasnprintf.c: Include math.h and isnan.h.
44182         (is_infinite_or_zero): New function.
44183         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
44184         values in the %f, %F, %e, %E, %g, %G directives.
44185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
44186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44187         gl_PRINTF_INFINITE and test its result. Invoke
44188         gl_PREREQ_VASNPRINTF_INFINITE.
44189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44196         * doc/functions/fprintf.texi: Update.
44197         * doc/functions/printf.texi: Update.
44198         * doc/functions/snprintf.texi: Update.
44199         * doc/functions/sprintf.texi: Update.
44200         * doc/functions/vfprintf.texi: Update.
44201         * doc/functions/vprintf.texi: Update.
44202         * doc/functions/vsnprintf.texi: Update.
44203         * doc/functions/vsprintf.texi: Update.
44204
44205 2007-05-19  Bruno Haible  <bruno@clisp.org>
44206
44207         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
44208         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
44209         Instead of multiplying with 10^k, set extra_zeroes to k.
44210         (scale10_round_long_double): Remove function.
44211
44212 2007-05-18  Bruno Haible  <bruno@clisp.org>
44213
44214         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
44215         introduced on 2007-05-06.
44216
44217 2007-05-18  Bruno Haible  <bruno@clisp.org>
44218
44219         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
44220         %g directives.
44221         * tests/test-vasprintf-posix.c (test_function): Likewise.
44222         * tests/test-snprintf-posix.h (test_function): Likewise.
44223         * tests/test-sprintf-posix.h (test_function): Likewise.
44224
44225 2007-05-18  Bruno Haible  <bruno@clisp.org>
44226
44227         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
44228         (strmatch): New function.
44229         (test_function): Test the %f directive on numbers of various exponents.
44230         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
44231         (strmatch): New function.
44232         (test_function): Test the %f directive on numbers of various exponents.
44233         * tests/test-snprintf-posix.h (strmatch): New function.
44234         (test_function): Test the %f directive on numbers of various exponents.
44235         * tests/test-sprintf-posix.h (strmatch): New function.
44236         (test_function): Test the %f directive on numbers of various exponents.
44237         * tests/test-snprintf-posix.c (SIZEOF): New macro.
44238         * tests/test-sprintf-posix.c (SIZEOF): New macro.
44239         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
44240         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
44241
44242 2007-05-18  Bruno Haible  <bruno@clisp.org>
44243
44244         Add support for 'long double' number output.
44245         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
44246         * lib/vasnprintf.c: Include math.h and float+.h.
44247         (mp_limb_t): New type.
44248         (GMP_LIMB_BITS): New macro.
44249         (mp_twolimb_t): New type.
44250         (GMP_TWOLIMB_BITS): New macro.
44251         (mpn_t): New type.
44252         (multiply, divide, convert_to_decimal, decode_long_double,
44253         scale10_round_long_double, scale10_round_decimal_long_double,
44254         floorlog10l): New functions.
44255         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
44256         for the %f, %F, %e, %E, %g, %G directives.
44257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
44258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44259         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
44260         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
44261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44263         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44268         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
44269         * modules/snprintf-posix (Depends-on): Likewise.
44270         * modules/sprintf-posix (Depends-on): Likewise.
44271         * modules/vasnprintf-posix (Depends-on): Likewise.
44272         * modules/vasprintf-posix (Depends-on): Likewise.
44273         * modules/vfprintf-posix (Depends-on): Likewise.
44274         * modules/vsnprintf-posix (Depends-on): Likewise.
44275         * modules/vsprintf-posix (Depends-on): Likewise.
44276         * modules/vasnprintf (Files): Add lib/float+.h.
44277         * doc/functions/fprintf.texi: Update.
44278         * doc/functions/printf.texi: Update.
44279         * doc/functions/snprintf.texi: Update.
44280         * doc/functions/sprintf.texi: Update.
44281         * doc/functions/vfprintf.texi: Update.
44282         * doc/functions/vprintf.texi: Update.
44283         * doc/functions/vsnprintf.texi: Update.
44284         * doc/functions/vsprintf.texi: Update.
44285
44286 2007-05-18  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44289
44290 2007-05-18  Bruno Haible  <bruno@clisp.org>
44291
44292         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44293         for printing 64-bit integers. Needed for mingw.
44294
44295 2007-05-18  Bruno Haible  <bruno@clisp.org>
44296
44297         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44298         gl_FUNC_FREXPL_WORKS.
44299         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44300
44301 2007-05-18  Bruno Haible  <bruno@clisp.org>
44302
44303         * modules/frexpl-nolibm-tests: New file.
44304
44305         * modules/frexpl-nolibm: New file.
44306         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44307
44308 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44309
44310         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44311         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44312         GCC 4.2, which otherwise issues a lot of warnings.
44313         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44314         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44315         Likewise.
44316         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44317         * modules/iconv_open (iconv.h): Likewise.
44318         * modules/locale (locale.h): Likewise.
44319         * modules/netinet_in (netinet/in.h): Likewise.
44320         * modules/sys_select (sys_select.h): Likewise.
44321         * modules/sys_socket (sys/socket.h): Likewise.
44322         * modules/sys_stat (sys/stat.h): Likewise.
44323         * modules/sysexits (sysexits.h): Likewise.
44324         * modules/unistd (unistd.h): Likewise.
44325
44326 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44327
44328         * modules/closein-tests (Makefile.am): Distribute
44329         `test-closein.sh'.
44330
44331 2007-05-17  Bruno Haible  <bruno@clisp.org>
44332
44333         * tests/test-printf-posix.output: Renamed from
44334         tests/test-fprintf-posix.out.
44335         * modules/fprintf-posix-tests: Update.
44336         * modules/printf-posix-tests: Update.
44337         * modules/vfprintf-posix-tests: Update.
44338         * modules/vprintf-posix-tests: Update.
44339         * tests/test-fprintf-posix.sh: Update.
44340         * tests/test-printf-posix.sh: Update.
44341         * tests/test-vfprintf-posix.sh: Update.
44342         * tests/test-vprintf-posix.sh: Update.
44343         Reported by Ralf Wildenhues.
44344
44345 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44346
44347         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44348         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44349         GCC 4.2, which otherwise issues a lot of warnings.
44350         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44351         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44352         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44353         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44354         it should no longer be needed.
44355         * lib/string_.h: Likewise.
44356         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44357         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44358         * modules/inttypes (inttypes.h): Likewise.
44359         * modules/math (math.h): Likewise.
44360         * modules/search (search.h): Likewise.
44361         * modules/signal (signal.h): Likewise.
44362         * modules/stdint (stdint.h): Likewise.
44363         * modules/stdio (stdio.h): Likewise.
44364         * modules/stdlib (stdlib.h): Likewise.
44365         * modules/string (string.h): Likewise.
44366         * modules/sys_time (sys/time.h): Likewise.
44367         * modules/time (time.h): Likewise.
44368         * modules/wchar (wchar.h): Likewise.
44369         * modules/wctype (wtype.h): Likewise.
44370
44371 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44372
44373         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44374
44375 2007-05-13  Bruno Haible  <bruno@clisp.org>
44376
44377         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44378         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44379         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44380         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44381         (gl_PREREQ_STRTOK_R): Don't require it here.
44382
44383 2007-05-13  Bruno Haible  <bruno@clisp.org>
44384
44385         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44386         when used in C++ mode.
44387
44388 2007-05-12  Bruno Haible  <bruno@clisp.org>
44389
44390         * lib/linebuffer.h: Tweak doc.
44391         * lib/linebuffer.c: Likewise.
44392
44393 2007-05-12  James Youngman  <jay@gnu.org>
44394
44395         * lib/linebuffer.c (readlinebuffer_delim): New function,
44396         like readlinebuffer, but use a caller-specified delimiter.
44397         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44398         as the delimiter.
44399         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44400
44401 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44402
44403         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44404         * modules/openat (Files): Remove openat-die.c.
44405         (Depends-on): Add openat-die.
44406         * modules/openat-die: New module.
44407
44408 2007-05-06  Bruno Haible  <bruno@clisp.org>
44409
44410         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44411         Update with info about Cygwin.
44412         * doc/functions/fprintf.texi: Update.
44413         * doc/functions/printf.texi: Update.
44414         * doc/functions/snprintf.texi: Update.
44415         * doc/functions/sprintf.texi: Update.
44416         * doc/functions/vfprintf.texi: Update.
44417         * doc/functions/vprintf.texi: Update.
44418         * doc/functions/vsnprintf.texi: Update.
44419         * doc/functions/vsprintf.texi: Update.
44420         Reported by Eric Blake.
44421
44422 2007-05-06  Bruno Haible  <bruno@clisp.org>
44423
44424         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44425         padding ourselves for the floating-point directives.
44426         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44429         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44430         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44438         * tests/test-snprintf-posix.h (test_function): Also check the width
44439         and some flags in the %f directive.
44440         * tests/test-sprintf-posix.h (test_function): Likewise.
44441         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44442         * tests/test-vasprintf-posix.c (test_function): Likewise.
44443         * doc/functions/fprintf.texi: Update.
44444         * doc/functions/printf.texi: Update.
44445         * doc/functions/snprintf.texi: Update.
44446         * doc/functions/sprintf.texi: Update.
44447         * doc/functions/vfprintf.texi: Update.
44448         * doc/functions/vprintf.texi: Update.
44449         * doc/functions/vsnprintf.texi: Update.
44450         * doc/functions/vsprintf.texi: Update.
44451
44452 2007-05-06  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44455         pass the ' flag character to sprintf or snprintf.
44456         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44459         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44460         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44468         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44469         flag.
44470         * tests/test-sprintf-posix.h (test_function): Likewise.
44471         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44472         * tests/test-vasprintf-posix.c (test_function): Likewise.
44473         * doc/functions/fprintf.texi: Update.
44474         * doc/functions/printf.texi: Update.
44475         * doc/functions/snprintf.texi: Update.
44476         * doc/functions/sprintf.texi: Update.
44477         * doc/functions/vfprintf.texi: Update.
44478         * doc/functions/vprintf.texi: Update.
44479         * doc/functions/vsnprintf.texi: Update.
44480         * doc/functions/vsprintf.texi: Update.
44481
44482 2007-05-01  Bruno Haible  <bruno@clisp.org>
44483
44484         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44485
44486 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44487
44488         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44489         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44490
44491 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44492
44493         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44494         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44496
44497 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44498
44499         * lib/argp-help.c (struct hol_entry): New member `ord'.
44500         (HOL_ENTRY_PTRCMP): Use ord for comparison
44501         (hol_sort): Initialize ord.
44502
44503 2007-05-01  Bruno Haible  <bruno@clisp.org>
44504
44505         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44506         Reported by Eric Blake.
44507         * doc/gnulib.texi (Function Substitutes): Update.
44508
44509 2007-05-01  Bruno Haible  <bruno@clisp.org>
44510
44511         * doc/functions.texi: Remove file, now redundant through
44512         doc/functions/*.texi.
44513
44514 2007-05-01  Bruno Haible  <bruno@clisp.org>
44515
44516         * modules/argp (Depends-on): Add sleep.
44517
44518 2007-05-01  Bruno Haible  <bruno@clisp.org>
44519
44520         * modules/sleep-tests: New file.
44521         * tests/test-sleep.c: New file.
44522
44523         * modules/sleep: New file.
44524         * lib/sleep.c: New file.
44525         * m4/sleep.m4: New file.
44526         * lib/unistd_.h (sleep): New declaration.
44527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44528         HAVE_SLEEP.
44529         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44530         * doc/functions/sleep.texi: Document the sleep module.
44531
44532 2007-05-01  Bruno Haible  <bruno@clisp.org>
44533
44534         * lib/sigprocmask.h: Remove file.
44535         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44536         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44537         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44538         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44539         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44540         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44541         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44542         HAVE_SIGSET_T as a shell variable.
44543         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44544         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44545         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44546         (Depends-on): Add signal. Remove verify.
44547         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44548         (Include): Mention <signal.h> instead of sigprocmask.h.
44549         * NEWS: Mention the change.
44550         * lib/fatal-signal.c: Don't include sigprocmask.h.
44551
44552 2007-05-01  Bruno Haible  <bruno@clisp.org>
44553
44554         * modules/signal: New file.
44555         * lib/signal_.h: New file.
44556         * m4/signal_h.m4: New file.
44557
44558 2007-05-01  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44561         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44562         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44563         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44564
44565 2007-05-01  Bruno Haible  <bruno@clisp.org>
44566
44567         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44568         configure time.
44569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44570         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44571         * modules/sys_stat (Makefile.am): Substitute their values into
44572         sys/stat.h.
44573
44574 2007-05-01  Bruno Haible  <bruno@clisp.org>
44575
44576         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44577         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44578         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44579
44580 2007-05-01  Bruno Haible  <bruno@clisp.org>
44581
44582         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44583         'assert' module here.
44584
44585 2007-05-01  Bruno Haible  <bruno@clisp.org>
44586
44587         * doc/functions/*.texi: New files.
44588         * doc/functions/google-ranking.txt: New file.
44589         * doc/gnulib.texi (Function Substitutes): New chapter.
44590         (ctime, inet_ntoa): Remove sections.
44591         * doc/ctime.texi: Remove file.
44592         * doc/inet_ntoa.texi: Remove file.
44593         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44594         dependencies.
44595         (%.info): New rule, specifying a --reference-limit.
44596
44597 2007-05-01  Bruno Haible  <bruno@clisp.org>
44598
44599         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44600
44601 2007-05-01  Bruno Haible  <bruno@clisp.org>
44602
44603         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44604         the portability of 'mkdir' to mingw systems.
44605
44606 2007-05-01  Bruno Haible  <bruno@clisp.org>
44607
44608         * doc/headers/google-ranking.txt: New file.
44609
44610 2007-04-30  Eric Blake  <ebb9@byu.net>
44611
44612         Prefer fseeko to fseek.
44613         * modules/getpass (Depends-on): Add fseeko.
44614         * lib/getpass.c (getpass): Use fseeko, not fseek.
44615
44616 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44617
44618         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44619         assumes the sorting is stable, while most qsort implementations
44620         are not.  Use argument addresses to ensure they never compare as
44621         equal.
44622
44623         * tests/test-argp-2.sh (usage-indent test): Fix output
44624         (func_compare): Restore diff options
44625         * tests/test-argp.c: Restore #include "progname.h"
44626
44627 2007-04-29  Bruno Haible  <bruno@clisp.org>
44628
44629         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44631         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44633         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44634         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44635         (TESTS, check_PROGRAMS): Add test-snprintf.
44636         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44637         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44638         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44639         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44640         assertions that fail on HP-UX, OSF/1, or IRIX.
44641         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44642
44643 2007-04-29  Bruno Haible  <bruno@clisp.org>
44644
44645         * MODULES.html.sh (posix_functions): Remove 'contents'.
44646
44647 2007-04-29  Karl Berry  <karl@gnu.org>
44648
44649         * config/srclist.txt (gendocs_template_min): new entry.
44650
44651 2007-04-29  Bruno Haible  <bruno@clisp.org>
44652
44653         Work around fpurge bug on BSD systems.
44654         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44655         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44656         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44657         fpurge to rpl_fpurge if the system already has this function.
44658         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44659         the case where the system already has this function. Correct invariants
44660         on BSD systems.
44661         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44662         BSD systems.
44663
44664 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44665
44666         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44667         proposed by Sven Verdoolaege.
44668
44669         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44670         options.
44671         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44672         (usage and help tests): Update
44673
44674 2007-04-29  Bruno Haible  <bruno@clisp.org>
44675
44676         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44677         Print more information in case of failure. Disable a test on BeOS.
44678
44679 2007-04-29  Bruno Haible  <bruno@clisp.org>
44680
44681         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44682         This helps debugging on systems on which no gdb is available.
44683
44684 2007-04-29  Bruno Haible  <bruno@clisp.org>
44685
44686         * lib/freading.h: Improve comments.
44687         * lib/fwriting.h: Likewise.
44688         * tests/test-freading.c (main): Don't check freading immediately after
44689         repositioning. Needed for glibc.
44690
44691 2007-04-29  Bruno Haible  <bruno@clisp.org>
44692
44693         * lib/freading.c (freading): Trivial simplification.
44694
44695 2007-04-28  Bruno Haible  <bruno@clisp.org>
44696
44697         * tests/test-fwriting.c (main): Also test the interaction between
44698         fflush and fwriting.
44699         * modules/fwriting-tests (Depends-on): Add fflush.
44700
44701         * tests/test-freading.c (main): Also test the interaction between
44702         fflush and freading.
44703         * modules/freading-tests (Depends-on): Add fflush.
44704
44705 2007-04-28  Bruno Haible  <bruno@clisp.org>
44706
44707         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44708         fseeko and ftello.
44709         Suggested by Eric Blake.
44710
44711 2007-04-28  Jim Meyering  <jim@meyering.net>
44712
44713         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44714         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44715         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44716
44717 2007-04-27  Eric Blake  <ebb9@byu.net>
44718
44719         * doc/headers/assert.texi (assert.h): Document assert module use.
44720
44721 2007-04-27  Bruno Haible  <bruno@clisp.org>
44722
44723         * doc/headers/*.texi: New files.
44724         * doc/gnulib.texi (Header File Substitutes): New chapter.
44725         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44726         dependencies.
44727         (standards.info ,standards.html, standards.dvi): Update dependencies.
44728         (mostlyclean, clean): New targets.
44729
44730 2007-04-27  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44733         * modules/sysexits (Files, Makefile.am): Update.
44734
44735         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44736         * modules/sys_socket (Files, Makefile.am): Update.
44737
44738         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44739         * modules/sys_stat (Files, Makefile.am): Update.
44740
44741 2007-04-27  Eric Blake  <ebb9@byu.net>
44742
44743         * lib/freading.h: Improve comments.
44744         * lib/fwriting.h: Likewise.
44745         * lib/fflush.c: Likewise.
44746
44747         Fix closein for mingw.
44748         * modules/closein-tests: Add tests for closein.
44749         * tests/test-closein.c: New file.
44750         * tests/test-closein.sh: Likewise.
44751         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44752         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44753
44754 2007-04-27  Bruno Haible  <bruno@clisp.org>
44755
44756         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44757         version is < 6.
44758         * lib/math_.h [__DECC]: Likewise.
44759         * lib/stdio_.h [__DECC]: Likewise.
44760         * lib/stdlib_.h [__DECC]: Likewise.
44761         * lib/string_.h [__DECC]: Likewise.
44762         * lib/time_.h [__DECC]: Likewise.
44763         * lib/wchar_.h [__DECC]: Likewise.
44764         * lib/wctype_.h [__DECC]: Likewise.
44765
44766 2007-04-27  Bruno Haible  <bruno@clisp.org>
44767
44768         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44769
44770 2007-04-27  Bruno Haible  <bruno@clisp.org>
44771
44772         * lib/fflush.c: Add comments.
44773         * modules/fpurge-tests (Depends-on): Add fflush.
44774         * modules/freadable-tests (Depends-on): Likewise.
44775         * modules/fwritable-tests (Depends-on): Likewise.
44776
44777 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44778
44779         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44780         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44781         Report by Bruno Haible <bruno@clisp.org>.
44782
44783 2007-04-26  Eric Blake  <ebb9@byu.net>
44784
44785         Fix fflush on mingw.
44786         * modules/fflush (Depends-on): Add freading.
44787         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44788         but unread data.
44789
44790 2007-04-26  Eric Blake  <ebb9@byu.net>
44791         and Bruno Haible  <bruno@clisp.org>
44792
44793         Implement freading and fwriting.
44794         * lib/freading.c: New file.
44795         * lib/freading.h: Likewise.
44796         * m4/freading.m4: Likewise.
44797         * modules/freading: Likewise.
44798         * modules/freading-tests: Likewise.
44799         * tests/test-freading.c: Likewise.
44800         * lib/fwriting.c: New file.
44801         * lib/fwriting.h: Likewise.
44802         * m4/fwriting.m4: Likewise.
44803         * modules/fwriting: Likewise.
44804         * modules/fwriting-tests: Likewise.
44805         * tests/test-fwriting.c: Likewise.
44806         * MODULES.html.sh (File stream based Input/Output): Mention them.
44807
44808 2007-04-26  Bruno Haible  <bruno@clisp.org>
44809
44810         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44811         'long' when we assume it.
44812         Suggested by Eric Blake.
44813
44814 2007-04-26  Bruno Haible  <bruno@clisp.org>
44815
44816         Ensure fseeko, ftello are declared on glibc systems.
44817         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44818         * modules/fseeko (configure.ac-early): Likewise.
44819         * modules/ftello (configure.ac-early): Likewise.
44820         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44821         AC_FUNC_FSEEKO for this.
44822         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44823         (gl_CHECK_FSEEKO): Remove macro.
44824
44825 2007-04-26  Bruno Haible  <bruno@clisp.org>
44826
44827         * tests/test-fflush.c (main): Also check the ftell result after
44828         fflush and fseek/fseeko.
44829         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44830         file descriptor position cache in the stream.
44831         * lib/fseeko.c (rpl_fseeko): Likewise.
44832
44833 2007-04-26  Bruno Haible  <bruno@clisp.org>
44834
44835         * modules/fflush-tests (Depends-on): Add fseeko.
44836
44837 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44838             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44839
44840         * lib/argz_.h: ensure error_t definition is obtained in same
44841         mechanism system argz.h would have.
44842         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44843         argz facilities are known bad.  Err on the side of caution if
44844         cross-compiling.
44845
44846 2007-04-25  Eric Blake  <ebb9@byu.net>
44847
44848         * lib/fpurge.c (includes): Use stdlib.h for free.
44849         * tests/test-fflush.c (main): Also test fflush-fseeko.
44850
44851 2007-04-25  Bruno Haible  <bruno@clisp.org>
44852
44853         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44854         * lib/fseeko.c: New file.
44855         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44856         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44857         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44858         gl_FUNC_FSEEKO.
44859         (gl_FUNC_FSEEKO): Invoke it.
44860         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44861         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44862         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44863
44864 2007-04-25  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/fflush (Depends-on): Add ftello.
44867
44868 2007-04-25  Bruno Haible  <bruno@clisp.org>
44869
44870         * modules/ftello-tests: New file.
44871         * tests/test-ftello.c: New file.
44872
44873         * modules/ftello: New file.
44874         * m4/ftello.m4: New file.
44875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44876         HAVE_FTELLO.
44877         * lib/stdio_.h (ftello): New declaration.
44878         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44879         HAVE_FTELLO.
44880
44881 2007-04-25  Bruno Haible  <bruno@clisp.org>
44882
44883         * modules/fseeko-tests: New file.
44884         * tests/test-fseeko.c: New file.
44885
44886         * modules/fseeko: New file.
44887         * m4/fseeko.m4: New file.
44888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44889         HAVE_FSEEKO.
44890         * lib/stdio_.h (fseeko): New declaration.
44891         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44892         HAVE_FSEEKO.
44893
44894 2007-04-25  Bruno Haible  <bruno@clisp.org>
44895
44896         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44897
44898 2007-04-25  Bruno Haible  <bruno@clisp.org>
44899
44900         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44901         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44902         * tests/test-unistd.c: Likewise.
44903         * tests/test-fcntl.c: Likewise.
44904
44905 2007-04-23  Eric Blake  <ebb9@byu.net>
44906
44907         * lib/fflush.c: Fix missing include.
44908         Reported by Bruno Haible.
44909
44910 2007-04-23  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44913         Reported by Eric Blake.
44914
44915 2007-04-23  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44918
44919 2007-04-23  Bruno Haible  <bruno@clisp.org>
44920
44921         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44922
44923 2007-04-23  Bruno Haible  <bruno@clisp.org>
44924
44925         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44926         Needed on HP-UX 11.
44927
44928 2007-04-16  Eric Blake  <ebb9@byu.net>
44929
44930         Make fflush rely on fpurge.
44931         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44932         open coding all variants.
44933         * modules/fflush (Depends-on): Add fpurge and unistd.
44934         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44935         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44936
44937         Fix --with-tests compilation on cygwin.
44938         * modules/argmatch-tests (Makefile.am): List gnulib library first
44939         in LDADD.
44940         * modules/argp-tests (Makefile.am): Likewise.
44941         * modules/array-list-tests (Makefile.am): Likewise.
44942         * modules/array-oset-tests (Makefile.am): Likewise.
44943         * modules/avltree-list-tests (Makefile.am): Likewise.
44944         * modules/avltree-oset-tests (Makefile.am): Likewise.
44945         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44946         * modules/carray-list-tests (Makefile.am): Likewise.
44947         * modules/dirname-tests (Makefile.am): Likewise.
44948         * modules/frexp-tests (Makefile.am): Likewise.
44949         * modules/isnanl-tests (Makefile.am): Likewise.
44950         * modules/linked-list-tests (Makefile.am): Likewise.
44951         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44952         * modules/lock-tests (Makefile.am): Likewise.
44953         * modules/rbtree-list-tests (Makefile.am): Likewise.
44954         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44955         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44956         * modules/tls-tests (Makefile.am): Likewise.
44957         * modules/tsearch-tests (Makefile.am): Likewise.
44958         * modules/xvasprintf-tests (Makefile.am): Likewise.
44959
44960         Fix fpurge for cygwin.
44961         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44962         value.
44963         * modules/fpurge-tests (Depends-on): Clean up trash.
44964
44965 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44966
44967         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44968
44969         * m4/autobuild.m4: Re-indent.
44970
44971 2007-04-13  Bruno Haible  <bruno@clisp.org>
44972
44973         * modules/fpurge-tests: New file.
44974         * tests/test-fpurge.c: New file.
44975
44976         * modules/fpurge: New file.
44977         * lib/fpurge.h: New file.
44978         * lib/fpurge.c: New file.
44979         * m4/fpurge.m4: New file.
44980
44981 2007-04-13  Bruno Haible  <bruno@clisp.org>
44982
44983         * modules/fbufmode-tests: New file.
44984         * tests/test-fbufmode.c: New file.
44985
44986         * modules/fbufmode: New file.
44987         * lib/fbufmode.h: New file.
44988         * lib/fbufmode.c: New file.
44989         * m4/fbufmode.m4: New file.
44990
44991 2007-04-13  Bruno Haible  <bruno@clisp.org>
44992
44993         * modules/fwritable-tests: New file.
44994         * tests/test-fwritable.c: New file.
44995
44996         * modules/fwritable: New file.
44997         * lib/fwritable.h: New file.
44998         * lib/fwritable.c: New file.
44999         * m4/fwritable.m4: New file.
45000
45001 2007-04-13  Bruno Haible  <bruno@clisp.org>
45002
45003         * modules/freadable-tests: New file.
45004         * tests/test-freadable.c: New file.
45005
45006         * modules/freadable: New file.
45007         * lib/freadable.h: New file.
45008         * lib/freadable.c: New file.
45009         * m4/freadable.m4: New file.
45010
45011 2007-04-13  Bruno Haible  <bruno@clisp.org>
45012
45013         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
45014         MOSTLYCLEANFILES.
45015
45016 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45017
45018         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
45019         gzip bootstrap.conf to avoid dragging in i18n machinery.
45020         (gnulib_tool_option): Use it.
45021
45022 2007-04-13  Bruno Haible  <bruno@clisp.org>
45023
45024         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
45025         %F directives.
45026         * tests/test-vasprintf-posix.c (test_function): Likewise.
45027         * tests/test-snprintf-posix.h (test_function): Likewise.
45028         * tests/test-sprintf-posix.h (test_function): Likewise.
45029         * tests/test-fprintf-posix.h (test_function): Likewise.
45030         * tests/test-printf-posix.h (test_function): Likewise.
45031         * tests/test-fprintf-posix.out: Likewise.
45032
45033 2007-04-13  Bruno Haible  <bruno@clisp.org>
45034
45035         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
45036         * modules/tls-tests (configure.ac): Likewise.
45037         Reported by Arto C. Nirkko <anirkko@insel.ch>.
45038
45039 2007-04-13  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/tls.c (glthread_tls_get): Fix return type.
45042         Patch by Arto C. Nirkko <anirkko@insel.ch>.
45043
45044 2007-04-12  Eric Blake  <ebb9@byu.net>
45045
45046         * modules/gettime (Depends-on): Remove gettime.
45047         Reported by Dmitry V. Levin.
45048
45049 2007-04-12  Bruno Haible  <bruno@clisp.org>
45050
45051         * modules/fflush (Include): Mention <stdio.h>.
45052         * modules/strtoimax (Include): Mention <inttypes.h>.
45053         * modules/strtoumax (Include): Likewise.
45054
45055 2007-04-12  Eric Blake  <ebb9@byu.net>
45056
45057         * .cvsignore: New file.
45058         * .gitignore: Likewise.
45059
45060 2007-04-12  Bruno Haible  <bruno@clisp.org>
45061
45062         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
45063         not before, since $(LDADD) often contains libgnu.a.
45064         * modules/striconv-tests (test_striconv_LDADD): Likewise.
45065         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
45066         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
45067         Needed on Cygwin.
45068
45069 2007-04-12  Eric Blake  <ebb9@byu.net>
45070
45071         Work around glibc's failure to flush stdin on fclose.
45072         * lib/closein.c (close_stdin): Flush stdin before closing.
45073
45074         Work around glibc's failure to reset seekable stdin on exit.
45075         * modules/closein: New module.
45076         * lib/closein.c: New file.
45077         * lib/closein.h: Likewise.
45078         * m4/closein.m4: Likewise.
45079         * MODULES.html.sh (File stream based Input/Output): Document it.
45080
45081 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45082
45083         * gnulib-tool: Rename generated 'autobuild' script to
45084         'do-autobuild' in --create-megatestdir output.
45085
45086         * doc/gnulib.texi (Build robot for gnulib): Fix.
45087
45088 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45089
45090         * modules/sysexits (Depends-on): Add absolute-header.
45091
45092 2007-04-12  Eric Blake  <ebb9@byu.net>
45093
45094         No need to preserve errno on success.
45095         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
45096         Reported by Bruno Haible.
45097
45098 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45099
45100         * MODULES.html.sh (Support for maintaining and releasing
45101         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
45102
45103 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45104
45105         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
45106
45107 2007-04-12  Simon Josefsson  <simon@josefsson.org>
45108
45109         * modules/autobuild: New module.
45110
45111         * m4/autobuild.m4: New file.
45112
45113 2007-04-11  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
45116         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
45117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
45118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
45119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45120         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45121         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45123         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45124         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
45126         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45127         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
45129         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45130         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45131         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
45132         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45133         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
45135         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45136         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
45138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
45141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
45142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
45143         Reported by Eric Blake.
45144
45145 2007-04-11  Bruno Haible  <bruno@clisp.org>
45146
45147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
45148
45149 2007-04-10  Bruno Haible  <bruno@clisp.org>
45150
45151         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
45152         for NaN and Infinity. Needed on FreeBSD 6.1.
45153         * tests/test-vasnprintf-posix.c (test_function): Undo last change
45154         regarding results for "%010a" of Infinity and NaN.
45155         * tests/test-vasprintf-posix.c (test_function): Likewise.
45156         * tests/test-snprintf-posix.h (test_function): Likewise.
45157         * tests/test-sprintf-posix.h (test_function): Likewise.
45158         * tests/test-fprintf-posix.h (test_function): Likewise.
45159         * tests/test-printf-posix.h (test_function): Likewise.
45160         * tests/test-fprintf-posix.out: Likewise.
45161
45162 2007-04-10  Bruno Haible  <bruno@clisp.org>
45163
45164         * modules/locale-tests: New file.
45165         * tests/test-locale.c: New file.
45166
45167         * modules/locale: New file.
45168         * lib/locale_.h: New file.
45169         * m4/locale_h.m4: New file.
45170
45171 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
45172             Bruno Haible  <bruno@clisp.org>
45173
45174         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
45175         be determined, test for availability of the copysignf, copysign,
45176         copysignl functions.
45177         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
45178         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
45179         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
45180
45181 2007-04-09  Eric Blake  <ebb9@byu.net>
45182
45183         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
45184         * modules/stdio (Makefile.am): Support fflush.
45185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45186         * modules/fflush: New file.
45187         * lib/fflush.c: Likewise.
45188         * m4/fflush.m4: Likewise.
45189         * modules/fflush-tests: New test.
45190         * tests/test-fflush.c: Likewise.
45191         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
45192
45193 2007-04-06  Bruno Haible  <bruno@clisp.org>
45194
45195         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
45196         (VASNPRINTF): Use signbit for faster determination whether to print a
45197         minus sign.
45198         * modules/vasnprintf (Files): Remove lib/float+.h.
45199         * modules/fprintf-posix (Depends-on): Add signbit.
45200         * modules/snprintf-posix (Depends-on): Likewise.
45201         * modules/sprintf-posix (Depends-on): Likewise.
45202         * modules/vasnprintf-posix (Depends-on): Likewise.
45203         * modules/vasprintf-posix (Depends-on): Likewise.
45204         * modules/vfprintf-posix (Depends-on): Likewise.
45205         * modules/vsnprintf-posix (Depends-on): Likewise.
45206         * modules/vsprintf-posix (Depends-on): Likewise.
45207
45208 2007-04-06  Bruno Haible  <bruno@clisp.org>
45209
45210         * tests/test-frexp.c (main): Test also the sign bit of zero results.
45211         * tests/test-frexpl.c (main): Likewise.
45212         * tests/test-ldexpl.c (main): Likewise.
45213         * modules/frexp-tests (Depends-on): Add signbit.
45214         * modules/frexpl-tests (Depdends-on): Likewise.
45215         * modules/ldexpl-tests (Depdends-on): Likewise.
45216
45217 2007-04-06  Bruno Haible  <bruno@clisp.org>
45218
45219         * modules/signbit-tests: New file.
45220         * tests/test-signbit.c: New file.
45221
45222         * modules/signbit: New file.
45223         * lib/signbitf.c: New file.
45224         * lib/signbitd.c: New file.
45225         * lib/signbitl.c: New file.
45226         * m4/signbit.m4: New file.
45227         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
45228         (signbit): New macro.
45229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
45230         REPLACE_SIGNBIT.
45231         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
45232         REPLACE_FREXPL into math.h.
45233
45234 2007-04-06  Bruno Haible  <bruno@clisp.org>
45235
45236         * modules/isnanf-nolibm-tests: New file.
45237         * tests/test-isnanf.c: New file.
45238
45239         * modules/isnanf-nolibm: New file.
45240         * lib/isnanf.h: New file.
45241         * lib/isnanf.c: New file.
45242         * lib/isnan.c: Consider the USE_FLOAT macro.
45243         * m4/isnanf.m4: New file.
45244
45245 2007-04-06  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
45248         (Link): New section.
45249
45250         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
45251
45252 2007-04-06  Bruno Haible  <bruno@clisp.org>
45253
45254         Assume the 'long double' type.
45255         * m4/longdouble.m4: Remove file.
45256         * config/srclist.txt: Don't mention longdouble.m4.
45257         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
45258         * lib/float+.h: Likewise.
45259         * lib/frexp.c: Likewise.
45260         * lib/printf-args.h: Likewise.
45261         * lib/printf-args.c: Likewise.
45262         * lib/printf-frexp.c: Likewise.
45263         * lib/printf-parse.c: Likewise.
45264         * lib/vasnprintf.c: Likewise.
45265         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
45266         * m4/intl.m4: Likewise.
45267         * m4/isnanl.m4: Likewise.
45268         * m4/printf.m4: Likewise.
45269         * m4/printf-frexpl.m4: Likewise.
45270         * m4/vasnprintf.m4: Likewise.
45271         * modules/allocsa (Files): Remove m4/longdouble.m4.
45272         * modules/gettext (Files): Likewise.
45273         * modules/relocatable-prog-wrapper (Files): Likewise.
45274         * modules/vasnprintf (Files): Likewise.
45275         * modules/isnanl (Files): Likewise.
45276         (Include): Simplify.
45277         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
45278         (Include): Simplify.
45279         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
45280         (Include): Simplify.
45281         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45282         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45283         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45284         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45285         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45286         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45287         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45288         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45289         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45290         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45291         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45292         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45293         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45294         * tests/test-isnanl.c: Likewise.
45295         * tests/test-snprintf-posix.h: Likewise.
45296         * tests/test-sprintf-posix.h: Likewise.
45297         * tests/test-vasnprintf-posix.c: Likewise.
45298         * tests/test-vasnprintf-posix2.c: Likewise.
45299         * tests/test-vasprintf-posix.c: Likewise.
45300
45301 2007-04-06  Bruno Haible  <bruno@clisp.org>
45302
45303         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45304         * lib/math_.h [__DECC]: Include the overridden include file through
45305         #include_next, outside the double-inclusion guard.
45306         * lib/stdio_.h [__DECC]: Likewise.
45307         * lib/stdlib_.h [__DECC]: Likewise.
45308         * lib/string_.h [__DECC]: Likewise.
45309         * lib/time_.h [__DECC]: Likewise.
45310         * lib/wchar_.h [__DECC]: Likewise.
45311         * lib/wctype_.h [__DECC]: Likewise.
45312         * lib/inttypes_.h [__DECC]: Likewise.
45313         Reported by Albert Chin <china@thewrittenword.com> in
45314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45315
45316 2007-04-04  Eric Blake  <ebb9@byu.net>
45317
45318         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45319         1.5.x.
45320
45321 2007-04-04  Bruno Haible  <bruno@clisp.org>
45322
45323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45324         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45325
45326 2007-04-04  Bruno Haible  <bruno@clisp.org>
45327
45328         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45329         results for "%010a" of Infinity and NaN.
45330         * tests/test-vasprintf-posix.c (test_function): Likewise.
45331         * tests/test-snprintf-posix.h (test_function): Likewise.
45332         * tests/test-sprintf-posix.h (test_function): Likewise.
45333         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45334         * tests/test-printf-posix.h (test_function): Likewise.
45335         * tests/test-fprintf-posix.out: Update.
45336         Needed for FreeBSD 6.1.
45337
45338 2007-04-04  Bruno Haible  <bruno@clisp.org>
45339
45340         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45341         directly used by the gnulib modules nor by gnulib-tool.
45342
45343 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45344
45345         * DEPENDENCIES: Give overall description of version dependency
45346         desirability.  Use more-typical names for apps.
45347         Add shell, coreutils, diffutils, grep, tar, gzip.
45348
45349 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45350
45351         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45352
45353 2007-04-04  Karl Berry  <karl@gnu.org>
45354
45355         * MODULES.html.sh (func_module): missing '.
45356
45357 2007-04-03  Bruno Haible  <bruno@clisp.org>
45358
45359         * modules/argmatch-tests (Makefile.am): New variable
45360         test_argmatch_LDADD.
45361         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45362         * modules/array-list-tests (Makefile.am): New variable
45363         test_array_list_LDADD.
45364         * modules/array-oset-tests (Makefile.am): New variable
45365         test_array_oset_LDADD.
45366         * modules/avltree-list-tests (Makefile.am): New variable
45367         test_avltree_list_LDADD.
45368         * modules/avltree-oset-tests (Makefile.am): New variable
45369         test_avltree_oset_LDADD.
45370         * modules/avltreehash-list-tests (Makefile.am): New variable
45371         test_avltreehash_list_LDADD.
45372         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45373         test_canonicalize_lgpl_LDADD.
45374         * modules/carray-list-tests (Makefile.am): New variable
45375         test_carray_list_LDADD.
45376         * modules/dirname-tests (Makefile.am): New variable
45377         test_dirname_LDADD.
45378         * modules/linked-list-tests (Makefile.am): New variable
45379         test_linked_list_LDADD.
45380         * modules/linkedhash-list-tests (Makefile.am): New variable
45381         test_linkedhash_list_LDADD.
45382         * modules/rbtree-list-tests (Makefile.am): New variable
45383         test_rbtree_list_LDADD.
45384         * modules/rbtree-oset-tests (Makefile.am): New variable
45385         test_rbtree_oset_LDADD.
45386         * modules/rbtreehash-list-tests (Makefile.am): New variable
45387         test_rbtreehash_list_LDADD.
45388         * modules/xvasprintf-tests (Makefile.am): New variable
45389         test_xvasprintf_LDADD.
45390         Reported by Eric Blake.
45391
45392 2007-04-03  Eric Blake  <ebb9@byu.net>
45393
45394         * DEPENDENCIES: Weaken m4 requirements.
45395
45396 2007-04-03  Bruno Haible  <bruno@clisp.org>
45397
45398         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45399         * modules/isnanl-tests (configure.ac): Likewise.
45400
45401 2007-04-03  Ben Pfaff  <blp@gnu.org>
45402
45403         * modules/iconv_open: Add $(srcdir)/ to source directory
45404         references in Makefile fragments that call gperf, to fix VPATH
45405         builds.
45406
45407 2007-04-03  Bruno Haible  <bruno@clisp.org>
45408
45409         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45410         * lib/ldexpl.c: Undo last change.
45411
45412 2007-04-03  Bruno Haible  <bruno@clisp.org>
45413
45414         * modules/printf-frexpl (Depends-on): Undo last change.
45415         (Files): Add m4/ldexpl.m4.
45416
45417 2007-04-03  Bruno Haible  <bruno@clisp.org>
45418
45419         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45420         * modules/isnanl (Link): New section.
45421
45422         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45423         * modules/frexp (Link): New section.
45424
45425         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45426         * modules/frexpl (Link): New section.
45427
45428         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45429         * modules/ldexpl (Link): New section.
45430
45431 2007-04-03  Bruno Haible  <bruno@clisp.org>
45432
45433         * modules/TEMPLATE-EXTENDED: New file.
45434         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45435
45436 2007-04-03  Bruno Haible  <bruno@clisp.org>
45437
45438         * DEPENDENCIES: New file.
45439         Suggested by Simon Josefsson.
45440
45441 2007-04-03  Bruno Haible  <bruno@clisp.org>
45442
45443         * doc/gnulib.texi: Escape @.
45444
45445 2007-04-03  James Youngman  <jay@gnu.org>
45446         and Paul Eggert  <eggert@cs.ucla.edu>
45447
45448         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45449         birthtime on all systems that have birthtime, not just those which
45450         use st_birthtimensec rather than st_birthtim.  Putting zero in
45451         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45452         that the birth time is not available for files on an NFS mount.
45453
45454 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45455
45456         * modules/memxor: Move back from crypto/, suggested by Bruno.
45457         * modules/crypto/hmac-sha1: Fix memxor dependency.
45458
45459         * modules/crypto/gc: Moved from ../.
45460
45461 2007-04-02  Eric Blake  <ebb9@byu.net>
45462
45463         * lib/ldexpl.c (includes): Avoid libm.
45464
45465         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45466
45467 2007-04-02  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45470         on IRIX.
45471
45472 2007-04-02  Bruno Haible  <bruno@clisp.org>
45473
45474         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45475         x86 or x86_64 platforms running MacOS X.
45476         Reported by Ryan Schmidt <@ryandesign.com>.
45477
45478 2007-04-02  Bruno Haible  <bruno@clisp.org>
45479
45480         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45481         i386.
45482
45483 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45484
45485         * modules/crypto/arcfour: Moved from ../.
45486         * modules/crypto/arcfour-tests: Moved from ../.
45487         * modules/crypto/arctwo: Moved from ../.
45488         * modules/crypto/arctwo-tests: Moved from ../.
45489         * modules/crypto/des: Moved from ../.
45490         * modules/crypto/des-tests: Moved from ../.
45491         * modules/crypto/gc-arcfour: Moved from ../.
45492         * modules/crypto/gc-arcfour-tests: Moved from ../.
45493         * modules/crypto/gc-arctwo: Moved from ../.
45494         * modules/crypto/gc-arctwo-tests: Moved from ../.
45495         * modules/crypto/gc-des: Moved from ../.
45496         * modules/crypto/gc-des-tests: Moved from ../.
45497         * modules/crypto/gc-hmac-md5: Moved from ../.
45498         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45499         * modules/crypto/gc-hmac-sha1: Moved from ../.
45500         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45501         * modules/crypto/gc-md2: Moved from ../.
45502         * modules/crypto/gc-md2-tests: Moved from ../.
45503         * modules/crypto/gc-md4: Moved from ../.
45504         * modules/crypto/gc-md4-tests: Moved from ../.
45505         * modules/crypto/gc-md5: Moved from ../.
45506         * modules/crypto/gc-md5-tests: Moved from ../.
45507         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45508         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45509         * modules/crypto/gc-random: Moved from ../.
45510         * modules/crypto/gc-rijndael: Moved from ../.
45511         * modules/crypto/gc-rijndael-tests: Moved from ../.
45512         * modules/crypto/gc-sha1: Moved from ../.
45513         * modules/crypto/gc-sha1-tests: Moved from ../.
45514         * modules/crypto/gc-tests: Moved from ../.
45515         * modules/crypto/hmac-md5: Moved from ../.
45516         * modules/crypto/hmac-md5-tests: Moved from ../.
45517         * modules/crypto/hmac-sha1: Moved from ../.
45518         * modules/crypto/hmac-sha1-tests: Moved from ../.
45519         * modules/crypto/md2: Moved from ../.
45520         * modules/crypto/md2-tests: Moved from ../.
45521         * modules/crypto/md4: Moved from ../.
45522         * modules/crypto/md4-tests: Moved from ../.
45523         * modules/crypto/md5: Moved from ../.
45524         * modules/crypto/md5-tests: Moved from ../.
45525         * modules/crypto/memxor: Moved from ../.
45526         * modules/crypto/rijndael: Moved from ../.
45527         * modules/crypto/rijndael-tests: Moved from ../.
45528         * modules/crypto/sha1: Moved from ../.
45529
45530 2007-03-30  James Youngman  <jay@gnu.org>
45531
45532         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45533         rename() to change the ctime of a file (because ctime is unaffected
45534         by rename on jfs2 on AIX 5.1).
45535         (main): Start by doing cleanup, in case a previous run failed leaving
45536         test files behind.
45537
45538 2007-03-31  Bruno Haible  <bruno@clisp.org>
45539
45540         Support old proprietary implementations of iconv.
45541         * modules/iconv_open: New file.
45542         * lib/iconv_.h: New file.
45543         * m4/iconv_h.m4: New file.
45544         * lib/iconv_open.c: New file.
45545         * lib/iconv_open-aix.gperf: New file.
45546         * lib/iconv_open-hpux.gperf: New file.
45547         * lib/iconv_open-irix.gperf: New file.
45548         * lib/iconv_open-osf.gperf: New file.
45549         * m4/iconv_open.m4: New file.
45550         * modules/linebreak (Depends-on): Add iconv_open.
45551         * modules/striconv (Depends-on): Likewise.
45552         * modules/striconveh (Depends-on): Likewise.
45553         * modules/unicodeio (Depends-on): Likewise.
45554         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45555         (iconv_t)(-1).
45556         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45557         conversion if cd is (iconv_t)(-1).
45558         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45559         is not possible.
45560
45561 2007-03-31  Bruno Haible  <bruno@clisp.org>
45562
45563         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45564         work on Solaris either. Protect also second use of "autodetect_jp".
45565
45566 2007-03-31  Bruno Haible  <bruno@clisp.org>
45567
45568         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45569         the function is not present.
45570
45571 2007-03-31  Bruno Haible  <bruno@clisp.org>
45572
45573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45574         the function is not present.
45575
45576 2007-03-31  Bruno Haible  <bruno@clisp.org>
45577
45578         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45579         a bug in HP-UX iconv_open().
45580
45581 2007-03-31  Bruno Haible  <bruno@clisp.org>
45582
45583         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45584         (Mathematics <math.h>): New section, add fpieee.
45585         (Input/output <stdio.h>): Add fseterr.
45586         (Mathematics <math.h>): New section, add printf-frexp.
45587         (Container data structures): Add sublist.
45588         (Core language properties): Add fpucw, inline.
45589         (Functions for greatest-width integer types <inttypes.h>): Add
45590         imaxabs, imaxdiv, inttypes.
45591         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45592         isnanl-nolibm, ldexp.
45593         (Mathematics <math.h>): New section, add printf-frexpl.
45594         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45595         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45596         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45597         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45598         (Unicode string functions): Add unistr/u*-mbtoucr.
45599         (Java): Add javacomp-script, javaexec-script.
45600         (C#): Add csharpcomp-script, csharpexec-script.
45601         (Support for building libraries and executables): Add havelib,
45602         relocatable-*.
45603         (Support for maintaining and releasing projects): Renamed from
45604         'Support for maintaining and release projects'. Add announce-gen.
45605
45606 2007-03-31  Bruno Haible  <bruno@clisp.org>
45607
45608         * README: Talk primarily about git.
45609         (git and CVS): Renamed from CVS.
45610         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45611         gnulib is available through git.
45612         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45613
45614 2007-03-30  Bruno Haible  <bruno@clisp.org>
45615
45616         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45617         * lib/poll_.h: Likewise.
45618         * lib/stat_.h: Likewise.
45619         * lib/sys_time_.h: Likewise.
45620         * lib/sysexit_.h: Likewise.
45621         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45622         * lib/stdbool_.h: Likewise.
45623         * lib/byteswap_.h: Add double-inclusion guard.
45624
45625 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45626
45627         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45628
45629 2007-03-30  Karl Berry  <karl@gnu.org>
45630
45631         * config/srclist-update: double space after USA in the license
45632         substitution, since that's how it's usually (?) written.
45633
45634 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45635
45636         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45637         reported by Bruno Haible.
45638
45639 2007-03-29  Bruno Haible  <bruno@clisp.org>
45640
45641         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45642         a bug in AIX iconv().
45643
45644 2007-03-29  Bruno Haible  <bruno@clisp.org>
45645
45646         * modules/ldexpl-tests: New file.
45647         * tests/test-ldexpl.c: New file.
45648
45649 2007-03-29  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/ldexpl.c: Include fpucw.h.
45652         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45653         multiplication.
45654         * modules/ldexpl (Depends-on): Add fpucw.
45655
45656 2007-03-29  Bruno Haible  <bruno@clisp.org>
45657
45658         * modules/ldexpl: New file.
45659         * m4/ldexpl.m4: New file.
45660         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45661         set.
45662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45663         REPLACE_LDEXPL.
45664         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45665         REPLACE_LDEXPL.
45666         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45667         gl_FUNC_LDEXPL_WORKS.
45668         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45669         * modules/mathl (Files): Remove lib/ldexpl.c.
45670         (Depends-on): Add ldexpl.
45671
45672 2007-03-29  Bruno Haible  <bruno@clisp.org>
45673
45674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45675
45676 2007-03-29  Bruno Haible  <bruno@clisp.org>
45677
45678         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45679         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45680         and possibly also HP-UX.
45681         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45682         work on AIX, IRIX, HP-UX, OSF/1.
45683         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45684         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45685         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45686         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45687         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45688         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45689
45690 2007-03-29  Bruno Haible  <bruno@clisp.org>
45691
45692         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45693
45694 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45695
45696         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45697         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45698
45699 2007-03-29  Eric Blake  <ebb9@byu.net>
45700
45701         * lib/acl-internal.h: Remove redundant include.
45702         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45703         Cygwin when a file is locked.
45704
45705 2007-03-29  Bruno Haible  <bruno@clisp.org>
45706
45707         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45708         file.
45709         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45710
45711 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45712
45713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45714         try to remove a parent directory if the child couldn't be removed
45715         (except for the first rmdir, which could fail because the child
45716         doesn't exist).  Problem reported by Jeff Blaine in
45717         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45718
45719 2007-03-28  Bruno Haible  <bruno@clisp.org>
45720
45721         * lib/striconveh.c (utf8conv_carefully): New function.
45722         (mem_cd_iconveh_internal): Invoke it.
45723
45724 2007-03-28  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45727         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45728         input.
45729         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45730         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45731         unistr/u8-uctomb.
45732
45733 2007-03-28  Bruno Haible  <bruno@clisp.org>
45734
45735         * modules/unistr/u8-mbtoucr: New file.
45736         * lib/unistr/u8-mbtoucr.c: New file.
45737         * modules/unistr/u16-mbtoucr: New file.
45738         * lib/unistr/u16-mbtoucr.c: New file.
45739         * modules/unistr/u16-mbtoucr: New file.
45740         * lib/unistr/u16-mbtoucr.c: New file.
45741         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45742
45743 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45744             Bruno Haible  <bruno@clisp.org>
45745
45746         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45747         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45748         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45749
45750         * m4/stdio_h.m4: Add stubs for vasprintf too.
45751
45752         * modules/stdio: Support vasprintf in sed command.
45753
45754         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45755         vasprintf.h.  Add stdio module indicator.
45756
45757         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45758         vasprintf.h.
45759
45760         * lib/vasprintf.h: File removed.
45761
45762         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45763         * lib/vasprintf.c: Ditto.
45764         * lib/xvasprintf.c: Ditto.
45765         * tests/test-vasprintf-posix.c: Ditto.
45766         * tests/test-vasprintf.c: Ditto.
45767
45768 2007-03-27  Bruno Haible  <bruno@clisp.org>
45769
45770         Make vasnprintf multithread-safe.
45771         * lib/vasnprintf.c (decimal_point_char): New function.
45772         (VASNPRINTF): Use it.
45773         Suggested by Simon Josefsson.
45774
45775 2007-03-27  Eric Blake  <ebb9@byu.net>
45776
45777         Support sub-second birthtime on cygwin.
45778         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45779         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45780         (get_stat_birthtime): Also work with st_birthtim.
45781
45782 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45783
45784         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45785         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45786         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45787         (get_stat_birthtime_ns): Simplify compile-time tests.
45788         (get_stat_birthtime): Change the API to look like
45789         get_stat_mtime etc., except return a negative tv_nsec on error.
45790         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45791         Don't check for "spare" fields.
45792         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45793         or for struct stat.st_birthtime, as these tests aren't used.
45794         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45795
45796 2007-03-27  Bruno Haible  <bruno@clisp.org>
45797
45798         * lib/stat-time.h: Include <sys/stat.h>.
45799
45800 2007-03-27  James Youngman  <jay@gnu.org>
45801
45802         * lib/stat-time.h (get_stat_birthtime): New function for
45803           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45804         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45805           and its variants.
45806         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45807         * modules/stat-time-test: New file.
45808         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45809
45810 2007-03-26  Bruno Haible  <bruno@clisp.org>
45811
45812         Better support of signalling NaNs.
45813         * lib/atanl.c: Include isnanl.h.
45814         (atanl): Perform test for NaN at the beginning of the function and
45815         through a call to isnanl.
45816         * lib/cosl.c: Include isnanl.h.
45817         (cosl): Perform test for NaN at the beginning of the function and
45818         through a call to isnanl.
45819         * lib/ldexpl.c: Include isnanl.h.
45820         (ldexpl): Perform test for NaN through a call to isnanl.
45821         * lib/logl.c: Include isnanl.h.
45822         (logl): Perform test for NaN at the beginning of the function and
45823         through a call to isnanl.
45824         * lib/sinl.c: Include isnanl.h.
45825         (sinl): Perform test for NaN at the beginning of the function and
45826         through a call to isnanl.
45827         * lib/sqrtl.c: Include isnanl.h.
45828         (sqrtl): Perform test for NaN at the beginning of the function and
45829         through a call to isnanl.
45830         * lib/tanl.c: Include isnanl.h.
45831         (tanl): Perform test for NaN at the beginning of the function and
45832         through a call to isnanl.
45833         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45834         * modules/mathl (Depends-on): Add isnanl.
45835
45836 2007-03-26  Eric Blake  <ebb9@byu.net>
45837
45838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45839         regression in logic sense of previous patch.
45840
45841 2007-03-26  Bruno Haible  <bruno@clisp.org>
45842
45843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45844         unportable shell command "if ! ...".
45845         Reported by Ralf Wildenhues.
45846
45847 2007-03-25  Bruno Haible  <bruno@clisp.org>
45848
45849         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45850         <sysexits.h> file, and only add EX_CONFIG.
45851         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45852         absolute file name and whether it is sufficient. Substitute also
45853         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45854         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45855         ABSOLUTE_SYSEXITS_H into sysexits.h.
45856
45857 2007-03-25  Bruno Haible  <bruno@clisp.org>
45858
45859         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45860         hints is NULL.
45861
45862 2007-03-25  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45865         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45866
45867 2007-03-25  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/vasnprintf.c: Include langinfo.h.
45870         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45871         multithread-safe.
45872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45873         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45878         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45881         Reported by Simon Josefsson.
45882
45883 2007-03-25  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45886         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45887         * modules/vasnprintf (Depends-on): Add stdint.
45888
45889 2007-03-25  Bruno Haible  <bruno@clisp.org>
45890
45891         * modules/fpieee: New file.
45892         * m4/fpieee.m4: New file.
45893         * modules/isnan-nolibm (Depends-on): Add fpieee.
45894         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45895         * modules/isnanl (Depends-on): Add fpieee.
45896
45897 2007-03-25  Bruno Haible  <bruno@clisp.org>
45898
45899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45900
45901 2007-03-25  Bruno Haible  <bruno@clisp.org>
45902
45903         Avoid test failures on IRIX 6.5.
45904         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45905         (main): Use it.
45906         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45907         macros.
45908         (main): Use them.
45909
45910 2007-03-25  Bruno Haible  <bruno@clisp.org>
45911
45912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45913         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45914         exists but doesn't work.
45915         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45916         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45918         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45919
45920 2007-03-25  Bruno Haible  <bruno@clisp.org>
45921
45922         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45923         returns inf. Needed on IRIX 6.5.
45924
45925 2007-03-25  Bruno Haible  <bruno@clisp.org>
45926
45927         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45928         (main): Use isnanl instead of x != x idiom.
45929         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45930
45931         * tests/test-frexp.c: Include isnan.h.
45932         (main): Use isnan instead of x != x idiom.
45933         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45934
45935 2007-03-25  Bruno Haible  <bruno@clisp.org>
45936
45937         * tests/test-frexp.c (NaN): New function/macro.
45938         (main): Use it instead of 0.0 / 0.0.
45939         * tests/test-isnan.c (NaN): New function/macro.
45940         (main): Use it instead of 0.0 / 0.0.
45941         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45942         (test_function): Use it instead of 0.0 / 0.0.
45943         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45944         (test_function): Use it instead of 0.0 / 0.0.
45945         * tests/test-snprintf-posix.h (NaN): New function/macro.
45946         (test_function): Use it instead of 0.0 / 0.0.
45947         * tests/test-sprintf-posix.h (NaN): New function/macro.
45948         (test_function): Use it instead of 0.0 / 0.0.
45949         * tests/test-fprintf-posix.h (NaN): New function/macro.
45950         (test_function): Use it instead of 0.0 / 0.0.
45951         * tests/test-printf-posix.h (NaN): New function/macro.
45952         (test_function): Use it instead of 0.0 / 0.0.
45953
45954         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45955
45956 2007-03-25  Bruno Haible  <bruno@clisp.org>
45957
45958         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45959
45960 2007-03-25  Bruno Haible  <bruno@clisp.org>
45961
45962         * lib/regexec.c (merge_state_with_log): Make static.
45963
45964 2007-03-25  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/trigl.c (kernel_rem_pio2): Make static.
45967
45968 2007-03-25  Bruno Haible  <bruno@clisp.org>
45969
45970         * lib/sincosl.c (sincosl_table): Make static.
45971
45972 2007-03-25  Bruno Haible  <bruno@clisp.org>
45973
45974         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45975         if the compiler does not support C99.
45976
45977 2007-03-25  Bruno Haible  <bruno@clisp.org>
45978
45979         * modules/time (Makefile.am): Ensure all rule action lines start with a
45980         tab.
45981
45982 2007-03-24  Bruno Haible  <bruno@clisp.org>
45983
45984         * modules/tsearch-tests: New file.
45985         * tests/test-tsearch.sh: New file.
45986         * tests/test-tsearch.c: New file, mostly copied from glibc.
45987
45988         * modules/search-tests: New file.
45989         * tests/test-search.c: New file.
45990
45991         * modules/search: New file.
45992         * lib/search_.h: New file, incorporating lib/tsearch.h.
45993         * m4/search_h.m4: New file.
45994         * lib/tsearch.h: Remove file.
45995         * lib/tsearch.c: Include search.h instead of tsearch.h.
45996         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45997         HAVE_TSEARCH.
45998         * modules/tsearch (Files): Remove lib/tsearch.h.
45999         (Depends-on): Add search.
46000         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
46001         (Include): Change tsearch.h into search.h.
46002
46003 2007-03-24  Bruno Haible  <bruno@clisp.org>
46004
46005         * modules/fpucw: New file.
46006         * lib/fpucw.h: New file.
46007         * lib/frexp.c: Include fpucw.h.
46008         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46009         (FUNC): Use them.
46010         * lib/printf-frexp.c: Include fpucw.h.
46011         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
46012         (FUNC): Use them.
46013         * lib/vasnprintf.c: Include fpucw.h.
46014         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
46015         'long double' calculations.
46016         * tests/test-frexpl.c: Include fpucw.h.
46017         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46018         * tests/test-printf-frexpl.c: Include fpucw.h.
46019         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
46020         * modules/frexpl (Depends-on): Add fpucw.
46021         * modules/printf-frexpl (Depends-on): Likewise.
46022         * modules/fprintf-posix (Depends-on): Likewise.
46023         * modules/snprintf-posix (Depends-on): Likewise.
46024         * modules/sprintf-posix (Depends-on): Likewise.
46025         * modules/vasnprintf-posix (Depends-on): Likewise.
46026         * modules/vasprintf-posix (Depends-on): Likewise.
46027         * modules/vfprintf-posix (Depends-on): Likewise.
46028         * modules/vsnprintf-posix (Depends-on): Likewise.
46029         * modules/vsprintf-posix (Depends-on): Likewise.
46030         * modules/frexpl-tests (Depends-on): Likewise.
46031         * modules/printf-frexpl-tests (Depends-on): Likewise.
46032
46033 2007-03-24  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/float+.h: New file.
46036         * lib/isnan.c: Include float+.h.
46037         (SIZE): New macro.
46038         (FUNC): Compare only SIZE bytes of the value.
46039         * lib/vasnprintf.c: Include float+.h.
46040         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
46041         SIZEOF_LDBL or SIZEOF_DBL bytes.
46042         * modules/isnan-nolibm (Files): Add lib/float+.h.
46043         * modules/isnanl-nolibm (Files): Add lib/float+.h.
46044         * modules/isnanl (Files): Add lib/float+.h.
46045         * modules/vasnprintf (Files): Add lib/float+.h.
46046
46047 2007-03-24  Bruno Haible  <bruno@clisp.org>
46048
46049         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
46050         include isnanl-nolibm.h.
46051
46052 2007-03-24  Bruno Haible  <bruno@clisp.org>
46053
46054         * tests/test-read-file.c (main): Don't produce spurious output for
46055         expected situations. Make the test fail if it encountered unexpected
46056         results.
46057
46058 2007-03-24  Bruno Haible  <bruno@clisp.org>
46059
46060         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
46061         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
46062
46063 2007-03-24  Bruno Haible  <bruno@clisp.org>
46064
46065         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
46066
46067 2007-03-24  Bruno Haible  <bruno@clisp.org>
46068
46069         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
46070         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
46071
46072         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
46073         * modules/utf8-ucs4: Turn into a symbolic link to module
46074         unistr/u8-mbtouc.
46075
46076         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
46077         utf8-ucs4-unsafe.
46078         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
46079         unistr/u8-mbtouc-unsafe.
46080
46081         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
46082         * modules/utf16-ucs4: Turn into a symbolic link to module
46083         unistr/u16-mbtouc.
46084
46085         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
46086         utf16-ucs4-unsafe.
46087         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
46088         unistr/u16-mbtouc-unsafe.
46089
46090         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
46091         * modules/ucs4-utf8: Turn into a symbolic link to module
46092         unistr/u8-ubtomb.
46093
46094         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
46095         * modules/ucs4-utf16: Turn into a symbolic link to module
46096         unistr/u16-ubtomb.
46097
46098 2007-03-24  Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
46101         Enable the function only if HAVE_INLINE.
46102         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
46103         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46104         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
46105         Enable the function only if HAVE_INLINE.
46106         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
46107         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
46108         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
46109         Enable the function only if HAVE_INLINE.
46110         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
46111         Enable the function only if HAVE_INLINE.
46112         * modules/utf8-ucs4: Update.
46113         * modules/utf8-ucs4-unsafe: Update.
46114         * modules/utf16-ucs4: Update.
46115         * modules/utf16-ucs4-unsafe: Update.
46116         * modules/ucs4-utf8: Update.
46117         * modules/ucs4-utf16: Update.
46118
46119 2007-03-24  Bruno Haible  <bruno@clisp.org>
46120
46121         * lib/utf8-ucs4.h: Remove file.
46122         * lib/utf8-ucs4-unsafe.h: Remove file.
46123         * lib/utf16-ucs4.h: Remove file.
46124         * lib/utf16-ucs4-unsafe.h: Remove file.
46125         * lib/ucs4-utf8.h: Remove file.
46126         * lib/ucs4-utf16.h: Remove file.
46127         * lib/unistr.h: Include their previous contents.
46128         * m4/utf-ucs4.m4: Remove file.
46129         * m4/ucs4-utf.m4: Remove file.
46130         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
46131         (Depends-on): Add unistr/base.
46132         (configure.ac): Remove gl_UTF_UCS4.
46133         (Makefile.am): Update.
46134         (Include): Change to unistr.h.
46135         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
46136         (Depends-on): Add unistr/base.
46137         (configure.ac): Remove gl_UTF_UCS4.
46138         (Makefile.am): Update.
46139         (Include): Change to unistr.h.
46140         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
46141         (Depends-on): Add unistr/base.
46142         (configure.ac): Remove gl_UTF_UCS4.
46143         (Makefile.am): Update.
46144         (Include): Change to unistr.h.
46145         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
46146         (Depends-on): Add unistr/base.
46147         (configure.ac): Remove gl_UTF_UCS4.
46148         (Makefile.am): Update.
46149         (Include): Change to unistr.h.
46150         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
46151         (Depends-on): Add unistr/base.
46152         (configure.ac): Remove gl_UCS4_UTF.
46153         (Makefile.am): Update.
46154         (Include): Change to unistr.h.
46155         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
46156         (Depends-on): Add unistr/base.
46157         (configure.ac): Remove gl_UCS4_UTF.
46158         (Makefile.am): Update.
46159         (Include): Change to unistr.h.
46160         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
46161         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
46162         utf8-ucs4-unsafe.h.
46163         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
46164         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
46165         utf16-ucs4-unsafe.h.
46166         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
46167         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
46168         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
46169         * lib/unistr/u8-strchr.c: Likewise.
46170         * lib/unistr/u8-strrchr.c: Likewise.
46171         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
46172         * lib/unistr/u16-strchr.c: Likewise.
46173         * lib/unistr/u16-strrchr.c: Likewise.
46174         * lib/striconveh.c: Update.
46175         * lib/linebreak.c: Update.
46176
46177 2007-03-24  Bruno Haible  <bruno@clisp.org>
46178
46179         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
46180         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
46181
46182 2007-03-22  Bruno Haible  <bruno@clisp.org>
46183
46184         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
46185
46186 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46187
46188         * MODULES.html.sh (File system functions): New module write-any-file.
46189         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
46190         * m4/write-any-file.m4: New files.
46191
46192 2007-03-23  Eric Blake  <ebb9@byu.net>
46193
46194         * gnulib-tool: Rearrange space-tab sequences, since some editors
46195         like to eat them.
46196
46197 2007-03-23  Eric Blake  <ebb9@byu.net>
46198
46199         * lib/version-etc.c (version_etc_va): Update license wording to
46200         be more concise.  Recommended by Richard Stallman.
46201
46202 2007-03-22  Bruno Haible  <bruno@clisp.org>
46203
46204         * lib/poll.c (MSG_PEEK): New fallback definition.
46205
46206 2007-03-22  Bruno Haible  <bruno@clisp.org>
46207
46208         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
46209         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
46210         (main): Update.
46211         Fixes a compilation error on BeOS.
46212
46213 2007-03-22  Bruno Haible  <bruno@clisp.org>
46214
46215         * modules/frexpl-tests: New file.
46216         * tests/test-frexpl.c: New file.
46217
46218         * modules/frexpl: New file.
46219         * m4/frexpl.m4: New file.
46220         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
46221         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
46222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
46223         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
46224         (Depends-on): Add frexpl. Remove isnanl-nolibm.
46225         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
46226
46227 2007-03-22  Bruno Haible  <bruno@clisp.org>
46228
46229         * lib/frexpl.c: Share code with lib/frexp.c.
46230         * modules/mathl (Files): Add lib/frexp.c.
46231         (Depends-on): Add isnanl-nolibm.
46232
46233 2007-03-22  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/printf-frexp (Files): Add m4/frexp.m4.
46236         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
46237         only if the found frexp function actually works.
46238
46239 2007-03-22  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/frexp.c: Remove older implementation that uses divisions.
46242
46243 2007-03-21  Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/frexp-tests: New file.
46246         * tests/test-frexp.c: New file.
46247
46248         * modules/frexp: New file.
46249         * lib/frexp.c: New file.
46250         * m4/frexp.m4: New file.
46251         * lib/math_.h (frexp): New declaration.
46252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
46253         REPLACE_FREXP.
46254         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
46255
46256 2007-03-21  Bruno Haible  <bruno@clisp.org>
46257
46258         * modules/isnanl-tests: New file.
46259         * tests/test-isnanl.c: New file.
46260
46261         * modules/isnanl: New file.
46262         * lib/isnanl.h: New file.
46263         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
46264         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
46265         gl_FUNC_ISNANL_WORKS.
46266         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
46267         New macros.
46268
46269 2007-03-21  Bruno Haible  <bruno@clisp.org>
46270
46271         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
46272         lib/isnanl.h.
46273         (Include): Update.
46274         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
46275         * lib/vasnprintf.c: Update.
46276         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
46277         tests/test-isnanl.h, remove tests/test-isnanl.c.
46278         (Makefile.am): Update.
46279         * tests/test-isnanl-nolibm.c: New file.
46280         * tests/test-isnanl.h: New file.
46281         * tests/test-isnanl.c: Remove file.
46282
46283 2007-03-21  Jim Meyering  <jim@meyering.net>
46284
46285         When trying to open ".", treat ESTALE like EACCES.
46286         * lib/savewd.c (savewd_save): Resort to forking not just upon
46287         failure with EACCES, but also when errno is ESTALE.
46288
46289 2007-03-20  Bruno Haible  <bruno@clisp.org>
46290
46291         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46292         Needed on AIX 5.1. Reported by Matthew Woehlke.
46293
46294 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46295
46296         Suggestions by Bruno Haible:
46297         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46298         our own.
46299         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46300         * modules/acl (Depends-on): Add gettext.
46301
46302 2007-03-19  Bruno Haible  <bruno@clisp.org>
46303
46304         * modules/iconvme: Remove file.
46305         * lib/iconvme.h: Remove file.
46306         * lib/iconvme.c: Remove file.
46307         * m4/iconvme.m4: Remove file.
46308
46309 2007-03-19  Bruno Haible  <bruno@clisp.org>
46310
46311         * doc/relocatable-maint.texi: Break long shell script line.
46312         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46313
46314 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46315
46316         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46317         handle file_has_acl.
46318         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46319         * lib/acl.c: Move header inclusions and related macro defns into
46320         lib/acl-internal.h.
46321         (S_ISLNK): Remove defn, since that's now done for us.
46322         (file_has_acl): Move to lib/file-has-acl.c.
46323         Call acl_trivial if available.  This is the crucial part of the fix.
46324         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46325         shared within the library.  Rewrite a bit, partly to make it compatible
46326         with the GNU coding style.
46327         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46328         Remove unnecessary double-quotes.
46329         Don't test for acl_to_text; the build will catch that.
46330         Replace acl_entries if it doesn't exist and it is needed.
46331         Check for -lsec and acl_trivial (as used on Solaris 10).
46332         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46333         lib/file-has-acl.c.
46334         (Depends-on): Add sys_stat, for S_ISLNK.
46335
46336 2007-03-19  Ben Pfaff  <blp@gnu.org>
46337
46338         * doc/gnulib.texi: Fix typos.
46339         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46340
46341 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46342
46343         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46344         If size is zero here, buf must be zero.
46345
46346 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46347
46348         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46349         <bruno@clisp.org>.
46350
46351 2007-03-18  Bruno Haible  <bruno@clisp.org>
46352
46353         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46354         Suggested by Eric Blake.
46355
46356 2007-03-18  Ben Pfaff  <blp@gnu.org>
46357
46358         * doc/relocatable.texi: Recommend using as prefix a directory
46359         that does not exist and will never be created.  Based on
46360         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46361         and others.
46362
46363 2007-03-17  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/fchownat.c: Include lchown.h.
46366
46367 2007-03-17  Bruno Haible  <bruno@clisp.org>
46368
46369         Fix endless loop when the given allocated size was > INT_MAX.
46370         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46371         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46372         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46373         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46374         * lib/sprintf.c (sprintf): Likewise.
46375
46376 2007-03-17  Bruno Haible  <bruno@clisp.org>
46377
46378         * tests/test-argp-2.sh (func_compare): Output a context diff.
46379
46380 2007-03-17  Bruno Haible  <bruno@clisp.org>
46381
46382         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46383         locale's decimal-point character.
46384
46385 2007-03-17  Bruno Haible  <bruno@clisp.org>
46386
46387         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46388         before comparing it. Needed because on some platforms (e.g. x86) a
46389         'long double' occupies less bytes than sizeof (long double).
46390
46391 2007-03-17  Bruno Haible  <bruno@clisp.org>
46392
46393         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46394         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46395         * tests/test-getaddrinfo.c (simple): Likewise.
46396         * tests/test-read-file.c (main): Likewise.
46397
46398 2007-03-17  Bruno Haible  <bruno@clisp.org>
46399
46400         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46401
46402 2007-03-17  Bruno Haible  <bruno@clisp.org>
46403
46404         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46405         unused variable.
46406
46407 2007-03-17  Bruno Haible  <bruno@clisp.org>
46408
46409         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46410         * tests/test-c-strncasecmp.c: Likewise.
46411
46412 2007-03-17  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/stdlib (Depends-on): Add unistd.
46415         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46416         Needed for MacOS X 10.3.
46417
46418 2007-03-17  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46421
46422 2007-03-17  Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46425
46426 2007-03-17  Bruno Haible  <bruno@clisp.org>
46427
46428         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46429         to reflect files copied from gnulib (with or without modifications).
46430         Suggested by Jim Meyering.
46431
46432 2007-03-17  Eric Blake  <ebb9@byu.net>
46433
46434         * NEWS: Document stdlib change from 2007-02-18.
46435
46436 2007-03-17  Jim Meyering  <jim@meyering.net>
46437
46438         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46439         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46440         someone uses a name containing shell meta-characters.
46441         Reported by Alfred M. Szmidt.
46442
46443         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46444
46445 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46446
46447         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46448         and copy gettext configuration files only if configure.ac contains
46449         a use of AM_GNU_GETTEXT_VERSION.
46450
46451 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46452
46453         * build-aux/bootstrap (gnulib_name): New variable.
46454         (gnulib_tool_options): Use it.
46455
46456 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46457
46458         * tests/test-des.c: Use new namespace.
46459
46460 2007-03-15  Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46463         Reported by James Youngman <jay@gnu.org>.
46464
46465 2007-03-15  Bruno Haible  <bruno@clisp.org>
46466
46467         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46468         declared prototype. Needed with cc on OSF/1 5.1.
46469
46470 2007-03-15  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46473         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46474         (struct gl_list_implementation): Add dispose_fn argument to the
46475         'create_empty', 'create' methods.
46476         (struct gl_list_impl_base): Add field 'dispose_fn'.
46477         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46478         argument.
46479         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46480         dispose_fn argument.
46481         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46482         dispose_fn on the dropped values.
46483         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46484         dispose_fn argument.
46485         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46486         dropped values.
46487         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46488         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46489         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46490         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46491         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46492         argument.
46493         (gl_tree_list_free): Call dispose_fn on the dropped values.
46494         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46495         the dropped values.
46496         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46497         Add dispose_fn argument.
46498         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46499         Call dispose_fn on the dropped values.
46500         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46501         Add dispose_fn argument.
46502         (gl_sublist_create): Initialize the 'dispose_fn' field.
46503         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46504         * tests/test-array_list.c (main): Update.
46505         * tests/test-carray_list.c (main): Update.
46506         * tests/test-avltree_list.c (main): Update.
46507         * tests/test-rbtree_list.c (main): Update.
46508         * tests/test-avltreehash_list.c (main): Update.
46509         * tests/test-rbtreehash_list.c (main): Update.
46510         * tests/test-linked_list.c (main): Update.
46511         * tests/test-linkedhash_list.c (main): Update.
46512         * tests/test-array_oset.c (main): Update.
46513
46514 2007-03-15  Bruno Haible  <bruno@clisp.org>
46515
46516         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46517         (gl_oset_create_empty): Add dispose_fn argument.
46518         (struct gl_oset_implementation): Add dispose_fn argument to
46519         'create_empty' method.
46520         (struct gl_oset_impl_base): Add dispose_fn field.
46521         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46522         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46523         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46524         values.
46525         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46526         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46527         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46528         dropped value.
46529         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46530         dropped value.
46531         * tests/test-array_oset.c (main): Update.
46532         * tests/test-avltree_oset.c (main): Update.
46533         * tests/test-rbtree_oset.c (main): Update.
46534         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46535
46536 2007-03-13  Bruno Haible  <bruno@clisp.org>
46537
46538         * tests/test-stdbool.c (i): Update after last patch.
46539
46540 2007-03-12  Bruno Haible  <bruno@clisp.org>
46541
46542         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46543         the iswprint macro. Needed on Solaris 2.5.1.
46544
46545 2007-03-12  Bruno Haible  <bruno@clisp.org>
46546
46547         * tests/test-printf-frexp.c (main): Declare x as volatile.
46548
46549 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46550
46551         * doc/gnulib.texi (Build robot for gnulib): New section.
46552
46553 2007-03-12  Jim Meyering  <jim@meyering.net>
46554
46555         * build-aux/bootstrap: New file.
46556         * build-aux/bootstrap.conf: New file, from coreutils.
46557
46558 2007-03-11  Bruno Haible  <bruno@clisp.org>
46559
46560         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46561
46562 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46563
46564         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46565         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46566         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46567
46568 2007-03-11  Bruno Haible  <bruno@clisp.org>
46569
46570         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46571         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46572
46573 2007-03-11  Bruno Haible  <bruno@clisp.org>
46574
46575         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46576         formula. Needed for SunPRO C 5.0.
46577
46578 2007-03-11  Bruno Haible  <bruno@clisp.org>
46579
46580         * modules/long-options (Depends-on): Add getopt.
46581
46582 2007-03-11  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/modechange (Depends-on): Add stdbool.
46585
46586 2007-03-11  Bruno Haible  <bruno@clisp.org>
46587
46588         * modules/i-ring (Depends-on): Add stdbool.
46589
46590 2007-03-11  Bruno Haible  <bruno@clisp.org>
46591
46592         * modules/gc-des (Depends-on): Add stdbool.
46593
46594 2007-03-11  Bruno Haible  <bruno@clisp.org>
46595
46596         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46597
46598 2007-03-11  Bruno Haible  <bruno@clisp.org>
46599
46600         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46601
46602 2007-03-11  Bruno Haible  <bruno@clisp.org>
46603
46604         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46605
46606 2007-03-11  Bruno Haible  <bruno@clisp.org>
46607
46608         * lib/vasnprintf.c (sprintf): Undefine.
46609
46610 2007-03-11  Bruno Haible  <bruno@clisp.org>
46611
46612         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46613         initializers in SunPRO C and Compaq C compilers.
46614
46615 2007-03-11  Bruno Haible  <bruno@clisp.org>
46616
46617         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46618         decrementing code ANSI C compliant.
46619
46620 2007-03-11  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46623         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46624
46625 2007-03-11  Bruno Haible  <bruno@clisp.org>
46626
46627         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46628         <stdbool.h> substitute doesn't pass.
46629
46630 2007-03-11  Bruno Haible  <bruno@clisp.org>
46631
46632         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46633
46634 2007-03-11  Bruno Haible  <bruno@clisp.org>
46635
46636         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46637         script, for submission to autobuild.josefsson.org.
46638
46639 2007-03-10  Bruno Haible  <bruno@clisp.org>
46640
46641         * modules/canonicalize-lgpl-tests: New file.
46642         * tests/test-canonicalize-lgpl.sh: New file.
46643         * tests/test-canonicalize-lgpl.c: New file.
46644
46645         * modules/c-strcase-tests: New file.
46646         * tests/test-c-strcase.sh: New file.
46647         * tests/test-c-strcasecmp.c: New file.
46648         * tests/test-c-strncasecmp.c: New file.
46649
46650         * modules/atexit-tests: New file.
46651         * tests/test-atexit.sh: New file.
46652         * tests/test-atexit.c: New file.
46653
46654 2007-03-10  Bruno Haible  <bruno@clisp.org>
46655
46656         * tests/test-binary-io.sh: Use temporary filenames that are not so
46657         likely to clash with those of other tests (in a parallel make).
46658         * tests/test-binary-io.c: Likewise.
46659
46660 2007-03-10  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46663         fallback; use #error instead.
46664         Suggested by Simon Josefsson.
46665
46666 2007-03-10  Bruno Haible  <bruno@clisp.org>
46667
46668         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46669         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46670         first and the last.
46671
46672 2007-03-10  Bruno Haible  <bruno@clisp.org>
46673
46674         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46675
46676 2007-03-10  Bruno Haible  <bruno@clisp.org>
46677
46678         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46679         "make distcheck".
46680         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46681         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46682         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46683
46684 2007-03-10  Bruno Haible  <bruno@clisp.org>
46685
46686         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46687         variable.
46688         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46689         variable.
46690
46691 2007-03-09  Eric Blake  <ebb9@byu.net>
46692         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46693
46694         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46695         types are not being provided by gnulib.
46696         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46697         types are supported.
46698
46699 2007-03-10  Bruno Haible  <bruno@clisp.org>
46700
46701         * lib/stdio_.h (__attribute__): New macro.
46702         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46703         vsprintf): Specify __attribute__ __format__ for GCC.
46704         Suggested by Eric Blake.
46705
46706 2007-03-09  Bruno Haible  <bruno@clisp.org>
46707
46708         * modules/printf-posix-tests: New file.
46709         * tests/test-printf-posix.sh: New file.
46710         * tests/test-printf-posix.c: New file.
46711
46712         * modules/printf-posix: New file.
46713         * lib/printf.c: New file.
46714         * m4/printf-posix-rpl.m4: New file.
46715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46716         REPLACE_PRINTF.
46717         * lib/stdio_.h (printf): New declaration.
46718         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46719         ____strfmon____): New macros.
46720         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46721         REPLACE_PRINTF.
46722
46723 2007-03-09  Bruno Haible  <bruno@clisp.org>
46724
46725         * tests/test-vasnprintf-posix2.sh: New file.
46726         * tests/test-vasnprintf-posix2.c: New file.
46727         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46728         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46729         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46730
46731         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46732         a locale dependent decimal point, rather than always '.'.
46733
46734 2007-03-09  Eric Blake  <ebb9@byu.net>
46735
46736         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46737         spite of platforms like Tandem/NSK that define it to -1.
46738
46739 2007-03-08  Bruno Haible  <bruno@clisp.org>
46740
46741         * modules/vprintf-posix-tests: New file.
46742         * tests/test-vprintf-posix.sh: New file.
46743         * tests/test-vprintf-posix.c: New file.
46744         * tests/test-printf-posix.h: New file.
46745
46746         * modules/vprintf-posix: New file.
46747         * lib/vprintf.c: New file.
46748         * m4/vprintf-posix.m4: New file.
46749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46750         REPLACE_VPRINTF.
46751         * lib/stdio_.h (vprintf): New declaration.
46752         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46753         REPLACE_VPRINTF.
46754
46755 2007-03-08  Bruno Haible  <bruno@clisp.org>
46756
46757         * modules/fprintf-posix-tests: New file.
46758         * tests/test-fprintf-posix.sh: New file.
46759         * tests/test-fprintf-posix.c: New file.
46760
46761         * modules/fprintf-posix: New file.
46762         * lib/fprintf.c: New file.
46763         * m4/fprintf-posix.m4: New file.
46764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46765         REPLACE_FPRINTF.
46766         * lib/stdio_.h (fprintf): New declaration.
46767         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46768         REPLACE_FPRINTF.
46769
46770 2007-03-08  Bruno Haible  <bruno@clisp.org>
46771
46772         * modules/vfprintf-posix-tests: New file.
46773         * tests/test-vfprintf-posix.sh: New file.
46774         * tests/test-vfprintf-posix.c: New file.
46775         * tests/test-fprintf-posix.h: New file.
46776         * tests/test-fprintf-posix.out: New file.
46777
46778         * modules/vfprintf-posix: New file.
46779         * lib/vfprintf.c: New file.
46780         * m4/vfprintf-posix.m4: New file.
46781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46782         REPLACE_VFPRINTF.
46783         * lib/stdio_.h (vfprintf): New declaration.
46784         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46785         REPLACE_VFPRINTF.
46786
46787 2007-03-08  Bruno Haible  <bruno@clisp.org>
46788
46789         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46790
46791 2007-03-08  Bruno Haible  <bruno@clisp.org>
46792
46793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46794         instead of 'expr' invocations.
46795         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46796         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46797         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46798         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46799         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46800         Suggested by Paul Eggert.
46801
46802 2007-03-08  Bruno Haible  <bruno@clisp.org>
46803
46804         * modules/fseterr-tests: New file.
46805         * tests/test-fseterr.c: New file.
46806
46807         * modules/fseterr: New file.
46808         * lib/fseterr.h: New file.
46809         * lib/fseterr.c: New file.
46810
46811 2007-03-08  Bruno Haible  <bruno@clisp.org>
46812
46813         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46814         * lib/getopt_.h: Likewise.
46815         * lib/mbswidth.h: Likewise.
46816         * lib/setenv.h: Likewise.
46817         * lib/vasnprintf.h: Likewise.
46818         * lib/vasprintf.h: Likewise.
46819         * lib/verror.h: Likewise.
46820         * lib/xsetenv.h: Likewise.
46821         * lib/xvasprintf.h: Likewise.
46822
46823 2007-03-08  Jim Meyering  <jim@meyering.net>
46824
46825         * users.txt: Add parted.
46826
46827         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46828
46829 2007-03-07  Bruno Haible  <bruno@clisp.org>
46830
46831         * m4/printf.m4: Make the shell script snippets copy&pastable.
46832
46833 2007-03-02  Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/netinet_in_.h: New file.
46836         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46837         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46838         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46839         (Depends-on): Add absolute-header.
46840         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46841         into netinet/in.h.
46842
46843 2007-03-03  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/sys_select_.h: New file.
46846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46847         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46848         * modules/sys_select (Files): Add lib/sys_select_.h.
46849         (Depends-on): Add absolute-header.
46850         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46851         into sys/select.h.
46852
46853 2007-03-02  Bruno Haible  <bruno@clisp.org>
46854
46855         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46856         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46857         values.
46858         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46859         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46860         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46861         * modules/sys_socket (Depends-on): Add absolute-header.
46862         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46863         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46864         (Include): Remove requirement of inclusion of <sys/types.h>.
46865
46866 2007-03-02  Bruno Haible  <bruno@clisp.org>
46867
46868         * lib/byteswap_.h (bswap_32): Fix formula.
46869
46870 2007-03-06  Bruno Haible  <bruno@clisp.org>
46871
46872         * modules/sprintf-posix-tests: New file.
46873         * tests/test-sprintf-posix.c: New file.
46874
46875         * modules/sprintf-posix: New file.
46876         * lib/sprintf.c: New file.
46877         * m4/sprintf-posix.m4: New file.
46878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46879         REPLACE_SPRINTF.
46880         * lib/stdio_.h (sprintf): New declaration.
46881         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46882         REPLACE_SPRINTF.
46883
46884 2007-03-06  Bruno Haible  <bruno@clisp.org>
46885
46886         * modules/vsprintf-posix-tests: New file.
46887         * tests/test-vsprintf-posix.c: New file.
46888         * tests/test-sprintf-posix.h: New file.
46889
46890         * modules/vsprintf-posix: New file.
46891         * lib/vsprintf.c: New file.
46892         * m4/vsprintf-posix.m4: New file.
46893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46894         REPLACE_VSPRINTF.
46895         * lib/stdio_.h (vsprintf): New declaration.
46896         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46897         REPLACE_VSPRINTF.
46898
46899 2007-03-06  Bruno Haible  <bruno@clisp.org>
46900
46901         * modules/vsnprintf (Depend-on): Remove minmax.
46902
46903 2007-03-06  Bruno Haible  <bruno@clisp.org>
46904
46905         * modules/snprintf-posix-tests: New file.
46906         * tests/test-snprintf-posix.c: New file.
46907
46908         * modules/snprintf-posix: New file.
46909         * m4/snprintf-posix.m4: New file.
46910         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46911         gl_FUNC_SNPRINTF.
46912         (gl_FUNC_SNPRINTF): Invoke it.
46913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46914         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46915         is set.
46916         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46917
46918 2007-03-06  Bruno Haible  <bruno@clisp.org>
46919
46920         * modules/vsnprintf-posix-tests: New file.
46921         * tests/test-vsnprintf-posix.c: New file.
46922         * tests/test-snprintf-posix.h: New file.
46923
46924         * modules/vsnprintf-posix: New file.
46925         * m4/vsnprintf-posix.m4: New file.
46926         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46927         gl_FUNC_VSNPRINTF.
46928         (gl_FUNC_VSNPRINTF): Invoke it.
46929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46930         * lib/stdio_.h (vsnprintf): Define as a replacement if
46931         REPLACE_VSNPRINTF is set.
46932         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46933
46934 2007-03-06  Bruno Haible  <bruno@clisp.org>
46935
46936         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46938
46939 2007-03-06  Bruno Haible  <bruno@clisp.org>
46940
46941         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46942         (asinl): Declare also if HAVE_DECL_ASINL is set.
46943         (atanl): Declare also if HAVE_DECL_ATANL is set.
46944         (ceill): Declare also if HAVE_DECL_CEILL is set.
46945         (cosl): Declare also if HAVE_DECL_COSL is set.
46946         (expl): Declare also if HAVE_DECL_EXPL is set.
46947         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46948         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46949         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46950         (logl): Declare also if HAVE_DECL_LOGL is set.
46951         (sinl): Declare also if HAVE_DECL_SINL is set.
46952         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46953         (tanl): Declare also if HAVE_DECL_TANL is set.
46954         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46956         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46957         declaration of frexpl, ldexpl.
46958         * modules/printf-frexpl (Depends-on): Add math.
46959         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46960
46961 2007-03-05  Bruno Haible  <bruno@clisp.org>
46962
46963         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46964         frexpl and ldexpl are declared.
46965         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46966
46967 2007-03-05  Bruno Haible  <bruno@clisp.org>
46968
46969         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46970         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46971
46972 2007-03-05  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/stdio_.h: Include <stddef.h>.
46975
46976 2007-03-05  Bruno Haible  <bruno@clisp.org>
46977
46978         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46979
46980 2007-03-05  Bruno Haible  <bruno@clisp.org>
46981
46982         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46983         NetBSD 4, from Ralf Wildenhues.
46984
46985 2007-03-04  Bruno Haible  <bruno@clisp.org>
46986
46987         * lib/vasprintf.h: Update #if logic for the case when the functions
46988         exist but are overridden.
46989
46990 2007-03-04  Bruno Haible  <bruno@clisp.org>
46991
46992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46993         implementations: glibc-2.4 and MacOS X 10.3.
46994         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46995         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46996         * tests/test-vasprintf-posix.c (test_function): Likewise.
46997
46998 2007-03-04  Bruno Haible  <bruno@clisp.org>
46999
47000         * modules/vasprintf-posix-tests: New file.
47001         * tests/test-vasprintf-posix.c: New file.
47002
47003         * modules/vasprintf-posix: New file.
47004         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
47005         defined.
47006         * m4/vasprintf-posix.m4: New file.
47007         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
47008         gl_FUNC_VASPRINTF.
47009         (gl_FUNC_VASPRINTF): Invoke it.
47010         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
47011         here.
47012         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
47013
47014 2007-03-04  Bruno Haible  <bruno@clisp.org>
47015
47016         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
47017         REPLACE_GETTIMEOFDAY.
47018         * modules/sys_time (Makefile.am): Likewise.
47019         * m4/sys_time_h.m4: Likewise.
47020         * m4/gettimeofday.m4: Likewise.
47021
47022 2007-03-04  Bruno Haible  <bruno@clisp.org>
47023
47024         * modules/vasnprintf-posix-tests: New file.
47025         * tests/test-vasnprintf-posix.c: New file.
47026
47027         * modules/vasnprintf-posix: New file.
47028         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
47029         printf-frexpl.h.
47030         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
47031         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
47032         REPLACE_VASNPRINTF is defined.
47033         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
47034         gl_FUNC_VASNPRINTF.
47035         (gl_FUNC_VASNPRINTF): Invoke it.
47036         * m4/vasnprintf-posix.m4: New file.
47037         * m4/printf.m4: New file.
47038
47039 2007-03-04  Bruno Haible  <bruno@clisp.org>
47040
47041         Compile progreloc.c only if --enable-relocatable is specified.
47042         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
47043         if --enable-relocatable was specified.
47044         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
47045         lib_SOURCES.
47046
47047 2007-03-04  Jim Meyering  <jim@meyering.net>
47048
47049         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
47050         Use it consistently, rather than enumerating errno constants.
47051
47052 2007-03-04  Bruno Haible  <bruno@clisp.org>
47053
47054         * modules/xvasprintf-tests: New file.
47055         * tests/test-xvasprintf.c: New file.
47056
47057         * modules/vasprintf-tests: New file.
47058         * tests/test-vasprintf.c: New file.
47059
47060         * modules/vasnprintf-tests: New file.
47061         * tests/test-vasnprintf.c: New file.
47062
47063         * modules/vsnprintf-tests: New file.
47064         * tests/test-vsnprintf.c: New file.
47065
47066         * modules/snprintf-tests: New file.
47067         * tests/test-snprintf.c: New file.
47068
47069 2007-03-04  Bruno Haible  <bruno@clisp.org>
47070
47071         Compile relocatable.c only if --enable-relocatable is specified.
47072         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
47073         gl_RELOCATABLE_LIBRARY.
47074         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
47075         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
47076         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
47077         gl_RELOCATABLE_LIBRARY.
47078         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
47079         (Makefile.am): Remove lib_SOURCES.
47080         * modules/relocatable-lib-lgpl (configure.ac): Invoke
47081         gl_RELOCATABLE_LIBRARY.
47082         (Makefile.am): Remove lib_SOURCES.
47083         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
47084         always.
47085         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47086         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
47087
47088 2007-03-04  Bruno Haible  <bruno@clisp.org>
47089
47090         * modules/argmatch-tests: New file.
47091         * tests/test-argmatch.c: New file.
47092
47093         * tests/test-allocsa.c (main): Halve the number of loop runs.
47094
47095         * modules/alloca-opt-tests: New file.
47096         * tests/test-alloca-opt.c: New file.
47097
47098 2007-03-04  Jim Meyering  <jim@meyering.net>
47099
47100         Work around difference between Linux ACLs and Solaris 10 ZFS.
47101         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
47102         for EINVAL.
47103
47104 2007-03-03  Bruno Haible  <bruno@clisp.org>
47105
47106         * modules/relocatable-prog (Depends-on): Add back progreloc's
47107         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
47108
47109 2007-03-03  Bruno Haible  <bruno@clisp.org>
47110
47111         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
47112         * modules/relocatable-lib: New file.
47113
47114 2007-03-03  Bruno Haible  <bruno@clisp.org>
47115
47116         * modules/relocatable-prog: Renamed from modules/relocatable.
47117         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
47118
47119 2007-03-03  Bruno Haible  <bruno@clisp.org>
47120
47121         * modules/relocatable-script (Files): Add doc/relocatable.texi,
47122         m4/relocatable-lib.m4.
47123         (Depends-on): Remove 'relocatable'.
47124         (configure.ac): Add gl_RELOCATABLE_NOP.
47125
47126 2007-03-03  Bruno Haible  <bruno@clisp.org>
47127
47128         * modules/relocatable-prog-wrapper: New file.
47129         * modules/relocatable (Depends-on): Add it. Remove all other
47130         dependencies except progname.
47131         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
47132
47133         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
47134         (gl_FUNC_STRERROR): Nop.
47135         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
47136
47137         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
47138         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
47139
47140         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
47141         (gl_FUNC_READLINK): Update.
47142
47143         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
47144
47145 2007-03-03  Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/xreadlink.c: Include <unistd.h> unconditionally.
47148         * modules/xreadlink (Depends-on): Add unistd.
47149         * modules/xreadlink-with-size (Depends-on): Likewise.
47150
47151 2007-03-03  Bruno Haible  <bruno@clisp.org>
47152
47153         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
47154         extracted from gt_FUNC_SETENV.
47155         (gt_FUNC_SETENV): Remove macro.
47156         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
47157         remove gt_FUNC_SETENV.
47158
47159 2007-03-03  Bruno Haible  <bruno@clisp.org>
47160
47161         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
47162         ENABLE_RELOCATABLE here.
47163         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
47164
47165 2007-03-03  Bruno Haible  <bruno@clisp.org>
47166
47167         * modules/rbtreehash-list-tests (Depends-on): Add progname.
47168         * tests/test-rbtreehash_list.c: Include progname.h.
47169         (main): Call set_program_name.
47170
47171         * modules/rbtree-oset-tests (Depends-on): Add progname.
47172         * tests/test-rbtree_oset.c: Include progname.h.
47173         (main): Call set_program_name.
47174
47175         * modules/rbtree-list-tests (Depends-on): Add progname.
47176         * tests/test-rbtree_list.c: Include progname.h.
47177         (main): Call set_program_name.
47178
47179         * modules/linked-list-tests (Depends-on): Add progname.
47180         * tests/test-linked_list.c: Include progname.h.
47181         (main): Call set_program_name.
47182
47183 2007-03-03  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
47186         All uses of __restrict changed to _Restrict_.
47187         * lib/glob_.h (__restrict): Remove macro.
47188
47189 2007-03-02  Bruno Haible  <bruno@clisp.org>
47190
47191         * modules/gettext (configure.ac): Require gettext infrastructure
47192         from version 0.16.1.
47193
47194 2007-03-02  Bruno Haible  <bruno@clisp.org>
47195
47196         * modules/linkedhash-list-tests (Depends-on): Add progname.
47197         * tests/test-linkedhash_list.c: Include progname.h.
47198         (main): Call set_program_name.
47199
47200         * modules/carray-list-tests (Depends-on): Add progname.
47201         * tests/test-carray_list.c: Include progname.h.
47202         (main): Call set_program_name.
47203
47204         * modules/avltreehash-list-tests (Depends-on): Add progname.
47205         * tests/test-avltreehash_list.c: Include progname.h.
47206         (main): Call set_program_name.
47207
47208         * modules/avltree-oset-tests (Depends-on): Add progname.
47209         * tests/test-avltree_oset.c: Include progname.h.
47210         (main): Call set_program_name.
47211
47212         * modules/avltree-list-tests (Depends-on): Add progname.
47213         * tests/test-avltree_list.c: Include progname.h.
47214         (main): Call set_program_name.
47215
47216         * modules/array-oset-tests (Depends-on): Add progname.
47217         * tests/test-array_oset.c: Include progname.h.
47218         (main): Call set_program_name.
47219
47220         * modules/array-list-tests (Depends-on): Add progname.
47221         * tests/test-array_list.c: Include progname.h.
47222         (main): Call set_program_name.
47223
47224         * modules/argp-tests (Depends-on): Add progname.
47225         * tests/test-argp.c: Include argp.h first. Include progname.h.
47226         (main): Call set_program_name.
47227
47228 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
47229
47230         * doc/gnulib-tool.texi (Initial import): Reword description of
47231         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
47232         limited effect even if defined after the first system include.
47233
47234 2007-03-01  Bruno Haible  <bruno@clisp.org>
47235
47236         * build-aux/config.libpath: Update to libtool-1.5.22.
47237         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47238
47239 2007-03-01  Bruno Haible  <bruno@clisp.org>
47240
47241         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
47242         foo_CFLAGS.
47243         Reported by Ralf Wildenhues.
47244
47245 2007-03-01  Bruno Haible  <bruno@clisp.org>
47246
47247         * build-aux/install-reloc: Remove object files left over by some
47248         compilers.
47249         Reported by Ralf Wildenhues.
47250
47251 2007-03-01  Bruno Haible  <bruno@clisp.org>
47252
47253         * build-aux/install-reloc: Break long lines.
47254
47255 2007-03-01  Bruno Haible  <bruno@clisp.org>
47256
47257         * doc/relocatable.texi: Document that it may not work on OpenBSD.
47258         Reported by Ralf Wildenhues.
47259
47260 2007-03-01  Bruno Haible  <bruno@clisp.org>
47261
47262         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
47263         include ordering constraints.
47264
47265 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47266
47267         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
47268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
47269         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
47270         as another example.
47271         * lib/time_.h: Fix misspelling.
47272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47273         Require gl_HEADER_TIME_H_DEFAULTS.
47274         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
47275         * m4/time_r.m4 (gl_TIME_R): Likewise.
47276         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
47277
47278 2007-03-01  Bruno Haible  <bruno@clisp.org>
47279
47280         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47281         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47282
47283 2007-03-01  Jim Meyering  <jim@meyering.net>
47284
47285         * modules/xreadlink (Maintainer): Add my name.
47286         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47287
47288 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47289             Bruno Haible  <bruno@clisp.org>
47290
47291         * build-aux/install-reloc: Compile also c-ctype.c.
47292         * build-aux/relocatable.sh.in: New file.
47293         * doc/relocatable.texi: New file.
47294         * doc/relocatable-maint.texi: New file.
47295         * doc/gnulib.texi: Include relocatable-maint.texi.
47296         * lib/progreloc.c: Include unistd.h unconditionally.
47297         * lib/relocwrapper.c: Include unistd.h unconditionally.
47298         Include c-ctype.h.
47299         (add_dotbin): Use c_tolower.
47300         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47301         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47302         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47303         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47304         to m4/relocatable-lib.m4.
47305         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47306         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47307         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47308         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47309         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47310         * modules/relocatable: New file.
47311         * modules/relocatable-lib: New file.
47312         * modules/relocatable-script: New file.
47313
47314 2007-02-28  Bruno Haible  <bruno@clisp.org>
47315
47316         Import --enable-relocatable infrastructure.
47317         * build-aux/config.libpath: New file, from GNU gettext.
47318         * build-aux/install-reloc: New file, from GNU gettext.
47319         * build-aux/reloc-ldflags: New file, from GNU gettext.
47320         * lib/relocatable.h: New file, from GNU gettext.
47321         * lib/relocatable.c: New file, from GNU gettext.
47322         * lib/relocwrapper.c: New file, from GNU gettext.
47323         * m4/relocatable.m4: New file, from GNU gettext.
47324
47325 2007-02-28  Bruno Haible  <bruno@clisp.org>
47326
47327         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47328
47329         * modules/xreadlink: New file, from GNU gettext with modifications.
47330         * lib/xreadlink.c: New file, from GNU gettext.
47331         * lib/xreadlink.h: Add comments.
47332         (xreadlink): New declaration.
47333
47334         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47335         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47336         lib/xreadlink-with-size.c.
47337         (configure.ac): Remove gl_XREADLINK invocation.
47338         (Makefile.am): Augment lib_SOURCES.
47339         * m4/xreadlink.m4: Remove file.
47340         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47341         (xreadlink_with_size): Renamed from xreadink.
47342         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47343         * modules/canonicalize (Depends-on): Replace xreadlink with
47344         xreadlink-with-size.
47345         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47346
47347 2007-02-25  Jim Meyering  <jim@meyering.net>
47348
47349         * build-aux/announce-gen: When complaining about excess arguments,
47350         list them.
47351
47352 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         * README: Document signed integer overflow situation more
47355         accurately.
47356
47357 2007-02-25  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47360         'a' or 'A' conversion.
47361
47362 2007-02-25  Bruno Haible  <bruno@clisp.org>
47363
47364         * modules/filename: Renamed from modules/pathname.
47365         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47366         lib/concatpath.c with lib/concat-filename.c.
47367         (Makefile.am): Update.
47368         (Include): Replace pathname.h with filename.h.
47369         * lib/filename.h: Renamed from lib/pathname.h.
47370         (concatenated_filename): Renamed from concatenated_pathname.
47371         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47372         (concatenated_filename): Renamed from concatenated_pathname.
47373         * lib/findprog.c: Include filename.h instead of pathname.h.
47374         (find_in_path): Update.
47375         * lib/javacomp.c: Include filename.h instead of pathname.h.
47376         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47377         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47378         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47379         is_oldgcj_14_13_usable, is_javac_usable): Update.
47380         * lib/javaexec.c: Include filename.h instead of pathname.h.
47381         (execute_java_class): Update.
47382         * modules/findprog: Update.
47383         * modules/javacomp: Update.
47384         * modules/javaexec: Update.
47385         * MODULES.html.sh (File system functions): Add 'filename', remove
47386         'pathname'.
47387
47388 2007-02-25  Bruno Haible  <bruno@clisp.org>
47389
47390         * modules/printf-frexpl-tests: New file.
47391         * tests/test-printf-frexpl.c: New file.
47392
47393         * modules/printf-frexpl: New file.
47394         * lib/printf-frexpl.h: New file.
47395         * lib/printf-frexpl.c: New file.
47396         * m4/printf-frexpl.m4: New file.
47397
47398 2007-02-25  Bruno Haible  <bruno@clisp.org>
47399
47400         * modules/printf-frexp-tests: New file.
47401         * tests/test-printf-frexp.c: New file.
47402
47403         * modules/printf-frexp: New file.
47404         * lib/printf-frexp.h: New file.
47405         * lib/printf-frexp.c: New file.
47406         * m4/printf-frexp.m4: New file.
47407
47408 2007-02-25  Bruno Haible  <bruno@clisp.org>
47409
47410         Assume automake >= 1.10 for the tests.
47411         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47412         * modules/arctwo-tests: Likewise.
47413         * modules/argp-tests: Likewise.
47414         * modules/avltree-list-tests: Likewise.
47415         * modules/avltree-oset-tests: Likewise.
47416         * modules/avltreehash-list-tests: Likewise.
47417         * modules/carray-list-tests: Likewise.
47418         * modules/crc-tests: Likewise.
47419         * modules/des-tests: Likewise.
47420         * modules/gc-arcfour-tests: Likewise.
47421         * modules/gc-arctwo-tests: Likewise.
47422         * modules/gc-des-tests: Likewise.
47423         * modules/gc-hmac-md5-tests: Likewise.
47424         * modules/gc-hmac-sha1-tests: Likewise.
47425         * modules/gc-md2-tests: Likewise.
47426         * modules/gc-md4-tests: Likewise.
47427         * modules/gc-md5-tests: Likewise.
47428         * modules/gc-pbkdf2-sha1-tests: Likewise.
47429         * modules/gc-rijndael-tests: Likewise.
47430         * modules/gc-sha1-tests: Likewise.
47431         * modules/gc-tests: Likewise.
47432         * modules/getaddrinfo-tests: Likewise.
47433         * modules/hmac-md5-tests: Likewise.
47434         * modules/hmac-sha1-tests: Likewise.
47435         * modules/linked-list-tests: Likewise.
47436         * modules/linkedhash-list-tests: Likewise.
47437         * modules/lock-tests: Likewise.
47438         * modules/md2-tests: Likewise.
47439         * modules/md4-tests: Likewise.
47440         * modules/md5-tests: Likewise.
47441         * modules/rbtree-list-tests: Likewise.
47442         * modules/rbtree-oset-tests: Likewise.
47443         * modules/rbtreehash-list-tests: Likewise.
47444         * modules/read-file-tests: Likewise.
47445         * modules/rijndael-tests: Likewise.
47446         * modules/stdint-tests: Likewise.
47447         * modules/tls-tests: Likewise.
47448
47449 2007-02-24  Bruno Haible  <bruno@clisp.org>
47450
47451         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47452         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47453         function; instead check whether isnan with a double argument links.
47454         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47455         function; instead check whether isnan with a 'long double' argument
47456         links.
47457         Reported by Eric Blake <ebb9@byu.net>.
47458
47459 2007-02-24  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47462         defined.
47463         * lib/isnanl.c: Remove all code. Just include isnan.c.
47464         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47465
47466 2007-02-25  Jim Meyering  <jim@meyering.net>
47467
47468         Avoid conflicting types for 'unsetenv' on FreeBSD.
47469         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47470         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47471         in stdlib.h.
47472
47473 2007-02-24  Bruno Haible  <bruno@clisp.org>
47474
47475         * modules/isnanl-nolibm-tests: New file.
47476         * tests/test-isnanl.c: New file.
47477
47478         * modules/isnanl-nolibm: New file.
47479         * lib/isnanl.h: New file.
47480         * lib/isnanl.c: New file.
47481         * m4/isnanl.m4: New file.
47482
47483 2007-02-24  Bruno Haible  <bruno@clisp.org>
47484
47485         * modules/isnan-nolibm-tests: New file.
47486         * tests/test-isnan.c: New file.
47487
47488         * modules/isnan-nolibm: New file.
47489         * lib/isnan.h: New file.
47490         * lib/isnan.c: New file.
47491         * m4/isnan.m4: New file.
47492
47493 2007-02-24  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47496         assume that an exponent fits in 20 bits.
47497
47498 2007-02-24  Jim Meyering  <jim@meyering.net>
47499
47500         * m4/regex.m4: Update the description of the configure-time option,
47501         --without-included-regex, to state accurately what the defaults are,
47502         and perhaps to give people an idea why using this option is risky.
47503
47504 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47505
47506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47507         loops on small arguments.  This attempts to avoid the problem
47508         Bruno Haible reported for AIX 4.3.2 in
47509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47510
47511 2007-02-23  Bruno Haible  <bruno@clisp.org>
47512
47513         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47514         Needed for help2man.
47515
47516 2007-02-23  Karl Berry  <karl@gnu.org>
47517
47518         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47519         exists, foo.h should be cvs-ignored, not committed.
47520
47521 2007-02-23  Eric Blake  <ebb9@byu.net>
47522
47523         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47524         * lib/stat-time.h (includes): Likewise.
47525         * lib/utimecmp.c (includes): Likewise.
47526         * lib/utimens.h (includes): Likewise.
47527         * lib/getdate.y (includes): Also include "timespec.h" for use
47528         internal to the module.
47529         * modules/utimens (Depends-on): Revert yesterday's patch.
47530         * modules/nanosleep (Depends-on): Add missing dependency.
47531
47532 2007-02-22  Bruno Haible  <bruno@clisp.org>
47533
47534         * lib/glob.c: Don't include getlogin_r.h.
47535
47536 2007-02-22  Jim Meyering  <jim@meyering.net>
47537
47538         * modules/utimens (Depends-on): Add timespec, required for
47539         utimens.h's inclusion of timespec.h.
47540
47541 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47542
47543         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47544         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47545         Schwab in
47546         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47547         I'll try to think of a better way to fix the Solaris problem.
47548
47549         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47550         like glibc; on Solaris 10, it fails with errno == EINVAL.
47551         POSIX says the behavior is unspecified if the first argument is NULL,
47552         so play it safe and never pass NULL to the system getcwd.
47553
47554 2007-02-21  Jim Meyering  <jim@meyering.net>
47555
47556         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47557         of gettimeofday.  It would conflict with the one now always
47558         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47559         an IRIX 6.5 build failure.
47560
47561 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47562
47563         Minor fixups to port to Solaris 10 with Sun C 5.8.
47564         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47565         * modules/getcwd (Depends-on): Add dirfd.
47566         * lib/putenv.c (putenv): #undef it.
47567         (rpl_putenv): New decl.
47568         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47569
47570 2007-02-20  Bruno Haible  <bruno@clisp.org>
47571
47572         * modules/stdio-tests: New file.
47573         * tests/test-stdio.c: New file.
47574
47575         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47576         (Depends-on): Add stdio.
47577         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47578         (Include): Use <stdio.h> instead of vsnprintf.h.
47579         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47580         HAVE_DECL_VSNPRINTF.
47581         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47582
47583         * modules/snprintf (Files): Remove lib/snprintf.h.
47584         (Depends-on): Add stdio.
47585         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47586         (Include): Use <stdio.h> instead of snprintf.h.
47587         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47588         HAVE_DECL_SNPRINTF.
47589         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47590         * lib/getaddrinfo.c: Likewise.
47591
47592         * modules/stdio: New file.
47593         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47594         * lib/snprintf.h: Remove file.
47595         * lib/vsnprintf.h: Remove file.
47596         * lib/.cppi-disable: Remove snprintf.h.
47597         * m4/stdio_h.m4: New file.
47598         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47599
47600 2007-02-20  Jim Meyering  <jim@meyering.net>
47601
47602         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47603         used by e.g., mingw.  From Bruno Haible.
47604
47605 2007-02-19  Bruno Haible  <bruno@clisp.org>
47606
47607         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47608         warnings.
47609         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47610
47611 2007-02-19  Bruno Haible  <bruno@clisp.org>
47612
47613         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47614         from mingw users.
47615
47616 2007-02-19  Bruno Haible  <bruno@clisp.org>
47617
47618         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47619         warnings.
47620         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47621
47622 2007-02-19  Jim Meyering  <jim@meyering.net>
47623
47624         Don't use FD after a successful "fdopendir (fd)".
47625         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47626         Reset it by calling dirfd on the just-obtained DIR*.
47627
47628         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47629         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47630
47631 2007-02-18  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/readlink.c: Include <unistd.h>.
47634         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47635         HAVE_READLINK.
47636         * modules/readlink (Depends-on): Add unistd.
47637         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47638         (Include): Add <unistd.h>.
47639
47640         * lib/getlogin_r.h: Remove file.
47641         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47642         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47643         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47644         HAVE_DECL_GETLOGIN_R.
47645         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47647         (Include): Use <unistd.h> instead of getlogin_r.h.
47648
47649         * lib/getcwd.h: Remove file.
47650         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47651         * lib/xgetcwd.c: Likewise.
47652         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47653         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47654         * modules/getcwd (Files): Remove lib/getcwd.h.
47655         (Depends-on): Add unistd.
47656         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47657         (Include): Use <unistd.h> instad of getcwd.h.
47658
47659         * lib/ftruncate.c: Include <unistd.h> first.
47660         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47661         Set HAVE_FTRUNCATE.
47662         * modules/ftruncate (Depends-on): Add unistd.
47663         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47664
47665         * lib/fchdir.c: Include <unistd.h> first.
47666         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47668         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47669         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47670         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47671
47672         * lib/dup2.c: Include <unistd.h> first.
47673         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47674         HAVE_DUP2.
47675         * modules/dup2 (Depends-on): Add unistd.
47676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47677
47678         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47679         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47680         REPLACE_CHOWN. Don't define chown as a macro here.
47681         * modules/chown (Depends-on): Add unistd.
47682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47683
47684         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47685         Add definition for GL_LINK_WARNING.
47686         (chown, dup2): New declarations.
47687         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47688         link warning.
47689         (ftruncate): New declaration.
47690         (getcwd): New declaration, taken from old getcwd.h.
47691         (getlogin_r): New declaration, taken from old getlogin_r.h.
47692         (readlink): New declaration.
47693         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47694         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47695         (gl_PREREQ_UNISTD): Remove macro.
47696         (gl_UNISTD_MODULE_INDICATOR): New macro.
47697         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47698         many new variables. Don't set UNISTD_H.
47699         * modules/unistd (Description): Change.
47700         (Depends-on): Add link-warning.
47701         (configure.ac): Update.
47702         (Makefile.am): Create unistd.h always. Substitute many new variables
47703         into it.
47704
47705 2007-02-18  Bruno Haible  <bruno@clisp.org>
47706
47707         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47708         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47709         HAVE_GETSUBOPT.
47710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47711         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47712         * lib/getsubopt.h: Remove file.
47713         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47714         (Depends-on): Add stdlib.
47715         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47716         (Includes): Use <stdlib.h> instead of getsubopt.h.
47717         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47718         Set HAVE_GETSUBOPT.
47719         * lib/getsubopt.c: Don't include getsubopt.h.
47720
47721 2007-02-18  Bruno Haible  <bruno@clisp.org>
47722
47723         * modules/fchdir (Depends-on): Add dup2.
47724
47725 2007-02-18  Bruno Haible  <bruno@clisp.org>
47726
47727         * lib/stdlib_.h: Handle glibc's special invocation convention
47728         specially.
47729
47730 2007-02-18  Bruno Haible  <bruno@clisp.org>
47731
47732         * modules/stdlib-tests: New file.
47733         * tests/test-stdlib.c: New file.
47734
47735         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47736         (Depends-on): Add stdlib.
47737         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47738         (Includes): Use <stdlib.h> instead of mkstemp.h.
47739         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47740         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47741         * lib/mkstemp.c: Don't include mkstemp.h.
47742         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47743         * lib/stdlib--.h: Don't include mkstemp.h.
47744
47745         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47746         (Depends-on): Add stdlib.
47747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47748         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47749         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47750         HAVE_MKDTEMP.
47751         * lib/mkdtemp.c: Don't include mkdtemp.h.
47752         * lib/clean-temp.c: Don't include mkdtemp.h.
47753
47754         * modules/exit (Files): Remove lib/exit.h.
47755         (Depends-on): Add stdlib.
47756         (Makefile.am): Remove lib_SOURCES.
47757         (Include): Use <stdlib.h> instead of exit.h.
47758         * lib/argmatch.c: Don't include exit.h.
47759         * lib/execute.c: Likewise.
47760         * lib/pagealign_alloc.c: Likewise.
47761         * lib/pipe.c: Likewise.
47762         * lib/wait-process.c: Likewise.
47763         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47764         * lib/exitfail.c: Likewise.
47765         * lib/savewd.c: Likewise.
47766         * lib/xsetenv.c: Likewise.
47767
47768         * modules/stdlib: New file.
47769         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47770         and extra comments about mkstemp().
47771         * lib/exit.h: Remove file.
47772         * lib/mkdtemp.h: Remove file.
47773         * lib/mkstemp.h: Remove file.
47774         * m4/stdlib_h.m4: New file.
47775         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47776
47777 2007-02-18  Bruno Haible  <bruno@clisp.org>
47778
47779         * modules/math-tests: New file.
47780         * tests/test-math.c: New file.
47781
47782         * modules/math: New file.
47783         * modules/mathl (Files): Remove lib/mathl.h.
47784         (Depends-on): Add math.
47785         (Makefile.am): Don't mention mathl.h.
47786         (Include): Use <math.h> instead of mathl.h.
47787         * lib/math_.h: New file.
47788         * lib/mathl.h: Remove file.
47789         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47790         mathl.h.
47791         * lib/asinl.c: Likewise.
47792         * lib/atanl.c: Likewise.
47793         * lib/ceill.c: Likewise.
47794         * lib/cosl.c: Likewise.
47795         * lib/expl.c: Likewise.
47796         * lib/floorl.c: Likewise.
47797         * lib/frexpl.c: Likewise.
47798         * lib/ldexpl.c: Likewise.
47799         * lib/logl.c: Likewise.
47800         * lib/sincosl.c: Likewise.
47801         * lib/sinl.c: Likewise.
47802         * lib/sqrtl.c: Likewise.
47803         * lib/tanl.c: Likewise.
47804         * lib/trigl.c: Likewise.
47805         * m4/math_h.m4: New file.
47806         * MODULES.html.sh (Mathematics): Add math.
47807
47808 2007-02-17  Bruno Haible  <bruno@clisp.org>
47809
47810         * modules/wctype-tests: New file.
47811         * tests/test-wctype.c: New file.
47812
47813         * modules/wchar-tests: New file.
47814         * tests/test-wchar.c: New file.
47815
47816         * modules/unistd-tests: New file.
47817         * tests/test-unistd.c: New file.
47818
47819         * modules/time-tests: New file.
47820         * tests/test-time.c: New file.
47821
47822         * modules/sysexits-tests: New file.
47823         * tests/test-sysexits.c: New file.
47824
47825         * modules/sys_time-tests: New file.
47826         * tests/test-sys_time.c: New file.
47827
47828         * modules/sys_stat-tests: New file.
47829         * tests/test-sys_stat.c: New file.
47830
47831         * modules/sys_socket-tests: New file.
47832         * tests/test-sys_socket.c: New file.
47833
47834         * modules/sys_select-tests: New file.
47835         * tests/test-sys_select.c: New file.
47836
47837         * modules/string-tests: New file.
47838         * tests/test-string.c: New file.
47839
47840         * modules/stdbool-tests: New file.
47841         * tests/test-stdbool.c: New file.
47842
47843         * modules/netinet_in-tests: New file.
47844         * tests/test-netinet_in.c: New file.
47845
47846         * modules/inttypes-tests: New file.
47847         * tests/test-inttypes.c: New file.
47848
47849         * modules/fcntl-tests: New file.
47850         * tests/test-fcntl.c: New file.
47851
47852         * modules/byteswap-tests: New file.
47853         * tests/test-byteswap.c: New file.
47854
47855         * modules/arpa_inet-tests: New file.
47856         * tests/test-arpa_inet.c: New file.
47857
47858 2007-02-17  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47861         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47862         if the corresponding module is not enabled. Emit link warnings if
47863         the function is used nevertheless.
47864         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47865         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47866         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47867         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47868         * modules/inttypes (Depends-on): Add link-warning.
47869         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47870         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47871         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47872         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47873         * modules/imaxdiv (configure.ac): Likewise.
47874         * modules/strtoimax (configure.ac): Likewise.
47875         * modules/strtoumax (configure.ac): Likewise.
47876
47877 2007-02-17  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47880         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47881         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47882         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47883
47884 2007-02-17  Bruno Haible  <bruno@clisp.org>
47885
47886         * modules/link-warning: New file.
47887         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47888         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47889         * modules/string (Depends-on): Add link-warning.
47890         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47891         string.h.
47892         * MODULES.html.sh (Support for building libraries and executables): Add
47893         link-warning.
47894
47895 2007-02-17  Bruno Haible  <bruno@clisp.org>
47896
47897         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47898         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47899         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47900         long lines.
47901
47902 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47903             Bruno Haible  <bruno@clisp.org>
47904
47905         * modules/tmpfile: New file.
47906         * lib/tmpfile.c: New file.
47907         * m4/tmpfile.m4: New file.
47908         * MODULES.html.sh (func_all_modules): New section "Input/output".
47909
47910 2007-02-15  Bruno Haible  <bruno@clisp.org>
47911
47912         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47913         (supports_delete_on_close): New function.
47914         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47915
47916 2007-02-14  Bruno Haible  <bruno@clisp.org>
47917
47918         * modules/mbspcasecmp-tests: New file.
47919         * tests/test-mbspcasecmp.sh: New file.
47920         * tests/test-mbspcasecmp.c: New file.
47921
47922         New module mbspcasecmp.
47923         * modules/mbspcasecmp: New file.
47924         * lib/mbspcasecmp.c: New file.
47925         * lib/string_.h (strncasecmp): Change warning message.
47926         (mbspcasecmp): New declaration.
47927         * m4/mbspcasecmp.m4: New file.
47928         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47929         GNULIB_MBSPCASECMP.
47930         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47931         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47932
47933 2007-02-14  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/mbsncasecmp-tests: New file.
47936         * tests/test-mbsncasecmp.sh: New file.
47937         * tests/test-mbsncasecmp.c: New file.
47938
47939         New module mbsncasecmp.
47940         * modules/mbsncasecmp: New file.
47941         * lib/mbsncasecmp.c: New file.
47942         * lib/string_.h (mbsncasecmp): New declaration.
47943         * m4/mbsncasecmp.m4: New file.
47944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47945         GNULIB_MBSNCASECMP.
47946         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47947         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47948
47949 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47950
47951         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47952         Verify that it doesn't overlap with our flags.
47953         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47954         do not have the desired effect in multibyte locales; instead, use
47955         mbscasecmp.
47956         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47957         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47958         we don't require GNU fnmatch ourselves (if our users require it, they
47959         should do so explicitly).
47960
47961         Fix regex code so it doesn't rely on strcasecmp.
47962         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47963         Otherwise, include gnulib's langinfo.h.
47964         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47965         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47966         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47967         * modules/regex (FILES): Remove m4/codeset.m4.
47968         (Depends-on): Add localcharset.  Remove strcase.
47969
47970 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47971
47972         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47973         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47974
47975 2007-02-13  Bruno Haible  <bruno@clisp.org>
47976
47977         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47979
47980 2007-02-12  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47983         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47984         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47985         time warning rather than a link error.
47986
47987 2007-02-12  Bruno Haible  <bruno@clisp.org>
47988
47989         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47990         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47992
47993 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47994
47995         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47996         args, not 2.
47997
47998 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47999
48000         New module 'time', so that apps can include <time.h> as per
48001         POSIX and GNU instead of separate include files like time_r.h
48002         and timegm.h.  This implementation tries out a simpler approach
48003         for replacing decls in standard include files (as compared to
48004         the string module), somewhat as an experiment.
48005
48006         * config/srclist.txt: Comment out mktime.c for now.
48007         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
48008         since it doesn't apply any more.  Use generic wording instead.
48009         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
48010         'time'.
48011         * lib/time_.h, m4/time_h.m4, modules/time: New files.
48012         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
48013         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
48014         Don't include <sys/types.h>; no longer needed since we assume C89.
48015         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
48016         * lib/strftime.c: Likewise.
48017         * lib/time_r.c: Likewise.
48018         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
48019         * lib/nanosleep.c: Include <time.h> first, to check interface.
48020         * lib/strptime.c: Likewise.
48021         * lib/time_r.c: Likewise.
48022         * lib/timegm.c: Likewise.
48023         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
48024         needed.
48025         * lib/timegm.c: Don't include timegm.h; no longer needed.
48026         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
48027         time.h now handles any problems in that area.
48028         (struct timespec, nanosleep): Remove; time.h now arranges for these.
48029         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
48030         that time.h defines struct timespec.
48031         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
48032         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
48033         handles that.
48034         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
48035         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
48036         needed.  Set REPLACE_LOCALTIME.
48037         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
48038         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
48039         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
48040         nanosleep; time_h.m4 now does that.  Don't require
48041         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
48042         module handles this now.
48043         * modules/getdate (Depends-on): Remove timespec.  Add time.
48044         * modules/nanosleep (Depends-on): Likewise.
48045         * modules/stat-time (Depends-on): Likewise.
48046         * modules/nanosleep (Include): Include time.h, not timespec.h.
48047         * modules/strptime (Files): Remove lib/strptime.h.
48048         (Depends-on): Add extensions, time.
48049         (Include): Include time.h, not strptime.h.
48050         * modules/time_r (Files): Remove lib/time_r.h.
48051         (Depends-on): Add time.
48052         (Include): Include time.h, not time_r.h.
48053         * modules/timegm: Likewise.
48054         * modules/timespec (Description): Now does timespec-related decls
48055         of our own, instead of struct timespec itself.
48056         (Depends-on): Add time; remove extensions.
48057         (Maintainer): Add self.
48058         * modules/utimecmp (Depends-on): Add time; remove timespec.
48059         * modules/utimens (Depends-on): Likewise.
48060         * modules/xnanosleep (Depends-on): Likewise.
48061
48062 2007-02-11  Bruno Haible  <bruno@clisp.org>
48063
48064         * lib/c-strstr.c: Include allocsa.h.
48065         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48066         * lib/c-strcasestr.c: Include allocsa.h.
48067         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48068         * lib/strcasestr.c: Include allocsa.h.
48069         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
48070         * lib/mbsstr.c: Include allocsa.h.
48071         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48072         allocsa/freesa instead of malloc/free.
48073         * lib/mbscasestr.c: Include allocsa.h.
48074         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
48075         allocsa/freesa instead of malloc/free.
48076         * modules/c-strstr (Depends-on): Add allocsa.
48077         * modules/c-strcasestr (Depends-on): Likewise.
48078         * modules/strcasestr (Depends-on): Likewise.
48079         * modules/mbsstr (Depends-on): Likewise.
48080         * modules/mbscasestr (Depends-on): Likewise.
48081
48082 2007-02-11  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
48085
48086         * modules/mbsspn-tests: New file.
48087         * tests/test-mbsspn.sh: New file.
48088         * tests/test-mbsspn.c: New file.
48089
48090 2007-02-11  Bruno Haible  <bruno@clisp.org>
48091
48092         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
48093
48094         * modules/mbspbrk-tests: New file.
48095         * tests/test-mbspbrk.sh: New file.
48096         * tests/test-mbspbrk.c: New file.
48097
48098 2007-02-11  Bruno Haible  <bruno@clisp.org>
48099
48100         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
48101         unneeded cast.
48102
48103         * modules/mbscspn-tests: New file.
48104         * tests/test-mbscspn.sh: New file.
48105         * tests/test-mbscspn.c: New file.
48106
48107 2007-02-11  Bruno Haible  <bruno@clisp.org>
48108
48109         * modules/mbscasecmp-tests: New file.
48110         * tests/test-mbscasecmp.sh: New file.
48111         * tests/test-mbscasecmp.c: New file.
48112
48113 2007-02-11  Bruno Haible  <bruno@clisp.org>
48114
48115         Ensure O(n) worst-case complexity of mbscasestr.
48116         * lib/mbscasestr.c: Include stdbool.h.
48117         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48118         functions.
48119         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
48120         the bookkeeping indicates that it's worth it.
48121         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
48122
48123         * modules/mbscasestr-tests: New file.
48124         * tests/test-mbscasestr1.c: New file.
48125         * tests/test-mbscasestr2.sh: New file.
48126         * tests/test-mbscasestr2.c: New file.
48127         * tests/test-mbscasestr3.sh: New file.
48128         * tests/test-mbscasestr3.c: New file.
48129         * tests/test-mbscasestr4.sh: New file.
48130         * tests/test-mbscasestr4.c: New file.
48131         * m4/locale-tr.m4: New file.
48132
48133 2007-02-11  Bruno Haible  <bruno@clisp.org>
48134
48135         Ensure O(n) worst-case complexity of mbsstr.
48136         * lib/mbsstr.c: Include stdbool.h.
48137         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
48138         functions.
48139         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
48140         bookkeeping indicates that it's worth it.
48141         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
48142
48143         * modules/mbsstr-tests: New file.
48144         * tests/test-mbsstr1.c: New file.
48145         * tests/test-mbsstr2.sh: New file.
48146         * tests/test-mbsstr2.c: New file.
48147         * tests/test-mbsstr3.sh: New file.
48148         * tests/test-mbsstr3.c: New file.
48149         * m4/locale-fr.m4: New file.
48150
48151 2007-02-11  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/mbsrchr.c (mbsrchr): Fix bug.
48154
48155         * modules/mbsrchr-tests: New file.
48156         * tests/test-mbsrchr.sh: New file.
48157         * tests/test-mbsrchr.c: New file.
48158
48159 2007-02-11  Bruno Haible  <bruno@clisp.org>
48160
48161         * lib/mbschr.c (mbschr): Fix bug.
48162
48163         * modules/mbschr-tests: New file.
48164         * tests/test-mbschr.sh: New file.
48165         * tests/test-mbschr.c: New file.
48166         * m4/locale-zh.m4: New file.
48167
48168 2007-02-11  Bruno Haible  <bruno@clisp.org>
48169
48170         Support for copying multibyte string iterators.
48171         * lib/mbiter.h: Include <string.h>.
48172         (mbiter_multi_copy): New function.
48173         (mbi_copy): New macro.
48174         * lib/mbuiter.h: Include <string.h>.
48175         (mbuiter_multi_copy): New function.
48176         (mbui_copy): New macro.
48177
48178 2007-02-11  Bruno Haible  <bruno@clisp.org>
48179
48180         New module mbslen.
48181         * modules/mbslen: New file.
48182         * lib/mbslen.c: New file.
48183         * lib/string_.h (mbslen): New declaration.
48184         * m4/mbslen.m4: New file.
48185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48186         GNULIB_MBSLEN.
48187         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
48188         * MODULES.html.sh (Internationalization functions): Add mbslen.
48189
48190 2007-02-11  Bruno Haible  <bruno@clisp.org>
48191
48192         Ensure O(n) worst-case complexity of strcasestr substitute.
48193         * lib/strcasestr.c: Include stdbool.h.
48194         (knuth_morris_pratt): New function.
48195         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48196         bookkeeping indicates that it's worth it.
48197         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
48198
48199         * modules/strcasestr-tests: New file.
48200         * tests/test-strcasestr.c: New file.
48201
48202 2007-02-11  Bruno Haible  <bruno@clisp.org>
48203
48204         Ensure O(n) worst-case complexity of c_strcasestr.
48205         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48206         (knuth_morris_pratt): New function.
48207         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
48208         the bookkeeping indicates that it's worth it.
48209         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
48210
48211         * modules/c-strcasestr-tests: New file.
48212         * tests/test-c-strcasestr.c: New file.
48213
48214 2007-02-11  Bruno Haible  <bruno@clisp.org>
48215
48216         Ensure O(n) worst-case complexity of c_strstr.
48217         * lib/c-strstr.c: Include stdbool.h, string.h.
48218         (knuth_morris_pratt): New function.
48219         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
48220         bookkeeping indicates that it's worth it.
48221         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
48222
48223         * lib/c-strstr.c: Complete rewrite for maintainability.
48224
48225         * modules/c-strstr-tests: New file.
48226         * tests/test-c-strstr.c: New file.
48227
48228 2007-02-11  Bruno Haible  <bruno@clisp.org>
48229
48230         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
48231         5.2.1 and earlier, whereby \055 was treated just like the range
48232         delimiter '-'.
48233         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48234
48235 2007-02-08  Bruno Haible  <bruno@clisp.org>
48236
48237         * modules/regex (Depends-on): Add stdbool.
48238         Reported by Dalibor Topic <robilad@kaffe.org>.
48239
48240 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
48243         Prefer returning from main to exiting from it.
48244         Remove unnecessary parens after sizeof.
48245
48246 2007-02-05  Bruno Haible  <bruno@clisp.org>
48247
48248         New module mbssep.
48249         * modules/mbssep: New file.
48250         * lib/mbssep.c: New file.
48251         * lib/string_.h (strsep): Add a conditional link warning.
48252         (mbssep): New declaration.
48253         * m4/mbssep.m4: New file.
48254         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48255         GNULIB_MBSSEP.
48256         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
48257         * MODULES.html.sh (Internationalization functions): Add mbssep.
48258
48259 2007-02-05  Bruno Haible  <bruno@clisp.org>
48260
48261         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
48262         Optimize search in case of 1 delimiter.
48263
48264 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48265
48266         * lib/acl.h: Include sys/types.h before sys/acl.h.
48267
48268 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
48269
48270         Merge upstream fix for glibc bugzilla #3957:
48271
48272         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
48273
48274         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
48275         bit for RE_HAT_LISTS_NOT_NEWLINE.
48276         (build_charclass_op): Remove bogus comment.
48277
48278 2007-02-05  Simon Josefsson  <simon@josefsson.org>
48279
48280         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48281
48282 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48283
48284         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48285         * lib/memmem.c [!defined _LIBC]: Include config.h.
48286
48287 2007-02-04  Bruno Haible  <bruno@clisp.org>
48288
48289         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48290         warning message.
48291
48292 2007-02-04  Bruno Haible  <bruno@clisp.org>
48293
48294         New module mbstok_r.
48295         * modules/mbstok_r: New file.
48296         * lib/mbstok_r.c: New file.
48297         * lib/string_.h (strtok_r): Change argument names to match the
48298         comments. Add a conditional link warning.
48299         (mbstok_r): New declaration.
48300         * m4/mbstok_r.m4: New file.
48301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48302         GNULIB_MBSTOK_R.
48303         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48304         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48305
48306 2007-02-04  Bruno Haible  <bruno@clisp.org>
48307
48308         New module mbsspn.
48309         * modules/mbsspn: New file.
48310         * lib/mbsspn.c: New file.
48311         * lib/string_.h (strspn): Add a conditional link warning.
48312         (mbsspn): New declaration.
48313         * m4/mbsspn.m4: New file.
48314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48315         GNULIB_MBSSPN.
48316         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48317         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48318
48319 2007-02-04  Bruno Haible  <bruno@clisp.org>
48320
48321         New module mbspbrk.
48322         * modules/mbspbrk: New file.
48323         * lib/mbspbrk.c: New file.
48324         * lib/string_.h (strpbrk): Add a conditional link warning.
48325         (mbspbrk): New declaration.
48326         * m4/mbspbrk.m4: New file.
48327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48328         GNULIB_MBSPBRK.
48329         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48330         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48331
48332 2007-02-04  Bruno Haible  <bruno@clisp.org>
48333
48334         New module mbscspn.
48335         * modules/mbscspn: New file.
48336         * lib/mbscspn.c: New file.
48337         * lib/string_.h (strcspn): Add a conditional link warning.
48338         (mbscspn): New declaration.
48339         * m4/mbscspn.m4: New file.
48340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48341         GNULIB_MBSCSPN.
48342         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48343         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48344
48345 2007-02-04  Bruno Haible  <bruno@clisp.org>
48346
48347         New module mbscasestr, reduced goal of strcasestr.
48348         * modules/mbscasestr: New file.
48349         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48350         (mbscasestr): Renamed from strcasestr.
48351         * lib/strcasestr.c: Don't include mbuiter.h.
48352         (strcasestr): Remove support for multibyte locales.
48353         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48354         Change the conditional link warning.
48355         (mbscasestr): New declaration.
48356         * m4/mbscasestr.m4: New file.
48357         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48358         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48359         REPLACE_STRCASESTR.
48360         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48362         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48363         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48364         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48365         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48366         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48367         (Depends-on): Remove mbuiter.
48368         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48369
48370 2007-02-04  Bruno Haible  <bruno@clisp.org>
48371
48372         Simplify handling of strncasecmp.
48373         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48374         the conditional link warning.
48375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48376         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48377         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48378         * modules/strcase (configure.ac): Don't invoke
48379         gl_STRING_MODULE_INDICATOR.
48380         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48381
48382 2007-02-04  Bruno Haible  <bruno@clisp.org>
48383
48384         New module mbscasecmp, reduced goal of strcasecmp.
48385         * modules/mbscasecmp: New file.
48386         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48387         (mbscasecmp): Renamed from strcasecmp.
48388         * lib/strcasecmp.c: Don't include mbuiter.h.
48389         (strcasecmp): Remove support for multibyte locales.
48390         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48391         Change the conditional link warning.
48392         (mbscasecmp): New declaration.
48393         * m4/mbscasecmp.m4: New file.
48394         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48395         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48396         REPLACE_STRCASECMP.
48397         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48399         GNULIB_MBSCASECMP.
48400         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48401         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48402         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48403         (Depends-on): Remove mbuiter.
48404         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48405
48406 2007-02-04  Bruno Haible  <bruno@clisp.org>
48407
48408         New module mbsstr. Remove module strstr.
48409         * modules/mbsstr: New file.
48410         * modules/strstr: Remove file.
48411         * lib/mbsstr.c: Renamed from lib/strstr.c.
48412         (mbsstr): Renamed from strstr.
48413         * lib/string_.h (strstr): Remove declaration. Change the conditional
48414         link warning.
48415         (mbsstr): New declaration.
48416         * m4/mbsstr.m4: New file.
48417         * m4/strstr.m4: Remove file.
48418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48419         REPLACE_STRSTR.
48420         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48421         Don't initialize GNULIB_STRSTR.
48422         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48423         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48424         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48425         (Support for systems lacking ANSI C 89): Remove strstr.
48426
48427 2007-02-04  Bruno Haible  <bruno@clisp.org>
48428
48429         New module mbsrchr.
48430         * modules/mbsrchr: New file.
48431         * lib/mbsrchr.c: New file.
48432         * lib/string_.h (strrchr): Add a conditional link warning.
48433         (mbsrchr): New declaration.
48434         * m4/mbsrchr.m4: New file.
48435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48436         GNULIB_MBSRCHR.
48437         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48438         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48439
48440 2007-02-04  Bruno Haible  <bruno@clisp.org>
48441
48442         New module mbschr.
48443         * modules/mbschr: New file.
48444         * lib/mbschr.c: New file.
48445         * lib/string_.h (strchr): Add a conditional link warning.
48446         (mbschr): New declaration.
48447         * m4/mbschr.m4: New file.
48448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48449         GNULIB_MBSCHR.
48450         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48451         * MODULES.html.sh (Internationalization functions): Add mbschr.
48452
48453 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48454
48455         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48456
48457         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48458
48459 2007-02-04  Bruno Haible  <bruno@clisp.org>
48460
48461         New module description section 'configure.ac-early'.
48462         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48463         (func_get_autoconf_early_snippet): New function.
48464         (func_import, func_create_testdir): Use it. Remove special cases for
48465         modules 'extensions' and 'lock'.
48466         * modules/extensions (configure.ac-early): Require
48467         gl_USE_SYSTEM_EXTENSIONS.
48468         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48469
48470 2007-02-04  Bruno Haible  <bruno@clisp.org>
48471
48472         Make use of gcj-4.3's -fsource and -ftarget option.
48473         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48474         and if so try the options -fsource and -ftarget.
48475         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48476         source_version, ftarget_option, target_version arguments.
48477         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48478         (is_envjavac_oldgcj_14_14_usable): Renamed from
48479         is_envjavac_gcj_14_14_usable.
48480         (is_envjavac_oldgcj_14_13_usable): Renamed from
48481         is_envjavac_gcj_14_13_usable.
48482         (is_gcj_present): Update.
48483         (is_gcj_43, is_gcj43_usable): New functions.
48484         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48485         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48486         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48487         try the options -fsource and -ftarget.
48488
48489 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48490
48491         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48492         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48493         larger value.
48494
48495 2007-02-03  Jim Meyering  <jim@meyering.net>
48496
48497         Give tools a better chance to allocate space for very large buffers.
48498         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48499
48500         Make pwd and readlink work also when run with an unreadable parent dir
48501         on systems with openat support.
48502         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48503         provided getcwd function, even when we have openat support.
48504         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48505
48506 2007-02-02  Bruno Haible  <bruno@clisp.org>
48507
48508         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48509         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48510         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48511         portability problems if one of these functions is only used on specific
48512         platforms.
48513         Reported by Paul Eggert.
48514
48515 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48516
48517         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48518         is causing more trouble than it's curing.
48519         * lib/regex_internal.h (__mempcpy): Remove.
48520         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48521         (and make the code a tad smaller to boot).
48522         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48523
48524 2007-02-02  Jim Meyering  <jim@meyering.net>
48525
48526         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48527         section, not in the Makefile.am: one.
48528
48529 2007-02-02  Eric Blake  <ebb9@byu.net>
48530
48531         * lib/strchrnul.c: Always include config.h first.
48532
48533         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48534         gnulib strstr is not necessary here.
48535
48536 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48537
48538         * m4/socklen.m4: Fix typo.
48539
48540 2007-02-02  Eric Blake  <ebb9@byu.net>
48541
48542         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48543         * modules/netinet_in (Makefile.am): Likewise.
48544
48545 2007-02-01  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/string_.h (GL_LINK_WARNING): New macro.
48548         (strcasecmp, strstr, strcasestr): If provided by the system,
48549         conditionally define as a macro that leads to a warning instead of to
48550         an error.
48551         (strncasecmp): Conditionally define as a macro that leads to a warning.
48552
48553 2007-02-01  Karl Berry  <karl@gnu.org>
48554
48555         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48556
48557 2007-02-01  Bruno Haible  <bruno@clisp.org>
48558
48559         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48560         renamings.
48561
48562 2007-02-01  Eric Blake  <ebb9@byu.net>
48563
48564         * modules/regex (Depends-on): Revert dependence on mempcpy.
48565         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48566         module's definition of mempcpy.
48567         Reported by Paul Eggert.
48568
48569 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48570
48571         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48572         the symbol XYZ before redefining it.  This fixes a problem with
48573         programs that don't use XYZ, when compiled on systems that define
48574         XYZ to something else.
48575
48576 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48577
48578         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48579         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48580         writeable to group or other and (2) is intended to have a special
48581         mode bit that is set or cleared.  In such a case, the directory
48582         should be neither group- nor other-writeable until the special
48583         mode bits are right.
48584
48585 2007-01-31  Eric Blake  <ebb9@byu.net>
48586
48587         * modules/mountlist (Depends-on): Add strstr.
48588
48589         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48590         bug.
48591         * modules/string (Makefile.am): Remove redundant replacement.
48592         * modules/regex (Depends-on): Add mempcpy.
48593
48594 2007-01-31  Bruno Haible  <bruno@clisp.org>
48595
48596         New module description field 'Link'.
48597         * gnulib-tool (func_usage): Document --extract-link-directive.
48598         (sed_extract_prog): Recognize 'Link' directive.
48599         (func_get_link_directive): New function.
48600         (func_import): Show summary of link directives.
48601         Handle --extract-link-directive option.
48602         * modules/acl (Link): New section.
48603         * modules/clock-time (Link): New section.
48604         * modules/euidaccess (Link): New section.
48605         * modules/gettext (Link): New section.
48606         * modules/iconv (Link): New section.
48607         * modules/lock (Link): New section.
48608         * modules/nanosleep (Link): New section.
48609         * modules/readline (Link): New section.
48610
48611 2007-01-27  Bruno Haible  <bruno@clisp.org>
48612
48613         Enforce the use of gnulib modules for unportable <string.h> functions.
48614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48615         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48616         (gl_HEADER_STRING_H_BODY): Require it.
48617         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48618         the symbol XYZ to one that gives a link error.
48619         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48620         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48621         * modules/mempcpy (configure.ac): Likewise.
48622         * modules/memrchr (configure.ac): Likewise.
48623         * modules/stpcpy (configure.ac): Likewise.
48624         * modules/stpncpy (configure.ac): Likewise.
48625         * modules/strcase (configure.ac): Likewise.
48626         * modules/strcasestr (configure.ac): Likewise.
48627         * modules/strchrnul (configure.ac): Likewise.
48628         * modules/strdup (configure.ac): Likewise.
48629         * modules/strndup (configure.ac): Likewise.
48630         * modules/strnlen (configure.ac): Likewise.
48631         * modules/strpbrk (configure.ac): Likewise.
48632         * modules/strsep (configure.ac): Likewise.
48633         * modules/strstr (configure.ac): Likewise.
48634         * modules/strtok_r (configure.ac): Likewise.
48635
48636 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48637
48638         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48639
48640 2007-01-30  Jim Meyering  <jim@meyering.net>
48641
48642         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48643
48644 2007-01-29  Bruno Haible  <bruno@clisp.org>
48645
48646         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48647         * lib/execute.c: Likewise.
48648         * lib/pipe.c: Likewise.
48649         * lib/printf-args.h: Likewise.
48650         * lib/printf-args.c: Likewise.
48651         * lib/printf-parse.c: Likewise.
48652         * lib/vasnprintf.c: Likewise.
48653
48654 2007-01-29  Eric Blake  <ebb9@byu.net>
48655
48656         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48657         declaration.
48658
48659 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48660
48661         * lib/strptime.h (strptime): Use 'restrict' for args where
48662         POSIX requires this.
48663         * lib/strptime.c (strptime): Likewise.
48664         Change license notice from LGPL to GPL, since gnulib-tool will
48665         change this as needed.
48666         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48667         defined.
48668         Include "strptime.h" first, to check interface.
48669         Do not #undef _LIBC and _NL_CURRENT.
48670         Do not include <stdlib.h>; no longer needed.
48671         Include "time_r.h" and declare ptime_locale_status
48672         only if _LIBC is not defined.
48673         (__P): Remove unused macro.
48674         (match_string): Bring back glibc version, but use it only if _LIBC
48675         is defined.
48676         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48677         Remove unnecessary assertion and abort() call.
48678         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48679         * m4/strptime.m4: Fix serial number comment.
48680         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48681         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48682         (Depends-on): Add time_r.
48683
48684 2007-01-29  Bruno Haible  <bruno@clisp.org>
48685
48686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48687         strptime.
48688         * modules/strptime (Depends-on): Add stdbool.
48689         * lib/strptime.h: Include <time.h> always. Add comments.
48690
48691 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48692
48693         * modules/strptime: New file.
48694         * lib/strptime.h: New file.
48695         * lib/strptime.c: New file.
48696         * m4/strptime.m4: New file.
48697
48698 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48699
48700         * MODULES.html.sh: New module mpsort.
48701         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48702
48703         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48704         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48706         All uses changed.
48707         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48708         All uses changed.
48709         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48710         to _Restrict_.
48711         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48712         the parameter matches the prototype.
48713
48714 2007-01-28  Jim Meyering  <jim@meyering.net>
48715
48716         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48717         sys/time.h here, reverting that part of the previous patch:
48718         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48719
48720 2007-01-28  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48723         value of $(SYS_TIME_H).
48724         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48725         remove it conditionally, too. [added by Jim Meyering]
48726         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48727         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48728         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48729         GETTIMEOFDAY_REPLACEMENT to 1.
48730
48731 2007-01-28  Bruno Haible  <bruno@clisp.org>
48732
48733         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48734         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48736         Set UNISTD_H instead of UNISTD_H2.
48737         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48738
48739 2007-01-28  Bruno Haible  <bruno@clisp.org>
48740
48741         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48742         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48743
48744 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48745
48746         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48747         (func_create_testdir): Ensure C locale for `grep' and `tr'
48748         character ranges.
48749         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48750         ACLOCAL_AMFLAGS parsing state machine.
48751
48752 2007-01-27  Bruno Haible  <bruno@clisp.org>
48753
48754         * modules/unistr/base: Update.
48755
48756 2007-01-27  Bruno Haible  <bruno@clisp.org>
48757
48758         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48759         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48760         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48761         modules/unistr/u32-mbtouc.
48762         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48763         * lib/unistr.h: Update.
48764         * lib/linebreak.c: Update.
48765         * modules/unistr/u32-mbtouc: Renamed from
48766         modules/unistr/u32-mbtouc-safe.
48767         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48768         * lib/unistr.h: Update.
48769         * lib/unistr/u32-to-u8.c: Update.
48770         * lib/unistr/u32-to-u16.c: Update.
48771
48772 2007-01-27  Bruno Haible  <bruno@clisp.org>
48773
48774         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48775         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48776         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48777         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48778         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48779         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48780         modules/unistr/u16-mbtouc.
48781         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48782         * lib/unistr.h: Update.
48783         * lib/linebreak.c: Update.
48784         * modules/linebreak: Update.
48785         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48786         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48787         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48788         * modules/unistr/u16-mbtouc: Renamed from
48789         modules/unistr/u16-mbtouc-safe.
48790         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48791         * lib/unistr.h: Update.
48792         * lib/unistr/u16-to-u8.c: Update.
48793         * modules/unistr/u16-to-u8: Update.
48794         * lib/unistr/u16-to-u32.c: Update.
48795         * modules/unistr/u16-to-u32: Update.
48796
48797 2007-01-27  Bruno Haible  <bruno@clisp.org>
48798
48799         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48800         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48801         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48802         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48803         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48804         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48805         modules/unistr/u8-mbtouc.
48806         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48807         * lib/unistr.h: Update.
48808         * lib/striconveh.c: Update.
48809         * modules/striconveh: Update.
48810         * lib/linebreak.c: Update.
48811         * modules/linebreak: Update.
48812         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48813         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48814         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48815         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48816         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48817         * lib/unistr.h: Update.
48818         * lib/striconveh.c: Update.
48819         * modules/striconveh: Update.
48820         * lib/unistr/u8-to-u16.c: Update.
48821         * modules/unistr/u8-to-u16: Update.
48822         * lib/unistr/u8-to-u32.c: Update.
48823         * modules/unistr/u8-to-u32: Update.
48824
48825 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48826
48827         Sync from Libtool.
48828         * lib/argz.c: Do not include strings.h nor memory.h, include
48829         string.h unconditionally.  Patch by Simon Josefsson.
48830
48831 2007-01-27  Bruno Haible  <bruno@clisp.org>
48832
48833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48834         from gl_HEADER_STRING_H_BODY.
48835         (gl_HEADER_STRING_H_BODY): Require it.
48836         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48837         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48838         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48839         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48840         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48841         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48843         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48844         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48845         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48846         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48847         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48848         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48849         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48850         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48851
48852 2007-01-27  Bruno Haible  <bruno@clisp.org>
48853
48854         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48855         check_PROGRAMS into noinst_PROGRAMS.
48856         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48857         check_PROGRAMS in this case.
48858         (func_import): Set for_test to false.
48859         (func_create_testdir): Set for_test to true.
48860
48861 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48862             Bruno Haible  <bruno@clisp.org>
48863
48864         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48865         (Depends-on): Add string.
48866         (Includes): Use <string.h> instead of strcasestr.h.
48867         * modules/string (Makefile.am): Also substitute the value of
48868         REPLACE_STRCASESTR.
48869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48870         assume strcasestr is declared in <string.h> not <strings.h>. Also
48871         set REPLACE_STRCASESTR.
48872         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48873         REPLACE_STRCASESTR.
48874         * lib/strcasestr.h: Remove file.
48875         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48876         * lib/string_.h (strcasestr): New declaration.
48877
48878 2007-01-27  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/string_.h: Use 'extern'.
48881
48882 2007-01-27  Jim Meyering  <jim@meyering.net>
48883
48884         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48885         of set-but-not-used local, "q".
48886
48887         * lib/mempcpy.c: Include <config.h> before <string.h>.
48888         This fixes a compilation error on HP-UX, due to the system's
48889         "restrict"-using mempcpy prototype.
48890
48891 2007-01-26  Bruno Haible  <bruno@clisp.org>
48892
48893         Small optimization.
48894         * lib/javacomp.c: Include c-strstr.h.
48895          (is_envjavac_gcj): Use c_strstr instead of strstr.
48896         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48897
48898 2007-01-26  Bruno Haible  <bruno@clisp.org>
48899
48900         * MODULES.html.sh (Unicode string functions): Add the new modules.
48901
48902         * modules/uniconv/u32-strconv-to-locale: New file.
48903         * lib/uniconv/u32-strconv-to-locale.c: New file.
48904
48905         * modules/uniconv/u16-strconv-to-locale: New file.
48906         * lib/uniconv/u16-strconv-to-locale.c: New file.
48907
48908         * modules/uniconv/u8-strconv-to-locale: New file.
48909         * lib/uniconv/u8-strconv-to-locale.c: New file.
48910
48911         * modules/uniconv/u32-strconv-from-locale: New file.
48912         * lib/uniconv/u32-strconv-from-locale.c: New file.
48913
48914         * modules/uniconv/u16-strconv-from-locale: New file.
48915         * lib/uniconv/u16-strconv-from-locale.c: New file.
48916
48917         * modules/uniconv/u8-strconv-from-locale: New file.
48918         * lib/uniconv/u8-strconv-from-locale.c: New file.
48919
48920         * modules/uniconv/u32-strconv-to-enc: New file.
48921         * lib/uniconv/u32-strconv-to-enc.c: New file.
48922         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48923         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48924
48925         * modules/uniconv/u16-strconv-to-enc: New file.
48926         * lib/uniconv/u16-strconv-to-enc.c: New file.
48927         * lib/uniconv/u-strconv-to-enc.h: New file.
48928         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48929         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48930
48931         * modules/uniconv/u8-strconv-to-enc: New file.
48932         * lib/uniconv/u8-strconv-to-enc.c: New file.
48933         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48934         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48935
48936         * modules/uniconv/u32-strconv-from-enc: New file.
48937         * lib/uniconv/u32-strconv-from-enc.c: New file.
48938         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48939         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48940
48941         * modules/uniconv/u16-strconv-from-enc: New file.
48942         * lib/uniconv/u16-strconv-from-enc.c: New file.
48943         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48944         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48945
48946         * modules/uniconv/u8-strconv-from-enc: New file.
48947         * lib/uniconv/u8-strconv-from-enc.c: New file.
48948         * lib/uniconv/u-strconv-from-enc.h: New file.
48949         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48950         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48951
48952         * modules/uniconv/u32-conv-from-enc: New file.
48953         * lib/uniconv/u32-conv-from-enc.c: New file.
48954         * modules/uniconv/u32-conv-from-enc-tests: New file.
48955         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48956
48957         * modules/uniconv/u16-conv-from-enc: New file.
48958         * lib/uniconv/u16-conv-from-enc.c: New file.
48959         * lib/uniconv/u-conv-from-enc.h: New file.
48960         * modules/uniconv/u16-conv-from-enc-tests: New file.
48961         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48962
48963         * modules/uniconv/u8-conv-from-enc: New file.
48964         * lib/uniconv/u8-conv-from-enc.c: New file.
48965         * modules/uniconv/u8-conv-from-enc-tests: New file.
48966         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48967
48968         * modules/uniconv/base: New file.
48969         * lib/uniconv.h: New file.
48970
48971 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48972
48973         * doc/gnulib-tool.texi (Initial import): Update to match current
48974         behavior with strdup module.
48975         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48976         * lib/memmem.h: Remove; all uses removed.  This is now done
48977         by <string.h>.
48978         * lib/mempcpy.h: Likewise.
48979         * lib/memrchr.h: Likewise.
48980         * lib/stpcpy.h: Likewise.
48981         * lib/stpncpy.h: Likewise.
48982         * lib/strcase.h: Likewise.
48983         * lib/strchrnul.h: Likewise.
48984         * lib/strdup.h: Likewise.
48985         * lib/strndup.h: Likewise.
48986         * lib/strnlen.h: Likewise.
48987         * lib/strpbrk.h: Likewise.
48988         * lib/strsep.h: Likewise.
48989         * lib/strstr.h: Likewise.
48990         * lib/strtok_r.h: Likewise.
48991         * lib/string_.h: New file.
48992         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48993         Rely on <string.h> instead.
48994         * lib/canon-host.c: Likewise.
48995         * lib/chdir-long.c: Likewise.
48996         * lib/concatpath.c: Likewise.
48997         * lib/exclude.c: Likewise.
48998         * lib/fchdir.c: Likewise.
48999         * lib/getaddrinfo.c: Likewise.
49000         * lib/getcwd.c: Likewise.
49001         * lib/getsubopt.c: Likewise.
49002         * lib/glob.c: Likewise.
49003         * lib/hard-locale.c: Likewise.
49004         * lib/iconvme.c: Likewise.
49005         * lib/javacomp.c: Likewise.
49006         * lib/mempcpy.c: Likewise.
49007         * lib/memrchr.c: Likewise.
49008         * lib/regex_internal.h: Likewise.
49009         * lib/stpncpy.c: Likewise.
49010         * lib/strcasecmp.c: Likewise.
49011         * lib/strchrnul.c: Likewise.
49012         * lib/strdup.c: Likewise.
49013         * lib/striconv.c: Likewise.
49014         * lib/striconveh.c: Likewise.
49015         * lib/striconveha.c: Likewise.
49016         * lib/strncasecmp.c: Likewise.
49017         * lib/strndup.c: Likewise.
49018         * lib/strnlen.c: Likewise.
49019         * lib/strsep.c: Likewise.
49020         * lib/strstr.c: Likewise.
49021         * lib/strtok_r.c: Likewise.
49022         * lib/userspec.c: Likewise.
49023         * lib/w32spawn.h: Likewise.
49024         * lib/xstrndup.c: Likewise.
49025         * lib/mountlist.c (strstr): Remove decl.
49026         * m4/string_h.m4: New file.
49027         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
49028         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
49029         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
49030         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
49031         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
49032         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
49033         Set REPLACE_STRCASECMP if necessary.
49034         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
49035         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
49036         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
49037         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
49038         HAVE_DECL_STRDUP if necessary.
49039         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
49040         since gl_FUNC_STRNDUP does that now.
49041         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
49042         Check for decl here...
49043         (gl_PREREQ_STRNLEN): ... not here.
49044         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
49045         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
49046         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
49047         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
49048         necessary.
49049         * modules/string: New file.
49050         * modules/memmem (Files): Remove special-purpose include file.
49051         (Depends-on): Add string.
49052         (Include): Include <string.h>, not the removed file.
49053         * modules/mempcpy: Likewise.
49054         * modules/memrchr: Likewise.
49055         * modules/stpcpy: Likewise.
49056         * modules/stpncpy: Likewise.
49057         * modules/strcase: Likewise.
49058         * modules/strchrnul: Likewise.
49059         * modules/strdup: Likewise.
49060         * modules/strndup: Likewise.
49061         * modules/strnlen: Likewise.
49062         * modules/strpbrk: Likewise.
49063         * modules/strsep: Likewise.
49064         * modules/strstr: Likewise.
49065         * modules/strtok_r: Likewise.
49066         * tests/test-dirname.c: Don't include "strdup.h", since
49067         <string.h> now suffices.
49068         * tests/test-memmem.c: Don't include "memmem.h", since
49069         <string.h> now suffices.
49070
49071 2007-01-25  Bruno Haible  <bruno@clisp.org>
49072
49073         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
49074         *resultp is 0.
49075
49076         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
49077         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
49078         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
49079         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
49080
49081         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
49082         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
49083         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
49084         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
49085         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
49086         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
49087
49088 2007-01-24  Bruno Haible  <bruno@clisp.org>
49089
49090         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
49091         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
49092         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
49093         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
49094         gl_FUNC_FTS_CORE.
49095         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
49096         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
49097         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49098         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
49099         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
49100         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
49101         gl_FUNC_FCHOWNAT.
49102         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
49103         gl_FUNC_STRFTIME.
49104         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
49105         Reported by Ralf Wildenhues.
49106
49107 2007-01-24  Bruno Haible  <bruno@clisp.org>
49108
49109         Drop AC_REQUIRE calls that are redundant with the module dependencies.
49110         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
49111         gl_GETADDRINFO.
49112         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
49113         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
49114         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
49115
49116 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
49117
49118         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
49119         Don't use 'exit'; just return from 'main'.
49120         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
49121
49122         * lib/fnmatch_.h: Readjust white space and comments to match
49123         glibc, to avoid spurious diffs.
49124
49125 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49126
49127         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
49128         2004-12-01 change by Jakub Jelinek, since this code won't compile
49129         if !LIBC.  Problem reported by Bob Proulx.
49130
49131 2007-01-23  Bruno Haible  <bruno@clisp.org>
49132
49133         * lib/striconveh.c: Include c-strcaseeq.h.
49134         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
49135         * modules/striconveh (Depends-on): Add c-strcaseeq.
49136
49137 2007-01-23  Bruno Haible  <bruno@clisp.org>
49138
49139         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
49140
49141         * modules/c-strcaseeq: New file.
49142         * lib/c-strcaseeq.h: New file.
49143
49144         * modules/streq: New file.
49145         * lib/streq.h: New file.
49146
49147 2007-01-23  Bruno Haible  <bruno@clisp.org>
49148
49149         * modules/striconveha-tests: New file.
49150         * tests/test-striconveha.c: New file.
49151
49152         * lib/striconveha.h: Include <stdbool.h>.
49153         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
49154         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
49155         (mem_iconveha_notranslit): Renamed from mem_iconveha.
49156         (mem_iconveha): New function.
49157         (str_iconveha_notranslit): Renamed from str_iconveha.
49158         (str_iconveha): New function.
49159         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
49160         c-strcase.
49161
49162 2007-01-23  Bruno Haible  <bruno@clisp.org>
49163
49164         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
49165         encodings without forgiving before trying any encoding with handler.
49166         (str_iconveha): Try all encodings without forgiving before trying any
49167         encoding with handler.
49168
49169 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49170
49171         Import the following changes from libc.
49172
49173         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
49174
49175         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
49176
49177         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49178
49179         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
49180         normal_bracket label.
49181
49182         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
49183
49184         [BZ #361]
49185         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
49186         to normal_bracket after fetching the next character.
49187
49188 2007-01-22  Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
49191         argument.
49192         * lib/striconveh.c (iconv_carefully_1): New function.
49193         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
49194         argument.
49195         (str_cd_iconveh): Update.
49196         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
49197         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
49198         * tests/test-striconveh.c (MAGIC): New macro.
49199         (new_offsets): New function.
49200         (main): Test call with and without offsets.
49201
49202 2007-01-22  Bruno Haible  <bruno@clisp.org>
49203
49204         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
49205         * modules/sys_select (Makefile.am): Likewise.
49206         * modules/sys_socket (Makefile.am): Likewise.
49207         * modules/sys_time (Makefile.am): Likewise.
49208
49209 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
49210
49211         * modules/gettimeofday (License): Change from GPL to LGPL, since
49212         gettimeofday is a library function.
49213
49214 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49215
49216         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
49217
49218 2007-01-21  Bruno Haible  <bruno@clisp.org>
49219
49220         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
49221
49222 2007-01-21  Bruno Haible  <bruno@clisp.org>
49223
49224         * modules/striconveha: New file.
49225         * lib/striconveha.h: New file.
49226         * lib/striconveha.c: New file.
49227         * MODULES.html.sh (Internationalization functions): Add striconveha.
49228         * lib/striconv.c (str_iconv): Optimize the case of an empty input
49229         string.
49230         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
49231
49232 2007-01-21  Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
49235         * lib/striconveh.c (str_iconveh): Likewise.
49236
49237 2007-01-21  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/striconveh.h (mem_iconveh): New declaration.
49240         * lib/striconveh.c (mem_iconveh): New function.
49241         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
49242
49243 2007-01-21  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
49246
49247         * lib/striconveh.h (mem_cd_iconveh): Change specification.
49248         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
49249         original result buffer.
49250         (str_cd_iconveh): Update.
49251         * tests/test-striconveh.c (main): Update.
49252
49253         * lib/striconv.h (mem_cd_iconv): Change specification.
49254         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
49255         result buffer.
49256         (str_cd_iconv): Update.
49257         * tests/test-striconv.c (main): Update.
49258
49259 2007-01-21  Bruno Haible  <bruno@clisp.org>
49260
49261         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
49262
49263 2007-01-20  Jim Meyering  <jim@meyering.net>
49264
49265         * lib/userspec.c (parse_with_separator): If a user or group string
49266         starts with "+", skip the corresponding name-to-ID look-up, since
49267         such a look-up must fail: user and group names may not include "+".
49268
49269 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49270
49271         * lib/poll.c: Include sys/time.h and time.h unconditionally,
49272         since we now assume the sys_time module.
49273         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
49274         check for sys/time.h; no longer needed.
49275         * modules/poll (Depends-on): Depend on sys_time.
49276
49277 2007-01-18  Bruno Haible  <bruno@clisp.org>
49278
49279         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
49280         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49281
49282         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49283         gettimeofday.
49284
49285         * tests/test-gettimeofday.c: Include <time.h>.
49286         (dummy): Remove variable.
49287
49288         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49289         gl_HEADER_SYS_TIME_H.
49290         (gl_HEADER_SYS_TIME_H): New macro.
49291
49292         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49293         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49294         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49295         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49296         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49297         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49298         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49299         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49300         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49301         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49302         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49303
49304         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49305         last change; it caused a compilation error when cross-compiling to
49306         Cygwin.
49307
49308 2007-01-18  Jim Meyering  <jim@meyering.net>
49309
49310         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49311         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49312         than the race-prone "test -d sys || mkdir sys".
49313         (configure.ac): Use AC_PROG_MKDIR_P.
49314         * modules/sys_select: Likewise.
49315         * modules/sys_socket: Likewise.
49316         * modules/sys_time: Likewise.
49317
49318 2007-01-18  Eric Blake  <ebb9@byu.net>
49319
49320         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49321         replace gettimeofday.
49322         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49323         name, to avoid infinite recursion.
49324
49325 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49326
49327         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49328         module sys_time.
49329         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49330         assume timespec.h defines struct timeval.
49331         * lib/settime.c: Likewise.
49332         * lib/utimens.c: Likewise.
49333         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49334         since we now assume the gettimeofday module.
49335         * lib/tempname.c (__gen_tempname): Likewise.
49336         * lib/gettimeofday.h: Remove.
49337         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49338         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49339         Include <time.h>, for 'time()'.
49340         (localtime_buffer_addr): Also use this workaround if
49341         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49342         to simplify the uses.  All uses changed.
49343         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49344         that #undef is inside {}, and 'const' follows type name consistently.
49345         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49346         (gettimeofday): Do not use the maximum possible value for
49347         tv->tv_usec, since that might break usages other than ls.c.
49348         Instead, we'll leave ls.c alone.  This undoes today's patch
49349         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49350         we've never observed the problem but might as well keep the
49351         canary.
49352         * lib/nanosleep.c: Include timespec.h first, for interface check.
49353         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49354         now assume the sys_time module.
49355         * lib/tempname.c: Likewise.
49356         * lib/timespec.h: Likewise.
49357         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49358         needed.
49359         * lib/strftime.c: Likewise.
49360         * lib/timespec.h: Likewise.
49361         * lib/posixtm.c: Include posixtm.h first, for interface check.
49362         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49363         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49364         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49365         * lib/sys_time_.h: New file.
49366         * lib/timespec.h (struct timespec): Use long int, not long.
49367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49368         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49369         Remove obsolescent call to AC_HEADER_TIME.
49370         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49372         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49373         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49374         Likewise.
49375         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49376         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49378         into the sys_time module.  Check for gettimeofday just once.
49379         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49380         for gettimeofday signature to just check the signature.  Merely
49381         compile it, since linking doesn't test signature.  Improve test for
49382         whether gettimeofday.o is actually needed.
49383         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49384         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49385         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49386         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49387         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49388         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49389         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49390         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49391         than worrying about sys/time.h.
49392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49393         Don't bother worrying about TIME_WITH_SYS_TIME.
49394         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49395         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49396         * m4/sys_time_h.m4: New file.
49397         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49398         Don't include sys/time.h.  Return from main rather than exiting.
49399         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49400         all uses changed.
49401         * modules/gethrxtime (Depends-on): Add sys_time.
49402         * modules/gettime (Depends-on): Likewise.
49403         * modules/gettimeofday (Depends-on): Likewise.
49404         * modules/nanosleep (Depends-on): Likewise.
49405         * modules/settime (Depends-on): Likewise.
49406         * modules/tempname (Depends-on): Likewise.
49407         * modules/utimens (Depends-on): Likewise.
49408         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49409         (Include:) Change back to <sys/time.h>.
49410         (Maintainer:) Add self.
49411         * modules/sys_time: New file.
49412         * modules/tempname (Depends-on): Add gettimeofday.
49413         * tests/test-gettimeofday.c: Include <sys/time.h>
49414         rather than gettimeofday.h.
49415
49416 2007-01-17  Bruno Haible  <bruno@clisp.org>
49417
49418         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49419         the license default to GPL.
49420         (func_create_testdir): Don't complain if a module is LGPL and its
49421         tests module depends on GPLed modules.
49422
49423 2007-01-17  Bruno Haible  <bruno@clisp.org>
49424
49425         * lib/gettimeofday.c (gettimeofday): Add code for the case
49426         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49427         maximum possible value for tv->tv_usec, rather than the minimum one.
49428
49429 2005-10-08  Martin Lambers  <marlam@marlam.de>
49430 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49431 2007-01-16  Bruno Haible  <bruno@clisp.org>
49432
49433         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49434         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49435         gl_FUNC_GETTIMEOFDAY.
49436         (Include): Add gettimeofday.h.
49437         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49438         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49439         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49440         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49441         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49442         * lib/gettimeofday.h: New file.
49443         * lib/gettimeofday.c: Include <sys/timeb.h>.
49444         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49445         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49446         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49447         fall back on time().
49448
49449         * tests/test-gettimeofday.c: New file.
49450         * modules/gettimeofday-tests: New file.
49451
49452 2007-01-16  Eric Blake  <ebb9@byu.net>
49453
49454         * modules/fnmatch (Depends-on): Depend on wchar.
49455         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49456         * m4/fnmatch.m4: Likewise.
49457         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49458         * m4/mbchar.m4: Likewise.
49459         * modules/mbswidth (Depends-on): Depend on wchar.
49460         * lib/mbswidth.c: Assume <wchar.h>.
49461         * m4/mbswidth.m4: Likewise.
49462         * modules/quotearg (Depends-on): Depend on wchar.
49463         * lib/quotearg.c: Assume <wchar.h>.
49464         * m4/quotearg.m4: Likewise.
49465         * modules/regex (Depends-on): Depend on wchar.
49466         * lib/regex_internal.h: Assume <wchar.h>.
49467         * m4/regex.m4: Likewise.
49468         * modules/stdint (Depends-on): Depend on wchar.
49469         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49470         * m4/stdint.m4: Likewise.
49471         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49472         * modules/strftime (Depends-on): Depend on wchar.
49473         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49474         * modules/strtol (Depends-on): Depend on wchar.
49475         * lib/strtol.c: Assume <wchar.h>.
49476         * modules/wcwidth (Depends-on): Depend on wchar.
49477         * lib/wcwidth.h: Assume <wchar.h>.
49478         * m4/wcwidth.m4: Likewise.
49479
49480 2007-01-16  Bruno Haible  <bruno@clisp.org>
49481
49482         * modules/csharpexec-script: New, created from...
49483         * modules/csharpexec: ... this.
49484
49485 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49486
49487         * modules/javaexec-script: New, created from...
49488         * modules/javaexec: ... this.
49489
49490 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49491
49492         * modules/poll (Dependencies): Add sys_select.
49493
49494 2007-01-15  Jim Meyering  <jim@meyering.net>
49495
49496         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49497         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49498         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49499         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49500
49501 2007-01-15  Bruno Haible  <bruno@clisp.org>
49502
49503         * modules/striconveh: New file.
49504         * lib/striconveh.h: New file.
49505         * lib/striconveh.c: New file.
49506         * MODULES.html.sh (Internationalization functions): Add striconveh.
49507
49508         * modules/striconveh-tests: New file.
49509         * tests/test-striconveh.c: New file.
49510
49511 2007-01-15  Bruno Haible  <bruno@clisp.org>
49512
49513         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49514         not from GNU libiconv or GNU libc.
49515
49516 2007-01-15  Bruno Haible  <bruno@clisp.org>
49517
49518         * doc/gnulib-intro.texi (Copyright): Explain the different license
49519         terms for module descriptions, autoconf macros, tests, documentation.
49520
49521 2007-01-14  Bruno Haible  <bruno@clisp.org>
49522
49523         * modules/striconv-tests: New file.
49524         * tests/test-striconv.c: New file.
49525
49526 2007-01-14  Bruno Haible  <bruno@clisp.org>
49527
49528         * modules/iconv-tests: New file.
49529         * tests/test-iconv.c: New file.
49530
49531 2007-01-14  Bruno Haible  <bruno@clisp.org>
49532
49533         * gnulib-tool (func_get_license): For test modules, use the license of
49534         the main module.
49535
49536 2007-01-14  Bruno Haible  <bruno@clisp.org>
49537
49538         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49539         if iconv is found to exist.
49540
49541 2007-01-14  Bruno Haible  <bruno@clisp.org>
49542
49543         * modules/c-ctype-tests: New file.
49544         * tests/test-c-ctype.c: New file.
49545
49546 2007-01-14  Bruno Haible  <bruno@clisp.org>
49547
49548         * modules/binary-io-tests: New file.
49549         * tests/test-binary-io.sh: New file.
49550         * tests/test-binary-io.c: New file.
49551
49552 2007-01-14  Bruno Haible  <bruno@clisp.org>
49553
49554         * modules/array-oset-tests: New file.
49555         * tests/test-array_oset.c: New file.
49556
49557 2007-01-14  Bruno Haible  <bruno@clisp.org>
49558
49559         * modules/array-list-tests: New file.
49560         * tests/test-array_list.c: New file.
49561
49562 2007-01-14  Bruno Haible  <bruno@clisp.org>
49563
49564         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49565         and make.
49566         Reported by Simon Josefsson in
49567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49568
49569 2007-01-14  Bruno Haible  <bruno@clisp.org>
49570
49571         * modules/allocsa-tests: New file.
49572         * tests/test-allocsa.c: New file.
49573
49574 2007-01-14  Bruno Haible  <bruno@clisp.org>
49575
49576         * modules/fchdir (Depends-on): Add absolute-header.
49577         * modules/unistd (Depends-on): Likewise.
49578
49579 2006-12-30  Bruno Haible  <bruno@clisp.org>
49580
49581         * modules/fchdir: New file.
49582         * modules/unistd (Files): Add lib/unistd_.h.
49583         (Makefile.am): Generate unistd.h from unistd_.h.
49584         * lib/fchdir.c: New file.
49585         * lib/dirent_.h: New file.
49586         * lib/unistd_.h: New file.
49587         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49588         * m4/fchdir.m4: New file.
49589         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49590         (gl_HEADER_UNISTD): Invoke it.
49591         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49592         function.
49593         * lib/backupfile.c (opendir, closedir): Undefine.
49594         * lib/chown.c (open, close): Undefine.
49595         * lib/clean-temp.c (open, close): Undefine.
49596         * lib/copy-file.c (open, close): Undefine.
49597         * lib/execute.c (open, close): Undefine.
49598         * lib/fsusage.c (open, close): Undefine.
49599         * lib/gc-gnulib.c (open, close): Undefine.
49600         * lib/getcwd.c (opendir, closedir): Undefine.
49601         * lib/glob.c (opendir, closedir): Undefine.
49602         * lib/javacomp.c (open, close): Undefine.
49603         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49604         * lib/openat-proc.c (open, close): Undefine.
49605         * lib/pagealign_alloc.c (open, close): Undefine.
49606         * lib/pipe.c (open, close): Undefine.
49607         * lib/progreloc.c (open, close): Undefine.
49608         * lib/savedir.c (opendir, closedir): Undefine.
49609         * lib/utime.c (open, close): Undefine.
49610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49611
49612 2007-01-10  Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49615
49616 2007-01-12  Eric Blake  <ebb9@byu.net>
49617
49618         Provide a robust <wchar.h>.  Further simplifications are now
49619         possible in other modules, but not included here.
49620         * modules/wchar: New module.
49621         * m4/wchar.m4: New file.
49622         * lib/wchar_.h: Likewise.
49623         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49624         of the new module.
49625         * MODULES.html.sh (Extended multibyte and wide character utilities):
49626         New section.
49627
49628 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49629
49630         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49631         to a reasonable default for memory allocation.
49632         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49633         file system that reports garbage st_size values for symlinks.
49634         Problem reported by Liyang Hu.
49635
49636 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49637
49638         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49639         Emacs .#* auto-save files).
49640
49641 2007-01-11  Bruno Haible  <bruno@clisp.org>
49642
49643         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49644         directory.
49645
49646 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49647
49648         Use @...@ consistently in lib/wctype_.h.
49649         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49650         on it being set to 1 or 0.
49651         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49652         go back to AC_SUBSTing it.
49653         * modules/wctype (Makefile.am): Undo previous change.
49654
49655 2007-01-10  Eric Blake  <ebb9@byu.net>
49656
49657         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49658         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49659         * modules/wctype (Makefile.am): Likewise.
49660         Reported by Chris McGuire.
49661
49662 2007-01-10  Jim Meyering  <jim@meyering.net>
49663
49664         fts.c: a small readability/maintainability improvement
49665         * lib/fts.c (fts_read): Make this code slightly more readable and
49666         maintainable by hoisting the "sp->fts_cur = p" assignments to
49667         immediately follow the statements that set P.  Derived from
49668         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49669
49670 2007-01-10  Eric Blake  <ebb9@byu.net>
49671
49672         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49673         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49675         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49676         Reported by Chris McGuire.
49677
49678 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49679
49680         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49681         in sed script.
49682
49683 2007-01-09  Bruno Haible  <bruno@clisp.org>
49684
49685         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49686         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49687         variables.
49688         (func_module): Use them.
49689
49690 2007-01-09  Bruno Haible  <bruno@clisp.org>
49691
49692         * modules/unistr/base: New file.
49693         * lib/unistr.h: New file.
49694
49695         * modules/unistr/u8-to-u16: New file.
49696         * lib/unistr/u8-to-u16.c: New file.
49697
49698         * modules/unistr/u8-to-u32: New file.
49699         * lib/unistr/u8-to-u32.c: New file.
49700
49701         * modules/unistr/u16-to-u8: New file.
49702         * lib/unistr/u16-to-u8.c: New file.
49703
49704         * modules/unistr/u16-to-u32: New file.
49705         * lib/unistr/u16-to-u32.c: New file.
49706
49707         * modules/unistr/u32-to-u8: New file.
49708         * lib/unistr/u32-to-u8.c: New file.
49709
49710         * modules/unistr/u32-to-u16: New file.
49711         * lib/unistr/u32-to-u16.c: New file.
49712
49713         * modules/unistr/u8-check: New file.
49714         * modules/unistr/u16-check: New file.
49715         * modules/unistr/u32-check: New file.
49716         * lib/unistr/u8-check.c: New file.
49717         * lib/unistr/u16-check.c: New file.
49718         * lib/unistr/u32-check.c: New file.
49719
49720         * modules/unistr/u8-chr: New file.
49721         * modules/unistr/u16-chr: New file.
49722         * modules/unistr/u32-chr: New file.
49723         * lib/unistr/u8-chr.c: New file.
49724         * lib/unistr/u16-chr.c: New file.
49725         * lib/unistr/u32-chr.c: New file.
49726
49727         * modules/unistr/u8-cmp: New file.
49728         * modules/unistr/u16-cmp: New file.
49729         * modules/unistr/u32-cmp: New file.
49730         * lib/unistr/u8-cmp.c: New file.
49731         * lib/unistr/u16-cmp.c: New file.
49732         * lib/unistr/u32-cmp.c: New file.
49733
49734         * modules/unistr/u8-cpy: New file.
49735         * modules/unistr/u16-cpy: New file.
49736         * modules/unistr/u32-cpy: New file.
49737         * lib/unistr/u8-cpy.c: New file.
49738         * lib/unistr/u16-cpy.c: New file.
49739         * lib/unistr/u32-cpy.c: New file.
49740         * lib/unistr/u-cpy.h: New file.
49741
49742         * modules/unistr/u8-cpy-alloc: New file.
49743         * modules/unistr/u16-cpy-alloc: New file.
49744         * modules/unistr/u32-cpy-alloc: New file.
49745         * lib/unistr/u8-cpy-alloc.c: New file.
49746         * lib/unistr/u16-cpy-alloc.c: New file.
49747         * lib/unistr/u32-cpy-alloc.c: New file.
49748         * lib/unistr/u-cpy-alloc.h: New file.
49749
49750         * modules/unistr/u8-endswith: New file.
49751         * modules/unistr/u16-endswith: New file.
49752         * modules/unistr/u32-endswith: New file.
49753         * lib/unistr/u8-endswith.c: New file.
49754         * lib/unistr/u16-endswith.c: New file.
49755         * lib/unistr/u32-endswith.c: New file.
49756         * lib/unistr/u-endswith.h: New file.
49757
49758         * modules/unistr/u8-mblen: New file.
49759         * modules/unistr/u16-mblen: New file.
49760         * modules/unistr/u32-mblen: New file.
49761         * lib/unistr/u8-mblen.c: New file.
49762         * lib/unistr/u16-mblen.c: New file.
49763         * lib/unistr/u32-mblen.c: New file.
49764
49765         * modules/unistr/u8-mbtouc: New file.
49766         * modules/unistr/u16-mbtouc: New file.
49767         * modules/unistr/u32-mbtouc: New file.
49768         * lib/unistr/u8-mbtouc.c: New file.
49769         * lib/unistr/u16-mbtouc.c: New file.
49770         * lib/unistr/u32-mbtouc.c: New file.
49771
49772         * modules/unistr/u8-mbtouc-safe: New file.
49773         * modules/unistr/u16-mbtouc-safe: New file.
49774         * modules/unistr/u32-mbtouc-safe: New file.
49775         * lib/unistr/u8-mbtouc-safe.c: New file.
49776         * lib/unistr/u16-mbtouc-safe.c: New file.
49777         * lib/unistr/u32-mbtouc-safe.c: New file.
49778
49779         * modules/unistr/u8-move: New file.
49780         * modules/unistr/u16-move: New file.
49781         * modules/unistr/u32-move: New file.
49782         * lib/unistr/u8-move.c: New file.
49783         * lib/unistr/u16-move.c: New file.
49784         * lib/unistr/u32-move.c: New file.
49785         * lib/unistr/u-move.h: New file.
49786
49787         * modules/unistr/u8-next: New file.
49788         * modules/unistr/u16-next: New file.
49789         * modules/unistr/u32-next: New file.
49790         * lib/unistr/u8-next.c: New file.
49791         * lib/unistr/u16-next.c: New file.
49792         * lib/unistr/u32-next.c: New file.
49793
49794         * modules/unistr/u8-prev: New file.
49795         * modules/unistr/u16-prev: New file.
49796         * modules/unistr/u32-prev: New file.
49797         * lib/unistr/u8-prev.c: New file.
49798         * lib/unistr/u16-prev.c: New file.
49799         * lib/unistr/u32-prev.c: New file.
49800
49801         * modules/unistr/u8-set: New file.
49802         * modules/unistr/u16-set: New file.
49803         * modules/unistr/u32-set: New file.
49804         * lib/unistr/u8-set.c: New file.
49805         * lib/unistr/u16-set.c: New file.
49806         * lib/unistr/u32-set.c: New file.
49807         * lib/unistr/u-set.h: New file.
49808
49809         * modules/unistr/u8-startswith: New file.
49810         * modules/unistr/u16-startswith: New file.
49811         * modules/unistr/u32-startswith: New file.
49812         * lib/unistr/u8-startswith.c: New file.
49813         * lib/unistr/u16-startswith.c: New file.
49814         * lib/unistr/u32-startswith.c: New file.
49815         * lib/unistr/u-startswith.h: New file.
49816
49817         * modules/unistr/u8-stpcpy: New file.
49818         * modules/unistr/u16-stpcpy: New file.
49819         * modules/unistr/u32-stpcpy: New file.
49820         * lib/unistr/u8-stpcpy.c: New file.
49821         * lib/unistr/u16-stpcpy.c: New file.
49822         * lib/unistr/u32-stpcpy.c: New file.
49823         * lib/unistr/u-stpcpy.h: New file.
49824
49825         * modules/unistr/u8-stpncpy: New file.
49826         * modules/unistr/u16-stpncpy: New file.
49827         * modules/unistr/u32-stpncpy: New file.
49828         * lib/unistr/u8-stpncpy.c: New file.
49829         * lib/unistr/u16-stpncpy.c: New file.
49830         * lib/unistr/u32-stpncpy.c: New file.
49831         * lib/unistr/u-stpncpy.h: New file.
49832
49833         * modules/unistr/u8-strcat: New file.
49834         * modules/unistr/u16-strcat: New file.
49835         * modules/unistr/u32-strcat: New file.
49836         * lib/unistr/u8-strcat.c: New file.
49837         * lib/unistr/u16-strcat.c: New file.
49838         * lib/unistr/u32-strcat.c: New file.
49839         * lib/unistr/u-strcat.h: New file.
49840
49841         * modules/unistr/u8-strchr: New file.
49842         * modules/unistr/u16-strchr: New file.
49843         * modules/unistr/u32-strchr: New file.
49844         * lib/unistr/u8-strchr.c: New file.
49845         * lib/unistr/u16-strchr.c: New file.
49846         * lib/unistr/u32-strchr.c: New file.
49847
49848         * modules/unistr/u8-strcmp: New file.
49849         * modules/unistr/u16-strcmp: New file.
49850         * modules/unistr/u32-strcmp: New file.
49851         * lib/unistr/u8-strcmp.c: New file.
49852         * lib/unistr/u16-strcmp.c: New file.
49853         * lib/unistr/u32-strcmp.c: New file.
49854
49855         * modules/unistr/u8-strcpy: New file.
49856         * modules/unistr/u16-strcpy: New file.
49857         * modules/unistr/u32-strcpy: New file.
49858         * lib/unistr/u8-strcpy.c: New file.
49859         * lib/unistr/u16-strcpy.c: New file.
49860         * lib/unistr/u32-strcpy.c: New file.
49861         * lib/unistr/u-strcpy.h: New file.
49862
49863         * modules/unistr/u8-strcspn: New file.
49864         * modules/unistr/u16-strcspn: New file.
49865         * modules/unistr/u32-strcspn: New file.
49866         * lib/unistr/u8-strcspn.c: New file.
49867         * lib/unistr/u16-strcspn.c: New file.
49868         * lib/unistr/u32-strcspn.c: New file.
49869         * lib/unistr/u-strcspn.h: New file.
49870
49871         * modules/unistr/u8-strdup: New file.
49872         * modules/unistr/u16-strdup: New file.
49873         * modules/unistr/u32-strdup: New file.
49874         * lib/unistr/u8-strdup.c: New file.
49875         * lib/unistr/u16-strdup.c: New file.
49876         * lib/unistr/u32-strdup.c: New file.
49877         * lib/unistr/u-strdup.h: New file.
49878
49879         * modules/unistr/u8-strlen: New file.
49880         * modules/unistr/u16-strlen: New file.
49881         * modules/unistr/u32-strlen: New file.
49882         * lib/unistr/u8-strlen.c: New file.
49883         * lib/unistr/u16-strlen.c: New file.
49884         * lib/unistr/u32-strlen.c: New file.
49885         * lib/unistr/u-strlen.h: New file.
49886
49887         * modules/unistr/u8-strmblen: New file.
49888         * modules/unistr/u16-strmblen: New file.
49889         * modules/unistr/u32-strmblen: New file.
49890         * lib/unistr/u8-strmblen.c: New file.
49891         * lib/unistr/u16-strmblen.c: New file.
49892         * lib/unistr/u32-strmblen.c: New file.
49893
49894         * modules/unistr/u8-strmbtouc: New file.
49895         * modules/unistr/u16-strmbtouc: New file.
49896         * modules/unistr/u32-strmbtouc: New file.
49897         * lib/unistr/u8-strmbtouc.c: New file.
49898         * lib/unistr/u16-strmbtouc.c: New file.
49899         * lib/unistr/u32-strmbtouc.c: New file.
49900
49901         * modules/unistr/u8-strncat: New file.
49902         * modules/unistr/u16-strncat: New file.
49903         * modules/unistr/u32-strncat: New file.
49904         * lib/unistr/u8-strncat.c: New file.
49905         * lib/unistr/u16-strncat.c: New file.
49906         * lib/unistr/u32-strncat.c: New file.
49907         * lib/unistr/u-strncat.h: New file.
49908
49909         * modules/unistr/u8-strncmp: New file.
49910         * modules/unistr/u16-strncmp: New file.
49911         * modules/unistr/u32-strncmp: New file.
49912         * lib/unistr/u8-strncmp.c: New file.
49913         * lib/unistr/u16-strncmp.c: New file.
49914         * lib/unistr/u32-strncmp.c: New file.
49915
49916         * modules/unistr/u8-strncpy: New file.
49917         * modules/unistr/u16-strncpy: New file.
49918         * modules/unistr/u32-strncpy: New file.
49919         * lib/unistr/u8-strncpy.c: New file.
49920         * lib/unistr/u16-strncpy.c: New file.
49921         * lib/unistr/u32-strncpy.c: New file.
49922         * lib/unistr/u-strncpy.h: New file.
49923
49924         * modules/unistr/u8-strnlen: New file.
49925         * modules/unistr/u16-strnlen: New file.
49926         * modules/unistr/u32-strnlen: New file.
49927         * lib/unistr/u8-strnlen.c: New file.
49928         * lib/unistr/u16-strnlen.c: New file.
49929         * lib/unistr/u32-strnlen.c: New file.
49930         * lib/unistr/u-strnlen.h: New file.
49931
49932         * modules/unistr/u8-strpbrk: New file.
49933         * modules/unistr/u16-strpbrk: New file.
49934         * modules/unistr/u32-strpbrk: New file.
49935         * lib/unistr/u8-strpbrk.c: New file.
49936         * lib/unistr/u16-strpbrk.c: New file.
49937         * lib/unistr/u32-strpbrk.c: New file.
49938         * lib/unistr/u-strpbrk.h: New file.
49939
49940         * modules/unistr/u8-strrchr: New file.
49941         * modules/unistr/u16-strrchr: New file.
49942         * modules/unistr/u32-strrchr: New file.
49943         * lib/unistr/u8-strrchr.c: New file.
49944         * lib/unistr/u16-strrchr.c: New file.
49945         * lib/unistr/u32-strrchr.c: New file.
49946
49947         * modules/unistr/u8-strspn: New file.
49948         * modules/unistr/u16-strspn: New file.
49949         * modules/unistr/u32-strspn: New file.
49950         * lib/unistr/u8-strspn.c: New file.
49951         * lib/unistr/u16-strspn.c: New file.
49952         * lib/unistr/u32-strspn.c: New file.
49953         * lib/unistr/u-strspn.h: New file.
49954
49955         * modules/unistr/u8-strstr: New file.
49956         * modules/unistr/u16-strstr: New file.
49957         * modules/unistr/u32-strstr: New file.
49958         * lib/unistr/u8-strstr.c: New file.
49959         * lib/unistr/u16-strstr.c: New file.
49960         * lib/unistr/u32-strstr.c: New file.
49961         * lib/unistr/u-strstr.h: New file.
49962
49963         * modules/unistr/u8-strtok: New file.
49964         * modules/unistr/u16-strtok: New file.
49965         * modules/unistr/u32-strtok: New file.
49966         * lib/unistr/u8-strtok.c: New file.
49967         * lib/unistr/u16-strtok.c: New file.
49968         * lib/unistr/u32-strtok.c: New file.
49969         * lib/unistr/u-strtok.h: New file.
49970
49971         * modules/unistr/u8-uctomb: New file.
49972         * modules/unistr/u16-uctomb: New file.
49973         * modules/unistr/u32-uctomb: New file.
49974         * lib/unistr/u8-uctomb.c: New file.
49975         * lib/unistr/u16-uctomb.c: New file.
49976         * lib/unistr/u32-uctomb.c: New file.
49977
49978         * MODULES.html.sh (Unicode string functions): Add the new modules.
49979
49980 2007-01-08  Bruno Haible  <bruno@clisp.org>
49981
49982         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49983         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49984         subdirectories.
49985
49986 2007-01-08  Karl Berry  <karl@gnu.org>
49987
49988         * doc/error.texi: mention that main() fns must set program_name
49989         when progname is used.
49990
49991 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49992
49993         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49994         WCTYPE_H is empty, for the benefit of builds from non-distclean
49995         directories.  Problem reported by Eric Blake in
49996         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49997
49998 2007-01-08  Bruno Haible  <bruno@clisp.org>
49999
50000         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
50001         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
50002         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
50003         PROVIDE_CANONICALIZE_FILENAME_MODE.
50004         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
50005
50006 2007-01-08  Bruno Haible  <bruno@clisp.org>
50007
50008         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
50009         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
50010         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
50011         * lib/fts.c: Likewise.
50012         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
50013
50014 2006-12-25  Bruno Haible  <bruno@clisp.org>
50015
50016         * modules/utf8-ucs4-safe: New file.
50017         * lib/utf8-ucs4-safe.h: New file.
50018         * lib/unistr/utf8-ucs4-safe.c: New file.
50019
50020         * modules/utf16-ucs4-safe: New file.
50021         * lib/utf16-ucs4-safe.h: New file.
50022         * lib/unistr/utf16-ucs4-safe.c: New file.
50023
50024         * MODULES.html.sh (Unicode string functions): Add the new modules.
50025
50026 2007-01-08  Bruno Haible  <bruno@clisp.org>
50027
50028         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
50029         (Depends-on): Add unitypes.
50030         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50031         (u8_mbtouc_aux): Move out to separate file.
50032         (u8_mbtouc): Use ucs4_t, uint8_t types.
50033         * lib/unistr/utf8-ucs4.c: New file.
50034
50035         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
50036         (Depends-on): Add unitypes.
50037         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
50038         (u16_mbtouc_aux): Move out to separate file.
50039         (u16_mbtouc): Use ucs4_t, uint16_t types.
50040         * lib/unistr/utf16-ucs4.c: New file.
50041
50042         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
50043         (Depends-on): Add unitypes.
50044         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
50045         (u8_uctomb_aux): Move out to separate file.
50046         (u8_uctomb): Use ucs4_t, uint8_t types.
50047         * lib/unistr/ucs4-utf8.c: New file.
50048
50049         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
50050         (Depends-on): Add unitypes.
50051         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
50052         (u16_uctomb_aux): Move out to separate file.
50053         (u16_uctomb): Use ucs4_t, uint16_t types.
50054         * lib/unistr/ucs4-utf16.c: New file.
50055
50056 2006-12-25  Bruno Haible  <bruno@clisp.org>
50057
50058         * modules/unitypes: New file.
50059         * lib/unitypes.h: New file.
50060         * MODULES.html.sh (func_all_modules): New section "Unicode string
50061         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
50062         this section. Add unitypes.
50063
50064 2007-01-08  Bruno Haible  <bruno@clisp.org>
50065
50066         Avoid variable names that conflict with those from libtool.
50067         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
50068         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
50069         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
50070         library_names_spec to acl_library_names_spec, hardcode_* to
50071         acl_hardcode_*.
50072         Reported by Ralf Wildenhues.
50073
50074 2007-01-08  Bruno Haible  <bruno@clisp.org>
50075
50076         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
50077         definition.
50078         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
50079         definition.
50080         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
50081         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
50082         definition.
50083         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
50084         definition.
50085         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
50086         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
50087         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
50088         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
50089         definition.
50090         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
50091         definition.
50092         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
50093         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
50094         GC_USE_<algorithm>.
50095         * lib/gc-libgcrypt.c: Likewise.
50096         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
50097         * modules/gc-arctwo (configure.ac): Likewise.
50098         * modules/gc-des (configure.ac): Likewise.
50099         * modules/gc-hmac-md5 (configure.ac): Likewise.
50100         * modules/gc-hmac-sha1 (configure.ac): Likewise.
50101         * modules/gc-md2 (configure.ac): Likewise.
50102         * modules/gc-md4 (configure.ac): Likewise.
50103         * modules/gc-md5 (configure.ac): Likewise.
50104         * modules/gc-random (configure.ac): Likewise.
50105         * modules/gc-rijndael (configure.ac): Likewise.
50106         * modules/gc-sha1 (configure.ac): Likewise.
50107
50108 2007-01-08  Bruno Haible  <bruno@clisp.org>
50109
50110         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
50111         macro definition.
50112         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
50113         definition.
50114         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
50115         definition.
50116         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
50117         * modules/fcntl-safer (configure.ac): Likewise.
50118         * modules/fopen-safer (configure.ac): Likewise.
50119         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
50120         GNULIB_FWRITEERROR macro definition.
50121
50122 2007-01-08  Bruno Haible  <bruno@clisp.org>
50123
50124         * m4/gnulib-common.m4: New file.
50125         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
50126         (func_get_filelist): Add m4/gnulib-common.m4.
50127
50128 2007-01-08  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
50131         command.
50132
50133 2007-01-08  Jim Meyering  <jim@meyering.net>
50134
50135         Use a more robust test for a "can't happen" condition.
50136         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
50137         narrowed the st_size value.  Presuming the "can't happen" condition
50138         is true, that narrowing could conceivably convert an invalid st_size
50139         value into a valid one.  Instead, use a change based on Matthew
50140         Woehlke's original patch.
50141
50142         Slight readability improvement: use an assert-like macro
50143         in place of literal "abort ()" uses.
50144         * lib/fts.c (fts_assert): Define.
50145         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
50146         Use this macro instead of a bare 'abort'.
50147
50148 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
50149
50150         Don't worry about using IRIX 5.3's wctype.h broken definitions;
50151         simply work around them.
50152         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
50153         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
50154         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
50155         declaring.
50156         Don't bother to define as macros, since the standard doesn't require it.
50157         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
50158         longer worry about IRIX 5.3.
50159         (HAVE_WCTYPE_CTMP_BUG): Remove.
50160
50161 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
50162
50163         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
50164         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
50165         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50166         Problems reported by Georg Schwarz for IRIX 5.3.
50167
50168         * gnulib-tool (autoconf_minversion): Take the maximum version number
50169         found, not the minimum.  Problem reported by James Youngman.
50170
50171 2007-01-03  Karl Berry  <karl@gnu.org>
50172
50173         * doc/error.texi: new file, explaining interaction with progname.
50174         * doc/gnulib.texi: include it.  Update copyright.
50175
50176 2007-01-03  Simon Josefsson  <simon@josefsson.org>
50177
50178         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
50179         AC_CANONICAL_HOST, to improve autobuild outputs.
50180
50181 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
50182             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50183
50184         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
50185         sockets, server sockets, and other file descriptors.  Count errors
50186         to compute the return value.  Reorder the code a bit to be easier
50187         to follow.  Don't set event bits that were not requested (except
50188         POLLERR and POLLHUP).
50189
50190 2007-01-01  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
50193
50194 2007-01-03  Jim Meyering  <jim@meyering.net>
50195
50196         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
50197
50198 2007-01-02  Bruno Haible  <bruno@clisp.org>
50199
50200         * modules/settime (Include): Require timespec.h.
50201         * modules/nanosleep (Include): Likewise.
50202
50203 2007-01-01  Bruno Haible  <bruno@clisp.org>
50204
50205         * gnulib-tool (func_emit_copyright_notice): Bump year.
50206         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
50207
50208 2007-01-01  Bruno Haible  <bruno@clisp.org>
50209
50210         Improve support for OpenBSD.
50211         * build-aux/config.rpath (libname_spec): Export.
50212         (library_names_spec): New variable. Export.
50213         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
50214         library_names_spec from the config.rpath output. Locate shared library
50215         through the name pattern in library_names_spec.
50216
50217 2007-01-01  Eric Blake  <ebb9@byu.net>
50218
50219         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
50220
50221 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
50222
50223         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
50224         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
50225         assume the C locale, and avoid an "eval" that could cause trouble.
50226         Problem with SORT reported by Bob Proulx.
50227
50228         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
50229         Define.  Trivial patch from Henning Nielsen Lund, originally
50230         sent to bug-grep@gnu.org today.
50231
50232 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50233
50234         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
50235         struct stat.  Problem reported by Henning Nielsen Lund.
50236         * lib/acl.c: Include acl.h first, to check interface.  Don't
50237         bother to include sys/types.h and sys/stat.h again.
50238
50239 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
50240
50241         Import the following change from libc; problem reported by
50242         Sven Verdoolaege.
50243
50244         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
50245
50246         [BZ #1373]
50247         * lib/argp.h: Remove __NTH for __argp_usage inline function.
50248
50249 2006-12-28  Jim Meyering  <jim@meyering.net>
50250
50251         * build-aux/announce-gen: Do not assume that the package
50252         builds any of tar.gz, tar.bz2, and .xdelta files.
50253         Suggestion from Simon Josefsson.
50254
50255 2006-12-28  Simon Josefsson  <simon@josefsson.org>
50256
50257         * modules/announce-gen: New file.
50258
50259 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
50260
50261         * lib/mbchar.h: Just include <wctype.h>; the wctype module
50262         handles its gotchas now.
50263         * lib/mbswidth.c: Likewise.
50264         * lib/wcwidth.h: Likewise.
50265         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
50266         and iswcntrl; the wctype module does this stuff now.
50267         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50269         * modules/mbchar (Depends-on): Add wctype.
50270         * modules/mbswidth (Depends-on): Likewise.
50271         * modules/wcwidth (Depends-on): Likewise.
50272
50273 2006-12-27  Eric Blake  <ebb9@byu.net>
50274
50275         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
50276         module uses more than what <wctype.h> is required to provide.
50277
50278 2006-12-26  Eric Blake  <ebb9@byu.net>
50279
50280         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50281
50282 2006-12-26  Eric Blake  <ebb9@byu.net>
50283
50284         * modules/absolute-header: New module.
50285         * modules/fcntl (Depends-on): Depend on it.
50286         * modules/inttypes (Depends-on): Likewise.
50287         * modules/stdint (Depends-on): Likewise.
50288         * modules/sys_stat (Depends-on): Likewise.
50289         * modules/wctype (Depends-on): Likewise.
50290         * MODULES.html.sh (Support for building libraries and
50291         executables): Document it.
50292
50293 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         * gnulib-tool (SED): Remove, undoing previous change.
50296         The problem was that it broke coreutils on Solaris, because
50297         "sed --posix" leaked into a makefile.
50298         (sed): New alias, if 'alias' and GNU sed.
50299
50300 2006-12-24  Jim Meyering  <jim@meyering.net>
50301
50302         Work around an fchownat bug in glibc-2.4:
50303         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50304         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50305         in spite of the -P option.
50306         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50307         New macros.
50308         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50309         * modules/openat (Files): Add lib/fchownat.c.
50310         * lib/openat.c (fchownat): Don't define here.  Move to...
50311         * lib/fchownat.c: ...this new file.
50312
50313 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50314
50315         Fix bug reported by Bruno Haible in
50316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50317         where quotearg.c didn't compile on Mac OS X 10.2 because it
50318         lacks <wchar.h> and wint_t.
50319         * lib/wctype_.h (__wctype_wint_t): New type.
50320         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50321         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50322         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50323         Arg is now of type __wctype_wint_t, not wint_t.
50324         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50325         substitute HAVE_WINT_T.
50326         * modules/wctype (Files): Add m4/wint_t.m4.
50327         (wctype.h): Substitute HAVE_WINT_T.
50328
50329 2006-12-23  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50332
50333 2006-12-23  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50336         S_ISLNK.
50337         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50338         mingw.
50339
50340 2006-12-22  Bruno Haible  <bruno@clisp.org>
50341
50342         * lib/copy-file.c: Include acl.h.
50343         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50344         Close the file descriptors only after being done with copy_acl.
50345         * modules/copy-file (Depends-on): Add acl.
50346
50347 2006-12-22  Bruno Haible  <bruno@clisp.org>
50348
50349         * gnulib-tool (SED): New variable.
50350         Use $SED instead of sed everywhere.
50351
50352 2006-12-22  Bruno Haible  <bruno@clisp.org>
50353
50354         * modules/no-c++: New file.
50355         * m4/no-c++.m4: New file.
50356         * MODULES.html.sh (Support for building libraries and executables):
50357         Add no-c++.
50358
50359 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50360
50361         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50362         Include <limits.h>, and use its INT_MAX to rewrite the
50363         j loop so that it does not overflow 'int'.  Problem reported by
50364         Ralf Wildenhues in
50365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50366         Play it safe by shifting left by 1 rather than multiplying by 2,
50367         as GCC is less likely to optimize this away when the value
50368         is signed (when it assumes overflow leads to undefined behavior).
50369         Also, don't assume time_t uses two's complement.
50370
50371 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50372
50373         * MODULES.html.sh: New module wctype.
50374         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50375         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50376         <wctype.h>, since the new wctype module should fix this.
50377         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50378         the wctype module should arrange for it.
50379         * lib/regex_internal.h: Likewise.
50380         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50381         since the wctype module should handle this now.
50382         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50383         * modules/fnmatch (Depends-on): Add wctype.
50384         * modules/quotearg (Depends-on): Likewise.
50385         * modules/regex (Depends-on): Likewise.
50386
50387 2006-12-19  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50390         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50391
50392 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50393
50394         * modules/savewd (Depends-on): Fix dependency on fcntl.
50395
50396 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50397
50398         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50399         conforms to C99, rather than relying on the user's environment
50400         setting of STDINT_H.
50401
50402 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50403         and Eric Blake  <ebb9@byu.net>
50404
50405         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50406         This is more consistent with the other defines here.
50407         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50408         Port to z/OS.  Problem reported by Paul Gilmartin.
50409         Change local vars to use gl_ prefix rather than ac_.
50410         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50411         with other defines.
50412         * modules/double-slash-root: New module.
50413         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50414         (Depends-on): Add double-slash-root.
50415         * MODULES.html.sh (File system functions): Mention new module.
50416
50417 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50418
50419         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50420         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50421         This is for the benefit of gzip, which doesn't do i18n.
50422
50423 2006-12-12  Jim Meyering  <jim@meyering.net>
50424
50425         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50426         Reported by Andreas Schwab <schwab@suse.de>.
50427
50428 2006-12-12  Bruno Haible  <bruno@clisp.org>
50429
50430         Merge these changes.
50431         2006-09-05  Bruno Haible  <bruno@clisp.org>
50432         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50433         iconv_alloc succeeded.
50434         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50435         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50436         test for " && dest " at the end - dest is always != NULL there. Call
50437         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50438         with 2xNULL arguments, also to flush the state storage. Handle the
50439         IRIX iconv behaviour. Realloc the final result, to throw away unused
50440         memory.
50441
50442 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50443
50444         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50445         and fchmodat unconditionally, since glibc 2.4 has them.
50446         Problem reported by Arkadiusz Miskiewicz.
50447
50448 2006-12-10  Bruno Haible  <bruno@clisp.org>
50449
50450         * gnulib-tool (func_import): Show the include files only for those
50451         modules that are copied and specified.
50452         Reported by Karl Berry.
50453
50454 2006-12-08  Jim Meyering  <jim@meyering.net>
50455
50456         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50457         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50458
50459         * build-aux/announce-gen: Add two new options, both optional:
50460         --bootstrap-tools=TOOL_LIST
50461               a comma-separated list of tools, e.g.,
50462               autoconf,automake,bison,gnulib
50463         --gnulib-snapshot-date=DATE
50464               if gnulib is in the bootstrap tool list,
50465               then report this as the snapshot date.
50466               If not specified, use the current date/time.
50467               If you specify a date here, be sure it's UTC.
50468
50469 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50470
50471         * tests/test-argp-2.sh: Fix test to match actual output.
50472         (func_compare): Fix sed script to be portable.
50473
50474 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50475
50476         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50477         workaround for this case.  It is not autoconfigured now; offhand
50478         it's hard to see how to autoconfigure it.
50479
50480 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50481
50482         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50483         a directory that is about to be chowned.  Such a directory's
50484         initial file permissions should permit the owner only and this
50485         should not be changed until after the chown, since the group and
50486         other bits would be incorrect if they granted permission before
50487         the chown.
50488
50489         Fix porting problem for iswctype reported by Georg Schwarz in:
50490         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50491         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50492         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50493         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50494         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50495
50496 2006-12-03  Jim Meyering  <jim@meyering.net>
50497
50498         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50499         p->fts_statp may not yet be defined.
50500         (fts_read): Instead, set it in the caller, once p->fts_statp is
50501         sure to be defined, and corresponds to a top-level directory.
50502         This bug made du -x fail.  Here's the coreutils test case:
50503         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50504         Reported by Mike Frysinger.
50505
50506 2006-12-01  Jim Meyering  <jim@meyering.net>
50507
50508         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50509         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50510         Reported by Simon Josefsson.
50511
50512 2006-11-30  Jim Meyering  <jim@meyering.net>
50513
50514         * m4/warning.m4: Use the all-permissive copyright notice
50515         recommended by RMS (rather than LGPL).
50516         * m4/vararrays.m4: Likewise.
50517         * m4/flexmember.m4: Likewise.
50518
50519 2006-11-29  Bruno Haible  <bruno@clisp.org>
50520
50521         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50522         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50523         using +=.
50524         Reported by Simon Josefsson <simon@josefsson.org>.
50525
50526 2006-11-28  James Youngman <jay@gnu.org>
50527
50528         * README: Advise users that they might find the bug-gnulib@gnu.org
50529         and autotools-announce@gnu.org mailing lists useful.
50530
50531 2006-11-28  Bruno Haible  <bruno@clisp.org>
50532
50533         * m4/ptrdiff_max.m4: Remove file.
50534
50535 2006-11-21  Bruno Haible  <bruno@clisp.org>
50536
50537         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50538         _AC_COMPUTE_INT.
50539         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50540         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50541         _AC_COMPUTE_INT.
50542         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50543         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
50544         _AC_COMPUTE_INT.
50545         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50546
50547 2006-11-28  Jim Meyering  <jim@meyering.net>
50548
50549         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50550         warning from "gcc -Wshadow" about shadowing the builtin.
50551
50552 2006-11-27  Bruno Haible  <bruno@clisp.org>
50553
50554         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50555         _AC_COMPUTE_INT.
50556         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50557
50558 2006-11-27  Bruno Haible  <bruno@clisp.org>
50559             Paul Eggert  <eggert@cs.ucla.edu>
50560
50561         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50562
50563 2006-11-26  Bruno Haible  <bruno@clisp.org>
50564
50565         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50566         noinst_LTLIBRARIES.
50567
50568 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50569             Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50572         if compiling with "gcc -ansi".
50573
50574 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         Fix some incompatibilities with gcc -ansi -pedantic.
50577         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50578         if compiling pedantically with GCC, unless it's C99 or later.
50579         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50580         it mishandles gcc -ansi -pedantic as well.
50581         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50582         if gcc -pedantic.
50583         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50584         initializers for struct if -pedantic, unless it's C99 or later.
50585
50586 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50587
50588         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50589         Don't close an fd more than once. Identical atimes indicate
50590         success, not failure.
50591
50592 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50593
50594         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50595
50596 2006-11-23  Jim Meyering  <jim@meyering.net>
50597
50598         * build-aux/announce-gen: New file.  From coreutils.
50599
50600 2006-11-22  Jim Meyering  <jim@meyering.net>
50601
50602         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50603         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50604         (fts_read): Use a temporary to narrow the overused st_size member
50605         before using it in a switch statement.  Reported by Matthew Woehlke.
50606
50607         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50608         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50609
50610 2006-11-20  Bruno Haible  <bruno@clisp.org>
50611
50612         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50613         changequote instead of pairs of brackets.
50614         Reported by Andreas Schwab <schwab@suse.de>.
50615
50616 2006-11-21  Jim Meyering  <jim@meyering.net>
50617
50618         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50619         so as to remain compatible with older compilers.
50620         Patch from Michael Deutschmann.
50621
50622 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         * MODULES.html.sh (File system functions): Add openat.
50625
50626         * lib/openat.h (rpl_fstatat): New macro, if
50627         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50628         (fstatat): Define to rpl_fstatat under the same conditions,
50629         unless COMPILING_FSTATAT.
50630         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50631         seems to have the bug.
50632         * lib/fstatat.c: New file.
50633         * modules/openat (Files): Add it.
50634
50635 2006-11-20  Bruno Haible  <bruno@clisp.org>
50636
50637         * Makefile: New file.
50638
50639 2006-11-20  Jim Meyering  <jim@meyering.net>
50640
50641         The beginnings of syntax-related checks for gnulib.
50642         * lib/Makefile: New file.
50643         * lib/t-idcache: New script.  Ensure that the two halves of
50644         idcache.c stay in sync.
50645
50646         * lib/idcache.c: Adjust comments in user- and group- portions to
50647         be more accurate, and to be consistent with one another.
50648
50649 2006-11-20  Jim Meyering  <jim@meyering.net>
50650
50651         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50652         continue using the flexible array member (thus, this module performs
50653         half as many malloc calls), with the addition that...
50654         (getgroup, getuser): Consistently record a non-match via an empty
50655         "name" string, and map an empty string match to a NULL return value.
50656         * modules/idcache (Depends-on): Re-add flexmember.
50657
50658         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50659         (getuidbyname, getgroup, getgidbyname): Likewise.
50660
50661         Use cleaner syntax: NULL rather than 0.
50662         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50663
50664 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50665
50666         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50667         It mishandled the case where the group was missing.
50668         Problem reported by Greg Schafer.
50669         * modules/idcache: Likewise.
50670
50671 2006-11-18  Jim Meyering  <jim@meyering.net>
50672
50673         * check-module (%exempt_header): Add exception for some
50674         conditionally-included headers.
50675
50676         * modules/i-ring (Depends-on): Add verify.
50677         (License): Change to LGPL.
50678
50679 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50680
50681         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50682         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50683         and inttostr.h.  Use snprintf rather than uinttostr, so that
50684         LGPLed code doesn't depend on GPLed.
50685
50686 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50687
50688         * modules/inline (License): Change from GPL to LGPL.
50689
50690 2006-11-17  Jim Meyering  <jim@meyering.net>
50691
50692         * modules/d-type (License): Switch to LGPL.
50693
50694 2006-11-15  Bruno Haible  <bruno@clisp.org>
50695
50696         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50697
50698 2006-11-15  Eric Blake  <ebb9@byu.net>
50699
50700         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50701         the module dependency.
50702
50703 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50704             Bruno Haible  <bruno@clisp.org>
50705
50706         * gnulib-tool (func_create_testdir): Add license consistency check.
50707
50708 2006-11-15  Eric Blake  <ebb9@byu.net>
50709
50710         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50711         random "(cached)" in configure output.
50712
50713 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50714
50715         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50716         test for conforming inttypes.h is both announced and cached.
50717
50718         * MODULES.html.sh (seen_modules, seen_files): New variables.
50719         (func_module): Rewrite to use a few less gnulib-tool and sed
50720         invocations.  Avoid a couple of quadratic algorithms for ...
50721         (missed_modules, missed_files): ... these, with ...
50722         (func_append, func_tmpdir): ... these new functions, from
50723         gnulib-tool.  Analogously, install traps for cleanup.
50724
50725         * tests/test-gc.c (main): Remove unused variables.
50726         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50727
50728 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         * modules/inttostr (License): Change to LGPL.
50731
50732 2006-11-14  Eric Blake  <ebb9@byu.net>
50733
50734         * modules/tempname (License): Change to LGPL.
50735
50736 2006-11-14  Eric Blake  <ebb9@byu.net>
50737
50738         * doc/functions.texi (Function Portability): *printf functions on
50739         Cygwin now understand all POSIX size specifiers.
50740
50741 2006-11-14  Bruno Haible  <bruno@clisp.org>
50742
50743         * modules/c-ctype (License): Change to LGPL.
50744
50745 2006-11-12  Bruno Haible  <bruno@clisp.org>
50746
50747         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50748         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50749         for GNOME libraries, for which the include files are installed in
50750         subdirectories of $prefix/include.
50751
50752 2006-11-12  Bruno Haible  <bruno@clisp.org>
50753
50754         * m4/lib-link.m4: Require at least autoconf-2.54.
50755         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50756         name to underscores for the --with option.
50757
50758 2006-11-13  Bruno Haible  <bruno@clisp.org>
50759
50760         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50761         the tests directory.
50762         Reported by Ralf Wildenhues.
50763
50764 2006-11-13  Bruno Haible  <bruno@clisp.org>
50765
50766         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50767         (func_emit_initmacro_end): Undo the override here.
50768         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50769         Works around the famous automake error in coreutils.
50770
50771 2006-11-13  Eric Blake  <ebb9@byu.net>
50772
50773         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50774         element, not its node.
50775
50776 2006-11-12  Bruno Haible  <bruno@clisp.org>
50777
50778         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50779         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50780
50781 2006-11-12  Bruno Haible  <bruno@clisp.org>
50782
50783         * gnulib-tool: New option --local-symlink.
50784         (func_usage): Document it.
50785         (lsymbolic): New variable.
50786         (func_import, func_create_testdir): If --symlink was not specified,
50787         test whether --local-symlink was specified and the file comes from
50788         the local_gnulib_dir.
50789
50790 2006-11-12  Bruno Haible  <bruno@clisp.org>
50791
50792         * gnulib-tool (func_ln): New function.
50793         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50794
50795 2006-11-12  Bruno Haible  <bruno@clisp.org>
50796
50797         Finish support for source files in subdirectories.
50798         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50799         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50800         AUTOMAKE_OPTIONS.
50801         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50802
50803 2006-11-12  Bruno Haible  <bruno@clisp.org>
50804
50805         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50806         EXTRA_lib_SOURCES augmentation.
50807         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50808
50809 2006-11-12  Jim Meyering  <jim@meyering.net>
50810
50811         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50812         file descriptors.  This also averts a failure on systems with
50813         native openat support when a traversed directory lacks "x" access.
50814         * lib/fts_.h: Include "i-ring.h"
50815         (struct FTS) [fts_fd_ring]: New member.
50816         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50817         (FCHDIR): Add parentheses.
50818         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50819         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50820         When descending, rather than simply closing the previous
50821         fts_cwd_fd value, push that file descriptor onto the ring.
50822         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50823         (fts_open): Initialize the new fd_ring member.
50824         (fts_close): Clear the ring.
50825         (fts_safe_changedir): When possible, use our new fd_ring to skip
50826         the diropen and fstat and dev/ino comparison that would normally
50827         accompany a virtual `chdir ("..")'.
50828
50829         * modules/fts (Depends-on): Add i-ring.
50830         * modules/i-ring: New module.
50831         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50832         * m4/i-ring.m4: New file.
50833
50834 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50835
50836         * gnulib-tool (func_create_testdir): Fix replacement of
50837         `build-aux' in configure.ac.  Run autotools in gltests
50838         subdirectory.
50839         (func_create_testdir, func_create_megatestdir, test): There is
50840         no need for '--force' in most autotool invocations in a new
50841         tree.  Actually fail the whole test if any of the tools, or the
50842         configure or make stages fail.
50843
50844         Sync from Automake.
50845         * build-aux/gnupload: Revert last change.  Add pointer to upload
50846         instructions of the GNU Maintenance Instructions.
50847         Suggestion by Karl Berry.
50848
50849 2006-11-10  Jim Meyering  <jim@meyering.net>
50850
50851         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50852
50853 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50854
50855         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50856         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50857         (bind_textdomain_codeset) [! ENABLE_NLS]:
50858         Evaluate all the arguments.  That way, callers get compatible behavior
50859         if the arguments have side effects.  Also, it avoids some GCC
50860         diagnostics in some cases; Joel E. Denny reported problems when Bison
50861         was configured with --enable-gcc-warnigs.
50862
50863 2006-11-10  Jim Meyering  <jim@meyering.net>
50864
50865         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50866         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50867         account.
50868
50869 2006-11-10  Jim Meyering  <jim@meyering.net>
50870
50871         * modules/inline: New file/module.
50872         * modules/xalloc (Files): Remove m4/inline.m4.
50873         (Depends-on): Add inline, instead.
50874         * modules/oset: Likewise.
50875         * modules/list: Likewise.
50876
50877 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50878
50879         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50880         Problem reported by Matthew Woehlke.
50881
50882 2006-11-09  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/tempname.c (gen_tempname): Remove variant that invokes
50885         __gen_tempname.
50886         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50887         __gen_tempname.
50888
50889 2006-11-08  Bruno Haible  <bruno@clisp.org>
50890
50891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50892         to 'yes' instead of 'cross-compiling'.
50893
50894 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50895
50896         * lib/quotearg.h (quotearg_free): New decl.
50897         * lib/quotearg.c (quotearg_free): New function.
50898         (slot0, nslots, slotvec0, slotvec):
50899         Now file-scope so that quotearg_free can get at them.
50900
50901 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50902
50903         Sync from Automake.
50904         * build-aux/gnupload: Add missing 'gnu' to example URL.
50905         Report by Karl Berry.
50906
50907 2006-11-08  Bruno Haible  <bruno@clisp.org>
50908
50909         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50910         Suggested by Paul Eggert.
50911
50912 2006-11-08  Jim Meyering  <jim@meyering.net>
50913
50914         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50915         It's already included if !_LIBC.
50916         (fts_safe_changedir): Add a comment.
50917
50918 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50921         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50922         Matthew Woehlke.
50923
50924         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50925         definitions up, to avoid colliding with change below.
50926         (static_inline) [HAVE_INLINE]: New macro.
50927         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50928         Provide extern decls when !HAVE_INLINE.  Do not define unless
50929         static_inline is defined, either by us or by xmalloc.c.  Use
50930         static_inline rather than static inline.
50931         (XCALLOC): Optimize sizeof(T) = 1 case.
50932         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50933
50934 2006-11-07  Bruno Haible  <bruno@clisp.org>
50935
50936         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50937         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50938         AC_C_INLINE.
50939         * modules/xalloc (Files): Add m4/inline.m4.
50940
50941 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50942
50943         * README: Fix typo.
50944         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50945         (Miscellanous Notes): ...from this.
50946
50947 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50948
50949         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50950         Mention that offsetof should be used instead of sizeof.
50951         From Bruno Haible.
50952
50953 2006-11-07  Bruno Haible  <bruno@clisp.org>
50954
50955         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50956
50957 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50958
50959         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50960         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50961         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50962         (gl_tree_add_before, gl_tree_add_after):
50963         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50964         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50965         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50966         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50967         (gl_linked_add_after, gl_linked_add_at): Likewise.
50968         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50969         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50970         (gl_tree_add_before, gl_tree_add_after): Likewise.
50971         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50972         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50973         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50974
50975 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50976
50977         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50978
50979 2006-11-06  Bruno Haible  <bruno@clisp.org>
50980
50981         * m4/inline.m4: New file.
50982         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50983         * modules/list (Files): Add m4/inline.m4.
50984         * modules/oset (Files): Likewise.
50985
50986 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50987
50988         * lib/idcache.c: Include <stddef.h>, for offsetof.
50989         (struct userid.name): Change from char * to a flexible array member.
50990         All uses changed.
50991         * modules/idcache (Depends-on): Add flexmember.
50992
50993         * MODULES.html.sh (Core language properties): New module flexmember.
50994         * modules/flexmember, m4/flexmember.m4: New files.
50995
50996         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50997         inline functions that are identical with the old xnmalloc_inline,
50998         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50999         that we can avoid some unnecessary integer multiplications and
51000         divisions in the common case where the element size is known at
51001         compile time.
51002         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
51003         needed.
51004         (xnboundedmalloc): Remove.
51005         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
51006         arguments, for consistency with rest of this header.
51007         (xcharalloc): Rewrite using XNMALLOC.
51008         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
51009         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
51010         versions have been moved to lib/xalloc.h and renamed to be the
51011         non-*_inline versions.
51012         (xmalloc, xrealloc): Implement without reference to the xnmalloc
51013         and xnrealloc functions, since those functions are now inline and
51014         now call us.
51015         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
51016         renaming described above.
51017         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
51018         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
51019         captures the dependency in AC_C_INLINE.
51020
51021         New module canonicalize-lgpl, proposed by Charles Wilson in
51022         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
51023         with a few small changes afterwards.
51024         * MODULES.html.sh (File system functions): New module
51025         canonicalize-lgpl.
51026         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
51027         and canonicalize_file_name.
51028         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
51029         * modules/canonicalize-lgpl: New files.
51030
51031 2006-11-05  Bruno Haible  <bruno@clisp.org>
51032
51033         * gnulib-tool (func_import, func_create_testdir): Create directories
51034         also for files in subdirectories of lib/.
51035
51036 2006-11-05  Bruno Haible  <bruno@clisp.org>
51037
51038         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
51039         ANSI C compliant.
51040
51041 2006-11-03  Bruno Haible  <bruno@clisp.org>
51042
51043         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
51044         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
51045         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
51046         (xnboundedmalloc): New inline function.
51047         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
51048         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
51049         xmalloc.
51050         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
51051         xmalloc.
51052         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
51053         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
51054         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
51055         xmalloc.
51056         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51057         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
51058         xmalloc.
51059         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
51060         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51061         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
51062         xmalloc.
51063         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
51064         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
51065         gl_tree_add_after): Use XMALLOC instead of xmalloc.
51066         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
51067         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
51068         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
51069         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
51070
51071 2006-11-03  Bruno Haible  <bruno@clisp.org>
51072
51073         * lib/c-ctype.h [C++]: Define functions without name mangling.
51074         * lib/fwriteerror.h [C++]: Likewise.
51075         * lib/gcd.h [C++]: Likewise.
51076         * lib/linebreak.h [C++]: Likewise.
51077
51078 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51079
51080         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
51081         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
51082         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
51083         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51084         Check for functions and headers just once.
51085         Check for declaration of canonicalize_file_name.
51086         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
51087
51088 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51089
51090         * gnulib-tool (func_import): Fix typo in actioncmd.
51091
51092 2006-11-02  Bruno Haible  <bruno@clisp.org>
51093
51094         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
51095         newline sequence in the Makefile.am snippet as a space, like "make"
51096         does.
51097         Reported by Roger Persson <perrog@gmail.com>.
51098
51099 2006-11-01  Bruno Haible  <bruno@clisp.org>
51100
51101         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
51102         already declared in <string.h>.
51103         * lib/strcase.h (strncasecmp): Don't declare it if yes.
51104
51105 2006-11-01  Bruno Haible  <bruno@clisp.org>
51106
51107         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
51108         * lib/strcase.h: Include <string.h>.
51109         (strcasecmp): Define to rpl_strcasecmp here.
51110
51111 2006-11-01  Bruno Haible  <bruno@clisp.org>
51112
51113         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
51114
51115 2006-11-01  Eric Blake  <ebb9@byu.net>
51116
51117         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
51118
51119         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
51120
51121 2006-10-29  Bruno Haible  <bruno@clisp.org>
51122
51123         Make it compile in C++ mode.
51124         * lib/full-write.c (full_rw): Add a cast.
51125
51126 2006-11-01  Bruno Haible  <bruno@clisp.org>
51127
51128         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
51129         be POSIX compliant.
51130         Reported by Roger Persson <perrog@gmail.com>.
51131
51132 2006-11-01  Eric Blake  <ebb9@byu.net>
51133
51134         * lib/getopt_.h: Fix comments.
51135
51136 2006-10-31  Eric Blake  <ebb9@byu.net>
51137
51138         * modules/tmpdir (Depends-on): Add sys_stat.
51139         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
51140         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
51141         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
51142         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
51143         tempname.
51144
51145 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
51146
51147         Avoid some C++ diagnostics reported by Bruno Haible.
51148         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
51149         xmalloc.
51150         (quotearg_alloc): Use xcharalloc rather than xmalloc.
51151         (struct slotvec): Move to top level.
51152         (quotearg_n_options): Rewrite to avoid xmalloc.
51153         * lib/xalloc.h (xcharalloc): New function.
51154         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
51155         [defined __cplusplus]: Add function template that provides result
51156         type propagation.  This part of the change is from Bruno Haible.
51157
51158 2006-10-29  Bruno Haible  <bruno@clisp.org>
51159
51160         Make it compile in C++ mode.
51161         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
51162         * lib/strnlen1.c (strnlen1): Cast memchr result.
51163         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
51164         * lib/clean-temp.c (string_equals, string_hash): Add casts.
51165         (create_temp_dir): Rename local variable 'template'.
51166         (compile_csharp_using_sscli): Add cast.
51167         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
51168         * lib/findprog.c (find_in_path): Likewise.
51169         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
51170         * lib/wait-process.c (register_slave_subprocess): Likewise.
51171
51172 2006-10-22  Bruno Haible  <bruno@clisp.org>
51173
51174         * modules/tsearch: New file.
51175         * lib/tsearch.h: New file.
51176         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
51177         * m4/tsearch.m4: New file.
51178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
51179
51180 2006-10-29  Eric Blake  <ebb9@byu.net>
51181
51182         * lib/arcfour.c: Assume config.h.
51183         * lib/arctwo.c: Likewise.
51184         * lib/base64.c: Likewise.
51185         * lib/check-version.c: Likewise.
51186         * lib/crc.c: Likewise.
51187         * lib/des.c: Likewise.
51188         * lib/gc-gnulib.c: Likewise.
51189         * lib/gc-libgcrypt.c: Likewise.
51190         * lib/gc-pbkdf2-sha1.c: Likewise.
51191         * lib/getaddrinfo.c: Likewise.
51192         * lib/getdelim.c: Likewise.
51193         * lib/getline.c: Likewise.
51194         * lib/hmac-md5.c: Likewise.
51195         * lib/hmac-sha1.c: Likewise.
51196         * lib/iconvme.c: Likewise.
51197         * lib/md2.c: Likewise.
51198         * lib/md4.c: Likewise.
51199         * lib/memxor.c: Likewise.
51200         * lib/read-file.c: Likewise.
51201         * lib/readline.c: Likewise.
51202         * lib/rijndael-alg-fst.c: Likewise.
51203         * lib/rijndael-api-fst.c: Likewise.
51204         * lib/xgetdomainname.c: Likewise.
51205
51206 2006-10-28  Eric Blake  <ebb9@byu.net>
51207
51208         * lib/xstrndup.c: Assume config.h.
51209
51210 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51211
51212         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
51213         stat-macros.h is now for our own macros, whereas stat_h is for
51214         macros in the <sys/stat.h> name space.
51215         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
51216         (STAT_MACROS_H): Remove.
51217         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
51218         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
51219         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
51220         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
51221         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
51222         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
51223         Move these macros to ...
51224         * lib/stat_.h: here.  Don't include stat-macros.h.
51225         * lib/canonicalize.c: Don't include stat-macros.h.
51226         * lib/chown.c: Likewise.
51227         * lib/euidaccess.c: Likewise.
51228         * lib/file-type.c: Likewise.
51229         * lib/filemode.c: Likewise.
51230         * lib/glob.c: Likewise.
51231         * lib/isapipe.c: Likewise.
51232         * lib/lchown.c: Likewise.
51233         * lib/lstat.c: Likewise.
51234         * lib/mkdir-p.c: Likewise.
51235         * lib/rmdir.c: Likewise.
51236         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
51237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
51238         unless mkdir isn't declared, to speed up 'configure'.
51239         Always create sys/stat.h, since it's unlikely any real sys/stat.h
51240         would define all the S_* symbols.
51241         * modules/canonicalize (Depends-on):
51242         Depend on sys_stat, not stat-macros.
51243         * modules/chown: Likewise.
51244         * modules/euidaccess: Likewise.
51245         * modules/filemode: Likewise.
51246         * modules/file-type: Likewise.
51247         * modules/glob: Likewise.
51248         * modules/isapipe: Likewise.
51249         * modules/lchown: Likewise.
51250         * modules/lstat: Likewise.
51251         * modules/mkancesdirs: Likewise.
51252         * modules/rmdir: Likewise.
51253         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
51254         * modules/modechange: Likewise.
51255         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
51256         (configure.ac): Remove gl_STAT_MACROS.
51257         * modules/sys_stat (Depends-on): Remove stat-macros.
51258
51259 2006-10-27  Bruno Haible  <bruno@clisp.org>
51260
51261         * m4/signed.m4: Remove file.
51262         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
51263         invocation.
51264         * modules/vasnprintf (Files): Remove m4/signed.m4.
51265
51266 2006-10-27  Bruno Haible  <bruno@clisp.org>
51267
51268         Update to GNU gettext 0.16.
51269         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
51270         m4/inttypes-h.m4, m4/signed.m4.
51271         * m4/gettext.m4: Update to GNU gettext 0.16.
51272         * m4/intl.m4: New file, from GNU gettext.
51273         * m4/intldir.m4: New file, from GNU gettext.
51274         * config/srclist.txt: Update
51275
51276 2006-10-27  Eric Blake  <ebb9@byu.net>
51277
51278         * MODULES.html.sh: Document tempname.
51279         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
51280         dependencies.
51281         (Files): Move lib/tempname.c...
51282         * modules/tempname: ...to this new module.
51283         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51284         (gl_PREREQ_TEMPNAME): Move...
51285         * m4/tempname.m4: ...to this new file.
51286         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51287         * modules/sys_stat (Depends-on): Add stat-macros.
51288         * lib/stat_.h (includes): Pick up stat macros.
51289         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51290         if stat macros are broken.
51291         * lib/tempname.c (includes): No need to include "stat-macros.h".
51292         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51293         (direxists, __path_search) [!_LIBC]: Don't compile these in
51294         gnulib; the tmpdir module covers that.
51295         * lib/tempname.h: New file.
51296
51297 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51298
51299         * COPYING: Explain how gnulib-tool converts licence headers.
51300         Almost all wording by Eric Blake.
51301
51302 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         * lib/mbchar.h (is_basic_table): Make read-only.
51305         * lib/mbchar.c (is_basic_table): Likewise.
51306         Reported by John Darrington.
51307
51308 2006-10-25  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/progname.h (set_program_name): Undefine before defining.
51311
51312 2006-10-25  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51315         false for non-gcc C++ compilers.
51316         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51317
51318 2006-10-24  Bruno Haible  <bruno@clisp.org>
51319
51320         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51321         iconv implementations like Irix iconv.
51322
51323 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51324
51325         * modules/vararrays: New file.
51326         * m4/vararrays.m4: New file, taken from diffutils.
51327         * MODULES.html.sh: New module vararrays.
51328
51329 2006-10-24  Karl Berry  <karl@gnu.org>
51330
51331         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51332         Don't call GNU Unix.
51333
51334 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51335
51336         * users.txt: Add Libtool.
51337
51338         Sync from Libtool:
51339
51340         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51341
51342         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51343         to gnulib's policy of including config.h unconditionally.
51344
51345 2006-10-24  Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/wcwidth (Files): Add m4/wint_t.m4.
51348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51349         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51350
51351 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51352
51353         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51354         to pacify GCC with some -W flags enabled.  Problem reported by
51355         Bruno Haible.
51356
51357 2006-10-24  Jim Meyering  <jim@meyering.net>
51358
51359         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51360         Reported by Karl Berry.
51361
51362 2006-10-23  Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51365
51366 2006-10-24  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/gl_list.h: Use C comment style, not C++ comment style.
51369
51370 2006-10-23  Eric Blake  <ebb9@byu.net>
51371
51372         * lib/getaddrinfo.c (includes): Add missing include.
51373
51374 2006-10-23  Bruno Haible  <bruno@clisp.org>
51375             Paul Eggert  <eggert@cs.ucla.edu>
51376
51377         Ability to rename obstack_free.
51378         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51379         obstack_free.
51380         (obstack_free): Invoke the __obstack_free macro.
51381         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51382
51383 2006-10-23  Bruno Haible  <bruno@clisp.org>
51384             Paul Eggert  <eggert@cs.ucla.edu>
51385
51386         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51387         __argc, __argv from the declaration. (They are defined as macros on
51388         mingw.)
51389
51390 2006-10-22  Bruno Haible  <bruno@clisp.org>
51391
51392         * doc/gnulib-intro.texi: New file.
51393         * doc/gnulib.texi: Include it.
51394
51395 2006-10-21  Bruno Haible  <bruno@clisp.org>
51396
51397         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51398         "Introduction", "Miscellanous Notes", "Particular Modules".
51399
51400 2006-10-21  Bruno Haible  <bruno@clisp.org>
51401
51402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51403         Change mostlyclean-local rule to avoid sh syntax error from bash
51404         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51405
51406 2006-10-23  Jim Meyering  <jim@meyering.net>
51407
51408         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51409         in place of snprintf.
51410
51411         * modules/inttostr (Files): Add lib/uinttostr.c.
51412         * lib/uinttostr.c (inttostr): New file/function.
51413         * lib/inttostr.h (uinttostr): Declare.
51414         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51415         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51416         Add uinttostr.
51417         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51418
51419 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51420
51421         * lib/canonicalize.c (ELOOP): Define if not already defined.
51422         Problem reported by Bruno Haible in
51423         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51424
51425 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51426
51427         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51428         Problem reported by Perry Smith and Ville Laurikari.
51429
51430         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51431         uses.
51432
51433 2006-10-19  Bruno Haible  <bruno@clisp.org>
51434
51435         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51436         for mingw.
51437
51438 2006-10-19  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51441         Needed for mingw.
51442
51443 2006-10-19  Bruno Haible  <bruno@clisp.org>
51444
51445         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51446
51447 2006-10-19  Bruno Haible  <bruno@clisp.org>
51448
51449         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51450         it.
51451
51452 2006-10-19  Bruno Haible  <bruno@clisp.org>
51453
51454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51455         invocation.
51456
51457 2006-10-19  Bruno Haible  <bruno@clisp.org>
51458
51459         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51460         mountlist by default.
51461
51462 2006-10-16  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/c-strstr.c: Include c-strstr.h.
51465
51466 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51467
51468         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51469         in a slash.
51470
51471 2006-10-18  Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/lock.h [C++]: Wrap definitions in extern "C".
51474
51475 2006-10-18  Bruno Haible  <bruno@clisp.org>
51476
51477         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51478         gl_LIBOBJS list.
51479
51480 2006-10-18  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51483
51484 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51485
51486         * lib/xstrtol.h: Include gettext.h.
51487         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51488         Problem reported by Eric Blake.
51489         * modules/xstrtol (Depends-on): Add gettext-h.
51490
51491 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51492
51493         * lib/strftime.c (advance): New macro.
51494         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51495         incomplete type, so you can't add 0 to it.  Problem and patch
51496         reported by Eelco Dolstra for dietlibc.
51497
51498 2006-10-18  Jim Meyering  <jim@meyering.net>
51499
51500         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51501         type for a local, and rename it: s/up/user_proc/.
51502
51503 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51504
51505         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51506         READ_UTMP_USER_PROCESS.
51507         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51508
51509 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51510
51511         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51512         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51513
51514 2006-10-17  Eric Blake  <ebb9@byu.net>
51515
51516         * lib/sigprocmask.c (sigprocmask): Fix typo.
51517
51518         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51519
51520         * modules/clean-temp (Makefile.am): Don't add to make output...
51521         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51522         config.h.
51523
51524 2006-10-17  Bruno Haible  <bruno@clisp.org>
51525
51526         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51527         differently if DEFAULT_TEXT_DOMAIN is set.
51528
51529 2006-10-16  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/clean-temp.c: Include fwriteerror.h.
51532
51533 2006-10-16  Bruno Haible  <bruno@clisp.org>
51534
51535         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51536
51537 2006-10-16  Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51540         * lib/sigprocmask.h: Include <sys/types.h>.
51541         (sigset_t): Use the system's definition if present.
51542
51543 2006-10-17  Eric Blake  <ebb9@byu.net>
51544
51545         * lib/xvasprintf.c (includes): Assume config.h.
51546         * lib/xasprintf.c (includes): Likewise.
51547
51548 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51549
51550         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51551         at least as wide as intmax_t.
51552
51553 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51554
51555         (Imported from Automake.)
51556         * build-aux/gnupload: Update to version 1.1 of directive file.
51557
51558 2006-10-16  Eric Blake  <ebb9@byu.net>
51559
51560         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51561         match Automake 1.10a.
51562
51563 2006-10-14  Bruno Haible  <bruno@clisp.org>
51564
51565         * modules/sigprocmask: New file.
51566         * lib/sigprocmask.h: New file.
51567         * lib/sigprocmask.c: New file.
51568         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51569         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51570         request sigprocmask.o.
51571         (gl_PREREQ_SIGPROCMASK): New macro.
51572         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51573         (Depends-on): Add sigprocmask.
51574         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51575         gt_SIGNALBLOCKING. Test for 'raise' only once.
51576         * lib/fatal-signal.c: Include sigprocmask.h.
51577         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51578         unblock_fatal_signals): Define always.
51579         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51580         sigprocmask.
51581
51582 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51583
51584         Sync from Automake.
51585         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51586         which incorrectly sets the mode of an existing destination
51587         directory.  In some cases the unpatched install-sh could do the
51588         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51589         system.  We hope this is rare in practice, but it's clearly worth
51590         fixing.  Problem reported by Alex Unleashed in
51591         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51592         Also, don't bother to check for -m bugs unless we're using -m;
51593         suggested by Stepan Kasal.
51594
51595 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51596
51597         Sync from Automake.
51598         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51599         `-c' flag, so they appear at the same position as in %FASTDEP%
51600         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51601         which ignores unknown options only after the first non-option.
51602         Bug report against M4 by Nelson H. F. Beebe.
51603
51604 2006-10-13  Jim Meyering  <jim@meyering.net>
51605
51606         Fix a bug in yesterday's change.
51607         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51608         p->fts_statp->st_dev would be used uninitialized.
51609         Ensures that we always call fts_stat on the very first entry.
51610         Miklos Szeredi reported that find -xdev stopped working.
51611
51612 2006-10-12  Bruno Haible  <bruno@clisp.org>
51613
51614         * gnulib-tool (func_get_automake_snippet): Append an automatically
51615         computed EXTRA_DIST augmentation.
51616         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51617         * modules/alloca-opt (Makefile.am): Likewise.
51618         * modules/allocsa (Makefile.am): Likewise.
51619         * modules/arcfour (Makefile.am): Likewise.
51620         * modules/arctwo (Makefile.am): Likewise.
51621         * modules/argmatch (Makefile.am): Likewise.
51622         * modules/argz (Makefile.am): Likewise.
51623         * modules/atexit (Makefile.am): Likewise.
51624         * modules/backupfile (Makefile.am): Likewise.
51625         * modules/byteswap (Makefile.am): Likewise.
51626         * modules/c-strtod (Makefile.am): Likewise.
51627         * modules/c-strtold (Makefile.am): Likewise.
51628         * modules/calloc (Makefile.am): Likewise.
51629         * modules/canon-host (Makefile.am): Likewise.
51630         * modules/canonicalize (Makefile.am): Likewise.
51631         * modules/chdir-long (Makefile.am): Likewise.
51632         * modules/chdir-safer (Makefile.am): Likewise.
51633         * modules/check-version (Makefile.am): Likewise.
51634         * modules/chown (Makefile.am): Likewise.
51635         * modules/cloexec (Makefile.am): Likewise.
51636         * modules/close-stream (Makefile.am): Likewise.
51637         * modules/closeout (Makefile.am): Likewise.
51638         * modules/crc (Makefile.am): Likewise.
51639         * modules/csharpexec (Makefile.am): Likewise.
51640         * modules/cycle-check (Makefile.am): Likewise.
51641         * modules/des (Makefile.am): Likewise.
51642         * modules/dev-ino (Makefile.am): Likewise.
51643         * modules/dirfd (Makefile.am): Likewise.
51644         * modules/dirname (Makefile.am): Likewise.
51645         * modules/dup2 (Makefile.am): Likewise.
51646         * modules/eealloc (Makefile.am): Likewise.
51647         * modules/error (Makefile.am): Likewise.
51648         * modules/euidaccess (Makefile.am): Likewise.
51649         * modules/exclude (Makefile.am): Likewise.
51650         * modules/exitfail (Makefile.am): Likewise.
51651         * modules/fcntl-safer (Makefile.am): Likewise.
51652         * modules/fcntl (Makefile.am): Likewise.
51653         * modules/file-type (Makefile.am): Likewise.
51654         * modules/fileblocks (Makefile.am): Likewise.
51655         * modules/filemode (Makefile.am): Likewise.
51656         * modules/filenamecat (Makefile.am): Likewise.
51657         * modules/fnmatch (Makefile.am): Likewise.
51658         * modules/fopen-safer (Makefile.am): Likewise.
51659         * modules/fpending (Makefile.am): Likewise.
51660         * modules/fprintftime (Makefile.am): Likewise.
51661         * modules/free (Makefile.am): Likewise.
51662         * modules/fsusage (Makefile.am): Likewise.
51663         * modules/ftruncate (Makefile.am): Likewise.
51664         * modules/fts (Makefile.am): Likewise.
51665         * modules/gc-arcfour (Makefile.am): Likewise.
51666         * modules/gc-des (Makefile.am): Likewise.
51667         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51668         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51669         * modules/gc-md4 (Makefile.am): Likewise.
51670         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51671         * modules/gc-sha1 (Makefile.am): Likewise.
51672         * modules/gc (Makefile.am): Likewise.
51673         * modules/getaddrinfo (Makefile.am): Likewise.
51674         * modules/getcwd (Makefile.am): Likewise.
51675         * modules/getdelim (Makefile.am): Likewise.
51676         * modules/getdomainname (Makefile.am): Likewise.
51677         * modules/getgroups (Makefile.am): Likewise.
51678         * modules/gethostname (Makefile.am): Likewise.
51679         * modules/gethrxtime (Makefile.am): Likewise.
51680         * modules/getline (Makefile.am): Likewise.
51681         * modules/getloadavg (Makefile.am): Likewise.
51682         * modules/getlogin_r (Makefile.am): Likewise.
51683         * modules/getndelim2 (Makefile.am): Likewise.
51684         * modules/getopt (Makefile.am): Likewise.
51685         * modules/getpagesize (Makefile.am): Likewise.
51686         * modules/getpass-gnu (Makefile.am): Likewise.
51687         * modules/getpass (Makefile.am): Likewise.
51688         * modules/getsubopt (Makefile.am): Likewise.
51689         * modules/gettime (Makefile.am): Likewise.
51690         * modules/gettimeofday (Makefile.am): Likewise.
51691         * modules/getugroups (Makefile.am): Likewise.
51692         * modules/getusershell (Makefile.am): Likewise.
51693         * modules/glob (Makefile.am): Likewise.
51694         * modules/group-member (Makefile.am): Likewise.
51695         * modules/hard-locale (Makefile.am): Likewise.
51696         * modules/hash (Makefile.am): Likewise.
51697         * modules/hmac-md5 (Makefile.am): Likewise.
51698         * modules/hmac-sha1 (Makefile.am): Likewise.
51699         * modules/human (Makefile.am): Likewise.
51700         * modules/idcache (Makefile.am): Likewise.
51701         * modules/imaxabs (Makefile.am): Likewise.
51702         * modules/imaxdiv (Makefile.am): Likewise.
51703         * modules/inet_ntop (Makefile.am): Likewise.
51704         * modules/inet_pton (Makefile.am): Likewise.
51705         * modules/intprops (Makefile.am): Likewise.
51706         * modules/inttostr (Makefile.am): Likewise.
51707         * modules/inttypes (Makefile.am): Likewise.
51708         * modules/isapipe (Makefile.am): Likewise.
51709         * modules/javaversion (Makefile.am): Likewise.
51710         * modules/lchmod (Makefile.am): Likewise.
51711         * modules/lchown (Makefile.am): Likewise.
51712         * modules/localcharset (Makefile.am): Likewise.
51713         * modules/long-options (Makefile.am): Likewise.
51714         * modules/lstat (Makefile.am): Likewise.
51715         * modules/malloc (Makefile.am): Likewise.
51716         * modules/mathl (Makefile.am): Likewise.
51717         * modules/mbchar (Makefile.am): Likewise.
51718         * modules/md2 (Makefile.am): Likewise.
51719         * modules/md4 (Makefile.am): Likewise.
51720         * modules/md5 (Makefile.am): Likewise.
51721         * modules/memcasecmp (Makefile.am): Likewise.
51722         * modules/memchr (Makefile.am): Likewise.
51723         * modules/memcmp (Makefile.am): Likewise.
51724         * modules/memcoll (Makefile.am): Likewise.
51725         * modules/memcpy (Makefile.am): Likewise.
51726         * modules/memmem (Makefile.am): Likewise.
51727         * modules/memmove (Makefile.am): Likewise.
51728         * modules/mempcpy (Makefile.am): Likewise.
51729         * modules/memrchr (Makefile.am): Likewise.
51730         * modules/memset (Makefile.am): Likewise.
51731         * modules/memxor (Makefile.am): Likewise.
51732         * modules/mkancesdirs (Makefile.am): Likewise.
51733         * modules/mkdir-p (Makefile.am): Likewise.
51734         * modules/mkdir (Makefile.am): Likewise.
51735         * modules/mkdtemp (Makefile.am): Likewise.
51736         * modules/mkstemp (Makefile.am): Likewise.
51737         * modules/mktime (Makefile.am): Likewise.
51738         * modules/modechange (Makefile.am): Likewise.
51739         * modules/mountlist (Makefile.am): Likewise.
51740         * modules/nanosleep (Makefile.am): Likewise.
51741         * modules/obstack (Makefile.am): Likewise.
51742         * modules/openat (Makefile.am): Likewise.
51743         * modules/pagealign_alloc (Makefile.am): Likewise.
51744         * modules/pathmax (Makefile.am): Likewise.
51745         * modules/physmem (Makefile.am): Likewise.
51746         * modules/poll (Makefile.am): Likewise.
51747         * modules/posixtm (Makefile.am): Likewise.
51748         * modules/posixver (Makefile.am): Likewise.
51749         * modules/putenv (Makefile.am): Likewise.
51750         * modules/quote (Makefile.am): Likewise.
51751         * modules/quotearg (Makefile.am): Likewise.
51752         * modules/raise (Makefile.am): Likewise.
51753         * modules/read-file (Makefile.am): Likewise.
51754         * modules/readline (Makefile.am): Likewise.
51755         * modules/readlink (Makefile.am): Likewise.
51756         * modules/readtokens (Makefile.am): Likewise.
51757         * modules/readutmp (Makefile.am): Likewise.
51758         * modules/realloc (Makefile.am): Likewise.
51759         * modules/regex (Makefile.am): Likewise.
51760         * modules/rename-dest-slash (Makefile.am): Likewise.
51761         * modules/rename (Makefile.am): Likewise.
51762         * modules/rijndael (Makefile.am): Likewise.
51763         * modules/rmdir (Makefile.am): Likewise.
51764         * modules/rpmatch (Makefile.am): Likewise.
51765         * modules/safe-read (Makefile.am): Likewise.
51766         * modules/safe-write (Makefile.am): Likewise.
51767         * modules/same-inode (Makefile.am): Likewise.
51768         * modules/same (Makefile.am): Likewise.
51769         * modules/save-cwd (Makefile.am): Likewise.
51770         * modules/savedir (Makefile.am): Likewise.
51771         * modules/setenv (Makefile.am): Likewise.
51772         * modules/settime (Makefile.am): Likewise.
51773         * modules/sha1 (Makefile.am): Likewise.
51774         * modules/sig2str (Makefile.am): Likewise.
51775         * modules/snprintf (Makefile.am): Likewise.
51776         * modules/stat-macros (Makefile.am): Likewise.
51777         * modules/stat-time (Makefile.am): Likewise.
51778         * modules/stdbool (Makefile.am): Likewise.
51779         * modules/stdint (Makefile.am): Likewise.
51780         * modules/stdlib-safer (Makefile.am): Likewise.
51781         * modules/stpcpy (Makefile.am): Likewise.
51782         * modules/stpncpy (Makefile.am): Likewise.
51783         * modules/strcase (Makefile.am): Likewise.
51784         * modules/strcasestr (Makefile.am): Likewise.
51785         * modules/strchrnul (Makefile.am): Likewise.
51786         * modules/strcspn (Makefile.am): Likewise.
51787         * modules/strdup (Makefile.am): Likewise.
51788         * modules/strerror (Makefile.am): Likewise.
51789         * modules/strftime (Makefile.am): Likewise.
51790         * modules/strndup (Makefile.am): Likewise.
51791         * modules/strnlen (Makefile.am): Likewise.
51792         * modules/strpbrk (Makefile.am): Likewise.
51793         * modules/strsep (Makefile.am): Likewise.
51794         * modules/strstr (Makefile.am): Likewise.
51795         * modules/strtod (Makefile.am): Likewise.
51796         * modules/strtoimax (Makefile.am): Likewise.
51797         * modules/strtok_r (Makefile.am): Likewise.
51798         * modules/strtol (Makefile.am): Likewise.
51799         * modules/strtoll (Makefile.am): Likewise.
51800         * modules/strtoul (Makefile.am): Likewise.
51801         * modules/strtoull (Makefile.am): Likewise.
51802         * modules/strtoumax (Makefile.am): Likewise.
51803         * modules/strverscmp (Makefile.am): Likewise.
51804         * modules/sys_socket (Makefile.am): Likewise.
51805         * modules/sys_stat (Makefile.am): Likewise.
51806         * modules/sysexits (Makefile.am): Likewise.
51807         * modules/time_r (Makefile.am): Likewise.
51808         * modules/timegm (Makefile.am): Likewise.
51809         * modules/timespec (Makefile.am): Likewise.
51810         * modules/tmpfile-safer (Makefile.am): Likewise.
51811         * modules/trim (Makefile.am): Likewise.
51812         * modules/unistd-safer (Makefile.am): Likewise.
51813         * modules/unlinkdir (Makefile.am): Likewise.
51814         * modules/unlocked-io (Makefile.am): Likewise.
51815         * modules/userspec (Makefile.am): Likewise.
51816         * modules/utime (Makefile.am): Likewise.
51817         * modules/utimecmp (Makefile.am): Likewise.
51818         * modules/utimens (Makefile.am): Likewise.
51819         * modules/vasnprintf (Makefile.am): Likewise.
51820         * modules/vasprintf (Makefile.am): Likewise.
51821         * modules/vsnprintf (Makefile.am): Likewise.
51822         * modules/xalloc (Makefile.am): Likewise.
51823         * modules/xgetcwd (Makefile.am): Likewise.
51824         * modules/xnanosleep (Makefile.am): Likewise.
51825         * modules/xreadlink (Makefile.am): Likewise.
51826         * modules/xstrtod (Makefile.am): Likewise.
51827         * modules/xstrtol (Makefile.am): Likewise.
51828         * modules/xstrtold (Makefile.am): Likewise.
51829         * modules/yesno (Makefile.am): Likewise.
51830         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51831
51832 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51833
51834         * modules/error (Makefile.am): Distribute files through
51835         EXTRA_DIST, not lib_SOURCES.
51836
51837 2006-10-12  Eric Blake  <ebb9@byu.net>
51838
51839         * modules/error (Makefile.am): Distribute files in /lib.
51840         * modules/obstack (Makefile.am): Likewise.
51841
51842 2006-10-12  Bruno Haible  <bruno@clisp.org>
51843
51844         * modules/acl (Makefile.am): Distribute all files in lib/ through
51845         EXTRA_DIST.
51846         * modules/arcfour (Makefile.am): Likewise.
51847         * modules/arctwo (Makefile.am): Likewise.
51848         * modules/argmatch (Makefile.am): Likewise.
51849         * modules/argz (Makefile.am): Likewise.
51850         * modules/atexit (Makefile.am): Likewise.
51851         * modules/backupfile (Makefile.am): Likewise.
51852         * modules/c-strtod (Makefile.am): Likewise.
51853         * modules/c-strtold (Makefile.am): Likewise.
51854         * modules/calloc (Makefile.am): Likewise.
51855         * modules/canon-host (Makefile.am): Likewise.
51856         * modules/canonicalize (Makefile.am): Likewise.
51857         * modules/chdir-long (Makefile.am): Likewise.
51858         * modules/chdir-safer (Makefile.am): Likewise.
51859         * modules/check-version (Makefile.am): Likewise.
51860         * modules/chown (Makefile.am): Likewise.
51861         * modules/cloexec (Makefile.am): Likewise.
51862         * modules/close-stream (Makefile.am): Likewise.
51863         * modules/closeout (Makefile.am): Likewise.
51864         * modules/crc (Makefile.am): Likewise.
51865         * modules/cycle-check (Makefile.am): Likewise.
51866         * modules/des (Makefile.am): Likewise.
51867         * modules/dirfd (Makefile.am): Likewise.
51868         * modules/dirname (Makefile.am): Likewise.
51869         * modules/dup2 (Makefile.am): Likewise.
51870         * modules/euidaccess (Makefile.am): Likewise.
51871         * modules/exclude (Makefile.am): Likewise.
51872         * modules/exitfail (Makefile.am): Likewise.
51873         * modules/fcntl-safer (Makefile.am): Likewise.
51874         * modules/file-type (Makefile.am): Likewise.
51875         * modules/fileblocks (Makefile.am): Likewise.
51876         * modules/filemode (Makefile.am): Likewise.
51877         * modules/filenamecat (Makefile.am): Likewise.
51878         * modules/fnmatch (Makefile.am): Likewise.
51879         * modules/fopen-safer (Makefile.am): Likewise.
51880         * modules/fpending (Makefile.am): Likewise.
51881         * modules/fprintftime (Makefile.am): Likewise.
51882         * modules/free (Makefile.am): Likewise.
51883         * modules/fsusage (Makefile.am): Likewise.
51884         * modules/ftruncate (Makefile.am): Likewise.
51885         * modules/fts (Makefile.am): Likewise.
51886         * modules/gc (Makefile.am): Likewise.
51887         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51888         * modules/getaddrinfo (Makefile.am): Likewise.
51889         * modules/getcwd (Makefile.am): Likewise.
51890         * modules/getdelim (Makefile.am): Likewise.
51891         * modules/getdomainname (Makefile.am): Likewise.
51892         * modules/getgroups (Makefile.am): Likewise.
51893         * modules/gethostname (Makefile.am): Likewise.
51894         * modules/gethrxtime (Makefile.am): Likewise.
51895         * modules/getline (Makefile.am): Likewise.
51896         * modules/getloadavg (Makefile.am): Likewise.
51897         * modules/getlogin_r (Makefile.am): Likewise.
51898         * modules/getopt (Makefile.am): Likewise.
51899         * modules/getpass (Makefile.am): Likewise.
51900         * modules/getpass-gnu (Makefile.am): Likewise.
51901         * modules/getsubopt (Makefile.am): Likewise.
51902         * modules/gettime (Makefile.am): Likewise.
51903         * modules/gettimeofday (Makefile.am): Likewise.
51904         * modules/getugroups (Makefile.am): Likewise.
51905         * modules/getusershell (Makefile.am): Likewise.
51906         * modules/glob (Makefile.am): Likewise.
51907         * modules/group-member (Makefile.am): Likewise.
51908         * modules/hard-locale (Makefile.am): Likewise.
51909         * modules/hash (Makefile.am): Likewise.
51910         * modules/hmac-md5 (Makefile.am): Likewise.
51911         * modules/hmac-sha1 (Makefile.am): Likewise.
51912         * modules/human (Makefile.am): Likewise.
51913         * modules/idcache (Makefile.am): Likewise.
51914         * modules/imaxabs (Makefile.am): Likewise.
51915         * modules/imaxdiv (Makefile.am): Likewise.
51916         * modules/inet_ntop (Makefile.am): Likewise.
51917         * modules/inet_pton (Makefile.am): Likewise.
51918         * modules/inttostr (Makefile.am): Likewise.
51919         * modules/isapipe (Makefile.am): Likewise.
51920         * modules/lchown (Makefile.am): Likewise.
51921         * modules/long-options (Makefile.am): Likewise.
51922         * modules/lstat (Makefile.am): Likewise.
51923         * modules/malloc (Makefile.am): Likewise.
51924         * modules/mathl (Makefile.am): Likewise.
51925         * modules/mbchar (Makefile.am): Likewise.
51926         * modules/md2 (Makefile.am): Likewise.
51927         * modules/md4 (Makefile.am): Likewise.
51928         * modules/md5 (Makefile.am): Likewise.
51929         * modules/memcasecmp (Makefile.am): Likewise.
51930         * modules/memchr (Makefile.am): Likewise.
51931         * modules/memcmp (Makefile.am): Likewise.
51932         * modules/memcoll (Makefile.am): Likewise.
51933         * modules/memcpy (Makefile.am): Likewise.
51934         * modules/memmem (Makefile.am): Likewise.
51935         * modules/memmove (Makefile.am): Likewise.
51936         * modules/mempcpy (Makefile.am): Likewise.
51937         * modules/memrchr (Makefile.am): Likewise.
51938         * modules/memset (Makefile.am): Likewise.
51939         * modules/memxor (Makefile.am): Likewise.
51940         * modules/mkancesdirs (Makefile.am): Likewise.
51941         * modules/mkdir (Makefile.am): Likewise.
51942         * modules/mkdir-p (Makefile.am): Likewise.
51943         * modules/mkdtemp (Makefile.am): Likewise.
51944         * modules/mkstemp (Makefile.am): Likewise.
51945         * modules/mktime (Makefile.am): Likewise.
51946         * modules/modechange (Makefile.am): Likewise.
51947         * modules/mountlist (Makefile.am): Likewise.
51948         * modules/nanosleep (Makefile.am): Likewise.
51949         * modules/openat (Makefile.am): Likewise.
51950         * modules/pagealign_alloc (Makefile.am): Likewise.
51951         * modules/physmem (Makefile.am): Likewise.
51952         * modules/poll (Makefile.am): Likewise.
51953         * modules/posixtm (Makefile.am): Likewise.
51954         * modules/posixver (Makefile.am): Likewise.
51955         * modules/putenv (Makefile.am): Likewise.
51956         * modules/quote (Makefile.am): Likewise.
51957         * modules/quotearg (Makefile.am): Likewise.
51958         * modules/raise (Makefile.am): Likewise.
51959         * modules/read-file (Makefile.am): Likewise.
51960         * modules/readline (Makefile.am): Likewise.
51961         * modules/readlink (Makefile.am): Likewise.
51962         * modules/readtokens (Makefile.am): Likewise.
51963         * modules/readutmp (Makefile.am): Likewise.
51964         * modules/realloc (Makefile.am): Likewise.
51965         * modules/regex (Makefile.am): Likewise.
51966         * modules/rename (Makefile.am): Likewise.
51967         * modules/rename-dest-slash (Makefile.am): Likewise.
51968         * modules/rijndael (Makefile.am): Likewise.
51969         * modules/rmdir (Makefile.am): Likewise.
51970         * modules/rpmatch (Makefile.am): Likewise.
51971         * modules/safe-read (Makefile.am): Likewise.
51972         * modules/safe-write (Makefile.am): Likewise.
51973         * modules/same (Makefile.am): Likewise.
51974         * modules/save-cwd (Makefile.am): Likewise.
51975         * modules/savedir (Makefile.am): Likewise.
51976         * modules/setenv (Makefile.am): Likewise.
51977         * modules/settime (Makefile.am): Likewise.
51978         * modules/sha1 (Makefile.am): Likewise.
51979         * modules/sig2str (Makefile.am): Likewise.
51980         * modules/snprintf (Makefile.am): Likewise.
51981         * modules/stdlib-safer (Makefile.am): Likewise.
51982         * modules/stpcpy (Makefile.am): Likewise.
51983         * modules/stpncpy (Makefile.am): Likewise.
51984         * modules/strcase (Makefile.am): Likewise.
51985         * modules/strcasestr (Makefile.am): Likewise.
51986         * modules/strchrnul (Makefile.am): Likewise.
51987         * modules/strcspn (Makefile.am): Likewise.
51988         * modules/strdup (Makefile.am): Likewise.
51989         * modules/strerror (Makefile.am): Likewise.
51990         * modules/strftime (Makefile.am): Likewise.
51991         * modules/strndup (Makefile.am): Likewise.
51992         * modules/strnlen (Makefile.am): Likewise.
51993         * modules/strpbrk (Makefile.am): Likewise.
51994         * modules/strsep (Makefile.am): Likewise.
51995         * modules/strstr (Makefile.am): Likewise.
51996         * modules/strtod (Makefile.am): Likewise.
51997         * modules/strtoimax (Makefile.am): Likewise.
51998         * modules/strtok_r (Makefile.am): Likewise.
51999         * modules/strtol (Makefile.am): Likewise.
52000         * modules/strtoll (Makefile.am): Likewise.
52001         * modules/strtoul (Makefile.am): Likewise.
52002         * modules/strtoull (Makefile.am): Likewise.
52003         * modules/strtoumax (Makefile.am): Likewise.
52004         * modules/strverscmp (Makefile.am): Likewise.
52005         * modules/time_r (Makefile.am): Likewise.
52006         * modules/timegm (Makefile.am): Likewise.
52007         * modules/tmpfile-safer (Makefile.am): Likewise.
52008         * modules/unistd-safer (Makefile.am): Likewise.
52009         * modules/unlinkdir (Makefile.am): Likewise.
52010         * modules/userspec (Makefile.am): Likewise.
52011         * modules/utime (Makefile.am): Likewise.
52012         * modules/utimecmp (Makefile.am): Likewise.
52013         * modules/utimens (Makefile.am): Likewise.
52014         * modules/vasnprintf (Makefile.am): Likewise.
52015         * modules/vasprintf (Makefile.am): Likewise.
52016         * modules/vsnprintf (Makefile.am): Likewise.
52017         * modules/xalloc (Makefile.am): Likewise.
52018         * modules/xgetcwd (Makefile.am): Likewise.
52019         * modules/xnanosleep (Makefile.am): Likewise.
52020         * modules/xreadlink (Makefile.am): Likewise.
52021         * modules/xstrtod (Makefile.am): Likewise.
52022         * modules/xstrtol (Makefile.am): Likewise.
52023         * modules/xstrtold (Makefile.am): Likewise.
52024         * modules/yesno (Makefile.am): Likewise.
52025
52026 2006-10-12  Jim Meyering  <jim@meyering.net>
52027
52028         * m4/getloadavg.m4: Revert the change below.
52029
52030         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
52031         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
52032         fail with a symlink, which is what coreutils' ./bootstrap now
52033         creates by default.
52034
52035 2006-10-12  Bruno Haible  <bruno@clisp.org>
52036
52037         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
52038         mingw.
52039         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
52040         MSVC and mingw explicitly.
52041
52042 2006-10-11  Simon Josefsson  <jas@extundo.com>
52043             Bruno Haible  <bruno@clisp.org>
52044
52045         Add support for multiple gnulib-tool invocations in the scope of a
52046         single configure.ac file.
52047         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
52048         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
52049         with the same contents as the _LIBADD variable.
52050         (func_emit_initmacro_start, func_emit_initmacro_end,
52051         func_emit_initmacro_done): New functions.
52052         (func_import, func_create_testdir): Invoke them. Allow the identifiers
52053         gl_LIBOBJS and gl_LTLIBOBJS.
52054
52055 2006-10-11  Bruno Haible  <bruno@clisp.org>
52056
52057         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
52058         (func_create_testdir): Don't create po/Makefile.am, don't invoke
52059         autoreconf. Instead, invoke autopoint explicitly but move back the
52060         *.m4 files from gnulib.
52061
52062 2006-10-11  Bruno Haible  <bruno@clisp.org>
52063
52064         * gnulib-tool (func_usage): Make module names after --create-testdir
52065         optional.
52066         (func_create_testdir): If no module was specified, use nearly all
52067         modules.
52068
52069 2006-10-12  Jim Meyering  <jim@meyering.net>
52070
52071         Big performance improvement for fts-based tools that use FTS_NOSTAT.
52072         Avoid spurious inode-mismatch problems on non-POSIX file systems.
52073         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
52074         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
52075         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
52076         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
52077         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
52078         (fts_set_stat_required): New function.
52079         (fts_open): Defer the calls to fts_stat, if possible or requested.
52080         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
52081         into fts_stat itself.
52082         (fts_read): Perform any required (deferred) fts_stat call.
52083         (fts_build): Likewise, for the directory we're about to open and read.
52084         In the readdir loop, carefully decide whether each entry will require
52085         an eventual call to fts_stat, using dirent.d_type info if available.
52086         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
52087         a command line argument into this function.  Update all callers.
52088         Map a return value of FTS_DOT to FTS_D for a command line argument.
52089         * modules/fts (Depends-on): Add d-type.  Alphabetize.
52090         Thanks to Miklos Szeredi for his tenacity and for the initial
52091         bug report about "find" failing on a FUSE-based file system.
52092
52093         * lib/fts.c (fts_open): Use consistent indentation.
52094
52095 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52096
52097         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
52098         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
52099         reported by Jim Meyering.  All uses of cache variables renamed
52100         to match Autoconf's.
52101         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
52102         the other one.
52103
52104         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
52105         Fix misspelling in diagnostic.
52106
52107 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52108
52109         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
52110         defined.  Problem reported by Matthew Woehlke.
52111
52112         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
52113         Add support for Tandem NonStop R series.
52114         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
52115         Use new macro.
52116
52117         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
52118         (has_trailing_slash): Omit size arg; all callers changed.
52119         Omit 'inline', since it doesn't help performance and we'd
52120         need to configure it.
52121         Don't count //, ///, etc. as having a trailing slash.
52122         As a side effect, this removes a C99ism reported by Matthew Woehlke.
52123         (rpl_rename_dest_slash): On failure, use rename's errno rather
52124         than (in some cases) an incorrect or junk errno.
52125         Simplify code by removing need to compute length; this does
52126         cause it to make two passes instead of one over the file name,
52127         but it's worth it.
52128
52129         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
52130         change, since Autoconf's version may no longer be appropriate now
52131         that we are using CVS Autoconf's version.  Add support for Tandem.
52132
52133 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52134             Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
52137         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
52138         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
52139         gl_AC_TYPE_LONG_LONG.
52140
52141         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
52142         instead of HAVE_LONG_LONG.
52143         * lib/printf-args.c (printf_fetchargs): Likewise.
52144         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
52145         * lib/vasnprintf.c (VASNPRINTF): Likewise.
52146         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
52147         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
52148         gl_AC_TYPE_LONG_LONG.
52149
52150 2006-10-11  Bruno Haible  <bruno@clisp.org>
52151
52152         * m4/longlong.m4: Add comments.
52153         * m4/ulonglong.m4: Likewise.
52154
52155 2006-10-10  Bruno Haible  <bruno@clisp.org>
52156
52157         Make it possible to #define stpcpy, strdup to aliases.
52158         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
52159         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
52160
52161 2006-10-10  Bruno Haible  <bruno@clisp.org>
52162
52163         Make it possible to #define gcd to an alias.
52164         * lib/gcd.c: Include config.h.
52165
52166 2006-10-10  Bruno Haible  <bruno@clisp.org>
52167
52168         Make it possible to #define c_isascii to an alias.
52169         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
52170         defined. Undefine the macros before defining them, to avoid gcc
52171         warnings.
52172         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
52173         define NO_C_CTYPE_MACROS early.
52174
52175 2006-10-10  Bruno Haible  <bruno@clisp.org>
52176
52177         Make it possible to #define set_program_name to an alias.
52178         * lib/progname.c: Don't undefine set_program_name; instead, undefine
52179         ENABLE_RELOCATABLE early.
52180
52181 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52182
52183         Port to Tandem NSK OSS, which has 64-bit signed int but at most
52184         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
52185         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
52186         More generally, don't assume that 64-bit signed int is available
52187         if unsigned int is, and vice versa.
52188         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
52189         unsigned symbols, not on their signed counterparts.
52190         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
52191         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
52192         (UINT64_C, UINTMAX_C):
52193         Likewise.
52194         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
52195         unsigned counterparts.
52196         (Have_long_long, Unsigned): New macros.
52197         (Int): Renamed from INT.
52198         (strtoimax): Use the new macros.
52199         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
52200         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
52201         * modules/inttypes (inttypes.h): Substitute
52202         HAVE_UNSIGNED_LONG_LONG_INT.
52203         * modules/stdint (stdint.h): Likewise.
52204         (Files): Add m4/ulonglong.m4.
52205
52206 2006-10-10  Bruno Haible  <bruno@clisp.org>
52207
52208         Fix a gcc -Wshadow warning.
52209         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
52210         to 'bucket'.
52211         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
52212         gl_linked_indexof_from_to): Likewise.
52213         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
52214         Likewise.
52215         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52216         Likewise.
52217         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
52218         Reported by Eric Blake.
52219
52220 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
52221
52222         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
52223         for NetBSD.  Problem reported by Bruno Haible.
52224
52225 2006-10-09  Jim Meyering  <jim@meyering.net>
52226
52227         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
52228         Patch from Bruno Haible.
52229
52230 2006-10-09  Jim Meyering  <jim@meyering.net>
52231
52232         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
52233         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
52234         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
52235
52236 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         Don't include <config.h> twice; this doesn't work in some cases,
52239         e.g., when config.h has "#define intmax_t long long int" and
52240         we include <config.h>, <inttypes.h>, <config.h> in that order.
52241         Problem reported by Matthew Woehlke in:
52242         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
52243         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
52244         * lib/fts-cycle.c: Don't include config.h.
52245         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
52246         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
52247         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
52248         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
52249         inttypes.h.
52250         * lib/xstrtoumax.c: Likewise.
52251         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
52252         __strtol and the like, so that this module is more like its siblings.
52253         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
52254         Remove; no longer needed now that we assume gnulib inttypes.h.
52255
52256 2006-10-08  Bruno Haible  <bruno@clisp.org>
52257
52258         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
52259         option.
52260
52261 2006-10-07  Jim Meyering  <jim@meyering.net>
52262
52263         * modules/inttypes (inttypes.h): Revert what seems to have been
52264         an inadvertent part of today's change: use "|", not "/" in the
52265         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
52266
52267 2006-10-07  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/sublist: New file.
52270
52271 2006-10-07  Bruno Haible  <bruno@clisp.org>
52272
52273         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
52274         * modules/argz (argz.h): Likewise.
52275         * modules/arpa_inet (arpa/inet.h): Likewise.
52276         * modules/byteswap (byteswap.h): Likewise.
52277         * modules/configmake (configmake.h): Likewise.
52278         * modules/fcntl (fcntl.h): Likewise.
52279         * modules/fnmatch (fnmatch.h): Likewise.
52280         * modules/getopt (getopt.h): Likewise.
52281         * modules/glob (glob.h): Likewise.
52282         * modules/inttypes (inttypes.h): Likewise.
52283         * modules/netinet_in (netinet/in.h): Likewise.
52284         * modules/poll (poll.h): Likewise.
52285         * modules/stdbool (stdbool.h): Likewise.
52286         * modules/stdint (stdint.h): Likewise.
52287         * modules/sys_select (sys/select.h): Likewise.
52288         * modules/sys_socket (sys/socket.h): Likewise.
52289         * modules/sys_stat (sys/stat.h): Likewise.
52290         * modules/sysexits (sysexits.h): Likewise.
52291         * modules/unistd (unistd.h): Likewise.
52292         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52293         Add a "DO NOT EDIT" comment to the generated file.
52294         (func_import): Likewise for gnulib-comp.m4.
52295
52296 2006-10-07  Bruno Haible  <bruno@clisp.org>
52297
52298         * lib/gl_sublist.h: New file.
52299         * lib/gl_sublist.c: New file.
52300
52301 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52302
52303         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52304         name (relative to the original working directory) and the file
52305         name component (relative to the temporary working directory).  All
52306         callers changed.
52307         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52308         * lib/mkdir-p.c (make_dir_parents): Likewise.
52309         * lib/mkdir-p.h (make_dir_parents): Likewise.
52310
52311 2006-10-06  Eric Blake  <ebb9@byu.net>
52312
52313         Define several macros for use by the clean-temp module.
52314         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52315         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52316         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52317
52318         * lib/clean-temp.h (close_stream_temp): New declaration.
52319         * lib/clean-temp.c (includes): Pull in headers according to what
52320         other modules are in use.
52321         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52322
52323 2006-10-06  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52326         instead of fopen, fwriteerror.
52327
52328 2006-10-06  Bruno Haible  <bruno@clisp.org>
52329
52330         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52331         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52332         int.
52333         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52334         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52335         Return an error indicator.
52336         Suggested by Eric Blake.
52337
52338 2006-10-06  Bruno Haible  <bruno@clisp.org>
52339
52340         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52341         Reported by Eric Blake.
52342
52343 2006-10-06  Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/closeout (Description): Mention stderr too.
52346
52347 2006-10-06  Bruno Haible  <bruno@clisp.org>
52348         and Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/closeout.c (close_stdout): Also close stderr.
52351         * lib/closeout.h: Update comment.
52352
52353 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52354
52355         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52356         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52357         * lib/dirchownmod.c: Include lchown.h.
52358         * lib/lchown.c: Don't include files that lchown.h now includes.
52359         Don't declare chown, since lchown.h now does that.
52360         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52361         (lchown): Define to rpl_chown if lchown is declared but
52362         does not exist.  Declare using a prototype if lchown is not
52363         declared.  Add a copyright notice.
52364         * lib/mkstemp.h: Include <unistd.h>.
52365         * lib/openat.c: Include lchown.h.
52366
52367         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52368         we now test for that separately.
52369         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52370         rather than O_NOFOLLOW, when testing whether it's possible to
52371         avoid a race condition reliably.
52372         * lib/savewd.c (savewd_chdir): Likewise.
52373
52374         Remove macros that are no longer needed now that stdint.h is
52375         reliable.
52376         * lib/fsusage.c (UINTMAX_MAX): Remove.
52377         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52378         * lib/utimecmp.c (SIZE_MAX): Remove.
52379
52380         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52381
52382         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52383         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52384         O_NOATIME works.
52385
52386 2006-10-05  Bruno Haible  <bruno@clisp.org>
52387
52388         * lib/gl_list.h (gl_sortedlist_search_from_to,
52389         gl_sortedlist_indexof_from_to): New declarations.
52390         (gl_list_implementation): New fields sortedlist_search_from_to,
52391         sortedlist_indexof_from_to.
52392         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52393         inline functions.
52394         * lib/gl_list.c (gl_sortedlist_search_from_to,
52395         gl_sortedlist_indexof_from_to): New functions.
52396         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52397         function.
52398         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52399         (gl_array_sortedlist_search_from_to): New function.
52400         (gl_array_list_implementation): Update.
52401         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52402         function.
52403         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52404         (gl_carray_sortedlist_search_from_to): New function.
52405         (gl_carray_list_implementation): Update.
52406         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52407         gl_linked_sortedlist_indexof_from_to): New functions.
52408         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52409         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52410         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52411         gl_tree_sortedlist_indexof_from_to): New functions.
52412         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52413         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52414         Update.
52415         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52416         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52417         Update.
52418
52419 2006-10-05  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52422         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52423         (struct gl_list_implementation): Add fields search_from_to,
52424         indexof_from_to. Remove fields search, indexof.
52425         (gl_list_search): Use the search_from_to method.
52426         (gl_list_search_from, gl_list_search_from_to): New functions.
52427         (gl_list_indexof): Use the indexof_from_to method.
52428         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52429         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52430         (gl_list_search_from, gl_list_search_from_to): New functions.
52431         (gl_list_indexof): Use the indexof_from_to method.
52432         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52433         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52434         gl_array_indexof. Add start_index, end_index arguments.
52435         (gl_array_search_from_to): Renamed from gl_array_search. Add
52436         start_index, end_index arguments.
52437         (gl_array_remove, gl_array_list_implementation): Update.
52438         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52439         gl_carray_indexof. Add start_index, end_index arguments.
52440         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52441         start_index, end_index arguments.
52442         (gl_carray_remove, gl_carray_list_implementation): Update.
52443         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52444         gl_linked_search. Add start_index, end_index arguments.
52445         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52446         start_index, end_index arguments.
52447         (gl_linked_remove): Update.
52448         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52449         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52450         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52451         field to 'size_t'.
52452         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52453         gl_tree_search. Add start_index, end_index arguments.
52454         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52455         start_index, end_index arguments.
52456         (gl_tree_remove): Update.
52457         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52458         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52459         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52460         function.
52461         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52462         gl_tree_search. Add start_index, end_index arguments.
52463         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52464         start_index, end_index arguments.
52465         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52466         Update.
52467         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52468
52469 2006-10-05  Bruno Haible  <bruno@clisp.org>
52470
52471         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52472
52473         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52474         fwriteerror_temp): New declarations.
52475         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52476         (descriptors): New variable.
52477         (cleanup): First, close the descriptors.
52478         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52479         fclose_temp, fwriteerror_temp): New functions.
52480
52481 2006-10-04  Jim Meyering  <jim@meyering.net>
52482
52483         * lib/fts.c (fts_open): Tiny comment change.
52484
52485 2006-10-04  Bruno Haible  <bruno@clisp.org>
52486
52487         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52488         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52489         gl_LOCK_BODY.
52490         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52491         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52492         gl_LOCK_EARLY_BODY.
52493         (gl_LOCK): Require gl_LOCK_BODY.
52494
52495 2006-10-04  Bruno Haible  <bruno@clisp.org>
52496
52497         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52498         (gl_oset_search_atleast): New declaration.
52499         (struct gl_oset_implementation): Add field 'search_atleast'.
52500         (gl_oset_search_atleast): New inline function.
52501         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52502         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52503         (gl_array_oset_implementation): Update.
52504         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52505         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52506         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52507
52508 2006-10-04  Bruno Haible  <bruno@clisp.org>
52509
52510         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52511
52512 2006-10-03  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52515         from gl_avltreehash_list_implementation.
52516
52517 2006-10-03  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/gl_oset.c (gl_oset_add): Fix return type.
52520
52521 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52522
52523         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52524
52525 2006-10-02  Eric Blake  <ebb9@byu.net>
52526
52527         * modules/strnlen (Depends-on): Add extensions.
52528
52529 2006-10-02  Eric Blake  <ebb9@byu.net>
52530
52531         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52532         definition in 2.60+.
52533
52534 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52535
52536         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52537         checks.
52538
52539 2006-10-02  Bruno Haible  <bruno@clisp.org>
52540
52541         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52542         to the AUTOMAKE_OPTIONS.
52543         Reported by Jim Meyering.
52544
52545 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52546
52547         Work around bug in Solaris 10 /proc file system:
52548         /proc/self/fd/NNN/.. isn't the parent directory of
52549         the directory whose file descriptor is NNN.  This needs to
52550         be worked around at run time, not compile time, since a
52551         program might be built on Solaris 8, where things work, and
52552         run on Solaris 10.
52553         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52554         to use the following interface instead:
52555         (OPENAT_BUFFER_SIZE): New macro.
52556         (openat_proc_name): New function.
52557         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52558         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52559         Likewise.
52560         * lib/openat-proc.c: New file.
52561         * modules/openat (Files): Add lib/openat-proc.c.
52562         (Depends-on): Add same-inode, stdbool.
52563         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52564
52565 2006-09-29  Bruno Haible  <bruno@clisp.org>
52566
52567         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52568         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52569         argument. Set stdout_closed before testing for ferror, not after.
52570         (fwriteerror, fwriteerror_no_ebadf): New functions.
52571
52572 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52573
52574         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52575
52576 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52577
52578         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52579         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52580
52581 2006-09-28  Jim Meyering  <jim@meyering.net>
52582
52583         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52584         Include <unistd.h>.
52585
52586 2006-09-28  Bruno Haible  <bruno@clisp.org>
52587
52588         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52589         * modules/linkedhash-list (Depends-on): Likewise.
52590         * modules/rbtreehash-list (Depends-on): Likewise.
52591
52592 2006-09-28  Bruno Haible  <bruno@clisp.org>
52593
52594         * lib/strndup.h: Simplify the redefinition of strndup.
52595         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52597
52598 2006-09-28  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52601         * lib/gl_linkedhash_list.c: Likewise.
52602         * lib/gl_rbtreehash_list.c: Likewise.
52603
52604 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52605
52606         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52607         getaddrinfo.
52608
52609         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52610         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52611         it causes <stdio_ext.h> to cause a compile-time error.
52612         Problem reported by Nelson H. F. Beebe.
52613         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52614         of HAVE_DECL___PENDING.
52615
52616         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52617         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52618         declaration.
52619
52620 2006-09-27  Jim Meyering  <jim@meyering.net>
52621
52622         This file could end up with a definition for a function
52623         named __strndup, rather than rpl_strndup on a system with
52624         incomplete weak_alias support.
52625         * lib/strndup.c (strndup): Rename from __strndup.
52626         Remove #defines that used to map __strndup to strndup.
52627         Don't use K&R prototypes.
52628         Remove LIBC-related code, since this file is not sync'd with glibc.
52629         * lib/strndup.h: Revamp, accordingly.
52630         * m4/strndup.m4: Modernize.
52631
52632 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * modules/savewd (Depends-on): Add 'raise'.
52635         * lib/savewd.c: Include <signal.h>, for 'raise'.
52636
52637 2006-09-26  Jim Meyering  <jim@meyering.net>
52638
52639         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52640         when we detect Darwin 8.7.0's acl_get_file bug.
52641         Rearrange to perform the new (below) run-test while $LIBS
52642         contains any acl-related library.  Set USE_ACL at the end.
52643         (gl_ACL_GET_FILE): New function.
52644
52645 2006-09-26  Eric Blake  <ebb9@byu.net>
52646
52647         * lib/verror.c: Include <config.h> unconditionally.
52648
52649 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52650
52651         * modules/clock-time (Maintainer): Add self.
52652         * modules/getlogin_r (Depends-on): Add extensions.
52653
52654 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52655
52656         * modules/clock-time: New module.
52657         * modules/nanosleep (Depends-on): Add clock-time.
52658         * modules/gethrxtime (Depends-on): Likewise.
52659         * modules/gettime (Depends-on): Likewise.
52660         * modules/settime (Depends-on): Likewise.
52661
52662         * modules/fts-lgpl: Depend on openat.
52663         * modules/mkancesdirs: Depend on savewd.
52664         * modules/mkdir-p: Likewise.
52665
52666 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52667
52668         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52669
52670         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52671         `gl_have_arbitrary_file_name_length_limit' to
52672         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52673         actually works between configure runs.
52674
52675 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52676             Bruno Haible  <bruno@clisp.org>
52677
52678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52679
52680 2006-09-25  Jim Meyering  <jim@meyering.net>
52681
52682         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52683         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52684
52685 2006-09-25  Eric Blake  <ebb9@byu.net>
52686
52687         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52688         exec's in 2006-09-18 patch when shuffling fds.
52689
52690 2006-09-25  Bruno Haible  <bruno@clisp.org>
52691
52692         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52693         Reported by Jim Meyering.
52694
52695 2006-09-24  Jim Meyering  <jim@meyering.net>
52696
52697         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52698         compare a pointer against a literal "0".  That caused failures with
52699         at least HP-UX's hpcc.
52700
52701 2006-09-22  Simon Josefsson  <jas@extundo.com>
52702
52703         * modules/gc-sha1:
52704         * modules/gc-md4:
52705         * modules/gc-hmac-sha1:
52706         * modules/gc-hmac-md5:
52707         * modules/gc-des:
52708         * modules/gc-arcfour: Distribute more files.
52709
52710 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52711
52712         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52713         (gl_linked_iterator_from_to): Initialize struct completely.
52714         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52715         (gl_tree_iterator_from_to): Likewise
52716         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52717         * lib/gl_array_list.c [lint] (gl_array_iterator)
52718         (gl_array_iterator_from_to): Likewise.
52719         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52720         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52721         (gl_carray_iterator_from_to): Likewise.
52722
52723         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52724         * lib/md4.c (md4_process_block): Remove unused variable.
52725         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52726         parentheses for clarity.
52727
52728 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52729
52730         * modules/bison-i18n (Depends-on): Add gettext.
52731
52732 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52733
52734         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52735         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52736         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52737         also add missing comma that caused broken test.
52738         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52739         stdlib.h, for `abort'.
52740         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52741         variables.
52742         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52743         include unistd.h if present, for `rmdir'.
52744         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52745         variables.
52746         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52747         in the process include standard headers for prototypes.
52748         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52749         gets declared on GNU/Linux.
52750         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52751         unistd.h, for `rmdir'.
52752         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52753
52754         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52755         always true.
52756         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52757
52758         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52759
52760 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52761
52762         * gnulib-tool (func_version): Create output all at once.  This
52763         may help avoid triggering unnecessary SIGPIPEs, and at any
52764         rate it doesn't hurt.
52765
52766 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52767             Bruno Haible  <bruno@clisp.org>
52768
52769         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52770         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52771         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52772
52773         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52774         (gl_FUNC_VASPRINTF): Invoke it.
52775
52776 2006-09-22  Bruno Haible  <bruno@clisp.org>
52777
52778         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52779         getloadavg.c as first argument.
52780
52781 2006-09-22  Bruno Haible  <bruno@clisp.org>
52782
52783         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52784         at the beginning of the gl_INIT macro.
52785         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52786         gl_GETLOADAVG.
52787
52788 2006-09-22  Bruno Haible  <bruno@clisp.org>
52789
52790         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52791         module.
52792         Suggested by Ralf Wildenhues.
52793
52794 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         Import this patch from libc:
52797
52798         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52799
52800         * lib/regex_internal.c (re_string_reconstruct): Handle
52801         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52802         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52803         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52804         re_string_context_at.
52805
52806         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52807         now requires it.
52808         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52809         gl_REGEX now does it for us.
52810         (gl_REGEX): Add test taken from
52811         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52812
52813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52814         Check that large offsets work.  Modernize Autoconf usages.
52815         Prefer "yes" to mean a good thing rather than a bad.
52816         Don't put "#define mkstemp" in config.h, as this might interfere
52817         with standard system headers that "#define mkstemp mkstemp64".
52818
52819         * modules/mkstemp (Depends-on): Add extensions, so that
52820         mkstemp is visible on some platforms.
52821         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52822         (Include): Change to "mkstemp.h" from <stdlib.h>.
52823         (Files): Add mkstemp.h.
52824
52825         * lib/mkstemp.h: New file, since some standard headers
52826         #define mkstemp.
52827         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52828         Include "mkstemp.h".
52829         Make the _LIBC code resemble glibc original more,
52830         e.g., use K&R style.
52831         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52832         (mkstemp): Remove, since mkstemp.h does this for us.
52833         * lib/stdlib--.h: Include mkstemp.h.
52834
52835         Import this patch from libc:
52836
52837         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52838
52839         * lib/tempname.c (__gen_tempname): Change attempts_min
52840         into a macro.  Use preprocessor to decide how to initialize
52841         attempts [Coverity CID 67].
52842
52843 2006-09-20  Bruno Haible  <bruno@clisp.org>
52844
52845         * lib/mkdtemp.c: Import from libc.
52846         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52847                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52848                 attempts_min into a macro.  Use preprocessor to decide how to
52849                 initialize attempts [Coverity CID 67].
52850         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52851                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52852                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52853
52854 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52855
52856         * gnulib-tool (func_exit): New function, to allow to pass the
52857         exit status portably through the trap.  Use everywhere.
52858         (--help, --version): Signal a write error.
52859         (trap): catch SIGPIPE, for write errors.
52860         Exit at the end of the trap, with the correct exit status.
52861
52862 2006-09-19  Karl Berry  <karl@gnu.org>
52863
52864         * doc/gnulib.texi: note about the license texinfo files.
52865
52866 2006-09-19  Eric Blake  <ebb9@byu.net>
52867
52868         * gnulib-tool: Avoid space-tab.
52869
52870 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52871
52872         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52873         that prevented coreutils 6.1 from building.  Problem reported
52874         by Petter Reinholdtsen.
52875
52876 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52877
52878         * gnulib-tool (avoidlist): Fix typo that broke options like
52879         --avoid=lock that are used by coreutils bootstrap.
52880
52881 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52882
52883         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52884         more systematically.
52885
52886 2006-09-18  Jim Meyering  <jim@meyering.net>
52887
52888         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52889
52890 2006-09-18  Bruno Haible  <bruno@clisp.org>
52891
52892         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52893
52894 2006-09-18  Bruno Haible  <bruno@clisp.org>
52895
52896         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52897         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52898         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52899         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52900         * m4/gettext.m4: Require autoconf >= 2.52.
52901         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52902         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52903         of gl_cv_header_inttypes_h.
52904
52905 2006-09-18  Bruno Haible  <bruno@clisp.org>
52906
52907         * lib/javaversion.c: Include configmake.h.
52908
52909 2006-09-18  Bruno Haible  <bruno@clisp.org>
52910
52911         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52912         avoid that the while loops be executed in a subshell.
52913
52914 2006-09-18  Bruno Haible  <bruno@clisp.org>
52915
52916         * MODULES.html.sh (func_module): Break long lines.
52917         Suggested by Bruce Korb <bkorb@gnu.org>.
52918
52919 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52920
52921         Speed up by a factor of 1.12.
52922         * gnulib-tool (nl): New variable.
52923         (func_import): Rewrite include directive extraction to only read each
52924         directive once.
52925
52926 2006-09-17  Bruno Haible  <bruno@clisp.org>
52927
52928         * modules/javaversion (Makefile.am): Remove DEFS setting.
52929         (Depends-on): Add configmake, for PKGDATADIR definition.
52930
52931 2006-09-17  Bruno Haible  <bruno@clisp.org>
52932
52933         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52934
52935 2006-09-17  Bruno Haible  <bruno@clisp.org>
52936
52937         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52938         (func_modules_transitive_closure, func_modules_add_dummy,
52939         func_modules_to_filelist, func_import, func_create_testdir,
52940         func_create_megatestdir, ...): Use it wherever possible.
52941         Suggested by Ralf Wildenhues.
52942
52943 2006-09-16  Karl Berry  <karl@gnu.org>
52944
52945         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52946         to avoid sectioning errors.
52947         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52948         [ifinfo]: blank line after @center-ed titles.
52949         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52950         Spell FSF address consistently with others.
52951         (These changes approved by rms.)
52952
52953 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52954
52955         Speed up by a factor of 1.61.
52956         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52957         already checked module names again.
52958
52959 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52960
52961         Speed up by a factor of 1.13.
52962         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52963         for new_files, and the input to func_add_or_update.
52964
52965 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52966
52967         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52968         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52969
52970 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52971
52972         * modules/mkancesdirs (Depends-on): Add fcntl.
52973         * modules/savewd: New file.
52974         * MODULES.html.sh (File system functions): Add savewd.
52975
52976         * modules/configmake (Makefile.am): Add support for the
52977         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52978
52979 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * m4/savewd.m4: New file.
52982
52983 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52984
52985         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52986         (dirchownmod): New arg FD.  All callers changed.
52987         Use FD rather than opening the directory ourself, as opening is
52988         now the caller's responsibility.
52989         * lib/dirchownmod.h: Likewise.
52990         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52991         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52992         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52993         (test_dir): Remove.
52994         (mkancesdirs): Return length of prefix of FILE that has already
52995         been made, or -2 if there is a child doing the work.  Redo
52996         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52997         ".", and treat ".." specially since it might stray back into
52998         already-created areas.  Use a subprocess if necessary.  New arg
52999         WD; all users changed.  MAKE_DIR function should now return 1
53000         if it creates a directory that is not readable.  Return -2 if
53001         a child process is spun off.
53002         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
53003         Adjust signature to match code.
53004         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
53005         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
53006         all users changed.
53007         * lib/savewd.c, lib/savewd.h: New files.
53008
53009 2006-09-15  Jim Meyering  <jim@meyering.net>
53010
53011         * modules/rename-dest-slash: New module.
53012         * MODULES.html.sh (posix_compat): Add it here.
53013
53014         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
53015
53016 2006-09-15  Jim Meyering  <jim@meyering.net>
53017
53018         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
53019         file.
53020
53021         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
53022
53023 2006-09-15  Jim Meyering  <jim@meyering.net>
53024
53025         * lib/rename-dest-slash.c (has_trailing_slash): Use
53026         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
53027         (rpl_rename_dest_slash): Perform the cheaper trailing slash
53028         test before testing whether SRC is a directory.
53029         Suggestions from Bruno Haible.
53030
53031         Avoid a warning about an unused variable.
53032         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
53033         into the #ifdef block where it's used.
53034
53035         * lib/rename-dest-slash.c: New file.
53036
53037 2006-09-14  Bruno Haible  <bruno@clisp.org>
53038
53039         * lib/allocsa.c: Include <config.h> unconditionally.
53040         * lib/asnprintf.c: Likewise.
53041         * lib/asprintf.c: Likewise.
53042         * lib/c-strcasecmp.c: Likewise.
53043         * lib/c-strcasestr.c: Likewise.
53044         * lib/c-strncasecmp.c: Likewise.
53045         * lib/c-strstr.c: Likewise.
53046         * lib/classpath.c: Likewise.
53047         * lib/clean-temp.c: Likewise.
53048         * lib/concatpath.c: Likewise.
53049         * lib/copy-file.c: Likewise.
53050         * lib/csharpcomp.c: Likewise.
53051         * lib/csharpexec.c: Likewise.
53052         * lib/execute.c: Likewise.
53053         * lib/fatal-signal.c: Likewise.
53054         * lib/findprog.c: Likewise.
53055         * lib/fwriteerror.c: Likewise.
53056         * lib/gl_array_list.c: Likewise.
53057         * lib/gl_array_oset.c: Likewise.
53058         * lib/gl_avltree_list.c: Likewise.
53059         * lib/gl_avltree_oset.c: Likewise.
53060         * lib/gl_avltreehash_list.c: Likewise.
53061         * lib/gl_carray_list.c: Likewise.
53062         * lib/gl_linked_list.c: Likewise.
53063         * lib/gl_linkedhash_list.c: Likewise.
53064         * lib/gl_list.c: Likewise.
53065         * lib/gl_oset.c: Likewise.
53066         * lib/gl_rbtree_list.c: Likewise.
53067         * lib/gl_rbtree_oset.c: Likewise.
53068         * lib/gl_rbtreehash_list.c: Likewise.
53069         * lib/imaxabs.c: Likewise.
53070         * lib/imaxdiv.c: Likewise.
53071         * lib/javacomp.c: Likewise.
53072         * lib/javaexec.c: Likewise.
53073         * lib/javaversion.c: Likewise.
53074         * lib/linebreak.c: Likewise.
53075         * lib/localcharset.c: Likewise.
53076         * lib/lock.c: Likewise.
53077         * lib/mbchar.c: Likewise.
53078         * lib/mbswidth.c: Likewise.
53079         * lib/mkdtemp.c: Likewise.
53080         * lib/pipe.c: Likewise.
53081         * lib/printf-args.c: Likewise.
53082         * lib/printf-parse.c: Likewise.
53083         * lib/progname.c: Likewise.
53084         * lib/progreloc.c: Likewise.
53085         * lib/readlink.c: Likewise.
53086         * lib/sh-quote.c: Likewise.
53087         * lib/stpcpy.c: Likewise.
53088         * lib/stpncpy.c: Likewise.
53089         * lib/strcasecmp.c: Likewise.
53090         * lib/strcasestr.c: Likewise.
53091         * lib/strcspn.c: Likewise.
53092         * lib/striconv.c: Likewise.
53093         * lib/strncasecmp.c: Likewise.
53094         * lib/strnlen1.c: Likewise.
53095         * lib/strstr.c: Likewise.
53096         * lib/strtok_r.c: Likewise.
53097         * lib/tls.c: Likewise.
53098         * lib/tmpdir.c: Likewise.
53099         * lib/unicodeio.c: Likewise.
53100         * lib/unsetenv.c: Likewise.
53101         * lib/vasnprintf.c: Likewise.
53102         * lib/vasprintf.c: Likewise.
53103         * lib/wait-process.c: Likewise.
53104         * lib/xallocsa.c: Likewise.
53105         * lib/xsetenv.c: Likewise.
53106         * lib/xstriconv.c: Likewise.
53107
53108 2006-09-13  Simon Josefsson  <jas@extundo.com>
53109
53110         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
53111         that internally, suggested by Ralf Wildenhues
53112         <Ralf.Wildenhues@gmx.de>.
53113
53114 2006-09-13  Simon Josefsson  <jas@extundo.com>
53115
53116         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
53117         @LIBOBJS@.
53118         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53119
53120 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53121
53122         * lib/_fpending.c: Include <config.h> unconditionally, since we no
53123         longer worry about uses that don't define HAVE_CONFIG_H.
53124         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
53125         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
53126         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
53127         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
53128         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
53129         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
53130         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
53131         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
53132         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
53133         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
53134         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
53135         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
53136         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
53137         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
53138         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
53139         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
53140         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
53141         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
53142         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
53143         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
53144         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
53145         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
53146         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
53147         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
53148         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
53149         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
53150         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
53151         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
53152         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
53153         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
53154         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
53155         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
53156         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
53157         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
53158         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
53159         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
53160         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
53161         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
53162         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
53163         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
53164         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
53165         Likewise.
53166
53167 2006-09-13  Eric Blake  <ebb9@byu.net>
53168
53169         * lib/getopt.c: Fix typo in last commit.
53170
53171 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53172
53173         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
53174         dgettext.
53175
53176 2006-09-12  Jim Meyering  <jim@meyering.net>
53177
53178         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
53179         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
53180         Reported by Nelson H. F. Beebe.
53181
53182 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53183
53184         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
53185         program_invocation_name and program_invocation_short_name are
53186         initialized.
53187         * lib/argp-namefrob.h: Move declarations of program_invocation_name
53188         and program_invocation_short_name to argp.h, so they are visible
53189         to user programs.
53190         * lib/argp.h: Likewise
53191
53192 2006-09-10  Bruno Haible  <bruno@clisp.org>
53193
53194         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53195         m4/inttypes_h.m4, m4/uintmax_t.m4.
53196
53197 2006-09-10  Bruno Haible  <bruno@clisp.org>
53198
53199         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
53200         gl_AC_TYPE_UINTMAX_T.
53201
53202 2006-09-10  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
53205
53206 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53207
53208         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
53209         convention.  Text proposed by Bruno Haible.
53210         (struct argp_option): Document the use of N_() wrappers.
53211
53212         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
53213         '\v', and translate the two parts separately, instead of feeding
53214         the whole string to gettext.  This allows to exclude
53215         '\v' from the strings visible to the translator by writing doc
53216         strings as N_("..") "\v" N_("..").
53217
53218 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
53219
53220         * config/srclist.txt: Undo latest change; the bug was fixed.
53221
53222 2006-09-09  Bruno Haible  <bruno@clisp.org>
53223
53224         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
53225         assignments if building a library without libtool.
53226         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
53227         in func_emit_lib_Makefile_am.
53228         (func_import): When building a static library libfoo.a, arrange to
53229         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
53230         (func_create_testdir): Likewise.
53231         * modules/gc (configure.ac, Makefile.am): If building statically,
53232         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
53233         * modules/iconvme (configure.ac, Makefile.am): Likewise.
53234         * modules/striconv (configure.ac, Makefile.am): Likewise.
53235         Based on a suggestion by Ralf Wildenhues.
53236
53237 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53238
53239         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
53240         Check for unistd.h too, since Autoconf doesn't assume POSIX.
53241         Also:
53242
53243         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53244         Add year_2050_test to catch glibc bug 2821
53245         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53246
53247         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53248         Prefer #ifdef to #if.
53249
53250         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
53251         Return from 'main' instead of calling 'exit'.
53252
53253 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         * lib/mktime.c (guess_time_tm): Fix bug where mktime
53256         returned the maximum time_t value rather than (time_t) -1.
53257         Problem originally reported by William Bardwell
53258         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
53259
53260         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53261         Moved to here ...
53262         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
53263         ... from here.
53264
53265 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53266
53267         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
53268         2821 is fixed.
53269
53270 2006-09-08  Jim Meyering  <jim@meyering.net>
53271
53272         Don't make generated files read-only.  That would bother too many
53273         people.  However, do retain the ability to work when targets are
53274         read-only: remove the destination and temporary files before writing
53275         them (when generated via sed or echo), or by using the -f option for
53276         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
53277         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53278         * modules/byteswap, modules/configmake, modules/fcntl:
53279         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53280         * modules/localcharset, modules/netinet_in, modules/poll:
53281         * modules/stdbool, modules/stdint, modules/sys_select:
53282         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53283
53284 2006-09-08  Jim Meyering  <jim@meyering.net>
53285
53286         Avoid new build failure on FreeBSD 6.0.
53287         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53288         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53289         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53290
53291 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53292
53293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53294
53295 2006-09-07  Jim Meyering  <jim@meyering.net>
53296
53297         Fix global typo in last change: use chmod u-w, not chmod u-x.
53298         Spotted by Paul Eggert and Bruce Korb.
53299         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53300         * modules/byteswap, modules/configmake, modules/fcntl:
53301         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53302         * modules/localcharset, modules/netinet_in, modules/poll:
53303         * modules/stdbool, modules/stdint, modules/sys_select:
53304         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53305
53306 2006-09-06  Jim Meyering  <jim@meyering.net>
53307
53308         Make generated files be read-only.
53309         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53310         Ensure that each generated file is now read-only.
53311         * modules/argz: Likewise.
53312         * modules/arpa_inet: Likewise.
53313         * modules/byteswap: Likewise.
53314         * modules/configmake: Likewise.
53315         * modules/fcntl: Likewise.
53316         * modules/fnmatch: Likewise.
53317         * modules/getopt: Likewise.
53318         * modules/glob: Likewise.
53319         * modules/inttypes: Likewise.
53320         * modules/netinet_in: Likewise.
53321         * modules/poll: Likewise.
53322         * modules/stdbool: Likewise.
53323         * modules/stdint: Likewise.
53324         * modules/sys_select: Likewise.
53325         * modules/sys_socket: Likewise.
53326         * modules/sys_stat: Likewise.
53327         * modules/sysexits: Likewise.
53328         * modules/localcharset: Same as above, but continue using temporary
53329         file named "t-$@" (why different?) rather than the "$@-t" used
53330         everywhere else.
53331
53332         * modules/sysexits (Makefile.am): Replace literal occurrences
53333         of "sysexit.h" more readable, and more consistent, "$@".
53334
53335 2006-09-06  Bruno Haible  <bruno@clisp.org>
53336
53337         * modules/striconv: New file.
53338         * modules/xstriconv: New file.
53339         * MODULES.html.sh (Internationalization functions): Add striconv,
53340         xstriconv.
53341
53342 2006-09-06  Bruno Haible  <bruno@clisp.org>
53343
53344         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53345         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53346         not using libtool correctly.
53347
53348 2006-09-06  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/striconv.h: New file.
53351         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53352         iconvstring.c.
53353         * lib/xstriconv.h: New file.
53354         * lib/xstriconv.c: New file.
53355
53356 2006-09-06  Bruno Haible  <bruno@clisp.org>
53357
53358         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53359         lib_..._LDFLAGS.
53360
53361 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53362
53363         * lib/argz_.h: Sync from Libtool.
53364
53365         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53366                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53367
53368         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53369
53370 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53371
53372         * modules/trim: New file.
53373
53374 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53375
53376         * lib/trim.h: New file.
53377         * lib/trim.c: New file.
53378
53379 2006-09-05  Bruno Haible  <bruno@clisp.org>
53380
53381         * MODULES.html.sh (String handling): Add trim.
53382
53383 2006-09-04  Karl Berry  <karl@gnu.org>
53384
53385         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53386         until next release.
53387
53388 2006-09-03  Bruno Haible  <bruno@clisp.org>
53389
53390         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53391         correctly.
53392
53393 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53396         not gl_GETLOADAVG.  Omit unneeded semicolons.
53397         Problems reported by Ralf Wildenhues in
53398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53399         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53400         at the end, which is the usual gnulib style.
53401
53402         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53403         of doing all the work ourselves.
53404         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53405         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53406
53407 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53410         Problem reported by Ralf Wildenhues in
53411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53412
53413         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53414         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53415
53416 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53419         yesterday's patch by changing test -n to test -z.
53420
53421 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53424         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53425         the former is now obsolescent.
53426
53427         * modules/chdir-long (Depends-on): Add fcntl.
53428
53429 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53430
53431         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53432         obsolescent, and programs should use gnulib instead.
53433         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53434         but with prefixes changed.
53435
53436 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53437
53438         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53439         or stdbool.h, because they might not exist while configuring.
53440
53441         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53442         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53443         does that for us.
53444         (O_DIRECTORY): Remove.
53445
53446 2006-08-31  Eric Blake  <ebb9@byu.net>
53447
53448         * gnulib-tool: Don't let emacs change spaces to TAB.
53449
53450 2006-08-31  Bruno Haible  <bruno@clisp.org>
53451
53452         * gnulib-tool: When calling func_import more than once, do it in a
53453         subshell.
53454         Reported by Eric Blake <ebb9@byu.net>.
53455
53456 2006-08-31  Bruno Haible  <bruno@clisp.org>
53457
53458         * gnulib-tool (nl): Remove variable.
53459         (sed_transform_lib_file): Use more robust test for config-h module.
53460         (func_import): Fix typo in 2006-08-25 patch.
53461
53462 2006-08-31  Bruno Haible  <bruno@clisp.org>
53463
53464         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53465         specified, augment Makefile.am variables instead of assigning them.
53466
53467 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         Work around a bug in both the Linux and SunOS 64-bit kernels:
53470         nanosleep mishandles sleeps for longer than 2**31 seconds.
53471         Problem reported by Frank v Waveren in
53472         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53474         Check for nanosleep bug.
53475         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53476
53477 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53478
53479         Work around a bug in both the Linux and SunOS 64-bit kernels:
53480         nanosleep mishandles sleeps for longer than 2**31 seconds.
53481         Problem reported by Frank v Waveren in
53482         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53483         * lib/nanosleep.c (BILLION): New constant.
53484         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53485         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53486         implementation.
53487
53488 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53489
53490         * modules/nanosleep (Depends-on): Add gettime.
53491
53492 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53493         and Simon Josefsson  <jas@extundo.com>
53494         and Oskar Liljeblad  <oskar@osk.mine.nu>
53495
53496         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53497         * gnulib-tool (func_import): New license type 'unmodifiable license
53498         text'.
53499         * modules/fdl: Use it.  Longer description.
53500         * module/gpl, module/lgpl: New files.
53501
53502 2006-08-30  Jim Meyering  <jim@meyering.net>
53503
53504         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53505         shadowing the parameter.
53506
53507 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53508
53509         Sync from Libtool:
53510
53511         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53512
53513         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53514         sharing with gnulib.  Report by Eric Blake.
53515
53516 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53517
53518         * modules/isapipe: New file.
53519         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53520
53521 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53522
53523         * modules/configmake (Makefile.am): Add a comment, and omit
53524         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53525         by Bruno Haible.
53526
53527 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53528
53529         * m4/isapipe.m4: New file.
53530
53531 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53532
53533         * lib/isapipe.c, lib/isapipe.h: New files.
53534
53535 2006-08-29  Jim Meyering  <jim@meyering.net>
53536
53537         * modules/configmake (Makefile.am): Make configmake.h depend on
53538         Makefile.  Otherwise, a stale configmake.h could hang around.
53539
53540 2006-08-29  Eric Blake  <ebb9@byu.net>
53541
53542         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53543         resolution of upstream bug 3044.
53544
53545 2006-08-29  Bruno Haible  <bruno@clisp.org>
53546
53547         * modules/localcharset (Depends-on): Add configmake.
53548         (Makefile.am): Remove setting of LIBDIR through DEFS.
53549
53550 2006-08-29  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53553         defined.
53554
53555 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         * modules/fcntl: New file.
53558         * modules/chdir-safer (Depends-on): Add fcntl.
53559         * modules/fts: Likewise.
53560         * modules/mkdir-p: Likewise.
53561
53562         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53563         This undoes the most recent change, since we're now addressing the
53564         problem in a different way.
53565
53566         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53567         into output, since the output might be called Makefile.am even
53568         if $makefile_name is something different.
53569         (func_import): Use $makefile_am rather than
53570         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53571         empty.
53572
53573         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53574
53575 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53576
53577         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53578         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53579         recent change to stdint.m4, since we're now addressing the problem in a
53580         different way.
53581
53582 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53583
53584         * m4/fcntl_h.m4: New file.
53585
53586 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53587
53588         * lib/fcntl_.h: New file.
53589         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53590         the fcntl module.
53591         * lib/dirchownmod.c: Likewise.
53592         * lib/fts.c: Likewise.
53593
53594         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53595         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53596         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53597         just before including <inttypes.h>, to avoid circular inclusion.
53598
53599 2006-08-28  Jim Meyering  <jim@meyering.net>
53600
53601         * doc/visibility.texi: Actually read and correct the grammar of the
53602         sentence affected by yesterday's change.
53603
53604 2006-08-28  Eric Blake  <ebb9@byu.net>
53605
53606         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53607         needs wrapper.
53608
53609 2006-08-28  Eric Blake  <ebb9@byu.net>
53610
53611         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53612
53613 2006-08-28  Eric Blake  <ebb9@byu.net>
53614
53615         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53616
53617 2006-08-28  Bruno Haible  <bruno@clisp.org>
53618
53619         * modules/c-strstr: New file, from GNU gettext.
53620         * MODULES.html.sh (String handling): Add c-strstr.
53621
53622 2006-08-28  Bruno Haible  <bruno@clisp.org>
53623
53624         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53625         macros.
53626         Reported by Eric Blake.
53627
53628 2006-08-28  Bruno Haible  <bruno@clisp.org>
53629
53630         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53631         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53632         * lib/vasprintf.c: Include errno.h, limits.h.
53633         (EOVERFLOW): New fallback definition.
53634         (vasprintf): Test here whether the string length is > INT_MAX.
53635         * lib/vsnprintf.c: Include errno.h, limits.h.
53636         (EOVERFLOW): New fallback definition.
53637         (vsnprintf): Fix bug when generated string was too long for the buffer.
53638         Test here whether the string length is > INT_MAX.
53639
53640 2006-08-28  Bruno Haible  <bruno@clisp.org>
53641
53642         * lib/inttypes_.h (SCNX*): Remove definitions.
53643         Reported by Eric Blake.
53644
53645 2006-08-28  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/c-strstr.h: New file, from GNU gettext.
53648         * lib/c-strstr.c: New file, from GNU gettext.
53649
53650 2006-08-28  Bruno Haible  <bruno@clisp.org>
53651
53652         * gnulib-tool: Reorder some statements.
53653
53654 2006-08-28  Bruno Haible  <bruno@clisp.org>
53655
53656         * gnulib-tool: New option --makefile-name.
53657         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53658         $makefile_name.
53659         (func_import): Write $makefile_name to the cache file, and read it from
53660         there unless explicitly specified. Use $makefile_name as file name
53661         instead of Makefile.am. Adjust the recommendations accordingly.
53662
53663 2006-08-28  Bruno Haible  <bruno@clisp.org>
53664
53665         * gnulib-tool (func_verify_module): Check against misapplying patch.
53666
53667 2006-08-28  Bruno Haible  <bruno@clisp.org>
53668
53669         * gnulib-tool (func_relativize, func_relconcat): New functions.
53670         Give an error if --local-dir is given with --update.
53671         Remove trailing slashes from $local_gnulib_dir.
53672         (func_import): Store the relativized $local_gnulib_dir in
53673         gnulib-cache.m4, and read it from there if not specified explicitly.
53674
53675 2006-08-28  Bruno Haible  <bruno@clisp.org>
53676
53677         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53678         is the current directory. Respect also $local_gnulib_dir.
53679
53680 2006-08-28  Bruno Haible  <bruno@clisp.org>
53681             Simon Josefsson  <jas@extundo.com>
53682
53683         BeOS portability.
53684         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53685
53686 2006-08-27  Jim Meyering  <jim@meyering.net>
53687
53688         * doc/visibility.texi: Remove duplicate word: "pointer".
53689
53690 2006-08-26  Bruno Haible  <bruno@clisp.org>
53691
53692         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53693         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53694         (Makefile.am): Create inttypes.h from inttypes_.h.
53695         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53696
53697         * modules/imaxabs: New file.
53698
53699         * modules/imaxdiv: New file.
53700
53701 2006-08-26  Bruno Haible  <bruno@clisp.org>
53702
53703         * m4/inttypes.m4: New file.
53704         * m4/_inttypes_h.m4: Remove file.
53705         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53706         PRI_MACROS_BROKEN.
53707         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53708
53709         * m4/imaxabs.m4: New file.
53710
53711         * m4/imaxdiv.m4: New file.
53712
53713 2006-08-26  Bruno Haible  <bruno@clisp.org>
53714
53715         * lib/inttypes_.h: New file.
53716         * lib/inttypes.h: Remove file.
53717         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53718
53719         * lib/imaxabs.c: New file.
53720
53721         * lib/imaxdiv.c: New file.
53722
53723 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53724
53725         New config-h module, so that "make" output needn't be cluttered
53726         by -DHAVE_CONFIG_H.
53727         * MODULES.html.sh (Support for building libraries and executables):
53728         Add config-h.
53729         * modules/config-h: New file.
53730         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53731         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53732         the config-h module is used.
53733
53734         New configmake module, so that "make" output needn't be cluttered
53735         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53736         * MODULES.html.sh (Support for building libraries and executables):
53737         Add configmake.
53738         * modules/configmake: New file.
53739
53740 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53741
53742         * m4/config-h.m4: New file.
53743
53744 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * config/srclist.txt: Add elisp-comp.
53747
53748 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * MODULES.html.sh (Support for building libraries and executables):
53751         Add elisp-comp.
53752         * build-aux/elisp-comp: New file.
53753         * modules/elisp-comp: New file.
53754
53755 2006-08-24  Bruno Haible  <bruno@clisp.org>
53756
53757         * gnulib-tool (func_create_testdir): Use non-default values of
53758         sourcebase and m4base.
53759
53760 2006-08-24  Bruno Haible  <bruno@clisp.org>
53761
53762         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53763         HTML structure.
53764
53765 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53766
53767         * modules/openat (Depends-on): Add lchown.
53768
53769 2006-08-23  Bruno Haible  <bruno@clisp.org>
53770
53771         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53772         of gl_LOCK_EARLY instead of gl_LOCK.
53773
53774 2006-08-23  Bruno Haible  <bruno@clisp.org>
53775
53776         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53777         on OSF/1 to no.
53778         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53779
53780 2006-08-23  Bruno Haible  <bruno@clisp.org>
53781
53782         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53783         as unusable.
53784
53785         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53786         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53787         (gl_LOCK): New macro.
53788
53789 2006-08-22  Simon Josefsson  <jas@extundo.com>
53790
53791         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53792         to md5 module.
53793
53794 2006-08-22  Simon Josefsson  <jas@extundo.com>
53795
53796         * MODULES.html.sh: Add "Support for maintaining and release
53797         projects".
53798
53799         * build-aux/gnupload: New file, from coreutils.
53800
53801 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53802
53803         Avoid the need for AC_LIBSOURCES in m4 macros.
53804         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53805         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53806         * modules/check-version (EXTRA_DIST): Add check-version.h.
53807         * modules/crc (EXTRA_DIST): Add crc.h.
53808         * modules/des (EXTRA_DIST): Add des.h.
53809         * modules/gc (EXTRA_DIST): Add gc.h.
53810         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53811         * modules/getline (EXTRA_DIST): Add getline.h.
53812         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53813         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53814         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53815         * modules/md2 (EXTRA_DIST): Add md2.h.
53816         * modules/md4 (EXTRA_DIST): Add md4.h.
53817         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53818         * modules/read-file (EXTRA_DIST): Add read-file.h.
53819         * modules/readline (EXTRA_DIST): Add readline.h.
53820         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53821         rijndael-api-fst.h.
53822
53823 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * m4/rijndael.m4 (gl_ARCFOUR):
53826         * m4/arctwo.m4 (gl_ARCTWO):
53827         * m4/check-version.m4 (gl_CHECK_VERSION):
53828         * m4/crc.m4 (gl_CRC):
53829         * m4/des.m4 (gl_DES):
53830         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53831         * m4/gc.m4 (gl_GC):
53832         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53833         * m4/getline.m4 (gl_FUNC_GETLINE):
53834         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53835         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53836         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53837         * m4/md2.m4 (gl_MD2):
53838         * m4/md4.m4 (gl_MD4):
53839         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53840         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53841         * m4/readline.m4 (gl_FUNC_READLINE):
53842         * m4/rijndael.m4 (gl_RIJNDAEL):
53843         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53844         to get the necessary .h files and whatnot.
53845
53846 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53849         gnulib rather than the other way around.
53850         * config/srclistvars.sh (COREUTILS): Remove.
53851
53852 2006-08-22  Jim Meyering  <jim@meyering.net>
53853
53854         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53855
53856         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53857
53858 2006-08-22  Eric Blake  <ebb9@byu.net>
53859
53860         * modules/regexprops-generic: New file.
53861         * MODULES.html.sh (Support for building documentation): List it.
53862
53863 2006-08-22  Eric Blake  <ebb9@byu.net>
53864
53865         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53866         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53867         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53868         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53869
53870 2006-08-22  Bruno Haible  <bruno@clisp.org>
53871
53872         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53873         and lib_LTLIBRARIES like the other lib_* variables.
53874
53875 2006-08-22  Bruno Haible  <bruno@clisp.org>
53876
53877         * build-aux/x-to-1.in: New file, from GNU gettext.
53878
53879 2006-08-22  Bruno Haible  <bruno@clisp.org>
53880
53881         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53882         <utmpx.h> exists.
53883
53884 2006-08-22  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53887         <utmpx.h> exists.
53888
53889 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         BeOS portability.
53892         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53893         exist.
53894         Problem reported by Bruno Haible.
53895
53896 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53897
53898         Avoid the need for AC_LIBSOURCES in m4 macros.
53899         * modules/acl (EXTRA_DIST): Add acl.h.
53900         * modules/argmatch (Files): Add m4/argmatch.m4.
53901         (configure.ac): Add gl_ARGMATCH.
53902         (EXTRA_DIST): Renamed from lib_SOURCES, for
53903         consistency with the other modules.  Remove argmatch.c.
53904         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53905         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53906         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53907         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53908         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53909         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53910         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53911         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53912         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53913         * modules/closeout (EXTRA_DIST): Add closeout.h.
53914         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53915         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53916         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53917         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53918         dirname.h; remove basename.c and stripslash.c.
53919         * modules/exclude (EXTRA_DIST): Add exclude.h.
53920         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53921         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53922         * modules/file-type (EXTRA_DIST): Add file-type.h.
53923         * modules/filemode (EXTRA_DIST): Add filemode.h.
53924         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53925         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53926         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53927         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53928         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53929         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53930         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53931         * modules/getdate (EXTRA_DIST): Add getdate.c.
53932         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53933         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53934         * modules/getpass (EXTRA_DIST): Add getpass.h.
53935         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53936         * modules/group-member (EXTRA_DIST): Add group-member.h.
53937         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53938         * modules/hash (EXTRA_DIST): Add hash.h.
53939         * modules/human (EXTRA_DIST): Add human.h.
53940         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53941         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53942         * modules/lchown (EXTRA_DIST): Add lchown.h.
53943         * modules/long-options (EXTRA_DIST): Add long-options.h.
53944         * modules/lstat (EXTRA_DIST): Add lstat.h.
53945         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53946         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53947         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53948         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53949         * modules/memxor (EXTRA_DIST): Add memxor.h.
53950         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53951         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53952         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53953         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53954         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53955         * modules/physmem (EXTRA_DIST): Add physmem.h.
53956         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53957         * modules/posixver (EXTRA_DIST): Add posixver.h.
53958         * modules/quote (EXTRA_DIST): Add quote.h.
53959         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53960         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53961         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53962         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53963         regex_internal.h regexec.c.
53964         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53965         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53966         * modules/same (EXTRA_DIST): Add same.h.
53967         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53968         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53969         * modules/savedir (EXTRA_DIST): Add savedir.h.
53970         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53971         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53972         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53973         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53974         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53975         * modules/strdup (EXTRA_DIST): Add strdup.h.
53976         * modules/strftime (EXTRA_DIST): Add strftime.h.
53977         * modules/strndup (EXTRA_DIST): Add strndup.h.
53978         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53979         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53980         * modules/time_r (EXTRA_DIST): Add time_r.h.
53981         * modules/timespec (EXTRA_DIST): Add timespec.h.
53982         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53983         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53984         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53985         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53986         * modules/userspec (EXTRA_DIST): Add userspec.h.
53987         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53988         * modules/utimens (EXTRA_DIST): Add utimens.h.
53989         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53990         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53991         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53992         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53993         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53994         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53995         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53996         * modules/yesno (EXTRA_DIST): Add yesno.h.
53997
53998 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53999
54000         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
54001
54002         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
54003         * m4/dev-ino.m4, same-inode.m4: Remove.
54004
54005         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
54006         * m4/acl.m4 (AC_FUNC_ACL):
54007         * m4/backupfile.m4 (gl_BACKUPFILE):
54008         * m4/c-strtod.m4 (gl_C99_STRTOLD):
54009         * m4/canon-host.m4 (gl_CANON_HOST):
54010         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54011         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
54012         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
54013         * m4/cloexec.m4 (gl_CLOEXEC):
54014         * m4/close-stream.m4 (gl_CLOSE_STREAM):
54015         * m4/closeout.m4 (gl_CLOSEOUT):
54016         * m4/dirfd.m4 (gl_FUNC_DIRFD):
54017         * m4/dirname.m4 (gl_DIRNAME):
54018         * m4/exclude.m4 (gl_EXCLUDE):
54019         * m4/exitfail.m4 (gl_EXITFAIL):
54020         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
54021         * m4/file-type.m4 (gl_FILE_TYPE):
54022         * m4/filemode.m4 (gl_FILEMODE):
54023         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
54024         * m4/fpending.m4 (gl_FUNC_FPENDING):
54025         * m4/fprintftime.m4 (gl_FPRINTFTIME):
54026         * m4/fts.m4 (gl_FUNC_FTS):
54027         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
54028         * m4/getdate.m4 (gl_GETDATE):
54029         * m4/gethrxtime.m4 (gl_GETHRXTIME):
54030         * m4/getpagesize.m4 (gl_GETPAGESIZE):
54031         * m4/getpass.m4 (gl_FUNC_GETPASS):
54032         * m4/gettime.m4 (gl_GETTIME):
54033         * m4/getugroups.m4 (gl_GETUGROUPS):
54034         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
54035         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
54036         * m4/hard-locale.m4 (gl_HARD_LOCALE):
54037         * m4/hash.m4 (gl_HASH):
54038         * m4/idcache.m4 (gl_IDCACHE):
54039         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
54040         * m4/lchown.m4 (gl_FUNC_LCHOWN):
54041         * m4/long-options.m4 (gl_LONG_OPTIONS):
54042         * m4/lstat.m4 (gl_FUNC_LSTAT):
54043         * m4/md5.m4 (gl_MD5):
54044         * m4/memcasecmp.m4 (gl_MEMCASECMP):
54045         * m4/memcoll.m4 (gl_MEMCOLL):
54046         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
54047         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
54048         * m4/memxor.m4 (gl_MEMXOR):
54049         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
54050         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
54051         * m4/modechange.m4 (gl_MODECHANGE):
54052         * m4/mountlist.m4 (gl_MOUNTLIST):
54053         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54054         * m4/openat.m4 (gl_FUNC_OPENAT):
54055         * m4/pathmax.m4 (gl_PATHMAX):
54056         * m4/physmem.m4 (gl_PHYSMEM):
54057         * m4/posixtm.m4 (gl_POSIXTM):
54058         * m4/posixver.m4 (gl_POSIXVER):
54059         * m4/quote.m4 (gl_QUOTE):
54060         * m4/quotearg.m4 (gl_QUOTEARG):
54061         * m4/readtokens.m4 (gl_READTOKENS):
54062         * m4/readutmp.m4 (gl_READUTMP):
54063         * m4/regex.m4 (gl_REGEX):
54064         * m4/safe-read.m4 (gl_SAFE_READ):
54065         * m4/safe-write.m4 (gl_SAFE_WRITE):
54066         * m4/same.m4 (gl_SAME):
54067         * m4/save-cwd.m4 (gl_SAVE_CWD):
54068         * m4/savedir.m4 (gl_SAVEDIR):
54069         * m4/settime.m4 (gl_SETTIME):
54070         * m4/sha1.m4 (gl_SHA1):
54071         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
54072         * m4/stat-macros.m4 (gl_STAT_MACROS):
54073         * m4/stat-time.m4 (gl_STAT_TIME):
54074         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
54075         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
54076         * m4/strdup.m4 (gl_FUNC_STRDUP):
54077         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
54078         * m4/strndup.m4 (gl_FUNC_STRNDUP):
54079         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
54080         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
54081         * m4/time_r.m4 (gl_TIME_R):
54082         * m4/timespec.m4 (gl_TIMESPEC):
54083         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
54084         * m4/unlinkdir.m4 (gl_UNLINKDIR):
54085         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
54086         * m4/userspec.m4 (gl_USERSPEC):
54087         * m4/utimecmp.m4 (gl_UTIMECMP):
54088         * m4/utimens.m4 (gl_UTIMENS):
54089         * m4/xalloc.m4 (gl_XALLOC):
54090         * m4/xgetcwd.m4 (gl_XGETCWD):
54091         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
54092         * m4/xreadlink.m4 (gl_XREADLINK):
54093         * m4/xstrtod.m4 (gl_XSTRTOD):
54094         * m4/yesno.m4 (gl_YESNO):
54095         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54096         to get the necessary .h files and whatnot.
54097
54098 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
54099             Bruno Haible  <bruno@clisp.org>
54100
54101         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
54102         /bin/sh understanding of '!' conditional negation.
54103
54104 2006-08-21  Jim Meyering  <jim@meyering.net>
54105
54106         * modules/openat (Depends-on): Really alphabetize.
54107
54108         * modules/acl (Depends-on): Add error and quote.
54109
54110         * check-module (find_included_lib_files): Add at-func.c to the
54111         ok-to-include-more-than-once white list.
54112
54113         * modules/openat (Depends-on): Add lstat.  Alphabetize.
54114
54115 2006-08-21  Bruno Haible  <bruno@clisp.org>
54116
54117         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54118         Emit a pkgdata_DATA variable only if some snippets add contents to it.
54119         Reported by Martin Lambers <marlam@marlam.de>.
54120
54121 2006-08-21  Bruno Haible  <bruno@clisp.org>
54122
54123         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
54124         specify an installation location, don't emit a noinst_LIBRARIES or
54125         noinst_LTLIBRARIES assignment.
54126
54127 2006-08-21  Bruno Haible  <bruno@clisp.org>
54128
54129         BeOS portability.
54130         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
54131         BeOS has mbrtowc() but no <wctype.h>.
54132
54133 2006-08-21  Bruno Haible  <bruno@clisp.org>
54134
54135         BeOS portability.
54136         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
54137         exist.
54138
54139 2006-08-21  Bruno Haible  <bruno@clisp.org>
54140
54141         BeOS portability.
54142         * lib/mbchar.h: Include <wctype.h> only if it exists.
54143
54144 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         Remove files that are no longer needed by their respective modules.
54147         * m4/obstack.m4: Remove.
54148         * m4/strerror_r.m4: Remove.
54149         * m4/uint32_t.m4: Remove.
54150         * m4/uintptr_t.m4: Remove.
54151         * m4/ullong_max.m4: Remove.
54152         * m4/xstrtoimax.m4: Remove.
54153         * m4/xstrtoumax.m4: Remove.
54154
54155         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
54156         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
54157         dependencies now capture this.
54158
54159         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
54160         Do not use AC_LIBSOURCES, since gnulib modules now do this.
54161         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
54162         * m4/human.m4 (gl_HUMAN): Likewise.
54163         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
54164         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
54165
54166         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
54167
54168         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
54169         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
54170         stdint.
54171         * m4/human.m4 (gl_HUMAN): Likewise.
54172         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
54173         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
54174         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54175         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54176         * m4/xstrtol (gl_XSTRTOL): Likewise.
54177
54178         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
54179         AC_TYPE_LONG_LONG_INT.
54180         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
54181         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
54182         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
54183         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
54184
54185         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
54186         on stdbool.
54187
54188         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
54189         (gl_PREREQ_XSTRTOUL): Remove.
54190
54191         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
54192
54193         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
54194         mode.
54195
54196 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54197
54198         Add and change modules to make it easier for coreutils to use
54199         gnulib-tool.
54200         * modules/backupfile (Files): Remove m4/d-ino.m4.
54201         (Depends-on): Add d-ino.
54202         * modules/cycle-check (Depends-on): Add stdint.
54203         (lib_SOURCES): Add cycle-check.h.
54204         * modules/d-ino: New module.
54205         * modules/d-type: New module.
54206         * modules/error (Files): Remove m4/strerror_r.m4.
54207         * modules/filemode (Files): Add m4/st_dm_mode.m4.
54208         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54209         m4/inttypes_h.m4, m4/uintmax_t.m4.
54210         (Depends-on): Add stdint.
54211         (lib_SOURCES): Add fsusage.h.
54212         * modules/getcwd (Files): Remove d-ino.m4.
54213         (Depends-on): Add d-ino.
54214         * modules/getndelim2 (Depends-on): Add stdint.
54215         * modules/glob (Files): Remove m4/d-type.m4.
54216         (Depends-on): Add d-type.
54217         * modules/host-os: New module.
54218         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
54219         m4/inttypes_h.m4, m4/uintmax_t.m4.
54220         * Depends-on: Add stdint.
54221         (lib_SOURCES): Add human.h.
54222         * modules/inttostr (Files): Remove m4/intmax_t.m4,
54223         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
54224         m4/uintmax_t.m4, m4/ulonglong.m4.
54225         (Depends-on): Add stdint.
54226         (EXTRA_DIST): Add inttostr.h.
54227         * modules/lchmod: New module.
54228         * modules/link-follow: New module.
54229         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
54230         (Depends-on): Add lchmod.
54231         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
54232         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
54233         (Depends-on): Add stdint.
54234         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
54235         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
54236         (Depends-on): Add stdint.
54237         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
54238         * modules/perl: New module.
54239         * modules/regex (Depends-on): Add stdint.
54240         * modules/rmdir-errno: New module.
54241         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54242         m4/intmax_t.m4.
54243         (Depends-on): Add stdint.
54244         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
54245         m4/uintmax_t.m4.
54246         (Depends-on): Add stdint.
54247         * modules/unlink-busy: New module.
54248         * modules/utimecmp (Depends-on): Add stdint.
54249         * modules/uptime: New module.
54250         * modules/winsz-ioctl: New module.
54251         * modules/winsz-termios: New module.
54252         * modules/xnanosleep (Depends-on): Add nanosleep.
54253         * modules/ullong_max: Remove.
54254         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
54255         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
54256         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
54257         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
54258         (Depends-on): Add inttypes.
54259         (lib_SOURCES): Add xstrtol.h.
54260         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
54261         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
54262         * MODULES.html.sh: Move 'assert' into the assert section.
54263         Move 'dummy' into the linking section.
54264         Remove ullong_max.
54265         Add section for compatibility checks for POSIX:2001 functions,
54266         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
54267         winsz-ioctl, and winsz-termios into it.
54268         Add lchmod.
54269         Add top-level Misc section and put host-os, perl, and uptime
54270         into it.
54271
54272 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54273
54274         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
54275         now assume the stdint module.  Do not include inttypes.h.
54276         * lib/fsusage.h: Likewise.
54277         * lib/getndelim2.c: Likewise.
54278         * lib/human.h: Likewise.
54279         * lib/inttostr.h: Likewise.
54280         * lib/obstack.c: Likewise.
54281         * lib/regex_internal.h: Likewise.
54282         * lib/tempname.c: Likewise.
54283         * lib/utimecmp.c: Likewise.
54284         * lib/xstrtol.h: Likewise.
54285
54286         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54287
54288         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54289         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54290         * lib/xtime.h: Likewise.
54291
54292 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54293
54294         * modules/openat (Files): Add lib/fchmodat.c.
54295         Fixes problem reported by Jay Youngman.
54296
54297 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54298
54299         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54300         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54301
54302 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54303             Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54306         and is a script that invokes bison. Tighten the code. Add comments.
54307
54308 2006-08-18  Jim Meyering  <jim@meyering.net>
54309
54310         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54311         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54312         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54313         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54314
54315 2006-08-18  Bruno Haible  <bruno@clisp.org>
54316
54317         * modules/bison-i18n: New file.
54318         * MODULES.html.sh (Internationalization functions): Add it.
54319
54320 2006-08-18  Bruno Haible  <bruno@clisp.org>
54321
54322         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54323         sys/statvfs.h. When getmntinfo was found, check its declaration and
54324         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54325
54326 2006-08-18  Bruno Haible  <bruno@clisp.org>
54327
54328         * m4/bison-i18n.m4: New file, from bison.
54329
54330 2006-08-18  Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54333         (ME_DUMMY): Treat "kernfs" as a dummy.
54334         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54335
54336 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         Update from coreutils.
54339
54340         2006-08-15  Jim Meyering  <jim@meyering.net>
54341
54342         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54343
54344         2006-01-17  Jim Meyering  <jim@meyering.net>
54345
54346         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54347
54348         2006-01-11  Jim Meyering  <jim@meyering.net>
54349
54350         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54351         Check for the lchmod function.
54352
54353 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54354
54355         Update from coreutils.
54356
54357         * lib/__fpending.h: Add copyright notice.
54358         * lib/fprintftime.h: Likewise.
54359         * lib/savedir.c: Use (C) in copyright notice.
54360         * lib/savedir.h: Likewise.
54361
54362         2006-08-15  Jim Meyering  <jim@meyering.net>
54363
54364         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54365         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54366         in support of the EXPECTED_ERRNO macro.
54367         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54368         definitions.  Instead, define the appropriate symbols and include
54369         "at-func.c".
54370         * lib/mkdirat.c (mkdirat): Likewise.
54371         * lib/fchmodat.c (fchmodat): Likewise.
54372         (ENOSYS): Remove definition.
54373         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54374         it.  Don't include "unistd--.h" -- it wasn't ever used.
54375
54376         2006-01-17  Jim Meyering  <jim@meyering.net>
54377
54378         Rewrite fts.c not to change the current working directory,
54379         by using openat, fstatat, fdopendir, etc..
54380
54381         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54382         (HAVE_OPENAT_SUPPORT): Define.
54383         [_LIBC] (fchdir): Don't undef or define; no longer used.
54384         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54385         Now, this `function' always succeeds, and consumes its file descriptor
54386         parameter -- so callers must not close such FDs.  Update callers.
54387         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54388         (diropen): Add parameter, SP.  Adjust all callers.
54389         Implement using diropen_fd, rather than open.
54390         (fts_open): Initialize new member, fts_cwd_fd.
54391         Remove fts_rft-setting code.
54392         (fts_close): Close fts_cwd_fd, if necessary.
54393         (__opendir2): Define in terms of opendir or opendirat,
54394         depending on whether the FST_NOCHDIR flag is set.
54395         (fts_build): Since fts_safe_changedir consumes its FD, and since
54396         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54397         and close the dup'd file descriptor upon failure.
54398         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54399         (fts_safe_changedir): Tweak semantics to reflect that this function
54400         now calls cwd_advance_fd and hence consumes its FD argument.
54401         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54402         [struct FTS] (fts_rft): Remove now-unused member.
54403         [struct FTS] (fts_cycle.state): Improve comment.
54404
54405         * lib/openat.c (openat_needs_fchdir): New function.
54406         * lib/openat.h (openat_needs_fchdir): Declare it.
54407
54408 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54409
54410         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54411         Problem and fix reported by Pádraig Brady in
54412         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54413
54414 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54415
54416         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54417
54418 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * lib/memcoll.c (memcoll): Optimize for the common case where the
54421         arguments are bytewise equal.
54422
54423 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         * doc/regexprops-generic.texi: Add a copyright notice.
54426
54427 2006-08-15  Bruno Haible  <bruno@clisp.org>
54428
54429         * modules/tmpdir (License): Change to LGPL.
54430
54431 2006-08-15  Bruno Haible  <bruno@clisp.org>
54432
54433         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54434         module.
54435
54436 2006-08-14  Simon Josefsson  <jas@extundo.com>
54437
54438         * config/srclist.txt: Add gnupload.
54439
54440 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         Change copyright notice from LGPL 2 to GPL 2, since that's the
54443         standard form used in the gnulib repository.
54444         * tests/test-lock.c: Likewise.
54445         * tests/test-stdint.c: Likewise.
54446         * tests/test-tls.c: Likewise.
54447
54448         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54449         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54450         Add copyright notice.
54451
54452         * check-module: Add copyright notice.  Output a copyright
54453         notice if "--version" is specified.
54454         * modules/COPYING: New file.
54455         * tests/test-getaddrinfo.c: Add copyright notice.
54456         * tests/test-verify.c: Likewise.
54457
54458 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54459
54460         Change copyright notice from LGPL 2 to GPL 2, since that's the
54461         standard form used in the gnulib repository.
54462         * lib/lock.c: LGPL -> GPL.
54463         * lib/lock.h: Likewise.
54464         * lib/strnlen1.c: Likewise.
54465         * lib/strnlen1.h: Likewise.
54466         * lib/tls.c: Likewise.
54467         * lib/tls.h: Likewise.
54468         * lib/tmpdir.c: Likewise.
54469
54470         * lib/TODO: Remove; this belongs only in coreutils.
54471
54472 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54473
54474         Add copyright notices to long-enough files that lack them, since
54475         otherwise the files aren't clearly free.  Use the same notice that
54476         getdate.texi already uses.
54477         * doc/alloca-opt.texi: Add copyright notice.
54478         * doc/alloca.texi: Likewise.
54479         * doc/ctime.texi: Likewise.
54480         * doc/functions.texi: Likewise.
54481         * doc/gcd.texi: Likewise.
54482         * doc/gnulib-tool.texi: Likewise.
54483         * doc/inet_ntoa.texi: Likewise.
54484         * doc/visibility.texi: Likewise.
54485
54486         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54487         * doc/quote.texi: Add copyright notice.
54488
54489         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54490         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54491         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54492         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54493         is now obsolete, and give a pointer to the Sun list.
54494         Add copyright notice.
54495
54496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54497
54498         * config/srclistvars.sh: Add copyright notice.
54499
54500 2006-08-14  Eric Blake  <ebb9@byu.net>
54501
54502         Import the following change from libc:
54503
54504         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54505
54506         Upstream bug 2997.
54507         * lib/misc/error.c: Add space between program name and message if file
54508         name is missing.
54509
54510 2006-08-12  Karl Berry  <karl@gnu.org>
54511
54512         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54513         remove, these originate in gnulib now.
54514
54515 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54516
54517         * doc/Makefile (standards.info standards.html standards.dvi):
54518         Also depend on make-stds.texi.
54519
54520 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54521
54522         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54523         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54524
54525         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54526         in wchar_t.  Problem reported by Eric Blake.
54527
54528         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54529         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54530         Also, help the compiler to keep LEN in a register.
54531
54532 2006-08-11  Eric Blake  <ebb9@byu.net>
54533
54534         * users.txt: Sort.  Add tar.
54535
54536 2006-08-11  Bruno Haible  <bruno@clisp.org>
54537
54538         * users.txt: New file.
54539
54540 2006-08-11  Bruno Haible  <bruno@clisp.org>
54541
54542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54543         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54544
54545 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         * modules/snprintf (Depends-on): Remove minmax.
54548         (Maintainer): Add self and Bruno.
54549
54550 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54551
54552         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54553         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54554         (EOVERFLOW): Define if the system does not.
54555         Do not include "minmax.h"; it wasn't used.
54556         (snprintf): Don't assume size_t promotes to an unsigned type.
54557         Fix bug when generated string was too long for the buffer: the
54558         buffer's contents are supposed to be the initial prefix of the
54559         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54560         exceeds INT_MAX; do the check ourselves.
54561
54562         Import the following changes from libc:
54563
54564         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54565
54566         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54567         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54568         set wc to the byte which couldn't be converted.
54569         (re_string_reconstruct): Don't clear valid_raw_len before calling
54570         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54571         tip_context using re_string_context_at.
54572
54573         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54574
54575         * lib/posix/regex.h: g++ still cannot handled [restrict].
54576
54577         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54578
54579         * lib/posix/regex.h: Remove special handling for VMS.
54580
54581 2006-08-10  Jim Meyering  <jim@meyering.net>
54582
54583         * modules/same-inode: New module.
54584         * modules/dev-ino: New module.
54585         * modules/cycle-check: Depend on these modules, rather than simply
54586         including their .h files.
54587         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54588         required via m4/cycle-check.m4.
54589         * modules/same: Depend on new same-inode module, rather than
54590         including same-inode.h.
54591         * modules/chdir-safer: New file.
54592
54593         * modules/chown (Depends-on): Add stat-macros.
54594
54595 2006-08-10  Jim Meyering  <jim@meyering.net>
54596
54597         * m4/cycle-check.m4: New file.
54598         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54599         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54600
54601 2006-08-10  Eric Blake  <ebb9@byu.net>
54602
54603         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54604         in from original proposal.
54605
54606 2006-08-10  Eric Blake  <ebb9@byu.net>
54607         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54608
54609         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54610         namespace.
54611
54612 2006-08-10  Bruno Haible  <bruno@clisp.org>
54613
54614         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54615         as well.
54616
54617 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54618
54619         Sync from coreutils.
54620
54621         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54622
54623         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54624         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54625
54626 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * modules/restrict: Remove; no longer needed now that we assume
54629         Autoconf 2.59 or later.
54630         * MODULES.html.sh: Remove 'restrict'.
54631         * modules/argp (Depends-on): Remove 'restrict'.
54632         * modules/base64 (Depends-on): Likewise.
54633         * modules/gc (Depends-on): Likewise.
54634         * modules/getaddrinfo (Depends-on): Likewise.
54635         * modules/glob (Depends-on): Likewise.
54636         * modules/inet_ntop (Depends-on): Likewise.
54637         * modules/inet_pton (Depends-on): Likewise.
54638         * modules/memxor (Depends-on): Likewise.
54639         * modules/regex (Depends-on): Likewise.
54640         * modules/strtok_r (Depends-on): Likewise.
54641         * modules/time_r (Depends-on): Likewise.
54642
54643 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54644
54645         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54646         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54647         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54648         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54649         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54650         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54651         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54652         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54653
54654         Merge from coreutils.
54655         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54656         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54657         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54658         * m4/time_r.m4 (gl_TIME_R): Likewise.
54659
54660 2006-08-09  Karl Berry  <karl@gnu.org>
54661
54662         * config/srclist.txt: no more gettext-tools, per Bruno.
54663
54664 2006-08-08  Eric Blake  <ebb9@byu.net>
54665
54666         * modules/verror: New module.
54667         * MODULES.html.sh: Document it.
54668
54669 2006-08-08  Eric Blake  <ebb9@byu.net>
54670
54671         * lib/verror.h, lib/verror.c: New files.
54672
54673 2006-08-08  Eric Blake  <ebb9@byu.net>
54674
54675         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54676         verror_at_line output complies with GNU Coding Standards even when
54677         file is NULL.
54678
54679 2006-08-07  Bruno Haible  <bruno@clisp.org>
54680
54681         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54682         versions of AIX.
54683         Reported by Ralf Wildenhues.
54684
54685 2006-08-07  Bruno Haible  <bruno@clisp.org>
54686
54687         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54688         in an AC_DEFUN. Needed so that the autoconf snippets can use
54689         AC_REQUIRE.
54690
54691 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54692
54693         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54694         Initialize pkgdata_DATA.
54695         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54696         overriding it.
54697
54698 2006-08-06  Eric Blake  <ebb9@byu.net>
54699
54700         * lib/error.h: Fold in some upstream changes from glibc.
54701         * lib/error.c: Likewise.
54702
54703 2006-08-04  Bruno Haible  <bruno@clisp.org>
54704
54705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54706         Make the mostlyclean-local rule depend on mostlyclean-generic.
54707         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54708
54709 2006-07-31  Bruno Haible  <bruno@clisp.org>
54710
54711         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54712         <stdlib.h>, <string.h>.
54713
54714 2006-07-30  Bruno Haible  <bruno@clisp.org>
54715
54716         * modules/readlink (License): Change to LGPL.
54717
54718 2006-07-30  Bruno Haible  <bruno@clisp.org>
54719
54720         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54721         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54722         set PKGDATADIR to point to it.
54723
54724 2006-07-30  Bruno Haible  <bruno@clisp.org>
54725
54726         * modules/csharpexec (configure.ac): Comment out macro invocation.
54727         * modules/javaexec (configure.ac): Likewise.
54728         * modules/javacomp-script (configure.ac): Likewise.
54729
54730         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54731
54732 2006-07-30  Bruno Haible  <bruno@clisp.org>
54733
54734         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54735         linked-list.
54736
54737 2006-07-30  Bruno Haible  <bruno@clisp.org>
54738
54739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54740
54741 2006-07-30  Bruno Haible  <bruno@clisp.org>
54742
54743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54744         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54745         get removed.
54746
54747 2006-07-29  Bruno Haible  <bruno@clisp.org>
54748
54749         Make it possible for gnulib-tool to work with locally modified or
54750         augmented gnulib repositories.
54751         * gnulib-tool (func_usage): Document --local-dir option.
54752         (local_gnulib_dir): New variable.
54753         Handle --local-dir option.
54754         (func_lookup_file): New function.
54755         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54756         (func_get_description, func_get_filelist, func_get_description,
54757         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54758         func_get_automake_snippet, func_get_include_directive,
54759         func_get_license, func_get_maintainer): Use func_lookup_file.
54760         (func_import, func_create_testdir): Use func_lookup_file.
54761
54762 2006-07-29  Bruno Haible  <bruno@clisp.org>
54763
54764         * modules/setenv (Depends-on): Add unistd.
54765
54766 2006-07-29  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54769
54770 2006-07-29  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54773
54774 2006-07-29  Bruno Haible  <bruno@clisp.org>
54775
54776         * gnulib-tool (import, update): If there is no Makefile.am, look at
54777         aclocal.m4, instead of bailing out.
54778
54779 2006-07-29  Bruno Haible  <bruno@clisp.org>
54780
54781         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54782         Categorize the options by when they are useful.
54783
54784 2006-07-29  Bruno Haible  <bruno@clisp.org>
54785
54786         * gnulib-tool (func_usage): Document option --no-libtool.
54787         Handle option --no-libtool.
54788         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54789         for changed semantics of $libtool variable.
54790         (func_import): Likewise. If libtool is not used, show this through
54791         an option --no-libtool.
54792         (func_create_testdir): Update.
54793
54794 2006-07-29  Bruno Haible  <bruno@clisp.org>
54795
54796         * gnulib-tool (func_import): Extend error message about missing
54797         --doc-base.
54798
54799 2006-07-29  Bruno Haible  <bruno@clisp.org>
54800
54801         * gnulib-tool (func_import): Don't create the $docbase directory if
54802         there is no file to store there.
54803
54804 2006-07-29  Bruno Haible  <bruno@clisp.org>
54805
54806         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54807         relevant, look for configure.ac there, not in the current directory.
54808         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54809
54810 2006-07-29  Bruno Haible  <bruno@clisp.org>
54811
54812         * gnulib-tool (SORT): New variable.
54813         (func_usage): Undocument --assume-autoconf option.
54814         Remove --assume-autoconf option handling.
54815         (autoconf_minversion): Determine from the contents of configure.ac.
54816         (func_import): Remove autoconf_minversion handling.
54817         Suggested by Eric Blake.
54818
54819 2006-07-29  Bruno Haible  <bruno@clisp.org>
54820
54821         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54822
54823 2006-07-29  Bruno Haible  <bruno@clisp.org>
54824
54825         * config/srclist.txt (*setenv.[ch]): Remove rules.
54826
54827 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54828
54829         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54830
54831 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54832
54833         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54834         arpa/inet.h.
54835
54836 2006-07-28  Simon Josefsson  <jas@extundo.com>
54837
54838         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54839         * modules/inet_pton (Depends-on): Likewise.
54840
54841 2006-07-28  Simon Josefsson  <jas@extundo.com>
54842
54843         * m4/netinet_in_h.m4: New file.
54844
54845 2006-07-28  Simon Josefsson  <jas@extundo.com>
54846
54847         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54848         #include's.
54849
54850 2006-07-28  Simon Josefsson  <jas@extundo.com>
54851
54852         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54853         #include's.
54854
54855 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54858         setgid on directories only if they set these bits.
54859         * lib/modechange.h: Remove obsolete comment about masks.
54860
54861 2006-07-28  Eric Blake  <ebb9@byu.net>
54862
54863         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54864         macro expansion.
54865
54866 2006-07-28  Bruno Haible  <bruno@clisp.org>
54867
54868         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54869
54870 2006-07-28  Bruno Haible  <bruno@clisp.org>
54871
54872         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54873
54874 2006-07-28  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54877         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54878         Define fallbacks.
54879         Avoids link error on FreeBSD 4.x.
54880         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54881
54882         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54883         encoding.
54884         * lib/mbswidth.c (iswcntrl): Likewise.
54885
54886 2006-07-27  Bruno Haible  <bruno@clisp.org>
54887
54888         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54889         test.
54890
54891 2006-07-27  Bruno Haible  <bruno@clisp.org>
54892
54893         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54894         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54895         defined.
54896
54897 2006-07-26  Eric Blake  <ebb9@byu.net>
54898
54899         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54900
54901 2006-07-26  Eric Blake  <ebb9@byu.net>
54902
54903         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54904         like mingw that lack mkstemp.
54905         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54906         avoid compilation warning on mingw.
54907
54908 2006-07-26  Bruno Haible  <bruno@clisp.org>
54909
54910         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54911         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54912         INT_FAST*_MIN, INTPTR_MIN.
54913
54914 2006-07-25  Bruno Haible  <bruno@clisp.org>
54915
54916         * modules/version-etc (Depends-on): Add stdarg.
54917
54918 2006-07-25  Bruno Haible  <bruno@clisp.org>
54919
54920         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54921         complex commands.
54922
54923 2006-07-25  Bruno Haible  <bruno@clisp.org>
54924
54925         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54926         defined in <stdarg.h> or config.h.
54927
54928 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54931         (gl_STDIO_SAFER): Remove.
54932
54933 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         * MODULES.html.sh (File stream based Input/Output):
54936         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54937         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54938         * modules/fopen-safer, modules/tmpfile-safer: New files.
54939         * modules/stdio-safer: Remove.
54940
54941 2006-07-24  Bruno Haible  <bruno@clisp.org>
54942
54943         * modules/tmpdir: New file.
54944         * MODULES.html.sh (File system functions): Add it.
54945
54946 2006-07-24  Bruno Haible  <bruno@clisp.org>
54947
54948         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54949         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54950
54951 2006-07-24  Bruno Haible  <bruno@clisp.org>
54952
54953         * modules/clean-temp: New file.
54954
54955 2006-07-24  Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/tmpdir.m4: New file, from GNU gettext.
54958
54959 2006-07-24  Bruno Haible  <bruno@clisp.org>
54960
54961         * lib/tmpdir.h: New file, from GNU gettext.
54962         * lib/tmpdir.c: New file, from GNU gettext.
54963
54964 2006-07-24  Bruno Haible  <bruno@clisp.org>
54965
54966         * lib/clean-temp.h: New file, from GNU gettext.
54967         * lib/clean-temp.c: New file, from GNU gettext.
54968
54969 2006-07-23  Eric Blake  <ebb9@byu.net>
54970
54971         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54972         (Depends-on): Add binary-io.
54973
54974 2006-07-23  Eric Blake  <ebb9@byu.net>
54975
54976         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54977
54978 2006-07-23  Eric Blake  <ebb9@byu.net>
54979
54980         * lib/tmpfile-safer.c: New file.
54981         * lib/stdio-safer.h (fopen_safer): Add prototype.
54982         * lib/stdio--.h (tmpfile): Make safer.
54983
54984 2006-07-23  Bruno Haible  <bruno@clisp.org>
54985
54986         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54987         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54988         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54989         gl_linked_remove_at): Use it.
54990
54991 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54992         and Simon Josefsson <jas@extundo.com>
54993
54994         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54995
54996         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54997
54998 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54999
55000         * modules/close-stream: New file.
55001         * modules/closeout (Description): Make it clear that it exits
55002         with a diagnostic on error.
55003         (Depends-on): Add close-stream.  Remove fpending, stdbool.
55004         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
55005
55006 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * m4/close-stream.m4: New file.
55009
55010 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55011
55012         * lib/close-stream.c, lib/close-stream.h: New files.
55013
55014 2006-07-22  Bruno Haible  <bruno@clisp.org>
55015
55016         Merge from GNU gettext 0.15.
55017
55018         2006-05-01  Bruno Haible  <bruno@clisp.org>
55019
55020                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
55021
55022         2006-07-22  Bruno Haible  <bruno@clisp.org>
55023
55024                 * modules/javaversion: New file.
55025                 * MODULES.html.sh (Java): Add javaversion.
55026
55027         2006-03-12  Bruno Haible  <bruno@clisp.org>
55028
55029                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
55030
55031         2005-12-04  Bruno Haible  <bruno@clisp.org>
55032
55033                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
55034                 (untested).
55035
55036         2006-06-21  Bruno Haible  <bruno@clisp.org>
55037
55038                 Avoid warnings from recent versions of mcs.
55039                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
55040                 -o, -L, -r any more. Use options documented since mcs-1.0
55041                 instead. Similarly for -g.
55042
55043         2005-12-04  Bruno Haible  <bruno@clisp.org>
55044
55045                 * build-aux/csharpcomp.sh.in: Suffix for resources is
55046                 .resources, not .resource.
55047
55048         2005-07-09  Bruno Haible  <bruno@clisp.org>
55049
55050                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
55051                 add a .dll suffix.
55052                 Reported by Mark Junker <mjscod@gmx.de>.
55053
55054         2006-07-22  Bruno Haible  <bruno@clisp.org>
55055
55056                 * modules/gettext: Upgrade to gettext-0.15.
55057                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
55058                 m4/visibility.m4.
55059                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
55060
55061 2006-07-22  Bruno Haible  <bruno@clisp.org>
55062
55063         Merge from GNU gettext 0.15.
55064
55065         2006-03-25  Bruno Haible  <bruno@clisp.org>
55066
55067                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
55068
55069         2006-07-21  Bruno Haible  <bruno@clisp.org>
55070
55071                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
55072                 "1.1".
55073
55074         2006-05-09  Bruno Haible  <bruno@clisp.org>
55075
55076                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
55077                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
55078                 for the conftestver execution.
55079
55080         2006-05-01  Bruno Haible  <bruno@clisp.org>
55081
55082                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
55083                 optional target-version argument. Verify that the compiler
55084                 groks source of the specified source-version, or add -source
55085                 option as necessary. Verify that the compiler produces
55086                 bytecode in the specified target-version, or add -target and
55087                 -source options as necessary. Make the result of the test
55088                 available as variable CONF_JAVAC. Also log error output in
55089                 config.log.
55090
55091         2006-03-11  Bruno Haible  <bruno@clisp.org>
55092
55093                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
55094
55095         2006-05-09  Bruno Haible  <bruno@clisp.org>
55096
55097                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
55098                 CLASSPATH_SEPARATOR to a semicolon.
55099
55100         2006-03-12  Bruno Haible  <bruno@clisp.org>
55101
55102                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
55103                 available as variable CONF_JAVA, for subsequent autoconf
55104                 tests. Also log error output in config.log.
55105
55106         2006-07-19  Bruno Haible  <bruno@clisp.org>
55107
55108                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
55109                 that getline works on glibc2 systems. Needed to avoid trouble
55110                 in relocatable.c.
55111                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
55112
55113         2005-12-04  Bruno Haible  <bruno@clisp.org>
55114
55115                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
55116                 launcher (untested).
55117
55118         2005-12-04  Bruno Haible  <bruno@clisp.org>
55119
55120                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
55121
55122         2006-07-22  Bruno Haible  <bruno@clisp.org>
55123
55124                 * gettext.m4: Update from GNU gettext-0.15.
55125                 * nls.m4: Likewise.
55126                 * po.m4: Likewise.
55127                 * inttypes-pri.m4: Likewise.
55128                 * inttypes-h.m4: Renamed from inttypes.m4.
55129                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
55130
55131 2006-07-22  Bruno Haible  <bruno@clisp.org>
55132
55133         Merge from GNU gettext 0.15.
55134
55135         2005-07-05  Bruno Haible  <bruno@clisp.org>
55136
55137                 * printf-args.c (printf_fetchargs): Work around broken
55138                 definition of wint_t on mingw.
55139
55140         2005-02-12  Bruno Haible  <bruno@clisp.org>
55141
55142                 * xallocsa.h: Add extern "C" for C++.
55143
55144         2006-05-17  Bruno Haible  <bruno@clisp.org>
55145
55146                 Cygwin portability.
55147                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
55148
55149         2006-04-30  Bruno Haible  <bruno@clisp.org>
55150
55151                 * progreloc.c: Include <mach-o/dyld.h> if available.
55152                 (find_executable): Use _NSGetExecutablePath when possible.
55153
55154         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55155
55156                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
55157                 function.
55158
55159         2005-12-29  Bruno Haible  <bruno@clisp.org>
55160
55161                 * progreloc.c (set_program_name_and_installdir): Fix
55162                 compilation error.
55163
55164         2005-12-04  Bruno Haible  <bruno@clisp.org>
55165
55166                 Cygwin portability.
55167                 * progreloc.c: Include <windows.h> also on Cygwin.
55168                 (find_executable): Add support for Cygwin.
55169                 (set_program_name_and_installdir): Handle also platforms with
55170                 nonempty EXEEXT.
55171
55172         2006-07-11  Bruno Haible  <bruno@clisp.org>
55173
55174                 * javacomp.c: Fix a comment.
55175                 Reported by Jim Meyering.
55176
55177         2006-04-30  Bruno Haible  <bruno@clisp.org>
55178
55179                 * javacomp.h (compile_java_class): Add source_version,
55180                 target_version arguments.
55181                 * javacomp.c: Rewritten to choose only a compiler that
55182                 respects the specified source_version and target_version.
55183
55184         2006-06-27  Bruno Haible  <bruno@clisp.org>
55185
55186                 Assume correct S_ISDIR macro.
55187                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
55188
55189         2006-07-22  Bruno Haible  <bruno@clisp.org>
55190
55191                 * javaversion.h: New file, from GNU gettext.
55192                 * javaversion.c: New file, from GNU gettext.
55193                 * javaversion.java: New file, from GNU gettext.
55194                 * javaversion.class: New file, from GNU gettext.
55195
55196         2006-05-17  Bruno Haible  <bruno@clisp.org>
55197
55198                 Cygwin portability.
55199                 * javaexec.c (execute_java_class): Test for jview program
55200                 also on Cygwin.
55201
55202         2006-04-09  Bruno Haible  <bruno@clisp.org>
55203
55204                 * fatal-signal.c: Don't include string.h.
55205                 (at_fatal_signal): Use a copying loop instead of memcpy.
55206
55207         2005-12-04  Bruno Haible  <bruno@clisp.org>
55208
55209                 * csharpexec.c: Add support for 'clix' launcher (untested).
55210                 (execute_csharp_using_sscli): New function.
55211                 (execute_csharp_program): Call it.
55212
55213         2006-06-21  Bruno Haible  <bruno@clisp.org>
55214
55215                 Avoid warnings from recent versions of mcs.
55216                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
55217                 -o, -L, -r any more. Use options documented since mcs-1.0
55218                 instead. Similarly for -g.
55219
55220         2005-07-09  Bruno Haible  <bruno@clisp.org>
55221
55222                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
55223                 add a .dll suffix.
55224                 Reported by Mark Junker <mjscod@gmx.de>.
55225
55226         2006-06-17  Bruno Haible  <bruno@clisp.org>
55227
55228                 * config.charset: Update for NetBSD 3.0.
55229
55230         2006-05-17  Bruno Haible  <bruno@clisp.org>
55231
55232                 Cygwin portability.
55233                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
55234
55235         2006-05-16  Bruno Haible  <bruno@clisp.org>
55236
55237                 * localcharset.c [CYGWIN]: Include <windows.h>.
55238                 (get_charset_aliases): For Cygwin, return the same CPxxx
55239                 aliases list as under WIN32.
55240                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
55241                 the environment variables. Fall back to GetACP().
55242
55243         2006-04-05  Bruno Haible  <bruno@clisp.org>
55244
55245                 * config.charset: Update Juan Manuel Guerrero's address.
55246
55247         2005-02-12  Bruno Haible  <bruno@clisp.org>
55248
55249                 * allocsa.h: Add extern "C" for C++.
55250
55251         2005-02-10  Bruno Haible  <bruno@clisp.org>
55252
55253                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
55254                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
55255
55256         2006-07-22  Bruno Haible  <bruno@clisp.org>
55257
55258                 * gettext.h: Update to GNU gettext-0.15.
55259
55260 2006-07-22  Bruno Haible  <bruno@clisp.org>
55261
55262         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
55263         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
55264         lib-prefix.m4, longdouble.m4, ssize_t.m4.
55265
55266 2006-07-21  Eric Blake  <ebb9@byu.net>
55267
55268         * modules/stdlib-safer: New file.
55269         * MODULES.html.sh (File stream based Input/Output): Add
55270         stdlib-safer.
55271
55272 2006-07-21  Eric Blake  <ebb9@byu.net>
55273
55274         * lib/stdlib-safer.h: New file from coreutils, required by
55275         stdlib--.h.
55276
55277 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
55278
55279         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
55280
55281 2006-07-20  Bruno Haible  <bruno@clisp.org>
55282
55283         * gnulib-tool: Recognize new option --assume-autoconf.
55284         (autoconf_minversion): New variable.
55285         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55286
55287 2006-07-20  Bruno Haible  <bruno@clisp.org>
55288
55289         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55290
55291 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55292
55293         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55294         Reindent and repaginate.
55295
55296 2006-07-19  Derek Price  <derek@ximbiot.com>
55297
55298         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55299         Correct grammar.
55300
55301 2006-07-17  Bruno Haible  <bruno@clisp.org>
55302
55303         * modules/list: New file.
55304         * modules/array-list: New file.
55305         * modules/carray-list, modules/carray-list-tests: New files.
55306         * modules/linked-list, modules/linked-list-tests: New files.
55307         * modules/avltree-list, modules/avltree-list-tests: New files.
55308         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55309         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55310         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55311         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55312         * modules/oset: New file.
55313         * modules/array-oset: New file.
55314         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55315         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55316         * tests/test-carray_list.c: New file.
55317         * tests/test-linked_list.c: New file.
55318         * tests/test-avltree_list.c: New file.
55319         * tests/test-rbtree_list.c: New file.
55320         * tests/test-linkedhash_list.c: New file.
55321         * tests/test-avltreehash_list.c: New file.
55322         * tests/test-rbtreehash_list.c: New file.
55323         * tests/test-avltree_oset.c: New file.
55324         * tests/test-rbtree_oset.c: New file.
55325         * MODULES.html.sh (Container data structures): New section.
55326
55327 2006-07-17  Bruno Haible  <bruno@clisp.org>
55328
55329         * m4/gl_list.m4: New file.
55330
55331 2006-07-17  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/gl_list.h: New file.
55334         * lib/gl_list.c: New file.
55335         * lib/gl_array_list.h: New file.
55336         * lib/gl_array_list.c: New file.
55337         * lib/gl_carray_list.h: New file.
55338         * lib/gl_carray_list.c: New file.
55339         * lib/gl_linked_list.h: New file.
55340         * lib/gl_linked_list.c: New file.
55341         * lib/gl_anylinked_list1.h: New file.
55342         * lib/gl_anylinked_list2.h: New file.
55343         * lib/gl_avltree_list.h: New file.
55344         * lib/gl_avltree_list.c: New file.
55345         * lib/gl_anyavltree_list1.h: New file.
55346         * lib/gl_anyavltree_list2.h: New file.
55347         * lib/gl_rbtree_list.h: New file.
55348         * lib/gl_rbtree_list.c: New file.
55349         * lib/gl_anyrbtree_list1.h: New file.
55350         * lib/gl_anyrbtree_list2.h: New file.
55351         * lib/gl_anytree_list1.h: New file.
55352         * lib/gl_anytree_list2.h: New file.
55353         * lib/gl_linkedhash_list.h: New file.
55354         * lib/gl_linkedhash_list.c: New file.
55355         * lib/gl_anyhash_list1.h: New file.
55356         * lib/gl_anyhash_list2.h: New file.
55357         * lib/gl_avltreehash_list.h: New file.
55358         * lib/gl_avltreehash_list.c: New file.
55359         * lib/gl_rbtreehash_list.h: New file.
55360         * lib/gl_rbtreehash_list.c: New file.
55361         * lib/gl_anytreehash_list1.h: New file.
55362         * lib/gl_anytreehash_list2.h: New file.
55363
55364         * lib/gl_oset.h: New file.
55365         * lib/gl_oset.c: New file.
55366         * lib/gl_array_oset.h: New file.
55367         * lib/gl_array_oset.c: New file.
55368         * lib/gl_avltree_oset.h: New file.
55369         * lib/gl_avltree_oset.c: New file.
55370         * lib/gl_rbtree_oset.h: New file.
55371         * lib/gl_rbtree_oset.c: New file.
55372         * lib/gl_anytree_oset.h: New file.
55373
55374 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         * m4/mkancesdirs.m4: New file.
55377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55378         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55379         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55380         it.
55381
55382 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55385         * lib/mkancesdirs.h: New files.
55386         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55387         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55388         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55389         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55390         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55391         callers changed.  Revamp internals significantly, by not
55392         attempting to create directories that are temporarily more
55393         permissive than the final results.  Do not attempt to use
55394         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55395         This removes some race conditions, fixes some bugs, and simplifies
55396         things.  Use new dirchownmod function to do owner and mode changes.
55397         * lib/mkdir-p.h: Likewise.
55398         * lib/modechange.c (octal_to_mode): New function.
55399         (struct mode_change): New member mentioned.
55400         (make_node_op_equals): New arg mentioned.  All callers changed.
55401         (mode_compile): Keep track of which mode bits the user has explicitly
55402         mentioned.
55403         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55404         New arg PMODE_BITS, to keep track of which mode bits the user
55405         mentioned; it treats S_ISUID and S_ISGID speciall.
55406         All callers changed.
55407         * lib/modechange.h: Likewise.
55408
55409 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55410
55411         * MODULES.html.sh: Add mkancestors.
55412         * modules/mkancesdirs: New module.
55413         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55414         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55415         The chdir-safer and afs files are now orphans; I'll remove them
55416         unless someone speaks up.
55417         Add lib/dirchownmod.c, lib/dirchownmod.h.
55418         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55419         Add lchown, mkancesdirs.
55420         (Maintainer): Add self.
55421
55422 2006-07-15  Karl Berry  <karl@gnu.org>
55423
55424         * gnulib-tool: help message wording/arrangement.
55425
55426 2006-07-14  Simon Josefsson  <jas@extundo.com>
55427
55428         * doc/gnulib.texi (Libtool and Windows): New section.
55429
55430 2006-07-12  Simon Josefsson  <jas@extundo.com>
55431
55432         * modules/gendocs (License): Fix license, approved by Karl.
55433
55434 2006-07-12  Eric Blake  <ebb9@byu.net>
55435
55436         * MODULES.html.sh: Add gendocs.
55437
55438 2006-07-11  Eric Blake  <ebb9@byu.net>
55439
55440         * modules/fdl: New module, to install doc/fdl.texi.
55441         * MODULES.html.sh: Add new section for documentation modules.
55442         * gnulib-tool: Avoid space-tab.
55443         (--doc-base): New option, to manage files from doc.
55444
55445 2006-07-11  Eric Blake  <ebb9@byu.net>
55446
55447         * m4/absolute-header.m4: Fix comments to match recent change.
55448
55449 2006-07-11  Eric Blake  <ebb9@byu.net>
55450
55451         * gnulib-tool: List --doc-base before --tests-base.
55452
55453 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55454
55455         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55456
55457 2006-07-11  Bruno Haible  <bruno@clisp.org>
55458
55459         * README: Mention where to put documentation.
55460
55461 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55462
55463         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55464
55465 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55466
55467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55468         to stdint.m4.
55469
55470 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55473         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55474         "no/such/file/stdint.h" when there is no such file, so that
55475         the resulting C code can be parsed by dodgy compilers.
55476         Problems reported by Bob Proulx.
55477
55478 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55479
55480         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55481         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55482         macros into the GNU _D_EXACT_NAMLEN.
55483         * lib/savedir.c:  Likewise.
55484         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55485
55486 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55487         and Paul Eggert  <eggert@cs.ucla.edu>
55488
55489         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55490         * m4/savedir.m4:
55491         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55492         macros into the GNU _D_EXACT_NAMLEN.
55493
55494 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55495
55496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55497         around the absolute name, to work around a problem with the HP-UX
55498         11.23 native C compiler, reported by Bob Proulx.
55499
55500 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55501
55502         * doc/maintain.texi, make-stds.texi: Sync from
55503         <http://savannah.gnu.org/projects/gnustandards>.
55504
55505 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55506
55507         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55508
55509 2006-07-09  Jim Meyering  <jim@meyering.net>
55510
55511         * m4/glob.m4: Remove a doubled word in a comment.
55512
55513 2006-07-09  Jim Meyering  <jim@meyering.net>
55514
55515         * lib/argp-pv.c: Remove a doubled word in a comment.
55516         * lib/check-version.c (check_version): Likewise.
55517         * lib/javacomp.c (compile_java_class): Likewise.
55518
55519 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55520
55521         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55522         for the benefit of people using Autoconf 2.60.  If you want to
55523         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55524         (or m4/onceonly.m4, if pre-2.57) manually.
55525
55526 2006-07-08  Jim Meyering  <jim@meyering.net>
55527
55528         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55529         comment.
55530         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55531         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55532         comment.
55533
55534 2006-07-08  Jim Meyering  <jim@meyering.net>
55535
55536         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55537
55538 2006-07-07  Simon Josefsson  <jas@extundo.com>
55539
55540         * tests/test-crc.c: Change expected crc value, the test vector
55541         were probably computed using the old broken crc.c?
55542
55543 2006-07-06  Simon Josefsson  <jas@extundo.com>
55544
55545         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55546         now the canonical place for the M4 file).
55547
55548         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55549         from the sys_socket dependency now.
55550
55551         * modules/inet_pton (Files): Ditto.
55552
55553         * modules/inet_ntop (Files): Ditto.
55554
55555 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55556
55557         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55558         not gl_PREREQ_GETUSERSHELL.
55559
55560 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55561
55562         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55563         with only one argument, for Autoconf 2.60.
55564         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55565         expand to nothing, so add a shell command to avoid syntax error.
55566         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55567
55568 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55569
55570         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55571
55572 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55575         no longer needed.  Check for isblank decl.
55576         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55577         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55578         of existence.
55579
55580 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55581
55582         * lib/getloadavg.c: Use __VMS, not VMS.
55583         * lib/getopt.c: Likewise.
55584         * lib/getpagesize.h: Likewise.
55585         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55586         and probably does not work.
55587
55588 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * lib/.cppi-disable: Add wcwidth.
55591         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55592         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55593         (ISGRAPH): Remove.  All uses changed to isgraph.
55594         (FOLD) [!defined _LIBC]: Remove special case.
55595         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55596         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55597         HAVE_ISBLANK.
55598         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55599         case.
55600
55601 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55602
55603         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55604         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55605         brackets.  Other minor changes to suppress some compiler
55606         warnings.
55607
55608 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55609         and Paul Eggert  <eggert@cs.ucla.edu>
55610
55611         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55612         of invoking obsolescent AC_HEADER_DIRENT macro.
55613         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55614         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55616         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55617         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55618         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55619         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55620         * m4/readdir.m4: Remove; no longer needed.
55621
55622 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55623         and Paul Eggert  <eggert@cs.ucla.edu>
55624
55625         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55626         Don't worry about this obsolete case any more.
55627         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55628         directories.
55629         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55630         worry about this obsolete case any more.
55631         * lib/fts.c: Likewise.
55632         * lib/getcwd.c: Likewise.
55633         * lib/glob.h: Likewise.
55634         * lib/savedir.c: Likewise.
55635
55636 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55639         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55640         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55641         needed.
55642         All uses removed.
55643         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55644         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55645         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55646         needed.
55647         * m4/getdate.m4 (gl_GETDATE): Likewise.
55648         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55649         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55650         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55651         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55652         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55653         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55654         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55655         needed.
55656
55657 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55658
55659         * lib/memcasecmp.c: Include <limits.h>.
55660         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55661         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55662         Don't assume isdigit succeeds only on '0' through '9'.
55663
55664 2006-07-05  Eric Blake  <ebb9@byu.net>
55665
55666         * modules/getaddrinfo (Depends-on): Add snprintf.
55667
55668 2006-07-05  Eric Blake  <ebb9@byu.net>
55669
55670         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55671         to avoid 'header present but could not be compiled' on cygwin.
55672
55673 2006-07-05  Eric Blake  <ebb9@byu.net>
55674
55675         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55676         missing from netdb.h.
55677         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55678
55679 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55680
55681         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55682         no longer needed.
55683         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55684         * m4/getdate.m4 (gl_GETDATE): Likewise.
55685         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55686         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55687         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55688         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55689         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55690
55691 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55692
55693         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55694         All uses of is_space replaced by isspace.
55695         * lib/exit.h: Don't talk about STDC_HEADERS.
55696         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55697         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55698         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55699         replaced by isprint etc.
55700         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55701         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55702         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55703         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55704         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55705         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55706
55707 2006-07-05  Bruno Haible  <bruno@clisp.org>
55708
55709         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55710         the function exists, before testing against AIX.
55711         Reported by Martin Lambers <marlam@marlam.de>.
55712
55713 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55716         From Mark D. Baushke.
55717
55718 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55719
55720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55721         to the absolute name, not just one, to bypass Sun C 5.8's
55722         "warning: #include of /usr/include/... may be non-portable".
55723
55724 2006-07-04  Eric Blake  <ebb9@byu.net>
55725
55726         * modules/dirname-tests: New test module.
55727         * tests/test-dirname.c: New file, replacing dirname.c
55728         TEST_DIRNAME section that was recently deleted.
55729
55730 2006-07-04  Bruno Haible  <bruno@clisp.org>
55731
55732         Assume ANSI C header files and <ctype.h> functions.
55733         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55734         (mbsnwidth): Use isprint, iscntrl instead.
55735
55736 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55737
55738         Merge from coreutils.
55739         * MODULES.html.sh: Add xstrtold.
55740         * modules/xstrtold: New file.
55741         * modules/cycle-check (Files): Add lib/same-inode.h.
55742         * modules/dirname (Files): Add m4/double-slash-root.m4.
55743         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55744         * modules/mkdir-p (Files): Add lib/same-inode.h.
55745         * modules/same (Files): Add lib/same-inode.h.
55746
55747 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55748
55749         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55750         This is to keep the terminology clean; POSIX talks about
55751         "absolute pathnames", not "full pathnames", but the GNU
55752         Coding Standards say to use "path" for something else;
55753         so use "absolute" to keep both sides happy.
55754         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55755         Set gl_absolute_header, not gl_full_header_path.
55756         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55757         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55758         All uses changed.
55759
55760         Merge from coreutils.
55761
55762         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55763
55764         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55765         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55766         want to require the building of c-strtod.o.
55767         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55768         needs -lm directly.
55769         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55770
55771         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55772
55773         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55774         --as-needed option if available.  Problem reported by Albert Chin in
55775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55776         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55777         cc merely issues a bunch of annoying warnings for --as-needed
55778         (this problem was reported by Bob Proulx).  Also, try linking with
55779         -lm to detect a bug in binutils 2.16 (this problem was reported
55780         by Ralf Wildenhues).
55781
55782         2006-06-18  Jim Meyering  <jim@meyering.net>
55783
55784         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55785         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55786         macro.
55787         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55788         also check for glibc-2.4's abort-inducing bug.
55789
55790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55791         Low-probability clean-up should be to use rmdir to get rid of
55792         the just-created directory, not unlink.
55793
55794         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55795         configure fail, and request a bug report to inform us about it.
55796         Add a comment that, barring reports to the contrary, in 2007 we'll
55797         assume ftruncate is universally available.
55798
55799         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55800
55801         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55802
55803         2006-03-12  Jim Meyering  <jim@meyering.net>
55804
55805         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55806         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55807         * m4/same.m4 (gl_SAME): Likewise.
55808         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55809
55810         2006-03-11  Eric Blake  <ebb9@byu.net>
55811
55812         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55813         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55814         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55815         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55816
55817 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55818
55819         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55820         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55821         reported by Mark D. Baushke, one in
55822         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55823
55824         Merge from coreutils.
55825
55826         * lib/.cppi-disable: Add stdint_.h.
55827         * lib/.cvsignore: Add stdint.h.
55828
55829         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55830
55831         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55832         both double and long double versions.
55833         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55834         * lib/xstrtold.c: New file.
55835         * lib/xstrtod.h (xstrtold): New decl.
55836
55837         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55838
55839         * lib/filemode.c (setst): Remove.
55840         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55841         (arguably) clearer, and the generated code is a bit smaller on my
55842         Debian GNU/Linux stable x86 host.
55843
55844         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55847         Assume that filemode.h includes sys/types.h and sys/stat.h.
55848         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55849         (ftypelet): Reorder to put common cases first, for efficiency.
55850         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55851         to do 'M'.
55852         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55853         of 10, for compatibility with FreeBSD.  All callers changed.
55854         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55855         types that can't be deduced solely from st_mode.  First arg is now a
55856         const pointer.
55857         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55858         (strmode): Renamed from mode_string.
55859         (filemodestring): New decl.
55860         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55861         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55862         needed.
55863         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55864
55865         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55868         fsusage.h now does that.  Include fsusage.h first, to test interface.
55869         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55870         at most one method (the old code could have generated decls that
55871         didn't conform to C89, not that this was ever exercised).
55872         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55873
55874         2006-03-19  Jim Meyering  <jim@meyering.net>
55875
55876         Work even in a chroot where d_ino values for entries in "/"
55877         don't match the stat.st_ino values for the same names.
55878         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55879         number, iterate through all entries again, using lstat instead.
55880         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55881         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55882
55883         * lib/getcwd.c (__getcwd): Clarify a comment.
55884         Use memcpy in place of a call to strcpy.
55885
55886         2006-03-12  Jim Meyering  <jim@meyering.net>
55887
55888         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55889         matches that of the current directory (which we're about to chdir ".."
55890         out of), then save the dev-ino of the parent, instead.
55891
55892         * lib/same-inode.h (SAME_INODE): New file/macro.
55893         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55894         Include "same-inode.h", instead.
55895         * lib/same.c: Likewise.
55896         * lib/cycle-check.h: Include "same-inode.h".
55897         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55898         * lib/cycle-check.c (SAME_INODE): Remove definition.
55899         * lib/root-dev-ino.h: Include "same-inode.h".
55900
55901         2006-03-11  Eric Blake  <ebb9@byu.net>
55902
55903         * lib/same.c (same_name): s/base_name/last_component/
55904         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55905         * lib/filenamecat.c (file_name_concat): Likewise.
55906
55907         2006-03-11  Eric Blake  <ebb9@byu.net>,
55908                     Paul Eggert  <eggert@cs.ucla.edu>
55909
55910         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55911         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55912         drive prefix.
55913         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55914         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55915         (last_component): New method.
55916         * lib/dirname.c (dir_len): Determine when drive letters need a
55917         subsequent slash.  Preserve // when it is special.
55918         (dir_name): Don't append dot when drive letter is absolute.
55919         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55920         * lib/basename.c (base_name): New semantics - malloc the result.
55921         Preserve // when it is special.  Preserve relative files that look
55922         like drive letters.
55923         (base_len): Preserve // when it is special.
55924         (last_component): New method, similar to old base_name semantics.
55925         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55926         base_name.  Strip redundant slashes from ///.
55927
55928 2006-07-03  Jim Meyering  <jim@meyering.net>
55929
55930         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55931         macro is used before the first cycle_check call.
55932
55933 2006-07-03  Eric Blake  <ebb9@byu.net>
55934
55935         * modules/dirname (Depends-on): Add xstrndup.
55936
55937 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55940         test cases, so that config.log is a bit easier to follow.
55941
55942 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55943
55944         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55945         both are 64 bits, since this seems to be the tradition, and this
55946         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55947         we ever run into a host that prefers long long to long in this
55948         case, we'll need another configure-time test.  Problem reported by
55949         Jim Meyering.
55950
55951 2006-07-02  Eric Blake  <ebb9@byu.net>
55952
55953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55954
55955 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55956
55957         * modules/inttypes (Depends-on): No longer depends on stdint.
55958         * modules/stdint (Description): Say more about assumptions.
55959         Say that the fast types might differ.  Say macros are used.
55960         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55961         (Makefile.am): Revise list of substituted symbols to match
55962         new stdint.m4.
55963         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55964         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55965         * tests/test-stdint.c (verify_same_types)
55966         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55967         the code conforms to C99/C89.
55968         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55969         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55970
55971 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55972
55973         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55974         but fix a bug, by requiring at least 64 bits.
55975         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55976         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55977         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55978         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55979
55980         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55981         changes.  Make 2.59 a prerequisite.  Check and substitute for
55982         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55983         inttypes.h.  Do not use special include files; just use the
55984         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55985         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55986         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55987         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55988         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55989         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55990         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55991         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55992         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55993         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55994         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55995         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55996         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55997         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55998         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55999         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
56000         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
56001         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
56002         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
56003         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
56004         WINT_MAX.  Check for C99 conformance more strictly, by detecting
56005         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
56006         not check for things that C99 does not require, e.g., int8_t.  If
56007         a test isn't needed unless <stdint.h> isn't working, and is
56008         unlikely to be needed for any other reason, then don't do it
56009         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
56010         size_t, since we assume C89 freestanding at least.  Do not check
56011         for sig_atomic_t, wchar_t, or wint_t, since the code now does
56012         the right thing even if the types are not defined.  Instead use:
56013         (gl_STDINT_TYPE_PROPERTIES): New macro.
56014         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
56015         testing whether <sys/types.h> clashes, as Autoconf does this for
56016         us now.  All uses removed.
56017         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
56018         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
56019         (gl_CHECK_TYPE_SAME):
56020         Remove; no longer needed.
56021         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
56022         exists, since we'll return 0 anyway in that case.
56023         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
56024
56025 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
56026
56027         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
56028         possible collision with system files.
56029         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
56030         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
56031         WCHAR_MIN and WCHAR_MAX in this case.
56032         (<stddef.h>): Do not include; no longer needed.
56033         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
56034         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
56035         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
56036         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
56037         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
56038         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
56039         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
56040         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
56041         !defined(__c99))]: Include in this case too, since it's harmless
56042         now.
56043         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
56044         dangerous to do so.
56045         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
56046         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
56047         (_STDINT_MIN, _STDINT_MAX): New macros.
56048         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
56049         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
56050         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
56051         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
56052         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
56053         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
56054         macros, not typedefs; this simplifies things quite a bit.
56055         Use long int for all types narrower than int64_t.
56056         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
56057         Define in terms of long long int or int64_t or long int,
56058         not int64_t or int32_t.  This saves some compile-time testing.
56059         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
56060         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
56061         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
56062         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
56063         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
56064         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
56065         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
56066         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
56067         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
56068         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
56069         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56070         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56071         undef any previous version and define our own version, for
56072         simplicity and consistency with the new macros for types.
56073         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
56074         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
56075         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
56076         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
56077         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
56078         @WINT_T_SUFFIX@ to keep things simple here.
56079         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
56080         Simplify by assuming typical 8/16/32/64 host, since we're
56081         already doing that elsewhere anyway.
56082         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
56083         and assume long long int is 64 bits if available.  This
56084         speeds up 'configure'.
56085
56086 2006-07-01  Eric Blake  <ebb9@byu.net>
56087
56088         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
56089         Reported by Andreas Buening.
56090
56091 2006-07-01  Eric Blake  <ebb9@byu.net>
56092
56093         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
56094
56095 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56096
56097         * lib/getaddrinfo.c: fixed typo
56098
56099 2006-06-29  Jim Meyering  <jim@meyering.net>
56100
56101         * modules/strftime (Maintainer): Add my name, since with the
56102         FPRINTFTIME changes strftime.c has forked from glibc.
56103
56104 2006-06-29  Eric Blake  <ebb9@byu.net>
56105
56106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
56107
56108 2006-06-29  Eric Blake  <ebb9@byu.net>
56109
56110         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
56111
56112 2006-06-29  Eric Blake  <ebb9@byu.net>
56113
56114         * lib/stat_.h: New file.
56115
56116 2006-06-29  Eric Blake  <ebb9@byu.net>
56117
56118         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
56119         unused static function.
56120
56121 2006-06-29  Eric Blake  <ebb9@byu.net>
56122
56123         * doc/functions.texi (Function Portability): Document missing lstat
56124         on mingw.
56125
56126 2006-06-29  Eric Blake  <ebb9@byu.net>
56127
56128         * MODULES.html.sh: Add sys_stat.
56129         * modules/sys_stat: New module.
56130         * modules/mkstemp (Depends-on): Add sys_stat.
56131
56132 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56133
56134         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
56135
56136 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56137
56138         * m4/c-bs-a.m4: Removed.
56139
56140 2006-06-29  Derek R. Price  <derek@ximbiot.com>
56141
56142         * lib/strftime.c: Assume strftime() exists.
56143
56144 2006-06-29  Derek Price  <derek@ximbiot.com>
56145
56146         * modules/c-bs-a: Removed - \a is C89.
56147         * MODULES.html.sh: Remove c-bs-a.
56148
56149 2006-06-29  Bruno Haible  <bruno@clisp.org>
56150
56151         * modules/wcwidth (License): Change to LGPL.
56152
56153 2006-06-28  Simon Josefsson  <jas@extundo.com>
56154
56155         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
56156         on _WIN32.
56157
56158         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
56159         getnameinfo.
56160
56161 2006-06-28  Simon Josefsson  <jas@extundo.com>
56162
56163         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
56164
56165 2006-06-28  Simon Josefsson  <jas@extundo.com>
56166
56167         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
56168         functions there.  It will succeed on Windows XP, but on Windows
56169         2000 and (presumably) earlier, it will fail, and use the internal
56170         re-implementation.
56171         (use_win32_p): New function.
56172         (getaddrinfo): Use strtoul on servname, to support numeric ports.
56173         Support AI_NUMERICSERV to disable getservbyname.
56174         (getnameinfo): New function, only supports
56175         NI_NUMERICHOST|NI_NUMERICSERV for now.
56176
56177         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
56178         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
56179         getnameinfo.
56180
56181 2006-06-28  Eric Blake  <ebb9@byu.net>
56182
56183         * modules/wcwidth: New file.
56184         * modules/mbchar (Depends-on): Add wcwidth.
56185         * modules/mbswidth (Depends-on): Add wcwidth.
56186         * MODULES.html.sh: Add wcwidth.
56187
56188 2006-06-28  Eric Blake  <ebb9@byu.net>
56189
56190         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
56191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
56192
56193 2006-06-28  Eric Blake  <ebb9@byu.net>
56194
56195         * lib/xvasprintf.h: Fix comments.
56196
56197 2006-06-28  Eric Blake  <ebb9@byu.net>
56198
56199         * lib/mbchar.h (wcwidth): Include wcwidth.h.
56200         * lib/mbswidth.c (wcwidth): Move from here...
56201         * lib/wcwidth.h: ...to this new file.
56202
56203 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56204
56205         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
56206
56207         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
56208         it's obsolete.
56209         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
56210
56211 2006-06-28  Derek R. Price  <derek@ximbiot.com>
56212
56213         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
56214         Autoconf 2.60 says this stuff was obsolete.
56215
56216 2006-06-28  Bruno Haible  <bruno@clisp.org>
56217
56218         * modules/wcwidth (Files): Add m4/wchar_t.m4.
56219
56220 2006-06-28  Bruno Haible  <bruno@clisp.org>
56221
56222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
56223         gt_TYPE_WCHAR_T.
56224
56225 2006-06-28  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
56228         declaration for wcwidth.
56229         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
56230
56231 2006-06-28  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/mkdtemp.c [MINGW]: Include <io.h>.
56234         (mkdir): Define using _mkdir.
56235
56236 2006-06-28  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/getaddrinfo.h: Fix POSIX URL.
56239         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
56240         _WIN32.
56241         (use_win32_p): Make static.
56242         (getaddrinfo): Reject service name if it is empty or does not consist
56243         solely of decimal digits, or if its value is > 65535.
56244         (getnameinfo): Remove useless casts.
56245
56246 2006-06-27  Simon Josefsson  <jas@extundo.com>
56247
56248         * modules/sys_select: New file, suggested by Bruno Haible, Paul
56249         Eggert and Martin Lambers.
56250
56251 2006-06-27  Simon Josefsson  <jas@extundo.com>
56252
56253         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
56254         Eggert and Martin Lambers.
56255
56256 2006-06-27  Bruno Haible  <bruno@clisp.org>
56257
56258         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
56259         result to 0, not to empty.
56260         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
56261
56262 2006-06-27  Bruno Haible  <bruno@clisp.org>
56263
56264         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
56265
56266 2006-06-26  Simon Josefsson  <jas@extundo.com>
56267
56268         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
56269         present.
56270
56271 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
56272
56273         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
56274         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
56275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
56276
56277 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
56278
56279         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
56280
56281 2006-06-26  Bruno Haible  <bruno@clisp.org>
56282
56283         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56284
56285 2006-06-26  Bruno Haible  <bruno@clisp.org>
56286
56287         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56288
56289 2006-06-26  Bruno Haible  <bruno@clisp.org>
56290
56291         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56292         SGI C compiler in pre-C99 mode.
56293         Suggested by Mark D. Baushke and Larry Jones.
56294
56295 2006-06-26  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56298         WCHAR_MAX.
56299         Reported by Mark D. Baushke and Larry Jones.
56300
56301 2006-06-26  Bruno Haible  <bruno@clisp.org>
56302
56303         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56304         in pre-C99 mode.
56305         Suggested by Mark D. Baushke and Larry Jones.
56306
56307 2006-06-23  Simon Josefsson  <jas@extundo.com>
56308             Bruno Haible  <bruno@clisp.org>
56309
56310         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56311         Emit mostlyclean-local rule.
56312         (func_emit_tests_Makefile_am): Likewise.
56313         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56314
56315 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56316
56317         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56318
56319 2006-06-23  Bruno Haible  <bruno@clisp.org>
56320
56321         * tests/test-stdint.c: Update to match ISO C 99 Technical
56322         Corrigendum 1.
56323
56324 2006-06-23  Bruno Haible  <bruno@clisp.org>
56325
56326         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56327
56328 2006-06-23  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/stdint_.h: Treat IRIX like OpenBSD.
56331
56332 2006-06-23  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56335         ISO C 99 Technical Corrigendum 1.
56336
56337 2006-06-22  Simon Josefsson  <jas@extundo.com>
56338
56339         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56340         MinGW.
56341
56342 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56343
56344         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56345         needed.  Some compiler complained about some of them.  Problem reported
56346         by Larry Jones in
56347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56348
56349 2006-06-21  Simon Josefsson  <jas@extundo.com>
56350
56351         * tests/test-getaddrinfo.c: New file.
56352
56353         * modules/getaddrinfo-tests: New file.
56354
56355         * MODULES.html.sh: Add inet_pton.
56356
56357         * modules/inet_pton: New file.
56358
56359 2006-06-21  Simon Josefsson  <jas@extundo.com>
56360
56361         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56362         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56363         of using the (limited) gnulib implementation on Windows XP.
56364
56365         * m4/inet_pton.m4: New file.
56366
56367 2006-06-21  Simon Josefsson  <jas@extundo.com>
56368
56369         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56370         variable.
56371
56372         * lib/socket_.h: Don't define WINVER.
56373
56374         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56375         slightly modified to work in gnulib.
56376
56377 2006-06-21  Simon Josefsson  <jas@extundo.com>
56378
56379         * doc/gnulib.texi (Windows sockets): Add.
56380
56381 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56382
56383         * lib/read-file.c (fread_file): Start with buffer allocation of
56384         0 bytes rather than 1 byte; this simplifies the code.
56385         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56386         code to free buffer and save/restore errno.
56387         (internal_read_file): Remove unused local.
56388
56389 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56390
56391         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56392         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56393         Problem reported by Denis Excoffier in
56394         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56395
56396 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56397
56398         * modules/sys_socket, modules/socklen: Include sys/types since
56399         FreeBSD 4.x's sys/socket.h needs it.
56400
56401 2006-06-19  Simon Josefsson  <jas@extundo.com>
56402
56403         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56404
56405 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56406
56407         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56408
56409 2006-06-19  Bruno Haible  <bruno@clisp.org>
56410
56411         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56412         and FULL_PATH_INTTYPES_H in angle brackets.
56413         Reported by Mark D. Baushke <mdb@gnu.org>.
56414
56415 2006-06-17  Eric Blake  <ebb9@byu.net>
56416
56417         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56418         errno.
56419
56420 2006-06-17  Bruno Haible  <bruno@clisp.org>
56421
56422         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56423         <sys/inttypes.h>.
56424
56425 2006-06-17  Bruno Haible  <bruno@clisp.org>
56426
56427         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56428         whether errno is declared. Assume <errno.h> declares errno.
56429
56430 2006-06-17  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56433
56434 2006-06-17  Bruno Haible  <bruno@clisp.org>
56435
56436         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56437         problem on Solaris 2.5.1.
56438
56439 2006-06-16  Eric Blake  <ebb9@byu.net>
56440
56441         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56442         * lib/unicodeio.c [!defined errno]: Likewise.
56443         * lib/strtol.c [!defined errno]: Likewise.
56444         * lib/strtod.c [!defined errno]: Likewise.
56445
56446 2006-06-15  Eric Blake  <ebb9@byu.net>
56447
56448         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56449
56450 2006-06-15  Eric Blake  <ebb9@byu.net>
56451
56452         * config/srclist.txt (ssize_t.m4): Lose sync.
56453
56454 2006-06-15  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/stdint (Files): Include m4/full-header-path.m4,
56457         m4/size_max.m4, m4/wchar_t.m4.
56458         (Makefile.am): Many more substitutions.
56459         * modules/stdint-tests: New file.
56460         * tests/test-stdint.c: New file.
56461
56462 2006-06-15  Bruno Haible  <bruno@clisp.org>
56463
56464         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56465         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56466         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56467         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56468         gl_CHECK_TYPE_SAME): New macros.
56469
56470 2006-06-15  Bruno Haible  <bruno@clisp.org>
56471
56472         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56473
56474 2006-06-15  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/stdint_.h: Rewritten to be fully auto-configured.
56477         Fixes bug on HP-UX/IA64.
56478
56479 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56480
56481         * lib/getdate.y (__attribute__): Don't define if already defined.
56482         Problem reported by Larry Jones.
56483         * lib/utimens.c (__attribute__): Likewise.
56484
56485 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56488         reported by Andreas Schwab.
56489
56490 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56491             Bruno Haible  <bruno@clisp.org>
56492
56493         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56494         check for the declaration of strnlen and a run test that exposes the
56495         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56496         rpl_strndup.
56497
56498 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56499             Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56502
56503 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56504
56505         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56506         compile test, for Tru64 4.0D.
56507
56508 2006-05-28  Karl Berry  <karl@gnu.org>
56509
56510         * config/srclist.txt (printf-args.c): lose sync.
56511
56512 2006-05-26  Martin Lambers  <marlam@marlam.de>
56513
56514         * lib/getpass.c: Updates the test for the native W32 API, and adds
56515         missing includes, thus fixing compilation warnings.
56516
56517 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56518
56519         * lib/exclude.c (exclude_fnmatch): New function.
56520         (excluded_file_name): Call exclude_fnmatch.
56521         * lib/exclude.h (excluded_file_name): New prototype
56522
56523 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56524
56525         * lib/tempname.c (small_open, large_open): New macros.
56526         (__open, __open64) [!_LIBC]: Remove.
56527         (__gen_tempname): Use small_open and large_open instead of __open
56528         and __open64.  This fixes a portability bug on HP-UX 11.11i
56529         reported by Simon Wing-Tang in
56530         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56531
56532 2006-05-24  Bruno Haible  <bruno@clisp.org>
56533
56534         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56535         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56536         Reported by Thorsten Maerz <torte@netztorte.de> via
56537         Aaron Stone <aaron@serendipity.cx>.
56538
56539 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56540
56541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56542         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56543         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56544         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56545         not really conditional on the cache.
56546         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56547
56548 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56549
56550         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56551         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56552         (my_usleep): Don't mishandle maximum value.
56553
56554 2006-05-19  Jim Meyering  <jim@meyering.net>
56555
56556         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56557
56558 2006-05-17  Bruno Haible  <bruno@clisp.org>
56559
56560         Cygwin portability.
56561         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56562
56563 2006-05-17  Bruno Haible  <bruno@clisp.org>
56564
56565         * lib/stdint_.h: Fix recognition of Cygwin.
56566
56567 2006-05-15  Bruno Haible  <bruno@clisp.org>
56568
56569         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56570         on libtool patch by Ralf Wildenhues.
56571
56572 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56573
56574         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56575         test for C99 conformance; (bool) 0.5 is an integer constant
56576         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56577         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56578
56579 2006-05-11  Simon Josefsson  <jas@extundo.com>
56580
56581         * m4/xvasprintf.m4: Fix obvious typo.
56582
56583 2006-05-11  Jim Meyering  <jim@meyering.net>
56584
56585         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56586         James Lemley.
56587
56588 2006-05-10  Simon Josefsson  <jas@extundo.com>
56589
56590         * lib/md4.c: Typo fix, update copyright years.
56591         (K1, K2): Don't use L because it turn computations into 64-bit on
56592         64-bit platforms.
56593
56594 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56597         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56598         unwanted sign propagation, e.g., on hosts with 64-bit int.
56599         There still are some problems with reeelly weird theoretical hosts
56600         (e.g., 33-bit int) but it's not worth worrying about now.
56601         * lib/sha1.c (rol): Likewise.
56602         (K1, K2, K3, K4): Remove unnecessary L suffix.
56603
56604 2006-05-10  Bruno Haible  <bruno@clisp.org>
56605
56606         * lib/des.c: Cast to avoid warnings.
56607
56608 2006-05-09  Bruno Haible  <bruno@clisp.org>
56609
56610         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56611         (Depends-on): Depend also on xsize, stdarg.
56612         (configure.ac): Add gl_XVASPRINTF.
56613
56614 2006-05-09  Bruno Haible  <bruno@clisp.org>
56615
56616         * m4/xvasprintf.m4: New file.
56617
56618 2006-05-09  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56621         (EOVERFLOW): Define fallback value.
56622         (xstrcat): New function.
56623         (xvasprintf): Recognize the special case of a string concatenation.
56624
56625 2006-05-08  Eric Blake  <ebb9@byu.net>
56626
56627         * gnulib-tool (func_version): Base copyright year on CVS date.
56628         (func_emit_copyright_notice): New function.
56629         (func_emit_lib_Makefile_am): Use it.
56630         (func_emit_tests_Makefile_am): Likewise.
56631         (func_import): Likewise.
56632
56633 2006-05-08  Bruno Haible  <bruno@clisp.org>
56634
56635         * modules/stdarg: New file.
56636         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56637
56638 2006-05-08  Bruno Haible  <bruno@clisp.org>
56639
56640         * m4/stdarg.m4: New file, from GNU gettext.
56641
56642 2006-05-08  Bruno Haible  <bruno@clisp.org>
56643
56644         * config/srclist.txt (build-aux/config.rpath): different from latest
56645         release.
56646
56647 2006-05-08  Bruno Haible  <bruno@clisp.org>
56648
56649         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56650
56651 2006-05-05  Jim Meyering  <jim@meyering.net>
56652
56653         * m4/warning.m4: New file, derived from bison's file by the same name.
56654
56655 2006-05-03  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/stdint_.h: Shorter URL.
56658         * lib/inttypes.h: Likewise.
56659
56660 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56663
56664 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56665
56666         * lib/verify.h: Document the internals better.  Most of this change
56667         was written by Bruno Haible.
56668
56669 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         * doc/verify.texi: New file, partly based on a proposal by
56672         Bruno Haible.
56673
56674 2006-05-02  Bruno Haible  <bruno@clisp.org>
56675
56676         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56677         test from here...
56678         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56679
56680 2006-04-29  Bruno Haible  <bruno@clisp.org>
56681
56682         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56683         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56684
56685 2006-04-29  Bruno Haible  <bruno@clisp.org>
56686
56687         * gnulib-tool: Make --update option actually work.
56688
56689 2006-04-29  Bruno Haible  <bruno@clisp.org>
56690
56691         * doc/gcd.texi: New file.
56692         * doc/gnulib.texi: Include it.
56693
56694 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56695
56696         * lib/getdate.y (get_date): When adding relative date, start with the
56697         initial time, not with the result of the first mktime call.
56698
56699 2006-04-25  Bruno Haible  <bruno@clisp.org>
56700
56701         * gnulib-tool (func_import): Output the include directives in three
56702         blocks, sorted separately.
56703         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56704
56705 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56706
56707         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56708         to define main with arguments, for C++.  Reported by Eric Blake.
56709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56710         Prefer 'int main ()' to 'int main (void)', for C++.
56711         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56713         for 'main', for C99 and C++.
56714
56715 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56718         Don't assume that exit status -1 is valid.
56719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56720         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56721         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56722         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56723         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56724         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56725         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56726         functions can be used without declaring them, or that you can
56727         exit with status -1.
56728         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56729
56730 2006-04-24  Karl Berry  <karl@gnu.org>
56731
56732         * config/srclist.txt (longdouble.m4): sync lost.
56733
56734 2006-04-24  Eric Blake  <ebb9@byu.net>
56735
56736         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56737
56738 2006-04-24  Bruno Haible  <bruno@clisp.org>
56739
56740         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56741         poll() implementation in AIX.
56742         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56743
56744 2006-04-24  Bruno Haible  <bruno@clisp.org>
56745
56746         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56747         assigned exactly once.
56748
56749 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56750             Bruno Haible  <bruno@clisp.org>
56751
56752         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56753         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56754         for AM_CPPFLAGS.
56755
56756 2006-04-23  Bruno Haible  <bruno@clisp.org>
56757
56758         * modules/copy-file: Depend on unistd.
56759         * modules/execute: Likewise.
56760         * modules/fatal-signal: Likewise.
56761         * modules/findprog: Likewise.
56762         * modules/mkdtemp : Likewise.
56763         * modules/pipe: Likewise.
56764         * modules/wait-process: Likewise.
56765
56766 2006-04-23  Bruno Haible  <bruno@clisp.org>
56767
56768         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56769         condition was already detected.
56770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56771
56772 2006-04-23  Bruno Haible  <bruno@clisp.org>
56773
56774         * lib/copy-file.c: Include <unistd.h> unconditionally.
56775         * lib/execute.c: Likewise.
56776         * lib/fatal-signal.c: Likewise.
56777         * lib/findprog.c: Likewise.
56778         * lib/mkdtemp.c: Likewise.
56779         * lib/pipe.h: Likewise.
56780         * lib/pipe.c: Likewise.
56781         * lib/wait-process.h: Likewise.
56782
56783 2006-04-23  Bruno Haible  <bruno@clisp.org>
56784
56785         * gnulib-tool (func_usage): Fix --import description. Document
56786         --update.
56787         (func_import): Create temporary file in a temporary directory, if
56788         --dry-run is specified. Silence errors from 'grep' when there are no
56789         m4 files in $m4dir.
56790         (func_create_testdir): Silence errors from 'grep' when there are no
56791         m4 files in $m4dir.
56792         Reported by Karl Berry <karl@freefriends.org>.
56793
56794 2006-04-20  Bruno Haible  <bruno@clisp.org>
56795
56796         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56797         one argument, so that the code will be portable to Autoconf 2.60.
56798         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56799         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56800         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56801
56802 2006-04-19  Derek Price  <derek@ximbiot.com>
56803             Eric Blake  <ebb9@byu.net>
56804
56805         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56806         rather than "/full/path.h".  Update comment to match.  Shorten &
56807         generalize m4_translit call via AS_TR_CPP.
56808
56809 2006-04-19  Derek Price  <derek@ximbiot.com>
56810             Eric Blake  <ebb9@byu.net>
56811
56812         * lib/inttypes.h: Correct grammar in comment.
56813
56814 2006-04-18  Derek Price  <derek@ximbiot.com>
56815             Paul Eggert  <eggert@cs.ucla.edu>
56816
56817         * modules/inttypes: New file.
56818         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56819
56820 2006-04-18  Derek Price  <derek@ximbiot.com>
56821             Paul Eggert  <eggert@cs.ucla.edu>
56822
56823         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56824         New files.
56825
56826 2006-04-18  Derek Price  <derek@ximbiot.com>
56827             Paul Eggert  <eggert@cs.ucla.edu>
56828
56829         * lib/inttypes.h: New file.
56830         * lib/strtoimax.c: Assume <inttypes.h>.
56831
56832 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56833
56834         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56835         isn't mounted.  Problem reported by Kir Kolyshkin.
56836
56837 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56840         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56841         Derek R. Price.
56842         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56843         implementation.
56844
56845 2006-04-12  Eric Blake  <ebb9@byu.net>
56846
56847         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56848         is now done automatically by the corresponding Autoconf macro.
56849
56850 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56853         time_r.h.
56854
56855 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56856
56857         Merge regex changes from libc, removing some of our
56858         POSIX-conformance changes that were rejected and redoing them in a
56859         less-intrusive way.
56860
56861         * lib/regcomp.c (re_compile_internal, init_dfa):
56862         Length arg is now size_t, not Idx.  All uses changed.
56863         (peek_token): Forward decl now says internal_function.
56864         (__re_error_msgid, __re_error_msgid_idx):
56865         Now static rather than extern with attribute_hidden.
56866         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56867         For some reason libc prefers K&R style defns for external functions.
56868         (regerror) [!defined _LIBC]: Likewise.
56869         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56870         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56871         (build_range_exp, build_collating_symbol):
56872         Use K&R-style defn.
56873         (re_compile_fastmap): Use '\0' to memset, not 0.
56874         (utf8_sb_map): Make the calculations more obvious.
56875         (init_dfa, parse_bracket_exp, build_charclass_op):
56876         Call calloc and cast result, as glibc does.
56877         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56878         (build_range_exp, build_collating_symbol):
56879         Now internal functions.
56880
56881         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56882
56883         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56884         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56885         Don't depend on VMS; depend on __VMS instead, for POSIX
56886         namespace cleanness.
56887         (regoff_t): Define to ssize_t, not long int.
56888
56889         Remove the REG_ macros named below.  Instead, make the old names
56890         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56891         __USE_GNU_REGEX.
56892         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56893         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56894         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56895         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56896         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56897         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56898         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56899         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56900         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56901         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56902         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56903         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56904         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56905         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56906         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56907         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56908         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56909         (REG_NREGS):
56910         Remove.  All uses replaced by the old RE_* names.
56911         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56912         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56913         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56914         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56915         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56916         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56917         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56918         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56919         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56920         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56921         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56922         Don't bother having these macros be independent of each others'
56923         values, since they no longer exist in the POSIX name space.
56924
56925         Rename the following member names back to their old names,
56926         unless !__USE_GNU_REGEX.  All uses changed back.
56927         (buffer): Renamed from re_buffer.
56928         (allocated): Renamed from re_allocated.
56929         (used): Renamed from re_used.
56930         (syntax): Renamed from re_syntax.
56931         (fastmap): Renamed from re_fastmap.
56932         (translate): Renamed from re_translate.
56933         (can_be_null): Renamed from re_can_be_null.
56934         (regs_allocated): Renamed from re_regs_allocated.
56935         (fastmap_accurate): Renamed from re_fastmap_accurate.
56936         (no_sub): Renamed from re_no_sub.
56937         (not_bol): Renamed from re_not_bol.
56938         (not_eol): Renamed from re_not_eol.
56939         (newline_anchor): Renamed from re_newline_anchor.
56940         (num_regs): Renamed from rm_num_regs.
56941         (start): Renamed from rm_start.
56942         (end): Renamed from rm_end.
56943
56944         (free_state): Move up a bit.
56945
56946         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56947         #define to be empty.
56948         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56949         when that is what is intended.
56950         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56951         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56952         (MAX): New macro.
56953         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56954         All uses changed back to re_malloc, etc.  It's now the caller's
56955         responsibility to check for overflow; all callers changed.
56956         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56957         (re_x2nrealloc): Remove.
56958         (free_state): Remove decl.
56959
56960         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56961         (re_set_registers, re_exec):
56962         Use K&R-style defn.
56963
56964         2006-01-31  Roland McGrath  <roland@redhat.com>
56965
56966         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56967         Reported by Mike Frysinger <vapier@gentoo.org>.
56968
56969         2006-01-15  Andreas Jaeger  <aj@suse.de>
56970
56971         [BZ #1950]
56972         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56973         build_wcs_upper_buffer change.
56974         (build_wcs_upper_buffer): Change return type.
56975
56976         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56977
56978         * lib/regex_internal.h: Include <stdint.h> if available.
56979
56980         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56981
56982         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56983
56984         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56985
56986         * lib/regcomp.c: Adjust for changed secondary hash function.
56987
56988         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56989
56990         * lib/regex.h: Pretty printing.
56991         Clean up namespace a bit.
56992
56993         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56994
56995         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56996         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56997
56998         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56999                     Ulrich Drepper  <drepper@redhat.com>
57000
57001         [BZ #1302]
57002         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
57003         changed.
57004         (bitset_word_t): Renamed from bitset_word.  All uses changed.
57005
57006         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
57007
57008         [BZ #281]
57009         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
57010         * lib/regcomp.c: Remove unnecessary uses of
57011         unsigned RE_TRANSLATE_TYPE.
57012         * lib/regex_internal.h: Likewise.
57013         * lib/regex_internal.c: Likewise.
57014         * lib/regexec.c: Likewise.
57015         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
57016
57017         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
57018
57019         * lib/regexec.c (find_recover_state): Remove unnecessary
57020         initialization.
57021         (transit_state_bkref): Make DFA a const pointer.
57022         (get_subexp): Likewise.
57023         (check_arrival): Likewise.
57024         (update_cur_sifted_state): Likewise.
57025         (re_search_internal): Likewise.
57026         (prune_impossible_nodes): Likewise.
57027         (acquire_init_state_context): Likewise.
57028         (proceed_next_node): Likewise.
57029         (set_regs): Likewise.
57030         (free_fail_stack_return): Likewise.
57031         (check_arrival_expand_ecl): Mark DFA parameter as const.
57032         (check_arrival_expand_ecl_sub): Likewise.
57033         (check_subexp_limits): Likewise.
57034         (sub_epsilon_src_nodes):  Likewise.
57035         (add_epsilon_src_nodes):  Likewise.
57036         (merge_state_array): Likewise.
57037         (update_regs): Likewise.
57038         (build_trtable): Likewise.
57039         (sift_states_backward): Mark MCTX parameter as const.
57040         (build_sifted_states): Likewise.
57041         (update_cur_sifted_state): Likewise.
57042         (sift_states_mkref): Likewise.
57043         (check_arrival_expand_ecl): Mark eclosure as const.
57044         (check_dst_limits_calc_pos_1): Likewise.
57045         * lib/regex_internal.h (re_match_context_t): Make dfa a const
57046         pointer.
57047
57048         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
57049
57050         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
57051         (transit_state_sb): Likewise.
57052         (transit_state_mb): Likewise.
57053         (sift_states_iter_mb): Likewise.
57054         (check_arrival_add_next_nodes): Likewise.
57055         (check_node_accept_bytes): Change first parameter to pointer-to-const.
57056         [_LIBC] (re_search_2_stub): Use mempcpy.
57057
57058         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
57059         mbrtowc for very simple UTF-8 case.
57060
57061         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
57062         a pointer-to-const.
57063         (re_acquire_state_context): Likewise.
57064         * lib/regex_internal.h: Adjust prototypes.
57065
57066         * lib/regex.c: Prevent using C++ compilers.
57067
57068         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
57069         (re_acquire_state_context): Likewise.
57070
57071 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57072
57073         * modules/regex (Depends-on): Add ssize_t.
57074
57075 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
57078         translation table.
57079
57080 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
57083
57084 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
57085             Bruno Haible  <bruno@clisp.org>
57086
57087         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
57088         <sys/types.h> and <inttypes.h>.
57089
57090 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57091
57092         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
57093         `__error_t_defined', so argp.h will not typedef the former.
57094
57095 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
57098         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
57099         glibc names.  Even if glibc is changed to conform to POSIX, the
57100         traditional names will be available anyway, since regex depends on
57101         the extensions module.  Also, fix a longstanding typo in the
57102         implementation of Spencer ERE test #75 from grep 2.3.  Problems
57103         reported by Emanuele Giaquinta.  Also, change sense of cached
57104         variable, so that the message makes sense.
57105
57106 2006-03-24  Simon Josefsson  <jas@extundo.com>
57107
57108         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
57109         including some doc fixes.
57110         (base64_encode_alloc): Fix +1 bug on allocation failures.
57111
57112 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57113
57114         * lib/base64.c (base64_encode): Do not read past end of array with
57115         unsanitized input on systems with CHAR_BIT > 8.
57116
57117 2006-03-24  Eric Blake  <ebb9@byu.net>
57118
57119         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
57120
57121 2006-03-22  Karl Berry  <karl@gnu.org>
57122
57123         * config/srclist.txt (*setenv.[ch]): get from coreutils.
57124         * config/srclistvars.sh (COREUTILS): new var.
57125
57126 2006-03-17  Jim Meyering  <jim@meyering.net>
57127
57128         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
57129         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
57130
57131 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57132
57133         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
57134         no longer needs it.  Instead, check that regoff_t is as least
57135         as wide as ptrdiff_t.
57136
57137         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
57138         so that our regex.h stays compatible with the installed regex.
57139         This is helpful for installers who configure --without-included-regex.
57140         Problem reported by Emanuele Giaquinta.
57141
57142 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
57143
57144         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
57145         Typedef to long int, not to off_, as POSIX will likely change
57146         in that direction.
57147
57148 2006-03-15  Eric Blake  <ebb9@byu.net>
57149
57150         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
57151
57152 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57153
57154         * lib/argp-help.c (validate_uparams): Fix typo
57155         * lib/argp-parse.c (argp_default_options): Consistently begin help
57156         messages with a lowercase letter.
57157
57158 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
57159
57160         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
57161         overrun buffers and shouldn't be used (much as gets shouldn't be
57162         used).
57163         * lib/time_r.c (asctime_r, ctime_r): Likewise.
57164
57165 2006-03-08  Simon Josefsson  <jas@extundo.com>
57166
57167         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
57168         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57169
57170 2006-03-08  Simon Josefsson  <jas@extundo.com>
57171
57172         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
57173         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57174
57175 2006-03-08  Simon Josefsson  <jas@extundo.com>
57176
57177         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
57178         signal that configure disabled the device.
57179
57180 2006-03-08  Simon Josefsson  <jas@extundo.com>
57181
57182         * build-aux/maint.mk: Fix refresh-po, to handle no translated
57183         languages.
57184
57185 2006-03-07  Simon Josefsson  <jas@extundo.com>
57186
57187         * modules/getopt (Depends-on): Add unistd.
57188
57189         * modules/unistd: New file.
57190
57191 2006-03-07  Simon Josefsson  <jas@extundo.com>
57192
57193         * modules/gc-random: New file.
57194
57195 2006-03-07  Simon Josefsson  <jas@extundo.com>
57196
57197         * m4/unistd_h.m4: New file.
57198
57199 2006-03-07  Simon Josefsson  <jas@extundo.com>
57200
57201         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
57202         test to be side-effect free by storing the result in the cache
57203         variable gl_cv_lib_readline, and moving the assignment of
57204         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
57205         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57206
57207 2006-03-07  Simon Josefsson  <jas@extundo.com>
57208
57209         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
57210         error on missing devices (the functions will return an error).
57211
57212         * m4/gc.m4: Move random stuff to gc-random.m4
57213
57214 2006-03-07  Simon Josefsson  <jas@extundo.com>
57215
57216         * lib/unistd_.h: New file.
57217
57218 2006-03-07  Simon Josefsson  <jas@extundo.com>
57219
57220         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
57221
57222 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57223
57224         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
57225         Problem reported by Juan Manuel Guerrero.
57226
57227 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57228
57229         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
57230         the unistd module.
57231         * lib/getlogin_r.c: Likewise.
57232         * lib/getlogin_r.h: Likewise.
57233         * lib/glob.c: Likewise.
57234         * lib/pagealign_alloc.c: Likewise.
57235         * lib/unistd_.h: Remove; no longer needed.
57236
57237 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
57238
57239         * MODULES.html.sh (Support for systems lacking POSIX:2001):
57240         Add unistd.
57241         * modules/c-stack (Depends-on): Add unistd.
57242         * modules/getlogin_r: Likewise.
57243         * modules/glob: Likewise.
57244         * modules/pagealign_alloc: Likewise.
57245         * modules/unistd (Files): Remove lib/unistd_.h.
57246         (EXTRA_DIST): Remove.
57247         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
57248         need unistd_.h.
57249         (MOSTLYCLEANFILES): Remove unistd.h-t.
57250
57251 2006-03-03  Simon Josefsson  <jas@extundo.com>
57252
57253         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
57254
57255 2006-03-03  Simon Josefsson  <jas@extundo.com>
57256
57257         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
57258         libidn and bison.
57259
57260 2006-03-03  Simon Josefsson  <jas@extundo.com>
57261
57262         * build-aux/maint.mk: Add indent target.
57263
57264 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
57265
57266         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
57267         our replacement poll.h in any case, to avoid a differing
57268         declaration from a system header.  Seen on AIX.
57269
57270 2006-03-01  Simon Josefsson  <jas@extundo.com>
57271
57272         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
57273         <kasal@ucw.cz>.
57274
57275 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         * modules/gettime (Depends-on): Add extensions module.
57278         * modules/nanosleep (Depends-on): Likewise.
57279         * modules/settime (Depends-on): Likewise.
57280
57281 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57282
57283         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57284         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57285         pedantically.
57286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57287         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57288
57289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57290         not "==".  Reported by Ralf Wildenhues.
57291
57292 2006-03-01  Karl Berry  <karl@gnu.org>
57293
57294         * doc/Copyright/request-*: new files, synced from gnuorg.
57295
57296 2006-03-01  Karl Berry  <karl@gnu.org>
57297
57298         * config/srclist.txt (Copyright/*): new entries.
57299
57300 2006-02-28  Simon Josefsson  <jas@extundo.com>
57301
57302         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57303
57304 2006-02-27  Simon Josefsson  <jas@extundo.com>
57305
57306         * lib/base64.h: Indent #define's.  From Jim Meyering
57307         <jim@meyering.net>.
57308
57309 2006-02-27  Jim Meyering  <jim@meyering.net>
57310
57311         Revert the change of 2006-02-24, so these files can continue
57312         to be sync'd from gettext.
57313         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57314         of `config.h'.
57315
57316 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * modules/intprops: New file.
57319         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57320         Add intprops.
57321         * modules/getloadavg (Files): Remove lib/intprops.h.
57322         (Depends-on): Add intprops.
57323         * modules/human: Likewise.
57324         * modules/inttostr: Likewise.
57325         * modules/openat: Likewise.
57326         * modules/sig2str: Likewise.
57327         * modules/userspec: Likewise.
57328         * modules/utimecmp: Likewise.
57329         * modules/xnanosleep: Likewise.
57330         * modules/xstrtol: Likewise.
57331
57332 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57333
57334         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57335         * modules/lock-tests (TESTS): Use $(EXEEXT).
57336         * modules/tls-tests: Likewise.
57337         * modules/argp-tests: Likewise.
57338         (check_PROGRAMS): New var, replacing...
57339         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57340
57341 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57342
57343         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57344         `config.h'.
57345
57346 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57347
57348         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57349
57350 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57351
57352         Sync from coreutils.
57353         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57354         gl_CHDIR_SAFER.
57355
57356 2006-02-22  Jim Meyering  <jim@meyering.net>
57357
57358         Sync from coreutils.
57359         * m4/chdir-safer.m4: New file.
57360
57361 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57364         AT_FDCWD exceeds INT_MAX.
57365         * lib/openat.h (AT_FDCWD): Likewise.
57366
57367 2006-02-17  Eric Blake  <address@hidden>
57368
57369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57370
57371 2006-02-16  Simon Josefsson  <jas@extundo.com>
57372
57373         * modules/getaddrinfo (Depends-on): Add sys_socket.
57374
57375 2006-02-15  Simon Josefsson  <jas@extundo.com>
57376
57377         * build-aux/maint.mk: Add dsyntax-check rule.
57378
57379 2006-02-15  Eric Blake  <ebb9@byu.net>
57380
57381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57382         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57383         'present but cannot compile' warnings on cygwin.
57384         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57385         use ws2tcpip.h if sys/socket.h works.
57386         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57387         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57388
57389 2006-02-14  Simon Josefsson  <jas@extundo.com>
57390
57391         * modules/maintainer-makefile (Files): Rename.
57392
57393         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57394         and (the local) Makefile.cfg to maint-cfg.mk.
57395
57396         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57397         to the latter.
57398
57399         * modules/maintainer-makefile: New module.
57400
57401         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57402         severaly stripped to make it possible to build it up from scratch
57403         with reliable tests.
57404
57405         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57406         fixes to permit overriding the default actions when configure and
57407         makefile are not available.
57408
57409 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57410
57411         Sync from coreutils.
57412         * modules/lstat (Depends-on): Don't depend on xalloc.
57413         (License): Change from GPL to LGPL, since this is now simply a
57414         replacement for a libc function.
57415
57416 2006-02-14  Jim Meyering  <jim@meyering.net>
57417
57418         Sync from coreutils.
57419
57420         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57421         failure on deficient systems, and simplify gnulib lgpl dependencies.
57422         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57423         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57424
57425         * lib/xalloc-die.c: Remove unused definition of N_.
57426
57427 2006-02-14  Jim Meyering  <jim@meyering.net>
57428
57429         Sync from coreutils.
57430         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57431         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57432         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57433         double-quote uses of that variable, to accommodate the rare case in
57434         which getmntent is available in none of the libraries checked.  This
57435         happens at least on FreeBSD 5.0.
57436
57437 2006-02-13  Simon Josefsson  <jas@extundo.com>
57438
57439         * gnulib-tool (Usage): Fix --import, from
57440         karl@freefriends.org (Karl Berry).
57441
57442 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57443
57444         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57445
57446 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57447
57448         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57449         "autoupdate" on 2005-12-12.
57450
57451 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * modules/closeout (Depends-on): Remove atexit.
57454
57455 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57458         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57459
57460 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57461
57462         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57463         __EXTENSIONS__ if this causes compilation to fail.  Problem
57464         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57465         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57466
57467 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57470         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57472         All uses changed.
57473
57474 2006-01-26  Simon Josefsson  <jas@extundo.com>
57475
57476         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57477         prototype is visible on mingw32.
57478
57479         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57480         for mingw32.
57481
57482         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57483         mingw32).
57484
57485 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57486
57487         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57488         attempt to open for write; this always fails, at least on POSIX
57489         hosts.  This reinstates the 2006-01-09 change, which was
57490         inadvertently removed.
57491
57492 2006-01-26  Bruno Haible  <bruno@clisp.org>
57493
57494         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57495         Reported by Paul Eggert.
57496
57497 2006-01-26  Bruno Haible  <bruno@clisp.org>
57498             Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         * lib/stdbool_.h (_Bool)
57501         [(! (defined __cplusplus || defined __BEOS__)
57502           && !defined __GNUC__
57503           && !(defined __HP_cc || defined __xlc__
57504                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57505                || defined __sgi))]:
57506         #define to signed char in these cases too; this simplifies
57507         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57508         etc., separately) and makes it more conservative.
57509
57510 2006-01-25  Simon Josefsson  <jas@extundo.com>
57511
57512         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57513         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57514         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57515
57516 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57517
57518         * lib/argp-namefrob.h: Bugfix. Remove stray #
57519
57520 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57521
57522         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57523         so that we test the test.
57524         Check for yet another HP-UX cc bug involving *bool |= bool.
57525
57526 2006-01-25  Karl Berry  <karl@gnu.org>
57527
57528         * config/srclist.txt (vasnprintf.c): sync lost.
57529
57530 2006-01-25  Jim Meyering  <jim@meyering.net>
57531
57532         Sync from the stable (b5) branch of coreutils:
57533
57534         * lib/fts.c (fts_children): Don't let close() clobber errno from
57535         failed fchdir().
57536
57537         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57538         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57539         a dangling symlink.  That can also happen at least for ELOOP.
57540         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57541         FYI, this bug predates the inclusion of fts.c in coreutils.
57542
57543         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57544         in their own block, so pre-c99 compilers don't object.
57545
57546         Avoid the double-free (first in fts_read, second in fts_close) that
57547         would occur when an `active' directory is made inaccessible (e.g.,
57548         via chmod a-x) during a traversal.
57549         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57550         before returning.  Reproduce this failure by
57551         mkdir -p a/b; cd a; chmod a-x . b
57552         Reported by Stavros Passas.
57553
57554 2006-01-25  Jim Meyering  <jim@meyering.net>
57555
57556         * lib/fileblocks.c: Remove more useless parentheses.
57557         * lib/readutmp.h: Likewise.
57558
57559 2006-01-25  Bruno Haible  <bruno@clisp.org>
57560
57561         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57562         warnings.
57563         Reported by Paul Eggert.
57564
57565 2006-01-25  Bruno Haible  <bruno@clisp.org>
57566
57567         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57568         rid of a trap command. For Solaris sh.
57569         Reported by Mark D. Baushke <mdb@gnu.org>.
57570
57571 2006-01-24  Simon Josefsson  <jas@extundo.com>
57572
57573         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57574         Bruno.
57575
57576 2006-01-24  Karl Berry  <karl@gnu.org>
57577
57578         * config/srclist.txt (argp-namefrob.h): sync lost.
57579
57580 2006-01-24  Jim Meyering  <jim@meyering.net>
57581
57582         * modules/openat (Files): Add lib/intprops.h.
57583         From Mark D. Baushke.
57584
57585 2006-01-24  Jim Meyering  <jim@meyering.net>
57586
57587         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57588         Reported by Mark D. Baushke.
57589
57590 2006-01-24  Jim Meyering  <jim@meyering.net>
57591
57592         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57593
57594 2006-01-24  Bruno Haible  <bruno@clisp.org>
57595
57596         * modules/strnlen (Maintainer): Change from glibc to all.
57597
57598 2006-01-24  Bruno Haible  <bruno@clisp.org>
57599
57600         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57601         Patch by Paul Eggert.
57602
57603 2006-01-24  Bruno Haible  <bruno@clisp.org>
57604
57605         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57606         already has it.
57607         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57608         2005-11-26.
57609
57610         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57611         'signed char' to avoid problems with the built-in _Bool type.
57612         Reported by Paul Eggert on 2005-11-26.
57613
57614 2006-01-24  Bruno Haible  <bruno@clisp.org>
57615
57616         * gnulib-tool (func_import): Avoid constructing complicated sed
57617         expressions inside backquote.
57618         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57619
57620 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57621
57622         These changes imported from libc.
57623         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57624         test and two separate function calls.
57625         * lib/strndup.c (__strndup): Add libc_hidden_def.
57626
57627 2006-01-23  Simon Josefsson  <jas@extundo.com>
57628
57629         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57630         Remove the test_*_SOURCES variable: automake infers it by default.
57631         * modules/tls-tests: Likewise.
57632
57633 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         Work around porting bugs reported by Dieter in
57636         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57637         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57638         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57639         Include "getopt.h" first, to check interface.
57640         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57641         !HAVE_DECL_GETENV.
57642         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57643         (__strndup): Revert to K&R-style function dfns, the glibc style.
57644         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57645         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57646         Include strnlen.h first, to get prototype properly.
57647         (strnlen): Renamed from __strnlen.
57648         Remove weak alias.
57649
57650 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57651
57652         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57653
57654 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57655
57656         * config/srclist.txt: Adjust to reflect glibc reorganization.
57657         This affects only comments.
57658
57659 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57660
57661          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57662          Reported by Bruce Korb <bkorb@gnu.org>.
57663
57664 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57665
57666         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57667         to pacify gcc -Wswitch-default.
57668
57669 2006-01-22  Bruno Haible  <bruno@clisp.org>
57670
57671         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57672         temporary buffer for sprintf, take into account the precision also
57673         for 'd', 'i', 'u', 'o', 'x', 'X'.
57674
57675 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57676
57677         * modules/argp-tests: New module
57678         * tests/test-argp.c: New file
57679         * tests/test-argp-2.sh: New file
57680
57681 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57682
57683         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57684         (__argp_base_name): Removed
57685         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57686         typo.
57687         (__argp_base_name): Provide macro definition or extern declaration
57688         depending on the configuration
57689
57690 2006-01-20  Simon Josefsson  <jas@extundo.com>
57691
57692         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57693
57694 2006-01-20  Simon Josefsson  <jas@extundo.com>
57695
57696         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57697
57698 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57699
57700         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57701         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57702         Suggested by Bruno Haible.
57703
57704 2006-01-20  Karl Berry  <karl@gnu.org>
57705
57706         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57707         until changes propagate, I guess.
57708
57709 2006-01-19  Simon Josefsson  <jas@extundo.com>
57710
57711         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57712
57713 2006-01-19  Simon Josefsson  <jas@extundo.com>
57714
57715         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57716
57717 2006-01-19  Simon Josefsson  <jas@extundo.com>
57718
57719         * gnulib-tool: Set check_PROGRAMS.
57720
57721         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57722         modules/des-tests, modules/gc-arcfour-tests,
57723         modules/gc-arctwo-tests, modules/gc-des-tests,
57724         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57725         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57726         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57727         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57728         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57729         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57730         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57731         test_*_SOURCES.
57732
57733 2006-01-18  Simon Josefsson  <jas@extundo.com>
57734
57735         * modules/socklen (Depends-on): Depend on sys_socket.
57736
57737 2006-01-18  Simon Josefsson  <jas@extundo.com>
57738
57739         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57740         modules/des-tests, modules/gc-arcfour-tests,
57741         modules/gc-arctwo-tests, modules/gc-des-tests,
57742         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57743         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57744         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57745         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57746         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57747         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57748         $(EXEEXT) to automake TESTS variable, for mingw32.
57749
57750 2006-01-17  Simon Josefsson  <jas@extundo.com>
57751
57752         * modules/socklen (Include): Need sys/socket.h.
57753
57754 2006-01-17  Bruno Haible  <bruno@clisp.org>
57755
57756         * modules/ssize_t (Include): Add <sys/types.h>.
57757
57758 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57759
57760         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57761         it's not portable and it doesn't work with cross-compiles.
57762         Problem reported by Bruno Haible.  Fix missing-$ typo in
57763         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57764         -zignore from being used with Sun's C compiler.
57765
57766 2006-01-12  Simon Josefsson  <jas@extundo.com>
57767
57768         * lib/base64.c: Fix warning, reported by Bruno Haible
57769         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57770
57771 2006-01-12  Bruno Haible  <bruno@clisp.org>
57772
57773         * modules/ldd: New file.
57774         * build-aux/ldd.sh.in: New file.
57775         * MODULES.html.sh (Support for building libraries and executables): Add
57776         ldd.
57777
57778 2006-01-12  Bruno Haible  <bruno@clisp.org>
57779
57780         * m4/ldd.m4: New file.
57781
57782 2006-01-12  Bruno Haible  <bruno@clisp.org>
57783
57784         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57785         endless loop while replacing $auxdir with build-aux.
57786
57787 2006-01-11  Simon Josefsson  <jas@extundo.com>
57788
57789         * lib/stdint_.h (SIZE_MAX): Add missing (.
57790
57791 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         Sync from coreutils.
57794         * lib/md5.c: Fix commentary typos.
57795         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57796         * lib/md5.h (__attribute__): Remove; unused.
57797         * lib/sha1.c: Fix commentary to match md5 better.
57798         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57799         so that we don't need to worry about alignment.  All uses changed.
57800         This merges the 2005-10-28 md5 change into sha1.
57801
57802 2006-01-11  Jim Meyering  <jim@meyering.net>
57803
57804         Sync from coreutils.
57805         * lib/md5.c (OP): Fix spacing.
57806
57807 2006-01-11  Bruno Haible  <bruno@clisp.org>
57808
57809         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57810         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57811         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57812
57813 2006-01-11  Bruno Haible  <bruno@clisp.org>
57814
57815         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57816         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57817         the "early" section as well.
57818
57819 2006-01-11  Bruno Haible  <bruno@clisp.org>
57820
57821         Avoid "ar: no archive members specified" error on MacOS X.
57822         * gnulib-tool (func_modules_add_dummy): New function.
57823         (func_import, func_create_testdir): Invoke it.
57824
57825 2006-01-11  Bruno Haible  <bruno@clisp.org>
57826
57827         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57828         with $auxdir in AC_CONFIG_FILES statements.
57829
57830 2006-01-11  Bruno Haible  <bruno@clisp.org>
57831
57832         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57833         Initialize also noinst_HEADERS to empty.
57834
57835 2006-01-11  Bruno Haible  <bruno@clisp.org>
57836
57837         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57838         variables.
57839         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57840         autoreconf.
57841
57842 2006-01-11  Bruno Haible  <bruno@clisp.org>
57843
57844         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57845         overridable by the user.
57846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57847
57848 2006-01-10  Simon Josefsson  <jas@extundo.com>
57849
57850         * modules/sys_socket: New file.
57851
57852 2006-01-10  Simon Josefsson  <jas@extundo.com>
57853
57854         * m4/sys_socket_h.m4: New file.
57855
57856 2006-01-10  Simon Josefsson  <jas@extundo.com>
57857
57858         * lib/socket_.h: New file.
57859
57860 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * modules/readutmp (Maintainer): Add myself.
57863
57864 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57865
57866         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57867         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57868         People who are still concerned with buggy memcmp implementations
57869         can invoke gl_FUNC_MEMCMP themselves.
57870
57871 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57872
57873         * lib/regex_internal.h (BITSET_WORD_BITS):
57874         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57875         preprocessor mishandles large unsigned values as if they were signed.
57876         Problem reported by Claudio Fontana in
57877         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57878
57879 2006-01-10  Jim Meyering  <jim@meyering.net>
57880
57881         Avoid the double-free (first in fts_read, second in fts_close) that
57882         would occur when an `active' directory is made inaccessible (e.g.,
57883         via chmod a-x) during a traversal.
57884         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57885         before returning.  Reproduce this failure by
57886         mkdir -p a/b; cd a; chmod a-x . b
57887         Reported by Stavros Passas.
57888
57889         Sync from coreutils.
57890         * lib/sha1.c: Tweak grammar in a comment.
57891
57892 2006-01-10  Jim Meyering  <jim@meyering.net>
57893
57894         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57895         Patch by Joerg Sonnenberger.
57896
57897 2006-01-10  Bruno Haible  <bruno@clisp.org>
57898
57899         * modules/readutmp: Depend on module free.
57900         * modules/strtok_r: Depend on module restrict.
57901
57902 2006-01-10  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/gettext (configure.ac): Add an invocation of
57905         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57906
57907 2006-01-10  Bruno Haible  <bruno@clisp.org>
57908
57909         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57910         Reported by Werner Lemberg <wl@gnu.org>.
57911
57912 2006-01-10  Bruno Haible  <bruno@clisp.org>
57913
57914         * lib/localcharset.c: Update from GNU gettext.
57915
57916 2006-01-10  Bruno Haible  <bruno@clisp.org>
57917
57918         * lib/argp.h (__const): Remove macro. Use const instead.
57919         * lib/argp-fmtstream.h (__const): Likewise.
57920         * lib/glob_.h (__const): Remove macro.
57921         * lib/glob-libc.h: Use const instead of __const.
57922
57923 2006-01-10  Bruno Haible  <bruno@clisp.org>
57924
57925         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57926         variable.
57927         Needed to avoid an automake error regarding the 'gettext' module.
57928
57929 2006-01-09  Simon Josefsson  <jas@extundo.com>
57930
57931         * modules/inet_ntop (Depends-on): Add restrict.
57932
57933 2006-01-09  Simon Josefsson  <jas@extundo.com>
57934
57935         * modules/gc-rijndael-tests (License): Put under LGPL.
57936
57937         * modules/gc-des-tests (License): Likewise.
57938
57939         * modules/gc-arcfour-tests (License): Likewise.
57940
57941         * modules/gc-arctwo-tests (License): Likewise.
57942
57943         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57944
57945         * modules/gc-hmac-sha1-tests (Files): Likewise.
57946
57947         * modules/gc-hmac-md5-tests (License): Likewise.
57948
57949         * modules/gc-sha1-tests (License): Likewise.
57950
57951         * modules/gc-md5-tests (License): Likewise.
57952
57953         * modules/gc-md4-tests (License): Likewise.
57954
57955         * modules/gc-md2-tests (License): Likewise.
57956
57957         * modules/gc-tests (License): Likewise.
57958
57959         * modules/des-tests (License): Likewise.
57960
57961         * modules/md4-tests (License): Likewise.
57962
57963         * modules/md2-tests (License): Likewise.
57964
57965 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57966
57967         Sync from coreutils:
57968
57969         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57970         * modules/lib-ignore: New file.
57971         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57972         chdir-safer.m4, lchmod.m4.
57973         * modules/openat: Add mkdirat.c, openat-priv.h.
57974
57975 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         Sync from coreutils.
57978         * m4/lib-ignore.m4: New file.
57979         * m4/lchmod.m4: New file.
57980
57981 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57982
57983         Sync from coreutils.
57984         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57985         for write access: POSIX says that must fail.
57986         * lib/fts.c (diropen): Likewise.
57987         * lib/save-cwd.c (save_cwd): Likewise.
57988         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57989         well, for minor improvements on hosts that lack O_DIRECTORY.
57990         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57991         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57992         Fall back on chown if open failed with EACCES.
57993
57994         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57995         Report an error at compile-time if only a 1-second nominal clock
57996         resolution is found.
57997
57998         * lib/lchmod.h: New file.
57999         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
58000         (make_dir_parents): Use lchown rather than chown, and
58001         lchmod rather than chmod.
58002
58003         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
58004         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
58005         "proc" reported by n0dalus.
58006
58007         * lib/mountlist.c: Include <limits.h>.
58008         (dev_from_mount_options)
58009         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
58010         New function.  It no longer assumes "dev=" has the System V meaning
58011         on Linux (since it doesn't).  It also parses "dev=" more carefully.
58012         (read_file_system_list)
58013         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
58014         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
58015         dev= in that case.
58016
58017         * lib/posixtm.h (PDS_PRE_2000): New macro.
58018         * lib/posixtm.c (year): Arg is now syntax_bits rather than
58019         allow_century.  All usages changed.  Reject dates outside the range
58020         1969-1999 if PDS_PRE_2000 is used.
58021
58022 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58023
58024         Sync from coreutils.
58025         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
58026         (Time of day items): Mention the possibility of leap seconds.
58027         Problem reported by Dr. David Alan Gilbert.
58028
58029 2006-01-09  Jim Meyering  <jim@meyering.net>
58030
58031         Sync from coreutils.
58032
58033         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
58034
58035         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
58036
58037         * lib/modechange.c (mode_compile): Reject an invalid mode string
58038         that starts with an octal digit.  From Andreas Gruenbacher.
58039
58040         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
58041         and dup to open_safer and dup_safer, respectively.
58042         (openat_permissive): Fix typo in comment.
58043
58044         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
58045         "gettext.h"; either no longer needed or are guaranteed by openat.h.
58046         (_): Remove; no longer needed.
58047         (openat): Renamed from rpl_openat; no need for rpl_openat
58048         since openat.h renames openat for us.
58049         Replace most of the body with a call to openat_permissive,
58050         to avoid duplicate code.
58051         Port to (probably hypothetical) environments were mode_t is
58052         wider than int.
58053         (openat_permissive): Require mode arg, so that we can check
58054         types better.  Put it just after flags.  Change cwd failure
58055         indicator from pointer-to-bool to pointer-to-errno-value.
58056         All callers changed.
58057         Invoke openat_save_fail and/or openat_restore_fail if
58058         cwd_errno is null, so that openat can call us.
58059         (openat_permissive, fdopendir, fstatat, unlinkat):
58060         Simplify errno handling to avoid some duplicate code,
58061         as it's OK to set errno on success.
58062         * lib/openat.h: Revamp code so that function macros depend on
58063         __OPENAT_PREFIX only, not also on AT_FDCWD.
58064         (openat_ro): Remove.  Caller changed to use openat_permissive.
58065         (openat_permissive): Now a macro, if not a function.
58066         (openat_restore_fail, openat_save_fail): Now always functions,
58067         since mkdirat needs them even if __OPENAT_PREFIX is defined.
58068
58069         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
58070         and openat.c.
58071         * lib/mkdirat.c: Include openat-priv.h.
58072         Remove definitions of macros defined therein.
58073         * lib/openat.c: Likewise.
58074
58075         * lib/mkdirat.c (mkdirat): New file and function.
58076         * lib/openat.h (mkdirat): Declare.
58077
58078         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
58079
58080         * lib/openat.h (openat_permissive): Declare.
58081         (openat_ro): Define.
58082
58083         * lib/openat.c (EXPECTED_ERRNO): New macro.
58084         (openat_permissive): New function -- used in remove.c rewrite.
58085         (all functions): Set errno just before returning, only if there
58086         was an actual failure.
58087         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
58088
58089         Emulate openat-family functions using Linux's procfs, if possible.
58090         Idea and some code based on Ulrich Drepper's glibc changes.
58091
58092         * lib/openat.c: (BUILD_PROC_NAME): New macro.
58093         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
58094         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
58095         before falling back on save_cwd and restore_cwd.
58096         (fdopendir, fstatat, unlinkat): Likewise.
58097
58098         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
58099         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
58100
58101         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
58102         as second argument to va_arg.  Otherwise, some versions of gcc
58103         warn that `if this code is reached, the program will abort'.
58104
58105 2006-01-09  Jim Meyering  <jim@meyering.net>
58106
58107         Sync from coreutils.
58108         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
58109         Require openat-priv.h.
58110
58111 2006-01-09  Bruno Haible  <bruno@clisp.org>
58112
58113         * modules/strnlen (Include): Use strnlen.h.
58114
58115 2006-01-09  Bruno Haible  <bruno@clisp.org>
58116
58117         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
58118
58119 2006-01-09  Bruno Haible  <bruno@clisp.org>
58120
58121         * lib/sysexit_.h (EX_OK): New macro.
58122         Suggested by Martin Lambers <marlam@marlam.de>.
58123
58124 2006-01-09  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
58127         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
58128
58129 2006-01-09  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
58132         numbers.
58133
58134 2006-01-09  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
58137         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
58138         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
58139         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
58140
58141 2006-01-09  Bruno Haible  <bruno@clisp.org>
58142
58143         * build-aux/javacomp.sh.in: New file, moved from lib/.
58144         * modules/javacomp-script (Files): Update.
58145         (configure.ac): Add AC_CONFIG_FILES invocation.
58146         (EXTRA_DIST): Remove variable.
58147
58148         * build-aux/javaexec.sh.in: New file, moved from lib/.
58149         * modules/javaexec (Files): Update.
58150         (configure.ac): Add AC_CONFIG_FILES invocation.
58151         (EXTRA_DIST): Remove javaexec.sh.in.
58152
58153         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
58154         * modules/csharpcomp-script (Files): Update.
58155         (configure.ac): Add AC_CONFIG_FILES invocation.
58156         (EXTRA_DIST): Remove variable.
58157
58158         * build-aux/csharpexec.sh.in: New file, moved from lib/.
58159         * modules/csharpexec (Files): Update.
58160         (configure.ac): Add AC_CONFIG_FILES invocation.
58161         (EXTRA_DIST): Remove csharpexec.sh.in.
58162
58163 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58164
58165         Sync from coreutils.
58166
58167         Add POSIX ACL support
58168         * lib/acl.h (copy_acl, set_acl): Add declarations.
58169         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
58170         systems other than Linux.
58171         (chmod_or_fchmod): New function: use fchmod when possible,
58172         and chmod otherwise.
58173         (file_has_acl): Add a POSIX ACL implementation, with a
58174         Linux-specific subcase.
58175         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
58176         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
58177         acls are unsupported.
58178         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
58179         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
58180         are unsupported.
58181
58182 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58183
58184         Sync from coreutils.
58185         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
58186
58187 2006-01-07  Bruno Haible  <bruno@clisp.org>
58188
58189         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
58190         gl_EARLY.
58191
58192 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58193
58194         * lib/strftime.c (tzname): Don't declare if it is already #defined.
58195         Problem reported for Mingw by Mark Junker.
58196
58197 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         * README: Gnulib normally doesn't generate a tarball.
58200
58201 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
58202
58203         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
58204         long int, not int, for nanosecond counts, so that people who are
58205         used to POSIX struct timespec won't be surprised.  Reported by Jim
58206         Meyering.
58207
58208 2005-12-28  Bruno Haible  <bruno@clisp.org>
58209
58210         * build-aux/config.rpath: Update from GNU gettext.
58211
58212 2005-12-16  Jim Meyering  <jim@meyering.net>
58213
58214         * modules/fprintftime: New module.
58215         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
58216
58217 2005-12-16  Jim Meyering  <jim@meyering.net>
58218
58219         * m4/fprintftime.m4: New file.
58220
58221 2005-12-16  Jim Meyering  <jim@meyering.net>
58222
58223         * lib/fprintftime.c, lib/fprintftime.h: New files.
58224
58225 2005-12-15  Simon Josefsson  <jas@extundo.com>
58226
58227         * modules/socklen (configure.ac): Fix M4 macro name, to align with
58228         new m4/socklen.m4.
58229
58230 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58231
58232         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
58233         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
58234
58235 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58236
58237         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
58238         * lib/argp-help.c (fill_in_uparams): Check if the constructed
58239         struct uparams is valid. Fall back to the default values if it is
58240         not.
58241
58242 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58243
58244         * modules/argp (Files): Add argp-pin.c
58245         (Depends-on): dirname
58246         (lib_SOURCES): Add argp-pin.c
58247
58248 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58249
58250         * m4/argp.m4:  Check if program_invocation_name and
58251         program_invocation_short_name are declared and define appropriate
58252         macros if they are not.
58253
58254 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58255
58256         * lib/argp-help.c (__argp_base_name): New function
58257         (__argp_short_program_name): Rewrite using __argp_base_name
58258         * lib/argp-namefrob.h: Define program_invocation_name and
58259         program_invocation_short_name if requested
58260         (__argp_base_name): Add prototype
58261         * lib/argp-parse.c (argp_def): Use gettext wrappers
58262         (argp_default_parser): Use __argp_base_name
58263         * lib/argp-pin.c: New file. Defines program_invocation_name and
58264         program_invocation_short_name on systems that lack them.
58265
58266 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
58269         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58270         porting problem reported by Georg Schwarz in
58271         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58272
58273 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
58276         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
58277         porting problem reported by Georg Schwarz in
58278         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
58279
58280 2005-12-05  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58283         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58284         Reported by Mark Junker <mjscod@gmx.de>.
58285
58286 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58287
58288         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58289         Use implementation from Albert Chin, with some
58290         comments/corrections by Stepan Kasal and myself.
58291
58292 2005-12-02  Bruno Haible  <bruno@clisp.org>
58293
58294         * gnulib-tool (func_import): Accept GPLed build tool modules when
58295         --lgpl is given.
58296         * modules/csharpcomp-script: New file.
58297         * modules/csharpcomp: Depend on it.
58298         * modules/javacomp-script: New file.
58299         * modules/javacomp: Depend on it.
58300         Suggested by Simon Josefsson.
58301
58302 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58303
58304         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58305         statement, to work around an HP-UX 10.20 compiler bug reported by
58306         Peter O'Gorman.
58307
58308 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58309
58310         * modules/savedir (Depends-on): Add openat.
58311
58312 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58313
58314         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58315         (uintmax_t) [defined uintmax_t]: Do not declare.
58316         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58317         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58318         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58319         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58320         sake of portability to weird hosts that C allows (though we don't
58321         know of any practical examples).
58322
58323         * lib/savedir.h (fdsavedir): New decl.
58324         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58325         contains most of the former guts of savedir.
58326         (savedir): Use savedirstream.
58327         Include "openat.h".
58328
58329 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * modules/obstack (Files): Add m4/ulonglong.m4.
58332         Problem reported by Davide Angelocola.
58333
58334 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58335
58336         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58337         coreutils no longer futzes with rounding modes.
58338
58339 2005-11-14  Jim Meyering  <jim@meyering.net>
58340
58341         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58342         replacement of mkstemp.
58343
58344 2005-11-10  Simon Josefsson  <jas@extundo.com>
58345
58346         * lib/readline.c: Remove EOL.
58347
58348 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * modules/gethrxtime (Depends-on): Add gettime.
58351
58352 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58353
58354         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58355         or gettimeofday; no longer needed.
58356
58357 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58358
58359         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58360         time business.
58361         (gethrxtime) [! (HAVE_NANOUPTIME
58362         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58363         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58364         our own approximation.
58365
58366 2005-11-08  Eric Blake  <ebb9@byu.net>
58367
58368         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58369
58370 2005-11-08  Eric Blake  <ebb9@byu.net>
58371
58372         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58373
58374 2005-11-04  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool: Implement --update mode.
58377
58378 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58379
58380         Fix porting problem reported by Theodoros V. Kalamatianos.
58381         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58382         Don't assume that futimes failing means we must fail.
58383
58384 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58385
58386         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58387         variables to suggest the intended function of the PATH_MAX check.
58388
58389 2005-10-30  Kean Johnston  <jkj@sco.com>
58390
58391         Trivial changes to support SCO systems.
58392         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58393         as PATH_MAX.
58394         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58395         where __ptr is null when no I/O is pending.
58396
58397 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58400         leave errno alone.  Problem reported by Dmitry V. Levin.
58401
58402 2005-10-28  Simon Josefsson  <jas@extundo.com>
58403
58404         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58405         Test more.
58406
58407         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58408
58409         * modules/md2, modules/md2-tests: New files.
58410
58411 2005-10-28  Simon Josefsson  <jas@extundo.com>
58412
58413         * m4/inet_ntop.m4: More tests.
58414
58415         * m4/gc-md2.m4, md2.m4: New file.
58416
58417 2005-10-28  Simon Josefsson  <jas@extundo.com>
58418
58419         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58420         "restrict" keywords, as per POSIX.  Protect the function
58421         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58422         Don't use K&R prototypes.  Check the sprintf return values.
58423         Re-define EAFNOSUPPORT if not present.  Indent.
58424
58425         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58426         suggested by Bruno Haible <bruno@clisp.org>.
58427
58428         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58429
58430         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58431
58432         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58433         libgcrypt).
58434
58435         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58436
58437         * lib/md2.h, lib/md2.c: New files.
58438
58439 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58442         errno alone.  Problem reported by Frederic Jolliton.
58443
58444 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58445
58446         * modules/verify (License): Change from GPL to LGPL.  This is a
58447         tiny module and there are apparently near-equivalents that are
58448         under the BSD license.
58449
58450 2005-10-24  Simon Josefsson  <jas@extundo.com>
58451
58452         * modules/sha1: Relicense to LGPL.
58453
58454 2005-10-24  Simon Josefsson  <jas@extundo.com>
58455
58456         * lib/md4.h: Shrink buffer size, now that we changed the type.
58457
58458 2005-10-23  Simon Josefsson  <jas@extundo.com>
58459
58460         * gnulib-tool (func_import): Fix --tests-base.
58461
58462 2005-10-22  Simon Josefsson  <jas@extundo.com>
58463
58464         * modules/arcfour (Depends-on): Need stdint.
58465
58466 2005-10-22  Simon Josefsson  <jas@extundo.com>
58467
58468         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58469         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58470
58471 2005-10-22  Simon Josefsson  <jas@extundo.com>
58472
58473         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58474         suggested by Bruno Haible <bruno@clisp.org>.
58475
58476 2005-10-22  Simon Josefsson  <jas@extundo.com>
58477
58478         * lib/crc.h: Include stddef.h, for size_t.
58479
58480 2005-10-22  Simon Josefsson  <jas@extundo.com>
58481
58482         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58483         arcfour_context struct (simplify test vector testing in GNU
58484         Shishi).
58485
58486 2005-10-21  Simon Josefsson  <jas@extundo.com>
58487
58488         * modules/des, modules/des-tests: New files.
58489
58490         * modules/gc-des, modules/gc-des-tests: New files.
58491
58492         * tests/test-des.c, tests/test-gc-des.c: New file.
58493
58494 2005-10-21  Simon Josefsson  <jas@extundo.com>
58495
58496         * modules/arctwo, modules/arctwo-tests: New files.
58497
58498         * tests/test-arctwo.c: New file.
58499
58500         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58501
58502         * tests/test-gc-arctwo.c: New file.
58503
58504 2005-10-21  Simon Josefsson  <jas@extundo.com>
58505
58506         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58507         Bruno Haible <bruno@clisp.org>.
58508
58509         * m4/gc-des.m4: New file.
58510
58511 2005-10-21  Simon Josefsson  <jas@extundo.com>
58512
58513         * m4/arctwo.m4: New file.
58514
58515         * m4/gc-arctwo.m4: New file.
58516
58517 2005-10-21  Simon Josefsson  <jas@extundo.com>
58518
58519         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58520         block.
58521
58522 2005-10-21  Simon Josefsson  <jas@extundo.com>
58523
58524         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58525         <bruno@clisp.org>.
58526
58527         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58528
58529         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58530         Bruno Haible <bruno@clisp.org>.
58531
58532         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58533         <bruno@clisp.org>.
58534
58535 2005-10-21  Simon Josefsson  <jas@extundo.com>
58536
58537         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58538
58539 2005-10-21  Simon Josefsson  <jas@extundo.com>
58540
58541         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58542
58543 2005-10-21  Simon Josefsson  <jas@extundo.com>
58544
58545         * lib/des.h, lib/des.c: New files.
58546
58547         * lib/gc-gnulib.c: Support DES.c
58548
58549 2005-10-21  Simon Josefsson  <jas@extundo.com>
58550
58551         * lib/arctwo.h, lib/arctwo.c: New files.
58552
58553         * lib/gc-gnulib.c: Support ARCTWO.
58554
58555 2005-10-21  Simon Josefsson  <jas@extundo.com>
58556
58557         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58558         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58559
58560 2005-10-21  Simon Josefsson  <jas@extundo.com>
58561
58562         * gnulib-tool (func_import, func_create_testdir): Define automake
58563         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58564         Makefile.am snippet),
58565         suggested by Bruno Haible <bruno@clisp.org>.
58566
58567         * modules/gc (Makefile.am): Use it.
58568
58569 2005-10-21  Bruno Haible  <bruno@clisp.org>
58570
58571         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58572         patch.
58573
58574 2005-10-19  Simon Josefsson  <jas@extundo.com>
58575
58576         * tests/test-gc-rijndael.c: New file.
58577
58578         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58579
58580 2005-10-19  Simon Josefsson  <jas@extundo.com>
58581
58582         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58583         interface too.
58584
58585 2005-10-19  Simon Josefsson  <jas@extundo.com>
58586
58587         * tests/test-gc-arcfour.c: New file.
58588
58589         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58590
58591 2005-10-19  Simon Josefsson  <jas@extundo.com>
58592
58593         * modules/gc-md4, modules/gc-md4-tests: New file.
58594
58595         * tests/test-gc-md4.c: New file.
58596
58597 2005-10-19  Simon Josefsson  <jas@extundo.com>
58598
58599         * m4/gc-md4.m4: New file.
58600
58601 2005-10-19  Simon Josefsson  <jas@extundo.com>
58602
58603         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58604         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58605         <kasal@ucw.cz>.
58606
58607 2005-10-19  Simon Josefsson  <jas@extundo.com>
58608
58609         * m4/gc-arcfour.m4: New file.
58610
58611         * m4/gc-rijndael.m4: New file.
58612
58613 2005-10-19  Simon Josefsson  <jas@extundo.com>
58614
58615         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58616
58617 2005-10-19  Simon Josefsson  <jas@extundo.com>
58618
58619         * lib/gc-gnulib.c: Support ARCFOUR.
58620
58621 2005-10-19  Simon Josefsson  <jas@extundo.com>
58622
58623         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58624         support.
58625
58626         * lib/gc.h: Add ECB enum type.
58627
58628         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58629
58630 2005-10-18  Simon Josefsson  <jas@extundo.com>
58631
58632         * tests/test-md5.c: New file.
58633
58634         * modules/md5-tests: New file.
58635
58636 2005-10-18  Simon Josefsson  <jas@extundo.com>
58637
58638         * tests/test-md4.c: New file.
58639
58640         * modules/md4, modules/md4-tests: New files.
58641
58642 2005-10-18  Simon Josefsson  <jas@extundo.com>
58643
58644         * m4/md4.m4: New file.
58645
58646 2005-10-18  Simon Josefsson  <jas@extundo.com>
58647
58648         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58649
58650 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58651
58652         * gnulib-tool (func_create_testdir): Omit the second check whether
58653         BUILT_SOURCES in nonempty.
58654
58655 2005-10-17  Simon Josefsson  <jas@extundo.com>
58656
58657         * tests/test-rijndael.c: New file.
58658
58659 2005-10-17  Simon Josefsson  <jas@extundo.com>
58660
58661         * modules/sha1: Depend on stdint instead of md5.
58662
58663         * modules/md5: Depend on stdint, remove uint32_t.
58664
58665 2005-10-17  Simon Josefsson  <jas@extundo.com>
58666
58667         * modules/gc-sha1-tests: New file.
58668
58669         * tests/test-gc-sha1.c: New file.
58670
58671 2005-10-17  Simon Josefsson  <jas@extundo.com>
58672
58673         * m4/md5.m4: Remove call to uint32_t.m4.
58674
58675 2005-10-17  Simon Josefsson  <jas@extundo.com>
58676
58677         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58678
58679         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58680         md5.h.
58681
58682         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58683
58684         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58685
58686 2005-10-17  Simon Josefsson  <jas@extundo.com>
58687
58688         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58689
58690 2005-10-17  Simon Josefsson  <jas@extundo.com>
58691
58692         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58693
58694 2005-10-17  Simon Josefsson  <jas@extundo.com>
58695
58696         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58697
58698         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58699
58700 2005-10-17  Bruno Haible  <bruno@clisp.org>
58701
58702         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58703         that it can also be used in a test.
58704
58705 2005-10-16  Bruno Haible  <bruno@clisp.org>
58706
58707         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58708         TESTS_ENVIRONMENT, so that individual tests can augment it.
58709
58710         * gnulib-tool (func_create_testdir): Use an intermediate target for
58711         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58712         macros, like $(ALLOCA_H), which cannot be passed through the command
58713         line.
58714
58715 2005-10-15  Simon Josefsson  <jas@extundo.com>
58716
58717         * modules/rijndael-tests: New file.
58718
58719         * modules/rijndael: New file.
58720
58721 2005-10-15  Simon Josefsson  <jas@extundo.com>
58722
58723         * m4/rijndael.m4: New file.
58724
58725 2005-10-15  Simon Josefsson  <jas@extundo.com>
58726
58727         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58728
58729         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58730
58731 2005-10-14  Simon Josefsson  <jas@extundo.com>
58732
58733         * tests/test-arcfour.c: New file.
58734
58735         * modules/arcfour, modules/arcfour-tests: New files.
58736
58737 2005-10-14  Simon Josefsson  <jas@extundo.com>
58738
58739         * m4/arcfour.m4: New file.
58740
58741 2005-10-14  Simon Josefsson  <jas@extundo.com>
58742
58743         * lib/arcfour.h, lib/arcfour.c: New files.
58744
58745 2005-10-14  Roland McGrath  <roland@redhat.com>
58746
58747         Import from libc.  [BZ #1331]
58748         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58749         macro argument.
58750         Reported by Matej Vela <vela@debian.org>.
58751
58752 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58753
58754         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58755         include <wchar.h>; no longer needed.
58756
58757 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58760
58761 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58762         and  Ulrich Drepper  <drepper@redhat.com>
58763
58764         Import from libc.
58765         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58766         instead of inline stream orientation test and two separate
58767         function calls.  Pay no attention to USE_IN_LIBIO.
58768
58769 2005-10-13  Simon Josefsson  <jas@extundo.com>
58770
58771         * modules/gc-hmac-md5-tests: New file.
58772
58773         * tests/test-gc-hmac-sha1.c: New file.
58774
58775         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58776
58777         * modules/gc-hmac-md5-tests: New file.
58778
58779         * tests/test-gc-md5.c: New file.
58780
58781         * modules/gc-md5-tests: New file.
58782
58783 2005-10-13  Simon Josefsson  <jas@extundo.com>
58784
58785         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58786         Move memory allocation outside of loop.
58787
58788 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58789
58790         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58791         intermediate directory is in a read-only file system.  Problem
58792         reported by Eric Blake.
58793
58794 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58795
58796         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58797
58798 2005-10-12  Simon Josefsson  <jas@extundo.com>
58799
58800         * tests/test-hmac-sha1.c: New file.
58801
58802         * modules/hmac-sha1-tests: New file.
58803
58804         * modules/hmac-sha1: New file.
58805
58806 2005-10-12  Simon Josefsson  <jas@extundo.com>
58807
58808         * modules/gc-sha1: New file.
58809
58810 2005-10-12  Simon Josefsson  <jas@extundo.com>
58811
58812         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58813
58814         * tests/test-gc-pbkdf2-sha1.c: New file.
58815
58816 2005-10-12  Simon Josefsson  <jas@extundo.com>
58817
58818         * modules/gc-md5, modules/gc-hmac-md5: New files.
58819
58820         * modules/gc (Files): Remove md5, memxor and hmac files.
58821
58822 2005-10-12  Simon Josefsson  <jas@extundo.com>
58823
58824         * m4/gc-pbkdf2-sha1.m4: New file.
58825
58826         * m4/gc-hmac-sha1.m4: New file.
58827
58828         * m4/gc-sha1: New file.
58829
58830         * m4/hmac-sha1.m4: New file.
58831
58832 2005-10-12  Simon Josefsson  <jas@extundo.com>
58833
58834         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58835
58836         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58837
58838 2005-10-12  Simon Josefsson  <jas@extundo.com>
58839
58840         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58841         suggested by Bruno Haible <bruno@clisp.org>.
58842
58843 2005-10-12  Simon Josefsson  <jas@extundo.com>
58844
58845         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58846
58847 2005-10-12  Simon Josefsson  <jas@extundo.com>
58848
58849         * lib/gc-pbkdf2-sha1.c: New file.
58850
58851         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58852
58853 2005-10-12  Simon Josefsson  <jas@extundo.com>
58854
58855         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58856
58857         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58858
58859 2005-10-12  Simon Josefsson  <jas@extundo.com>
58860
58861         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58862         GC_USE_HMAC_MD5, respectively.
58863
58864         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58865         (gc_md5): Fix typo.
58866
58867         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58868
58869         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58870
58871         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58872
58873 2005-10-12  Bruno Haible  <bruno@clisp.org>
58874
58875         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58876         Reported by Stepan Kasal <kasal@ucw.cz>.
58877
58878 2005-10-11  Simon Josefsson  <jas@extundo.com>
58879
58880         * tests/test-crc.c: New file.
58881
58882         * modules/crc, modules/crc-tests: New files.
58883
58884 2005-10-11  Simon Josefsson  <jas@extundo.com>
58885
58886         * m4/crc.m4: New file.
58887
58888 2005-10-11  Simon Josefsson  <jas@extundo.com>
58889
58890         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58891
58892         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58893
58894         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58895
58896 2005-10-11  Simon Josefsson  <jas@extundo.com>
58897
58898         * lib/crc.h, lib/crc.c: New files.
58899
58900         * lib/gc.h (gc_hash_buffer): Add doc.
58901
58902 2005-10-11  Bruno Haible  <bruno@clisp.org>
58903
58904         * modules/c-strcasestr: New file.
58905         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58906
58907 2005-10-11  Bruno Haible  <bruno@clisp.org>
58908
58909         * modules/c-strcase: New file.
58910         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58911
58912 2005-10-11  Bruno Haible  <bruno@clisp.org>
58913
58914         * lib/strcasecmp.c: Include limits.h.
58915         (strcasecmp): Avoid integer overflow on exotic platforms.
58916         * lib/strncasecmp.c: Include limits.h.
58917         (strncasecmp): Avoid integer overflow on exotic platforms.
58918         Reported by Paul Eggert.
58919
58920 2005-10-11  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/c-strcasestr.h: New file, from GNU gettext.
58923         * lib/c-strcasestr.c: New file, from GNU gettext.
58924
58925 2005-10-11  Bruno Haible  <bruno@clisp.org>
58926
58927         * lib/c-strcase.h: New file, from GNU gettext.
58928         * lib/c-strcasecmp.c: New file, from GNU gettext.
58929         * lib/c-strncasecmp.c: New file, from GNU gettext.
58930
58931 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * modules/mempcpy (License): GPL -> LGPL.
58934         * modules/strchrnul (License): Likewise.
58935         * modules/sysexits (License): Likewise.
58936
58937 2005-10-08  Simon Josefsson  <jas@extundo.com>
58938
58939         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58940
58941 2005-10-07  Simon Josefsson  <jas@extundo.com>
58942
58943         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58944
58945 2005-10-06  Simon Josefsson  <jas@extundo.com>
58946
58947         * tests/test-hmac-md5.c: New file.
58948
58949         * modules/hmac-md5-tests: New file.
58950
58951         * modules/hmac-md5: New file.
58952
58953 2005-10-06  Simon Josefsson  <jas@extundo.com>
58954
58955         * m4/hmac-md5.m4: New file.
58956
58957         * m4/memxor.m4: Require gl_C_RESTRICT.
58958
58959 2005-10-06  Simon Josefsson  <jas@extundo.com>
58960
58961         * lib/memxor.c (memxor): Avoid casts and warnings.
58962
58963 2005-10-06  Simon Josefsson  <jas@extundo.com>
58964
58965         * lib/hmac-md5.c: New file.
58966
58967         * lib/hmac.h: New file.
58968
58969 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58970
58971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58972         promotes to int, not unsigned int, to catch the AIX 5.3
58973         compiler bug.
58974
58975 2005-10-05  Simon Josefsson  <jas@extundo.com>
58976
58977         * modules/memxor: New file.
58978
58979         * modules/iconv (Files): Move config.rpath to havelib, it is used
58980         there.
58981
58982         * modules/havelib (Files): Add config.rpath.
58983
58984 2005-10-05  Simon Josefsson  <jas@extundo.com>
58985
58986         * m4/memxor.m4: New file.
58987
58988 2005-10-05  Simon Josefsson  <jas@extundo.com>
58989
58990         * lib/memxor.c (memxor): Fix compiler error.
58991
58992         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58993         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58994
58995         * lib/memxor.h, lib/memxor.c: New files.
58996
58997         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58998         we assume all systems have it, suggested by Jim Meyering
58999         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
59000         any systems lack sys/socket.h; mingw32 is known to lack it, but we
59001         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
59002         same reasons.
59003
59004 2005-10-05  Simon Josefsson  <jas@extundo.com>
59005
59006         * config/srclist.txt: Add glibc bug 1423 for md5.h.
59007
59008 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59009
59010         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
59011         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
59012         needed, since the source code now assumes these .h files.
59013
59014 2005-10-05  Derek Price  <derek@ximbiot.com>
59015
59016         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
59017
59018 2005-10-05  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/stdint (License): Change to LGPL.
59021
59022 2005-10-04  Simon Josefsson  <jas@extundo.com>
59023
59024         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
59025         D. Baushke" <mdb@gnu.org>.
59026
59027 2005-10-04  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/verify.h (verify_true): Provide alternative definition for C++.
59030
59031 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
59032
59033         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
59034         (SSIZE_MAX): New macro, if not already defined.
59035         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
59036         than 2 GiB.
59037
59038 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         Sync from coreutils.
59041         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
59042         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
59043         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
59044         ULLONG_MAX doesn't work with 2.7.2.1.
59045
59046 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
59049         From Ben Pfaff.
59050
59051         * modules/exclude (Depends-on): Depend on verify.
59052         * modules/strtoimax (Depends-on): Likewise.
59053         * modules/utimecmp (Depends-on): Likewise.
59054
59055 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
59056
59057         * lib/exclude.c: Include verify.h.
59058         (verify): Remove.  All callers changed to use verify.h's version.
59059         * lib/strtoimax.c: Likewise.
59060         * lib/utimecmp.c: Likewis.e
59061
59062         Sync from coreutils.
59063         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
59064         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
59065         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
59066         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
59067         bother returning ENOSYS if settimeofday or stime fails; just let
59068         them return whatever errno they want to return.
59069         * lib/utimens.c: Include unistd.h, for dup2.
59070         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
59071         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
59072
59073 2005-10-02  Jim Meyering  <jim@meyering.net>
59074
59075         Sync from coreutils.
59076         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
59077         from glibc-2.2.5 that fails for read-only files.
59078
59079 2005-10-02  Jim Meyering  <jim@meyering.net>
59080
59081         Sync from coreutils.
59082         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
59083         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
59084         `#if HAVE_CONFIG_H'.
59085         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
59086         Remove AT_FDCWD test.
59087         Do not consume the fd unless successful.
59088         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
59089         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
59090         block, so that we don't even try to compile it if settimeofday is
59091         available.  This works around a compilation failure on OSF1 V5.1,
59092         due to stime requiring a `long int*' while tv_sec is `int'.
59093
59094 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
59095
59096         Sync from coreutils.
59097         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
59098         against `yes', rather than just testing for nonempty.
59099
59100 2005-10-01  Simon Josefsson  <jas@extundo.com>
59101
59102         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
59103         and Darwin.
59104
59105         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
59106         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
59107         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
59108         freeaddrinfo and gai_strerror are declared by the POSIX headers.
59109         Check if struct addrinfo is declared.
59110
59111 2005-10-01  Simon Josefsson  <jas@extundo.com>
59112
59113         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
59114         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
59115         AI_* and EAI_* definitions.  Protect function declarations.
59116
59117 2005-10-01  Jim Meyering  <jim@meyering.net>
59118
59119         Sync from coreutils.
59120
59121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
59122         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
59123         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
59124         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59125         in the inet and nsl libraries.  Required on Solaris 5.7.
59126
59127 2005-10-01  Jim Meyering  <jim@meyering.net>
59128
59129         Sync from coreutils.
59130         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
59131         in the inet and nsl libraries.  Required on Solaris 5.7.
59132
59133 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
59134
59135         * lib/getdelim.c (getdelim): Remove unused variables.
59136
59137 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
59140         so that the code works even with ancient cpp.  Portability problem
59141         with GCC 2.7.2.1 reported by Thomas M.Ott.
59142
59143 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         * modules/regex (Depends-on): Add strcase.
59146
59147         * modules/gethostname (Licence): Change from GPL to LGPL, since
59148         gethostname.c is a trivial implementation of a standard library
59149         function.
59150         * modules/poll (License): Change from GPL to LGPL, since it's
59151         derived from LGPL code.
59152
59153 2005-09-27  Jim Meyering  <jim@meyering.net>
59154
59155         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
59156         HAVE_CONFIG_H.
59157
59158         * lib/intprops.h (signed_type_or_expr__): Define.
59159         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
59160         for unsigned types.
59161
59162 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59163
59164         * lib/verify.h (verify_expr): Remove, replacing with:
59165         (verify_true): New macro that returns true instead of void.
59166         (verify_type__): Remove.
59167         (verify): Use verify_true rather than verify_type__.
59168
59169 2005-09-26  Bruno Haible  <bruno@clisp.org>
59170
59171         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
59172         is necessary.
59173         (lib_SOURCES): Remove mbchar.c.
59174         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
59175         (Files): Add m4/mbrtowc.m4.
59176         * modules/mbiter: Likewise.
59177         * modules/mbuiter: Likewise.
59178
59179 2005-09-26  Bruno Haible  <bruno@clisp.org>
59180
59181         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
59182         compile mbchar.c if they are not both present.
59183         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
59184         * m4/mbiter.m4 (gl_MBITER): Likewise.
59185         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
59186         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
59187         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
59188
59189 2005-09-25  Jim Meyering  <jim@meyering.net>
59190
59191         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
59192         also uses socklen_t.
59193
59194 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         * lib/utimens.c (ENOSYS): Define if not already defined.
59197         (futimens): Support having a null PATH if the file descriptor
59198         is nonnegative.
59199
59200         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
59201         Remove.
59202         (__attribute): Define to empty unless GCC 3.1 or later.
59203         This works around a core dump on OpenBSD 3.4, which has GCC
59204         2.95.3, which dumps core when given __attribute__(()).  It also
59205         simplifies other tests, since we really don't want to bother with
59206         worrying about which ancient version of GCC supported what.
59207         Original problem reported by Yoann Vandoorselaere, with part of
59208         the fix suggested by Derek Price.
59209
59210 2005-09-24  Jim Meyering  <jim@meyering.net>
59211
59212         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
59213         so we can once again use a positive bitfield width of 1 -- now we
59214         don't have to explain why we were using a bitfield width of 2.
59215
59216 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
59219         and similarly for the other external symbols.  Problem reported
59220         by James Gallager.
59221
59222         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
59223         bug reported by Jim Meyering.
59224
59225         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
59226         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
59227         not needed, since socklen is a prerequisite module.
59228
59229 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
59232         Problem reported by Eric Blake.
59233         (getaddrinfo): Initialize se so that it's not garbage.
59234         Redo internal storage allocation so that it doesn't make unportable
59235         assumptions about alignment.
59236         Fix a memory leak.
59237
59238         * lib/utimens.c (futimens): Use futimesat if available.
59239         Prefer it to futimes since it doesn't have the futimes bug.
59240
59241         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
59242         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
59243         Instead, declare a function that returns a pointer to an array,
59244         and use verify_type__ to declare the size of the array.
59245         Problem and germ of a solution reported by Bruno Haible.
59246         (verify_type__): Use 2, not 1, for bitfield size, to avoid
59247         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
59248
59249 2005-09-23  Jim Meyering  <jim@meyering.net>
59250
59251         Sync from coreutils.
59252         Correct build failure (socklen_t not defined) on at least
59253         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
59254         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
59255
59256 2005-09-23  Jim Meyering  <jim@meyering.net>
59257
59258         * modules/getaddrinfo (Depends-on): Add socklen.
59259
59260 2005-09-23  Bruno Haible  <bruno@clisp.org>
59261
59262         * tests/test-verify.c: New file.
59263
59264 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59265
59266         Sync from coreutils.
59267
59268         * modules/argmatch (Depends-on): Add verify.
59269         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
59270         unistd-safer.
59271         * modules/save-cwd (Depends-on): Likewise.
59272
59273         * modules/openat (Files): Add lib/openat-die.c.
59274         (Depends-on): Remove error, exitfail.
59275         Add dirname.
59276
59277         * modules/verify: New file.
59278         * MODULES.html.sh (Diagnostics <assert.h>): New section,
59279         with "verify" module.
59280
59281 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         Sync from coreutils.
59284
59285         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59286         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59287         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59288         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59289         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59290         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59291         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59292         Don't bother checking for string.h, stdlib.h, unistd.h.
59293         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59294         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59295         module's job.
59296         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59297         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59298
59299         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59300         (gl_GETDATE): Use it.
59301
59302         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59303
59304 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59305
59306         Sync from coreutils.
59307
59308         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59309         stat-time.h.
59310         * lib/argmatch.h: Include verify.h
59311         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59312         (ARGMATCH_ASSERT): Remove; unused.
59313         * lib/canonicalize.c: Assume STDC_HEADERS.
59314         * lib/exclude.c: Include "strcase.h".
59315         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59316         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59317         and stdio-safer.h.
59318         (getusershell): Call fopen, not fopen_safer.
59319         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59320         Do not include unistd-safer.h.
59321         (save_cwd): Don't call fd_safer; no longer needed
59322         now that we include fcntl--.h.
59323
59324         * lib/getdate.y (relative_time): New type.
59325         (RELATIVE_TIME_0): New constant.
59326         (parser_control): Use relative_time instead of doing it ourselves.
59327         (%union): Add new relative_time rel member.
59328         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59329         Now typeless.
59330         (relunit, relunit_snumber): Now of type rel.
59331         (zone, rel, relunit, get_date): Adjust to above changes.
59332
59333         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59334         Do not include unistd-safer.h.
59335         (getloadavg): Don't call fd_safer; no longer needed
59336         now that we include fcntl--.h.
59337
59338         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59339         (make_dir_parents): Treat ENOSYS like EEXIST.
59340
59341         Improve quality of diagnostics on restore_cwd failure.
59342         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59343         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59344         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59345         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59346         each time through the loop.  Do not diagnose restore_cwd failure;
59347         that is the caller's job (and perhaps the caller does not care).
59348
59349         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59350         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59351         If the file already exists but is not a directory, don't bother
59352         to try to make its parents.
59353         Close potential file descriptor leak if we can't chdir("/") (!).
59354         Don't always return true if chdir($PWD) fails; return true only
59355         if the requested action was done successfully (except for the
59356         chdir($PWD)).
59357         Don't log final directory unless we actually made it.
59358         Refactor to avoid duplicate code to fix up permissions.
59359         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59360
59361         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59362         to make it a bit faster and (I hope) clearer.
59363         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59364         Fix bug in formats like %2N.
59365
59366         * lib/verify.h: New file.
59367
59368 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59369
59370         Sync from coreutils.
59371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59372
59373 2005-09-22  Jim Meyering  <jim@meyering.net>
59374
59375         Sync from coreutils.
59376
59377         * m4/lstat.m4 (gl_FUNC_LSTAT):
59378         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59379         Remove obsolete comment.
59380         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59381         * m4/xstrtod.m4: Likewise.
59382
59383         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59384
59385 2005-09-22  Jim Meyering  <jim@meyering.net>
59386
59387         Sync from coreutils.
59388
59389         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59390
59391         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59392         the .tm_year member, since otherwise gcc-4.0 would now warn about
59393         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59394
59395         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59396         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59397
59398         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59399         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59400         when run in a time zone for which daylight savings time is in effect
59401         for the starting date.
59402
59403         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59404         stop us from restricting permissions of just-created absolute-named
59405         directories.
59406         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59407         to restore initial working directory.
59408         * lib/mkdir-p.c (make_dir_parents): New parameter:
59409         different_working_dir, to tell caller if/when we change the working
59410         directory and are unable to return to the initial one.
59411         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59412         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59413         `return false'.  This fixes a bug introduced on 2004-07-30.
59414
59415         * lib/openat.c (fdopendir): Be sure to close the supplied
59416         file descriptor before returning.  This makes our replacement
59417         implementation a little closer to Solaris's, where fdopendir
59418         ties the file descriptor to the returned DIR* pointer.
59419         * lib/openat.c (unlinkat): New function.
59420         * lib/openat.h (unlinkat): Add prototype.
59421         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59422         (openat_restore_fail): Rename from openat_restore_die.
59423         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59424
59425         Provide an alternative to exiting immediately upon save_cwd or
59426         restore_cwd failure.  Now, an application can arrange e.g.,
59427         to perform a longjump in that case.
59428         * lib/openat.c: Include dirname.h.
59429         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59430         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59431         and openat_restore_die rather than calling error directly.
59432         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59433
59434         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59435         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59436         define.
59437
59438         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59439         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59440                             int utc, int nanoseconds);
59441         Background:
59442         date should not have to allocate a megabyte of virtual memory to
59443         handle a format argument like +%1048575T.  When implemented with
59444         strftime, it must allocate such a buffer, use strftime to fill it
59445         in, print it, then free it.
59446         With fprintftime, it simply prints everything and exits.
59447         With no need for memory allocation, that's one fewer way to fail.
59448         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59449         optional field width, not before, so we accept %9:z, not %:9z.
59450         (my_strftime): Be sure to use L_('x') for literals.
59451
59452         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59453         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59454         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59455         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59456         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59457         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59458         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59459         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59460         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59461         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59462         * lib/xgethostname.c, lib/xreadlink.c:
59463         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59464
59465         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59466         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59467         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59468         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59469         and don't include <sys/file.h>).
59470
59471 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59472
59473         Sync from coreutils.
59474
59475         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59476         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59477         [!LDAV_DONE]: Avoid unused variable warning.
59478
59479 2005-09-21  Bruno Haible  <bruno@clisp.org>
59480
59481         * lib/unicodeio.h (unicode_to_mb): New declaration.
59482
59483 2005-09-20  Derek Price  <derek@ximbiot.com>
59484
59485         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59486         getaddrinfo.h.
59487
59488 2005-09-20  Bruno Haible  <bruno@clisp.org>
59489
59490         * gnulib-tool: Remove trailing slashes from the values specified for
59491         --source-base, --m4-base, --tests-base, --aux-dir.
59492         Suggested by Simon Josefsson <jas@extundo.com>.
59493
59494 2005-09-20  Bruno Haible  <bruno@clisp.org>
59495
59496         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59497         func_modules_to_filelist, func_import, func_create_testdir): Make all
59498         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59499         change when gnulib-tool is invoked in a different locale.
59500
59501 2005-09-19  Simon Josefsson  <jas@extundo.com>
59502
59503         * m4/socklen.m4: Fix typo.
59504
59505 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59506
59507         Use a consistent style for including <config.h>.
59508         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59509         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59510         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59511         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59512         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59513         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59514         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59515         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59516         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59517         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59518         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59519         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59520         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59521         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59522         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59523         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59524         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59525         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59526         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59527         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59528         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59529         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59530         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59531         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59532         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59533         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59534         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59535         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59536         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59537         lib/xstrtoumax.c, lib/yesno.c:
59538         Standardize inclusion of config.h.
59539         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59540         lib/inttostr.h:  Removed inclusion of config.h from header files.
59541         * lib/inttostr.c:  Adjusted in-tree users.
59542         * lib/timespec.h: Remove superfluous warning to include config.h.
59543         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59544         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59545         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59546         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59547         config.h with HAVE_CONFIG_H.
59548
59549 2005-09-19  Jim Meyering  <jim@meyering.net>
59550
59551         * modules/pathmax (License): Change to LGPL.
59552
59553 2005-09-19  Derek Price  <derek@ximbiot.com>
59554
59555         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59556
59557 2005-09-19  Bruno Haible  <bruno@clisp.org>
59558
59559         * gnulib-tool (import): Provide default for --tests-base.
59560
59561 2005-09-19  Bruno Haible  <bruno@clisp.org>
59562
59563         * doc/quote.texi: New file, extracted from gnulib.texi.
59564         * doc/ctime.texi: New file, extracted from gnulib.texi.
59565         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59566         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59567         * doc/gnulib.texi: Include them.
59568
59569 2005-09-18  Bruno Haible  <bruno@clisp.org>
59570
59571         Portability fix.
59572         * gnulib-tool (func_readlink): New function.
59573         (func_ln_if_changed): Use it.
59574
59575 2005-09-18  Bruno Haible  <bruno@clisp.org>
59576
59577         * gnulib-tool: Support --with-tests also with --import.
59578         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59579         (func_import): Use variables $testsbase and $inctests. Emit a
59580         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59581         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59582         SUBDIRS += $testsdir.
59583         (func_create_testdir): Update.
59584
59585 2005-09-18  Bruno Haible  <bruno@clisp.org>
59586
59587         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59588         instead of $dry_run.
59589         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59590         (func_ln_if_changed): Don't handle dry-run here.
59591         (func_import): In dry-run mode, detect more precisely which actions
59592         would be performed, and don't use "...ing" verbs.
59593
59594 2005-09-18  Bruno Haible  <bruno@clisp.org>
59595
59596         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59597         (func_import): Use join on two temporary files instead of three nested
59598         loops, in order to determine which files are new or old.
59599
59600 2005-09-18  Bruno Haible  <bruno@clisp.org>
59601
59602         * gnulib-tool (func_import): Comment out code that spits out the
59603         new files with --dry-run.
59604
59605 2005-09-18  Bruno Haible  <bruno@clisp.org>
59606
59607         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59608
59609 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59610
59611         * lib/stat-time.h: New file.
59612         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59613         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59614         in a different way.
59615         (timespec_cmp): New function.
59616         * lib/utimecmp.c: Include stat-time.h.
59617         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59618         members exist, not on the obsolescent ST_MTIM_NSEC.
59619         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59620
59621 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59624
59625 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * MODULES.html.sh (File system functions): Add stat-time.
59628         * modules/stat-time: New file.
59629         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59630         is now done in a different way, by the stat-time module.
59631         * modules/utimecmp (Depends-on): Add stat-time.
59632
59633 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59634
59635         * m4/st_mtim.m4: Remove.  Superseded by...
59636         * m4/stat-time.m4: New file.
59637         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59638         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59639
59640 2005-09-15  Derek Price  <derek@ximbiot.com>
59641
59642         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59643
59644 2005-09-15  Derek Price  <derek@ximbiot.com>
59645
59646         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59647         * lib/regex_internal.c: Ditto, using this...
59648         (__GNUC_PREREQ): ...new macro.
59649         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59650         using...
59651         (__GNUC_PREREQ): ...this new macro.
59652
59653         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59654
59655 2005-09-15  Derek Price  <derek@ximbiot.com>
59656             Paul Eggert  <eggert@cs.ucla.edu>
59657
59658         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59659         changes, consolidating in...
59660         * lib/regex_internal.h: ...this file.
59661
59662 2005-09-13  Jim Meyering  <jim@meyering.net>
59663
59664         * lib/canon-host.c: Filter through gnu indent and reword comments
59665         slightly.
59666         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59667
59668 2005-09-13  Derek Price  <derek@ximbiot.com>
59669
59670         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59671         failure.
59672         Reported by Jim Meyering  <jim@meyering.net>.
59673
59674 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59675
59676         * lib/base64.c: Typo.
59677         (base64_encode): Put b64str in initialized data section.
59678
59679 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59680
59681         Merge glibc and coreutils changes into gnulib, plus a few
59682         extra fixes.
59683         * lib/md5.c: Use #error rather than a string.
59684         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59685         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59686         (__attribute__): Define to empty for non recent-GCC.
59687         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59688         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59689         Renamed from their non-__ counterparts, with new macros replacing
59690         them if not _LIBC.  Add __THROW attribute.
59691         (rol): Remove.
59692         (struct md5_ctx): Align buffer if using GCC.
59693         * lib/sha1.h (struct sha1_ctx): Likewise.
59694         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59695         The old name was backwards.
59696         (NOTSWAP): Remove; not used.
59697         (rol): New macro, moved here from md5.h.
59698         (sha1_process_block): Remove a FIXME that doesn't make sense.
59699
59700 2005-09-12  Derek Price  <derek@ximbiot.com>
59701
59702         Return usable errors from canon-host.
59703         * lib/canon-host.h: New file.
59704         * lib/canon-host.c (canon_host): Wrap...
59705         (canon_host_r): ...this new function, which now relies exclusively on
59706         getaddrinfo.
59707         (ch_strerror): New function.
59708         (last_cherror): New global.
59709         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59710         interface.
59711         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59712         void *.
59713         (freeaddrinfo): Free ai->ai_canonname when set.
59714
59715 2005-09-12  Derek Price  <derek@ximbiot.com>
59716
59717         Make canon-host require getaddrinfo.
59718         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59719         AC_LIBSOURCE canon-host.h.  Call...
59720         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59721         gl_GETADDRINFO.
59722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59723
59724 2005-09-12  Derek Price  <derek@ximbiot.com>
59725
59726         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59727         LGPL.
59728         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59729
59730 2005-09-12  Derek Price  <derek@ximbiot.com>
59731
59732         * lib/gai_strerror.c: Include config.h when available.  Include
59733         getaddrinfo.h before other headers to test interface.
59734         Reported by Larry Jones <lawrence.jones@ugs.com>.
59735
59736 2005-09-12  Derek Price  <derek@ximbiot.com>
59737             Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         * modules/glob (Files): Add glob-libc.h.
59740
59741 2005-09-12  Derek Price  <derek@ximbiot.com>
59742             Paul Eggert  <eggert@cs.ucla.edu>
59743
59744         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59745         glob_.h, glob-libc.h.
59746         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59747
59748 2005-09-12  Derek Price  <derek@ximbiot.com>
59749             Paul Eggert  <eggert@cs.ucla.edu>
59750
59751         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59752         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59753         protecting things that should be done only in gnulib contexts.
59754         * lib/glob_.h: New file, containing only the glob things needed for
59755         gnulib.
59756         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59757         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59758         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59759         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59760         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59761         and to respect the namespace rules better.
59762
59763 2005-09-08  Simon Josefsson  <jas@extundo.com>
59764
59765         * modules/socklen: New file.
59766
59767 2005-09-08  Simon Josefsson  <jas@extundo.com>
59768
59769         * m4/socklen.m4: New file.
59770
59771 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59772
59773         * modules/utimens (Files): Add m4/utimbuf.m4, since
59774         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59775         Reported by Sergey Poznyakoff.
59776
59777 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59780         definitions, since that's the preferred style in glibc.
59781         Fix a minor spacing issue, and update copyright notice to match
59782         glibc's.
59783
59784 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59785
59786         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59787
59788 2005-09-06  Simon Josefsson  <jas@extundo.com>
59789
59790         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59791         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59792
59793 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59794
59795         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59796         warning.
59797
59798 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59799
59800         * config/srclist.txt: Add glibc bug 1302.
59801
59802 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59803
59804         Change bitset word type from unsigned int to unsigned long int,
59805         as this has better performance on typical 64-bit hosts.
59806         Port bitset code to hosts with unusual word sizes.
59807         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59808         (build_collating_symbol):
59809         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59810         argument is a bitset.  This is merely a style issue, but it makes
59811         it clearer that an entire array is expected.
59812         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59813         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59814         Port to the case where bitset_word is not the same as unsigned int.
59815         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59816         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59817         Likewise.
59818         * lib/regexec.c (check_dst_limits_calc_pos_1,
59819         check_subexp_matching_top):
59820         (build_trtable, group_nodes_into_DFAstates):
59821         Likewise.
59822         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59823         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59824         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59825         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59826         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59827         * lib/regcomp.c (optimize_subexps, lower_subexp):
59828         Work even if bitset_word has holes in its bitwise representation.
59829         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59830         * lib/regexec.c (check_dst_limits_calc_pos_1,
59831         check_subexp_matching_top):
59832         Likewise.
59833         * lib/regex_internal.c (re_string_reconstruct):
59834         Don't assume UCHAR_MAX == 255.
59835         * lib/regex_internal.h (bitset_set_all): Likewise.
59836         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59837         All uses changed.
59838         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59839         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59840         All uses changed.
59841         (BITSET_WORD_MAX): New macro.
59842         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59843         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59844         (bitset_empty, bitset_copy):
59845         Prefer sizeof (bitset) to multiplying it out ourselves.
59846         (bitset_not_merge): Remove; unused.
59847         (bitset_contain): Return bool, not unsigned int with one bit on.
59848         All callers changed.
59849         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59850         alignment than re_node_set; do this by defining a new internal
59851         type struct dests_alloc and using it to allocate memory.
59852
59853 2005-09-05  Bruno Haible  <bruno@clisp.org>
59854
59855         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59856         links.
59857
59858 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59859
59860         * modules/size_max (Makefile.am): Add size_max.h
59861
59862 2005-09-04  Derek Price  <derek@ximbiot.com>
59863
59864         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59865
59866 2005-09-03  Simon Josefsson  <jas@extundo.com>
59867
59868         * gnulib-tool: Fix typo.
59869
59870 2005-09-03  Simon Josefsson  <jas@extundo.com>
59871
59872         * config/srclist.txt: Add glibc bug 1293.
59873
59874 2005-09-03  Derek Price  <derek@ximbiot.com>
59875
59876         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59877         From Larry Jones <lawrence.jones@ugs.com>.
59878
59879 2005-09-02  Simon Josefsson  <jas@extundo.com>
59880
59881         * modules/socklen: New file.
59882
59883 2005-09-02  Simon Josefsson  <jas@extundo.com>
59884
59885         * modules/havelib: New module.
59886
59887         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59888         Use havelib.
59889
59890 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         Check for arithmetic overflow when calculating sizes, to prevent
59893         some buffer-overflow issues.  These patches are conservative, in the
59894         sense that when I couldn't determine whether an overflow was possible,
59895         I inserted a run-time check.
59896         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59897         macros.
59898         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59899         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59900         (re_xnrealloc, re_x2nrealloc): New inline functions.
59901         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59902         parse_bracket_exp):
59903         (build_equiv_class, build_charclass): Check for arithmetic overflow
59904         in size expression calculations.
59905         * lib/regex_internal.c (re_string_realloc_buffers):
59906         (build_wcs_upper_buffer, re_node_set_add_intersect):
59907         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59908         (re_dfa_add_node, register_state): Likewise.
59909         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59910         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59911         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59912         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59913
59914 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59917         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59918
59919 2005-09-02  Bruno Haible  <bruno@clisp.org>
59920
59921         Support for lib vs. lib64 distinction on biarch platforms.
59922         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59923         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59924         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59925
59926 2005-09-02  Bruno Haible  <bruno@clisp.org>
59927
59928         * gnulib-tool (import): In the other first-use case, provide defaults
59929         as well.
59930
59931 2005-09-02  Bruno Haible  <bruno@clisp.org>
59932
59933         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59934         patches not yet found in the latest gettext release.
59935
59936 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59937
59938         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59939         to avoid a collision with bits/local_lim.h in glibc.
59940         All uses changed.  Problem reported by Dmitry V. Levin in
59941         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59942
59943         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59944         bugs in int versus size_t comparisons.
59945         (re_string_context_at): Fix bug where the code assumed that
59946         Idx is signed.
59947
59948         Use bool where appropriate.
59949         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59950         All callers changed.
59951         (calc_eclosure_iter): Likewise, for ROOT arg.
59952         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59953         (build_charclass_op): Likewise, for NON_MATCH arg.
59954         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59955         (re_string_construct_common): Likewise, for ICASE arg.
59956         * lib/regexec.c (re_search_2_stub, re_search_stub):
59957         Likewise, for RET_LEN arg.
59958         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59959         (set_regs): Likewise, for FL_BACKTRACK arg.
59960         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59961         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59962         (calc_eclosure_iter, parse_bracket_exp):
59963         Use bool for internal variables that are booleans.
59964         * lib/regexec.c (re_search_internal, check_matching,
59965         proceed_next_node):
59966         (set_regs, build_sifted_states, sift_states_bkref):
59967         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59968         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59969         (find_collation_sequence_value):
59970         Likewise.
59971         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59972         (re_node_set_compare):
59973         Return bool, not int. All callers changed.
59974         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59975         (build_trtable, check_node_accept): Likewise.
59976         * lib/regex_internal.h: Include stdbool.h.
59977
59978         Fix bugs uncovered when converting to bool.
59979         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59980         failure instead of charging ahead blindly.
59981         * lib/regex_internal.c (register_state): Likewise.
59982         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59983         for freeing internal storage.
59984         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59985         bitset pieces used as boolean, to avoid undefined behavior
59986         on hosts that do int overflow checking.
59987
59988 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * config/srclist.txt: Add glibc bugs 1285-1287.
59991
59992 2005-09-01  Jim Meyering  <jim@meyering.net>
59993
59994         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59995         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59996         Require gl_STAT_MACROS, too.
59997
59998 2005-09-01  Bruno Haible  <bruno@clisp.org>
59999
60000         * gnulib-tool (import): In the first-use case, provide defaults.
60001
60002 2005-09-01  Bruno Haible  <bruno@clisp.org>
60003
60004         * gnulib-tool (func_import): Remove the .tmp files.
60005
60006 2005-09-01  Bruno Haible  <bruno@clisp.org>
60007
60008         * gnulib-tool (func_import): Fix handling of symbolic links.
60009
60010 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60011
60012         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
60013         old glibc regex code mishandles strings longer than 2**31 bytes.
60014         This patch fixes this when the regex code is used in gnulib
60015         (i.e., outside glibc).
60016
60017         This patch should not affect the use of the regex code inside
60018         glibc.  No doubt this problem also needs to be handled for glibc
60019         as well, but the result will be an incompatible change to the
60020         glibc ABI, and the old ABI will have to be supported too.  That
60021         can be the the subject for another patch.
60022
60023         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
60024         governing whether the rest of this patch is active.  By default,
60025         the macro is disabled and the patch has no effect.
60026         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
60027         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
60028         (struct re_pattern_buffer, re_search, re_search_2, re_match):
60029         (re_match_2, re_set_registers): Use the new types.
60030         * lib/regex_internal.h (Idx, re_hashval_t): New types.
60031         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
60032         New macros.
60033         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
60034         (re_string_context_at, bin_tree_t, re_dfastate_t):
60035         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
60036         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
60037         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
60038         (re_string_char_size_at, re_string_wchar_at):
60039         (re_string_elem_size_at):
60040         Use the new types and macros to port to 64-bit hosts.
60041         Use unsigned types for internal values, so that the code
60042         mostly works even for arrays larger than SSIZE_MAX.
60043         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
60044         (search_duplicated_node, calc_eclosure_iter, fetch_number):
60045         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
60046         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
60047         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
60048         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
60049         (calc_inveclosure, parse_dup_op, build_range_exp):
60050         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
60051         (fetch_number, create_token_tree, mark_opt_subexp):
60052         Likewise.
60053         * lib/regex_internal.c (re_string_construct_common,
60054         create_ci_newstate):
60055         (create_cd_newstate, re_string_allocate, re_string_construct):
60056         (re_string_realloc_buffers, build_wcs_upper_buffer):
60057         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60058         (re_string_reconstruct, re_string_peek_byte_case):
60059         (re_string_fetch_byte_case, re_string_context_at):
60060         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60061         (re_node_set_init_copy, re_node_set_add_intersect):
60062         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60063         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60064         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60065         (re_acquire_state, re_acquire_state_context, register_state):
60066         Likewise.
60067         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
60068         search_cur_bkref_entry):
60069         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
60070         (re_search_internal, re_search_2_stub, re_search_stub)
60071         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
60072         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
60073         (update_cur_sifted_state, check_dst_limits):
60074         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60075         (check_subexp_limits, sift_states_bkref, merge_state_array):
60076         (check_subexp_matching_top, get_subexp, get_subexp_sub):
60077         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
60078         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60079         (expand_bkref_cache, check_node_accept_bytes):
60080         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
60081         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
60082         (acquire_init_state_context, check_halt_node_context):
60083         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
60084         (sift_states_backward, clean_state_log_if_needed):
60085         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
60086         (find_recover_state, transit_state_sb, transit_state_mb):
60087         (transit_state_bkref, build_trtable, match_ctx_clean):
60088         Likewise.
60089         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
60090         to work around an assumption that REG_MISSING is negative.
60091
60092         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
60093         (seek_collating_symbol_entry) [defined _LIBC]:
60094         (lookup_collation_sequence_value) [defined _LIBC]:
60095         (build_range_exp, build_collating_symbol) [defined _LIBC]:
60096         Use prototypes rather than old-style function definitions.
60097         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
60098         (transit_state_sb) [0]:
60099         (find_collation_sequence_value) [defined _LIBC]: Likewise.
60100
60101         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
60102         rm_eo.
60103
60104         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
60105         (optimize_subexps, lower_subexp):
60106         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
60107         since the signed shift might overflow.  Use 1u<<31 instead.
60108         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60109         Likewise.
60110         * lib/regexec.c (check_dst_limits_calc_pos_1,
60111         check_subexp_matching_top): Likewise.
60112
60113         * lib/regcomp.c (optimize_subexps, lower_subexp):
60114         Use CHAR_BIT rather than 8, for clarity.
60115         * lib/regexec.c (check_dst_limits_calc_pos_1):
60116         (check_subexp_matching_top): Likewise.
60117         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
60118         have to worry about portability issues when shifting it left.
60119         Remove no-longer-needed test for table_size > 0.
60120         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
60121         in a word, as the resulting behavior is undefined.
60122         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
60123         in one case, a <= should have been an <, and in another case the
60124         whole test was missing.
60125         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
60126         the standard name CHAR_BIT.
60127         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
60128         this is not true on one's complement and signed-magnitude hosts.
60129
60130         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
60131         next_last_offset.
60132         (struct re_dfa_t): Remove unused member states_alloc.
60133         * lib/regcomp.c (init_dfa): Don't initialize unused members.
60134
60135 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60136
60137         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
60138         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
60139         and large-file glibc and in 32-bit large-file Solaris.
60140
60141 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60142
60143         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
60144         lengths fit in regoff_t; this isn't true if regoff_t is the same
60145         width as size_t.
60146         * lib/regex.c (re_search_internal): 5th arg is LAST_START
60147         (= START + RANGE) instead of RANGE.  This avoids overflow
60148         problems when regoff_t is the same width as size_t.
60149         All callers changed.
60150         (re_search_2_stub): Check for overflow when adding the
60151         sizes of the two strings.
60152         (re_search_stub): Check for overflow when adding START
60153         to RANGE; if it occurs, substitute the extreme value.
60154
60155 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
60158
60159 2005-08-31  Jim Meyering  <jim@meyering.net>
60160
60161         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
60162         a pointer-to-const.
60163         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
60164         (register_state): Likewise.
60165         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
60166         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
60167         (group_nodes_into_DFAstates): Likewise.
60168
60169 2005-08-31  Jim Meyering  <jim@meyering.net>
60170
60171         * check-module: Add a FIXME comment.
60172
60173 2005-08-31  Eric Blake  <ebb9@byu.net>
60174
60175         * modules/unistd-safer (Files): Add unistd--.h.
60176         * modules/stdio-safer (Files): Add stdio--.h.
60177
60178 2005-08-31  Derek Price  <derek@ximbiot.com>
60179
60180         * lib/getdelim.c (getdelim): Return EOF on EOF.
60181         Reported by Larry Jones <lawrence.jones@ugs.com>.
60182
60183 2005-08-31  Bruno Haible  <bruno@clisp.org>
60184
60185         Avoid unnecessary diffs in the generated lib/Makefile.am.
60186         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
60187         the generated files.
60188         (func_import): Don't set cmd.
60189
60190 2005-08-31  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/strstr.c: Include <stddef.h>, for NULL.
60193         * lib/strcasestr.c: Likewise.
60194         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60195
60196 2005-08-31  Bruno Haible  <bruno@clisp.org>
60197
60198         * gnulib-tool: New option --macro-prefix.
60199         (func_import): Use macro_prefix.
60200         (import): Handle option --macro-prefix.
60201
60202 2005-08-31  Bruno Haible  <bruno@clisp.org>
60203
60204         * gnulib-tool (import): Rename most ac_* variables to cached_*.
60205         Also use new variables cached_lgpl, cached_libtool.
60206
60207 2005-08-31  Bruno Haible  <bruno@clisp.org>
60208
60209         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
60210         always instantiating them.
60211
60212 2005-08-31  Bruno Haible  <bruno@clisp.org>
60213
60214         * gnulib-tool (func_import): Read the previous cached settings
60215         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
60216         earlier added by gnulib but are now dropped. Warn when a gnulib file
60217         overwrites a non-gnulib file.
60218
60219 2005-08-31  Bruno Haible  <bruno@clisp.org>
60220
60221         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
60222         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
60223         projects that don't keep autogenerated files in CVS. Put into
60224         actioncmd only the specified modules, not the transitive closure.
60225
60226 2005-08-31  Bruno Haible  <bruno@clisp.org>
60227
60228         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
60229         Create directories that shall be filled.
60230         (import): Don't look for gl_* macros in configure.ac. Recurse across
60231         all directories containing a gnulib-cache.m4 files, if meaningful.
60232
60233 2005-08-31  Bruno Haible  <bruno@clisp.org>
60234
60235         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
60236         (import): Set seen_libtool when we see gl_LIBTOOL.
60237
60238 2005-08-31  Bruno Haible  <bruno@clisp.org>
60239
60240         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
60241         declaration macro definitions from generated gnulib.m4.
60242
60243 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
60244
60245         * lib/iconvme.h: Add prototype for iconv_alloc.
60246
60247 2005-08-29  Simon Josefsson  <jas@extundo.com>
60248
60249         * lib/iconvme.c: Fix errno.
60250
60251 2005-08-29  Bruno Haible  <bruno@clisp.org>
60252
60253         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
60254         that it works when the directory contains spaces.
60255
60256 2005-08-29  Bruno Haible  <bruno@clisp.org>
60257
60258         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
60259
60260 2005-08-29  Bruno Haible  <bruno@clisp.org>
60261
60262         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
60263         Emit more advice.
60264
60265 2005-08-29  Bruno Haible  <bruno@clisp.org>
60266         and Stepan Kasal  <kasal@ucw.cz>
60267
60268         * check-module: If more parameters are given, check each of them
60269         separately; add more exceptions, as noted by Jim Meyering.
60270         (check_module): New procedure.
60271         (%exempt_header): Now contains all exceptions.
60272
60273 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
60274
60275         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
60276
60277 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60278
60279         * lib/iconvme.c: Split iconv_string into iconv_alloc.
60280
60281 2005-08-28  Bruno Haible  <bruno@clisp.org>
60282
60283         * m4/gnulib-tool.m4: New file.
60284
60285 2005-08-27  Jim Meyering  <jim@meyering.net>
60286
60287         * modules/unistd-safer (Files): Add pipe-safer.c.
60288         * modules/fcntl-safer (Files): Add creat-safer.c.
60289
60290 2005-08-27  Jim Meyering  <jim@meyering.net>
60291
60292         * m4/stdlib-safer.m4: New file.  From coreutils.
60293         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60295         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60296         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60297         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60298
60299 2005-08-27  Jim Meyering  <jim@meyering.net>
60300
60301         * lib/fopen-safer.c: Merge minor changes from coreutils.
60302         * lib/dup-safer.c: Likewise.
60303         * lib/fd-safer.c: Likewise.
60304
60305         Merge from coreutils.
60306         * lib/stdio--.h: New file.
60307         * lib/stdlib--.h: New file.
60308         * lib/mkstemp-safer.c: New file.
60309
60310         GNU tar needs these.
60311         * lib/pipe-safer.c: New file.
60312         * lib/creat-safer.c: New file.
60313         * lib/fcntl--.h (creat): Define to creat_safer.
60314         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60315         * lib/unistd--.h (pipe): Define to pipe_safer.
60316         * lib/unistd-safer.h: Declare pipe_safer.
60317
60318 2005-08-26  Simon Josefsson  <jas@extundo.com>
60319
60320         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60321         Haible <bruno@clisp.org>.
60322
60323 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60324
60325         * lib/regex_internal.h: Remove all references to
60326         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60327         or better.
60328         (bitset_not, bitset_merge, bitset_not_merge):
60329         (bitset_mask, re_string_allocate, re_string_construct):
60330         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60331         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60332         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60333         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60334         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60335         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60336         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60337         (re_acquire_state_context):
60338         Remove unnecessary forward decls.
60339         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60340         Put __attribute at function definition,
60341         now that the function decl has been removed.
60342         * lib/regex_internal.c (re_string_peek_byte_case):
60343         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60344         Likewise.
60345
60346 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60347
60348         * m4/regex.m4: Add AC_PREREQ(2.50).
60349         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60350
60351 2005-08-25  Simon Josefsson  <jas@extundo.com>
60352
60353         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60354         __fsetlocking.
60355
60356 2005-08-25  Simon Josefsson  <jas@extundo.com>
60357
60358         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60359         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60360         GLIBC specific code.
60361
60362 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60363
60364         Make regex safe for g++.  This fixes one real bug (an "err"
60365         that should have been "*err").  g++ problem reported by
60366         Sam Steingold.
60367         * lib/regex_internal.h (re_calloc): New macro, consistent with
60368         re_malloc etc.  All callers of calloc changed to use re_calloc.
60369         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60370         not int.  All callers changed.
60371         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60372         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60373         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60374         (find_recover_state): Change "err" to "*err"; this fixes what
60375         appears to be a real bug.
60376         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60377         versus int.
60378
60379 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60380
60381         * modules/regex (Depends-on): Add malloc, since the code
60382         assumes that !malloc(0) means failure.
60383
60384 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60385
60386         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60387
60388         alloca modernization/simplification for regex.
60389         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60390         needs to be at the start of the file, and can be moved into
60391         regex_internal.h and simplified.
60392         * lib/regex_internal.h: Include <alloca.h>.
60393         (__libc_use_alloca) [!defined _LIBC]: New macro.
60394         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60395         now works outside glibc.
60396
60397 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60398
60399         * config/srclist.txt: Add glibc bugs 1241, 1245.
60400
60401 2005-08-25  Jim Meyering  <jim@meyering.net>
60402
60403         * lib/open-safer.c: Include <config.h>.
60404         Otherwise, we'd lose LARGEFILE support in any file using
60405         e.g. "fcntl--.h"
60406
60407 2005-08-25  Bruno Haible  <bruno@clisp.org>
60408
60409         * m4/minmax.m4: Require autoconf 2.52.
60410         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60411         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60412         alternatives of translit over the alphabet.
60413         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60414
60415 2005-08-24  Simon Josefsson  <jas@extundo.com>
60416
60417         * tests/test-getpass.c: New file.
60418
60419 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60422         for GNU regex features.
60423
60424 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60425
60426         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60427         * lib/regex.h (regerror): Likewise.
60428
60429         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60430         requires this.  (The code never needed it.)
60431
60432         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60433         All uses of recently-renamed identifiers changed to use the new,
60434         POSIX-compliant names.  The code will build and run just fine
60435         without these changes, but it's better to eat our own dog food
60436         and use the standard-conforming names.
60437
60438         * lib/regex.h: Fix a multitude of POSIX name space violations.
60439         These changes have an effect only for programs that define
60440         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60441         do not change anything for programs compiled in the normal way.
60442         Also, there is no effect on the ABI.
60443
60444         (_REGEX_SOURCE): New macro.
60445         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60446         defined and _GNU_SOURCE is not; this fixes a name space violation.
60447
60448         Rename the following macros to obey POSIX requirements.
60449         The old names are still visible as macros if _REGEX_SOURCE is defined.
60450         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60451         RE_BACKSLASH_ESCAPE_IN_LISTS.
60452         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60453         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60454         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60455         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60456         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60457         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60458         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60459         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60460         (REG_INTERVALS): renamed from RE_INTERVALS.
60461         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60462         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60463         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60464         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60465         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60466         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60467         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60468         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60469         RE_UNMATCHED_RIGHT_PAREN_ORD.
60470         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60471         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60472         (REG_DEBUG): renamed from RE_DEBUG.
60473         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60474         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60475         unusual, since we can't clash with the POSIX REG_ICASE.
60476         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60477         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60478         (REG_NO_SUB): renamed from RE_NO_SUB.
60479         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60480         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60481         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60482         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60483         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60484         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60485         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60486         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60487         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60488         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60489         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60490         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60491         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60492         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60493         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60494         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60495         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60496         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60497         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60498         (REG_FIXED): Renamed from REGS_FIXED.
60499         (REG_NREGS): Renamed from RE_NREGS.
60500
60501         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60502         of other REG_* macros, since POSIX says the user is allowed to
60503         #undef these macros selectively.
60504
60505         (reg_errcode_t): Update comment stating what other tables need
60506         to be consistent.
60507
60508         Rename the following enum values to obey POSIX requirements.
60509         The old names are still visible as macros.
60510         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60511         is not defined, since GNU is supposed to be a superset of POSIX as
60512         much as possible, and since we want reg_errcode_t to be a signed
60513         type for implementation consistency.
60514         (_REG_NOERROR): Renamed from REG_NOERROR.
60515         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60516         (_REG_BADPAT): Renamed from REG_BADPAT.
60517         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60518         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60519         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60520         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60521         (_REG_EBRACK): Renamed from REG_EBRACK.
60522         (_REG_EPAREN): Renamed from REG_EPAREN.
60523         (_REG_EBRACE): Renamed from REG_EBRACE.
60524         (_REG_BADBR): Renamed from REG_BADBR.
60525         (_REG_ERANGE): Renamed from REG_ERANGE.
60526         (_REG_ESPACE): Renamed from REG_ESPACE.
60527         (_REG_BADRPT): Renamed from REG_BADRPT.
60528         (_REG_EEND): Renamed from REG_EEND.
60529         (_REG_ESIZE): Renamed from REG_ESIZE.
60530         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60531         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60532         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60533         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60534         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60535
60536         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60537         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60538         changed.  But support the old name if the new one is not defined
60539         and if _REGEX_SOURCE.
60540
60541         Change the following member names in struct re_pattern_buffer.
60542         The old names are still supported if !_REGEX_SOURCE.
60543         The new names are always supported, regardless of _REGEX_SOURCE.
60544         (re_buffer): Renamed from buffer.
60545         (re_allocated): Renamed from allocated.
60546         (re_used): Renamed from used.
60547         (re_syntax): Renamed from syntax.
60548         (re_fastmap): Renamed from fastmap.
60549         (re_translate): Renamed from translate.
60550         (re_can_be_null): Renamed from can_be_null.
60551         (re_regs_allocated): Renamed from regs_allocated.
60552         (re_fastmap_accurate): Renamed from fastmap_accurate.
60553         (re_no_sub): Renamed from no_sub.
60554         (re_not_bol): Renamed from not_bol.
60555         (re_not_eol): Renamed from not_eol.
60556         (re_newline_anchor): Renamed from newline_anchor.
60557
60558         Change the following member names in struct re_registers.
60559         The old names are still supported if !_REGEX_SOURCE.
60560         The new names are always supported, regardless of _REGEX_SOURCE.
60561         (rm_num_regs): Renamed from num_regs.
60562         (rm_start): Renamed from start.
60563         (rm_end): Renamed from end.
60564
60565         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60566         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60567         Prepend __ to parameter names.
60568
60569         Undo yesterday's changes.
60570
60571 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60572
60573         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60574         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60575         lib/regex.c.
60576
60577 2005-08-24  Jim Meyering  <jim@meyering.net>
60578
60579         Sync from coreutils.
60580         * m4/fcntl-safer.m4: New file.
60581
60582         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60583         and object files for this module.
60584
60585 2005-08-24  Jim Meyering  <jim@meyering.net>
60586
60587         Sync from coreutils.
60588         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60589
60590 2005-08-24  Jim Meyering  <jim@meyering.net>
60591
60592         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60593         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60594
60595 2005-08-24  Jim Meyering  <jim@meyering.net>
60596
60597         * modules/fcntl-safer: New module.
60598         * modules/fts (Depends-on): Add fcntl-safer.
60599         * MODULES.html.sh (File descriptor based Input/Output):
60600         Add fcntl-safer.
60601
60602 2005-08-24  Bruno Haible  <bruno@clisp.org>
60603
60604         Support for unit test modules.
60605         * modules/README: Mention tests modules.
60606         * modules/TEMPLATE-TESTS: New file.
60607         * gnulib-tool: New options --extract-tests-module, --with-tests and
60608         --tests-base (unused for the moment).
60609         (testsbase, inctests): New variables.
60610         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60611         (func_verify_module): Exclude TEMPLATE-TESTS.
60612         (func_verify_nontests_module, func_verify_tests_module): New functions.
60613         (func_get_dependencies): Add implicit dependency for tests modules.
60614         (func_get_tests_module): New function.
60615         (func_modules_transitive_closure): When --with-tests was specified,
60616         include the unit tests as well, unless explicitly avoided.
60617         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60618         (func_emit_tests_Makefile_am): New function.
60619         (func_create_testdir): When --with-tests was specified, emit a
60620         tests/ directory.
60621         * MODULES.html.sh (Future developments): Update.
60622
60623 2005-08-24  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/tls-tests: New file.
60626         * tests/test-tls.c: New file, from GNU gettext.
60627
60628 2005-08-24  Bruno Haible  <bruno@clisp.org>
60629
60630         * modules/lock-tests: New file.
60631         * tests/test-lock.c: New file, from GNU gettext.
60632
60633 2005-08-24  Bruno Haible  <bruno@clisp.org>
60634
60635         * lib/lock.h: Add multiple inclusion guard.
60636         * lib/tls.h: Add multiple inclusion guard.
60637
60638 2005-08-24  Bruno Haible  <bruno@clisp.org>
60639
60640         * gnulib-tool: Add support for the --aux-dir option to
60641         --create-testdir, --create-megatestdir, --test, --megatest.
60642         (func_create_testdir, func_create_megatestdir): Optionally emit a
60643         AC_CONFIG_AUX_DIR directive.
60644         (create-testdir, create-megatestdir, test, megatest): Provide a
60645         default value for $auxdir.
60646
60647 2005-08-24  Bruno Haible  <bruno@clisp.org>
60648
60649         * gnulib-tool (import): Use compound statement instead of subshell
60650         where possible.
60651
60652 2005-08-24  Bruno Haible  <bruno@clisp.org>
60653
60654         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60655
60656 2005-08-24  Bruno Haible  <bruno@clisp.org>
60657
60658         * gnulib-tool (func_version): Update.
60659
60660 2005-08-24  Bruno Haible  <bruno@clisp.org>
60661
60662         * gnulib-tool (func_import, func_create_testdir,
60663         func_create_megatestdir): Quote all autoconf macro arguments.
60664
60665 2005-08-24  Bruno Haible  <bruno@clisp.org>
60666
60667         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60668         option --force, because --force causes the aclocal.m4 of each
60669         subdirectory to be newer than the corresponding config.h.in.
60670
60671 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60672
60673         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60674         All contents moved to gl_REGEX.
60675         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60676         assume that it does.
60677
60678 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60679
60680         * lib/regex.h (REG_NOSYS)
60681         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60682         Define, since POSIX requires it as of 2001.
60683         (_REG_ENOSYS)
60684         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60685         New private symbol, used to keep the enum signed in all cases.
60686         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60687         Youngman in
60688         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60689
60690         * lib/regex_internal.c (re_string_skip_chars, register_state):
60691         (calc_state_hash):
60692         Remove forward decls; no longer needed now that we use prototypes.
60693         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60694         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60695         (clean_state_log_if_needed): Likewise.
60696
60697 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60698
60699         * config/srclist.txt: Add glibc bugs 1231-1233.
60700
60701 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         Fix problems reported by Sam Steingold in
60704         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60705         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60706         assumed that reg_errcode_t is a signed type, which is not
60707         necessarily true if _XOPEN_SOURCE is not defined.
60708         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60709         since some compilers warn about it otherwise.
60710
60711 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60712
60713         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60714         (init_word_char, create_initial_state, duplicate_node_closure):
60715         (fetch_token, peek_token_bracket, build_range_exp):
60716         (build_collating_symbol): Remove forward decls; no longer needed
60717         now that we use prototypes.
60718
60719         * lib/regcomp.c:
60720         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60721         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60722         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60723         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60724         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60725         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60726         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60727         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60728         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60729         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60730         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60731         (build_charclass, build_charclass_op, fetch_number, create_tree):
60732         (create_token_tree, mark_opt_subexp, duplicate_tree):
60733         Use prototypes rather than old-style definitions.
60734
60735         * lib/regex_internal.c:
60736         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60737         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60738         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60739         (re_string_reconstruct, re_string_peek_byte_case):
60740         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60741         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60742         (re_node_set_init_copy, re_node_set_add_intersect):
60743         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60744         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60745         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60746         (re_acquire_state, re_acquire_state_context, register_state):
60747         (create_ci_newstate, create_cd_newstate, free_state):
60748         Likewise.
60749         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60750         re_search_2):
60751         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60752         (re_search_internal, prune_impossible_nodes):
60753         (acquire_init_state_context, check_matching, static):
60754         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60755         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60756         (update_regs, sift_states_backward, build_sifted_states):
60757         (clean_state_log_if_needed, merge_state_array):
60758         (update_cur_sifted_state, add_epsilon_src_nodes):
60759         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60760         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60761         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60762         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60763         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60764         (check_arrival, check_arrival_add_next_nodes):
60765         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60766         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60767         (check_node_accept_bytes, check_node_accept, extend_buffers):
60768         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60769         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60770         (sift_ctx_init):
60771         Likewise.
60772
60773         * lib/regex_internal.h:
60774         (re_string_allocate, re_string_construct, re_string_reconstruct):
60775         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60776         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60777         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60778         (re_string_context_at, re_string_peek_byte_case):
60779         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60780         is defined, since we now use prototypes always.
60781
60782         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60783         C89 or better.  All uses removed.
60784
60785 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * config/srclist.txt: Add glibc bugs 1220-1227.
60788
60789 2005-08-20  Jim Meyering  <jim@meyering.net>
60790
60791         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60792         of unused local, dfa.
60793
60794 2005-08-20  Bruno Haible  <bruno@clisp.org>
60795
60796         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60797
60798 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60799
60800         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60801         (re_node_set_insert_last, re_dfa_add_node):
60802         Rename local variables to avoid GCC shadowing warnings.
60803
60804 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60805
60806         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60807         [defined lint]: Suppress bogus uninitialized-variable warnings.
60808
60809         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60810         and let the caller return REG_ESPACE if out of space.  This
60811         removes an uninitialied-variable warning with GCC 4.0.1, and also
60812         avoids taking the address of a local variable.  All callers
60813         changed.
60814
60815 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60816
60817         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60818         $LIBCSRC/posix/regexec.c.
60819         Add glibc bug 1217 for regcomp.c.
60820
60821 2005-08-19  Jim Meyering  <jim@meyering.net>
60822
60823         * lib/regexec.c (proceed_next_node): Redo local variables to
60824         avoid GCC shadowing warnings.
60825
60826 2005-08-18  Bruno Haible  <bruno@clisp.org>
60827
60828         * lib/strstr.c (strstr): Fix return value in multibyte case.
60829         * lib/strcasestr.c (strcasestr): Likewise.
60830
60831 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60834
60835 2005-08-17  Jim Meyering  <jim@meyering.net>
60836
60837         Make the %s format (seconds since the epoch) work for a negative
60838         number and when used with a zero-padded field width, e.g. %015s.
60839
60840         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60841         label so that it precedes the code to set `digits'.  Otherwise,
60842         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60843         print `00-22'.  Now, it prints `-0022', as it should.
60844
60845 2005-08-17  Bruno Haible  <bruno@clisp.org>
60846
60847         * modules/strstr (Files): Add m4/mbrtowc.m4.
60848         (Depends-on): Add mbuiter.
60849
60850 2005-08-17  Bruno Haible  <bruno@clisp.org>
60851
60852         * modules/strcasestr: New file.
60853         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60854         strcasestr.
60855
60856 2005-08-17  Bruno Haible  <bruno@clisp.org>
60857
60858         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60859
60860 2005-08-17  Bruno Haible  <bruno@clisp.org>
60861
60862         * modules/mbuiter: New file.
60863         * MODULES.html.sh (Extended multibyte and wide character utilities):
60864         Add mbuiter.
60865
60866 2005-08-17  Bruno Haible  <bruno@clisp.org>
60867
60868         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60869         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60870
60871 2005-08-17  Bruno Haible  <bruno@clisp.org>
60872
60873         * m4/strcasestr.m4: New file.
60874
60875 2005-08-17  Bruno Haible  <bruno@clisp.org>
60876
60877         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60878         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60879
60880 2005-08-17  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/strcasestr.h: New file.
60883         * lib/strcasestr.c: New file.
60884
60885 2005-08-17  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/strcasecmp.c: Use mbuiter.h.
60888
60889 2005-08-17  Bruno Haible  <bruno@clisp.org>
60890
60891         * lib/mbuiter.h: New file.
60892
60893 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60894
60895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60896         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60897         and gl_GETOPT are both invoked via different paths (as happens
60898         with GNU tar CVS because it uses both argp and getopt), the former
60899         wins.
60900
60901 2005-08-16  Bruno Haible  <bruno@clisp.org>
60902
60903         * modules/tls: New file.
60904         * MODULES.html.sh (Multithreading): Add tls.
60905
60906 2005-08-16  Bruno Haible  <bruno@clisp.org>
60907
60908         * modules/strnlen1: New file.
60909         * MODULES.html.sh (String handling): Add strnlen1.
60910
60911 2005-08-16  Bruno Haible  <bruno@clisp.org>
60912
60913         * modules/strcase (Files): Add m4/mbrtowc.m4.
60914         (Depends-on): Add strnlen1, mbchar.
60915
60916 2005-08-16  Bruno Haible  <bruno@clisp.org>
60917
60918         * modules/mbiter: New file.
60919         * MODULES.html.sh (Extended multibyte and wide character utilities):
60920         Add mbiter.
60921
60922 2005-08-16  Bruno Haible  <bruno@clisp.org>
60923
60924         * modules/mbfile: New file.
60925         * MODULES.html.sh (Extended multibyte and wide character utilities):
60926         Add mbfile.
60927
60928 2005-08-16  Bruno Haible  <bruno@clisp.org>
60929
60930         * modules/mbchar: New file.
60931         * MODULES.html.sh (Extended multibyte and wide character utilities):
60932         New section.
60933
60934 2005-08-16  Bruno Haible  <bruno@clisp.org>
60935
60936         * m4/tls.m4: New file, from GNU gettext.
60937
60938 2005-08-16  Bruno Haible  <bruno@clisp.org>
60939
60940         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60941         always.
60942         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60943
60944 2005-08-16  Bruno Haible  <bruno@clisp.org>
60945
60946         * m4/mbiter.m4: New file.
60947
60948 2005-08-16  Bruno Haible  <bruno@clisp.org>
60949
60950         * m4/mbfile.m4: New file.
60951
60952 2005-08-16  Bruno Haible  <bruno@clisp.org>
60953
60954         * m4/mbchar.m4: New file.
60955
60956 2005-08-16  Bruno Haible  <bruno@clisp.org>
60957
60958         * lib/tls.h: New file, from GNU gettext.
60959         * lib/tls.c: New file, from GNU gettext.
60960
60961 2005-08-16  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/strnlen1.h: New file.
60964         * lib/strnlen1.c: New file.
60965
60966 2005-08-16  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60969         (mbi_init): Update.
60970         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60971         NUL byte, not after it.
60972
60973 2005-08-16  Bruno Haible  <bruno@clisp.org>
60974
60975         * lib/strcase.h (strcasecmp): Add note in comments.
60976         * lib/strncasecmp.c: Use code from strcasecmp.c.
60977         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60978         (strcasecmp): Work correctly in multibyte locales.
60979
60980 2005-08-16  Bruno Haible  <bruno@clisp.org>
60981
60982         * lib/mbiter.h: New file.
60983
60984 2005-08-16  Bruno Haible  <bruno@clisp.org>
60985
60986         * lib/mbfile.h: New file.
60987
60988 2005-08-16  Bruno Haible  <bruno@clisp.org>
60989
60990         * lib/mbchar.h: New file.
60991         * lib/mbchar.c: New file.
60992
60993 2005-08-16  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60996         the valid ones. Makes the comparison operations transitive:
60997         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60998         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60999
61000 2005-08-15  Simon Josefsson  <jas@extundo.com>
61001
61002         * modules/ssize_t (License): Change to 'unlimited'.
61003
61004         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
61005
61006 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
61009         Add comments for each pending glibc patch.
61010
61011 2005-08-15  Bruno Haible  <bruno@clisp.org>
61012
61013         * lib/regex.h (__restrict_arr): Don't define to __restrict if
61014         __cplusplus is defined.
61015
61016 2005-08-14  Jim Meyering  <jim@meyering.net>
61017
61018         Sync from coreutils.
61019
61020         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
61021         Use the hash-table-based cycle-detection code not just when
61022         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
61023         Reported by James Youngman in
61024         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
61025         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
61026         FTS_TIGHT_CYCLE_CHECK.
61027         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
61028         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
61029         once again.
61030         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
61031         * lib/fts.c (fd_safer): Remove decl.
61032         Include fcntl--.h rather than unistd-safer.h
61033         (fts_safe_changedir): Don't call fd_safer; no longer needed
61034         now that we include fcntl--.h.
61035
61036 2005-08-12  Simon Josefsson  <jas@extundo.com>
61037
61038         * modules/getndelim2: Use ssize_t module.
61039         * modules/getnline: Likewise.
61040         * modules/safe-read: Likewise.
61041         * modules/xreadlink: Likewise.
61042
61043         * modules/ssize_t: New file.
61044
61045 2005-08-12  Simon Josefsson  <jas@extundo.com>
61046
61047         * m4/readline.m4: Look for termcap, curses or ncurses if required.
61048
61049 2005-08-12  Simon Josefsson  <jas@extundo.com>
61050
61051         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61052         ssize_t.
61053
61054 2005-08-12  Simon Josefsson  <jas@extundo.com>
61055
61056         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
61057         readline, getdelim and check_version.
61058         (Support for systems lacking ISO C 99: Sizes of integer types):
61059         Add size_max.
61060
61061 2005-08-12  Bruno Haible  <bruno@clisp.org>
61062
61063         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
61064
61065 2005-08-11  Simon Josefsson  <jas@extundo.com>
61066
61067         * modules/readline: New file.
61068
61069         * modules/strnlen (Files): Add strnlen.h.
61070
61071 2005-08-11  Simon Josefsson  <jas@extundo.com>
61072
61073         * m4/readline.m4: New file.
61074
61075 2005-08-11  Simon Josefsson  <jas@extundo.com>
61076
61077         * lib/readline.h, readline.c: New file.
61078
61079 2005-08-11  Simon Josefsson  <jas@extundo.com>
61080
61081         * doc/gnulib.texi (Initial import, Finishing touches): Mention
61082         gl_AVOID.
61083
61084 2005-08-11  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/strnlen.h (strnlen): Change parameter name to match comment.
61087
61088 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
61089
61090         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
61091
61092 2005-08-10  Simon Josefsson  <jas@extundo.com>
61093
61094         * tests/test-iconvme.c: New file.
61095
61096 2005-08-10  Simon Josefsson  <jas@extundo.com>
61097
61098         * m4/strnlen.m4: New file.
61099
61100         * m4/strndup.m4: Don't check for strnlen declaration, done in
61101         strnlen.m4.
61102
61103 2005-08-10  Simon Josefsson  <jas@extundo.com>
61104
61105         * lib/strndup.c: Use strnlen.h.
61106
61107         * lib/strnlen.h: New file.
61108
61109 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61110
61111         * README: Typos.
61112
61113 2005-08-02  Simon Josefsson  <jas@extundo.com>
61114
61115         * modules/readline: New file.
61116
61117 2005-08-02  Simon Josefsson  <jas@extundo.com>
61118
61119         * modules/getdelim: New file.
61120
61121         * modules/getline: Rewrite, don't use getndelim2.
61122
61123 2005-08-02  Simon Josefsson  <jas@extundo.com>
61124
61125         * m4/getline.m4: Separate out getdelim stuff into separate module.
61126
61127         * m4/getdelim.m4: New file.
61128
61129 2005-08-02  Simon Josefsson  <jas@extundo.com>
61130
61131         * lib/getline.h, getline.c: Rewrite.
61132
61133         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
61134
61135 2005-07-31  Bruno Haible  <bruno@clisp.org>
61136
61137         * lib/lock.h (gl_lock_initializer): New macro.
61138         (gl_lock_define_initialized): Use it.
61139         (gl_rwlock_initializer): New macro.
61140         (gl_rwlock_define_initialized): Use it.
61141         (gl_recursive_lock_initializer): New macro.
61142         (gl_recursive_lock_define_initialized): Use it.
61143
61144 2005-07-30  Karl Berry  <karl@gnu.org>
61145
61146         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
61147         Report from Ben Pfaff, regarding getopt.
61148
61149 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
61152         normal way.
61153         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
61154         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
61155         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
61156         (gl_GETOPT): Use the new macros.  Most of the implementation
61157         is moved to the new macros.  This is for programs like Emacs
61158         that don't want all the functionality of gl_GETOPT.
61159
61160 2005-07-26  Bruno Haible  <bruno@clisp.org>
61161
61162         * m4/lock.m4: Update from GNU gettext.
61163
61164 2005-07-26  Bruno Haible  <bruno@clisp.org>
61165
61166         * lib/lock.h: Update from GNU gettext.
61167         * lib/lock.c: Update from GNU gettext.
61168
61169 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
61170
61171         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
61172         obsolescent AC_TRY_RUN.  Include the default includes files, for
61173         'exit'.
61174
61175 2005-07-24  Bruno Haible  <bruno@clisp.org>
61176
61177         * modules/visibility: New file.
61178         * MODULES.html.sh (Misc): Add visibility.
61179
61180 2005-07-24  Bruno Haible  <bruno@clisp.org>
61181
61182         * m4/visibility.m4: New file.
61183
61184 2005-07-24  Bruno Haible  <bruno@clisp.org>
61185
61186         * doc/visibility.texi: New file.
61187
61188 2005-07-22  Bruno Haible  <bruno@clisp.org>
61189
61190         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
61191         $(ALLOCA_H), redundant through BUILT_SOURCES.
61192         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
61193         redundant through BUILT_SOURCES.
61194         * modules/byteswap (Makefile.am): Remove explicit dependency on
61195         $(BYTESWAP_H), redundant through BUILT_SOURCES.
61196         * modules/fnmatch (Makefile.am): Remove explicit dependency on
61197         $(FNMATCH_H), redundant through BUILT_SOURCES.
61198         * modules/getopt (Makefile.am): Remove explicit dependency on
61199         $(GETOPT_H), redundant through BUILT_SOURCES.
61200         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
61201         redundant through BUILT_SOURCES.
61202         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
61203         redundant through BUILT_SOURCES.
61204         * modules/stdbool (Makefile.am): Remove explicit dependency on
61205         $(STDBOOL_H), redundant through BUILT_SOURCES.
61206         * modules/stdint (Makefile.am): Remove explicit dependency on
61207         $(STDINT_H), redundant through BUILT_SOURCES.
61208         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
61209         Remove explicit dependency on $(SYSEXITS_H).
61210         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
61211
61212 2005-07-18  Simon Josefsson  <jas@extundo.com>
61213
61214         * lib/check-version.c (check_version): Accept identical versions too.
61215
61216 2005-07-18  Bruno Haible  <bruno@clisp.org>
61217
61218         * modules/lock: New file.
61219         * MODULES.html.sh (Multithreading): New section.
61220
61221 2005-07-18  Bruno Haible  <bruno@clisp.org>
61222
61223         * m4/lock.m4: New file, from GNU gettext.
61224
61225 2005-07-18  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/lock.h: New file, from GNU gettext.
61228         * lib/lock.c: New file, from GNU gettext.
61229
61230 2005-07-18  Bruno Haible  <bruno@clisp.org>
61231
61232         * lib/lock.h (gl_once_t): New type.
61233         (gl_once_define, gl_once): New macros.
61234         * lib/lock.c (fresh_once): New variable.
61235         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
61236         functions.
61237
61238 2005-07-16  Simon Josefsson  <jas@extundo.com>
61239
61240         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
61241         workaround, suggested by Bruno.
61242
61243 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * modules/xalloc (Depends-on): Add xalloc-die.
61246         * modules/xvasprintf (Depends-on): Add xalloc-die.
61247
61248 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
61249
61250         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
61251         with a minor change.
61252
61253 2005-07-15  Bruno Haible  <bruno@clisp.org>
61254
61255         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
61256         When using lib/poll.c, define poll as rpl_poll.
61257
61258 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
61259
61260         * modules/argp (Depends-on): Remove unlocked-io.
61261
61262 2005-07-14  Derek Price  <derek@ximbiot.com>
61263
61264         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
61265         for glob symlink bug.
61266
61267 2005-07-14  Bruno Haible  <bruno@clisp.org>
61268
61269         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
61270         Instead, test for *_unlocked function declarations directly.
61271
61272 2005-07-11  Simon Josefsson  <jas@extundo.com>
61273
61274         * modules/size_max: New file.
61275
61276         * modules/xsize: Depend on size_max module for size_max.m4.
61277
61278 2005-07-11  Simon Josefsson  <jas@extundo.com>
61279
61280         * lib/size_max.h: New file.
61281
61282 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61285         copyright symbol and the year.
61286         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61287         (version_etc_va): Use parameterized copyright notice.
61288         Reword to conform to the current GNU coding standards.
61289
61290 2005-07-11  Karl Berry  <karl@gnu.org>
61291
61292         * doc/gnulib.texi (Quoting): new node.
61293         (Initial import): more info, from Patrice.
61294
61295 2005-07-11  Bruno Haible  <bruno@clisp.org>
61296
61297         * gnulib-tool (func_usage): Document option --avoid.
61298         (Command line options): Handle --avoid.
61299         (func_acceptable): New function.
61300         (func_modules_transitive_closure): Use it.
61301
61302 2005-07-11  Bruno Haible  <bruno@clisp.org>
61303
61304         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61305         Reported by Jim Meyering.
61306
61307 2005-07-10  Bruno Haible  <bruno@clisp.org>
61308
61309         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61310         Needed when size_t is smaller than 'unsigned int'.
61311         Reported by Paul Eggert.
61312
61313 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61314
61315         * modules/argp (Depends-on): Add unlocked-io
61316
61317 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61318
61319         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61320         block of defines.
61321
61322 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61323
61324         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61325         fix now.
61326
61327 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61328         and Paul Eggert  <eggert@cs.ucla.edu>
61329
61330         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61331         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61332
61333 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         * modules/regex (Files): Add lib/regex_internal.c,
61336         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61337         (Depends-on): Add extensions.
61338         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61339
61340 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61343         pathconf.
61344         * m4/same.m4 (gl_SAME): Likewise.
61345         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61346
61347         * m4/regex.m4: Adjust to new libc regex implementation.
61348         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61349         all the .c and .h parts of (the new) regex.
61350         Quote the m4 stuff better.
61351         Check for RE_ICASE bug of old gnulib.
61352         Check for REG_STARTEND of recent libc.
61353         Rename local variables from jm_* to gl_*.
61354         Quote operand of "test -f".
61355         Say "recent enough" version of libc, not "version 2".
61356         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61357         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61358         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61359         Remove check for btowc, isascii.
61360         Require AM_LANGINFO_CODESET.
61361
61362 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         * lib/regex.c, regex.h: Sync from libc.
61365         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61366         * lib/regexec.c:
61367         New files, synced from libc, except that regex_internal.h
61368         currently has a small porting fix.
61369
61370 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61371
61372         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61373         regex_internal.c, regexec.c.
61374         Add regex_internal.h too, but as a comment, since the libc version
61375         is currently broken in gnulib mode.
61376
61377 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61378
61379         Support programs like Emacs that use gnulib but not gettext.
61380         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61381         * modules/gettext-h: New file.
61382         * modules/gettext (Files): Remove lib/gettext.h.
61383         (Depends-on): Add gettext-h.
61384         (Makefile.am): Remove lib_SOURCES.
61385         * modules/argmatch, modules/c-stack, modules/closeout:
61386         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61387         * modules/execute, modules/file-type, modules/getaddrinfo:
61388         * modules/getopt, modules/human, modules/javacomp:
61389         * modules/javaexec, modules/mkdir-p, modules/obstack:
61390         * modules/openat, modules/pagealign_alloc, modules/pipe:
61391         * modules/quotearg, modules/regex, modules/rpmatch:
61392         * modules/unicodeio, modules/userspec, modules/version-etc:
61393         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61394         * modules/xsetenv:
61395         Depend on gettext-h, not gettext.
61396
61397 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * gnulib-tool (func_import): Add support for 'public domain' license.
61400         * modules/alloca, modules/atexit, modules/memmove:
61401         Now public domain, not GPL.
61402         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61403         * modules/realloc, modules/strerror, modules/strtod:
61404         Now LGPL, not GPL.
61405
61406 2005-07-05  Bruno Haible  <bruno@clisp.org>
61407
61408         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61409         autoconf CVS. Needed for mingw.
61410
61411 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61412
61413         Remove the dependency of the strftime module on the tzset module.
61414         * modules/strftime (Depends-on): Remove dependency on tzset.
61415
61416 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61417
61418         Remove the dependency of the strftime module on the tzset module.
61419         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61420         gl_FUNC_TZSET_CLOBBER.
61421
61422 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61423
61424         Remove the dependency of the strftime module on the tzset module.
61425         * lib/strftime.c (my_strftime)
61426         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61427         Copy the input structure, to work around some of the bug with
61428         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61429         Solaris releases, you should also use the tzset module, but we won't
61430         require it as a dependency any more since we don't want LGPLed code
61431         to depend on GPLed code.
61432
61433 2005-07-02  Jim Meyering  <jim@meyering.net>
61434
61435         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61436         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61437         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61438         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61439
61440 2005-07-02  Jim Meyering  <jim@meyering.net>
61441
61442         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61443
61444 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61445
61446         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61447         declares only 'struct timespec;' (!).
61448
61449 2005-07-01  Jim Meyering  <jim@meyering.net>
61450
61451         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61452         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61453         * lib/save-cwd.c, tempname.c:
61454         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61455         and don't include <sys/file.h>).
61456
61457 2005-06-29  Jim Meyering  <jim@meyering.net>
61458
61459         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61460         type name.  Use the variable name instead.
61461         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61462         Likewise.
61463
61464 2005-06-28  Simon Josefsson  <jas@extundo.com>
61465
61466         * modules/check-version (Files): Add check-version.m4.
61467
61468 2005-06-28  Simon Josefsson  <jas@extundo.com>
61469
61470         * m4/check-version.m4: New file, suggested by Jim Meyering
61471         <jim@meyering.net>.
61472
61473 2005-06-28  Simon Josefsson  <jas@extundo.com>
61474
61475         * lib/check-version.h, lib/check-version.c: New files.
61476
61477 2005-06-28  Simon Josefsson  <jas@extundo.com>
61478
61479         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61480         collision with global variable.  Better indentation.  Don't
61481         increment buffer pointer beyond buffer end.  Based on comments
61482         from Paul Eggert <eggert@cs.ucla.edu>.
61483
61484         * lib/base64.h: Indent.
61485
61486 2005-06-28  Simon Josefsson  <jas@extundo.com>
61487
61488         * doc/gnulib.texi (Library version handling): New section.
61489
61490 2005-06-28  Jim Meyering  <jim@meyering.net>
61491
61492         * check-module (find_included_lib_files): Hard-code another
61493         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61494         but modules/fts-lgpl (correctly) does not list those files.
61495
61496         * modules/canonicalize (Files): Add lib/pathmax.h.
61497
61498 2005-06-25  Simon Josefsson  <jas@extundo.com>
61499
61500         * modules/check-version: New file.
61501
61502 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61503
61504         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61505         initializer of struct addrinfo, as an indication that we don't
61506         care how many members the structure has.
61507
61508 2005-06-24  Derek Price  <derek@ximbiot.com>
61509         and Bruno Haible  <bruno@clisp.org>
61510
61511         Remove stat module & update lstat.
61512         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61513         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61514         * m4/stat.m4: Remove this file.
61515
61516 2005-06-24  Derek Price  <derek@ximbiot.com>
61517         and Bruno Haible  <bruno@clisp.org>
61518
61519         Remove stat module & update lstat.
61520         * lib/stat.c: Remove this file...
61521         (slash_aware_lstat): ...moving this content and its support...
61522         * lib/lstat.c (rpl_lstat): ...into here.
61523         * lib/lstat.h: New file.
61524
61525 2005-06-24  Derek Price  <derek@ximbiot.com>
61526         and Bruno Haible  <bruno@clisp.org>
61527
61528         Remove stat module & update lstat.
61529         * config/srclist.txt (libc sources): Remove stat.
61530
61531 2005-06-24  Derek Price  <derek@ximbiot.com>
61532         and Bruno Haible  <bruno@clisp.org>
61533
61534         Remove stat module & update lstat.
61535         * MODULES.html.sh (stat): Remove.
61536         * MODULES.html: Regenerated.
61537         * modules/lstat (Description): Correct function name.
61538         (Files): Add "lstat.h".
61539         (Depends-on): Remove stat, add xalloc, stat-macros.
61540         * modules/stat: Remove this file.
61541         (Include): Add "lstat.h", remove <sys/stat.h>.
61542
61543 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61546         (ranged_convert): Don't save conversion in a temporary struct.
61547         This causes a warning with GCC 4.0.0, and anyway in the typical
61548         case it's not worth the extra 100 bytes or so of code.
61549         (ranged_convert, __mktime_internal): When calling a function via a
61550         pointer P, use P () rather than (*P) (), as we now assume C89 or
61551         better.
61552
61553 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61554
61555         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61556         "who -r" failed to give output.  Problem reported by Tim Waugh.
61557
61558         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61559         (xcalloc): Use it to avoid needless tests.
61560         Problem reported by Jim Meyering.
61561
61562 2005-06-20  Derek Price  <derek@ximbiot.com>
61563
61564         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61565         unnecessary for Autoconfs > 2.59c.
61566
61567 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61568
61569         * lib/argp.h (__option_is_short): Check upper limit of
61570         __key. Isprint() requires its argument to have the value
61571         of an unsigned char or EOF.
61572
61573 2005-06-16  Jim Meyering  <jim@meyering.net>
61574
61575         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61576         when either N or S is zero.
61577
61578 2005-06-16  Derek Price  <derek@ximbiot.com>
61579
61580         * m4/bison.m4: Declare YACC & YFLAGS precious.
61581
61582 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61583
61584         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61585         multibyte string or pattern, fall back on unibyte matching.
61586         Problem reported by James Youngman.
61587
61588 2005-06-08  Bruno Haible  <bruno@clisp.org>
61589
61590         * modules/csharpcomp: New file.
61591         * MODULES.html.sh (C#): Add csharpcomp.
61592
61593 2005-06-08  Bruno Haible  <bruno@clisp.org>
61594
61595         * m4/csharpcomp.m4: New file, from GNU gettext.
61596
61597 2005-06-08  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/csharpcomp.h: New file, from GNU gettext.
61600         * lib/csharpcomp.c: New file, from GNU gettext.
61601         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61602
61603 2005-06-08  Bruno Haible  <bruno@clisp.org>
61604
61605         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61606         warning on mingw.
61607
61608 2005-06-07  Derek Price  <derek@ximbiot.com>
61609
61610         Sync from CVS.
61611         * lib/glob_.h: Indent nested #ifdef.
61612
61613 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61614
61615         Sync from coreutils.
61616         Use "file name" when talking about file names, instead of "filename"
61617         or "path", as per the GNU coding standards.
61618         * lib/mkdir-p.c: Renamed from makepath.c.
61619         (make_dir_parents): Renamed from make_path.  All callers changed.
61620         * lib/mkdir-p.h: Likewise.  All includers changed.
61621         * lib/filenamecat.c: Renamed from path-concat.c.
61622         (file_name_concat): Renamed from path_concat.  All callers changed.
61623         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61624         * lib/filenamecat.h: Likewise.  All includers changed.
61625         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61626         in comments or local variable names.
61627         * lib/basename.c: Likewise.
61628         * lib/canonicalize.c, canonicalize.h: Likewise.
61629         * lib/dirname.c, dirname.h: Likewise.
61630         * lib/euidaccess.c: Likewise.
61631         * lib/exclude.c: Likewise
61632         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61633         * lib/fsusage.c, fsuage.h: Likewise.
61634         * lib/fts.c, fts_.h: Likewise.
61635         * lib/getcwd.c: Likewise.
61636         * lib/getloadavg.c: Likewise.
61637         * lib/mkstemp.c: Likewise.
61638         * lib/mountlist.c, mountlist.h: Likewise.
61639         * lib/openat.c, openat.h: Likewise.
61640         * lib/readlink-stub.c: Likewise.
61641         * lib/readutmp.c, readutmp.h: Likewise.
61642         * lib/rename.c: Likewise.
61643         * lib/rmdir.c: Likewise.
61644         * lib/same.c: Likewise.
61645         * lib/savedir.c: Likewise.
61646         * lib/stripslash.c: Likewise.
61647         * lib/tempname.c: Likewise.
61648         * lib/xreadlink.c: Likewise.
61649         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61650         All uses changed.
61651         * lib/exclude.h: Likewise.
61652
61653         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61654         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61655         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61656         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61657         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61658         files have been getting away with it for years (MORE/BSD 4.3
61659         is extinct now).
61660         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61661         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61662
61663         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61664         Define to 256, not 255, as per modern POSIX.
61665
61666 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         Sync from coreutils.
61669         Use "file name" when talking about file names, instead of "filename"
61670         or "path", as per the GNU coding standards.
61671         * MODULES.html.sh: mkdir-p renamed from makepath.
61672         filenamecat renamed from path-concat.
61673         * modules/filenamecat: Renamed from modules/path-concat.
61674         (Files): filenamecat.h and filenamecat.c renamed from
61675         path-concat.h and path-concat.c.
61676         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61677         (Include): filenamecat.h, not path-concat.h.
61678         * modules/mkdir-p: Renamed from modules/makepath.
61679         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61680         makepath.c.
61681         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61682         (Include): mkdir-p.h, not makepath.h.
61683
61684 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61685
61686         Sync from coreutils.
61687         * m4/mkdir-p.m4: Renamed from makepath.m4.
61688         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61689         Rename files from makepath.c to mkdir-p.c, and from
61690         makepath.h to mkdir-p.h.
61691         * m4/filenamecat.m4: Renamed from path-concat.m4.
61692         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61693         Rename files from path-concat.c to filenamecat.c,
61694         and from path-concat.h to filenamecat.h.
61695         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61696         "file name" in local variables or comments.
61697         * m4/rename.m4: Likewise.
61698
61699 2005-06-01  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/csharpexec: New file.
61702         * MODULES.html.sh (C#): New section.
61703
61704 2005-06-01  Bruno Haible  <bruno@clisp.org>
61705
61706         * m4/csharp.m4: New file, from GNU gettext.
61707         * m4/csharpexec.m4: New file, from GNU gettext.
61708
61709 2005-06-01  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/csharpexec.h: New file, from GNU gettext.
61712         * lib/csharpexec.c: New file, from GNU gettext.
61713         * lib/csharpexec.sh.in: New file, from GNU gettext.
61714
61715 2005-05-31  Derek Price  <derek@ximbiot.com>
61716             Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         Sync from cvs.
61719         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61720
61721 2005-05-31  Derek Price  <derek@ximbiot.com>
61722             Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         Sync from cvs.
61725         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61726
61727 2005-05-29  Derek Price  <derek@ximbiot.com>
61728
61729         * config/srclist.txt (glob_.h, glob.c): Add these files.
61730
61731 2005-05-29  Derek Price  <derek@ximbiot.com>
61732
61733         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61734         * modules/glob: New file.
61735         * modules/getlogin_r: Add link to POSIX spec in description.
61736
61737 2005-05-29  Derek Price  <derek@ximbiot.com>
61738             Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         * m4/glob.m4: New file.
61741
61742 2005-05-29  Derek Price  <derek@ximbiot.com>
61743             Paul Eggert  <eggert@cs.ucla.edu>
61744
61745         * lib/glob_.h, lib/glob.c: New files.
61746
61747 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61748
61749         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61750         * modules/fts-lgpl (Depends-on): Remove gettext.
61751
61752 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61753
61754         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61755         and don't require gt_INTTYPES_PRI.
61756
61757 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61758
61759         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61760
61761         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61762         the configuration hassle isn't worth it.
61763         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61764         (LONGEST_MODIFIER, PRIuMAX): Remove.
61765
61766 2005-05-27  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61769
61770 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61771
61772         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61773         _POSIX_PTHREAD_SEMANTICS for Solaris.
61774
61775 2005-05-25  Derek Price  <derek@ximbiot.com>
61776
61777         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61778
61779 2005-05-25  Derek Price  <derek@ximbiot.com>
61780             Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61783         * lib/getlogin_r.c, getlogin_r.h: New files.
61784
61785 2005-05-25  Bruno Haible  <bruno@clisp.org>
61786             Derek Price  <derek@ximbiot.com>
61787
61788         * lib/getlogin_r.h: Simplify API documentation.
61789
61790 2005-05-23  Derek Price  <derek@ximbiot.com>
61791
61792         * modules/minmax (Files): Add m4/minmax.m4.
61793         (configure.ac): Add gl_MINMAX.
61794
61795 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61796
61797         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61798         so that unistd-safer.h (GPL'ed code) need not be included.
61799
61800 2005-05-22  Bruno Haible  <bruno@clisp.org>
61801
61802         * m4/minmax.m4: New file.
61803         Based on a patch by Derek Price <derek@ximbiot.com>.
61804
61805 2005-05-22  Bruno Haible  <bruno@clisp.org>
61806
61807         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61808         (INT64_MIN): Fix definition.
61809         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61810
61811         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61812         NEED_SIGNED_INT_TYPES.
61813
61814         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61815         HAVE_SYSTEM_INTTYPES.
61816
61817 2005-05-22  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61820         Also include <sys/param.h> if it defines MIN, MAX.
61821         Based on a patch by Derek Price <derek@ximbiot.com>.
61822
61823 2005-05-21  Jim Meyering  <jim@meyering.net>
61824
61825         * modules/fts (Files): Add m4/inttypes-pri.m4.
61826         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61827
61828 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61829
61830         New fts module.
61831         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61832         (setup_dir, free_dir): New functions.
61833         (enter_dir, leave_dir): Define trivial
61834         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61835         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61836         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61837         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61838         Move to fts-cycle.c.
61839         (fts_open): Use setup_dir.
61840         (fts_close): Use free_dir.
61841         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61842         This adds a label and some gotos, but the alternatives were messier.
61843         Check for memory allocation failure when entering a dir.
61844         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61845         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61846         (FTS): New member fts_cycle, that is a union that contains the
61847         old active_dir_ht and cycle_state.  All uses changed to mention
61848         fts_cycle.ht and fts_cycle.state.
61849         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61850         fts.c, with the following changes:
61851         (setup_dir, free_dir): New functions.
61852         (enter_dir): Now returns bool.  Return true if successful, false
61853         if memory exhausted.  All callers changed.
61854         Do not bother partly cleaning up on
61855         memory allocation failure; that is free_dir's job.
61856         However, free ad if hash_insert fails, to avoid memory leak.
61857         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61858         fts->fts_options to see which union member to use.
61859
61860 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61863         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61864
61865 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61866
61867         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61868
61869 2005-05-20  Jim Meyering  <jim@meyering.net>
61870
61871         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61872         Now a macro, to pacify GCC.
61873
61874 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61875
61876         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61877         of -1.
61878
61879 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61880
61881         * lib/chown.c (rpl_chown): Return -1 on failure.
61882
61883 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61884
61885         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61886         Don't check for stddef.h.
61887         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61888         don't use its results.
61889         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61890         since we include them unconditionally.  Don't require
61891         AM_STDBOOL_H, since stdbool is a prerequisite.
61892         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61893         since we assume C89 or better.
61894         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61895         as we don't use their results.
61896         Don't check for fchdir, memmove, memset, strrchr, as we use
61897         them unconditionally.
61898         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61899         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61900
61901 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61904         Include <stddef.h> unconditionally, since we assume C89 now.
61905         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61906         * lib/fts.c: Include fts_.h first, to check interface.
61907         Do not include intprops.h; no longer needed.
61908         Include cycle-check.h and hash.h, since fts_.h no longer does.
61909         Remove unnecessary casts of closedir to void.
61910         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61911         decide whether to decrement nlinks.
61912         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61913         (FTS): Use struct hash_table * instead of Hash_table, so that
61914         we no longer need to include hash.h here.
61915
61916 2005-05-18  Jim Meyering  <jim@meyering.net>
61917
61918         * modules/dirfd (License): Change to LGPL.  Most of the code
61919         is already in the public domain.
61920
61921 2005-05-18  Jim Meyering  <jim@meyering.net>
61922
61923         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61924         Reported by Yoann Vandoorselaere.
61925
61926 2005-05-17  Jim Meyering  <jim@meyering.net>
61927
61928         * m4/fts.m4: New file, from coreutils.
61929
61930 2005-05-17  Jim Meyering  <jim@meyering.net>
61931
61932         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61933
61934 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61935
61936         Sync from coreutils.
61937         * m4/unlinkdir.m4: New file.
61938
61939 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61940
61941         Sync from coreutils.
61942         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61943         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61944         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61945         White space changes only.
61946         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61947         special.
61948         * lib/yesno.c: Include getline.h, not ctype.h.
61949         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61950         Use getline to remove arbitrary restriction on response length.
61951
61952 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * config/srclist-update: Spell out "Street" in FSF postal
61955         mail address; this is the style the FSF seems to prefer.
61956
61957         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61958         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61959         this updates FSF postal mail address.
61960
61961         Sync from coreutils.
61962         * modules/unlinkdir: New file.
61963         * modules/yesno (Depends-on): Add getline.
61964         * MODULES.html.sh (File system functions): Add unlinkdir.
61965
61966 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61967
61968         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61969         lib/strsep.h:
61970         Change the initial comment to refer to GPL, not LGPL.
61971         gnulib-tool will change it to LGPL as needed.
61972
61973         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61974         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61975         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61976         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61977         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61978         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61979         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61980         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61981         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61982         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61983         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61984         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61985         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61986         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61987         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61988         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61989         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61990         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61991         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61992         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61993         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61994         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61995         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61996         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61997         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61998         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61999         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
62000         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
62001         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
62002         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
62003         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
62004         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
62005         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
62006         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
62007         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
62008         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
62009         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
62010         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
62011         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
62012         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
62013         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
62014         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
62015         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
62016         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
62017         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
62018         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
62019         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
62020         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
62021         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
62022         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
62023         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62024         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
62025         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
62026         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
62027         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
62028         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
62029         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
62030         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
62031         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
62032         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
62033         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
62034         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
62035         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
62036         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
62037         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
62038         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
62039         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
62040         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
62041         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
62042         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
62043         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
62044         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
62045         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
62046         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
62047         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
62048         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
62049         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
62050         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
62051         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
62052         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
62053         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
62054         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
62055         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
62056         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
62057         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
62058         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
62059         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
62060         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
62061         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
62062         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
62063         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
62064         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
62065         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
62066         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
62067         lib/yesno.c, lib/yesno.h:
62068         Update FSF postal mail address.
62069
62070 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
62073         tests/test-memmem.c, tests/test-stpncpy.c:
62074         Update FSF postal mail address.
62075
62076 2005-05-13  Bruno Haible  <bruno@clisp.org>
62077
62078         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
62079         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
62080         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
62081         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
62082         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
62083         Add support for 64-bit integers in the MSVC compiler.
62084
62085 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62086
62087         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
62088
62089 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
62090
62091         * gnulib-tool (func_import): Sort and uniquify recommended includes.
62092
62093 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
62094
62095         * doc/getdate.texi (General date syntax): Don't say that date
62096         date --iso-8601=ns generates acceptable dates; it doesn't yet.
62097         Problem reported by Nic Ferrier.
62098
62099 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62100
62101         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
62102         specified in ai_socktype. Fix invalid ai_protocol
62103         check. ai_protocol is usually set to 0 or depending on
62104         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
62105         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
62106         ai_socktype / ai_protocol in the returned addrinfo structure.
62107
62108 2005-05-10  Simon Josefsson  <jas@extundo.com>
62109
62110         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
62111         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62112
62113 2005-05-10  Karl Berry  <karl@gnu.org>
62114
62115         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
62116         (from http://www.gnu.org/licenses).
62117         * doc/COPYING.LIB: also rename to COPYING.LESSER.
62118         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
62119         fdl.texi suffices.
62120
62121 2005-05-10  Karl Berry  <karl@gnu.org>
62122
62123         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
62124         (COPYING.DOC): remove.
62125
62126         * config/srclist-update: new FSF address.
62127
62128 2005-05-10  Derek Price  <derek@ximbiot.com>
62129
62130         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
62131         possible.
62132
62133 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62134             Bruno Haible  <bruno@clisp.org>
62135
62136         * modules/inet_ntop: New file.
62137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62138         inet_ntop.
62139
62140 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62141             Bruno Haible  <bruno@clisp.org>
62142
62143         * m4/inet_ntop.m4: New file.
62144
62145 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62146             Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/inet_ntop.h: New file.
62149         * lib/inet_ntop.c: New file, from glibc with modifications.
62150
62151 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
62152
62153         * modules/time_r (License): Change to LGPL.
62154         * modules/extensions (License): Change to LGPL.  Actually,
62155         the license is more permissive than that, but currently gnulib-tool
62156         doesn't know how to handle more-permissive licenses.
62157
62158         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
62159         Problem reported by Dave Love.
62160
62161 2005-05-08  Jim Meyering  <jim@meyering.net>
62162
62163         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
62164         blank.
62165
62166 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * modules/argmatch (Depends-on): Add stdbool.
62169         * modules/backupfile (Depends-on): Likewise.
62170         * modules/chdir-long (Depends-on): Likewise.
62171         * modules/closeout (Depends-on): Likewise.
62172         * modules/cycle-check (Depends-on): Likewise.
62173         * modules/dirname (Depends-on): Likewise.
62174         * modules/fnmatch (Depends-on): Likewise.
62175         * modules/fsusage (Depends-on): Likewise.
62176         * modules/fwriteerror (Depends-on): Likewise.
62177         * modules/getcwd (Depends-on): Likewise.
62178         * modules/getloadavg (Depends-on): Likewise.
62179         * modules/hard-locale (Depends-on): Likewise.
62180         * modules/makepath (Depends-on): Likewise.
62181         * modules/mountlist (Depends-on): Likewise.
62182         * modules/nanosleep (Depends-on): Likewise.
62183         * modules/posixtm (Depends-on): Likewise.
62184         * modules/quotearg (Depends-on): Likewise.
62185         * modules/readtokens (Depends-on): Likewise.
62186         * modules/readtokens0 (Depends-on): Likewise.
62187         * modules/readutmp (Depends-on): Likewise.
62188         * modules/save-cwd (Depends-on): Likewise.
62189         * modules/strftime (Depends-on): Likewise.
62190         * modules/userspec (Depends-on): Likewise.
62191         * modules/utimecmp (Depends-on): Likewise.
62192         * modules/xgetcwd (Depends-on): Likewise.
62193         * modules/xnanosleep (Depends-on): Likewise.
62194         * modules/xstrtod (Depends-on): Likewise.
62195         * modules/yesno (Depends-on): Likewise.
62196
62197 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62198
62199         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
62200         needless checks.
62201
62202 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62203
62204         Merge from coreutils.  Among other things,
62205         add bulletproofing for cases where stdin, stdout, or stderr are closed.
62206         * lib/fd-safer.c: New file.
62207         * lib/fcntl-safer.h, open-safer.c: Remove.
62208         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
62209         * lib/dup-safer.c: Include unistd-safer.h first.
62210         Don't include errno.h.
62211         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
62212         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
62213         * lib/file-type.c: Rely on file-type.h change.
62214         * lib/getloadavg.c: Include unistd-safer.h.
62215         (getloadavg): Use safer open.
62216         * lib/getusershell.c: Include "stdio-safer.h".
62217         (getusershell): Use safer fopen.
62218         * lib/long-options.c (long_options): Use NULL rather than 0.
62219         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
62220         'free'.
62221         * lib/modechange.c: Likewise.
62222         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
62223         (MODE_DONE): New constant.
62224         (struct mode_change): Remove 'next' member.
62225         (make_node_op_equals): New function; like the old one of the
62226         same name, except it allocates an array.
62227         (mode_compile, mode_create_from_ref): Use it.
62228         (mode_compile): Allocate result as an array, not a linked list.
62229         Parse octal string ourself, so that we catch mistakes like "+0".
62230         (mode_adjust): Arg is an array, not a linked list.
62231         * lib/modechange.c: Include stat-macros.h, xalloc.h.
62232         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
62233         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
62234         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
62235         Remove.  This is now stat-macros.h's job.
62236         (talloc): Remove.  All callers replaced by xalloc, so that
62237         our invokers don't have to worry about reporting memory failures.
62238         (make_node_op_equals): Remove.
62239         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62240         New constants.
62241         (struct mode_change): Moved here from modechange.h.
62242         (mode_append_entry): Remove.
62243         (mode_compile): Remove MASKED_OPS arg, since it encouraged
62244         apps to have incorrect behavior.  Use simpler algorithm for head
62245         and tail.  Don't futz with umask; that's now the job of mode_adjust.
62246         Detect more invalid usages rather than having somewhat-random behavior.
62247         Don't insert an "a=" action, as that leads to incorrect behavior.
62248         (mode_compile, mode_create_from_ref): Return NULL on error instead
62249         of an enum, since now there's only one way to have an error.  All
62250         callers changed.
62251         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
62252         at the correct time.  Simplify calculation of "+u" and its ilk.
62253         Don't mishandle "+X".
62254         (mode_free): Remove "register" and localize decls.
62255         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
62256         (struct mode_change): Move to modechange.c; callers don't
62257         need to see this stuff.
62258         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
62259         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
62260         (mode_change, mode_adjust): Reflect the new signatures noted above.
62261         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
62262         that might redefine system include files.
62263         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
62264         (my_usleep): Use NULL rather than (void *) 0.
62265         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
62266         Use siginterrupt to specify that system calls should be interrupted.
62267         (rpl_nanosleep): Move initialization of suspended closer to call of
62268         my_usleep.
62269         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
62270         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
62271         (desirable_utmp_entry): New function.
62272         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
62273         using x2nrealloc, to simplify logic.
62274         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
62275         size calculation.  Do not assume utmp file is a regular file.
62276         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
62277         (READ_UTMP_CHECK_PIDS): New constant.
62278         * lib/save-cwd.c: Include unistd-safer.h.
62279         (save_cwd): Use fd_safer.
62280         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62281         [!_LIBC] Include "stat-macros.h" instead.
62282         * lib/unistd-safer.h (fd_safer): New decl.
62283
62284 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62285
62286         * modules/getloadavg (Depends-on): Add unistd-safer.
62287         * modules/getusershell (Depends-on): Add stdio-safer.
62288         * modules/lstat (Depends-on): Remove xalloc.
62289         * modules/mkstemp (Depends-on): Add stat-macros.
62290         * modules/modechange (Depends-on): Remove xstrtol.
62291         Add stat-macros, xalloc.
62292         * modules/save-cwd (Depends-on): Add unistd-safer.
62293         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62294         * modules/unistd-safer (Files): Add lib/fd-safer.c
62295         (Makefile.am): Remove lib_SOURCES.
62296
62297         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62298         Remove fcntl-safer; unistd-safer supersedes it.
62299
62300 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62303         AC_HEADER_STAT.
62304         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62305         (gl_PREREQ_CHOWN): Remove.
62306         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62307         it.  Don't require AC_HEADER_STAT.
62308         (gl_PREREQ_LSTAT): Remove.
62309         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62310         Don't require AC_HEADER_STAT.
62311         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62312         (gl_PREREQ_RMDIR): Remove.
62313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62314         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62315         the stat-macros module a prerequisite.
62316         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62317         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62318         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62319         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62320         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62321         variable names.
62322         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62323         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62324         variable prefixes.
62325         * m4/fcntl-safer.m4: Remove.
62326         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62327         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62328         Invoke gl_PREREQ_FD_SAFER.
62329         (gl_PREREQ_FD_SAFER): New macro.
62330         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62331         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62332         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62333         Remove duplicate call to AC_LIBOBJ(readutmp).
62334         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62335
62336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62337         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62338
62339 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62340
62341         * MODULES.html.sh (Misc): Add byteswap.
62342
62343 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62344
62345         * modules/getcwd (Depends-on): Add extensions.
62346         * modules/openat (Depends-on): Likewise.
62347
62348 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62349
62350         * modules/byteswap: New file.
62351
62352 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62353
62354         * m4/byteswap.m4: New file.
62355
62356 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62357
62358         * lib/byteswap_.h: New file.
62359
62360 2005-04-25  Karl Berry  <karl@gnu.org>
62361
62362         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62363
62364 2005-04-25  Albert Chin  <china@thewrittenword.com>
62365
62366         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62367         Toolkit C bug.
62368
62369 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62370
62371         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62372         (func_ln_if_changed) Remove forcibly for no error message
62373         in case file does not exist.
62374
62375 2005-04-19  Simon Josefsson  <jas@extundo.com>
62376
62377         * gnulib-tool (Options): Make --symlink mean --symbolic.
62378
62379 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62380
62381         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62382
62383 2005-04-16  Simon Josefsson  <jas@extundo.com>
62384
62385         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62386
62387 2005-04-15  Simon Josefsson  <jas@extundo.com>
62388
62389         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62390
62391 2005-04-15  Simon Josefsson  <jas@extundo.com>
62392
62393         * gnulib-tool: Rename --symlink to --symbolic.
62394
62395 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62396
62397         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62398         symbolic links to files instead of copying/moving.  Add --aux-dir,
62399         specifying directory relative --dir where auxiliary build tools
62400         are placed.
62401
62402 2005-04-14  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/allocsa (License): Change to LGPL.
62405         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62406
62407 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62410         that "UTC +1 second" continues to work.  Problem reported
62411         by Dmitry V. Levin.
62412         (relunit_snumber): New rule.
62413         (relunit): Use it.
62414
62415 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62416
62417         * lib/getdate.y (universal_time_zone_table): New constant.
62418         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62419         universal_time_zone_table.
62420         (lookup_zone): Prefer universal_time_zone_table to
62421         local_time_zone_table, so that "GMT" time stamps are allowed in
62422         London during the summer.  Problem reported by Ian Abbott.
62423
62424 2005-04-12  Jim Meyering  <jim@meyering.net>
62425
62426         * lib/human.c (humblock): Set *options even when returning due to
62427         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62428         warning from gcc-4.
62429
62430 2005-04-09  Jim Meyering  <jim@meyering.net>
62431
62432         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62433         -Wuninitialized: initialize tm0.tm_year.
62434
62435 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62436
62437         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62438         count, since there's no maximum.  All uses changed.
62439         Add member dsts_seen.
62440         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62441         not being INT_MAX.
62442         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62443         Use pc_rels_seen to decide whther a date is absolute.
62444
62445         * lib/getdate.y (number): Don't overwrite year.
62446         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62447         check.
62448
62449 2005-04-02  Simon Josefsson  <jas@extundo.com>
62450
62451         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62452         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62453
62454 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62455
62456         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62457         where no absolute path name can be longer than PATH_MAX.
62458
62459 2005-03-27  Jim Meyering  <jim@meyering.net>
62460
62461         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62462
62463 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62466         "one's complement" -> "ones' complement" in comment, as per Knuth.
62467         "value of type" -> "type or expression" in comment.
62468         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62469
62470 2005-03-26  Jim Meyering  <jim@meyering.net>
62471
62472         Comment nits.
62473         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62474         Correct typos: s/or/of/.
62475
62476 2005-03-26  Jim Meyering  <jim@meyering.net>
62477
62478         * modules/check-include-files: Move to ../ and rename to...
62479         * check-module: ...this.
62480
62481 2005-03-25  Jim Meyering  <jim@meyering.net>
62482
62483         * modules/xvasprintf (Files): Add xalloc.h.
62484
62485 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62486
62487         * modules/gettext (Files): config/config.rpath ->
62488         build-aux/config.rpath
62489         * modules/iconv (Files): Likewise.
62490         Problem reported by Oskar Liljeblad.
62491
62492 2005-03-23  Jim Meyering  <jim@meyering.net>
62493
62494         * modules/check-include-files: New script to check for
62495         missing dependencies, multiple includes, etc.
62496
62497         * modules/c-strtold (Depends-on): Add xalloc.
62498         * modules/c-strtod (Depends-on): Add xalloc.
62499         * modules/hash (Depends-on): Add xalloc.
62500         (Files): Remove lib/xalloc.h.
62501
62502         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62503         * modules/userspec (Files): Add lib/inttostr.h.
62504
62505 2005-03-23  Jim Meyering  <jim@meyering.net>
62506
62507         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62508
62509 2005-03-22  Jim Meyering  <jim@meyering.net>
62510
62511         * modules/stat-macros: New module.
62512         * modules/canonicalize, modules/euidaccess, modules/file-type,
62513         * modules/filemode, modules/lchown, modules/makepath,
62514         * modules/rmdir, modules/stat: Depend on new stat-macros module
62515         rather than listing lib/stat-macros.h manually.
62516         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62517
62518 2005-03-22  Jim Meyering  <jim@meyering.net>
62519
62520         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62521
62522 2005-03-22  Bruno Haible  <bruno@clisp.org>
62523
62524         * config/srclist.txt: Replace target directory 'config' with
62525         'build-aux'.
62526         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62527         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62528         ../build-aux/.
62529
62530 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62531
62532         * modules/chdir-long (Depends-on): Add mempcpy.
62533
62534         * modules/acl, modules/backupfile, modules/c-strtod,
62535         modules/c-strtold, modules/canon-host, modules/canonicalize,
62536         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62537         modules/exclude, modules/exitfail, modules/file-type,
62538         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62539         modules/getdate, modules/getline, modules/getpagesize,
62540         modules/getpass, modules/getugroups, modules/group-member,
62541         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62542         modules/inttostr, modules/long-options, modules/makepath,
62543         modules/md5, modules/memcasecmp, modules/memcoll,
62544         modules/modechange, modules/mountlist, modules/path-concat,
62545         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62546         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62547         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62548         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62549         modules/strftime, modules/strndup, modules/strverscmp,
62550         modules/timespec, modules/unlocked-io, modules/userspec,
62551         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62552         modules/yesno:
62553         Remove lib_SOURCES line from Makefile.am section, as this is now
62554         done automatically by the corresponding Autoconf macro.
62555
62556 2005-03-21  Jim Meyering  <jim@meyering.net>
62557
62558         Changes imported from coreutils.
62559
62560         * lib/cycle-check.c: Don't include xalloc.h.
62561
62562         * lib/path-concat.c: Don't include assert.h.
62563         (path_concat): Remove assertion that would have triggered
62564         for ABASE starting with more than one slash.
62565         Reported by Andreas Schwab.
62566
62567         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62568         properly when ABASE is an absolute file name.
62569         Correct the description of this function.
62570         Include <assert.h>.
62571         Add an assertion and a test driver.
62572         This fixes a bug introduced on 2004-07-02.
62573         Andreas Schwab reported the resulting failure of cp --parents:
62574         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62575
62576 2005-03-21  Jim Meyering  <jim@meyering.net>
62577
62578         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62579         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62580
62581 2005-03-21  Jim Meyering  <jim@meyering.net>
62582         and  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62585         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62586         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62587         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62588         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62589         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62590         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62591         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62592         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62593         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62594         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62595         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62596         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62597         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62598         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62599         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62600         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62601         for these modules.
62602
62603 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62606         (which shouldn't happen), generate nothing instead of returning 0
62607         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62608
62609 2005-03-16  Bruno Haible  <bruno@clisp.org>
62610
62611         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62612         HAVE_LONGLONG_64BIT.
62613
62614 2005-03-16  Bruno Haible  <bruno@clisp.org>
62615
62616         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62617         HAVE_LONGLONG_64BIT.
62618
62619 2005-03-16  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62622         HAVE_LONGLONG_64BIT.
62623
62624 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62627         reliably distinguish strftime failure from empty output on POSIX
62628         hosts.
62629
62630 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62631
62632         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62633         (iconv_string): Don't guess a size-zero buffer, as that might cause
62634         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62635         result would be 'too large', where 'too large' is (heuristically)
62636         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62637         overflow concerns.  This will prevent some unwanted malloc failures
62638         when the inputs are very large.
62639
62640 2005-03-15  Karl Berry  <karl@gnu.org>
62641
62642         * config/srclist.txt (config.rpath): from gettext.
62643         * config/config.rpath: update.
62644
62645 2005-03-15  Bruno Haible  <bruno@clisp.org>
62646
62647         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62648         to 'negate'.
62649
62650         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62651         variable.
62652
62653         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62654         results.
62655
62656 2005-03-14  Simon Josefsson  <jas@extundo.com>
62657
62658         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62659         <fx@gnu.org>.
62660
62661 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62662
62663         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62664         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62665         intprops.h.
62666         * lib/strtol.c: Likewise.
62667
62668 2005-03-14  Jim Meyering  <jim@meyering.net>
62669
62670         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62671         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62672         to be nonzero so that we (and caller) can detect the difference
62673         between a valid zero-length expansion and an error return, even
62674         when the underlying strftime fails before writing anything into
62675         that location.
62676
62677 2005-03-14  Bruno Haible  <bruno@clisp.org>
62678
62679         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62680         Update from GNU gettext 0.14.3.
62681
62682 2005-03-10  Jim Meyering  <jim@meyering.net>
62683
62684         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62685
62686 2005-03-10  Jim Meyering  <jim@meyering.net>
62687
62688         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62689         so that this module works on systems without fchdir.
62690
62691 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62692
62693         Factor int-properties macros into a single file, except for
62694         glibc-related files.
62695         * lib/intprops.h: New file.
62696         * lib/getloadavg.c: Include it instead of limits.h.
62697         (INT_STRLEN_BOUND): Remove.
62698         * lib/human.c: Include intprops.h.
62699         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62700         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62701         302/1000.
62702         * lib/inttostr.h: Include intprops.h instead of limits.h.
62703         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62704         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62705         for consistency with intprops.h.
62706         (time_t_is_integer, twos_complement_arithmetic): Use them.
62707         * lib/sig2str.h: Include <signal.h>, intprops.h.
62708         (INT_STRLEN_BOUND): Remove.
62709         * lib/strftime.c (TYPE_SIGNED): Remove.
62710         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62711         * lib/strtol.c: Adjust comments to match intprops.h.
62712         * lib/userspec.c: Include intprops.h.
62713         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62714         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62715         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62716         instead of rolling our own expressions.
62717         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62718
62719         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62720         instead of int.
62721         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62722         the right thing even if adding 1900 would overflow.  Similarly
62723         for tm_mon + 1 and tm_yday + 1.
62724         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62725         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62726         (DO_SIGNED_NUMBER): New macro.
62727         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62728
62729 2005-03-07  Bruno Haible  <bruno@clisp.org>
62730
62731         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62732
62733 2005-03-07  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62736
62737 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62738
62739         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62740         (func_import): Only replace files via --import when they have actually
62741         changed.
62742
62743 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62744
62745         * m4/mmap-anon.m4: New file.
62746         * m4/pagealign_alloc.m4: New file.
62747
62748 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62749             Bruno Haible  <bruno@clisp.org>
62750
62751         * modules/pagealign_alloc: New file.
62752         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62753
62754 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62755             Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/pagealign_alloc.h: New file.
62758         * lib/pagealign_alloc.c: New file.
62759
62760 2005-03-03  Bruno Haible  <bruno@clisp.org>
62761
62762         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62763         Use an all-permissive copyright notice, recommended by RMS.
62764
62765 2005-03-02  Bruno Haible  <bruno@clisp.org>
62766
62767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62768         of AIX, the replacement has to be done only after <string.h> is
62769         included, therefore not in config.h. stpncpy.h does the replacement,
62770         and stpncpy.c uses it.
62771
62772 2005-03-02  Bruno Haible  <bruno@clisp.org>
62773
62774         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62775         stpncpy.c uses it.
62776
62777 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62780         The workaround isn't strictly needed for POSIX conformance, and
62781         it's too much of a pain to configure and maintain.  We'll ask
62782         people to fix their kernels instead.
62783         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62784         (NANOSLEEP_BUG_WORKAROUND): Remove.
62785         (xnanosleep): Remove the workaround.
62786
62787 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62790         Reported by Derek Price.
62791         (Include): Add "timespec.h".
62792
62793         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62794
62795 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62798         to detect nanosleep bug.
62799
62800 2005-03-01  Bruno Haible  <bruno@clisp.org>
62801
62802         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62803
62804 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         * modules/gethrxtime: New file.
62807         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62808         (Depends-on): Add gethrxtime.
62809         (configure.ac): Add gl_XNANOSLEEP.
62810         (Makefile.am): Remove lib_SOURCES line.
62811
62812 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62813
62814         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62815         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62816
62817 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62818
62819         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62820         * lib/timespec.h (gettime): Return void, since it always
62821         succeeds now.  All uses changed.
62822         * lib/gettime.c (gettime) Likewise.
62823         [HAVE_NANOTIME]: Prefer nanotime.
62824         Assume gettimeofday succeeds, as POSIX requires.
62825         Assime time () succeeds, since other code already does.
62826         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62827         (timespec_subtract): Remove.
62828         (NANOSLEEP_BUG_WORKAROUND): New constant.
62829         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62830         things considerably.  Use it only on GNU/Linux hosts, since the
62831         workaround shouldn't be needed elsewhere.
62832
62833 2005-02-24  Bruno Haible  <bruno@clisp.org>
62834
62835         * modules/gettext (Files): Add m4/glibc2.m4.
62836
62837 2005-02-24  Bruno Haible  <bruno@clisp.org>
62838
62839         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62840         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62841         * m4/progtest.m4:
62842         Update from GNU gettext 0.14.2.
62843         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62844
62845 2005-02-24  Bruno Haible  <bruno@clisp.org>
62846
62847         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62848         * lib/config.charset: Update from GNU gettext 0.14.2.
62849
62850 2005-02-24  Bruno Haible  <bruno@clisp.org>
62851
62852         * lib/gettext.h: Update from GNU gettext 0.14.2.
62853
62854 2005-02-23  Simon Josefsson  <jas@extundo.com>
62855
62856         * m4/iconvme.m4: New file.
62857
62858 2005-02-23  Jim Meyering  <jim@meyering.net>
62859
62860         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62861         change.
62862         Thanks to Bruno Haible for catching it.
62863
62864 2005-02-22  Simon Josefsson  <jas@extundo.com>
62865
62866         * modules/iconvme: New file.
62867
62868         * MODULES.html.sh: Add iconvme.
62869
62870 2005-02-22  Simon Josefsson  <jas@extundo.com>
62871
62872         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62873
62874 2005-02-22  Simon Josefsson  <jas@extundo.com>
62875
62876         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62877
62878 2005-02-22  Jim Meyering  <jim@meyering.net>
62879
62880         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62881         s/ifndef/ifdef/.
62882
62883 2005-02-20  Neil Conway  <neilc@samurai.com>
62884
62885         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62886         returned by OSX/Darwin if the specified buffer is not large
62887         enough for the hostname.
62888
62889 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62890
62891         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62892         pass it to _help, otherwise the latter coredumps trying to
62893         dereference state.root_argp.
62894
62895 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62896
62897         * modules/chdir-long (Depends-on): Add memrchr.
62898         * modules/memrchr (Files): Add lib/memrchr.h.
62899         (Include): "memrchr.h".
62900
62901 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62902
62903         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62904
62905 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62906
62907         * lib/memrchr.h: New file.
62908         * lib/chdir-long.c: Include it.
62909         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62910         Don't bother including stddef.h.
62911
62912 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62913
62914         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62915         inclusion.
62916         Include <sys/types.h>, for dev_t.
62917         (ME_DUMMY, ME_REMOTE): Move from here....
62918         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62919         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62920         Dmitry V. Levin.
62921         Include mountlist.h first, to test the interface.
62922
62923 2005-01-29  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/progname.c (program_name): Initialize.
62926         Needed when linking statically on MacOS X.
62927
62928 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62929
62930         Sync from coreutils.
62931         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62932         (Depends-on): Add c-strtod.
62933         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62934
62935 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62936
62937         Sync from coreutils.
62938         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62939
62940         Remove files that are specific to coreutils.
62941         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62942
62943 2005-01-28  Bruno Haible  <bruno@clisp.org>
62944
62945         * modules/javacomp: New file.
62946         * MODULES.html.sh (Java): Add javacomp.
62947
62948 2005-01-28  Bruno Haible  <bruno@clisp.org>
62949
62950         * m4/javacomp.m4: New file, from GNU gettext.
62951
62952 2005-01-28  Bruno Haible  <bruno@clisp.org>
62953
62954         * lib/javacomp.sh.in: New file, from GNU gettext.
62955         * lib/javacomp.h: New file, from GNU gettext.
62956         * lib/javacomp.c: New file, from GNU gettext.
62957
62958 2005-01-26  Simon Josefsson  <jas@extundo.com>
62959
62960         * lib/gai_strerror.c: Use GPL in header.
62961
62962 2005-01-26  Bruno Haible  <bruno@clisp.org>
62963
62964         * modules/javaexec: New file.
62965         * MODULES.html.sh (Java): Add javaexec.
62966
62967 2005-01-26  Bruno Haible  <bruno@clisp.org>
62968
62969         * m4/javaexec.m4: New file, from GNU gettext.
62970
62971 2005-01-26  Bruno Haible  <bruno@clisp.org>
62972
62973         * lib/javaexec.sh.in: New file, from GNU gettext.
62974         * lib/javaexec.h: New file, from GNU gettext.
62975         * lib/javaexec.c: New file, from GNU gettext.
62976
62977 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62978
62979         * modules/lchown (Depends-on): Remove lchown.h
62980
62981 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62982
62983         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62984         must be defined if the header file was not found, in order
62985         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62986
62987 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62988
62989         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62990         initializers for struct pentry_state.
62991         (__argp_error): Check return value of __asprintf
62992         (__argp_failure): Translate error message
62993
62994         * lib/argp-parse.c: Removed braces around the expansion of N_()
62995
62996 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62999         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
63000         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
63001         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
63002         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
63003         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
63004         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
63005         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
63006         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
63007         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
63008         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
63009         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
63010         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
63011         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
63012         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
63013         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
63014         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
63015         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
63016         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
63017         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
63018         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
63019         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
63020         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
63021         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
63022         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
63023         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
63024         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
63025         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
63026         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
63027         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
63028         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
63029         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
63030         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
63031         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
63032         xstrtol.m4, xstrtoumax.m4, yesno.m4:
63033         Use an all-permissive copyright notice, recommended by RMS.
63034
63035 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
63036
63037         * modules/chdir-long (Depends-on): Remove mempcpy.
63038
63039 2005-01-21  Jim Meyering  <jim@meyering.net>
63040
63041         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
63042         same value as for Solaris 9.
63043
63044         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
63045         component length.  This included changing the parameter to be
63046         of type `char *' rather than `char const *'.
63047         * lib/chdir-long.h (chdir_long): Update prototype.
63048
63049         * lib/openat.c (fdopendir, fstatat): New functions.
63050         * lib/openat.h: Include headers required for use of DIR and struct
63051         stat.
63052         [AT_SYMLINK_NOFOLLOW]: Define.
63053         (fdopendir, fstatat): Add prototypes.
63054
63055 2005-01-21  Bruno Haible  <bruno@clisp.org>
63056
63057         * modules/classpath: New file.
63058         * MODULES.html.sh (Java): Add classpath.
63059
63060 2005-01-21  Bruno Haible  <bruno@clisp.org>
63061
63062         * lib/classpath.h: New file, from GNU gettext.
63063         * lib/classpath.c: New file, from GNU gettext.
63064
63065 2005-01-20  Simon Josefsson  <jas@extundo.com>
63066
63067         * modules/version-etc-fsf: New file.
63068
63069 2005-01-20  Simon Josefsson  <jas@extundo.com>
63070
63071         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
63072         * lib/version-etc.c: Remove version_etc_copyright.
63073         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
63074         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
63075
63076 2005-01-20  Simon Josefsson  <jas@extundo.com>
63077
63078         * lib/base64.h (isbase64): Add.
63079
63080         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
63081         using a unsigned prototype, don't inline.
63082         (base64_decode): Use it.
63083
63084 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
63087         it.
63088
63089 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         * lib/save-cwd.c (save_cwd): Remove code to support the case
63092         where fchdir is missing or flaky.
63093
63094 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
63097
63098 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
63101         AC_LIBSOURCES now does this.
63102         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
63103         with new ullong_max module.
63104
63105 2005-01-19  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/sh-quote: New file.
63108         * MODULES.html.sh (Executing programs): Add sh-quote.
63109
63110 2005-01-19  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/sh-quote.h: New file, from GNU gettext.
63113         * lib/sh-quote.c: New file, from GNU gettext.
63114
63115 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         Merge from coreutils.
63118         * m4/ullong_max.m4: New file.
63119         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
63120         (gl_MACROS): Assume localeconv exists.
63121
63122 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63123
63124         Merge changes from coreutils, as described below in several
63125         changelogs dated today.
63126
63127         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
63128         (O_DIRECTORY): Remove; not needed here, since "." must be
63129         a directory.  All uses removed.
63130         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
63131         universal on Suns, and we also need to test for IRIX.
63132         Revamp code to use 'if' rather than '#if'.
63133         Avoid unnecessary comparison of cwd->desc to 0.
63134
63135         * lib/utimens.c (futimens): Robustify the previous patch, by checking
63136         for known valid error numbers rather than observed invalid ones.
63137
63138 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
63139
63140         * modules/ullong_max: New file.
63141
63142         * modules/chdir-long, modules/openat: New files.
63143         * modules/save-cwd (Depends-on): Depend on chdir-long.
63144         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
63145
63146 2005-01-18  Jim Meyering  <jim@meyering.net>
63147
63148         Merge from coreutils.
63149         * m4/chdir-long.m4, m4/openat.m4: New files.
63150         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
63151         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
63152         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
63153         is sane and DOES follow symlinks.  Besides, testing 20 different
63154         systems found no broken chown implementations.
63155         Prompted by a change in rsync's copy of this macro.
63156         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
63157
63158         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
63159
63160         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
63161         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
63162         NULL-means-set-to-current-time semantics.
63163         Remove temporary file immediately, rather than waiting
63164         for configure's at-exit trap code to do it.
63165
63166 2005-01-18  Jim Meyering  <jim@meyering.net>
63167
63168         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63169
63170         * lib/utimens.c (futimens): Account for the fact that futimes
63171         can also fail with errno == ENOSYS or errno == ENOENT.
63172         Patch from Dmitry V. Levin.
63173
63174         Change the name of the robust chdir function from chdir to chdir_long.
63175         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
63176         (restore_cwd): Use chdir_long, not chdir.
63177         * lib/chdir-long.c: Renamed from chdir.c.
63178         * lib/chdir-long.h: Renamed from chdir.h.
63179         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
63180         Hurd.
63181
63182 2005-01-18  Bruno Haible  <bruno@clisp.org>
63183
63184         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
63185         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
63186         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
63187         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
63188         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
63189         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
63190         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
63191         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
63192         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
63193         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
63194         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
63195         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
63196         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
63197         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
63198         Use an all-permissive copyright notice, recommended by RMS.
63199
63200 2005-01-18  Bob Proulx  <bob@proulx.com>
63201
63202         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
63203         simplify offsetof() macro construct to avoid compile failure with
63204         native HP-UX 11.0 ANSI C compiler.
63205
63206 2005-01-17  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
63209         redundant because stpncpy.m4 takes care of it.
63210
63211 2005-01-17  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
63214
63215 2005-01-17  Bruno Haible  <bruno@clisp.org>
63216
63217         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
63218         used.
63219
63220 2005-01-17  Bruno Haible  <bruno@clisp.org>
63221
63222         * lib/fwriteerror.h (fwriteerror): Change specification to include
63223         fclose.
63224         * lib/fwriteerror.c: Include <stdbool.h>.
63225         (fwriteerror): At the end, close the file stream. Record whether
63226         stdout was already closed.
63227
63228 2005-01-17  Bruno Haible  <bruno@clisp.org>
63229
63230         * lib/execute.c (environ): Declare if needed.
63231         * lib/pipe.c (environ): Likewise.
63232         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
63233
63234 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63235
63236         * modules/argp: Depend on vsnprintf
63237
63238 2005-01-10  Jim Meyering  <jim@meyering.net>
63239
63240         * modules/closeout (Depends-on): Add atexit.
63241
63242 2005-01-06  Bruno Haible  <bruno@clisp.org>
63243
63244         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
63245
63246 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
63249         definitions to be after all include files, to avoid collisions.
63250         Problem reported by Bob Proulx.
63251
63252 2005-01-04  Jim Meyering  <jim@meyering.net>
63253
63254         Changes imported from coreutils.
63255         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
63256         as the mkstemp template, use a temporary directory and an
63257         8.3-friendly template to avoid trouble on systems like DJGPP.
63258         Reported by Juan M. Guerrero via Stepan Kasal.
63259         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
63260         close. Remove the temporary directory right away, rather than waiting
63261         for configure's at-exit trap code to do it.
63262         Suggestion from Stepan Kasal.
63263
63264 2005-01-01  Simon Josefsson  <jas@extundo.com>
63265
63266         * gnulib-tool: Print #include directives when --import'ing.
63267
63268 2004-12-28  Simon Josefsson  <jas@extundo.com>
63269
63270         * tests/test-base64.c: Include required header files.  Remove
63271         unused variables.
63272
63273 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63274
63275         * modules/error (Depends-on): Remove gettext.
63276
63277 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
63280         not needed.  This removes a dependency on the gettext module.
63281         [defined _LIBC]: Do not include <libintl.h>; not needed.
63282
63283 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63286         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63287
63288 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63289
63290         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63291         HAVE_DECL_STRTOLD.
63292
63293 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63294
63295         * modules/getdate (Depends-on): Remove alloca-opt.
63296
63297 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63298
63299         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63300
63301 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63302
63303         * lib/argp-parse.c: Include <stddef.h>.
63304         (alignof, alignto): New macros.
63305         (parser_init): Don't assume that void * is aligned sufficiently
63306         for struct option.
63307
63308         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63309         need to extend the stack.
63310         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63311         large.
63312
63313 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63314
63315         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63316
63317 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63318
63319         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63320         (2004-10-24) change.  Apparently this was a false alarm.
63321
63322         * modules/getdate: Depend on alloca-opt, not alloca.
63323
63324 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63325
63326         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63327         Remove now-obsolete comment about AIX.
63328         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63329         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63330         (YYMAXDEPTH): New macro.
63331
63332 2004-12-18  Simon Josefsson  <jas@extundo.com>
63333
63334         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63335
63336 2004-12-18  Bruno Haible  <bruno@clisp.org>
63337
63338         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63339
63340 2004-12-18  Bruno Haible  <bruno@clisp.org>
63341
63342         * lib/fatal-signal.c (fatal_signals): Make non-const.
63343         (init_fatal_signals): New function.
63344         (uninstall_handlers, install_handlers): Ignore signals that were set to
63345         SIG_IGN.
63346         (at_fatal_signal): Call init_fatal_signals.
63347         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63348         SIG_IGN.
63349         Reported by Paul Eggert.
63350
63351 2004-12-18  Bruno Haible  <bruno@clisp.org>
63352
63353         * doc/alloca.texi: New file.
63354         * doc/alloca-opt.texi: New file.
63355
63356 2004-12-17  Jim Meyering  <jim@meyering.net>
63357
63358         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63359         Otherwise, install-sh could exit with improper exit status when
63360         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63361
63362 2004-12-16  Simon Josefsson  <jas@extundo.com>
63363
63364         * tests/test-base64.c: Add license.
63365
63366 2004-12-15  Stepan Kasal  <address@hidden>
63367
63368         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63369
63370 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * modules/getcwd (Files): Add m4/d-ino.m4.
63373         Suggested by Mark D. Baushke.
63374
63375 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * lib/getdate.y (textint): New member "negative".
63378         (time_zone_hhmm): New function.
63379         Expect 14 shift-reduce conflicts, not 13.
63380         (o_colon_minutes): New rule.
63381         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63382         (yylex): Set the "negative" member of signed numbers.
63383
63384 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * doc/getdate.texi (Time of day items, Time zone items):
63387         Describe new formats +00:00, UTC+00:00.
63388
63389 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63390
63391         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63392         spurious "-l"s.  Problem reported by Stepan Kasal.
63393
63394 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63395
63396         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63397         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63398
63399 2004-12-04  Simon Josefsson  <jas@extundo.com>
63400
63401         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63402         Vandoorselaere <yoann@prelude-ids.org>.
63403
63404 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63405
63406         Changes imported from coreutils.
63407         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63408         exist.
63409         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63410
63411 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63412
63413         Changes imported from coreutils.
63414         * lib/hard-locale.c: Assume <locale.h> exists.
63415         Include "strdup.h".
63416         (GLIBC_VERSION): New macro.
63417         (hard_locale): Assume setlocale exists.
63418         Rewrite to avoid #ifdef.
63419         Use strdup rather than malloc + strcpy.
63420         * lib/human.c: Assume <locale.h> exists.
63421         (human_readable): Assume localeconv exists.
63422
63423 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63424
63425         * modules/hard-locale (Depends-on): Add strdup.
63426
63427 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63428
63429         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63430         convert T2, not T.  (Imported from libc.)
63431
63432 2004-11-30  Simon Josefsson  <jas@extundo.com>
63433
63434         * modules/restrict (License): Change to LGPL.
63435
63436 2004-11-30  Simon Josefsson  <jas@extundo.com>
63437
63438         * m4/restrict.m4: Add copyright and copying conditions.
63439
63440 2004-11-30  Simon Josefsson  <jas@extundo.com>
63441
63442         * m4/base64.m4: New file.
63443
63444 2004-11-30  Simon Josefsson  <jas@extundo.com>
63445
63446         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63447         base64.
63448
63449         * tests/test-base64.c: New file.
63450
63451         * modules/base64: New file.
63452
63453 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63454
63455         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63456         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63457
63458         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63459
63460 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63463         (__getcwd.c): Don't restore errno; glibc doesn't.
63464         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63465         first, falling back to our code only if its results look suspicious.
63466         Ensure that the resulting buffer is only as large as necessary.
63467
63468         * lib/readutmp.c: Include readutmp.h first.
63469         Include <errno.h>, since readutmp.h no longer does that.
63470         * lib/readutmp.h: Don't include <errno.h>,
63471         <sys/param.h>, <time.h>; not needed to establish interface.
63472         (errno): Remove decl.
63473         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63474         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63475         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63476
63477 2004-11-28  Simon Josefsson  <jas@extundo.com>
63478
63479         * lib/base64.h, base64.c: New file.
63480
63481 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63482
63483         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63484
63485 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63486
63487         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63488         (Depends-on): Remove pathmax, same.  Add mempcpy.
63489         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63490         (Makefile.am): Append getcwd.h to lib_SOURCES.
63491         (Include): Add getcwd.h.
63492         (Maintainer): Change from Jim Meyering to "all, glibc",
63493         since getdate now uses intended-for-glibc code.
63494         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63495         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63496
63497 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63500         HP's ANSI C compiler.
63501         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63502         Declaring int functions causes warnings on some modern systems and
63503         shouldn't be needed to compile on ancient ones.
63504         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63505         defined.
63506
63507         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63508         with the following changes.
63509         (__set_errno): Parenthesize properly.
63510         Include <stdbool.h>.
63511         (MIN, MAX, MATCHING_INO): New macros.
63512         (__getcwd): Define with prototype, not K&R form.
63513         Use heuristics to allocate default buffer on stack if possible.
63514         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63515         behavior, and to avoid the PATH_MAX limit when computing
63516         ../../../../...
63517         Use MATCHING_INO to compare inode number to file.
63518         Check for arithmetic overflow in size calculations.
63519         Fix bug in reallocation of dot array that caused getcwd to fail
63520         on directories nested deeper than 75.
63521         Be more careful about saving errno on error.
63522         Do not use realloc; use only free+malloc, as this is a bit
63523         more flexible and avoids a needless copy operation.
63524         Do not inspect st_dev and st_ino for symbolic links; POSIX
63525         doesn't specify the latter.
63526         Check for closedir errors.
63527         Avoid needless casts.
63528         Use "#ifdef weak_alias" around weak_alias, to be like other
63529         glibc code.
63530         The following changes to getcwd.c have effect only when used in
63531         gnulib; they have no effect inside glibc proper.
63532         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63533         as alloca isn't used.
63534         (alloca, __alloca): Likewise.
63535         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63536         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63537         unconditionally, as gnulib assumes C89 or better.
63538         Do not include <sys/param.h>.
63539         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63540         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63541         better.
63542         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63543         Include <dirent.h> in a way that is compatible with modern Autoconf.
63544         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63545         New macros, if not already defined.
63546         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63547         Use "_LIBC", not "defined _LIBC", for consistency.
63548         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63549         a mempcpy module.
63550         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63551         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63552         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63553         credit only to Jim Meyering and adjust the copyright dates.
63554         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63555         <stdlib.h>, <unistd.h>, "pathmax.h".
63556         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63557         (INITIAL_BUFFER_SIZE): Remove.
63558         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63559
63560 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63561
63562         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63563         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63564         Use the _ONCE methods, for efficiency.
63565         Check for fcntl.h.  In test program, include <errno.h>
63566         and <fcntl.h> if available.  Remove old K&R cruft from
63567         test program.  Check for common errors in GNU/Linux,
63568         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63569         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63570         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63571         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63572         name accordingly.
63573         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63574         accommodate new getcwd.c.
63575         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63576         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63577         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63578         that's all we need now.
63579
63580 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63581
63582         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63583         argp-parse.c depends on getopt internals, that means we should
63584         always use our getopt, to be on the safe side.
63585         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63586         order not to spoil the result of an eventual previous invocation
63587         of gl_GETOPT_SUBSTITUTE.
63588
63589 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63590
63591         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63592         redefinition warnings. To avoid them, include the defines
63593         in `#if !defined __need_getopt ... #endif'. The only place
63594         where __getopt_argv_const is used is in definitions
63595         of getopt_long and getopt_long_only below, which are as well
63596         protected by `#ifndef __need_getopt'.
63597         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63598         __need_getopt after including <stdio.h> and <unistd.h> These
63599         headers might have defined it.
63600
63601 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63604
63605 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63608         (futimens): New function, which uses futimes if available.
63609         (futimens, utimens): Support timespec==NULL, with same semantics
63610         as utime and utimens.
63611         * lib/utimens.h (futimens): New decl.
63612
63613 2004-11-23  Jim Meyering  <jim@meyering.net>
63614
63615         * lib/getopt_.h: Remove trailing blanks.
63616
63617 2004-11-23  Jim Meyering  <jim@meyering.net>
63618
63619         * lib/__fpending.c: Add comment.
63620
63621 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63622
63623         * modules/canonicalize (Depends-on): Add xreadlink.
63624         Problem reported by James Youngman.
63625
63626 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63629         New macros.
63630         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63631         optopt): Use them instead of invoking ## directly; otherwise, the
63632         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63633
63634 2004-11-19  Bruno Haible  <bruno@clisp.org>
63635
63636         * lib/strtok_r.c: Move comments from here...
63637         * lib/strtok_r.h: ... to here.
63638
63639 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63642         implementations that mishandle size_t overflow.
63643
63644 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63645
63646         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63647         might fail.  Problem reported by Yoann Vandoorselaere.
63648         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63649         implementations that mishandle size_t overflow.
63650
63651 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63652
63653         * modules/canon-host (Depends-on): Add strdup.
63654
63655 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63658
63659 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         * lib/canon-host.c: Include "strdup.h".
63662         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63663         Use strdup instead of malloc/strcpy to duplicate strings.
63664
63665         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63666         (human_space_before_unit): New constant.
63667         * lib/human.c (human_readable): Support it.
63668
63669         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63670         (xgetcwd): Set errno correctly when failing.
63671         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63672         the failure is actually due to a PATH_MAX problem.
63673
63674         Further getopt changes to make it more likely that glibc will
63675         buy the changes back.
63676         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63677         (getopt): Use it, so to preserve glibc semantic
63678         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63679         when compiling for libc.
63680         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63681         (getopt_long, getopt_long_only): Use it.
63682
63683         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63684         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63685         (getopt): Argv is now char * const *, as per standard.
63686         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63687         not char *__getopt_argv_const *.
63688         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63689         _getopt_long_only_r): Likewise.
63690         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63691         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63692         _getopt_long_r, _getopt_long_only_r): Likewise.
63693         * lib/getopt_.h (__getopt_argv_const): Remove.
63694         (getopt): Argv is now char * const *, as per standard.
63695
63696         * lib/getdate.y (tORDINAL): New token.
63697         (day, relunit): Allow it for relative times.
63698         (relative_time_table): Use tORDINAL for ordinals.
63699
63700 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63701
63702         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63703         Document that "second" isn't allowed as an ordinal number.
63704
63705 2004-11-16  Jim Meyering  <jim@meyering.net>
63706
63707         * modules/closeout (Depends-on): Add fpending.
63708
63709 2004-11-15  Jim Meyering  <jim@meyering.net>
63710
63711         * lib/closeout.c: Include "__fpending.h" once again.
63712         Include <stdbool.h>.
63713         (close_stdout): Don't fail just because stdout was closed initially,
63714         since some programs don't write to stdout in the normal course of
63715         operation (other than --version and --help), and we don't want this
63716         function to make e.g. `touch file >&-' fail.
63717         But do fail if it was closed and someone has tried to write to it.
63718         E.g., `printf foo >&-' must fail.
63719
63720 2004-11-13  Jim Meyering  <jim@meyering.net>
63721
63722         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63723
63724 2004-11-12  Simon Josefsson  <jas@extundo.com>
63725
63726         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63727         small doc fix is still pending.
63728
63729 2004-11-11  Simon Josefsson  <jas@extundo.com>
63730
63731         * modules/strtok_r: New file.
63732
63733         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63734         strtok_r.
63735
63736 2004-11-11  Simon Josefsson  <jas@extundo.com>
63737
63738         * m4/strtok_r.m4: New file.
63739
63740         * m4/getopt.m4: Replace opterr.
63741
63742 2004-11-11  Simon Josefsson  <jas@extundo.com>
63743
63744         * lib/strtok_r.h, strtok_r.c: New file.
63745
63746 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63747
63748         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63749         of replacing opterr, getopt, etc.  This should handle the
63750         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63751
63752 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63753
63754         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63755         we can stop lying to compilers about the constness of argv when we
63756         are compiled outside glibc.
63757         (getopt, getopt_long, getopt_long_only): Use it.
63758         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63759         _getopt_internal, getopt): Likewise.
63760         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63761         _getopt_long_only_r): Likewise.
63762         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63763         _getopt_long_r, _getopt_long_only_r): Likewise.
63764
63765         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63766         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63767         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63768         the other external symbols.
63769         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63770         declaration, since the above renaming now works around collisions.
63771
63772 2004-11-11  Jim Meyering  <jim@meyering.net>
63773
63774         * lib/linebreak.c: Remove trailing blanks.
63775         * lib/alloca_.h: Likewise.
63776         * lib/acosl.c: Likewise.
63777         * lib/euidaccess.c: Likewise.
63778         * lib/allocsa.h: Likewise.
63779
63780 2004-11-10  Simon Josefsson  <jas@extundo.com>
63781
63782         * m4/getaddrinfo.m4: New file.
63783
63784 2004-11-10  Simon Josefsson  <jas@extundo.com>
63785
63786         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63787
63788 2004-11-10  Simon Josefsson  <jas@extundo.com>
63789
63790         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63791         getaddrinfo.
63792
63793         * modules/getaddrinfo: New file.
63794
63795 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63796
63797         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63798
63799 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63800
63801         * lib/mktime.c (SHR): New macro, which is a portable
63802         substitute for >> that should work even on Crays.
63803         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63804         Problem reported by Mark D. Baushke in
63805         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63806         * lib/getdate.y (SHR): Likewise.
63807         (tm_diff): Use it.
63808         * lib/strftime.c (SHR): Likewise.
63809         (tm_diff): Use it.
63810         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63811         quote_these_too, so that right shifts are well defined.  All uses
63812         changed.
63813
63814 2004-11-10  Jim Meyering  <jim@meyering.net>
63815
63816         Ensure that no close failure goes unreported.
63817         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63818         return early when it seems there's nothing to flush.
63819         Don't include __fpending.h.
63820
63821 2004-11-10  Jim Meyering  <jim@meyering.net>
63822
63823         * modules/closeout (Depends-on): Remove fpending.
63824
63825 2004-11-10  Jim Meyering  <jim@meyering.net>
63826
63827         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63828
63829 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63830
63831         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63832         gl_FUNC_STRFTIME.
63833         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63834         and AC_REQUIRE when possible, to avoid duplicate checks.
63835         Check for <wchar.h>.
63836
63837 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63838
63839         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63840
63841 2004-11-09  Bruno Haible  <bruno@clisp.org>
63842
63843         * m4/sockpfaf.m4: New file.
63844
63845 2004-11-05  Bruno Haible  <bruno@clisp.org>
63846
63847         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63848         Reported by Mark D. Baushke <mdb@cvshome.org>.
63849
63850 2004-11-04  Bruno Haible  <bruno@clisp.org>
63851
63852         2004-09-11  Bruno Haible  <bruno@clisp.org>
63853                 * allocsa.valgrind: New file.
63854         2004-02-06  Bruno Haible  <bruno@clisp.org>
63855                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63856                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63857                 Reported by Christopher Seip <chris.seip@hp.com>.
63858
63859 2004-11-04  Bruno Haible  <bruno@clisp.org>
63860
63861         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63862         (Makefile.am): Distribute it.
63863
63864 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63865
63866         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63867         with errno == ERANGE if the buffer is too small.
63868         Problem reported by Mark D. Baushke.
63869
63870 2004-11-03  Albert Chin  <china@thewrittenword.com>
63871             Paul Eggert  <eggert@cs.ucla.edu>
63872
63873         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63874         equivalent, substitute $ac_type for equivalent type rather than
63875         blindly using uint32_t *always* which won't work if uint32_t is not
63876         available.  Define _UINT32_T to work around typedef of uint32_t if
63877         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63878         2.5.1.
63879
63880 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * m4/jm-macros.m4: Sync from coreutils.
63883         (gl_MACROS): Check for mbrlen, for pathchk.
63884         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63885
63886 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         * lib/xreadlink.c (MAXSIZE): New macro.
63889         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63890         size does not exceed MAXSIZE.  Avoid cast.
63891         As suggested by Mark D. Baushke in
63892         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63893         if readlink fails with buffer size just under MAXSIZE, try again
63894         with MAXSIZE.
63895
63896 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63897
63898         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63899
63900 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63901         and  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63904         (get_date): Overparenthesize to avoid GCC warning.
63905
63906 2004-11-02  Bruno Haible  <bruno@clisp.org>
63907
63908         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63909         returns void.
63910
63911 2004-11-02  Bruno Haible  <bruno@clisp.org>
63912
63913         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63914         function returns void.
63915
63916 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63919         fflush_unlocked, flockfile, funlockfile, funlockfile,
63920         fputs_unlocked, putc_unlocked.
63921
63922 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63923
63924         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63925         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63926         already declared.
63927
63928 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * modules/getdate (Files): Add doc/getdate.texi.
63931         (Depends-on): Add setenv, xalloc.
63932
63933 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63934
63935         * lib/getdate.y: Add support for TZ="foo" within a date string.
63936         Fix some bugs near time_t boundaries.  Reject dates with
63937         out-of-range components, e.g., "Sept 31".
63938         Include <stdlib.h>, "setenv.h", "xalloc.h".
63939         (ISDIGIT_LOCALE): Remove; unused.
63940         Note that the TZ and time functions used here are not reentrant.
63941         (mktime_ok, get_tz): New functions.
63942         (TZBUFSIZE): New constant.
63943         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63944         This requires that we sometimes generate our own TZ="XXX..." setting.
63945
63946 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63947
63948         * doc/getdate.texi: New file, from coreutils with modifications for
63949         the new TZ parsing.
63950
63951 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63952
63953         * lib/mktime.c (not_equal_tm): Remove redundant check.
63954
63955 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * modules/regex (lib_SOURCES): Add regex.c.
63958         Reported by James Youngman in
63959         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63960
63961 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * lib/getdate.y: Use Bison 1.875 features, and some minor
63964         code cleanups.  This change does not affect semantics.
63965         Don't include <stdlib.h>; no longer needed.
63966         Don't include unlocked-io.h; only the "#if TEST" code uses
63967         stdio, and performance isn't crucial there.
63968         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63969         Bison 1.875 features as described below.
63970         All uses of "PC." replaced by "pc->".
63971         (YYSTYPE): Add a forward declaration.
63972         (yylex, yyerror): Use full prototypes in forward decls.
63973         Use "%pure-parser" rather than obsolescent "%pure_parser".
63974         Use %parse-param and %lex-param instead of obsolescent
63975         YYPARSE_PARAM and YYLEX_PARAM.
63976         (meridian_table, month_and_day_table, time_units_table,
63977         relative_time_table, time_zone_table, military_table,
63978         lookup_zone, lookup_word, get_date):
63979         Use NULL instead of 0 where appropriate.
63980         (to_hour): Avoid abort (), to avoid a dependency on
63981         stdlib.h.
63982         (yyerror, yylex): Now accepts parser_control * arg.
63983         (main) [TEST]: Use '\0' rather than 0 for char.
63984
63985 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63988
63989 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63990
63991         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63992         It's now the caller's responsibility to handle the case where
63993         !HAVE_GETPAGESIZE && !defined getpagesize.
63994
63995         * lib/mktime.c (leapyear): Arg is long int, not int.
63996
63997 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
64000
64001 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64002
64003         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
64004         missing.  Problem reported by James Youngman.
64005
64006 2004-10-16  Simon Josefsson  <jas@extundo.com>
64007
64008         * gnulib-tool: Fix comments.  Fix parse problem.
64009         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
64010
64011 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
64012
64013         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
64014         implementation of getopt_long.  Problem reported by Alexander Taler in:
64015         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
64016
64017 2004-10-15  Bruno Haible  <bruno@clisp.org>
64018
64019         * gnulib-tool: Untabify. Initialize supplied_libname.
64020         (func_usage): More homogenous output.
64021         (func_modules_transitive_closure, func_modules_to_filelist,
64022         func_emit_lib_Makefile_am): New functions.
64023         (func_import): New function, extracted from big case statement. Use
64024         func_get_license, func_modules_transitive_closure,
64025         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
64026         opt_lgpl. Don't use test -a, as it's not portable.
64027         (func_create_testdir): Use func_modules_transitive_closure,
64028         func_modules_to_filelist, func_emit_lib_Makefile_am.
64029
64030 2004-10-15  Bruno Haible  <bruno@clisp.org>
64031
64032         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
64033
64034 2004-10-15  Bruno Haible  <bruno@clisp.org>
64035
64036         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
64037         the portions belonging to each module.
64038         Suggested by Derek Robert Price <derek@ximbiot.com>.
64039
64040 2004-10-12  Simon Josefsson  <jas@extundo.com>
64041
64042         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
64043         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
64044         to real functions.
64045
64046 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64047
64048         * modules/vsnprintf: New file.
64049
64050 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64051
64052         * m4/vsnprintf.m4: New file.
64053
64054 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64055
64056         * lib/vsnprintf.h: New file.
64057         * lib/vsnprintf.c: New file.
64058
64059 2004-10-11  Bruno Haible  <bruno@clisp.org>
64060
64061         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
64062         vsnprintf.
64063
64064 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
64067
64068 2004-10-07  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
64071         fits into the provided buffer.
64072
64073 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64074
64075         * lib/diacrit.c, diacrit.h: Add GPL notice.
64076
64077         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
64078         notice.
64079         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
64080         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
64081         This avoids a potential constant-folding bug.
64082
64083 2004-10-05  Bruno Haible  <bruno@clisp.org>
64084
64085         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
64086         for the declaration of strsep.
64087
64088 2004-10-05  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
64091
64092 2004-10-04  Simon Josefsson  <jas@extundo.com>
64093
64094         * modules/memmem: New file.
64095         * tests/test-memmem.c: New file.
64096         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
64097
64098 2004-10-04  Simon Josefsson  <jas@extundo.com>
64099
64100         * m4/memmem.m4: New file.
64101
64102 2004-10-04  Simon Josefsson  <jas@extundo.com>
64103
64104         * lib/memmem.h: New file.
64105         * lib/memmem.c: New file, taken from glibc.
64106
64107 2004-10-04  Simon Josefsson  <jas@extundo.com>
64108
64109         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
64110         '#ifdef USE_UNLOCKED_IO'.
64111
64112 2004-10-04  Simon Josefsson  <jas@extundo.com>
64113
64114         * config/srclist.txt: Add memmem from glibc.
64115
64116 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
64119
64120         * modules/argmatch, modules/argp, modules/closeout, modules/error,
64121         modules/exclude, modules/getdate, modules/getline,
64122         modules/getndelim2, modules/getpass, modules/getpass-gnu,
64123         modules/getusershell, modules/linebuffer, modules/md5,
64124         modules/mountlist, modules/posixtm, modules/readtokens,
64125         modules/readutmp, modules/regex, modules/sha1,
64126         modules/version-etc, modules/yesno:
64127         Remove dependency on unlocked-io.
64128
64129 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64130
64131         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
64132
64133         * m4/unlocked-io.m4: Add copyright notice.
64134         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
64135
64136 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64137
64138         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
64139         * lib/xmalloc.c (xmemdup): Likewise.
64140         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
64141         XFREE): Remove these long-obsolescent macros.
64142         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
64143         * lib/xstrdup.c: Remove.
64144
64145         * lib/regex.c (re_comp): Cast gettext return value to char *,
64146         Problem reported by Martin Neitzel via Mark D. Baushke.
64147
64148 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
64149
64150         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
64151         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
64152         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
64153         regex.c, sha1.c, version-etc.c, yesno.c:
64154         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
64155         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
64156         the includer's responsibility.
64157
64158         Sync from coreutils.
64159
64160         * lib/modechange.c (mode_compile): Don't decrement a pointer that
64161         points to the start of a string, as the C Standard says the
64162         resulting behavior is undefined.
64163
64164         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
64165         simple -> simple_backups, numbered_existing ->
64166         numbered_existing_backups, numbered -> numbered_backups
64167         to avoid shadowing problems.  All uses changed.
64168         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
64169         * lib/backupfile.c (check_extension, numbered_backup):
64170         Rename locals to avoid shadowing 'basename'.
64171         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
64172         once.
64173
64174         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
64175         * lib/.cvsignore: Add getopt.h.
64176
64177 2004-10-04  Bruno Haible  <bruno@clisp.org>
64178
64179         * modules/README: New file.
64180         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
64181         not a module.
64182
64183 2004-10-02  Jim Meyering  <jim@meyering.net>
64184
64185         * lib/dirfd.h, getpagesize.h: Add copyright notice.
64186
64187 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64188
64189         * modules/strsep: New file.
64190
64191 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64192
64193         * m4/strsep.m4: New file.
64194
64195 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64196
64197         * lib/strsep.h: New file.
64198         * lib/strsep.c: New file.
64199
64200 2004-10-01  Simon Josefsson  <jas@extundo.com>
64201
64202         * lib/snprintf.c (snprintf): Handle size==0.
64203
64204 2004-10-01  Simon Josefsson  <jas@extundo.com>
64205             Bruno Haible  <bruno@clisp.org>
64206
64207         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
64208         (snprintf): Declare 'args'.
64209
64210 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
64211
64212         * lib/snprintf.c: Remove comments as to why each header is needed.
64213
64214 2004-10-01  Bruno Haible  <bruno@clisp.org>
64215
64216         * MODULES.html.sh: Add strsep.
64217
64218 2004-09-30  Simon Josefsson  <jas@extundo.com>
64219
64220         * modules/snprintf: New file.
64221
64222 2004-09-30  Simon Josefsson  <jas@extundo.com>
64223
64224         * m4/snprintf.m4: New file.
64225
64226 2004-09-30  Simon Josefsson  <jas@extundo.com>
64227
64228         * lib/snprintf.h, lib/snprintf.c: New files.
64229
64230 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64231
64232         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
64233         (hol_entry_help): Never translate an empty string.
64234         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
64235         * lib/argp.h (OPTION_NO_TRANS): New option.
64236
64237 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64238
64239         * modules/argp (Maintainer): Replace Simon Josefsson
64240         by Sergey Poznyakoff.
64241
64242 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
64245         changes merged back into glibc.
64246
64247 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
64248
64249         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
64250
64251 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64252
64253         * lib/xvasprintf.c: Include xalloc.h.
64254         (xvasprintf): Use xalloc_die, not xmalloc_die.
64255
64256 2004-09-29  Bruno Haible  <bruno@clisp.org>
64257
64258         * modules/alloca-opt: New file, derived from modules/alloca.
64259         * modules/allocsa: Depend on alloca-opt instead of alloca.
64260         * modules/setenv: Likewise.
64261         * modules/vasnprintf: Likewise.
64262         * MODULES.html.sh: Add alloca-opt.
64263
64264 2004-09-28  Simon Josefsson  <jas@extundo.com>
64265
64266         * gnulib-tool: New parameter --lgpl, to asseert that modules are
64267         LGPL, and to replace license template from GPL to LGPL.
64268
64269 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64270
64271         * modules/dummy: Change license to LGPL.
64272
64273 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
64274
64275         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
64276
64277 2004-09-24  Simon Josefsson  <jas@extundo.com>
64278
64279         * modules/minmax (License): Change from GPL to LGPL.
64280
64281 2004-09-23  Simon Josefsson  <jas@extundo.com>
64282
64283         * gnulib-tool (--import): Typo.
64284
64285 2004-09-23  Simon Josefsson  <jas@extundo.com>
64286
64287         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64288
64289 2004-09-22  Bruno Haible  <bruno@clisp.org>
64290
64291         * modules/*: Add 'License' field.
64292         * gnulib-tool: Accept --extract-license option.
64293         (func_get_license): New function.
64294
64295 2004-09-21  Bruno Haible  <bruno@clisp.org>
64296
64297         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64298         Reported by Simon Josefsson.
64299
64300 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64301
64302         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64303         gl_AC_TYPE_LONG_LONG.
64304
64305 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64308
64309 2004-09-18  Simon Josefsson  <jas@extundo.com>
64310         and  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64313         calls with autoreconf.  Define GL_LIB.
64314
64315 2004-09-14  Karl Berry  <karl@gnu.org>
64316
64317         * config/srclist.txt: unsync setenv.c, sigh.
64318
64319 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64320
64321         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64322         Problem reported by Bruno Haible in:
64323         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64324
64325 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         * config/srclist.txt: Comment out argp-pvh.c.
64328
64329 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64330
64331         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64332         in case some system header has #define'd it.  Problem reported by
64333         Soeren D. Schulze in
64334         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64335
64336 2004-09-09  Karl Berry  <karl@gnu.org>
64337
64338         * regex.[ch]: delete from the root.  These were supposed to be
64339                 synced with emacs cvs, but this has not happened for about
64340                 a year, and anyway nothing else uses emacs regex.[ch].
64341                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64342                 lib/regex[.ch] is untouched.
64343
64344 2004-09-09  Bruno Haible  <bruno@clisp.org>
64345
64346         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64347
64348 2004-09-09  Bruno Haible  <bruno@clisp.org>
64349
64350         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64351         modifications.
64352         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64353
64354 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64355
64356         * modules/xvasprintf: New file.
64357         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64358
64359 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64360
64361         * lib/xvasprintf.h: New file.
64362         * lib/xvasprintf.c: New file.
64363         * lib/xasprintf.c: New file.
64364
64365 2004-09-08  Bruno Haible  <bruno@clisp.org>
64366
64367         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64368
64369 2004-09-08  Bruno Haible  <bruno@clisp.org>
64370
64371         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64372         length is > INT_MAX.
64373         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64374         more.
64375
64376 2004-09-08  Bruno Haible  <bruno@clisp.org>
64377
64378         * lib/stdint_.h: New file, taken from GNU clisp.
64379
64380 2004-09-08  Bruno Haible  <bruno@clisp.org>
64381             Oskar Liljeblad  <oskar@osk.mine.nu>
64382
64383         * modules/stdint: New file.
64384         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64385
64386 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64387
64388         Import from coreutils.
64389         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64390         strings on unbounded length.  alloca's performance benefits aren't
64391         that important here.
64392         (V_STRDUP): Remove.
64393         (parse_with_separator): New function, with most of the internals
64394         of the old parse_user_spec.  Allow user to omit both user and group,
64395         for compatibility with FreeBSD.
64396         Clone only the user name, not the entire spec.
64397         Do not set *uid, *gid unless entirely successful.
64398         Avoid memory leak in some failing cases.
64399         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64400         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64401         (parse_user_spec): Rewrite to use parse_with_separator.
64402
64403 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64404
64405         * modules/userspec: Don't depend on alloca.
64406
64407 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64408
64409         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64410
64411 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64412
64413         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64414         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64415         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64416
64417 2004-08-16  Simon Josefsson  <jas@extundo.com>
64418
64419         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64420         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64421         Add --dry-run for --import.
64422         Let user provided command line parameters override configure.ac
64423         settings.
64424
64425 2004-08-12  Simon Josefsson  <jas@extundo.com>
64426
64427         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64428         as discussed with Paul Eggert in threads rooted at
64429         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64430         and
64431         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64432         Before, the test was empty, and relied on ELIDE_CODE in source
64433         code.)
64434         (gl_PREREQ_GETOPT): New macro.
64435         (gl_GETOPT): Use them.
64436
64437 2004-08-12  Simon Josefsson  <jas@extundo.com>
64438
64439         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64440         * lib/getopt_.h: Renamed from getopt.h.
64441
64442 2004-08-12  Simon Josefsson  <jas@extundo.com>
64443
64444         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64445         Change default library name from libfoo to libgnu.
64446         Now, if you have a configure.ac that says:
64447                 gl_SOURCE_BASE(gl)
64448                 gl_M4_BASE(gl/m4)
64449                 gl_MODULES(error getopt etcetera)
64450                 gl_INIT
64451         you can import all you need by running:
64452                 ../gnulib/gnulib-tool --import
64453
64454         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64455         (Makefile.am): Rewrite, use logic from argz.
64456         (Include): Use <getopt.h> instead of "getopt.h".
64457
64458 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64459
64460         * modules/argp (Files): Add m4/unlocked-io.m4.
64461         (Depends-on): Add extensions.
64462
64463 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64464
64465         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64466         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64467         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64468         Check for program_invocation_name, program_invocation_short_name,
64469         flockfile, funlockfile, features.h, _getopt_long_only_r.
64470
64471 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64472
64473         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64474         its complicated substitute.
64475         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64476         and program_invocation_name.
64477         (__argp_basename) [!_LIBC]: Remove; the only use was
64478         replaced by its body.
64479         (__argp_short_program_name): Change condition from
64480         !defined __argp_short_program_name to
64481         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64482         to match argp-namefrob.h.
64483         (__argp_failure): Don't assume strerror_r returns char *.
64484         * lib/argp-parse.c (N_): Define unconditionally.
64485         (argp_default_options): Fill out initializers with 0 to avoid
64486         gcc warnings.
64487
64488 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64489
64490         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64491         getopt1.c.
64492
64493 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64494
64495         Merge from coreutils.
64496
64497         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64498
64499         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64500         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64501
64502 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         Merge from coreutils.
64505
64506         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64507         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64508         for Reliant Unix 5.43.
64509
64510         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64511         (union fooround): Use uintmax_t, not long int.
64512         The rest is a merge from libc:
64513         [defined _LIBC]: Include <shlib-compat.h>.
64514         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64515
64516         * lib/settime.c (settime): Recode to avoid warning with
64517         Sun Forte C 6U2.
64518
64519         * lib/strverscmp.c: Convert to UTF-8.
64520
64521 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64522
64523         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64524         m4/uintmax_t.m4.
64525
64526 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64527
64528         * modules/xalloc-die: New file.
64529         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64530
64531         * modules/md5 (Files): Add m4/uint32_t.m4.
64532         * modules/sha1: Renamed from modules/sha.
64533         (Files):
64534         Rename lib/sha.h to lib/sha1.h.
64535         Rename lib/sha.c to lib/sha1.c.
64536         Rename m4/sha.m4 to m4/sha1.m4.
64537         (lib_SOURCES): Likewise.
64538         (configure.ac): Rename gl_SHA to gl_SHA1.
64539         (Include): sha.h -> sha1.h.
64540
64541 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64542
64543         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64544         * m4/sha1.m4: Renamed from sha.m4.
64545         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64546
64547 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64548
64549         * lib/obstack.h (obstack_empty_p):
64550         Don't assume that chunk->contents is suitably aligned.
64551         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64552         Likewise. Problem reported by Benno in
64553         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64554
64555         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64556         readable.  This could be improved further but it'd take some work.
64557
64558 2004-08-08  Simon Josefsson  <jas@extundo.com>
64559
64560         * modules/xgethostname (Depends-on): Remove exit and error (not
64561         used).
64562
64563         * modules/getpass-gnu: Add getpass.h.
64564         (Depends-on): Add stdbool.
64565         * modules/getpass: Add getpass.h.
64566
64567 2004-08-08  Simon Josefsson  <jas@extundo.com>
64568
64569         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64570         Check getpass declaration.
64571
64572 2004-08-08  Simon Josefsson  <jas@extundo.com>
64573
64574         * lib/xgethostname.c: Don't include error.h (not used).
64575
64576         * lib/getpass.h: Add.
64577         * lib/getpass.c: Include getpass.h first.
64578
64579 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64580
64581         * lib/xalloc-die.c: New file.
64582         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64583         All uses removed.
64584         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64585         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64586         xalloc-die.c.
64587         (_, N_, xalloc_die): Move to xalloc-die.c.
64588         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64589         so that we needn't mess with xalloc_msg_memory_exhausted.
64590
64591         * lib/sha1.h: Renamed from sha.h.
64592         (SHA1_H): Renamed from _SHA_H.
64593         (sha1_ctx): Renamed from sha_ctx.
64594         (sha1_init_ctx): Renamed from sha_init_ctx.
64595         (sha1_process_block): Renamed from sha_process_block.
64596         (sha1_process_bytes): Renamed from sha_process_bytes.
64597         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64598         (sha1_read_ctx): Renamed from sha_read_ctx.
64599         (sha1_stream): Renamed from sha_stream.
64600         (sha1_buffer): Renamed from sha_buffer.
64601         * lib/sha1.c: Likewise; renamed from sha.c.
64602         Do not include <sys/types.h>.
64603         Include <stddef.h> rather than <stdlib.h>.
64604
64605 2004-08-08  Bruno Haible  <bruno@clisp.org>
64606
64607         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64608         FILESYSTEM_PREFIX_LEN.
64609         * lib/progreloc.c: Likewise.
64610         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64611
64612 2004-08-06  Simon Josefsson  <jas@extundo.com>
64613
64614         * modules/progname (Depends-on): Don't depend on stdbool.
64615
64616 2004-08-06  Simon Josefsson  <jas@extundo.com>
64617
64618         * modules/getsubopt: New file.
64619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64620         getsubopt.
64621
64622 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         More merge from coreutils.
64625
64626         * m4/utimens.m4, m4/utimecmp.m4: New files.
64627         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64628         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64629         prereq.m4, sha.m4: Import changes from coreutils.
64630
64631 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64632
64633         More merge from coreutils.
64634         * modules/raise, modules/readtokens0, modules/utimens:
64635         * modules/utimecmp, module/xnanosleep: New files.
64636         * modules/strftime: Add lib/strftime.h.
64637         Change include from <time.h> to "strftime.h".
64638         * modules/yesno: Add lib/yesno.h.
64639         * modules/backupfile: Remove lib/addext.c.
64640         * modules/euidaccess: Add stat-macros.h.
64641         * modules/canonicalize, modules/euidaccess,
64642         modules/filemode, modules/lchown, modules/makepath,
64643         modules/rmdir, modules/stat: Likewise.
64644
64645 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         Merge from tar.
64648         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64649         SIZE_MAX is a valid preprocessor constant.
64650         (__argp_basename): Change from "#ifndef _LIBC"
64651         to "#ifndef __argp_short_program_name", so that
64652         we don't compile these functions for tar.
64653
64654         More merges from coreutils.
64655         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64656         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64657         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64658         * lib/addext.c: Remove; no longer needed.
64659         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64660         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64661         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64662         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64663         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64664         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64665         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64666         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64667         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64668         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64669         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64670         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64671         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64672         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64673         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64674         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64675         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64676         Import changes from coreutils.
64677
64678 2004-08-05  Simon Josefsson  <jas@extundo.com>
64679
64680         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64681
64682 2004-08-05  Simon Josefsson  <jas@extundo.com>
64683
64684         * m4/getsubopt.m4: New file.
64685
64686 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64687
64688         Merge from coreutils.
64689
64690         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64691         * m4/getcwd-path-max.m4: New files.
64692
64693         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64694         FILESYSTEM_PREFIX_LEN ->
64695         FILE_SYSTEM_PREFIX_LEN.
64696         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64697         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64698         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64699         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64700
64701         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64702         prerequisite modules now handle the DOS stuff.
64703         Don't check for unistd.h.
64704
64705 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         Merge from coreutils.
64708
64709         * lib/.gdb-history: Remove; this doesn't belong here.
64710
64711         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64712         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64713         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64714         * lib/getcwd.c: New files.
64715
64716         * lib/dirname.h: Include <stdbool.h>.
64717         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64718         for consistency with POSIX terminology.  All uses changed.
64719         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64720         (strip_trailing_slashes): Use bool for booleans.
64721         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64722
64723         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64724         sometimes returns a positive errno value even when it succeeds.
64725         (print_errno_message) [!LIBC]: Fall back on strerror if
64726         __strerror_r fails.
64727
64728         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64729         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64730         (longest_relative_suffix): New function.
64731         (path_concat): Use it.  Assume first argument is not NULL.
64732         Port to DOS.  Omit redundant separators.
64733         Report an error instead of returning NULL.
64734         Use mempcpy instead of memcpy.
64735         (xpath_concat): Remove: not declared or used.
64736
64737         * lib/same.h: Include <stdbool.h>
64738         (same_name): Return bool, not int.
64739         * lib/same.c (same_name): Likewise.
64740         (errno): Don't declare; we assume C89 or better now.
64741
64742         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64743         if not already defined.
64744
64745         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64746         * lib/dup-safer.c (errno): Likewise.
64747
64748 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         Merge from coreutils.
64751         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64752         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64753         * modules/path-concat: Don't depend on strdup.
64754
64755 2004-08-03  Simon Josefsson  <jas@extundo.com>
64756
64757         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64758         * lib/progname.h: Don't include stdbool.h.
64759
64760 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64761
64762         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64763         * MODULES.html.sh (func_all_modules): Remove fatal.
64764
64765 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64766
64767         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64768
64769 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64770
64771         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64772         working.
64773
64774 2004-08-02  Simon Josefsson  <jas@extundo.com>
64775
64776         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64777         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64778         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64779
64780 2004-08-01  Simon Josefsson  <jas@extundo.com>
64781
64782         * lib/xgetdomainname.c: Include stdlib.h, for free().
64783
64784 2004-07-19  Bruno Haible  <bruno@clisp.org>
64785
64786         * MODULES.html.sh (func_all_modules): Add dummy.
64787
64788 2004-07-16  Simon Josefsson  <jas@extundo.com>
64789
64790         * modules/dummy: New file.
64791
64792 2004-07-16  Simon Josefsson  <jas@extundo.com>
64793
64794         * lib/dummy.c: New file.
64795
64796 2004-07-16  Bruno Haible  <bruno@clisp.org>
64797
64798         * lib/backupfile.h: Add extern "C" for C++.
64799         * lib/closeout.h: Likewise.
64800         * lib/copy-file.h: Likewise.
64801         * lib/findprog.h: Likewise.
64802         * lib/full-write.h: Likewise.
64803         * lib/pathname.h: Likewise.
64804         * lib/progname.h: Likewise.
64805         * lib/stpcpy.h: Likewise.
64806         * lib/stpncpy.h: Likewise.
64807         * lib/strcase.h: Likewise.
64808         * lib/strstr.h: Likewise.
64809         * lib/xalloc.h: Likewise.
64810
64811         * lib/mbswidth.h: Add extern "C" for C++.
64812         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64813
64814 2004-07-13  Robert Millan  <robertmh@gnu.org>
64815
64816         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64817
64818 2004-07-09  Simon Josefsson  <jas@extundo.com>
64819
64820         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64821         failed without this.)
64822
64823 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * modules/chown (Files): Add lib/fchown-stub.c, since
64826         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64827
64828 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64829
64830         * lib/fchown-stub.c: New file.
64831
64832 2004-06-24  Jim Meyering  <jim@meyering.net>
64833
64834         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64835
64836 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * modules/argz: Omit "#include".
64839
64840         * MODULES.html.sh (func_all_modules): Add calloc, to match
64841         2004-06-01 addition of calloc module.
64842
64843 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64844
64845         * m4/argz.m4: New file, which is autoupdated from libtool.
64846
64847 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64848
64849         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64850         libtool.
64851
64852 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         * config/srclist-update: Don't insist on "USA." before the
64855         close-comment, as libtool omits the period and puts the */ on a
64856         separate line.
64857         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64858         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64859
64860 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64861
64862         * modules/argz: New file.
64863         * MODULES.html.sh (func_all_modules): Add argz.
64864
64865 2004-06-12  Jim Meyering  <jim@meyering.net>
64866         and  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * modules/hash (Files): Add lib/xalloc.h.
64869         * modules/pipe (Depends-on): Add wait-process.
64870         * modules/stat (Depends-on): Add xalloc.
64871         * modules/userspec (Files): Add lib/userspec.h.
64872         * modules/xstrto
64873
64874         Upgrade from gettext-0.13.
64875         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64876         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64877         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64878
64879 2004-06-10  Jim Meyering  <jim@meyering.net>
64880
64881         * lib/calloc.c: New file.
64882
64883 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64884
64885         * lib/getdate.y (yylex): Allow space between sign and number.
64886         Problem reported by Dan Jacobson.
64887
64888 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         Merge from coreutils CVS.
64891
64892         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64893         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64894         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64895         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64896         xstrtol.m4: Fix copyright date and/or serial number.
64897
64898         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64899         See if we need an fchown replacement.
64900         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64901         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64902         and use the replacement function if we detect either defect.
64903
64904         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64905         gl_UTIMECMP.
64906
64907 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64908         and  Jim Meyering  <jim@meyering.net>
64909
64910         Merge from coreutils CVS.
64911
64912         * lib/stat-macros.h: New file, with contents from file-type.h
64913         and coreutils' system.h.
64914         * lib/file-type.c: Include "stat-macros.h".
64915         * lib/file-type.h (file_type): Move all macro definitions to new file,
64916         stat-macros.h.
64917
64918         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64919         Wrap old code with this conditional.
64920         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64921         function that does not dereference symlinks.
64922         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64923
64924         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64925         dependency problems.
64926         (xreadlink): Accept new arg SIZE, for efficiency.
64927         All decls and uses changed.
64928         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64929
64930         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64931         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64932
64933         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64934         sysexits.h.
64935
64936 2004-06-01  Jim Meyering  <jim@meyering.net>
64937
64938         * m4/calloc.m4: New file.
64939
64940 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64943         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64944         Also, fix a typo in a diagnostic.
64945
64946 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64947
64948         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64949         or AC_FUNC_REALLOC.
64950
64951 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64954         macros to be defined.
64955         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64956         the allocator returns NULL because the requested size is zero.
64957
64958 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64961         var.  Add comment explaining why libc still defines it.  This
64962         merges the following patch from glibc:
64963         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64964
64965 2004-05-20  Andreas Schwab  <schwab@suse.de>
64966
64967         * m4/free.m4: Replace free if it not known to work, not the other
64968         way round.
64969
64970 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64973         present in glibc since revision 1.1 of this file.
64974         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64975         obstack_alignment_mask, obstack_alloc, obstack_base,
64976         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64977         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64978         obstack_grow0, obstack_init, obstack_int_grow,
64979         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64980         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64981         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64982         nonexistent functions.
64983
64984 2004-05-18  Karl Berry  <karl@gnu.org>
64985
64986         * config/srclist.txt: break link for vasnprintf.c.
64987
64988 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         Port obstack to the AS/400, where pointers are 16 bytes wide and
64991         you cannot cast an integer to a valid pointer.  This patch is
64992         currently waiting to be integrated into glibc; see
64993         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64994
64995         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64996         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64997         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64998         (struct obstack): temp member is now a union of a pointer and
64999         an integer, instead of an integer.  All integer uses changed.
65000         This does not affect the physical layout of struct obstack,
65001         except on hosts (like the AS/400) where the size or alignment of
65002         void * is greater than that of ptrdiff_t.
65003         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
65004         __STDC__)]: Store temporary in pointer member of union, not
65005         integer member.
65006         * lib/obstack.c: Include <stddef.h>, for offsetof.
65007         (struct fooalign): Remove; it doesn't need a name.
65008         (union fooround): Change double to long double, and add void *.
65009         (DEFAULT_ALIGNMENT): Use offsetof to compute.
65010         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
65011         not a macro.  Hence the values are always int; so remove all
65012         casts-to-int in uses.
65013
65014 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65015
65016         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
65017         we can get this patch merged into glibc.
65018
65019 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65020             Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         * m4/argp: Depend on alloca.
65023
65024 2004-05-17  Derek R. Price  <derek@ximbiot.com>
65025             Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
65028         freecoding.
65029
65030 2004-05-17  Bruno Haible  <bruno@clisp.org>
65031
65032         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
65033         precision that consists of a '.' followed by an empty digit string.
65034         Patch by Tor Lillqvist <tml@iki.fi>.
65035
65036 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65037
65038         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
65039         for backward compatibility with older code.  We need our own
65040         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
65041         it under some other name, and our alloca.h will define it.
65042
65043 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65044             Derek Price  <derek@ximbiot.com>
65045
65046         * lib/alloca.c: Include <alloca.h>, to get our interface.
65047         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
65048         include <alloca.h> first.  Use C89 prototype for alloca; this
65049         requires including <stddef.h> for size_t.  Use extern "C" if C++.
65050         Use #elif for simplicity, since we can assume C89 now.
65051         Don't try to source the system alloca.h since it will not be found
65052         and to prevent recursively including its replacement.
65053         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
65054         * lib/regex.c: Likewise.
65055
65056 2004-05-16  Derek Price  <derek@ximbiot.com>
65057             Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         getline cleanup.  This changes the getndelim2 API: both order of
65060         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
65061         no delimiter).
65062
65063         * lib/getline.c: Don't include stddef.h or stdio.h, since our
65064         interface does that.
65065         (getline): Always use getdelim, so that we don't have two
65066         copies of this code.
65067         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
65068         if available.
65069         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
65070         (GETNDELIM2_MAXIMUM): New macro.
65071         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
65072         instead of the old practice of delim2==0.  All callers changed.
65073         Return -1 on overflow, instead of returning junk.
65074         Do not set *linesize unless allocation succeeds.
65075         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
65076         that we include sys/types.h.
65077         * lib/getnline.h: Likewise.
65078         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
65079         (getndelim2): Reorder arguments.
65080         * lib/getnline.c (getnline, getndelim):
65081         Don't discard the NMAX argument.
65082         (getnline): Invoke getndelim, to avoid code duplication.
65083         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
65084         of (size_t) -1 by callers of the getnline family.
65085
65086 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65087
65088         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
65089         Check for gettimeofday.
65090         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
65091         Check for settimeofday, stime.
65092
65093 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65094
65095         * lib/nanosleep.c (suspended): Change its type from int to
65096         sig_atomic_t volatile.
65097         (first_call): Make it private to rpl_nanosleep, and have it
65098         be zero initially as that's a bit faster.
65099         (my_usleep): Round up fractional times instead of truncating them,
65100         as this is the usual meaning for 'sleep'.
65101
65102         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
65103         doesn't work.
65104         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
65105         (ENOSYS): Define if not defined.
65106         (settime): Fall back on stime if it exists and settimeofday fails.
65107         But don't bother with fallbacks if a method fails with errno == EPERM.
65108
65109 2004-05-11  Jim Meyering  <jim@meyering.net>
65110
65111         Prior to this change, the save_cwd caller required read access to the
65112         current directory on most systems (ones with the fchdir function).
65113
65114         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
65115         fails, try write-only, and finally, resort to using xgetcwd.
65116
65117 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65118
65119         * lib/obstack.c, obstack.h: Import changes from libc.
65120
65121 2004-04-28  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
65124         also implicitly appends .exe to executables.
65125         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
65126         accepts Windows pathnames.
65127         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65128         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65129         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
65130         Treat Cygwin like Windows, since it now accepts Windows pathnames.
65131         Reported by Derek Robert Price <derek@ximbiot.com>.
65132
65133 2004-04-21  Karl Berry  <karl@gnu.org>
65134
65135         * config/srclist.txt (localcharset.c): break sync.
65136
65137 2004-04-20  Paul Eggert  <eggert@twinsun.com>
65138
65139         * m4/host-os.m4: Add a copyright notice.
65140
65141 2004-04-20  Jim Meyering  <jim@meyering.net>
65142
65143         Change UTILS_ to gl_ in AC_DEFINE'd names.
65144         Change utils_- and jm_-prefixed variables, too.
65145         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
65146         UTILS_FUNC_MKDIR_TRAILING_SLASH.
65147         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
65148
65149         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
65150         Don't emit trailing blanks.
65151         Also rename jm_-prefixed variables to have gl_ prefix.
65152
65153         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
65154         Also rename jm_-prefixed variables to have gl_ prefix.
65155
65156         * m4/jm-macros.m4: Reflect the renamings.
65157         * m4/prereq.m4: Likewise.
65158
65159 2004-04-20  Jim Meyering  <jim@meyering.net>
65160
65161         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
65162         memory.
65163
65164 2004-04-20  Jim Meyering  <jim@meyering.net>
65165             Bruno Haible  <bruno@clisp.org>
65166
65167         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
65168         memory when realloc fails.
65169
65170 2004-04-19  Jim Meyering  <jim@meyering.net>
65171
65172         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
65173         now that readutmp.c may call `free (0)'.
65174
65175 2004-04-19  Bruno Haible  <bruno@clisp.org>
65176
65177         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
65178         * m4/inttypes_h.m4: Likewise.
65179         * m4/stdint_h.m4: Likewise.
65180         * m4/intmax_t.m4: Likewise.
65181         * m4/uintmax_t.m4: Likewise.
65182
65183 2004-04-18  Jim Meyering  <jim@meyering.net>
65184
65185         * m4/prereq.m4: Don't forbid jm_ prefix.
65186
65187         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
65188         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
65189         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
65190         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
65191         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
65192         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
65193         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
65194         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
65195         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
65196         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
65197         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
65198         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
65199         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
65200         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
65201         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
65202         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
65203         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
65204         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
65205         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
65206
65207 2004-04-18  Jim Meyering  <jim@meyering.net>
65208
65209         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
65210         failure, don't leak memory and do call END_UTMP_ENT.
65211
65212 2004-04-16  Jim Meyering  <jim@meyering.net>
65213
65214         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
65215         coreutils' stat program.
65216         (gl_PREREQ): Don't require jm_PREREQ_STAT.
65217
65218 2004-04-11  Paul Eggert  <eggert@twinsun.com>
65219
65220         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
65221         C89.
65222         (CHAR_BIT): Remove, since we assume C89.
65223         Include <stdint.h> if available, as per current Autoconf CVS advice.
65224
65225 2004-03-31  Jim Meyering  <jim@meyering.net>
65226
65227         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
65228         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
65229         * m4/xalloc.m4: Likewise.
65230
65231 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65232
65233         Merge from coreutils.
65234
65235         * m4/inttostr.m4: New file.
65236         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
65237         Require AM_STDBOOL_H and gl_TIMESPEC instead.
65238         Require gl_CLOCK_TIME.
65239         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
65240
65241 2004-03-30  Paul Eggert  <eggert@twinsun.com>
65242
65243         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
65244         not bool, to be more consistent with Unix conventions.
65245         Suggested by Bruno Haible.
65246
65247         Merge from coreutils.
65248
65249         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
65250         * lib/umaxtostr.c: New files.
65251
65252         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
65253         the usual <time.h> dance.
65254         (get_date): Change signature to support fractional time stamps.
65255         All callers changed.
65256         * lib/getdate.y: Include "getdate.h" first, as we can now
65257         assume C89 and don't need to worry about 'const'.
65258         Similarly, include "unlocked-io.h" near start, not in middle.
65259         Include <limits.h>.
65260         (textint.value): Use long int rather than int.
65261         (textint.digits): Use size_t rather than int.
65262         (BILLION, LOG10_BILLION): New constants.
65263         (parser_control): New member rel_ns.  Members day_ordinal,
65264         time_zone, month, day, hour, minutes, rel_year, rel_month,
65265         rel_day, rel_hour, rel_minutes, rel_seconds
65266         are now long int, not int.  Member seconds is now struct timespec,
65267         not int.  New member timespec_seen.  Members dates_seen, days_seen,
65268         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
65269         not int.
65270         (%union.intval): Now long int, not int.
65271         New member timespec.
65272         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
65273         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
65274         (spec): Now is a timespec or an item list.
65275         (timespec, items): New nonterminals.
65276         (time, rel, relunit, number, get_date):
65277         Add support for fractional seconds.
65278         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
65279         (gmtime, localtime, mktime): Remove decls; not needed with C89.
65280         (to_hour): First arg is now long int, not int.
65281         (to_year): Returns long int, not int.
65282         Don't treat year -70 like 70.
65283         (tm_diff): Returns long int, not int.
65284         (lookup_word): Use bool instead of int when appropriate.
65285         (yylex): Use size_t for count, not int.
65286         Detect overflow when parsing large integer constants.
65287         Add support for fractions.
65288         (get_date): Make pointers 'const' if possible.
65289         Use more-portable code to detect integer overflow.
65290         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65291         Don't use ctime; it's not reliable if the year has >4 digits.
65292
65293         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65294         This is for compatibility with BSD.
65295
65296         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65297         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65298         From coreutils' system.h.
65299
65300         * lib/userspec.c: Don't include "posixver.h".
65301         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65302         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65303         compatible extension.  Simplify code by removing a boolean int
65304         that was always nonzero if a string was nonnull.
65305
65306 2004-03-30  Jim Meyering  <jim@meyering.net>
65307
65308         Merge from coreutils.
65309
65310         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65311         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65312         on some systems one must include <grp.h> before it.
65313         Reported by Christian Krackowizer.
65314
65315 2004-03-30  Jim Meyering  <jim@meyering.net>
65316
65317         Merge from coreutils.
65318
65319         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65320
65321         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65322         an empty input stream.
65323
65324         * lib/readtokens.c: Include <stdbool.h>.
65325         (readtoken): Use `size_t' rather than int/long.
65326         All callers adjusted.
65327         Use `bool' rather than `int' where appropriate.
65328         Use memset rather than an explicit loop.
65329         Use x2nrealloc rather than xrealloc.
65330         Allow the use of `\0' as a delimiter.
65331         (readtokens): Likewise.
65332         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65333
65334 2004-03-30  Jim Meyering  <jim@meyering.net>
65335
65336         * m4/realloc.m4: Remove file, since now it does no more than
65337         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65338         the `configure.ac' section of module/realloc.
65339         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65340
65341 2004-03-30  Bruno Haible  <bruno@clisp.org>
65342
65343         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65344         nonnull.
65345
65346 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65347
65348         Merge changes to getloadavg.c from coreutils and Emacs.
65349
65350         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65351         Define to an expression, not to the empty string.
65352         Include cloexec.h and xalloc.h.
65353         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65354         Use set_cloexec_flag rather than rolling our own.
65355         * lib/cloexec.c, lib/cloexec.h: New files.
65356
65357 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65358
65359         * m4/cloexec.m4: New file.
65360
65361 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65362
65363         * lib/getopt.h: Sync with libc CVS.
65364
65365 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65366             Bruno Haible  <bruno@clisp.org>
65367
65368         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65369         mbswidth.
65370
65371 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65372             Bruno Haible  <bruno@clisp.org>
65373
65374         * lib/mbswidth.h: Include <wchar.h> only if
65375         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65376         <wchar.h>.
65377         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65378
65379 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65380
65381         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65382         Sync with libc CVS.
65383         * lib/getopt_int.h: New file, also synced from libc.
65384
65385 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65386
65387         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65388         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65389         Bring back getopt.c, getopt.h, getopt1.c.
65390
65391 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65392
65393         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65394         All uses changed.  Check for sa_sigaction member; this fixes
65395         a bug first reported by Jason Andrade in
65396         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65397
65398 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65399
65400         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65401         '#if' expressions.  Unlike the code it replaces, it does not
65402         depend on (defined _SC_PAGESIZE).  However, it does depend on
65403         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65404         first reported by Jason Andrade in
65405         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65406
65407 2004-02-25  Simon Josefsson  <jas@extundo.com>
65408
65409         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65410
65411 2004-02-25  Simon Josefsson  <jas@extundo.com>
65412
65413         * lib/strdup.h: New file.
65414         * lib/strdup.c: Include it.
65415         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65416         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65417
65418 2004-02-23  Karl Berry  <karl@gnu.org>
65419
65420         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65421         (from fencepost.gnu.org:/gd/gnuorg).
65422
65423 2004-02-23  Karl Berry  <karl@gnu.org>
65424
65425         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65426         * config/srclist.txt: add maintain/standards documents.
65427
65428 2004-02-18  Bruno Haible  <bruno@clisp.org>
65429
65430         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65431         Reported by Derek Robert Price <derek@ximbiot.com>.
65432
65433 2004-02-16  Karl Berry  <karl@gnu.org>
65434
65435         * config/mkinstalldirs, install-sh: update from automake.
65436
65437 2004-02-06  Karl Berry  <karl@gnu.org>
65438
65439         * m4/po.m4: update from gettext 0.14.1.
65440
65441 2004-02-06  Karl Berry  <karl@gnu.org>
65442
65443         * lib/config.charset: update from gettext 0.14.1.
65444
65445 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65446
65447         Add comments and code, prompted by suggestions from Bruno Haible
65448         for sh-quote.
65449         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65450         describing the enum quoting_style values.
65451         * lib/quotearg.c (quotearg_alloc): New function.
65452         (quotearg_buffer_restyled): Treat lone { and } as special.
65453         Treat = as special.  Work around bug with older shells
65454         that "see" a '\' that is really the 2nd byte of a multibyte char.
65455         Quote empty string with shell_quoting_style.
65456
65457 2004-02-03  Bruno Haible  <bruno@clisp.org>
65458
65459         * m4/pipe.m4: New file, from GNU gettext.
65460
65461 2004-02-03  Bruno Haible  <bruno@clisp.org>
65462
65463         * lib/pipe.h: New file, from GNU gettext.
65464         * lib/pipe.c: New file, from GNU gettext.
65465
65466 2004-01-27  Bruno Haible  <bruno@clisp.org>
65467
65468         * m4/execute.m4: New file, from GNU gettext.
65469
65470 2004-01-27  Bruno Haible  <bruno@clisp.org>
65471
65472         * lib/execute.h: New file, from GNU gettext.
65473         * lib/execute.c: New file, from GNU gettext.
65474         * lib/w32spawn.h: New file, from GNU gettext.
65475
65476 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65477
65478         Merge from diffutils.
65479
65480         * lib/file-type.c (file_type): Add typed memory objects.
65481         * lib/file-type.h (S_TYPEISTMO): New macro.
65482
65483         * lib/c-stack.h (c_stack_action): Remove argv argument.
65484         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65485         (die): Don't calculate message unless segv_action returns.
65486         (get_stack_location, min_address_from_argv, max_address_from_argv,
65487         volatile stack_base, volatile_stack_size): Remove.
65488         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65489         that every segmentation violation is a stack overflow.  (Ouch!)
65490         See Debian bug 136249 (still outstanding) for more info about why
65491         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65492
65493 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65494
65495         Exit-status fix from coreutils.
65496
65497         Use exit_failure consistently in place of EXIT_FAILURE,
65498         so that program exit statuses are consistent on failure.
65499
65500         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65501         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65502         * lib/argmatch.h: Comment fix to match the above.
65503         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65504         Now a macro referring to exit_failure, instead of a separate
65505         variable.  Include "exitfail.h" to get it.
65506         * lib/xstrtol.h: Include "exitfail.h".
65507         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65508
65509         * lib/long-options.c (parse_long_options): Use prototype
65510         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65511         for clarity.
65512
65513 2004-01-21  Jim Meyering  <jim@meyering.net>
65514
65515         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65516         so as not to conflict with a different-sized __mktime_internal
65517         function in GNU libc.
65518         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65519         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65520
65521 2004-01-20  Karl Berry  <karl@gnu.org>
65522
65523         * config/config.guess: update from config.
65524
65525         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65526
65527 2004-01-20  Bruno Haible  <bruno@clisp.org>
65528
65529         Safer stack allocation.
65530         * lib/setenv.c: Include allocsa.h.
65531         (alloca): Remove fallback definition.
65532         (freea): Remove macro.
65533         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65534         instead of freea.
65535
65536 2004-01-20  Bruno Haible  <bruno@clisp.org>
65537
65538         * m4/eealloc.m4: New file, from GNU gettext.
65539
65540 2004-01-20  Bruno Haible  <bruno@clisp.org>
65541
65542         * m4/allocsa.m4: New file, from GNU gettext.
65543
65544 2004-01-20  Bruno Haible  <bruno@clisp.org>
65545
65546         * lib/xallocsa.h: New file, from GNU gettext.
65547         * lib/xallocsa.c: New file, from GNU gettext.
65548
65549 2004-01-20  Bruno Haible  <bruno@clisp.org>
65550
65551         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65552
65553 2004-01-20  Bruno Haible  <bruno@clisp.org>
65554
65555         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65556         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65557         specially.
65558
65559 2004-01-20  Bruno Haible  <bruno@clisp.org>
65560
65561         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65562         patch.
65563
65564 2004-01-20  Bruno Haible  <bruno@clisp.org>
65565
65566         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65567
65568 2004-01-20  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/eealloc.h: New file.
65571
65572 2004-01-20  Bruno Haible  <bruno@clisp.org>
65573
65574         * lib/binary-io.h: Avoid warnings on Cygwin.
65575
65576 2004-01-20  Bruno Haible  <bruno@clisp.org>
65577
65578         * lib/allocsa.h: New file, from GNU gettext.
65579         * lib/allocsa.c: New file, from GNU gettext.
65580
65581 2004-01-18  Karl Berry  <karl@gnu.org>
65582
65583         * doc/gpl.texi, doc/lgpl.texi: new files.
65584
65585 2004-01-18  Karl Berry  <karl@gnu.org>
65586
65587         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65588         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65589
65590 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65591
65592         Merge from coreutils.
65593
65594         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65595         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65596         (gl_DEFAULT_POSIX2_VERSION): Move
65597         the documentation from 'configure' into 'config.hin',
65598         so that 'configure --help' isn't burdened by it and
65599         we don't have to worry about its formatting there.
65600         Reword the documentation so that it's more succinct
65601         and can be run together into a single paragraph.
65602         * m4/same.m4 (gl_SAME): Check for pathconf.
65603
65604 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65605
65606         Merge from coreutils.
65607
65608         * lib/posixver.c: Include posixver.h.
65609
65610         * lib/same.c: Include <stdbool.h>, <limits.h>.
65611         (_POSIX_NAME_MAX): Define if not defined.
65612         (MIN): New macro.
65613         (same_name): If file names are silently truncated, report
65614         that the file names are the same if they are the same after
65615         the silent truncation.
65616
65617         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65618         conversion function.
65619         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65620         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65621         longer needed.
65622
65623 2004-01-15  Jim Meyering  <jim@meyering.net>
65624
65625         Merge from coreutils.
65626
65627         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65628         if no library is required.
65629         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65630         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65631         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65632         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65633         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65634         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65635         value, $ac_cv_search_crypt, if it's "none required".
65636         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65637         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65638         not gl_FUNC_GETLOADAVG.
65639         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65640         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65641
65642 2004-01-15  Jim Meyering  <jim@meyering.net>
65643
65644         Merge from coreutils.
65645
65646         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65647         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65648         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65649
65650         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65651         optional configure-time default.
65652
65653         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65654
65655         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65656
65657 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65658
65659         Merge from coreutils.
65660
65661         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65662         value, $ac_cv_search_nanosleep, if it's "none required".
65663
65664 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65665
65666         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65667         with like-named macro in fnmatch.c.
65668         (EXT): Use an internal constant instead.
65669
65670         Merge fnmatch patches from glibc.
65671         * lib/fnmatch.c (mbsinit): Remove define.
65672         Add libc_hidden_ver (__fnmatch, fnmatch).
65673         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65674         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65675
65676 2004-01-14  Karl Berry  <karl@gnu.org>
65677
65678         * config/install-sh: update from automake.
65679
65680 2004-01-13  Karl Berry  <karl@gnu.org>
65681
65682         * config/install-sh: update from automake.
65683
65684 2004-01-09  Karl Berry  <karl@gnu.org>
65685
65686         * config/install-sh: update from automake.
65687
65688 2004-01-05  Karl Berry  <karl@gnu.org>
65689
65690         * config/config.{sub,guess}: update from config.
65691
65692 2003-12-31  Karl Berry  <karl@gnu.org>
65693
65694         * config/depcomp: update from automake.
65695
65696 2003-12-14  Karl Berry  <karl@gnu.org>
65697
65698         * lib/config.charset: update from gettext-runtime.
65699
65700 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65701
65702         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65703         Bug reported by Alfred M. Szmidt.
65704
65705 2003-12-03  Bruno Haible  <bruno@clisp.org>
65706
65707         * m4/gettext.m4: Upgrade from gettext-0.13.
65708         * m4/po.m4: Upgrade from gettext-0.13.
65709         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65710         * m4/intmax.m4: New file, from gettext-0.13.
65711         * m4/printf-posix.m4: New file, from gettext-0.13.
65712
65713 2003-11-29  Karl Berry  <karl@gnu.org>
65714
65715         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65716
65717 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65718             Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/printf-parse.h: Don't include sys/types.h.
65721         (ARG_NONE): New macro.
65722         (char_directive): Change type of *arg_index fields to size_t.
65723         * lib/printf-parse.c: Don't include sys/types.h.
65724         (SSIZE_MAX): Remove macro.
65725         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65726         Remove unnecessary overflow check.
65727         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65728         fields.
65729
65730 2003-11-25  Bruno Haible  <bruno@clisp.org>
65731
65732         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65733
65734 2003-11-25  Bruno Haible  <bruno@clisp.org>
65735
65736         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65737         gt_TYPE_SSIZE_T.
65738
65739 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65740
65741         * modules/alloca: Remove dependency on xalloc.
65742
65743 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65744
65745         * lib/alloca.c: Remove dependency on xalloc module.
65746         (xalloc_die): Remove.
65747         (memory_full) [!defined emacs]: New macro.
65748         [!defined emacs]: Don't include xalloc.h.
65749         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65750         address arithmetic overflows.  Change datatypes a bit to avoid
65751         unnecessary casts.
65752
65753 2003-11-22  Jim Meyering  <jim@meyering.net>
65754
65755         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65756         s/size/size_t/.
65757
65758 2003-11-21  Karl Berry  <karl@gnu.org>
65759
65760         * config/config.{sub,guess}: update from config.
65761
65762 2003-11-18  Karl Berry  <karl@gnu.org>
65763
65764         * config/config.{sub,guess}: update from config.
65765
65766         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65767
65768 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65769
65770         * README: Mention that S+T cannot overflow if S is the size of
65771         an existing object and T is sufficiently small.
65772
65773 2003-11-17  Jim Meyering  <jim@meyering.net>
65774
65775         On systems without utime and without a utimes function capable of
65776         dealing with a NULL struct utimbuf* argument, this utime replacement
65777         could -- in unusual circumstances -- leak a file descriptor.
65778         * lib/utime.c: Include <unistd.h> and <errno.h>.
65779         (utime_null): Be sure to close `fd' and to preserve errno.
65780         Reported by Geoff Collyer via Arnold Robbins.
65781
65782 2003-11-17  Bruno Haible  <bruno@clisp.org>
65783
65784         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65785         (Depends-on): Add xsize.
65786
65787 2003-11-17  Bruno Haible  <bruno@clisp.org>
65788
65789         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65790
65791 2003-11-17  Bruno Haible  <bruno@clisp.org>
65792
65793         * lib/vasnprintf.c (alloca): Remove fallback definition.
65794         (freea): Remove definition.
65795         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65796         Reported by Paul Eggert.
65797
65798 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65799             Bruno Haible  <bruno@clisp.org>
65800
65801         Protect against address arithmetic overflow.
65802         * lib/printf-args.h: Include stddef.h.
65803         (arguments): Change type of field 'count' to size_t.
65804         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65805         'unsigned int' where appropriate.
65806         * lib/printf-parse.h: Include sys/types.h.
65807         (char_directive): Change type of *arg_index fields to ssize_t.
65808         (char_directives): Change type of fields 'count', max_*_length to
65809         size_t.
65810         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65811         (SSIZE_MAX): Define fallback value.
65812         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65813         instead of 'int' where appropriate. Check a_allocated, d_allocated
65814         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65815         * lib/vasnprintf.c: Include xsize.h.
65816         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65817         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65818         overflow. Avoid wraparound when converting a width or precision from
65819         decimal to binary.
65820
65821 2003-11-16  Bruno Haible  <bruno@clisp.org>
65822
65823         Update from GNU gettext.
65824         * lib/printf-parse.c: Generalize to it can be compiled for wide
65825         strings.
65826         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65827         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65828         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65829         SNPRINTF): New macros.
65830         Don't include <alloca.h> if the file is used inside libintl.
65831         (local_wcslen): New function, for Solaris 2.5.1.
65832         (VASNPRINTF): Use it instead of wcslen.
65833
65834 2003-11-16  Bruno Haible  <bruno@clisp.org>
65835
65836         * lib/xsize.h (xmax): New function.
65837         (xsum, xsum3, xsum4): Declare as "pure" functions.
65838
65839 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65840
65841         * modules/xalloc (Files): Undo latest change, since xalloc.h
65842         no longer needs SIZE_MAX or PTRDIFF_MAX.
65843
65844 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65845
65846         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65847         gl_PTRDIFF_MAX.
65848
65849 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65850
65851         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65852         "return", to pacify some unknown compiler.  Problem reported
65853         by Joerg Schilling.
65854
65855 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65856
65857         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65858         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65859         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65860         heuristic is just as accurate as far as we know, and it removes a
65861         dependency on size_max.m4 and ptrdiff_max.m4.
65862
65863 2003-11-11  Bruno Haible  <bruno@clisp.org>
65864
65865         * modules/xsize (Files): Add m4/size_max.m4.
65866         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65867
65868 2003-11-11  Bruno Haible  <bruno@clisp.org>
65869
65870         * m4/size_max.m4: New file.
65871         * m4/ptrdiff_max.m4: New file.
65872         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65873         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65874         (gl_XALLOC): Invoke it.
65875
65876 2003-11-11  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65879         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65880         defined.
65881
65882 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65883
65884         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65885         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65886         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65887         From Bruno Haible.
65888         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65889         not (size_t) -1, since it's defined here.
65890
65891 2003-11-09  Karl Berry  <karl@gnu.org>
65892
65893         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65894
65895 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65896
65897         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65898         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65899         Reject sizes of exactly SIZE_MAX bytes.
65900         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65901         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65902
65903 2003-11-05  Bruno Haible  <bruno@clisp.org>
65904
65905         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65906         SIZE_MAX defined in <limits.h> on Solaris.
65907
65908 2003-11-04  Jim Meyering  <jim@meyering.net>
65909
65910         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65911         variable names, rather than @VAR@.
65912         * modules/poll: Likewise.
65913
65914 2003-11-04  Bruno Haible  <bruno@clisp.org>
65915
65916         * modules/xsize: New file.
65917         * modules/linebreak: Depend on xsize.
65918         * MODULES.html.sh (func_all_modules): Add xsize.
65919
65920 2003-11-04  Bruno Haible  <bruno@clisp.org>
65921
65922         * m4/xsize.m4: New file.
65923
65924 2003-11-04  Bruno Haible  <bruno@clisp.org>
65925
65926         * lib/xsize.h: New file.
65927         * lib/linebreak.c: Include xsize.h.
65928         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65929         argument for overflow.
65930         Suggested by Paul Eggert.
65931
65932 2003-11-03  Karl Berry  <karl@gnu.org>
65933
65934         * config/config.{guess,sub}: update from config.
65935
65936 2003-11-03  Jim Meyering  <jim@meyering.net>
65937
65938         * modules/userspec (lib_SOURCES): Add userspec.h.
65939         (Include): Add "userspec.h".
65940         Improve description.
65941
65942 2003-11-03  Jim Meyering  <jim@meyering.net>
65943
65944         * lib/userspec.c: Include "userspec.h".
65945         * lib/userspec.h: New file.
65946
65947 2003-11-03  Bruno Haible  <bruno@clisp.org>
65948
65949         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65950
65951 2003-11-03  Bruno Haible  <bruno@clisp.org>
65952
65953         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65954         available, to avoid (extremely rare) race condition.
65955         Suggested by Paul Eggert.
65956
65957 2003-11-02  Karl Berry  <karl@gnu.org>
65958
65959         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65960
65961 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65962
65963         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65964         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65965         (read_filesystem_list): Set and use me_type_malloced.
65966         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65967         whatever the type happens to be), for brevity and consistency.
65968         Check for size calculation overflow on Alphas running OSF/1.
65969
65970 2003-10-31  Jim Meyering  <jim@meyering.net>
65971
65972         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65973
65974         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65975
65976 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65977             Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65980         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65981
65982 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65985         netbsd*-gnu*.  Suggested by Robert Millan.
65986
65987 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65988
65989         * modules/group-member: Depend on stdbool.
65990
65991 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65992
65993         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65994
65995 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65996
65997         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65998         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65999         after the 'gnu' in these cases.  This fixes some bugs in the
66000         previous change, and is based on suggestions by Robert Millan.
66001
66002 2003-10-29  Paul Eggert  <eggert@twinsun.com>
66003
66004         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
66005         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
66006         no longer needed.
66007         * lib/quotearg.c (quotearg_n_options): Use it.
66008         * lib/group-member.c: Include <stdbool.h>.
66009         (free_group_info): Arg is now const *; don't free arg.
66010         (get_group_info): Now returns bool and accepts struct group_info *,
66011         rather than returning a malloc'ed struct group_info *.
66012         All uses changed.  Check for overflow in internal size calculation.
66013
66014         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
66015         rather than xmalloc/xrealloc.
66016         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
66017         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
66018         conformance bug: the old code used a pointer after freeing the
66019         storage that it addressed.
66020         * lib/hash.c (hash_initialize): Simplify the code by using
66021         xalloc_oversized rather than doing it by hand.
66022         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
66023         the buffer preserved.  Use free and xmalloc instead.
66024         * lib/quotearg.c (quotearg_n_options): Likewise.
66025         Use a simpler test for size overflow.  Don't use xalloc_oversized
66026         because unsigned int might be wider than size_t (!); this suggests
66027         that we should switch from unsigned int to size_t for slot numbers.
66028
66029 2003-10-28  Paul Eggert  <eggert@twinsun.com>
66030
66031         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
66032         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
66033         NetBSD kernels.  Requested by Richard Stallman.
66034
66035 2003-10-27  Paul Eggert  <eggert@twinsun.com>
66036
66037         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
66038         to allocate the returned structure.  Do not allocate a subarray,
66039         as x2nrealloc will do that.
66040         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
66041         instead of xnrealloc.
66042         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
66043
66044 2003-10-27  Bruno Haible  <bruno@clisp.org>
66045
66046         * lib/stdbool_.h: Better support for BeOS.
66047
66048 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66049
66050         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
66051         now uses inline.
66052
66053 2003-10-26  Paul Eggert  <eggert@twinsun.com>
66054
66055         * lib/xalloc.h (xalloc_oversized): New static inline function, for
66056         callers that want to do their own size-overflow checking.  Include
66057         <stdbool.h>, since xalloc_oversized returns bool.
66058         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
66059         to use xalloc_oversized.
66060
66061         Add two functions x2realloc, x2nrealloc, for programs that grow
66062         arrays dynamically by doubling their sizes.
66063         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
66064         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
66065         New functions.
66066
66067         Port to C99 semantics for 'inline' of external functions.
66068         Bug reported by Bruno Haible.
66069         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
66070         with the old contents of xnmalloc.
66071         (xnmalloc, xmalloc): Use it.
66072         (xnrealloc_inline): New static inline function,
66073         with the old contents of xnrealloc.
66074         (xnrealloc, xrealloc): Use it.
66075
66076         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
66077         that.
66078
66079 2003-10-26  Karl Berry  <karl@gnu.org>
66080
66081         * config/srclist.txt (COPYING.DOC): no longer available from
66082         /gd/gnuorg; don't know where the ultimate source is.
66083
66084 2003-10-25  Paul Eggert  <eggert@twinsun.com>
66085
66086         Fix several address-calculation bugs in the hash modules,
66087         plus some minor code cleanup.
66088
66089         * lib/hash.h: Include <stdbool.h>, for bool.
66090         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
66091         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
66092         hash_get_n_entries, hash_get_max_bucket_length,
66093         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
66094         hash_rehash): Use size_t rather than unsigned.
66095         * lib/hash.c (struct hash_table, hash_get_n_buckets,
66096         hash_get_n_buckets_used, hash_get_n_entries,
66097         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
66098         hash_get_entries, hash_do_for_each, hash_string, is_prime,
66099         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
66100         Likewise.
66101         (SIZE_MAX): Define if not defined.
66102         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
66103         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
66104         hash_print):
66105         Use const * when possible.
66106         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
66107         (check_tuning): Fix bug: if tuning parameters were very close to
66108         0 or 1, rounding errors could have caused subscript violations.
66109         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
66110         (hash_initialize): Add 'fail:' label
66111         to free table and return NULL, and use it to simplify code.
66112         Use calloc rather than clearing the storage ourself.
66113         (hash_initialize, hash_rehash): Check for arithmetic overflow in
66114         buffer size calculations.
66115         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
66116         Include <stddef.h>, for size_t.
66117         * lib/hash-pjw.c (hash_pjw): Likewise.
66118         Switch to method described by Bruno Haible.
66119         Include <limits.h>, for CHAR_BIT.
66120         (SIZE_BITS): New macro.
66121
66122 2003-10-23  Paul Eggert  <eggert@twinsun.com>
66123
66124         * m4/getline.m4 (AM_FUNC_GETLINE):
66125         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
66126         hosts.  Problem reported by Derek Robert Price in
66127         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
66128         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
66129         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
66130
66131 2003-10-21  Paul Eggert  <eggert@twinsun.com>
66132
66133         * lib/getndelim2.c (getndelim2): When size calculation overflows,
66134         ceiling the allocation at NMAX bytes rather than silently
66135         discarding input bytes before NMAX is reached.  This makes
66136         a difference only if NMAX exceeds SIZE_MAX / 2.
66137
66138         * lib/obstack.c: Merge from glibc.
66139         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
66140         Add libc_hidden_def (_obstack_newchunk).
66141         (_obstack_free) [! defined _LIBC]: Remove.
66142         [defined _LIBC]: Make a strong alias from obstack_free, rather than
66143         a clone of the function body.
66144         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
66145         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
66146
66147         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
66148         glibc.
66149         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
66150         arg to memcpy.
66151
66152         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
66153         (obstack_ptr_grow_fast, obstack_int_grow_fast):
66154         Don't use lvalue casts, as GCC plans to remove support for them
66155         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
66156         was also present in the non-GCC version, indicating that this
66157         code had always been buggy and had never been widely used.
66158         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
66159         Use the fast variant of each macro, rather than copying the
66160         definiens of the fast variant; that way, we'll be more likely to
66161         catch future bugs in the fast variants.
66162
66163 2003-10-20  Bruno Haible  <bruno@clisp.org>
66164
66165         * modules/wait-process: New file.
66166         * MODULES.html.sh (func_all_modules): Add wait-process.
66167
66168 2003-10-20  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/wait-process.m4: New file.
66171
66172 2003-10-20  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/wait-process.h: New file, from GNU gettext.
66175         * lib/wait-process.c: New file, from GNU gettext.
66176
66177 2003-10-19  Jim Meyering  <jim@meyering.net>
66178
66179         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
66180         HPUX 10.20.
66181
66182 2003-10-18  Karl Berry  <karl@gnu.org>
66183
66184         * config/config.guess: update from config.
66185
66186 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66187
66188         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
66189         (getgroups): First arg is int, not size_t.
66190         Don't let 'free' mangle errno.
66191
66192 2003-10-16  Paul Eggert  <eggert@twinsun.com>
66193
66194         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
66195
66196 2003-10-16  Karl Berry  <karl@gnu.org>
66197
66198         * config/config.{guess,sub}: update from config.
66199
66200 2003-10-16  Jim Meyering  <jim@meyering.net>
66201
66202         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
66203         memcpy.
66204
66205 2003-10-15  Paul Eggert  <eggert@twinsun.com>
66206
66207         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
66208         (SIZE_MAX): Remove.
66209         (new_exclude, add_exclude_file): Initial size no longer needs to
66210         be a power of 2.
66211         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
66212         our own address arithmetic overflow checking.
66213
66214         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
66215         (fnmatch): Do not alloca more than 2000 wide characters;
66216         instead, use malloc for large buffers.
66217         Check for address arithmetic overflow, and return -1
66218         with errno set to ENOMEM in that case.
66219         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
66220         (NEW_PATTERN): Do not alloca more than 8000 bytes;
66221         instead, return -1.  Check for address arithmetic overflow.
66222
66223 2003-10-14  Paul Eggert  <eggert@twinsun.com>
66224
66225         Handle invalid suffixes and overflow independently, so that
66226         callers can treat them independently as needed.  Fix some bugs in
66227         suffix handling, e.g., "100k@" was not diagnosed as an invalid
66228         suffix for a human-readable blocksize.  The major caller-visible
66229         change is the addition of a new
66230         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
66231         that both overflow and suffix chars were found.
66232
66233         * lib/human.c (humblock): Don't check separately for invalid suffix
66234         char; that is xstrtoumax's job (now that its bug is fixed).
66235         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
66236         INTMAX_MAX]: New macros.
66237         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
66238         TYPE_MAXIMUM): New macros.
66239         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
66240         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
66241         if overflow occurs, as it's what __strtol does and it's more useful
66242         in practice.
66243         (__xstrtol): If __strtol reports some error other than ERANGE,
66244         reflect it to the caller as LONGINT_INVALID.  If it reports
66245         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
66246         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
66247         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
66248         value.
66249         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
66250         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
66251         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
66252         [defined UINTMAX_MAX]: New macros.
66253
66254 2003-10-14  Bruno Haible  <bruno@clisp.org>
66255
66256         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
66257
66258 2003-10-14  Bruno Haible  <bruno@clisp.org>
66259
66260         * m4/sig_atomic_t: New file, from GNU gettext.
66261         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
66262
66263 2003-10-14  Bruno Haible  <bruno@clisp.org>
66264
66265         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
66266         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
66267         Also use volatile where needed.
66268
66269 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66270
66271         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
66272         Change maintainer from Bruno Haible to 'all'.
66273
66274 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66275
66276         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
66277
66278 2003-10-12  Paul Eggert  <eggert@twinsun.com>
66279
66280         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66281         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66282         and define in terms of the other primitives.
66283         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66284         (SIZE_MAX): Define if not already defined.
66285         (array_size_overflow): New function.
66286         (xalloc_die): Abort instead of exiting if 'error' returns.
66287         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66288         (xmalloc, xrealloc): Use them.
66289         (xcalloc): Check for address arithmetic overflow.
66290         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66291         a bit faster than strcpy.
66292
66293 2003-10-10  Simon Josefsson  <jas@extundo.com>
66294
66295         * modules/argp (Depends-on): Add restrict and strcase.
66296
66297 2003-10-10  Simon Josefsson  <jas@extundo.com>
66298
66299         * m4/argp.m4: Add AC_C_INLINE.
66300
66301 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66302
66303         Merge getpass from libc, plus a few fixes.
66304
66305         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66306         Include <stdbool.h>.
66307         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66308         __fsetlocking to empty.
66309         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66310         do include <bits/libc-lock.h>.
66311         Do not include <fcntl.h>; not needed.
66312         [_LIBC]: Include <wchar.h>.
66313         (NOTCANCEL_MODE): New macro.
66314         (flockfile, funlockfile) [_LIBC]: New macros.
66315         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66316         [!_LIBC]: New macros.
66317         (call_fclose): New function.
66318         (getpass): Use it.  Save tty stream separately; this simplifies the
66319         code and makes it more reliable if stdin happens to equal stdout.
66320         Invoke __fsetlocking on tty.
66321         Handle thread cancellation if needed.
66322         Namespace cleanup (use __tcgetattr, __getline).
66323         Use bool for Booleans.
66324         [USE_IN_LIBIO]: Handle wide streams.
66325         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66326         stream might go where.
66327
66328         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66329         doesn't have to include <stdio.h> before us.
66330         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66331         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66332         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66333         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66334         if not declared, so that we can use getpass.c code from libc without
66335         rewriting it.
66336         (flockfile, ftrylockfile, funlockfile): New macros.
66337
66338 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66339
66340         * modules/getpass: Depend on stdbool.
66341
66342 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66343
66344         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66345
66346 2003-10-07  Karl Berry  <karl@gnu.org>
66347
66348         * config/config.{guess,sub}: update from config.
66349
66350 2003-10-06  Jim Meyering  <jim@meyering.net>
66351             Bruno Haible  <bruno@clisp.org>
66352
66353         This lets translators provide better translations for the
66354         "Written by ..." part of --version output.
66355         * lib/version-etc.h: Include stdarg.h.
66356         (version_etc_copyright): Declare as readonly.
66357         (version_etc): Make this function variadic with a NULL-terminated list
66358         of author name strings.
66359         (version_etc_va): New declaration.
66360         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66361         (version_etc_copyright): Declare as readonly.
66362         (version_etc_va): New function. Provide a different translatable string
66363         for each possible number of authors < 10. Abbreviate when there are 10
66364         authors or more.
66365         (version_etc): Make this function variadic. Call version_etc_va.
66366         Suggestion from Gary V. Vaughan.
66367
66368         * lib/long-options.h (parse_long_options): Change prototype: the
66369         authors string is moved to the end and becomes variadic.
66370         * lib/long-options.c: Include stdarg.h.
66371         (parse_long_options): Make this function variadic, too.
66372         Call version_etc_va, not version_etc.
66373
66374 2003-10-06  Bruno Haible  <bruno@clisp.org>
66375
66376         * modules/version-etc-2: Remove file.
66377         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66378
66379 2003-10-06  Bruno Haible  <bruno@clisp.org>
66380
66381         * modules/fatal-signal: New file.
66382         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66383
66384 2003-10-06  Bruno Haible  <bruno@clisp.org>
66385
66386         * m4/fatal-signal.m4: New file.
66387         * m4/signalblocking.m4: New file, from GNU gettext.
66388
66389 2003-10-06  Bruno Haible  <bruno@clisp.org>
66390
66391         * lib/version-etc-2.h: Remove file.
66392         * lib/version-etc-2.c: Remove file.
66393
66394 2003-10-06  Bruno Haible  <bruno@clisp.org>
66395
66396         * lib/fatal-signal.h: New file, from GNU gettext.
66397         * lib/fatal-signal.c: New file, from GNU gettext.
66398
66399 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66400
66401         * README: Rework advice for preventing empty .o files.
66402         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66403         not <sys/types.h>.
66404
66405 2003-10-04  Karl Berry  <karl@gnu.org>
66406
66407         * lib/argp*: update from libc.
66408
66409 2003-10-04  Karl Berry  <karl@gnu.org>
66410
66411         * config/config.{guess,sub}: update from config.
66412
66413 2003-10-02  Bruno Haible  <bruno@clisp.org>
66414
66415         * modules/lchown (Include): Add lchown.h.
66416         * modules/time_r (Include): Use "..." syntax.
66417         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66418
66419 2003-10-01  Simon Josefsson  <jas@extundo.com>
66420
66421         * MODULES.html.sh (func_all_modules): Move gethostname from section
66422         'based on' to section 'lacking' POSIX:2001.
66423
66424 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66425
66426         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66427         to output mode on the same stream.
66428
66429 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66430
66431         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66432         Fix arg typo in previous patch.
66433
66434 2003-09-28  Jim Meyering  <jim@meyering.net>
66435
66436         * lib/error.c: Correct cpp indentation.
66437
66438 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66439
66440         * modules/free: New file.
66441
66442 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66443
66444         * m4/free.m4: New file.
66445
66446 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66447
66448         * lib/minmax.h (MIN, MAX)
66449         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66450         Omit the special code that used __typeof__, since we worry that
66451         it could be more trouble than it's worth.  See:
66452         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66453         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66454
66455         * lib/free.c: New file.
66456
66457 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66458
66459         Trivial fixes to Makefile.am parts of module listings.
66460         * modules/strstr: Append strstr.h to lib_SOURCES.
66461         * modules/strcase: Likewise, for strcase.h.
66462
66463 2003-09-27  Karl Berry  <karl@gnu.org>
66464
66465         * config/mkinstalldirs: update from automake.
66466
66467 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66468
66469         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66470         (error_tail): Do not loop, reallocating temporary buffer, since
66471         the output cannot contain more wide characters than the input
66472         contains bytes, the size must be big enough already.  This avoids
66473         one potential size overflow calculation.  Check for size overflow
66474         when calculating temporary buffer size.  Free temporary buffer
66475         when done, if it was allocated with malloc; this plugs a memory
66476         leak.  Remove casts from void * to pointers, that are no longer
66477         needed now that we're assuming C89 or better.
66478
66479         Merge error changes from glibc.
66480
66481         * lib/error.c, error.h: Update copyright notice header to match glibc.
66482         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66483         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66484         Disable cancellation while printing error.
66485         * lib/error.h: Prepend __ to parameter names.
66486
66487 2003-09-26  Jim Meyering  <jim@meyering.net>
66488
66489         * lib/error.c (error_tail): Move some declarations
66490         into inner scope where the local variables are used.
66491
66492 2003-09-26  Bruno Haible  <bruno@clisp.org>
66493
66494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66495         stpncpy().
66496         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66497
66498 2003-09-26  Bruno Haible  <bruno@clisp.org>
66499
66500         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66501         (stpncpy): Define as alias for gnu_stpncpy.
66502         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66503
66504 2003-09-25  Simon Josefsson  <jas@extundo.com>
66505
66506         * lib/xgetdomainname.h: New file.
66507         * lib/xgetdomainname.c: New file.
66508
66509 2003-09-25  Simon Josefsson  <jas@extundo.com>
66510             Bruno Haible  <bruno@clisp.org>
66511
66512         * modules/getdomainname: New file.
66513         * modules/xgetdomainname: New file.
66514         * MODULES.html.sh (func_all_modules): Add getdomainname,
66515         xgetdomainname.
66516
66517 2003-09-25  Simon Josefsson  <jas@extundo.com>
66518             Bruno Haible  <bruno@clisp.org>
66519
66520         * m4/getdomainname.m4: New file.
66521
66522 2003-09-25  Simon Josefsson  <jas@extundo.com>
66523             Bruno Haible  <bruno@clisp.org>
66524
66525         * lib/getdomainname.h: New file.
66526         * lib/getdomainname.c: New file.
66527
66528 2003-09-25  Karl Berry  <karl@gnu.org>
66529
66530         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66531
66532 2003-09-25  Karl Berry  <karl@gnu.org>
66533
66534         * config/install-sh: update from automake.
66535
66536 2003-09-25  Bruno Haible  <bruno@clisp.org>
66537
66538         * modules/version-etc-2: New file, from modules/version-etc with
66539         modifications.
66540         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66541
66542 2003-09-25  Bruno Haible  <bruno@clisp.org>
66543
66544         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66545         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66546
66547 2003-09-24  Simon Josefsson  <jas@extundo.com>
66548
66549         * modules/xgethostname: Add xgethostname.h.
66550
66551 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66552
66553         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66554         the buffer associated with the argument.  Bug reported by
66555         Simon Josefsson.
66556
66557 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66558
66559         * README: Document assumptions that 'int' is at least 32 bits
66560         wide, that integer arithmetic is 2's complement without overflow,
66561         that there are no holes in integer values, that adding sizes of
66562         two nonoverlapping objects can't overflow, and that all-bits-zero
66563         yields scalar zero.  Fix spelling and capitalization typos.
66564
66565 2003-09-19  Karl Berry  <karl@gnu.org>
66566
66567         * lib/argp.h: update from libc.
66568
66569 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66570
66571         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66572         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66573         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66574
66575 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66576
66577         * gnulib-tool: Use "test -h", not "test -L", for portability
66578         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66579         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66580         (sed_extract_prog): Issue s commands one-by-one, rather than
66581         using \| in one s command.
66582
66583 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66584
66585         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66586         input error, instead of returning NULL the next time we are called
66587         (and therefore losing track of errno).
66588
66589 2003-09-16  Bruno Haible  <bruno@clisp.org>
66590
66591         * gnulib-tool (func_create_testdir): Warn about duplicated
66592         dependencies.
66593
66594 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66595
66596         * modules/argmatch, modules/fatal, modules/obstack,
66597         modules/xalloc, modules/xgethostname: Sort dependencies by
66598         importance, not alphabetically.
66599
66600 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66601
66602         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66603         fails, so that the caller gets the proper errno.
66604
66605         * lib/readutmp.c (read_utmp): Likewise.
66606         Check for fstat error.  Close stream and free storage
66607         when failing.
66608
66609 2003-09-14  Karl Berry  <karl@gnu.org>
66610
66611         * config/srclist.txt (strdup.c): disable for c89 changes.
66612
66613 2003-09-14  Jim Meyering  <jim@meyering.net>
66614
66615         * lib/getloadavg.c: Correct cpp indentation.
66616         * lib/strdup.c: Likewise.
66617         * lib/vasnprintf.c: Likewise.
66618
66619 2003-09-14  Bruno Haible  <bruno@clisp.org>
66620
66621         * modules/fwriteerror: New file.
66622         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66623
66624 2003-09-14  Bruno Haible  <bruno@clisp.org>
66625
66626         * lib/fwriteerror.h: New file.
66627         * lib/fwriteerror.c: New file.
66628
66629 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66630
66631         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66632         modules/xgethostname, modules/xalloc: Depend on exit.
66633
66634 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66635
66636         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66637
66638         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66639         and AC_MINIX, too, so that their extensions are available.
66640
66641         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66642         This macro has been superseded by gl_BACKUPFILE.
66643
66644         More patches to assume C89 or better.
66645
66646         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66647
66648         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66649         unconditionally.
66650         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66651         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66652         Include <string.h>, <stdlib.h> unconditionally.
66653         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66654         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66655         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66656         headers or for string.h.
66657         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66658         or strtoul.
66659
66660         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66661         headers.
66662         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66663         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66664         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66665         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66666         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66668         memcpy, memset.
66669         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66670         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66671         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66672         strtol.
66673         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66674         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66675         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66676         strtoul.
66677
66678 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66679
66680         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66681         * lib/obstack.c [!defined _LIBC]: Likewise.
66682         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66683         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66684         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66685
66686         More changes to assume C89 or better.
66687
66688         * lib/error.c (error_tail): Assume vprintf.
66689
66690         * lib/argmatch.c (getenv): Remove decl.
66691         * lib/progreloc.c (get_full_program_name): Define via prototype.
66692         * lib/setenv.c (clearenv): Likewise.
66693         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66694         needed.
66695         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66696         (malloc, memcpy): Remove decls.
66697         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66698         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66699         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66700         (memcpy): Remove macro.
66701         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66702         (__P): Remove.  All uses removed.
66703         (PTR): Remove.  All uses changed to void *.
66704         (CHAR_BIT, NULL): Remove.
66705         (spaces, zeros, memset_space, memset_zero)
66706         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66707         Remove.
66708         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66709         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66710         Define with prototype.
66711         Remove now-unnecessary prototype decl.
66712         (extra_args_spec): Assume ANSI C.  All uses changed.
66713         (extra_args_spec_iso): Remove.
66714         (my_strftime, emacs_strftimeu): Define via prototype.
66715         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66716         unconditionally.
66717         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66718         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66719         (strtoul, strtol): Remove decls.
66720         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66721         LONG_MAX): Remove.
66722         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66723         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66724         (LOCALE_PARAM_PROTO): New macro.
66725         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66726         (INTERNAL (strtol), strtol): Define with a prototype.
66727         (PARAMS): Remove.  All uses removed.
66728         * lib/tempname.c: Include <string.h> unconditionally.
66729         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66730         * lib/xgethostname.c (main): Define with a prototype.
66731         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66732         Include <stdlib.h> unconditionally.
66733         (calloc, malloc, realloc, free): Remove decls.
66734         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66735         Include <stdlib.h> unconditionally.  Sort include file names.
66736         (strtod): Remove.
66737         (xstrtod): Define with a prototype.
66738         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66739         (strtol, strtoul): Remove decls.
66740
66741 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66742
66743         More patches to assume C89 or better.
66744         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66745         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66746         string.h, memchr, STDC_HEADERS.
66747
66748 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66749
66750         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66751         Include <stdlib.h>, <string.h> unconditionally.
66752         Remove now-unnecessary cast to char *.
66753         * lib/strnlen.c: Include <string.h> unconditionally.
66754         * lib/yesno.c (yesno): Define with a prototype.
66755
66756 2003-09-11  Bruno Haible  <bruno@clisp.org>
66757
66758         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66759
66760 2003-09-10  Jim Meyering  <jim@meyering.net>
66761
66762         * lib/error.c: Correct indentation of cpp directives.
66763
66764 2003-09-10  Bruno Haible  <bruno@clisp.org>
66765
66766         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66767         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66768         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66769         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66770         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66771         <stdlib.h> and <string.h> checks.
66772         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66773         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66774
66775 2003-09-10  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/strcspn.c: Include <string.h> unconditionally.
66778         * lib/strpbrk.c: Include <string.h> unconditionally.
66779         * lib/strstr.c: Include <string.h> unconditionally.
66780         * lib/unicodeio.c: Include <string.h> unconditionally.
66781         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66782         * lib/unsetenv.c: Likewise.
66783         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66784         * lib/yesno.c: Include <stdlib.h> unconditionally.
66785         (rpmatch): Add prototype.
66786
66787 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66788
66789         More patches to assume C89 or better.
66790         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66791         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66792         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66793         or for string.h.
66794         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66795         stdlib.h.
66796         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66797         C headers.
66798         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66799         string.h.
66800         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66801         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66802         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66803         or for string.h.
66804         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66805         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66806         C headers.
66807         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66808         memcpy.
66809         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66810         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66811         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66812         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66813         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66814         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66815         string.h, free.
66816         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66817         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66818         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66819         C headers, or for string.h.
66820         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66821         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66822         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66823         headers, memory.h, stdlib.h, string.h, strings.h.
66824         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66825         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66826         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66827         strchr.
66828         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66829         headers, memory.h, string.h.
66830         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66831         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66832         free.
66833         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66834         headers.
66835         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66836         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66837         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66838         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66839         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66840
66841 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66842
66843         More K&R removal.
66844
66845         * lib/acosl.c (main): Use a prototype.
66846         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66847         tanl.c: Likewise.
66848
66849         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66850
66851         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66852         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66853         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66854         with a prototype.
66855         * lib/getopt.c (const): Remove macro.
66856         Include <string.h> unconditionally.
66857         (my_index): Remove; all uses changed to strchr.
66858         (strlen): Remove decl.
66859         (exchange): Remove forward decl; no longer needed.
66860         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66861         Define with prototype.
66862         * lib/getopt1.c (const): Remove macro.
66863         (getopt_long, getopt_long_only, main): Define with prototype.
66864
66865         * lib/getugroups.c: Include <string.h> unconditionally.
66866
66867         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66868         (getusershell, setusershell, endusershell, readname, main):
66869         Define with prototypes.
66870
66871         * lib/group-member.c: Include group-member.h first.
66872         Include <stdlib.h> unconditionally.
66873
66874         * lib/hard-locale.c: Include hard-locale.h first.
66875         Include <stdlib.h>, <string.h> unconditionally.
66876
66877         * lib/hash.c (free, malloc): Remove decls.
66878         Include <stdlib.h> unconditionally.
66879
66880         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66881         (getenv): Do not declare.
66882
66883         * lib/idcache.c: Include <string.h> unconditionally.
66884
66885         * lib/long-options.c: Include long-options.h first, to test interface.
66886         Include <stdlib.h> unconditionally.
66887
66888         * lib/makepath.c: Include makepath.h first, to test interface.
66889         Include <stdlib.h> and <string.h> unconditionally.
66890
66891         * lib/linebuffer.c: Include <stdlib.h>.
66892         (free): Remove decl.
66893
66894         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66895         stddef.h. rpl_malloc returns void *, not char *.
66896         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66897         prototype.
66898
66899         * lib/md5.h: Include <limits.h> unconditionally.
66900         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66901         (__P): Remove; all uses removed.
66902         * lib/md5.c: Include "md5.h" first.
66903         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66904         md5_buffer, md5_process_bytes, md5_process_block):
66905         Define with prototypes.
66906         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66907         * lib/sha.c: Include "sha.h" first.
66908         Include <stdlib.h>, <string.h> unconditionally.
66909
66910         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66911         * lib/memcmp.c (__ptr_t): Likewise.
66912         * lib/memrchr.c (__ptr_t): Likewise.
66913         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66914         Include <string.h> unconditionally.
66915         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66916         * lib/memchr.c: Include <stdlib.h> unconditionally.
66917         * lib/memchr.c (LONG_MAX): Remove.
66918         * lib/memrchr.c (LONG_MAX): Likewise.
66919         * lib/memchr.c (__memchr): Define via a prototype.
66920         * lib/memrchr.c (__memrchr): Likewise.
66921         * lib/memcmp.c (__P): Remove, and remove all uses.
66922         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66923         Remove forward decls; no longer needed.
66924         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66925         Use types required by C89 in prototype.
66926
66927         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66928         * lib/savedir.c: Likewise.
66929         * lib/mkdir.c (free): Remove decl.
66930         * lib/rmdir.c (rmdir): Define with a prototype.
66931         * lib/savedir.c: Include savedir.h first, to test interface.
66932
66933         * lib/mktime.c (STDC_HEADERS): Remove.
66934         Include <stdlib.h>, <string.h> unconditionally.
66935
66936         * lib/modechange.c: Include <stdlib.h> unconditionally.
66937         (malloc): Remove decl.
66938
66939         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66940         (free): Remove decl.
66941
66942         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66943         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66944         (This type really should be intptr_t, but that's a C99ism.)
66945         (_obstack_memcpy): Remove: all uses changed to memcpy.
66946         Include <string.h> unconditionally.
66947         (struct obstack): Assume __STDC__ for types of members
66948         chunkfun, freefun, extra_arg.
66949         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66950         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66951         obstack_begin, obstack_specify_allocation,
66952         obstack_specify_allocation_with_arg, obstack_chunkfun,
66953         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66954         Remove unprototyped decls and the macros that use them.
66955         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66956         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66957         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66958         (defined __STDC__ && __STDC__)]:
66959         Remove nonprototyped code.
66960         Include <stdlib.h> unconditionally.
66961         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66962         _obstack_allocated_p, _obstack_free, obstack_free,
66963         _obstack_memory_used, print_and_abort):
66964         Define using prototypes.
66965         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66966         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66967         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66968         obstack_next_free, obstack_object_size, obstack_room) [0]:
66969         Remove unused, unprototyped code.
66970
66971         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66972
66973         * lib/physmem.c (physmem_total, physmem_available, main): Define
66974         with prototypes.
66975
66976         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66977         (main): Define with a prototype.
66978
66979         * lib/posixver.c (getenv): Remove decl.
66980
66981         * lib/putenv.c (malloc): Returns void *, not char *.
66982         Include <string.h> unconditionally.
66983         (strchr, memcpy, NULL): Do not define.
66984
66985         * lib/readtokens.c: Include readtokens.h first, to test interface.
66986         Include <stdlib.h>, <string.h> unconditionally.
66987         (init_tokenbuffer): Define with a prototype.
66988
66989         * lib/regex.c (PARAMS): Remove.  All uses removed.
66990         All uses of _RE_ARGS removed, too.
66991         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66992         unconditionally.
66993         (bzero): Assume memset exists.
66994         (memcmp, memcpy, NULL): Remove.
66995         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66996         char, or assignments to local vars of type signed char.
66997         (init_syntax_once, PREFIX(extract_number_and_incr),
66998         PREFIX(print_partial_compiled_pattern),
66999         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
67000         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
67001         PREFIX(regex_grow_registers), PREFIX(regex_compile),
67002         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
67003         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
67004         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
67005         wcs_compile_range, byte_compile_range, truncate_wchar,
67006         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
67007         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
67008         count_mbs_length, wcs_re_match_2_internal,
67009         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
67010         PREFIX(alt_match_null_string_p),
67011         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
67012         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
67013         regfree, PREFIX(extract_number)): Define with prototype.  Remove
67014         now-unnecessary declaration, if any.
67015         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
67016         regcomp, regexec):
67017         Remove now-unnecessary casts among pointer types.
67018         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
67019
67020         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
67021         (free): Remove decl.
67022
67023         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
67024
67025         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
67026         (free): Remove decl.
67027
67028         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
67029         * lib/xgetcwd.c: Likewise.
67030
67031         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
67032         (free): Remove decl.
67033
67034         * lib/strchrnul.c (strchrnul): Define with a prototype.
67035         Fix bug: c_in was not converted to char before searching.
67036
67037         The following changes are not K&R related:
67038
67039         * lib/group-member.h: Include <sys/types.h>, so that this file is
67040         self-contained.
67041         * lib/makepath.h: Likewise.
67042
67043         * lib/getusershell.c (readname, default_index, line_size, readname):
67044         Use size_t, not int, for sizes.
67045         (readname): If the size overflows, report an error instead of
67046         looping forever.
67047
67048 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67049
67050         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
67051         libc.
67052
67053 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67054
67055         * README: New section: portability guidelines.
67056
67057 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67058
67059         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
67060         C89 spec.
67061
67062 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
67063
67064         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
67065
67066 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67067
67068         Assume C89 or better; remove K&R cruft.
67069         A few of these changes were first proposed by Derek Robert Price
67070         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
67071
67072         * lib/addext.c: Include <string.h> unconditionally.
67073         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
67074         Don't declare getenv or malloc.
67075
67076         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
67077         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
67078         (NULL): Remove.
67079         (find_stack_direction, alloca): Use prototypes.
67080
67081         * lib/atexit.c (atexit): Define using a prototype.
67082
67083         * lib/basename.c, dirname.c, stripslash.c:
67084         Include <string.h> unconditionally.
67085
67086         * lib/bcopy.c: Include <stddef.h>.
67087         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
67088
67089         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
67090
67091         * lib/error.h (error, error_at_line, error_print_progname)
67092         [! (defined (__STDC__) && __STDC__)]: Remove decls.
67093         * lib/error.c: Include error.h first, to check interface.
67094         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67095         (VA_START): Remove; all uses changeed to va_start.
67096         (exit, strerror): Remove decls.
67097         (error_print_progname): Prototype uncondionally.
67098         Don't include <errno.h>; no longer needed.
67099         (private_strerror): Remove.
67100         (error_tail): Always define.
67101         (error, error_at_line): Assume C89 or better; always use prototypes.
67102         * lib/fatal.c: Include "fatal.h" first, to test interface.
67103         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
67104         (VA_START): Remove; all uses changed to va_start.
67105         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
67106         this case.
67107         (exit): Remove decl.
67108         (fatal): Prototype unconditionally.  Assume va_start works.
67109         Abort at end, to pacify gcc.
67110
67111         * lib/euidaccess.c (main): Define with a prototype.
67112
67113         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
67114
67115         * lib/exitfail.c: Include <stdlib.h> unconditionally.
67116
67117         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
67118         prototypes.
67119         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
67120         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
67121         (getenv): Remove decl.
67122         (fnmatch): Define using a prototype.
67123         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
67124         (FCT): Define using a prototype.
67125
67126         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
67127
67128         * lib/gethostname.c: Include <stddef.h>.
67129         (gethostname): Define with prototype.  Length is size_t, not int.
67130
67131 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67132
67133         Assume C89 or better; remove K&R cruft.
67134         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
67135         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
67136         string.h, getenv, malloc.
67137         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
67138         headers.
67139         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
67140         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
67141         do not check for strerror.
67142         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
67143         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
67144         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
67145         do not check for doprnt or vprintf.
67146         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
67147         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
67148
67149 2003-09-08  Paul Eggert  <eggert@twinsun.com>
67150
67151         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
67152         getversion.c should have been removed then, but was accidentally
67153         preserved.
67154
67155         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
67156         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
67157
67158 2003-09-08  Karl Berry  <karl@gnu.org>
67159
67160         * config/config.sub, config.guess, srclistvars.sh: update from savannah
67161                 config, forget about prep.
67162
67163         * config/depcomp, missing: update from automake.
67164
67165 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67166
67167         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
67168         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67169
67170 2003-09-07  Paul Eggert  <eggert@twinsun.com>
67171
67172         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
67173         copy_tm_result.  Bug reported by Simon Josefsson in
67174         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
67175
67176 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67177
67178         * m4/time_r.m4: New file.
67179         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
67180         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
67181         is. Check for timegm declaration.
67182         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
67183         Do not check for gmtime_r.
67184         Replace mktime if __mktime_internal does not exist and if mktime
67185         hasn't been replaced already.
67186
67187 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67188
67189         * lib/time_r.c, lib/time_r.h: New files.
67190
67191         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
67192         __localtime_r.
67193         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
67194         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
67195
67196         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
67197         __gmtime_r.
67198         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
67199         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
67200         Include <time_r.h>.
67201
67202         * lib/timegm.c: Switch to glibc implementation, with the following
67203         changes:
67204         [defined HAVE_CONFIG_H]: Include <config.h>.
67205         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
67206         (__mktime_internal) [!defined _LIBC]: New decl.
67207         (__gmtime_r) [!defined _LIBC]: New macro and function.
67208         (timegm): Use a prototype, since gnulib assumes C89.
67209         Do not bother declaring tmp to be const, as it's not really usefu.
67210         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
67211         (timegm): Declare only if HAVE_DECL_TIMEGM.
67212
67213 2003-09-06  Paul Eggert  <eggert@twinsun.com>
67214
67215         * MODULES.html.sh (func_all_modules): Add time_r.
67216         * modules/time_r: New file.
67217         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
67218         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
67219
67220 2003-09-03  Paul Eggert  <eggert@twinsun.com>
67221
67222         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
67223         Bug reported by Lute Kamstra in
67224         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
67225
67226         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
67227         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
67228         course with correspondingly smaller numbers for tomorrow and
67229         yesterday.  From Tadayoshi Funaba.  Originally installed into
67230         sh-utils on 1999-08-07, but the patch got lost (I guess during the
67231         coreutils merge?).
67232
67233 2003-08-31  Simon Josefsson  <jas@extundo.com>
67234
67235         * modules/timegm: New file.
67236         * MODULES.html.sh (func_all_modules): Add timegm.
67237
67238 2003-08-31  Simon Josefsson  <jas@extundo.com>
67239
67240         * m4/timegm.m4: New file.
67241
67242 2003-08-31  Simon Josefsson  <jas@extundo.com>
67243
67244         * lib/timegm.h: New file.
67245         * lib/timegm.c: New file.  Based on
67246         wget-1.8.2/src/http.c:mktime_from_utc.
67247
67248 2003-08-31  Karl Berry  <karl@gnu.org>
67249
67250         * lib/argp.h: update from libc.
67251
67252 2003-08-28  Bruno Haible  <bruno@clisp.org>
67253
67254         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
67255         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
67256         followed by '#define fnmatch fnmatch_posix' gives an error.
67257
67258 2003-08-28  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
67261         warning on QNX, which defines O_BINARY to 000000.
67262
67263 2003-08-27  Jim Meyering  <jim@meyering.net>
67264
67265         * m4/mkstemp.m4: Require that the system mkstemp be able to create
67266         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
67267         would fail after 32.  Reported by Danny Levinson.  Details here:
67268         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
67269
67270 2003-08-24  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
67273         MSVC7 <stdio.h> is included later.
67274
67275 2003-08-22  Simon Josefsson  <jas@extundo.com>
67276
67277         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
67278
67279 2003-08-20  Karl Berry  <karl@gnu.org>
67280
67281         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67282
67283 2003-08-20  Bruno Haible  <bruno@clisp.org>
67284
67285         * modules/progname: New file.
67286         * MODULES.html.sh (func_all_modules): Add progname.
67287
67288 2003-08-20  Bruno Haible  <bruno@clisp.org>
67289
67290         * lib/progname.h: New file, from GNU gettext.
67291         * lib/progname.c: New file, from GNU gettext.
67292         * lib/progreloc.c: New file, from GNU gettext.
67293
67294 2003-08-19  Jim Meyering  <jim@meyering.net>
67295
67296         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67297         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67298
67299 2003-08-19  Bruno Haible  <bruno@clisp.org>
67300
67301         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67302         more.
67303
67304 2003-08-19  Bruno Haible  <bruno@clisp.org>
67305
67306         * lib/xstrdup.c: Assume <string.h> exists.
67307
67308 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67309
67310         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67311         in makefile rules.
67312
67313 2003-08-18  Jim Meyering  <jim@meyering.net>
67314
67315         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67316         * m4/lib-ld.m4: Likewise.
67317
67318 2003-08-18  Jim Meyering  <jim@meyering.net>
67319
67320         * lib/setenv.h: Indent nested cpp directive.
67321         * lib/vasnprintf.c: Remove trailing blanks.
67322
67323 2003-08-17  Simon Josefsson  <jas@extundo.com>
67324
67325         * modules/xstrndup: New file.
67326         * MODULES.html.sh (func_all_modules): Add xstrndup.
67327
67328 2003-08-17  Simon Josefsson  <jas@extundo.com>
67329
67330         * modules/argp: Fix autoconf macro name. Add more dependencies.
67331
67332 2003-08-17  Simon Josefsson  <jas@extundo.com>
67333
67334         * m4/xstrndup.m4: New file.
67335
67336 2003-08-17  Simon Josefsson  <jas@extundo.com>
67337
67338         * m4/argp.m4: New file.
67339
67340 2003-08-17  Simon Josefsson  <jas@extundo.com>
67341             Bruno Haible  <bruno@clisp.org>
67342
67343         * lib/xstrndup.h: New file.
67344         * lib/xstrndup.c: New file.
67345
67346 2003-08-17  Bruno Haible  <bruno@clisp.org>
67347
67348         * modules/strndup (Files, Include): Add lib/strndup.h.
67349
67350 2003-08-17  Bruno Haible  <bruno@clisp.org>
67351
67352         * modules/euidaccess (Files): Add lib/euidaccess.h.
67353
67354 2003-08-17  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/strndup.h: New file.
67357
67358 2003-08-17  Bruno Haible  <bruno@clisp.org>
67359
67360         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67361         like AC_GNU_SOURCE.
67362         * modules/extensions (configure.ac): Comment out the invocation of
67363         gl_USE_SYSTEM_EXTENSIONS.
67364
67365 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67366
67367         Merges from coreutils, etc.
67368         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67369         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67370         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67371         fixing a typo.
67372         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67373         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67374
67375 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67376
67377         Document merge from coreutils.
67378         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67379         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67380         * modules/utime: Add m4/utimes-null.m4.
67381
67382 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67383
67384         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67385         space, undoing this 2003-08-12 change:
67386         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67387
67388 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67389
67390         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67391         strtoul.c from libc, undoing this 2003-08-12 change:
67392         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67393
67394 2003-08-16  Jim Meyering  <jim@meyering.net>
67395
67396         Merges from coreutils.
67397         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67398         prefix.  Adjust cache variables similarly.  Create 500 rather than
67399         just 300 files, to exercise bug on Darwin6.5, too.
67400         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67401         $missing_dir.
67402         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67403         AM_SYS_POSIX_TERMIOS.
67404         Reported by mkc@mathdogs.com.
67405         Also change use of $am_cv_sys_posix_termios
67406         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67407         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67408         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67409         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67410         in /proc/mounts until it finds one with matching device number.  This
67411         is unnecessary when the FILE argument *is* a mount point.  No stat call
67412         is necessary in that case.  So, disable the statvfs-testing code on
67413         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67414         as RedHat bug# 84846.
67415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67416         to 1MB, so as not to render systems with no stack size limit (e.g.,
67417         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67418         Include <unistd.h>.  On some systems,
67419         it is required for the definition of _SC_PAGESIZE.
67420
67421 2003-08-16  Jim Meyering  <jim@meyering.net>
67422
67423         Merge from coreutils.
67424         * lib/xstrtoimax.c: #else #if -> #elif.
67425         * lib/xstrtoumax.c: Likewise.
67426
67427 2003-08-16  Jim Meyering  <jim@meyering.net>
67428
67429         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67430         * m4/utimes.m4: Removed.
67431         * m4/utimes-null.m4: Renamed from utimes.m4.
67432
67433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67434         to 1MB, so as not to render systems with no stack size limit (e.g.,
67435         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67436         Include <unistd.h>.  On some systems,
67437         it is required for the definition of _SC_PAGESIZE.
67438
67439 2003-08-16  Jim Meyering  <jim@meyering.net>
67440         and Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         Merges from coreutils, etc.
67443
67444         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67445         using the latest version from cvs.  This avoids problems with #line
67446         directives using a vendor (Sun) compiler.
67447         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67448         Don't set GETGROUPS_LIB here; now it's
67449         done via getgroups.m4's wrapper function.
67450         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67451         rather than just in sh-util/configure.in, so that the
67452         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67453         same.
67454         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67455         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67456         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67457         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67458         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67459         Remove code that is now done by the newly-required macros.
67460         Append $(EXEEXT) to DF_PROG.
67461         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67462         Do not invoke or require the following here,
67463         since prereq.m4 or some gnulib .m4 now does this for us:
67464         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67465         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67466         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67467         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67468         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67469         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67470         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67471         AC_FUNC_OBSTACK.
67472         Do not replace the following functions, as this is now the job
67473         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67474         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67475         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67476         atexit getpass, strdup, getpagesize.
67477         Replace 'raise'.
67478         Do not check for the following functions, as this is now the job
67479         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67480         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67481         setregid.
67482         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67483         Check for sys/sysctl.h.
67484         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67485         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67486         of checking for ssize_t ourselves.
67487
67488         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67489         Require every macro that gnulib/modules/* suggests for us.
67490         (jm_PREREQ_ADDEXT): New macro.
67491         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67492         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67493
67494         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67495         (gl_PHYSMEM): Use it.
67496         Also check for `table' function.
67497         Check for new headers and functions.
67498         Add check for sys/sysmp.h.
67499         With suggestions from Kaveh Ghazi.
67500         Ignore headers that are present but cannot be compiled.  This
67501         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67502         C 5.4.
67503
67504 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67505
67506         Document merge from coreutils.
67507         * modules/userspec: Depend on posixver.
67508         * modules/strftime: Depend on tzset.
67509
67510 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67511
67512         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67513         rather than tab, after '#' in shell-script copyright notices.
67514         Suggested by Bruno Haible.
67515
67516 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67517
67518         * config/srclist-update: Use three spaces, rather than tab, after '#'
67519         in shell-script copyright notices.  Suggested by Bruno Haible.
67520         Remove unnecessary parenthesization in regular expression.
67521
67522 2003-08-15  Jim Meyering  <jim@meyering.net>
67523
67524         Merge from coreutils.
67525         * lib/xgethostname.c: Include <stdlib.h>.
67526         (xghostname): Don't exit for anything other than memory-related
67527         failure; just return NULL.
67528         * lib/userspec.c: Include "posixver.h".
67529         (parse_user_spec): Accept `.' as a separator only
67530         in pre-POSIX-200112 mode.
67531         * lib/strtoimax.c: Use #elif rather than #else #if.
67532         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67533         Remove function, now that we can rely on a working tzset function.
67534         [!_LIBC]: Ensure that the required autoconf test has been run.
67535         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67536         Use underlying_strftime for %r.
67537         * lib/sha.c: Merge in some clean-up and optimization changes from
67538         glibc.
67539         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67540         Ensure that it is a multiple of 64.
67541         Rearrange loop exit tests so as to avoid performing an
67542         additional fread after encountering an error or EOF.
67543         * lib/realloc.c: Update copyright date.
67544
67545 2003-08-15  Jim Meyering  <jim@meyering.net>
67546         and Paul Eggert  <eggert@twinsun.com>
67547
67548         Merge from coreutils.
67549         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67550         member but strut utmpx does not.  Needed for AIX 4.3.3.
67551         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67552
67553 2003-08-15  Jim Meyering  <jim@meyering.net>
67554         and Paul Eggert  <eggert@cs.ucla.edu>
67555
67556         Merges from coreutils, etc.
67557         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67558         Require gl_FUNC_TZSET_CLOBBER.
67559         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67560         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67561         members.
67562
67563 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67564
67565         Help the merge from coreutils.
67566         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67567         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67568         * m4/tzset.m4: Use it too.
67569
67570 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67571
67572         * modules/tzset: New file.
67573
67574 2003-08-14  Jim Meyering  <jim@meyering.net>
67575
67576         Merges from coreutils.
67577         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67578         variable names, rather than @FNMATCH_H@.
67579         * modules/alloca: Likewise for $(ALLOCA_H).
67580
67581         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67582         the three copies of the literal target, `fnmatch.h'.
67583         * modules/alloca (alloca.h): Likewise.
67584
67585 2003-08-14  Jim Meyering  <jim@meyering.net>
67586
67587         Merge from coreutils.
67588         * m4/tzset.m4: New file.
67589         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67590         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67591         otherwise, AIX 5.1 systems would end up using the latter.
67592         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67593         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67594         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67595         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67596
67597 2003-08-14  Jim Meyering  <jim@meyering.net>
67598
67599         Merge from coreutils.
67600         * lib/obstack.h: Whitespace changes.
67601         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67602         and xcalloc return values.
67603         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67604         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67605         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67606         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67607         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67608         error from mntctl.
67609         Use mntctl's return value to drive the entry-processing loop, since
67610         we can't rely on the value of the vmt_length member in the last
67611         entry.  On some systems doing so could result in exhausting
67612         virtual memory.  Based in part on a patch from Mike Jetzer.
67613
67614 2003-08-14  Jim Meyering  <jim@meyering.net>
67615         and Paul Eggert  <eggert@twinsun.com>
67616
67617         Merges from coreutils, plus other fixes.
67618         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67619         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67620         for credits and details.  Thanks to Kaveh Ghazi for helping
67621         to keep these files in sync.
67622         (ARRAY_SIZE): Define it.
67623         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67624         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67625         (memcasecmp): Don't assume size_t fits in unsigned int.
67626         Remove casts and duplicate code.
67627         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67628         (memcpy): Remove definition.
67629         Merge in some clean-up and optimization changes from glibc.
67630         [BLOCKSIZE]: Move definition to top of file.
67631         Ensure that it is a multiple of 64.
67632         Rearrange loop exit tests so as to avoid performing an
67633         additional fread after encountering an error or EOF.
67634         * lib/md5.h (md5_uintptr): Define.
67635         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67636         return to the initial working directory.  Preserve errno
67637         for caller.
67638         * lib/idcache.c: Include "xalloc.h".
67639         (xmalloc, xrealloc): Remove decls.
67640         (getuser): Remove casts no longer required in C89.
67641         * lib/human.c: Include stdio.h, for sprintf.
67642         * lib/group-member.c: Include "xalloc.h".
67643         (xmalloc, xrealloc): Remove decls.
67644         (get_group_info): Remove casts no longer required in C89.
67645         * lib/getusershell.c (readname): Remove casts no longer required in
67646         C89.
67647         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67648         * lib/getline.c: Whitespace fix, from coreutils.
67649
67650 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67651
67652         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67653         Check for isascii.
67654
67655         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67656         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67657         Undo previous (whitespace-only) change.
67658
67659 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67660
67661         * lib/exclude.c: Include <ctype.h>
67662         (IN_CTYPE_DOMAIN): New macro.
67663         (is_space): New fn.
67664         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67665         and empty lines.
67666
67667         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67668         Undo previous (whitespace-only) change.
67669
67670 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67671
67672         * config/srclist-update: Change update back to the old behavior,
67673         leaving whitespace alone.  Use one 'sed' command rather than a
67674         pipeline.
67675         (fixlicense): Now a variable, not a function.
67676         (remove_trailing_blanks): Remove.
67677         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67678         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67679         Undo previous (whitespace-only) change.
67680
67681 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67682
67683         Merge from coreutils.
67684         * modules/euidaccess: Add lib_SOURCES, include for new
67685         file euidaccess.h
67686
67687 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67688
67689         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67690         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67691         Normalize leading white space and remove trailing white space.
67692
67693         Merge from coreutils
67694         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67695
67696         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67697         0.12.1.  These files are now being upgraded automatically by
67698         ../config/srclist-update.
67699
67700 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67701
67702         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67703         Normalize leading white space and remove trailing white space.
67704         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67705         notice, as per ../config/srclist-update.
67706
67707         Merge from coreutils.
67708         * lib/euidaccess.h: New file.
67709         * lib/euidaccess.c: Include it.
67710         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67711         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67712         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67713
67714 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67715
67716         * config/srclist-update: Add copyright notice.
67717         (remove_id_lines, remove_trailing_blanks): New constants.
67718         (fixfile): Use them to normalize spacing a bit in copied files.
67719         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67720         Normalize leading white space and remove trailing white space.
67721
67722         * config/texinfo.tex: Sync with texinfo.
67723
67724         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67725         strtoul.c from libc, to merge coreutils whitespace changes.
67726
67727         * config/srclist.txt: Get the following m4 files from gettext:
67728         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67729         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67730         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67731         wint_t.m4.
67732
67733 2003-08-12  Karl Berry  <karl@gnu.org>
67734
67735         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67736         been made.
67737
67738 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67739
67740         * modules/gnu-source, m4/gnu-source.m4:
67741         Remove; we're assuming Autoconf 2.54 or later now.
67742         Suggested by Bruno Haible.
67743         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67744
67745 2003-08-11  Bruno Haible  <bruno@clisp.org>
67746
67747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67748
67749 2003-08-11  Bruno Haible  <bruno@clisp.org>
67750
67751         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67752         (vasnprintf): Use it instead of wcslen.
67753
67754 2003-08-11  Bruno Haible  <bruno@clisp.org>
67755
67756         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67757         value to ensure that _Bool promotes to int. Use #define for _Bool when
67758         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67759
67760 2003-08-10  Karl Berry  <karl@gnu.org>
67761
67762         * lib/regex.h: update from libc (whitespace fix).
67763
67764 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67765
67766         Merge some files from coreutils.  These changes were
67767         originally made by Jim Meyering.
67768         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67769         many older Unixes require this.
67770         * lib/alloca.c (alloca): Remove cast to argument of free;
67771         no longer needed in C89.
67772         * lib/alloca_.h, regex.h: Fix white space to match
67773         what GNU indent does.
67774
67775 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67776
67777         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67778         apparently Emacs's Unicode mode got confused before my 2003-08-05
67779         checkin.
67780
67781 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67782
67783         * m4/extensions.m4: New file.
67784         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67785         Require gl_USE_SYSTEM_EXTENSIONS.
67786         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67787         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67788
67789 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67790
67791         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67792         * modules/extensions, modules/gnu-source: New files.
67793         * modules/timespec, modules/unlocked-io: Depend on extensions.
67794
67795 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67796
67797         * modules/restrict: New file.
67798         * MODULES.html.sh (func_all_modules): Add restrict.
67799         * modules/regex: Depend on restrict.
67800
67801 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67802
67803         * m4/restrict.m4: New file.
67804         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67805
67806 2003-08-07  Bruno Haible  <bruno@clisp.org>
67807
67808         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67809         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67810
67811 2003-08-07  Bruno Haible  <bruno@clisp.org>
67812
67813         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67814         makes the module 'getndelim2' compatible with the module 'getline'.
67815
67816 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67817
67818         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67819         byte with "\201" to avoid glitches when editing that source file
67820         with multi-gnome-terminal.
67821
67822 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67823
67824         * lib/bumpalloc.h: Remove.
67825
67826 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67827
67828         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67829         * modules/bumpalloc: Remove.
67830
67831 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67832
67833         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67834         GNU coding style.
67835
67836         Merge from coreutils.
67837         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67838         1. From glibc.
67839         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67840         from Karl Berry, implemented by Jim Meyering.
67841         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67842         from Dmitry V. Levin.
67843         Remove anachronistic cast of xrealloc.
67844         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67845         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67846         type. Otherwise, it wouldn't compile with at least /bin/cc on
67847         ymp-cray-unicos9.0.2.X.
67848         Combine two mostly-identical uses of alloca into one.
67849         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67850
67851 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67852
67853         [From Emacs.]
67854
67855         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67856         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67857         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67858         obsolete NLIST_NAME_UNION.
67859         [__GNU__]: Undef BSD and FSCALE.
67860         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67861
67862 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67863
67864         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67865         an enum type, so that it's guaranteed to promote to int.  See:
67866         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67867
67868 2003-08-03  Karl Berry  <karl@gnu.org>
67869
67870         * config/depcomp: update from automake.
67871
67872 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67873
67874         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67875         (strerror): Don't assume that a printable int fits in 14 bytes.
67876
67877 2003-07-31  Bruno Haible  <bruno@clisp.org>
67878
67879         * modules/getpass-gnu: New file.
67880         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67881
67882 2003-07-31  Bruno Haible  <bruno@clisp.org>
67883
67884         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67885
67886 2003-07-24  Karl Berry  <karl@gnu.org>
67887
67888         * config/missing: update from automake.
67889
67890 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67891             Bruno Haible  <bruno@clisp.org>
67892
67893         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67894         * lib/getline.c (getline, getdelim): Likewise.
67895         Remove _GNU_SOURCE define; now it's defined in config.h through
67896         m4/getline.m4.
67897
67898 2003-07-23  Karl Berry  <karl@gnu.org>
67899
67900         * config/config.sub: update from prep.
67901
67902 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67903
67904         * modules/xalloc (Depends-on): Add exitfail.
67905         * modules/xmemcoll: Likewise.
67906
67907 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67908
67909         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67910         over-parenthesization in macros.
67911
67912         Sync with coreutils.
67913
67914         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67915         required by C99.
67916
67917         Use `exit_failure' for xalloc and xmemcoll instead of their own
67918         private exit-failure variables.
67919         * lib/xalloc.h (xalloc_exit_failure): Remove.
67920         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67921         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67922         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67923         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67924         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67925
67926 2003-07-20  Jim Meyering  <jim@meyering.net>
67927
67928         * modules/closeout (Depends-on): Add exitfail.
67929         Suggestion from Bruno Haible.
67930
67931 2003-07-19  Karl Berry  <karl@gnu.org>
67932
67933         * config/config.sub: update from prep.
67934
67935 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67936
67937         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67938         Remove.
67939         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67940         to test that it can stand by itself.  Include "exitfail.h".
67941         Clients should set exit_failure instead.
67942         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67943
67944 2003-07-18  Bruno Haible  <bruno@clisp.org>
67945
67946         * modules/getndelim2: New file.
67947         * modules/getline: Share files with module getndelim2.
67948         * modules/getnline: Depend on getndelim2 instead of sharing files with
67949         it. Add getnline.c to lib_SOURCES.
67950         * MODULES.html.sh (func_all_modules): Add getndelim2.
67951
67952 2003-07-18  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/getndelim2.m4: New file.
67955         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67956         invoke gl_PREREQ_GETNDELIM2.
67957         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67958         gl_PREREQ_GETNDELIM2.
67959         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67960         gl_GETNDELIM2.
67961
67962 2003-07-18  Bruno Haible  <bruno@clisp.org>
67963
67964         * lib/getndelim2.h: New file.
67965         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67966         getndelim2.h.
67967         (getndelim2): Make non-static. Change return type to ssize_t.
67968         * lib/getline.h: Change argument names.
67969         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67970         * lib/getnline.c: Include getndelim2.h.
67971
67972 2003-07-18  Andreas Schwab  <schwab@suse.de>
67973
67974         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67975
67976 2003-07-17  Karl Berry  <karl@gnu.org>
67977
67978         * config/config.sub: update from prep.
67979
67980 2003-07-17  Bruno Haible  <bruno@clisp.org>
67981
67982         * modules/getnline: New file.
67983         * modules/getline: Add lib/getndelim2.c to source file list.
67984         * MODULES.html.sh (func_all_modules): Add getnline.
67985
67986 2003-07-17  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/getnline.m4: New file.
67989
67990 2003-07-17  Bruno Haible  <bruno@clisp.org>
67991
67992         * m4/Makefile.am.in: Remove file.
67993         * m4/Makefile.am: Remove file.
67994         * m4/Makefile.in: Remove file.
67995
67996 2003-07-17  Bruno Haible  <bruno@clisp.org>
67997
67998         * lib/getnline.h: New file.
67999         * lib/getnline.c: New file.
68000         * lib/getndelim2.c: New file, extracted from getline.c.
68001         (getndelim2): Renamed from getdelim2, with added nmax argument.
68002         * lib/getline.c: Include getndelim2.c.
68003         (getdelim2): Moved out to getndelim2.c.
68004         (getline, getdelim): Update.
68005
68006 2003-07-17  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/Makefile.am: Remove file.
68009         * lib/Makefile.in: Remove file.
68010
68011 2003-07-17  Bruno Haible  <bruno@clisp.org>
68012
68013         * configure.in: Remove file.
68014         * Makefile.in: Remove file.
68015
68016 2003-07-17  Bruno Haible  <bruno@clisp.org>
68017
68018         * MODULES.html.sh: Put the </BODY> right before </HTML>.
68019
68020 2003-07-16  Karl Berry  <karl@gnu.org>
68021
68022         * config/srclist-update: was running fixlicense twice, which caused
68023                 texinfo.tex to be nullified for some reason.  Simplify,
68024                 $gplsrc is no longer needed as far as I can see?
68025
68026 2003-07-16  Jim Meyering  <jim@meyering.net>
68027
68028         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
68029
68030 2003-07-15  Paul Eggert  <eggert@twinsun.com>
68031
68032         * config/srclist.txt: Get the following files from gettext-runtime/intl
68033         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
68034         ref-del.sin.  From Bruno Haible.
68035         * config/srclist-update (fixfile): Change grep pattern again, since the
68036         previous fix didn't work (there was another trailing $).  Use
68037         '[$]' to escape the $s.
68038
68039 2003-07-15  Karl Berry  <karl@gnu.org>
68040
68041         * lib/vasnprintf.c: update from gettext.
68042
68043 2003-07-15  Karl Berry  <karl@gnu.org>
68044
68045         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
68046         gets expanded when surrounded by '$'.
68047
68048 2003-07-15  Jim Meyering  <jim@meyering.net>
68049
68050         * modules/save-cwd: Don't depend on error.  From Derek Price.
68051
68052 2003-07-15  Jim Meyering  <jim@meyering.net>
68053
68054         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
68055
68056 2003-07-14  Simon Josefsson  <jas@extundo.com>
68057
68058         * modules/mempcpy: New file.
68059         * MODULES.html.sh (func_all_modules): Add mempcpy.
68060
68061 2003-07-14  Simon Josefsson  <jas@extundo.com>
68062
68063         * m4/mempcpy.m4: New file.
68064
68065 2003-07-14  Simon Josefsson  <jas@extundo.com>
68066
68067         * lib/mempcpy.h: New file.
68068         * lib/mempcpy.c: New file.
68069
68070 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68071
68072         * modules/getdate, modules/posixtm: Depend on mktime.
68073
68074 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68075
68076         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
68077         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
68078         unicodeio.c, unicodeio.h, unlocked-io.h:
68079         Switch from LGPL to GPL.
68080
68081 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68082
68083         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
68084         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
68085         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
68086         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
68087         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
68088         updated automatically by ../config/srclist-update.  This changes
68089         their license from LPGL to GPL.
68090
68091 2003-07-14  Paul Eggert  <eggert@twinsun.com>
68092
68093         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
68094         assumed to refer to the root of the most recent stable gettext version.
68095         * config/srclistvars.sh: Add defaults for eggert.
68096         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
68097         Match "This program" as well as "The program".  This is needed
68098         for gettext.
68099
68100 2003-07-14  Jim Meyering  <jim@meyering.net>
68101
68102         Don't emit diagnostics.  Let callers do that.
68103         * lib/save-cwd.c: Don't include "error.h".
68104         (save_cwd): Don't call error.  Ensure that errno is valid
68105         when returning nonzero.
68106
68107         * lib/save-cwd.h (restore_cwd): Update prototype.
68108         * lib/save-cwd.c (restore_cwd): Remove two parameters.
68109         Simplify.  Don't call error upon failure.  Let callers do that.
68110         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
68111         when auditing is enabled.  But don't bother updating the #if.
68112
68113 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
68114
68115         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
68116         it breaks C++ compilation.
68117         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
68118
68119 2003-07-10  Simon Josefsson  <jas@extundo.com>
68120
68121         * modules/strchrnul (Makefile.am): Add strchrnul.h.
68122
68123 2003-07-10  Jim Meyering  <jim@meyering.net>
68124
68125         * m4/clock_time.m4: Remove trailing blank.
68126         * m4/intmax_t.m4: Likewise.
68127
68128 2003-07-10  Jim Meyering  <jim@meyering.net>
68129
68130         * lib/vasnprintf.c: Remove trailing blanks.
68131         Make cpp indentation consistent.
68132
68133 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68134
68135         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
68136         posixver.c, strftime.c, strnlen.c, strverscmp.c:
68137         Switch from LGPL to GPL.
68138
68139 2003-07-09  Paul Eggert  <eggert@twinsun.com>
68140
68141         * config/srclist.txt: Sort sublists.  Add
68142         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
68143         that differ from gnulib for one reason or another; we'd like this list
68144         to be smaller but for now let's document what we have.
68145
68146 2003-07-08  Paul Eggert  <eggert@twinsun.com>
68147
68148         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
68149         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
68150         and sweeter "eval x=$x".
68151         * config/srclist.txt: Get lib/argp* from glibc.
68152
68153 2003-07-07  Paul Eggert  <eggert@twinsun.com>
68154
68155         * lib/mktime.c: Fix some boundary cases and remove need for floating
68156         point.
68157
68158         Issue a compile-time diagnostic if time_t is floating point, or if
68159         two's complement arithmetic is not in effect, or if arithmetic
68160         right shift does not propagate the sign.  These assumptions were
68161         all in the original code but they weren't checked.
68162
68163         (TIME_T_MIDPOINT, verify): New macros.
68164         (__isleap): Remove; it has integer overflow problems.
68165         (leapyear): New function, without those problems.
68166         (ydhms_tm_diff): Remove; splitting into two parts.
68167         (ydhms_diff): New function, containing the arithmetic part of
68168         the old ydhms_tm_diff function.  Issue a compile-time
68169         diagnostic if we are not using C99 integer division.
68170         Avoid casts when possible.
68171         (guess_time_tm): New function, containing the checking part of
68172         the old ydhms_tm_diff function.  Return the new value, rather than
68173         the difference between it and the old.  Accept a new argument T
68174         so that *T specifies the old value.  Check for overflow in the result.
68175
68176         (__mktime_internal): Use a time_t offset, not a long int offset.
68177         This undoes the 2003-06-04 change, which is no longer needed now
68178         that we have better overflow checking.
68179         (localtime_offset): Likewise.
68180
68181         (__mktime_internal): Avoid harmful overflow on hosts where time_t
68182         and long are 64-bit but int is only 32-bit.
68183         (ydhms_diff): Use long int to store year1 and yday1.
68184         Issue a compile-time diagnostic if long int is not wide enough.
68185
68186         (__mktime_internal): Use long int to store adjusted year and yday.
68187         Use plain C rather than preprocessor commands, if that doesn't
68188         affect efficiency.
68189         Check for overflow (and try to repair) after each probe
68190         rather than checking only at the very end.  This avoids some bugs
68191         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
68192         does not equal GMT offset at maximum time).
68193         Use integer to check for overflow rather than floating point; this
68194         is more portable to non-IEEE hosts, and is a tad faster.
68195         When we detect that we are oscillating between two values,
68196         don't check whether tm_isdst has the requested value, since
68197         we already know the answer.  When tm_isdst has the wrong value,
68198         use a different heuristic to find the right one, based on the
68199         extreme values actually observed in practice in tz2003a,
68200         rather than the (overly optimistic) "previous 3 calendar quarters".
68201
68202         (not_equal_tm, print_tm, check_result): Use "const T" rather than
68203         "T const" to accommodate glibc style.
68204         (check_result): Use less-confusing report format.  "long" -> "long int.
68205         (main): Likewise.
68206         Don't loop if the iteration overflows time_t.
68207         Allow a negative step in the iteration.
68208
68209 2003-07-06  Karl Berry  <karl@gnu.org>
68210
68211         * config/depcomp: update from automake.
68212         * config/config.sub: update from prep.
68213
68214 2003-07-03  Karl Berry  <karl@gnu.org>
68215
68216         * config/config.guess: update from prep.
68217
68218 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68219
68220         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
68221         xreadlink.c now includes it unconditionally.
68222
68223 2003-07-01  Paul Eggert  <eggert@twinsun.com>
68224
68225         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
68226         having it depend on HAVE_SYS_TYPES_H.
68227
68228 2003-07-01  Bruno Haible  <bruno@clisp.org>
68229
68230         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
68231         <sys/types.h> should be sufficient.
68232         Reported by Paul Eggert.
68233
68234 2003-06-26  Karl Berry  <karl@gnu.org>
68235
68236         * config/depcomp: update from automake.
68237
68238 2003-06-26  Bruno Haible  <bruno@clisp.org>
68239
68240         * modules/human: Depend on module stdbool.
68241
68242 2003-06-25  Bruno Haible  <bruno@clisp.org>
68243
68244         * modules/readlink: New file.
68245         * modules/xreadlink: Depend on it.
68246         * MODULES.html.sh (func_all_modules): Add readlink.
68247
68248 2003-06-25  Bruno Haible  <bruno@clisp.org>
68249
68250         * m4/readlink.m4: New file.
68251
68252 2003-06-25  Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/readlink.c: New file.
68255
68256 2003-06-22  Karl Berry  <karl@gnu.org>
68257
68258         * config/srclist.txt: update mkinstalldirs from automake.
68259         * config/mkinstalldirs: update.
68260
68261 2003-06-22  Bruno Haible  <bruno@clisp.org>
68262
68263         Portability to mingw32.
68264         * m4/ssize_t.m4: New file, from GNU gettext.
68265         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
68266         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
68267
68268 2003-06-22  Bruno Haible  <bruno@clisp.org>
68269
68270         * modules/safe-read: Add m4/ssize_t.m4.
68271         * modules/xreadlink: Add m4/ssize_t.m4.
68272
68273 2003-06-20  Bruno Haible  <bruno@clisp.org>
68274
68275         Assume C89, so PARAMS isn't needed.
68276         * lib/unicodeio.h (PARAMS): Remove.
68277         * lib/unicodeio.c: Don't use PARAMS.
68278
68279 2003-06-18  Karl Berry  <karl@gnu.org>
68280
68281         * config/config.{guess,sub}: update from prep.
68282
68283 2003-06-18  Jim Meyering  <jim@meyering.net>
68284
68285         Merge changes from coreutils.
68286         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68287         Remove explicit declarations of xmalloc and realloc.
68288         Include xalloc.h.
68289         (read_utmp): Remove anachronistic cast of xmalloc.
68290
68291 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68292
68293         Assume C89, so PARAMS isn't needed.
68294         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68295         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68296         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68297         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68298         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68299         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68300         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68301         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68302         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68303         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68304         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68305         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68306         no longer needed. Anyway, config.h should always be included before any
68307         other file.
68308
68309 2003-06-11  Simon Josefsson  <jas@extundo.com>
68310
68311         * modules/sysexits: New file.
68312         * MODULES.html.sh (func_all_modules): Add sysexits.
68313
68314 2003-06-11  Simon Josefsson  <jas@extundo.com>
68315
68316         * lib/sysexit_.h: New file.
68317
68318 2003-06-11  Derek Price  <derek@ximbiot.com>
68319
68320         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68321         necessary.
68322
68323 2003-06-11  Bruno Haible  <bruno@clisp.org>
68324
68325         * m4/sysexits.m4: New file.
68326
68327 2003-06-10  Simon Josefsson  <jas@extundo.com>
68328
68329         * lib/argp.h: New file, from glibc.
68330         * lib/argp-ba.c: New file, from glibc.
68331         * lib/argp-eexst.c: New file, from glibc.
68332         * lib/argp-fmtstream.c: New file, from glibc.
68333         * lib/argp-fmtstream.h: New file, from glibc.
68334         * lib/argp-fs-xinl.c: New file, from glibc.
68335         * lib/argp-help.c: New file, from glibc.
68336         * lib/argp-namefrob.h: New file, from glibc.
68337         * lib/argp-parse.c: New file, from glibc.
68338         * lib/argp-pv.c: New file, from glibc.
68339         * lib/argp-pvh.c: New file, from glibc.
68340         * lib/argp-xinl.c: New file, from glibc.
68341
68342 2003-06-10  Simon Josefsson  <jas@extundo.com>
68343
68344         * modules/strchrnul: New file.
68345
68346 2003-06-10  Simon Josefsson  <jas@extundo.com>
68347
68348         * modules/argp: New file.
68349
68350 2003-06-10  Simon Josefsson  <jas@extundo.com>
68351
68352         * m4/strchrnul.m4: New file.
68353
68354 2003-06-10  Simon Josefsson  <jas@extundo.com>
68355
68356         * lib/strchrnul.h: New file.
68357         * lib/strchrnul.c: New file.
68358
68359 2003-06-10  Bruno Haible  <bruno@clisp.org>
68360
68361         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68362
68363 2003-06-07  Karl Berry  <karl@gnu.org>
68364
68365         * config/config.{guess,sub}: update from prep.
68366
68367 2003-06-07  Jim Meyering  <jim@meyering.net>
68368
68369         * modules/strtod: Use $(...) notation, not @...@ for
68370         AC_REPLACE'd variables.
68371         * modules/localcharset: Likewise.
68372
68373 2003-06-07  Jim Meyering  <jim@meyering.net>
68374
68375         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68376         in place of my name in the copyright comment.
68377         Remove definition and uses of __P.
68378
68379         From coreutils.
68380         * lib/stat.c: Don't declare xmalloc explicitly.
68381         Instead, include "xalloc.h".
68382         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68383         xrealloc, and xcalloc return values.
68384         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68385         Improve comment.
68386         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68387
68388 2003-06-07  Bruno Haible  <bruno@clisp.org>
68389
68390         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68391         avoid AC_CONFIG_LINKS.
68392         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68393         fnmatch.h, to avoid AC_CONFIG_LINKS.
68394         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68395
68396 2003-06-07  Bruno Haible  <bruno@clisp.org>
68397
68398         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68399         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68400         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68401         directory.
68402         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68403         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68404         directory.
68405
68406 2003-06-06  Jim Meyering  <jim@meyering.net>
68407
68408         Merge from coreutils.
68409         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68410         Consolidate declarations and initializations of *_base* locals.
68411
68412         Merge from coreutils.
68413         This avoids a core dump on systems without GNU putenv,
68414         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68415         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68416         (unsetenv): New static function, from GNU libc.
68417         (rpl_putenv): Use it.
68418
68419         * lib/modechange.c: Remove trailing blanks.
68420
68421         Merge from coreutils.
68422         * lib/fsusage.c: Remove declaration of statfs.
68423         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68424
68425         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68426
68427 2003-06-06  Jim Meyering  <jim@meyering.net>
68428
68429         * lib/stdbool_.h: Renamed from stdbool.h.in.
68430
68431 2003-06-06  Jim Meyering  <jim@meyering.net>
68432             Bruno Haible  <bruno@clisp.org>
68433
68434         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68435         Adjust Makefile.am snippet not to redirect directly to target.
68436         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68437
68438 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68439
68440         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68441         mismatch, look in future quarters as well as past.  This fixes a
68442         bug when processing fall-backwards gaps immediately after a long
68443         period of daylight-saving time.
68444
68445         * lib/mktime.c: Assume freestanding C89 or better.
68446         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68447         (__P): Remove; not used.
68448         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68449         (mktime, not_equal_tm, print_tm, check_result,
68450         main): Use prototypes.  Use const * where appropriate.
68451         (main): Fix typo in testing code that uncovered by above changes.
68452         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68453
68454 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68455
68456         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68457         locale.h, localeconv.  This merges changes from coreutils.
68458
68459         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68460         It can be removed after the next Autoconf is released.
68461         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68462         needed.
68463
68464 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68465
68466         * lib/mktime.c: Fix Debian bug 177940
68467         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68468         (localtime_offset): Now long int, not time_t, because we want it
68469         to be guaranteed to be signed.  All uses changed.
68470         (__mktime_internal): If overflow would occur when adding offset,
68471         don't add it.
68472
68473         Merge 'human' changes from coreutils.  Rewrite to support
68474         locale-specific notations like thousands separators.
68475         * lib/human.c: Simplify authorship notice.
68476         Include human.h immediately after config.h.
68477         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68478         <limits.h>: Do not include, since human.h does.
68479         (SIZE_MAX, UINTMAX_MAX): New macros.
68480         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68481         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68482         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68483         (power_letter): Renamed from suffixes.
68484         (generate_suffix_backwards): Remove.
68485         (adjust_value): Now takes int style (because of human.h changes)
68486         and long double value (for greater precision on some platforms).
68487         (group_number): New function.
68488         (human_readable): Use it.  Use integer options, not enum.
68489         Put the options before the sizes in the arg list.
68490         Support all the new options.
68491         The old human_readable function has been removed;
68492         use inttostr.h instead.
68493         (human_readable, default_block_size, humblock):
68494         Use uintmax_t, not int, for block sizes.
68495         (human_readable_inexact, block_size_types): Remove.
68496         (block_size_opts): New constant.
68497         (human_options): Renamed from human_block_size, with new signature
68498         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68499         * lib/human.h: Add copyright and authorship notice.
68500         Include <limits.h> and <stdbool.h> unconditionally.
68501         (PARAMS): Remove.  All uses removed.
68502         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68503         (enum human_inexact_style): Remove tag; now a nameless enum.
68504         (human_floor, human_ceiling, human_round_to_even): Now have
68505         values 2, 0, 1 rather than -1, 1, 0.
68506         (human_group_digits, human_suppress_point_zero, human_autoscale,
68507         human_base_1024, human_SI, human_B): New constants.
68508         (human_readable_inexact, human_block_size): Remove.
68509         (human_readable): Size args are now uintmax_t, not int.
68510         (human_options): New decl.
68511
68512         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68513         unnecessary now that we assume C89 or better.  This change
68514         imported from coreutils.
68515
68516         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68517         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68518         in the 2003-05-30 sync from glibc.
68519
68520         .h files should stand alone, but we shouldn't include <sys/types.h>
68521         if we can get away with just <stddef.h>.
68522
68523         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68524         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68525         rather than <sys/types.h>, as we merely need size_t.
68526         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68527         to get size_t.
68528         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68529         Include <stdio.h>, to get FILE.
68530         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68531         memcasecmp.h has included <stddef.h> and all we need is size_t.
68532         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68533         our interface, instead of including <sys/types.h>
68534
68535 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68536
68537         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68538         now, as glibc mktime is buggy on non-glibc systems.
68539
68540 2003-06-03  Karl Berry  <karl@gnu.org>
68541
68542         * config/config.sub: update from prep.
68543
68544 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68545
68546         [from coreutils]
68547         Fix some minor time-related bugs with POSIX time arguments.
68548         Some valid time stamps were being rejected (notably -1, and
68549         time stamps before 1900 on 64-bit hosts).  And some invalid
68550         time stamps were being accepted, e.g. September 31.
68551
68552         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68553         that we can return (time_t) -1 successfully.
68554         * lib/posixtm.c: Likewise.
68555         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68556         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68557         (t): Remove static var.
68558         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68559         of static var.  All uses changed.
68560         (year): Do not reject years before 1900; they can occur with
68561         64-bit time_t.
68562         (posix_time_parse): Do not check for out-of-range components;
68563         that is now the caller's responsibility, since our checks were
68564         only approximations.
68565         (posixtime): Use mktime to check for out-of-range components,
68566         since it knows them exactly.
68567         If mktime returns (time_t) -1, check whether an error actually occurred
68568         by invoking localtime on -1.
68569         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68570         posixtime failures better.
68571         Improve the test data (in comments only).
68572
68573 2003-06-02  Karl Berry  <karl@gnu.org>
68574
68575         * config/mkinstalldirs (version): new variable.
68576         (--version): new option.
68577         (usage): improve message.
68578
68579 2003-05-30  Karl Berry  <karl@gnu.org>
68580
68581         * lib/mktime.c: update from libc.
68582
68583 2003-05-30  Bruno Haible  <bruno@clisp.org>
68584
68585         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68586         * config/config.rpath: Upgrade to gettext-0.12.1.
68587
68588 2003-05-30  Bruno Haible  <bruno@clisp.org>
68589
68590         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68591         * m4/nls.m4: New file, from gettext-0.12.1.
68592         * m4/po.m4: New file, from gettext-0.12.1.
68593         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68594
68595 2003-05-30  Bruno Haible  <bruno@clisp.org>
68596
68597         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68598         * lib/localcharset.h: Likewise.
68599         * lib/localcharset.c: Likewise.
68600
68601 2003-05-29  Karl Berry  <karl@gnu.org>
68602
68603         * config/config.rpath: update from gettext.
68604
68605 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68606
68607         Assume the headers required for C89 freestanding compilers.
68608         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68609         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68610         * m4/human.m4 (gl_HUMAN): Likewise.
68611         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68612         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68613         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68614         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68615         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68616         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68617
68618 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68619
68620         Assume the headers required for C89 freestanding compilers.
68621         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68622         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68623         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68624         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68625         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68626         define, since <limits.h> is guaranteed to do that.
68627         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68628         * lib/exclude.c: Include <stdbool.h> unconditionally.
68629         * lib/tempname.c: Include <stddef.h> unconditionally.
68630         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68631         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68632         <stddef.h> does that.
68633         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68634         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68635         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68636         needed.
68637         * lib/xstrtol.c: Likewise.
68638         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68639         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68640
68641         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68642         warnings on some platforms.
68643
68644         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68645         arbitrarily.
68646
68647 2003-05-26  Jim Meyering  <jim@meyering.net>
68648
68649         Merge in a change from coreutils:
68650         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68651         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68652         that condition, rather than `-1' which is slightly misleading.
68653         Change the name of the cache variable to have the gl_ prefix.
68654         Prompted by a patch from Richard Dawe for DJGPP.
68655
68656 2003-05-24  Karl Berry  <karl@gnu.org>
68657
68658         * config/config.guess: update from prep.
68659
68660 2003-05-22  Karl Berry  <karl@gnu.org>
68661
68662         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68663
68664 2003-05-20  Karl Berry  <karl@gnu.org>
68665
68666         * config/config.guess: update from prep.
68667
68668 2003-05-18  Karl Berry  <karl@gnu.org>
68669
68670         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68671         might actually be set by the user.
68672
68673         * config/depcomp, install-sh, mdate-sh: update from automake.
68674
68675 2003-05-17  Bruno Haible  <bruno@clisp.org>
68676
68677         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68678         invalid expansion for AC_EGREP_CPP.
68679         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68680         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68681         Suggested by Akim Demaille <akim@epita.fr> in
68682         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68683
68684 2003-05-12  Jim Meyering  <jim@meyering.net>
68685
68686         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68687         the space-padded-by-default conversion specifiers, %e, %k, %l.
68688
68689 2003-05-12  Bruno Haible  <bruno@clisp.org>
68690
68691         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68692         the string is longer than 4 KB.
68693
68694 2003-05-11  Karl Berry  <karl@gnu.org>
68695
68696         * config/config.{guess,sub}: update from prep.
68697
68698 2003-05-09  Bruno Haible  <bruno@clisp.org>
68699
68700         * modules/error: Add m4/strerror_r.m4 to file list.
68701
68702 2003-05-03  Bruno Haible  <bruno@clisp.org>
68703
68704         Upgrade to Unicode-4.0.
68705         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68706         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68707         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68708         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68709         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68710         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68711         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68712         Change width of U+E0100..U+E01EF from 1 to 0.
68713
68714 2003-04-25  Jim Meyering  <jim@meyering.net>
68715
68716         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68717         of type size_t, not int.
68718
68719 2003-04-25  Bruno Haible  <bruno@clisp.org>
68720
68721         * lib/copy-file.c: Include <stddef.h>, for size_t.
68722
68723 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68724
68725         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68726         code which expansion is under static control.  Patch imported from
68727         Akim Demaille's patch to Bison; see
68728         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68729
68730 2003-04-14  Bruno Haible  <bruno@clisp.org>
68731
68732         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68733
68734 2003-04-11  Jim Meyering  <jim@meyering.net>
68735
68736         Merge changes from Coreutils.
68737
68738         2003-03-22  Jim Meyering  <jim@meyering.net>
68739
68740         * lib/strftime.c (widen): Cast alloca return value to proper type.
68741
68742         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68743
68744         From GNU libc.
68745         * lib/strftime.c (my_strftime): Handle very large width
68746         specifications for numeric values correctly.  Improve checks for
68747         overflow.
68748
68749         2003-01-19  Jim Meyering  <jim@meyering.net>
68750
68751         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68752         definitions.
68753         (nl_get_alt_digit) [! defined my_strftime]: Define.
68754         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68755         _nl_get_alt_digit and _nl_get_walt_digit.
68756
68757         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68758         libc. These changes have no effect outside of _LIBC.
68759
68760 2003-04-10  Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/findprog: New file.
68763         * MODULES.html.sh (func_all_modules): Add it.
68764
68765 2003-04-10  Bruno Haible  <bruno@clisp.org>
68766
68767         * m4/findprog.m4: New file.
68768         * m4/eaccess.m4: New file.
68769
68770 2003-04-10  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/findprog.h: New file, from GNU gettext.
68773         * lib/findprog.c: New file, from GNU gettext.
68774
68775 2003-04-05  Jim Meyering  <jim@meyering.net>
68776
68777         Merge changes from Coreutils.
68778
68779         * lib/exclude.h (PARAMS): Remove definition and uses.
68780         * lib/exclude.c: Remove uses of `PARAMS'.
68781
68782         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68783         Add test-cases for DOS filenames. Declare program_name.
68784         (main): Set up program_name.  Patch by Rich Dawe.
68785
68786         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68787         error from mntctl.
68788         Use mntctl's return value to drive the entry-processing loop, since
68789         we can't rely on the value of the vmt_length member in the last
68790         entry.  On some systems doing so could result in exhausting
68791         virtual memory.  Based in part on a patch from Mike Jetzer.
68792
68793 2003-04-04  Bruno Haible  <bruno@clisp.org>
68794
68795         * modules/linebreak: New file.
68796         * MODULES.html.sh (func_all_modules): Add it.
68797
68798 2003-04-04  Bruno Haible  <bruno@clisp.org>
68799
68800         * m4/linebreak.m4: New file.
68801
68802 2003-04-04  Bruno Haible  <bruno@clisp.org>
68803
68804         * lib/linebreak.h: New file, from GNU gettext.
68805         * lib/linebreak.c: New file, from GNU gettext with slight
68806         modifications.
68807         * lib/lbrkprop.h: New file, from GNU gettext.
68808
68809 2003-04-03  Bruno Haible  <bruno@clisp.org>
68810
68811         * modules/utf8-ucs4: New file.
68812         * modules/utf16-ucs4: New file.
68813         * modules/ucs4-utf8: New file.
68814         * modules/ucs4-utf16: New file.
68815         * MODULES.html.sh (func_all_modules): Add them.
68816
68817 2003-04-03  Bruno Haible  <bruno@clisp.org>
68818
68819         * m4/utf-ucs4.m4: New file.
68820         * m4/ucs4-utf.m4: New file.
68821
68822 2003-04-03  Bruno Haible  <bruno@clisp.org>
68823
68824         * lib/utf8-ucs4.h: New file, from GNU gettext.
68825         * lib/utf16-ucs4.h: New file, from GNU gettext.
68826         * lib/ucs4-utf8.h: New file, from GNU gettext.
68827         * lib/ucs4-utf16.h: New file, from GNU gettext.
68828
68829 2003-04-02  Bruno Haible  <bruno@clisp.org>
68830
68831         * modules/binary-io: New file.
68832         * MODULES.html.sh (func_all_modules): Add it.
68833
68834 2003-04-02  Bruno Haible  <bruno@clisp.org>
68835
68836         * lib/binary-io.h: New file, from GNU gettext.
68837
68838 2003-04-01  Bruno Haible  <bruno@clisp.org>
68839
68840         * modules/pathname: New file.
68841         * MODULES.html.sh (func_all_modules): Add it.
68842
68843 2003-04-01  Bruno Haible  <bruno@clisp.org>
68844
68845         * lib/pathname.h: New file, from GNU gettext.
68846         * lib/concatpath.c: New file, from GNU gettext.
68847
68848 2003-03-30  Bruno Haible  <bruno@clisp.org>
68849
68850         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68851
68852 2003-03-30  Bruno Haible  <bruno@clisp.org>
68853
68854         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68855         function chown() doesn't exist.
68856
68857 2003-03-28  Bruno Haible  <bruno@clisp.org>
68858
68859         * modules/copy-file: New file.
68860         * MODULES.html.sh (func_all_modules): Add it.
68861
68862 2003-03-28  Bruno Haible  <bruno@clisp.org>
68863
68864         * m4/copy-file.m4: New file.
68865
68866 2003-03-28  Bruno Haible  <bruno@clisp.org>
68867
68868         * lib/copy-file.h: New file, from GNU gettext.
68869         * lib/copy-file.c: New file, from GNU gettext.
68870
68871 2003-03-18  Jim Meyering  <jim@meyering.net>
68872
68873         * lib/quote.c (quote_n): Fix typo in comment.
68874
68875 2003-03-18  Bruno Haible  <bruno@clisp.org>
68876
68877         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68878         checking.
68879         * m4/onceonly_2_57.m4: Likewise.
68880
68881 2003-03-17  Bruno Haible  <bruno@clisp.org>
68882
68883         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68884         (m4_quote): Remove macro.
68885         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68886
68887 2003-03-14  Jim Meyering  <jim@meyering.net>
68888
68889         Merge changes from Coreutils.
68890         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68891         to be const, in order to avoid warnings.
68892         (obstack_room): Likewise.
68893         (obstack_empty_p): Likewise.
68894
68895 2003-03-14  Bruno Haible  <bruno@clisp.org>
68896
68897         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68898         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68899
68900 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68901
68902         Merge changes from Bison.
68903         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68904         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68905         when compiling Bison 1.875's `bitset bset = obstack_alloc
68906         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68907         * lib/hash.c: Include <stdbool.h> unconditionally.
68908
68909 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68910
68911         * m4/onceonly.m4 (m4_quote): New macro.
68912         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68913         Quote AC_FOREACH variable-expansions properly.
68914
68915 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68916
68917         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68918
68919 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68920
68921         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68922         Reported by Bruce Becker; see:
68923         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68924
68925 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68926             Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68929         Reported by John Hughes, see
68930         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68931
68932 2003-02-20  Bruno Haible  <bruno@clisp.org>
68933
68934         * MODULES.html.sh (func_all_modules): Add poll.
68935
68936 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68937
68938         * modules/poll: New file.
68939
68940 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68941
68942         * lib/poll_.h: New file.
68943         * lib/poll.c: New file.
68944
68945 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68946
68947         * m4/poll.m4: New file.
68948
68949 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68950
68951         * modules/mathl: New file.
68952
68953 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68954
68955         * lib/mathl.h: New file.
68956         * lib/acosl.c: New file.
68957         * lib/asinl.c: New file.
68958         * lib/atanl.c: New file.
68959         * lib/ceill.c: New file.
68960         * lib/cosl.c: New file.
68961         * lib/expl.c: New file.
68962         * lib/floorl.c: New file.
68963         * lib/frexpl.c: New file.
68964         * lib/ldexpl.c: New file.
68965         * lib/logl.c: New file.
68966         * lib/sincosl.c: New file.
68967         * lib/sinl.c: New file.
68968         * lib/sqrtl.c: New file.
68969         * lib/tanl.c: New file.
68970         * lib/trigl.c: New file.
68971         * lib/trigl.h: New file.
68972
68973 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68974
68975         * m4/mathl.m4: New file.
68976
68977 2003-02-18  Bruno Haible  <bruno@clisp.org>
68978
68979         * MODULES.html.sh (func_all_modules): Add mathl.
68980
68981 2003-02-17  Bruno Haible  <bruno@clisp.org>
68982
68983         * modules/mkdtemp: New module.
68984         * MODULES.html.sh (func_all_modules): Add it.
68985
68986 2003-02-17  Bruno Haible  <bruno@clisp.org>
68987
68988         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68989
68990 2003-02-17  Bruno Haible  <bruno@clisp.org>
68991
68992         * lib/mkdtemp.h: New file, from GNU gettext.
68993         * lib/mkdtemp.c: New file, from GNU gettext.
68994
68995 2003-02-02  Jim Meyering  <jim@meyering.net>
68996
68997         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68998         e.g. glibc-2.2.93.
68999
69000 2003-01-31  Bruno Haible  <bruno@clisp.org>
69001
69002         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
69003         'rpl_rename'.
69004         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
69005         'rpl_strnlen'.
69006         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
69007         'rpl_strtod'.
69008         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
69009         'rpl_utime'.
69010
69011 2003-01-31  Bruno Haible  <bruno@clisp.org>
69012
69013         * lib/rename.c: #undef rename before defining rpl_rename.
69014         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
69015
69016 2003-01-30  Bruno Haible  <bruno@clisp.org>
69017
69018         * modules/vasnprintf, modules/vasprintf: New modules.
69019         * MODULES.html.sh (func_all_modules): Add them.
69020
69021 2003-01-30  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/signed.m4: New file, from GNU gettext.
69024         * m4/longdouble.m4: New file, from GNU gettext.
69025         * m4/wchar_t.m4: New file, from GNU gettext.
69026         * m4/wint_t.m4: New file, from GNU gettext.
69027         * m4/vasnprintf.m4: New file.
69028         * m4/vasprintf.m4: New file.
69029
69030 2003-01-30  Bruno Haible  <bruno@clisp.org>
69031
69032         * lib/printf-args.h: New file, from GNU gettext.
69033         * lib/printf-args.c: New file, from GNU gettext.
69034         * lib/printf-parse.h: New file, from GNU gettext.
69035         * lib/printf-parse.c: New file, from GNU gettext.
69036         * lib/vasnprintf.h: New file, from GNU gettext.
69037         * lib/vasnprintf.c: New file, from GNU gettext.
69038         * lib/asnprintf.c: New file, from GNU gettext.
69039         * lib/vasprintf.h: New file, from GNU gettext with modifications.
69040         * lib/vasprintf.c: New file, from GNU gettext.
69041         * lib/asprintf.c: New file, from GNU gettext.
69042
69043 2003-01-29  Bruno Haible  <bruno@clisp.org>
69044
69045         * modules/stpncpy: New module.
69046         * MODULES.html.sh (func_all_modules): Add it.
69047
69048 2003-01-29  Bruno Haible  <bruno@clisp.org>
69049
69050         * m4/stpncpy.m4: New file.
69051
69052 2003-01-29  Bruno Haible  <bruno@clisp.org>
69053
69054         * lib/stpncpy.h: New file, from GNU gettext with modifications.
69055         * lib/stpncpy.c: New file, from GNU gettext with modifications.
69056
69057 2003-01-28  Bruno Haible  <bruno@clisp.org>
69058
69059         * modules/c-ctype: New module.
69060         * MODULES.html.sh (func_all_modules): Add it.
69061
69062 2003-01-28  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
69065         Paul Eggert.
69066         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
69067         Paul Eggert.
69068
69069 2003-01-27  Bruno Haible  <bruno@clisp.org>
69070
69071         * modules/xsetenv: New module.
69072         * MODULES.html.sh (func_all_modules): Add it.
69073
69074 2003-01-27  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/xsetenv.h: New file, from GNU gettext.
69077         * lib/xsetenv.c: New file, from GNU gettext.
69078
69079 2003-01-23  Jim Meyering  <jim@meyering.net>
69080
69081         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
69082         from working on systems without dirfd (at least Irix and OSF1/Tru64).
69083
69084 2003-01-23  Bruno Haible  <bruno@clisp.org>
69085
69086         * modules/minmax: New module.
69087         * MODULES.html.sh (func_all_modules): Add it.
69088
69089 2003-01-23  Bruno Haible  <bruno@clisp.org>
69090
69091         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
69092         Eggert.
69093
69094 2003-01-22  Bruno Haible  <bruno@clisp.org>
69095
69096         * modules/exit: New module.
69097         * MODULES.html.sh (func_all_modules): Add it.
69098
69099 2003-01-22  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/exit.h: New file, from GNU gettext.
69102
69103 2003-01-19  Bruno Haible  <bruno@clisp.org>
69104
69105         * gnulib-tool: Recognize option --extract-maintainer.
69106         (func_get_maintainer): New function.
69107         * modules/*: Add Maintainer entry.
69108
69109 2003-01-16  Jim Meyering  <jim@meyering.net>
69110
69111         * m4/regex.m4: The `regex' struct is both input and output.
69112         Initialize it before each use.  Patch by Tim Waugh.
69113
69114 2003-01-16  Bruno Haible  <bruno@clisp.org>
69115
69116         * MODULES.html.sh: Add a table of contents. Add the module name as
69117         leftmost column. Add hyperlinks.
69118
69119 2003-01-15  Bruno Haible  <bruno@clisp.org>
69120
69121         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
69122
69123 2003-01-15  Bruno Haible  <bruno@clisp.org>
69124
69125         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
69126         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
69127         suffix.
69128
69129 2003-01-15  Bruno Haible  <bruno@clisp.org>
69130
69131         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
69132
69133 2003-01-15  Bruno Haible  <bruno@clisp.org>
69134
69135         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
69136         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
69137
69138 2003-01-14  Jim Meyering  <jim@meyering.net>
69139
69140         * lib/same.c (same_name): Tweak a comment.
69141
69142 2003-01-14  Bruno Haible  <bruno@clisp.org>
69143
69144         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
69145         when a string comparison is sufficient.
69146
69147 2003-01-14  Bruno Haible  <bruno@clisp.org>
69148
69149         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
69150         'unsigned int'.
69151
69152 2003-01-14  Bruno Haible  <bruno@clisp.org>
69153
69154         * lib/hash-pjw.c: Add comment about low quality of this function.
69155
69156 2003-01-13  Bruno Haible  <bruno@clisp.org>
69157
69158         * modules/stpcpy: Distribute lib/stpcpy.h.
69159         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
69160
69161 2003-01-13  Bruno Haible  <bruno@clisp.org>
69162
69163         * modules/*: Add a description.
69164         * modules/strpbrk: Fix Makefile.am snippet.
69165         * modules/strtoimax: Fix dependencies.
69166         * modules/strtoumax: Likewise.
69167
69168 2003-01-13  Bruno Haible  <bruno@clisp.org>
69169
69170         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
69171         * modules/alloca (Makefile.am): All object files depend on alloca.h.
69172         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
69173
69174 2003-01-13  Bruno Haible  <bruno@clisp.org>
69175
69176         * gnulib-tool (func_create_testdir): Store config/* files in the main
69177         directory.
69178         * config.rpath: Move to ...
69179         * config/config.rpath: ... here.
69180         * modules/gettext: Contains config/config.rpath, not config.rpath.
69181         * modules/iconv: Likewise.
69182
69183 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69184
69185         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69186         to avoid collisions with libcurses and libreadline.
69187
69188         * m4/getstr.m4: Remove.
69189         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
69190
69191 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69192
69193         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69194         to avoid collisions with libcurses and libreadline.
69195
69196         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
69197         * lib/getstr.h, getstr.c: Remove.
69198         * lib/getline.c: Include "getline.h", to check interface.
69199         Move body of old getstr.c here: this defines MIN_CHUNK and
69200         declares getdelim2, which is renamed from getstr.
69201         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
69202
69203         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
69204         All uses changed.
69205         * lib/linebuffer.h: Likewise.
69206         (readline): Remove backward-compatibility macro.
69207
69208 2003-01-12  Paul Eggert  <eggert@twinsun.com>
69209
69210         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
69211         to avoid collisions with libcurses and libreadline.
69212         * getstr: Remove.
69213         * MODULES.html.sh: Remove getstr.
69214         * modules/getline: Depend on unlocked-io, not getstr.
69215
69216 2003-01-12  Jim Meyering  <jim@meyering.net>
69217
69218         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
69219
69220 2003-01-10  Bruno Haible  <bruno@clisp.org>
69221
69222         * modules/alloca: Change Makefile.am requirements. Simplify Include
69223         requirements. Add lib/alloca_.h to file list.
69224
69225 2003-01-10  Bruno Haible  <bruno@clisp.org>
69226
69227         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
69228
69229 2003-01-10  Bruno Haible  <bruno@clisp.org>
69230
69231         * lib/alloca_.h: New file.
69232         * lib/getdate.y: Unconditionally include alloca.h.
69233         * lib/makepath.c: Likewise.
69234         * lib/setenv.c: Likewise.
69235         * lib/userspec.c: Likewise.
69236
69237 2003-01-09  Karl Berry  <karl@gnu.org>
69238
69239         * MODULES.html.sh: include `dirname $0` in PATH, to find
69240         gnulib-tool.
69241
69242 2003-01-09  Bruno Haible  <bruno@clisp.org>
69243
69244         * modules/stdbool: Change configure.ac, Makefile.am requirements.
69245         Simplify Include requirements. Add lib/stdbool.h.in to file list.
69246
69247 2003-01-09  Bruno Haible  <bruno@clisp.org>
69248
69249         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
69250
69251 2003-01-09  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/stdbool.h.in: New file.
69254
69255 2003-01-09  Bruno Haible  <bruno@clisp.org>
69256
69257         * gnulib-tool (func_all_modules): Ignore files ending in ~.
69258         * MODULES.html.sh: Likewise.
69259
69260 2003-01-08  Jim Meyering  <jim@meyering.net>
69261
69262         * lib/full-write.c: Undefine and define-away `const' after inclusion
69263         of errno.h, not before.  Suggestion from Bruno Haible.
69264
69265 2003-01-08  Bruno Haible  <bruno@clisp.org>
69266
69267         * modules/full-read: Depend on full-write.
69268
69269 2003-01-08  Bruno Haible  <bruno@clisp.org>
69270
69271         * lib/safe-read.c: Include specification header first, to ensure its
69272         selfcontainedness.
69273         * lib/full-write.c: Likewise.
69274
69275 2003-01-07  Jim Meyering  <jim@meyering.net>
69276
69277         * lib/full-write.c: Rework so that it may serve to define full_read,
69278         too.
69279         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
69280
69281 2003-01-07  Bruno Haible  <bruno@clisp.org>
69282
69283         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69284         <inttypes.h>.
69285         * lib/xstrtol.h: Likewise.
69286         * lib/xstrtoimax.c: Likewise.
69287         * lib/xstrtoumax.c: Likewise.
69288         * lib/human.h: Likewise.
69289
69290         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69291         on systems that have <inttypes.h> but not <stdint.h>.
69292
69293 2003-01-07  Bruno Haible  <bruno@clisp.org>
69294
69295         * MODULES.html.sh: Add copyright notice.
69296         (missed_files): Omit CVS directory entries.
69297         (func_module): Make it work with sed-3.02.
69298         * MODULES.txt: Remove file.
69299
69300 2003-01-06  Jim Meyering  <jim@meyering.net>
69301
69302         * lib/version-etc.c: Update year in translatable copyright string.
69303
69304 2003-01-03  Karl Berry  <karl@gnu.org>
69305
69306         * config/config.{guess,sub}: update from prep.
69307
69308 2003-01-02  Karl Berry  <karl@gnu.org>
69309
69310         * doc/COPYING.DOC: belatedly updated to 1.2.
69311
69312 2003-01-01  Karl Berry  <karl@gnu.org>
69313
69314         * gnulib-tool (func_verify_module): report module name $module in
69315         error message, not $1.
69316         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69317         be created, only if it doesn't exist.
69318         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69319
69320 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69321
69322         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69323
69324 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69325
69326         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69327         memcmp if strcoll doesn't work.
69328
69329 2002-12-31  Bruno Haible  <bruno@clisp.org>
69330
69331         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69332         nonempty.
69333
69334 2002-12-31  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/memcoll.c (STRCOLL): New macro.
69337         (memcoll): Use it.
69338
69339 2002-12-31  Bruno Haible  <bruno@clisp.org>
69340
69341         * lib/localcharset.h: New file.
69342         * lib/localcharset.c: Include it.
69343         * lib/unicodeio.c: Likewise.
69344
69345 2002-12-31  Bruno Haible  <bruno@clisp.org>
69346
69347         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69348         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69349
69350 2002-12-31  Bruno Haible  <bruno@clisp.org>
69351
69352         * lib/getline.h: Include <stddef.h>, for size_t.
69353
69354         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69355         * lib/unicodeio.c: Don't include <stddef.h>.
69356
69357 2002-12-31  Bruno Haible  <bruno@clisp.org>
69358
69359         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69360         HAVE_TM_ZONE.
69361
69362 2002-12-24  Karl Berry  <karl@gnu.org>
69363
69364         * config/config.guess: update from prep.
69365
69366 2002-12-24  Bruno Haible  <bruno@clisp.org>
69367
69368         General infrasructure.
69369         * m4/README: Rewritten.
69370         * m4/onceonly.m4: New file.
69371         * m4/onceonly_2_57.m4: New file.
69372
69373         Module atexit.
69374         * m4/atexit.m4: New file.
69375
69376         Module strtod.
69377         * m4/strtod.m4: New file.
69378
69379         Module strtol.
69380         * m4/strtol.m4: New file.
69381
69382         Module strtoul.
69383         * m4/strtoul.m4: New file.
69384
69385         Module memchr.
69386         * m4/memchr.m4: New file.
69387
69388         Module memcmp.
69389         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69390         (jm_FUNC_MEMCMP): Invoke it.
69391
69392         Module memcpy.
69393         * m4/memcpy.m4: New file.
69394
69395         Module memmove.
69396         * m4/memmove.m4: New file.
69397
69398         Module memset.
69399         * m4/memset.m4: New file.
69400
69401         Module strcspn.
69402         * m4/strcspn.m4: New file.
69403
69404         Module strpbrk.
69405         * m4/strpbrk.m4: New file.
69406
69407         Module strstr.
69408         * m4/strstr.m4: New file.
69409
69410         Module strerror.
69411         * m4/strerror.m4: New file.
69412
69413         Module mktime.
69414         * m4/mktime.m4: Renamed from jm-mktime.m4.
69415         (gl_PREREQ_MKTIME): New macro.
69416         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69417
69418         Module malloc.
69419         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69420         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69421         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69422
69423         Module realloc.
69424         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69425         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69426         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69427
69428         Module strftime.
69429         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69430         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69431         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69432         gl_TM_GMTOFF.
69433         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69434
69435         Module xalloc.
69436         * m4/xalloc.m4: New file.
69437
69438         Module alloca.
69439         * m4/alloca.m4: New file.
69440
69441         Module putenv.
69442         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69443         (jm_FUNC_PUTENV): Invoke it.
69444
69445         Module setenv.
69446         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69447         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69448         when invoked twice.
69449         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69450         gt_FUNC_SETENV.
69451
69452         Module memrchr.
69453         * m4/memrchr.m4: New file.
69454
69455         Module stpcpy.
69456         * m4/stpcpy.m4: New file.
69457
69458         Module strcase.
69459         * m4/strcase.m4: New file.
69460
69461         Module strdup.
69462         * m4/strdup.m4: New file.
69463
69464         Module strnlen.
69465         * m4/strnlen.m4: New file.
69466
69467         Module strndup.
69468         * m4/strndup.m4: New file.
69469
69470         Module xstrtod.
69471         * m4/xstrtod.m4: New file.
69472
69473         Module xstrtol.
69474         * m4/xstrtol.m4: New file.
69475
69476         Module getdate.
69477         * m4/getdate.m4: New file.
69478
69479         Module unlocked-io.
69480         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69481         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69482         * m4/jm-glibc-io.m4n: Remove file.
69483
69484         Module long-options.
69485         * m4/long-options.m4: New file.
69486
69487         Module md5.
69488         * m4/md5.m4: New file.
69489
69490         Module sha.
69491         * m4/sha.m4: New file.
69492
69493         Module getstr.
69494         * m4/getstr.m4: New file.
69495
69496         Module getline.
69497         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69498         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69499         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69500         simply getline. Infoke gl_PREREQ_GETLINE.
69501
69502         Module obstack.
69503         * m4/obstack.m4: New file.
69504
69505         Module hash.
69506         * m4/hash.m4: New file.
69507
69508         Module readtokens.
69509         * m4/readtokens.m4: New file.
69510
69511         Module strverscmp.
69512         * m4/strverscmp.m4: New file.
69513
69514         Module stdbool.
69515         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69516         OSF/1.
69517
69518         Module strtoll.
69519         * m4/strtoll.m4: New file.
69520
69521         Module strtoull.
69522         * m4/strtoull.m4: New file.
69523
69524         Module strtoimax.
69525         * m4/strtoimax.m4: New file.
69526
69527         Module strtoumax.
69528         * m4/strtoumax.m4: New file.
69529
69530         Module xstrtoimax.
69531         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69532         jm_AC_PREREQ_XSTRTOIMAX.
69533         Moved the strtol prerequisites to strtol.m4.
69534         Moved the strtoll prerequisites to strtoll.m4.
69535         Moved the strtoimax prerequisites to strtoimax.m4.
69536
69537         Module xstrtoumax.
69538         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69539         jm_AC_PREREQ_XSTRTOUMAX.
69540         Moved the strtoul prerequisites to strtoul.m4.
69541         Moved the strtoull prerequisites to strtoull.m4.
69542         Moved the strtoumax prerequisites to strtoumax.m4.
69543
69544         Module chown.
69545         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69546         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69547
69548         Module dup2.
69549         * m4/dup2.m4: New file.
69550
69551         Module ftruncate.
69552         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69553         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69554
69555         Module getgroups.
69556         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69557         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69558
69559         Module gettimeofday.
69560         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69561         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69562         gl_PREREQ_GETTIMEOFDAY.
69563
69564         Module mkdir.
69565         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69566         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69567
69568         Module mkstemp.
69569         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69570         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69571         jm_AC_TYPE_UINTMAX_T.
69572         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69573
69574         Module stat.
69575         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69576         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69577
69578         Module lstat.
69579         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69580         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69581
69582         Module timespec.
69583         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69584         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69585         * m4/st_mtim.m4: Indentation.
69586
69587         Module nanosleep.
69588         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69589         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69590         gl_PREREQ_NANOSLEEP.
69591
69592         Module regex.
69593         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69594         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69595         (gl_REGEX): New macro.
69596
69597         Module rename.
69598         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69599         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69600
69601         Module rmdir.
69602         * m4/rmdir.m4: New file.
69603
69604         Module utime.
69605         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69606         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69607         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69608
69609         Module dirname.
69610         * m4/dirname.m4: New file.
69611
69612         Module getopt.
69613         * m4/getopt.m4: New file.
69614
69615         Module unistd-safer.
69616         * m4/unistd-safer.m4: New file.
69617
69618         Module fnmatch.
69619         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69620         declaration.
69621         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69622         (gl_FUNC_FNMATCH_POSIX): New macro.
69623         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69624         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69625         simply fnmatch.
69626
69627         Module exclude.
69628         * m4/exclude.m4: New file.
69629
69630         Module human.
69631         * m4/human.m4: New file.
69632
69633         Module acl.
69634         * m4/acl.m4: Nop.
69635
69636         Module backupfile.
69637         * m4/backupfile.m4: New file.
69638         * m4/d-ino.m4: Indentation.
69639
69640         Module fsusage.
69641         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69642         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69643         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69644
69645         Module dirfd.
69646         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69647         requirements.
69648
69649         Module euidaccess.
69650         * m4/euidaccess.m4: New file.
69651
69652         Module file-type.
69653         * m4/file-type.m4: New file.
69654
69655         Module fileblocks.
69656         * m4/fileblocks.m4: New file.
69657
69658         Module filemode.
69659         * m4/filemode.m4: New file.
69660
69661         Module isdir.
69662         * m4/isdir.m4: New file.
69663
69664         Module lchown.
69665         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69666         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69667
69668         Module makepath.
69669         * m4/makepath.m4: New file.
69670
69671         Module modechange.
69672         * m4/modechange.m4: New file.
69673
69674         Module mountlist.
69675         * m4/mountlist.m4: New file.
69676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69677         Indentation.
69678
69679         Module path-concat.
69680         * m4/path-concat.m4: New file.
69681
69682         Module pathmax.
69683         * m4/pathmax.m4: New file.
69684
69685         Module same.
69686         * m4/same.m4: New file.
69687
69688         Module save-cwd.
69689         * m4/save-cwd.m4: New file.
69690
69691         Module savedir.
69692         * m4/savedir.m4: New file.
69693
69694         Module xgetcwd.
69695         * m4/xgetcwd.m4: New file.
69696         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69697
69698         Module xreadlink.
69699         * m4/xreadlink.m4: New file.
69700
69701         Module safe-read.
69702         * m4/safe-read.m4: New file.
69703
69704         Module safe-write.
69705         * m4/safe-write.m4: New file.
69706
69707         Module closeout.
69708         * m4/closeout.m4: New file.
69709
69710         Module stdio-safer.
69711         * m4/stdio-safer.m4: New file.
69712
69713         Module getpass.
69714         * m4/getpass.m4: New file.
69715
69716         Module getugroups.
69717         * m4/getugroups.m4: New file.
69718
69719         Module group-member.
69720         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69721         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69722
69723         Module idcache.
69724         * m4/idcache.m4: New file.
69725
69726         Module userspec.
69727         * m4/userspec.m4: New file.
69728
69729         Module gettime.
69730         * m4/clock_time.m4: New file.
69731         * m4/gettime.m4: New file.
69732
69733         Module settime.
69734         * m4/settime.m4: New file.
69735
69736         Module posixtm.
69737         * m4/posixtm.m4: New file.
69738
69739         Module gethostname.
69740         * m4/gethostname.m4: New file.
69741
69742         Module canon-host.
69743         * m4/canon-host.m4: New file.
69744
69745         Module gettext.
69746         * m4/codeset.m4: New file, from gettext-0.11.5.
69747         * m4/gettext.m4: New file, from gettext-0.11.5.
69748         * m4/glibc21.m4: New file, from gettext-0.11.5.
69749         * m4/iconv.m4: New file, from gettext-0.11.5.
69750         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69751         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69752         * m4/inttypes.m4: New file, from gettext-0.11.5.
69753         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69754         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69755         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69756         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69757         * m4/lib-link.m4: New file, from gettext-0.11.5.
69758         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69759         * m4/progtest.m4: New file, from gettext-0.11.5.
69760         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69761         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69762         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69763
69764         Module localcharset.
69765         * m4/localcharset.m4: New file.
69766
69767         Module hard-locale.
69768         * m4/hard-locale.m4: New file.
69769
69770         Module mbswidth.
69771         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69772         onceonly macros.
69773         * m4/mbrtowc.m4: Add comment.
69774
69775         Module memcasecmp.
69776         * m4/memcasecmp.m4: New file.
69777
69778         Module memcoll.
69779         * m4/memcoll.m4: New file.
69780
69781         Module unicodeio.
69782         * m4/unicodeio.m4: New file.
69783
69784         Module rpmatch.
69785         * m4/rpmatch.m4: New file.
69786
69787         Module yesno.
69788         * m4/yesno.m4: New file.
69789
69790         Module exitfail.
69791         * m4/exitfail.m4: New file.
69792
69793         Module c-stack.
69794         * m4/c-stack.m4 (gl_C_STACK): New macro.
69795         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69796
69797         Module error.
69798         * m4/error.m4 (gl_ERROR): New macro.
69799         (jm_PREREQ_ERROR): Use onceonly macros.
69800
69801         Module fatal.
69802         * m4/fatal.m4: New file.
69803
69804         Module getloadavg.
69805         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69806         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69807
69808         Module getpagesize.
69809         * m4/getpagesize.m4: New file.
69810
69811         Module getusershell.
69812         * m4/getusershell.m4: New file.
69813
69814         Module physmem.
69815         * m4/physmem.m4: New file.
69816
69817         Module posixver.
69818         * m4/posixver.m4: New file.
69819
69820         Module quotearg.
69821         * m4/quotearg.m4: New file.
69822
69823         Module quote.
69824         * m4/quote.m4: New file.
69825
69826         Module readutmp.
69827         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69828
69829         Module sig2str.
69830         * m4/sig2str.m4: New file.
69831
69832         Other.
69833         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69834         ulonglong.m4.
69835         * m4/intmax_t.m4: New file.
69836         * m4/d-type.m4: Indentation.
69837         * m4/jm-macros.m4: Update.
69838         * m4/prereq.m4 (jm_PREREQ): Update.
69839         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69840         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69841         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69842         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69843         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69844         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69845         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69846         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69847         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69848         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69849         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69850         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69851         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69852         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69853         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69854         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69855         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69856         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69857         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69858
69859 2002-12-24  Bruno Haible  <bruno@clisp.org>
69860
69861         * MODULES.txt: Update according to m4/ changes.
69862
69863         Module gettext.
69864         * config.rpath: New file, from gettext-0.11.5.
69865
69866         * modules/*: New module descriptions.
69867         * gnulib-tool: New file.
69868         * MODULES.html.sh: New file.
69869
69870 2002-12-21  Karl Berry  <karl@gnu.org>
69871
69872         * doc/fdl.texi: update to version 1.2.
69873
69874 2002-12-19  Karl Berry  <karl@gnu.org>
69875
69876         * config/config.guess: update from prep.
69877
69878 2002-12-18  Bruno Haible  <bruno@clisp.org>
69879
69880         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69881         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69882
69883 2002-12-17  Bruno Haible  <bruno@clisp.org>
69884
69885         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69886         stdlib.h, string.h.
69887
69888 2002-12-17  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/canon-host.c (strdup): Remove unused declaration.
69891
69892         * lib/fsusage.c: Include full_read.h.
69893         (get_fs_usage): Use full_read instead of safe_read.
69894
69895         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69896
69897 2002-12-12  Karl Berry  <karl@gnu.org>
69898
69899         * config/config.guess: update from prep.
69900
69901 2002-12-11  Bruno Haible  <bruno@clisp.org>
69902
69903         * m4/setenv.m4: New file, from gettext-0.11.5.
69904
69905 2002-12-11  Bruno Haible  <bruno@clisp.org>
69906
69907         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69908         not unsetenv().
69909         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69910         modifications:
69911
69912         2002-12-11  Bruno Haible  <bruno@clisp.org>
69913
69914                 * setenv.c (alloca): Fall back to malloc.
69915                 (freea): New macro.
69916                 (setenv): Use freea() to free memory allocated with alloca().
69917
69918         2002-11-13  Bruno Haible  <bruno@clisp.org>
69919
69920                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69921                 function declarations.
69922                 * unsetenv.c (unsetenv): Likewise.
69923
69924         2002-03-04  Bruno Haible  <bruno@clisp.org>
69925
69926                 Portability to AIX 4.3.3.
69927                 * unsetenv.c: New file, extracted from setenv.c.
69928                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69929
69930         2001-12-20  Bruno Haible  <bruno@clisp.org>
69931
69932                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69933                 use malloc instead. For SunOS 4.
69934
69935         2001-12-11  Bruno Haible  <bruno@clisp.org>
69936
69937                 * setenv.c: Declare alloca.
69938                 (compar_fn_t): New typedef.
69939                 (KNOWN_VALUE, STORE_VALUE): Use it.
69940
69941         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69942         setenv.h.
69943
69944 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69945
69946         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69947         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69948         Choose values that are less likely to collide with system fnmatch
69949         options.
69950         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69951         defined (e.g., a pure POSIX system).
69952         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69953         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69954
69955 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69956
69957         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69958         a pain in practice to deal with generated m4 files.  This change
69959         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69960
69961         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69962         and jm-glibc-io.m4, as they are no longer a special case.
69963         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69964         kludge and the auto-generation stuff.  Check only whether the
69965         functions are declared, not whether they exist, since older hosts
69966         that don't declare the functions can't use the optimization anyway.
69967
69968 2002-12-06  Jim Meyering  <jim@meyering.net>
69969
69970         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69971
69972         Merge in changes from libc's misc/error.c, in preparation
69973         for the merge of gnulib's changes back into libc.
69974
69975         * lib/error.c (_): Define only if not already defined.
69976         Move definition to follow all #include directives.
69977         Include unlocked-io.h only if !_LIBC.
69978         [_LIBC]: Include <libio/libioP.h>.
69979         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69980         (fflush): Tweak definition to use INTUSE.
69981         (putc): Define.
69982
69983 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69984
69985         * lib/alloca.c [defined emacs]: Include "lisp.h".
69986         (xalloc_die) [defined emacs]: New macro.
69987         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69988         [! defined emacs]: Include <xalloc.h>.
69989         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69990         (pointer): Typedef to POINTER_TYPE *.
69991         (malloc): Remove decl; we now always use xmalloc.
69992         (alloca): Use old-style definition, since Emacs needs this.
69993         Check for arithmetic overflow when computing combined size.
69994
69995 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69996
69997         Do not generate unlocked-io.h automatically, since it's easier to
69998         maintain it by hand.
69999
70000         * lib/unlocked-io.h: New file, from GNU diffutils,
70001         but with proper copyright notice and attribution.
70002         * lib/gen-uio: Remove.
70003         * lib/Makefile.am: Add copyright notice.
70004         (libfetish_a_SOURCES): Add unlocked-io.h.
70005         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
70006         (DISTCLEANFILES, io_functions): Remove macros.
70007         (EXTRA_DIST): Remove gen_uio.
70008         (unlocked-io.h): Remove rule.
70009
70010 2002-12-04  Jim Meyering  <jim@meyering.net>
70011
70012         Reflect the fact that stat.c and lstat.c are no longer generated.
70013         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
70014         (DISTCLEANFILES): Likewise.
70015         (EXTRA_DIST): Likewise.
70016         (all_local): Don't depend on stat.c or lstat.c.
70017         (stat.c, lstat.c): Remove rules.
70018         (EXTRA_DIST): Remove xstat.in.
70019
70020         * lib/xstat.in: Remove file.  Contents moved into stat.c.
70021         * lib/stat.c: New file.  Contents mostly from xstat.in.
70022         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
70023         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
70024
70025         * lib/safe-read.c: Rework so that it may serve to define safe_write,
70026         too.
70027         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
70028
70029 2002-12-03  Jim Meyering  <jim@meyering.net>
70030
70031         * lib/safe-read.c, safe-write.c: Change variable names and comments,
70032         but not semantics, to minimize the differences between these two files.
70033         (safe_read): Change comment to mention SAFE_READ_ERROR.
70034
70035         * lib/safe-read.c (IS_EINTR): Define.
70036         (safe_read): Use IS_EINTR in place of in-function cpp directives.
70037
70038 2002-12-02  Jim Meyering  <jim@meyering.net>
70039
70040         * lib/safe-read.c (EINTR): Define.
70041         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70042         (INT_MAX): Provide fallback.
70043         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
70044
70045         * lib/safe-read.h (SAFE_READ_ERROR): Define.
70046
70047 2002-12-02  Bruno Haible  <bruno@clisp.org>
70048
70049         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
70050         Define, taken from safe-read.c.
70051         (INT_MAX): Provide fallback.
70052         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
70053         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
70054
70055         * lib/safe-read.c (EINTR): Remove definition.
70056         (safe_read): Don't use EINTR if it is absent.
70057
70058 2002-12-01  Jim Meyering  <jim@meyering.net>
70059
70060         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
70061         zero.
70062         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
70063
70064 2002-11-27  Paul Eggert  <eggert@twinsun.com>
70065
70066         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
70067         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
70068         with `if (! (value < limit)) abort ();', for readability.
70069
70070 2002-11-26  Karl Berry  <karl@gnu.org>
70071
70072         * lib/strdup.c: copy from libc again, with jim's ok.
70073         * lib/.cppi-disable: re-add strdup.c
70074
70075 2002-11-25  Karl Berry  <karl@gnu.org>
70076
70077         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
70078         instead of "strtol.c".
70079
70080 2002-11-25  Karl Berry  <karl@gnu.org>
70081
70082         * config/install-sh: update from automake for variable quoting, $0 in
70083         error msgs, etc.
70084
70085         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
70086         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
70087         entry.
70088
70089 2002-11-25  Jim Meyering  <jim@meyering.net>
70090
70091         * lib/mktime.c: Sync from libc, now that it has the latest fix.
70092
70093 2002-11-24  Karl Berry  <karl@gnu.org>
70094
70095         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
70096         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
70097
70098 2002-11-24  Jim Meyering  <jim@meyering.net>
70099
70100         Update from coreutils:
70101
70102         * lib/mktime.c: Merge in changes from libc.
70103
70104         Avoid a link-time failure on some Linux systems.
70105         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
70106         (otherwise).
70107         (__mon_yday): Declare with the STATIC attribute.
70108         (__mktime_internal): Likewise.
70109         Based on a report from Greg Schafer.
70110
70111 2002-11-23  Jim Meyering  <jim@meyering.net>
70112
70113         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
70114         Use `unsigned', not `int', as type of index.
70115
70116         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
70117
70118         * lib/fsusage.c: Remove unneeded parentheses around operands of
70119         `defined'.
70120
70121 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70122
70123         * lib/quotearg.h: Allow multiple inclusion by surrounding with
70124         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
70125         so that we can be included first.
70126         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
70127         * lib/quotearg.c: Include quotearg.h immediately after config.h.
70128         No need to include stddef.h or sys/types.h any more.
70129         Surround local include files with "", not "<>".
70130         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
70131         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
70132         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
70133         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
70134         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
70135         (ISPRINT): Remove; no longer needed now that we assume C89.
70136
70137         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
70138         Preserve errno.
70139
70140         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
70141         quotearg_char): Use SIZE_MAX rather than
70142         (size_t) -1 when we are talking about "infinity".
70143
70144         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
70145
70146 2002-11-22  Paul Eggert  <eggert@twinsun.com>
70147
70148         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
70149         hint that one should use `if (! x) abort ();' rather than `assert
70150         (x);', and anyway it's one less thing to worry about configuring.
70151         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
70152         hash_rehash, hash_insert): Use abort rather than assert.
70153
70154 2002-11-22  Bruno Haible  <bruno@clisp.org>
70155
70156         * lib/safe-read.h: Assume C89. Add comments.
70157         (safe_read): Change return type to size_t.
70158         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
70159         byte counts > SSIZE_MAX correctly.
70160         * lib/safe-write.h: New file.
70161         * lib/safe-write.c: New file.
70162         * lib/full-read.h: New file.
70163         * lib/full-read.c: New file.
70164         * lib/full-write.h: Assume C89. Add comments.
70165         * lib/full-write.c: Include safe-write.h.
70166         (full_write): Rewritten to use safe_write.
70167         Suggested by Jim Meyering and Paul Eggert.
70168
70169 2002-11-21  Jim Meyering  <jim@meyering.net>
70170
70171         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
70172
70173         Merge in changes from the coreutils.
70174
70175         2002-09-25  Paul Eggert  <eggert@twinsun.com>
70176         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
70177         <stdint.h>.
70178         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
70179         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
70180         int.  Work more efficiently if X is the same width as uintmax_t.
70181         Do not compare X to -1, to avoid bogus compiler warning.
70182         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
70183         Don't assume that f_frsize and f_bsize are the same type.
70184
70185         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
70186         warning on FreeBSD.
70187
70188         * lib/makepath.c (make_path): Restore umask *before* creating the final
70189         component.
70190         (make_path): Minor reformatting.
70191
70192         * lib/xmalloc.c: Adjust to work with new autoconf macros,
70193         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
70194         HAVE_MALLOC/HAVE_REALLOC.
70195
70196         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
70197         dummy ones.  At least on GNU/Linux systems, `auto' means something
70198         else.
70199         From Michael Stone.
70200
70201 2002-11-21  Bruno Haible  <bruno@clisp.org>
70202
70203         Remove case insensitive option matching.
70204         * lib/argmatch.h (argcasematch): Remove declaration.
70205         (ARGCASEMATCH): Remove macro.
70206         (__xargmatch_internal): Remove case_sensitive argument.
70207         (XARGMATCH): Update.
70208         (XARGCASEMATCH): Remove macro.
70209         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
70210         case_sensitive argument.
70211         (argcasematch): Remove function.
70212         (__xargmatch_internal): Remove case_sensitive argument.
70213         (main): Use XARGMATCH instead of XARGCASEMATCH.
70214
70215         * lib/xmalloc.c: Change compile-time error message. Add comment about
70216         required autoconf version.
70217
70218 2002-11-20  Paul Eggert  <eggert@twinsun.com>
70219
70220         Merge argmatch cleanups from Bison.  Assume C89.
70221
70222         * lib/argmatch.c: Include config.h here, not in argmatch.h.
70223         Include stdlib.h, for EXIT_FAILURE.
70224         Always include <string.h>, since we assume C89.
70225         (EXIT_FAILURE): Remove pre-C89 bug workaround.
70226         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
70227         Include <stddef.h> instead, since it's all we need for size_t.
70228         (PARAMS): Remove.  All uses removed.
70229         (ARRAY_CARDINALITY): Do not bother to #undef.
70230         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
70231         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70232         Remove unnecessary parentheses.
70233         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
70234         Insert necessary parentheses.
70235         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
70236         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
70237
70238 2002-11-19  Bruno Haible  <bruno@clisp.org>
70239
70240         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
70241         * lib/mbswidth.h: Include <stddef.h>, for size_t.
70242
70243         * lib/mbswidth.h (PARAMS): Remove macro.
70244         (mbswidth, mbsnwidth): Use ANSI C function declarations.
70245         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
70246
70247         * lib/gcd.h (PARAMS): Remove macro.
70248         (gcd): Use ANSI C function declarations.
70249         * lib/gcd.c (gcd): Likewise.
70250
70251 2002-11-15  Bruno Haible  <bruno@clisp.org>
70252
70253         * lib/strcspn.c: Include <stddef.h>.
70254         (strcspn): Use ANSI C function declaration. Change return type to
70255         size_t. Use NULL.
70256         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
70257         (strpbrk): Use NULL.
70258         * lib/strpbrk.h (PARAMS): Remove macro.
70259         (strpbrk): Use ANSI C function declaration.
70260         * lib/strstr.c: Don't include <sys/types.h>.
70261         * lib/strstr.h (PARAMS): Remove macro.
70262         (strstr): Use ANSI C function declarations.
70263
70264 2002-11-14  Karl Berry  <karl@gnu.org>
70265
70266         * config/mkinstalldirs: `do' on separate line, instead of
70267         `for var; do'.
70268
70269 2002-11-06  Bruno Haible  <bruno@clisp.org>
70270
70271         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
70272         * lib/gcd.c (gcd): Likewise.
70273
70274 2002-11-05  Bruno Haible  <bruno@clisp.org>
70275
70276         * lib/gcd.h: New file, from gettext-0.11.5.
70277         * lib/gcd.c: New file, from gettext-0.11.5.
70278
70279 2002-11-05  Bruno Haible  <bruno@clisp.org>
70280
70281         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70282         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70283         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70284         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70285
70286         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70287         <libintl.h>.
70288         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70289         <libintl.h>.
70290
70291         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70292         * lib/human.c: Include gettext.h instead of <libintl.h>.
70293         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70294         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70295         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70296         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70297         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70298         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70299         (textdomain): Remove definition.
70300         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70301
70302         * lib/long-options.c: Remove include of <libintl.h> and definition of
70303         _.
70304         * lib/same.c: Remove include of <libintl.h> and definition of _.
70305
70306 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70307
70308         * lib/config.charset: A few additions for Solaris.
70309
70310 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70311
70312         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70313         * lib/localcharset.c (locale_charset): Declare as extern "C".
70314
70315 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70316
70317         * lib/config.charset: msdos in uk_UA uses CP1125.
70318
70319 2002-11-04  Bruno Haible  <bruno@clisp.org>
70320
70321         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70322         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70323         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70324         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70325         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70326
70327 2002-11-04  Bruno Haible  <bruno@clisp.org>
70328
70329         * lib/localcharset.c (locale_charset): Don't return an empty string.
70330
70331 2002-11-04  Bruno Haible  <bruno@clisp.org>
70332
70333         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70334         aliases.
70335
70336 2002-11-04  Bruno Haible  <bruno@clisp.org>
70337
70338         * lib/config.charset: Update for newest glibc. Add canonical names
70339         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70340
70341 2002-11-04  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/config.charset: Add support for NetBSD.
70344
70345 2002-11-04  Bruno Haible  <bruno@clisp.org>
70346
70347         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70348
70349 2002-11-01  Bruno Haible  <bruno@clisp.org>
70350
70351         * configure.in: Add AC_CONFIG_AUX_DIR call.
70352         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70353         test/Makefile.
70354         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70355
70356 2002-09-28  Karl Berry  <karl@gnu.org>
70357
70358         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70359         installed automake until the next release, since changes have been
70360         made.
70361
70362 2002-09-25  Karl Berry  <karl@gnu.org>
70363
70364         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70365         * lib/getopt*: copy from libc/posix.
70366         * lib/gettext.h: copy from gettext.
70367         * lib/.cppi-disable: add strdup.c, gettext.h.
70368
70369 2002-09-25  Karl Berry  <karl@gnu.org>
70370
70371         * config/srclist.txt: enable gettext.h check.
70372         * config/config.{guess,sub}: update from prep.
70373         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70374                 from automake 1.6.3.
70375         See srclist*.
70376
70377 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70378
70379         * regex.c (PATFETCH): Remove the translating fetch.
70380         (PATFETCH_RAW): Rename to PATFETCH.
70381         (set_image_of_range): New fun.
70382         (SET_RANGE_TABLE_WORK_AREA): Use it.
70383         (regex_compile): Don't translate the pattern chars so eagerly.
70384         Only do it when inserting an `exactn' bytecode or when handling
70385         a char-range.
70386         (mutually_exclusive_p): Avoid empty statement.
70387
70388 2002-07-06  Jim Meyering  <meyering@lucent.com>
70389
70390         * m4/README: Don't mention Makefile.am.in.
70391         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70392
70393 2002-07-01  Jim Meyering  <meyering@lucent.com>
70394
70395         * lib/c-stack.c: Include sys/time.h.
70396         From Volker Borchert.
70397
70398 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70399
70400         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70401
70402 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70403
70404         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70405         New macro.  Use it uniformly instead of
70406         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70407         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70408         reported by Vin Shelton.
70409
70410 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70411
70412         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70413         Do not assume SA_SIGINFO behavior.
70414         Bug reported by Jim Meyering on NetBSD 1.5.2.
70415
70416 2002-06-22  Jim Meyering  <meyering@lucent.com>
70417
70418         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70419         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70420
70421         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70422         now that configure.ac uses AC_GNU_SOURCE.
70423         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70424         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70425
70426         Update to latest tools.  Suggestions from Paul Eggert.
70427         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70428         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70429         * m4/fnmatch.m4: Likewise.
70430         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70431         to AC_HEADER_STDBOOL
70432
70433 2002-06-22  Jim Meyering  <meyering@lucent.com>
70434
70435         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70436         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70437
70438 2002-06-22  Jim Meyering  <meyering@lucent.com>
70439
70440         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70441
70442         * lib/exitfail.c, exitfail.h: Likewise.
70443         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70444
70445         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70446         of fnmatch.h.
70447         (EXTRA_DIST): Add fnmatch_loop.c.
70448         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70449
70450         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70451         * lib/fnmatch.c: Update from diffutils-2.8.2.
70452         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70453         * lib/fnmatch.h: Remove file.
70454
70455 2002-06-21  Jim Meyering  <meyering@lucent.com>
70456
70457         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70458         * m4/mbrtowc.m4: Likewise.
70459
70460         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70461         * m4/mbswidth.m4: Reflect name change:
70462         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70463         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70464
70465         * m4/lib-link.m4: Update from gettext-0.11.2.
70466         * m4/gettext.m4: Likewise.
70467
70468         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70469         From Alfred M. Szmidt.
70470
70471 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70472
70473         * lib/file-type.h: Report an error if neither S_ISREG nor
70474         S_IFREG is defined, instead of using a test specific to glibc
70475         2.2.  This should be safe, since POSIX requires S_ISREG and
70476         Unix Version 7 had S_IFREG.  We don't need to check for
70477         <sys/types.h> since we don't use any symbols that it defines.
70478
70479 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70480
70481         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70482         $@-t, so that each temporary file name is unique and valid in the first
70483         8 characters, for operation under DOS.
70484
70485 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70486
70487         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70488
70489 2002-06-15  Jim Meyering  <meyering@lucent.com>
70490
70491         Work even with DJGPP 2.03, which lacks support for symlinks.
70492         From Richard Dawe.
70493         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70494         is defined.
70495         * lib/lchown.c (S_ISLNK): Likewise.
70496
70497 2002-06-15  Jim Meyering  <meyering@lucent.com>
70498
70499         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70500         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70501         have been included before this file.
70502
70503 2002-06-14  Jim Meyering  <meyering@lucent.com>
70504
70505         * lib/file-type.h: Use the version from diffutils-2.8.2.
70506         * lib/file-type.c: Likewise.
70507
70508 2002-06-07  Jim Meyering  <meyering@lucent.com>
70509
70510         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70511         They're needed at least for NetBSD 1.5.2.
70512         ($statxfs_includes): Include those same headers.
70513         ($statxfs_includes): Include sys/vfs.h if available.
70514         ($statxfs_includes): Likewise for sys/statvfs.h.
70515         Check for the following members in both structs statfs and statvfs:
70516         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70517
70518 2002-06-01  Jim Meyering  <meyering@lucent.com>
70519
70520         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70521         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70522
70523 2002-05-28  Jim Meyering  <meyering@lucent.com>
70524
70525         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70526         Reported by Volker Borchert.
70527
70528 2002-05-27  Jim Meyering  <meyering@lucent.com>
70529
70530         Fix a problem seen only on nonconforming systems whereby ls.c's
70531         use of localtime, and then of gettimeofday would cause trouble:
70532         the localtime call used to initialize rpl_gettimeofday's save
70533         mechanism would clobber ls's current local time information so
70534         that in any long listing the first file would always be listed
70535         with date 1970-01-01.  Analysis by Volker Borchert.
70536
70537         * lib/gettimeofday.c (localtime): Undefine.
70538         (rpl_localtime): New function.
70539
70540 2002-05-27  Jim Meyering  <meyering@lucent.com>
70541
70542         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70543         localtime.
70544
70545         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70546         use the replacement function; it wouldn't resolve at link time.
70547         Reported by Volker Borchert.
70548
70549 2002-05-22  Jim Meyering  <meyering@lucent.com>
70550
70551         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70552         file-type.h.
70553         * lib/file-type.h: New file.
70554         * lib/file-type.c (file_type): New file/function.  Extracted from
70555         diffutils.
70556
70557 2002-04-30  Jim Meyering  <meyering@lucent.com>
70558
70559         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70560
70561 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70562
70563         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70564
70565 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70566
70567         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70568         Do not check for alloca.h (no longer used) or stdbool.h (was never
70569         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70570
70571 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70572
70573         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70574
70575 2002-04-29  Jim Meyering  <meyering@lucent.com>
70576
70577         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70578         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70579         Use AC_FUNC_STRNLEN here instead.
70580
70581         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70582         With autoconf-2.53a, it's part of AC_PROG_CC.
70583
70584 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70585
70586         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70587         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70588
70589 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70590
70591         * lib/sig2str.h, lib/sig2str.c: New files.
70592         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70593
70594 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70595
70596         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70597         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70598         of 127, since 64 is the largest conceivable number for ancient
70599         nonstandard hosts.
70600         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70601
70602 2002-04-28  Jim Meyering  <meyering@lucent.com>
70603
70604         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70605
70606 2002-04-24  Jim Meyering  <meyering@lucent.com>
70607
70608         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70609         (jm_PREREQ): Use it.
70610
70611         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70612         mach/mach.h fcntl.h.
70613         Check for this function: setlocale.
70614
70615 2002-04-24  Jim Meyering  <meyering@lucent.com>
70616
70617         * lib/gettext.h: New file, from Gettext.
70618         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70619         (libfetish_a_SOURCES): Add gettext.h.
70620
70621 2002-04-16  Jim Meyering  <meyering@lucent.com>
70622
70623         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70624         ut_pid, ut_id, ut_exit.
70625
70626 2002-04-16  Jim Meyering  <meyering@lucent.com>
70627
70628         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70629         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70630         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70631
70632 2002-04-12  Jim Meyering  <meyering@lucent.com>
70633
70634         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70635         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70636         existence of the getmntinfo function.  Needed for Darwin 5.3.
70637
70638         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70639         This is necessary at least on Darwin 5.3.
70640
70641         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70642         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70643         strnlen.o in the library, and that makes some versions of ranlib
70644         object.
70645
70646 2002-04-12  Jim Meyering  <meyering@lucent.com>
70647
70648         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70649
70650 2002-04-09  Jim Meyering  <meyering@lucent.com>
70651
70652         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70653         to be more precise.  Rather than saying we're checking whether the
70654         function `works', say what we're testing.
70655         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70656         Reported by Bruno Haible.
70657
70658 2002-03-10  Jim Meyering  <meyering@lucent.com>
70659
70660         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70661         Suggestion from Santiago Vila.
70662
70663 2002-03-08  Jim Meyering  <meyering@lucent.com>
70664
70665         * lib/rename.c: Mention that this wrapper is needed also on
70666         mips-dec-ultrix4.4 systems.
70667
70668 2002-03-02  Jim Meyering  <meyering@lucent.com>
70669
70670         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70671         not HAVE_CLOCK_SETTIME.
70672
70673 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70674
70675         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70676         Check for clock_settime.
70677
70678 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70679
70680         * lib/nanosleep.h: Rename to....
70681         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70682
70683         * lib/gettime.c: New file.
70684         * lib/settime.c: New file.
70685         * lib/stime.c: Remove.
70686
70687         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70688         timespec.h.  Remove nanosleep.h.
70689
70690 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70691
70692         * m4/acl.m4: New file.
70693         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70694         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70695
70696 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70697
70698         * lib/acl.c, lib/acl.h: New files.
70699         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70700
70701 2002-02-24  Jim Meyering  <meyering@lucent.com>
70702
70703         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70704         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70705         cause trouble.  Reported by Nelson Beebe.
70706
70707 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70708
70709         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70710         compilers that don't know that xalloc_die never returns.
70711
70712 2002-02-20  Jim Meyering  <meyering@lucent.com>
70713
70714         * lib/getdate.c: Regenerate using bison-1.33.
70715
70716 2002-02-17  Jim Meyering  <meyering@lucent.com>
70717
70718         * config/config.guess (main): Don't use `head -1'; it's no longer
70719         portable. Use `sed 1q' instead.
70720
70721 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70722
70723         * m4/codeset.m4: Upgrade to gettext-0.11.
70724         * m4/gettext.m4: Upgrade to gettext-0.11.
70725         * m4/glibc21.m4: Upgrade to gettext-0.11.
70726         * m4/iconv.m4: Upgrade to gettext-0.11.
70727         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70728         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70729         * m4/lib-ld.m4: New file, from gettext-0.11.
70730         * m4/lib-link.m4: New file, from gettext-0.11.
70731         * m4/lib-prefix.m4: New file, from gettext-0.11.
70732         * m4/progtest.m4: Upgrade to gettext-0.11.
70733
70734 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70735
70736         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70737         (jm_PREREQ): Use it.
70738
70739 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70740
70741         * lib/posixver.c, lib/posixver.h: New files.
70742         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70743
70744 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70745             Bruno Haible  <bruno@clisp.org>
70746
70747         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70748         (fwrite_success_callback): New declaration.
70749         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70750         print_unicode_char. Call failure callback instead of error.
70751         (fwrite_success_callback): New function.
70752         (exit_failure_callback): New function.
70753         (fallback_failure_callback): New function.
70754         (print_unicode_char): Call unicode_to_mb.
70755
70756 2002-01-26  Jim Meyering  <meyering@lucent.com>
70757
70758         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70759         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70760
70761 2002-01-26  Jim Meyering  <meyering@lucent.com>
70762
70763         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70764
70765 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70766
70767         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70768
70769 2002-01-22  Jim Meyering  <meyering@lucent.com>
70770
70771         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70772         Otherwise, some versions of automake would omit the rule that makes
70773         Makefile from Makefile.in.
70774
70775 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70776
70777         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70778         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70779         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70780         (memcoll): Set errno to zero if there is no error.
70781
70782         * lib/quotearg.c (quotearg_buffer_restyled):
70783         Fix bug with quoting buffers containing NUL when backslashing escapes.
70784         This bug was exposed by the other changes in this patch.
70785         (quotearg_n_options): New arg ARGSIZE.
70786         All callers changed.
70787         (quoting_options_from_style): New function.
70788         (quotearg_n_style): Use it.
70789         (quotearg_n_style_mem): New function.
70790
70791         * lib/quotearg.h (quotearg_n_style_mem): New function.
70792
70793 2002-01-19  Jim Meyering  <meyering@lucent.com>
70794
70795         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70796         Remove useless quotes: DF_PROG="df".
70797         * m4/strnlen.m4: New file.
70798
70799 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70800
70801         * lib/backupfile.c (ISDIGIT): Comment fix.
70802         * lib/getdate.y (ISDIGIT): Likewise.
70803         * lib/posixtm.c (ISDIGIT, year): Likewise.
70804         * lib/strverscmp.c (ISDIGIT): Likewise.
70805         * lib/userspec.c (ISDIGIT): Likewise.
70806
70807 2002-01-16  Jim Meyering  <meyering@lucent.com>
70808
70809         * lib/getdate.y: Add three semicolons, each just before a closing
70810         brace. Bison (as of version 1.31) no longer papers over that mistake.
70811
70812 2002-01-05  Jim Meyering  <meyering@lucent.com>
70813
70814         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70815
70816 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70817
70818         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70819         not silently exit merely because the output buffer happens to
70820         have nothing pending.
70821
70822 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70823
70824         See the big note in ../ChangeLog.
70825         * lib/human.c (suffixes): Prefer K to k for 1024.
70826         (generate_suffix_backwards): New function.
70827         (human_readable_inexact): Use it.
70828         * lib/xstrtol.c (__xstrtol): If there is no number but there
70829         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70830         Accept 'K' as well as 'k'.
70831
70832 2001-12-15  Jim Meyering  <meyering@lucent.com>
70833
70834         * lib/regex.h (__restrict_arr): Update from libc.
70835
70836         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70837         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70838         (STREQ): Define.
70839
70840 2001-12-14  Jim Meyering  <meyering@lucent.com>
70841
70842         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70843         Suggestion from Bruno Haible.
70844
70845 2001-12-10  Jim Meyering  <meyering@lucent.com>
70846
70847         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70848         xrealloc, Instead, include "xalloc.h".
70849         (initbuffer): Don't cast xmalloc return value to char*.
70850         (readline): Reword comment.
70851         Don't cast xrealloc return value to char*
70852         Return NULL, not 0.
70853
70854 2001-12-09  Jim Meyering  <meyering@lucent.com>
70855
70856         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70857         about `signed and unsigned type in conditional expression'.
70858         * lib/posixtm.c (posix_time_parse): Likewise.
70859
70860         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70861
70862         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70863         to avoid a pedantic warning.
70864
70865         * lib/getstr.c: Don't include assert.h.
70866         (getstr): Remove warning-evoking assertions.
70867         Return -1 if offset parameter is out of bounds.
70868         Change the type of a local from int to size_t.
70869
70870         * lib/strftime.c (my_strftime_localtime_r): Include this function
70871         definition in the `#if ! HAVE_TM_GMTOFF' block.
70872
70873         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70874         Include xalloc.h instead.
70875
70876 2001-12-02  Jim Meyering  <meyering@lucent.com>
70877
70878         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70879         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70880         included.
70881
70882         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70883         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70884
70885 2001-11-30  Akim Demaille  <akim@epita.fr>
70886
70887         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70888         before being defined.
70889
70890 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70891
70892         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70893         First arg is int, not unsigned.
70894         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70895         (SIZE_MAX, UINT_MAX): New macros.
70896         (quotearg_n_options): Abort if N is negative.
70897         Avoid overflow check on hosts where size_t is 64 bits and int
70898         is 32 bits, as overflow is impossible there.
70899         Fix off-by-one typo that caused unnecessary reallocation.
70900
70901 2001-11-27  Jim Meyering  <meyering@lucent.com>
70902
70903         * lib/tempname.c: Merge with version from libc.
70904         * lib/regex.c: Likewise.
70905
70906         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70907         systems for which STDC_HEADERS is 0, it was not included, resulting in
70908         a warning about an integer-to-pointer conversion problem with getenv.
70909         Reported by Volker Borchert.
70910
70911 2001-11-26  Jim Meyering  <meyering@lucent.com>
70912
70913         * lib/gtod.h: Remove file.
70914         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70915         * lib/gettimeofday.c: Don't include gtod.h.
70916         (GTOD_init): Remove function.
70917         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70918         Suggestion from Volker Borchert.
70919
70920 2001-11-23  Jim Meyering  <meyering@lucent.com>
70921
70922         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70923         it.
70924         * lib/hash.c (struct hash_table): Define it here instead.
70925
70926 2001-11-22  Jim Meyering  <meyering@lucent.com>
70927
70928         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70929
70930 2001-11-20  Jim Meyering  <meyering@lucent.com>
70931
70932         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70933         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70934
70935 2001-11-19  Jim Meyering  <meyering@lucent.com>
70936
70937         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70938         directory.  Use "conftestXXXXXX" as the template.
70939         Suggestion from Paul Eggert.
70940
70941         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70942         immediately, so the test doesn't mistakenly hit the max-open-files
70943         limit.
70944
70945 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70946
70947         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70948         (TEMPORARIES): New macro.
70949         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70950         removes an artificial limitation (e.g. HP-UX 10.20, where
70951         TMP_MAX is 17576).
70952
70953 2001-11-18  Jim Meyering  <meyering@lucent.com>
70954
70955         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70956
70957 2001-11-18  Jim Meyering  <meyering@lucent.com>
70958
70959         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70960         on SunOS 4.
70961
70962         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70963         files will be created before anything else.
70964
70965 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70966
70967         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70968         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70969
70970 2001-11-17  Jim Meyering  <meyering@lucent.com>
70971
70972         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70973         Prompted by a report from Bob Proulx.
70974
70975         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70976         Instead, require UTILS_FUNC_MKSTEMP.
70977
70978 2001-11-17  Jim Meyering  <meyering@lucent.com>
70979
70980         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70981         Now, that's done as part of AC_FUNC_STRTOD.
70982
70983 2001-11-17  Jim Meyering  <meyering@lucent.com>
70984
70985         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70986         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70987         rather than group writable.  Patch by Juan F. Codagnone.
70988
70989         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70990         xrealloc, Instead, include "xalloc.h".
70991
70992         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70993         Remove explicit declarations of xmalloc, xrealloc,
70994         and xstrdup.  Instead, include "xalloc.h".
70995
70996         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70997         unlocked-io.h.
70998         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70999         Likewise.
71000         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
71001
71002         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
71003         Reported by Padraig Brady.
71004
71005         * lib/mkstemp.c: #undef mkstemp.
71006         Include config.h.
71007         (rpl_mkstemp): Rename from mkstemp.
71008         Protoize.
71009
71010 2001-11-16  Jim Meyering  <meyering@lucent.com>
71011
71012         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
71013         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
71014         determine the amount of total physical memory, use pstat_getstatic.
71015         HPUX-11 doesn't define _SC_PHYS_PAGES.
71016         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
71017         If sysconf couldn't be used to determine the amount of available
71018         physical memory, use both pstat_getstatic and pstat_getdynamic.
71019         Based on a patch from Bob Proulx.
71020
71021 2001-11-10  Jim Meyering  <meyering@lucent.com>
71022
71023         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
71024         (jm_PREREQ): Use it.
71025
71026 2001-11-09  Jim Meyering  <meyering@lucent.com>
71027
71028         * m4/jm-macros.m4: Require autoconf-2.52f.
71029         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
71030         Use these AC_-prefixed names, not the AM_-prefixed ones.
71031
71032         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
71033
71034 2001-11-05  Jim Meyering  <meyering@lucent.com>
71035
71036         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
71037
71038 2001-11-04  Jim Meyering  <meyering@lucent.com>
71039
71040         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
71041         $DEFS.
71042
71043 2001-11-03  Jim Meyering  <meyering@lucent.com>
71044
71045         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
71046         of AC_DEFUN.
71047
71048         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
71049         know the name of the variable in the macro definition.
71050
71051 2001-11-03  Jim Meyering  <meyering@lucent.com>
71052
71053         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
71054         in argmatch_to_argument call.
71055
71056         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
71057         argument.
71058
71059         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
71060         e.g., a fault due to an attempt to free a NULL pointer.
71061
71062 2001-11-01  Jim Meyering  <meyering@lucent.com>
71063
71064         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
71065         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
71066
71067 2001-11-01  Jim Meyering  <meyering@lucent.com>
71068
71069         * lib/dirfd.c, lib/dirfd.h: New files.
71070         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
71071
71072         * lib/hash.c (hash_print) [TESTING]: Clean up.
71073
71074 2001-10-22  Paul Eggert  <eggert@twinsun.com>
71075
71076         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
71077         to avoid a warning if -Wall.
71078
71079 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
71080
71081         * README: New file
71082         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
71083         (per RMS's instructions, this is now the canonical source)
71084         * lgpl/, gpl/: New directories.
71085
71086 2001-10-21  Paul Eggert  <eggert@twinsun.com>
71087
71088         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
71089
71090 2001-10-21  Jim Meyering  <meyering@lucent.com>
71091
71092         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
71093         this code would end up calling gettext even in packages built
71094         with --disable-nls.
71095         * lib/getopt.c (_): Likewise.
71096         * lib/regex.c (_): Likewise.
71097
71098 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71099
71100         * m4/error.m4 (jm_PREREQ_ERROR):
71101         Do not invoke AC_CHECK_FUNCS with strerror_r, as
71102         AC_FUNC_STRERROR_R does that.
71103         Check for strerror declaration.
71104
71105         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
71106         are supposed to have them these days.
71107         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
71108         Merge changes from latest Autoconf CVS.
71109         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
71110         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
71111         POSIX decided to standardize on the int flavor of strerror_r.
71112
71113 2001-10-20  Paul Eggert  <eggert@twinsun.com>
71114
71115         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
71116         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
71117         Use strerror_r that is only a macro, even if it is not a function.
71118         (strerror): Check for HAVE_DECL_STRERROR before declaring.
71119         (private_strerror): Use prototypes, not old-style function definition.
71120         (print_errno_message): New function.
71121         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
71122         char*-flavored one.
71123         (error_tail, error, error_at_line): Use it.
71124
71125 2001-10-11  Jim Meyering  <meyering@lucent.com>
71126
71127         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
71128         and quote_n (1, ... to avoid clobbering a buffer.
71129
71130 2001-10-05  Jim Meyering  <meyering@lucent.com>
71131
71132         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
71133         hash-pjw.h.
71134         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
71135         * lib/hash-pjw.h: New file.
71136
71137 2001-09-30  Jim Meyering  <meyering@lucent.com>
71138
71139         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
71140         `struct fsstat' has the `f_fstypename' member.
71141         Use that to define FS_TYPE, which is now used to make
71142         the getfsstat link test tighter.
71143
71144 2001-09-30  Jim Meyering  <meyering@lucent.com>
71145
71146         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
71147         Include <sys/ucred.h>, for Apple Darwin.
71148         Include sys/mount.h and sys/fs_types.h only if available.
71149         (FS_TYPE): Define.
71150         (read_filesystem_list): Use FS_TYPE.
71151
71152 2001-09-29  Paul Eggert  <eggert@twinsun.com>
71153
71154         * lib/exclude.c (excluded_filename): 0 -> false, since it's
71155         a boolean context.
71156
71157 2001-09-29  Jim Meyering  <meyering@lucent.com>
71158
71159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71160         [one-argument getmntent function]): Include stdio.h before mntent.h.
71161         SunOS 4.1.x needs it for the declaration of `FILE'.
71162         Patch by Volker Borchert.
71163
71164         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
71165         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
71166         sys/fs_types.h, and make the link-test for getfsstat guard #include
71167         directives with appropriate #if HAVE_*_H tests so that we can
71168         detect getfsstat on Apple Darwin1.3.7 systems.
71169         Reported by Nelson Beebe.
71170         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
71171
71172 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71173
71174         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71175         #defines strtoimax.  Also treat the other strto* functions
71176         like strtoimax.
71177
71178         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71179         Check for strtoul and strtoumax,
71180         as those declarations are made even in the signed case.
71181         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
71182         Likewise, for strtol and strtoimax.
71183
71184 2001-09-28  Paul Eggert  <eggert@twinsun.com>
71185
71186         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
71187         #defines strtoimax.  Also treat the other strto* functions
71188         like strtoimax.
71189
71190         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
71191         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
71192         (strtoimax, strtoumax): Do not declare if already defined as a macro.
71193
71194 2001-09-26  Jim Meyering  <meyering@lucent.com>
71195
71196         Most macros in unlocked-io.h had the wrong number of arguments.
71197         * lib/gen-uio: New script.
71198         (USE_UNLOCKED_IO): Define to 1 if not already defined.
71199         * lib/unlocked-io.hin: Remove file.
71200         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
71201         rather than trying to embed it here.
71202         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
71203         Reported by Padraig Brady.
71204
71205 2001-09-25  Volker Borchert  <bt@teknon.de>
71206
71207         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
71208         `result'.
71209
71210 2001-09-24  Jim Meyering  <meyering@lucent.com>
71211
71212         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
71213
71214 2001-09-23  Jim Meyering  <meyering@lucent.com>
71215
71216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
71217         instead of the mere test for existence of mntent.h.  The latter
71218         would get a false-positive on AIX 3.4 systems.
71219         In the outer getmntent if-block, don't die if neither of the getmntent
71220         tests succeeds.  Instead, just fall through and continue with the
71221         remaining tests.
71222
71223 2001-09-23  Jim Meyering  <meyering@lucent.com>
71224
71225         * lib/mountlist.c: Remove useless parentheses in #if directives.
71226         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
71227         the deprecated MOUNTED symbol is no longer defined in mntent.h.
71228
71229 2001-09-22  Jim Meyering  <meyering@lucent.com>
71230
71231         * m4/gettext.m4: New file.  From gettext.
71232         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
71233         * m4/progtest.m4: Likewise
71234         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
71235         * m4/glibc21.m4: Likewise.
71236
71237         * m4/libintl.m4: Remove.  No longer used.
71238
71239 2001-09-22  Jim Meyering  <meyering@lucent.com>
71240
71241         * lib/localcharset.c: Update from latest gettext.
71242         * lib/config.charset: Likewise.
71243
71244 2001-09-20  Jim Meyering  <meyering@lucent.com>
71245
71246         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
71247         strtoimax.
71248         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
71249         strtoumax.
71250
71251 2001-09-20  Jim Meyering  <meyering@lucent.com>
71252
71253         * lib/xstrtol.c (strtoimax): Guard declaration with
71254         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
71255         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
71256         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
71257         (strtoumax): Likewise, for completeness (it wasn't necessary).
71258
71259 2001-09-17  Paul Eggert  <eggert@twinsun.com>
71260
71261         * lib/strtoimax.c (HAVE_LONG_LONG):
71262         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
71263         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
71264         to work around bug in IBM C compiler.
71265
71266 2001-09-17  Jim Meyering  <meyering@lucent.com>
71267
71268         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
71269         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
71270         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
71271         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
71272         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
71273         whenever the right hand side need not be expanded by the shell.
71274
71275 2001-09-16  Paul Eggert  <eggert@twinsun.com>
71276
71277         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
71278         library.  It's not correct, as some older glibcs are buggy.
71279         fnmatch wasn't fixed until glibc 2.2.
71280
71281         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71282         special shell magic here.
71283
71284 2001-09-16  Jim Meyering  <meyering@lucent.com>
71285
71286         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71287         * m4/jm-macros.m4: Require it.
71288
71289 2001-09-16  Jim Meyering  <meyering@lucent.com>
71290
71291         * lib/mkdir.c: New file.
71292
71293 2001-09-15  Jim Meyering  <meyering@lucent.com>
71294
71295         * m4/jm-macros.m4: Check for help2man.
71296
71297 2001-09-11  Jim Meyering  <meyering@lucent.com>
71298
71299         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71300         The body, by Paul Eggert, was moved here from configure.in.
71301         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71302
71303 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71304
71305         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71306         (jm_PREREQ): Use it.
71307
71308 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71309
71310         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71311         Use ssize_t, not int, to store result of readlink.
71312         Check for ssize_t overflow as well as size_t overflow,
71313         as POSIX says the result of readlink is implementation-defined
71314         when ssize_t overflows.
71315         Remove unnecessary cast to char*.
71316         Use free+malloc instead of realloc, as the storage doesn't need
71317         to be preserved and it's clearer and can be more efficient that way.
71318         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71319         * lib/xreadlink.h (xreadlink): Update prototype.
71320
71321 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71322
71323         * lib/xgetcwd.c: Revert some of the previous change; intead,
71324         fix the HAVE_GETCWD_NULL code to behave more like the
71325         !HAVE_GETCWD_NULL code used to.
71326
71327         Include "xalloc.h".
71328         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71329         invoke xalloc_die.
71330
71331 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71332
71333         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71334         sys/param.h, as pathmax.h includes them.
71335
71336 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71337
71338         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71339         (jm_PREREQ_XGETCWD): New macro.
71340
71341         * m4/getcwd.m4: New file.
71342
71343 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71344
71345         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71346         like the HAVE_GETCWD_NULL code.
71347         Include pathmax.h if not HAVE_GETCWD.
71348         Do not include xalloc.h.
71349         (INITIAL_BUFFER_SIZE): New symbol.
71350         Do not use xmalloc / xrealloc, since the caller is responsible for
71351         handling errors.  Preserve errno around `free' during failure.
71352         Do not overrun buffer when using getwd.
71353
71354 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71355
71356         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71357         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71358         getcwd (NULL, 0).
71359
71360 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71361
71362         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71363         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71364         spotted by Jim Meyering.
71365
71366 2001-09-03  Jim Meyering  <meyering@lucent.com>
71367
71368         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71369         failure.
71370
71371 2001-09-02  Jim Meyering  <meyering@lucent.com>
71372
71373         * lib/error.c: Update from GNU libc.
71374
71375 2001-09-01  Jim Meyering  <meyering@lucent.com>
71376
71377         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71378         Used by df.
71379
71380 2001-09-01  Jim Meyering  <meyering@lucent.com>
71381
71382         * lib/xreadlink.c: New file.
71383         * lib/xreadlink.h: New file.
71384         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71385         xreadlink.h.
71386
71387         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71388         doesn't conflict with sparc Solaris 7's definition in
71389         /usr/include/sys/int_types.h.
71390
71391         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71392         files.
71393         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71394         and strncasecmp as r-values.  Unixware didn't have declarations.
71395
71396 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71397
71398         * lib/xstrtol.h: Add copyright notice.
71399         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71400         LONGINT_INVALID_SUFFIX_CHAR.
71401
71402 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71403
71404         * lib/xstrtol.c (strtoimax): New decl.
71405
71406 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71407
71408         * lib/xgetcwd.c: Don't include pathmax.h.
71409         Include stdlib.h and unistd.h if available.
71410         Include xalloc.h.
71411         (xmalloc, xstrdup, free): Remove decls.
71412         (xgetcwd): Don't assume sizes fit in unsigned.
71413         Check for overflow when computing sizes.
71414         Simplify reallocation code.
71415
71416 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71417
71418         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71419         a directory's st_size can have an arbitrary value, so the old
71420         usage could waste an arbitrary amount of memory.  All uses
71421         changed.
71422         * lib/savedir.h: Update prototype.
71423
71424 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71425
71426         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71427
71428         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71429         old strtoimax.c.
71430
71431         Also, make the following further changes to make this file's
71432         configuration more similar to that of strtol.c:
71433         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71434         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71435         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71436         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71437         changed to signed values.
71438
71439         And make the following changes as well:
71440         Fix copyright notice, as 1999 was missing.
71441         (verify): New macro.
71442         (strtoimax): Check sizes at compile-time, not run-time.
71443         Prefer strtol to strtoll if both work.
71444         (main): Remove; it was not that useful and was a pain to maintain.
71445
71446         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71447
71448 2001-08-31  Jim Meyering  <meyering@lucent.com>
71449
71450         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71451         Use an initial, malloc'd, buffer of length 128 rather than
71452         a statically allocated one of length 1024.
71453
71454 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71455
71456         Simplify code, partly by assuming autoconf 2.52 semantics.
71457
71458         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71459
71460         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71461         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71462         All uses removed.
71463         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71464         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71465         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71466         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71467         jm_AC_HEADER_INTTYPES_H.
71468         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71469
71470         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71471
71472         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71473         Quote first arg of AC_DEFUN.
71474         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71475         since they are needed to parse the include file even if we need
71476         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71477         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71478         but with opposite signedness.
71479
71480 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71481
71482         Merge 'exclude' changes from tar 1.13.22.
71483         This fixes one or two unlikely storage allocation overflow bugs,
71484         but doesn't change user-visible behavior otherwise.
71485
71486 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71487
71488         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71489         (jm_PREREQ_EXCLUDE): New macro.
71490
71491 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71492
71493         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71494         tm to be declared.
71495
71496 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71497
71498         * lib/hash.c: Remove '2001' from copyright notice.
71499
71500 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71501
71502         * lib/full-write.h: New file.
71503         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71504         * lib/full-write.c: Correct credits, as cccp.c no longer
71505         exists and anyway it was so heavily changed from the old cccp
71506         code as to be unrecognizable.  Include full-write.h.
71507         (full_write) Return size_t, with short writes meaning failure.
71508         All callers changed.  This fixes a bug with large buffers
71509         on 64-bit hosts.
71510         * lib/utime.c: Include full-write.h.
71511
71512 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71513
71514         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71515         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71516         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71517         Include if available.
71518         (<xalloc.h>): Include
71519         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71520         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71521         collide with FNM macros.
71522         (struct patopts): New struct.
71523         (struct exclude): Use it, as exclude patterns now come with options.
71524         (new_exclude): Support above changes.
71525         (new_exclude, add_exclude_file):
71526         Initial size must now be a power of two to simplify overflow checking.
71527         (free_exclude, fnmatch_no_wildcards): New function.
71528         (excluded_filename): No longer requires options arg, as the options
71529         are determined by add_exclude.  Now returns bool, not int.
71530         (excluded_filename, add_exclude):
71531         Add support for the fancy new exclusion options.
71532         (add_exclude, add_exclude_file): Now takes int options arg.
71533         Check for arithmetic overflow when computing sizes.
71534         (add_exclude_file): xrealloc might modify errno, so don't
71535         realloc until after errno might be used.
71536
71537         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71538         New macros.
71539         (free_exclude): New decl.
71540         (add_exclude, add_exclude_file): Now takes int options arg.
71541         (excluded_filename): No longer requires options arg, as the options
71542         are determined by add_exclude.  Now returns bool, not int.
71543
71544 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71545
71546         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71547
71548 2001-08-27  Jim Meyering  <meyering@lucent.com>
71549
71550         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71551
71552         * lib/version-etc.c (N_): Remove definition.
71553         Revert most of last change.
71554         Instead, simply don't mark the `Copyright...' string for translation.
71555         Based on advice from Paul Eggert.
71556
71557         * lib/strtoxmax.c: Tweak comment.
71558
71559 2001-08-26  Jim Meyering  <meyering@lucent.com>
71560
71561         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71562
71563         * m4/xstrtoimax.m4: New file.
71564         * m4/xstrtoumax.m4: Add comments explaining why we
71565         AC_REPLACE_FUNCS(strtol).
71566
71567 2001-08-26  Jim Meyering  <meyering@lucent.com>
71568
71569         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71570         of copyright with `%s' so translators don't get an untranslated
71571         message in 2002.
71572         (COPYRIGHT_YEAR): Define.
71573         (version_etc): Use fprintf rather than fputs.
71574         Suggestion from Ulrich Drepper.
71575
71576         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71577
71578         * lib/strtoll.c: New file, from GNU libc.
71579         * lib/xstrtoimax.c: New file.
71580
71581         * lib/xstrtol.h: Add xstrtoimax.
71582         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71583         * lib/strtoimax.c: New file.  Likewise, but first define
71584         STRTOUXMAX_SIGNED.
71585
71586         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71587         ...
71588         * lib/strtoxmax.c: ... then renamed to this.
71589
71590 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71591
71592         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71593         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71594         (jm_AC_TYPE_INTMAX_T): New macro.
71595         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71596
71597         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71598
71599         * m4/longlong.m4: Renamed from ulonglong.m4.
71600         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71601         * m4/uintmax_t.m4: Removed.
71602
71603 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71604
71605         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71606         Port to Solaris 8, where 'sed' requires a space after the 'r'
71607         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71608         Redirect output to $tmp just once.
71609
71610 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71611
71612         * lib/addext.c (<errno.h>): Include.
71613         (errno): Declare if not defined.
71614         (addext): Work correctly when pathconf returns -1 and leaves
71615         errno alone because there is no limit.  Also, work even if
71616         pathconf returns a value greater than SIZE_MAX.
71617
71618 2001-08-12  Jim Meyering  <meyering@lucent.com>
71619
71620         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71621         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71622         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71623         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71624         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71625         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71626         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71627         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71628         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71629         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71630         utime.m4, utimes.m4, xstrtoumax.m4:
71631         Quote the first argument in each use of AC_DEFUN.
71632
71633 2001-08-12  Jim Meyering  <meyering@lucent.com>
71634
71635         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71636         Simply `return getcwd (NULL, 0);'.
71637         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71638         Use 1300 as initial value for length, not PATH_MAX.
71639
71640         * lib/pathmax.h: Clean up cpp syntax.
71641
71642 2001-08-12  Jim Meyering  <meyering@lucent.com>
71643
71644         * lib/gettimeofday.c: New file.
71645         * lib/gtod.h: New file.
71646         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71647
71648 2001-08-05  Jim Meyering  <meyering@lucent.com>
71649
71650         * m4/jm-macros.m4: Require autoconf-2.52.
71651
71652 2001-08-04  Jim Meyering  <meyering@lucent.com>
71653
71654         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71655         stmt, to get in sync with glibc.
71656
71657 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71658
71659         The following changes are from gettext 0.10.39 as maintained by
71660         Bruno Haible.
71661
71662         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71663         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71664         with inverted sense.  All uses changed.
71665
71666         * lib/mbswidth.c: Don't include <limits.h>.
71667         Include <stdlib.h> and <string.h> unconditionally.
71668         (iswcntrl, mbsinit, ISCNTRL): New macros.
71669         (mbsnwidth): Use K&R style function declarations.
71670         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71671         can optimize it when MB_CUR_MAX == 1.
71672         The width of control characters is zero, not 1.
71673
71674 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71675
71676         The following changes are from gettext 0.10.39 as maintained by
71677         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71678
71679         * m4/codeset.m4: Upgrade to serial AM1.
71680         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71681         all uses changed.  Quote first arg of AC_DEFUN.
71682         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71683
71684         * m4/iconv.m4: Upgrade to serial AM2.
71685         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71686         Add --with-libconv-prefix.
71687         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71688         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71689         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71690         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71691         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71692
71693         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71694         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71695         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71696         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71697         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71698         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71699         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71700         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71701         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71702
71703         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71704         string.h any more.
71705
71706         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71707         not the default value.
71708
71709         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71710         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71711         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71712         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71713         Also check for iswcntrl, used for wcwidth fallback.
71714         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71715         to Autoconf 2.13.
71716
71717 2001-08-03  Jim Meyering  <meyering@lucent.com>
71718
71719         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71720         as it was in the original.  Reported by Paul Eggert.
71721
71722 2001-07-16  Jim Meyering  <meyering@lucent.com>
71723
71724         * m4/gettimeofday.m4: New file.
71725         Prompted by a report from Bernhard Baehr.
71726
71727 2001-07-15  Jim Meyering  <meyering@lucent.com>
71728
71729         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71730         stuff. Now it's in ../Makefile.cfg.
71731
71732 2001-07-15  Jim Meyering  <meyering@lucent.com>
71733
71734         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71735         (BUILT_SOURCES): Add unlocked-io.h.
71736         (io_functions): Define.
71737         (unlocked-io.h): New rule.
71738         (DISTCLEANFILES): Add unlocked-io.h.
71739         (all-local): Depend on unlocked-io.h, to ensure it is created.
71740
71741         * lib/unlocked-io.hin: New file
71742
71743         * lib/regex.c: Update from glibc.
71744
71745 2001-07-05  Jim Meyering  <meyering@lucent.com>
71746
71747         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71748         recommendation.
71749         (libfetish_a_SOURCES): Put all .h files here instead.
71750         Remove a thus-exposed (better checks in automake) duplicate and
71751         two unnecessary .h files.
71752
71753 2001-07-04  Jim Meyering  <meyering@lucent.com>
71754
71755         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71756         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71757         distcheck failure.
71758
71759 2001-07-02  Jim Meyering  <meyering@lucent.com>
71760
71761         The following changes were prompted by suggestions from Bruno Haible.
71762
71763         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71764         is now generated.
71765         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71766         definition of EXTRA_DIST.
71767         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71768         ensure that the generated file is created/updated whenever the list
71769         of $(unlocked_functions) is changed.
71770         (jm-glibc-io.m4): New rule.
71771         (unlocked-io.h): New rule -- currently unused.
71772
71773 2001-06-24  Jim Meyering  <meyering@lucent.com>
71774
71775         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71776         unmatched right bracket, rather than kludging it with an extra,
71777         falsely-matching quote in a comment.  Patch by Akim Demaille.
71778
71779 2001-06-11  Jim Meyering  <meyering@lucent.com>
71780
71781         * lib/regex.c: Update from GNU libc.
71782
71783 2001-05-27  Jim Meyering  <meyering@lucent.com>
71784
71785         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71786         Check for ut_type in struct utmp.
71787
71788 2001-05-27  Jim Meyering  <meyering@lucent.com>
71789
71790         * lib/readutmp.h (UT_TYPE): Define.
71791
71792 2001-05-24  Jim Meyering  <meyering@lucent.com>
71793
71794         * lib/argmatch.c: Include "quote.h".
71795         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71796         quote function.  Reported by Göran Uddeborg.
71797
71798 2001-05-22  Jim Meyering  <meyering@lucent.com>
71799
71800         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71801         now that we use the package-supplied version unconditionally.
71802         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71803
71804 2001-05-21  Jim Meyering  <meyering@lucent.com>
71805
71806         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71807         shell syntax errors.
71808
71809 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71810
71811         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71812
71813 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71814
71815         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71816         Don't bother to check library strftime, since
71817         we'll be using our own my_strftime function anyway.
71818         Define my_strftime instead of strftime.
71819
71820 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71821
71822         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71823         which is not yet declared.
71824
71825 2001-05-15  Jim Meyering  <meyering@lucent.com>
71826
71827         * m4/regex.m4: Use proper quoting so brackets appear in the test
71828         program.
71829         Reported by, and with help from, Bruno Haible.
71830
71831 2001-05-13  Jim Meyering  <meyering@lucent.com>
71832
71833         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71834         undefined.
71835
71836 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71837
71838         dirname code cleanup.  base_name now behaves more compatibly
71839         with POSIX basename when given file names that have trailing
71840         slashes, and similarly for dir_name.  Add new primitives
71841         base_len and dir_len.  Put the directory-name-related decls
71842         into dirname.h.
71843
71844         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71845         * lib/backupfile.c (base_name): Likewise.
71846         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71847         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71848         * lib/makepath.c (strip_trailing_slashes): Likewise.
71849         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71850         ISSLASH): Likewise.
71851         * lib/rename.c (strip_trailing_slashes): Likewise.
71852         * lib/same.c (base_name): Likewise.
71853         * lib/stripslash.c (ISSLASH): Likewise.
71854
71855         * lib/addext.c: Include <dirname.h> after size_t is defined.
71856         * lib/backupfile.c: Likewise.
71857
71858         * lib/addext.c (addext): Use base_len to trim redundant
71859         trailing slashes instead of doing it ourselves.
71860         But do not trim the last slash if it is not redundant.
71861
71862         * lib/backupfile.c (find_backup_file_name,
71863         max_backup_version): Use base_len instead of rolling it ourselves.
71864         Handle the case of "" and (on DOS) "C:" correctly.
71865
71866         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71867         needed. Include <string.h>, <dirname.h>.
71868         (base_name): Allow file names ending in slashes, other than names
71869         that are all slashes.  In this case, return the basename followed
71870         by the slashes.  This is more general, and can be used in places
71871         where the original base_name purposely had an assertion failure.
71872         (base_len): New function.
71873
71874         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71875         Do not include <assert.h>; no longer needed.
71876         Include xalloc.h.
71877         (memrchr): Remove decl.
71878         (dir_name_r): Remove.
71879         (dir_len): Renamed from dirlen.  All callers changed.
71880         Rewrite in terms of base_name, for simplicity and consistency.
71881         (dir_name): Never return NULL.  All callers changed.
71882         Do not include <stdlib.h> in test program; no longer needed.
71883         return 0; is fine for test program.
71884
71885         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71886         New macros.
71887         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71888
71889         * lib/path-concat.c (path_concat): Use base_len to compute
71890         base length, not strlen; this means we cannot rely on memcpy
71891         to null-terminate.
71892
71893         * lib/same.c (STREQ): Remove.
71894         (same_name): Handle the case where the basename ends in trailing '/'.
71895
71896         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71897         a slash was stripped.  Do not strip the last slash after a
71898         file system prefix.
71899
71900 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71901
71902         * lib/Makefile.am (libfetish_a_SOURCES):
71903         Add strftime.c, since we now compile it on all hosts.
71904
71905         * lib/strftime.c (my_strftime):
71906         Define to nstrftime if emacs, but only if my_strftime is not defined.
71907         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71908         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71909         Add one more extra argument: a nanoseconds value.
71910         All uses changed.
71911         (ns): New macro.
71912         (my_strftime function): Add %N format.
71913         (emacs_strftimeu): Renamed from emacs_strftime,
71914         with extra ut argument.
71915
71916 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71917
71918         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71919
71920 2001-04-21  Jim Meyering  <meyering@lucent.com>
71921
71922         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71923         doesn't interfere.
71924
71925 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71926
71927         * m4/ftruncate.m4: Check for chsize.
71928         Link with ftruncate.o unconditionally if ftruncate is missing.
71929         This was required when cross-compiling to i586-mingw32msvc.
71930
71931 2001-04-08  Jim Meyering  <meyering@lucent.com>
71932
71933         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71934         recomputed; that's necessary when the offset spans a DST transition.
71935         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71936
71937 2001-04-02  Jim Meyering  <meyering@lucent.com>
71938
71939         * lib/regex.h, regex.c: Update from GNU libc.
71940
71941 2001-03-24  Jim Meyering  <meyering@lucent.com>
71942
71943         * m4/jm-macros.m4: Require autoconf-2.49d.
71944
71945 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71946
71947         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71948
71949 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71950
71951         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71952
71953 2001-03-17  Jim Meyering  <meyering@lucent.com>
71954
71955         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71956         now that the version in autoconf is equivalent.
71957         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71958
71959         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71960         Suggestion from Akim Demaille.
71961
71962         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71963         (jm_PREREQ_TEMPNAME): New function.
71964
71965 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71966
71967         * lib/tempname.c (uint64_t): Define to uintmax_t if
71968         not defined, and if UINT64_MAX is not defined.
71969         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71970         Reported by John David Anglin.
71971
71972 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71973
71974         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71975         resolve alias if codeset is empty.
71976         * lib/config.charset (BeOS): Use wildcard syntax.
71977
71978 2001-03-13  Jim Meyering  <meyering@lucent.com>
71979
71980         * lib/path-concat.c (path_concat)
71981         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71982         concatenating e.g., `C:' and `foo'.
71983         From Bruno Haible.
71984
71985 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71986
71987         * lib/localcharset.c (locale_charset): Don't use
71988         setlocale(LC_CTYPE,NULL). Don't return NULL.
71989         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71990
71991 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71992
71993         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71994         support for DOS/DJGPP.
71995
71996 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71997
71998         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71999         lacks mkstemp.  Compile our own tempname.c if we compile our own
72000         mkstemp.c, as mkstemp relies on tempname.
72001
72002 2001-03-01  Jim Meyering  <meyering@lucent.com>
72003
72004         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
72005         AH_VERBATIM really does output its argument verbatim.
72006
72007 2001-02-28  Paul Eggert  <eggert@twinsun.com>
72008
72009         * lib/Makefile.am (libfetish_a_SOURCES):
72010         Add dup-safer.c, fopen-safer.c.
72011         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
72012
72013         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
72014         * lib/unistd-safer.h: New files.
72015
72016 2001-02-25  Paul Eggert  <eggert@twinsun.com>
72017
72018         The mkstemp replacement is taken from glibc 2.2.2, with some
72019         portability fixes for use outside glibc, as follows:
72020
72021         * lib/tempname.c (struct_stat64): New macro.
72022         (direxists, __gen_tempname): Use it.
72023         This avoids a portability problem with Solaris 8.
72024
72025         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
72026         (<stddef.h>, <stdint.h>, <string.h>):
72027         Include only if STDC_HEADERS || _LIBC.
72028         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
72029         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
72030         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
72031         (__set_errno): Define this macro if <errno.h> doesn't.
72032         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
72033         Define these macros if <stdio.h> doesn't.
72034         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
72035         Define these macros if <sys/stat.h>
72036         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
72037         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
72038         __xstat64): Define if not _LIBC.
72039         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
72040         (__gen_tempname): Invoke gettimeofday only if
72041         HAVE_GETTIMEOFDAY || _LIBC;
72042         otherwise, fall back on plain "time".
72043         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
72044
72045         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
72046
72047         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
72048
72049 2001-02-18  Paul Eggert  <eggert@twinsun.com>
72050
72051         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
72052
72053 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72054
72055         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
72056         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
72057         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
72058         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
72059
72060 2001-02-17  Paul Eggert  <eggert@twinsun.com>
72061
72062         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
72063         Remove workaround macros for hosts that have mbrtowc but not
72064         mbstate_t, as we now insist on proper declarations for both
72065         before using mbrtowc.
72066
72067 2001-02-17  Jim Meyering  <meyering@lucent.com>
72068
72069         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
72070         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
72071         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
72072         UnixWare 7.1.1.
72073
72074         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
72075         rather than AC_CACHE_VAL.
72076
72077 2001-02-17  Jim Meyering  <meyering@lucent.com>
72078
72079         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
72080         around included file name.
72081
72082         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
72083
72084         * lib/strftime.c: Update from GNU libc (the only changes were to
72085         comments).
72086
72087 2001-02-17  Jim Meyering  <meyering@lucent.com>
72088
72089         * lib/regex.c: Update from libc.
72090
72091 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
72092
72093         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
72094         clash.
72095
72096 2001-02-16  Paul Eggert  <eggert@twinsun.com>
72097
72098         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
72099         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
72100         Reported by Mark Hounschell via Paul Eggert.
72101
72102 2001-02-07  Jim Meyering  <meyering@lucent.com>
72103
72104         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
72105
72106 2001-02-05  Jim Meyering  <meyering@lucent.com>
72107
72108         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
72109         it includes the patch required for `large file' support with at least
72110         HP-UX's 10.20 /bin/cc.
72111
72112 2001-02-03  Jim Meyering  <meyering@lucent.com>
72113
72114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
72115         AS_IF, now that it works once again (mysteriously).
72116         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72117
72118 2001-01-30  Jim Meyering  <meyering@lucent.com>
72119
72120         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
72121         * m4/chown.m4: Rename conftestchown to conftest.chown.
72122         * m4/rename.m4: s/conftestdir/conftest.d1/ and
72123         s/conftestdir2/conftest.d2/.
72124         * m4/utimes.m4: s/conftestdata/conftest.data/
72125         Inspired by Pavel Roskin's change in autoconf.
72126
72127 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
72128
72129         * lib/config.charset: Update for FreeBSD 4.2.
72130
72131 2001-01-27  Jim Meyering  <meyering@lucent.com>
72132
72133         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
72134         a use of AS_IF.
72135         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
72136
72137 2001-01-26  Jim Meyering  <meyering@lucent.com>
72138
72139         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
72140         quotearg.c includes it.
72141
72142 2001-01-26  Jim Meyering  <meyering@lucent.com>
72143
72144         * lib/quotearg.c: Include stddef.h.
72145         * lib/quote.c: Include stddef.h.
72146         Reported by Axel Kittenberger.
72147
72148         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
72149         line in double quotes so that it evokes a better diagnostic.
72150         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
72151         Reported by Axel Kittenberger.
72152
72153 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
72154
72155         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
72156         as if it was a `charset'.
72157
72158 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72159
72160         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
72161         has const.
72162
72163 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
72164
72165         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
72166         to avoid a warning.  Add back 'const' to inptr.
72167
72168 2001-01-20  Jim Meyering  <meyering@lucent.com>
72169
72170         Be sure that headers are checked before used in code compiled
72171         for the type checks.
72172         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
72173         In place of that, invoke jm_CHECK_ALL_TYPES.
72174         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
72175         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
72176         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
72177         The check for ssize_t was mistakenly run before the test for unistd.h.
72178
72179         The configure-time check for stdbool.h was missing.
72180         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
72181         (jm_PREREQ_HASH): New function.
72182
72183 2001-01-17  Jim Meyering  <meyering@lucent.com>
72184
72185         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
72186         for autoconf-2.49c.
72187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
72188
72189 2001-01-16  Jim Meyering  <meyering@lucent.com>
72190
72191         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
72192         From Bruno Haible.
72193
72194 2001-01-14  Jim Meyering  <meyering@lucent.com>
72195
72196         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
72197         foo and bar.  Create conftestdir/ in the script, not in the C code.
72198         Remove directories in the script, not in the C code.
72199         Remove conftestdir{,2} before trying to create the directory.
72200         Make the entire configure script fail if the mkdir fails.
72201
72202 2001-01-14  Jim Meyering  <meyering@lucent.com>
72203
72204         * lib/rename.c: New file.  From Volker Borchert.
72205         Include stdlib.h, string.h or strings.h, and xalloc.h.
72206         Use strip_trailing_slashes rather than open-coding it.
72207
72208 2001-01-03  Paul Eggert  <eggert@twinsun.com>
72209
72210         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
72211
72212 2001-01-03  Jim Meyering  <meyering@lucent.com>
72213
72214         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
72215         of local `inptr' to avoid warning with some system declarations of
72216         iconv.
72217
72218 2001-01-02  Volker Borchert  <bt@teknon.de>
72219
72220         * m4/rename.m4: New file.
72221         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
72222
72223 2001-01-01  Jim Meyering  <meyering@lucent.com>
72224
72225         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
72226         even on systems with utmpx.h.  It's necessary for the declaration of
72227         utmp's ut_user member.  Reported by Andreas Jaeger.
72228
72229         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
72230         available. They are required for the declarations of getgrgid and
72231         getpwuid resp.
72232         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
72233         Reported by Andreas Jaeger.
72234
72235 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
72236
72237         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
72238         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
72239         so `make install' also works in VPATH builds.
72240
72241 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
72242
72243         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
72244         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
72245         can be used in subdirectories.
72246
72247 2000-12-29  Paul Eggert  <eggert@twinsun.com>
72248
72249         * lib/modechange.c: Do not assume that mode_t uses the
72250         traditional octal encoding.  E.g. "chmod 1 FOO" should set
72251         the other-execute bit of FOO even if S_IXOTH != 1.
72252
72253         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
72254         WOTH, XOTH, ALLM): New macros.
72255         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
72256          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
72257         Use them.
72258         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
72259         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
72260         (mode_compile):
72261         No need to use uintmax_t; unsigned long is long enough.
72262         Don't bother to get suffix since we don't use it.
72263
72264 2000-12-26  Jim Meyering  <meyering@lucent.com>
72265
72266         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
72267         better with autoheader.
72268
72269 2000-12-24  Jim Meyering  <meyering@lucent.com>
72270
72271         * lib/hash.c (is_prime): Return explicit boolean values.
72272         (hash_get_first): Return NULL to appease Irix5.6's 89.
72273         Reported by Nelson Beebe.
72274
72275 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
72276
72277         * lib/localcharset.c (locale_charset): Add support for Win32.
72278
72279 2000-12-18  Paul Eggert  <eggert@twinsun.com>
72280
72281         * lib/physmem.h, lib/physmem.c: New files.
72282
72283         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72284         (noinst_HEADERS): Add physmem.h.
72285
72286         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72287         't' for compatibility with Solaris 8 sort.
72288
72289 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72290
72291         * lib/config.charset: Add support for BeOS.
72292
72293 2000-12-17  Jim Meyering  <meyering@lucent.com>
72294
72295         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72296         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72297
72298 2000-12-16  Jim Meyering  <meyering@lucent.com>
72299
72300         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72301         N and M) would have treated it like `chown N:N FILE'.
72302
72303         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72304
72305 2000-12-16  Jim Meyering  <meyering@lucent.com>
72306
72307         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72308         SHELLS_FILE to a file name that's useful on djgpp systems.
72309         Include stdlib.h.
72310         (ADDITIONAL_DEFAULT_SHELLS): Define.
72311         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72312         Based mostly on a patch from Prashant TR.
72313
72314 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72315
72316         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72317         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72318         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72319
72320 2000-12-08  Andreas Schwab  <schwab@suse.de>
72321
72322         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72323         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72324
72325 2000-12-07  Jim Meyering  <meyering@lucent.com>
72326
72327         * lib/stripslash.c (ISSLASH): Define.
72328         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72329         `/'.
72330         From Prashant TR.
72331
72332         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72333         (dir_name_r): Declare this function as static.
72334         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72335         manifest itself on a name containing a mix of slashes and
72336         backslashes.
72337         Make this function work with names starting with a DOS-style
72338         drive letter and colon prefix.
72339         (dir_name): Append `.' if necessary.
72340         Based mostly on patches from Prashant TR and Eli Zaretskii.
72341
72342         * lib/dirname.h (dir_name_r): Remove prototype.
72343
72344 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72345
72346         * m4/off_t-format.m4: Remove this file.
72347         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72348
72349 2000-12-06  Jim Meyering  <meyering@lucent.com>
72350
72351         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72352         replacement strtoull, we may well need the replacement strtoul, too.
72353         Check for declarations of strtoul and strtoull.
72354         Check for strtol.  Mainly as a cue to cause automake to include
72355         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72356         Check for limits.h -- strtol.c needs it.
72357
72358 2000-12-05  Jim Meyering  <meyering@lucent.com>
72359
72360         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72361
72362 2000-12-04  Jim Meyering  <meyering@lucent.com>
72363
72364         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72365         Also include memory.h, stdlib.h, unistd.h if appropriate.
72366         Reported by Andreas Jaeger (conflicting declaration of malloc).
72367
72368 2000-12-02  Jim Meyering  <meyering@lucent.com>
72369
72370         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72371         * m4/jm-macros.m4 (jm_MACROS): require it.
72372
72373 2000-12-02  Jim Meyering  <meyering@lucent.com>
72374
72375         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72376
72377 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72378
72379         * lib/memrchr.c: Include <config.h> before any system include file.
72380
72381 2000-11-30  Jim Meyering  <meyering@lucent.com>
72382
72383         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72384
72385 2000-11-30  Jim Meyering  <meyering@lucent.com>
72386
72387         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72388
72389 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72390
72391         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72392
72393 2000-11-26  Jim Meyering  <meyering@lucent.com>
72394
72395         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72396
72397 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72398
72399         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72400         size of (size_t) -1; it's not portable.
72401
72402 2000-11-17  Jim Meyering  <meyering@lucent.com>
72403
72404         * lib/strstr.c: Update from GNU libc.
72405
72406 2000-11-17  Akim Demaille  <akim@epita.fr>
72407
72408         * lib/obstack.h: Formatting changes.
72409         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72410         prevent type checking.
72411         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72412         cast the value to (void *): assigning a `foo *' to a `void *'
72413         variable is valid.
72414         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72415
72416 2000-11-16  Jim Meyering  <meyering@lucent.com>
72417
72418         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72419
72420 2000-11-11  Jim Meyering  <meyering@lucent.com>
72421
72422         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72423
72424 2000-11-10  Jim Meyering  <meyering@lucent.com>
72425
72426         * lib/obstack.h: Update from GNU libc.
72427         * lib/obstack.c: Likewise.
72428
72429 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72430
72431         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72432
72433 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72434
72435         * lib/getusershell.c (setusershell): Use rewind rather than
72436         fseek/fseeko, to avoid configuration hassles with fseeko.
72437         Don't bother opening SHELLS_FILE if shellstream is NULL;
72438         it's not necessary.
72439
72440 2000-11-05  Jim Meyering  <meyering@lucent.com>
72441
72442         * lib/makepath.h (make_dir): Declare.
72443         * lib/makepath.c (make_dir): Remove `static' attribute.
72444         Tweak a comment.
72445
72446 2000-11-04  Jim Meyering  <meyering@lucent.com>
72447
72448         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72449
72450 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72451
72452         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72453         last one in a bucket, advance to the next bucket.
72454
72455 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72456
72457         * lib/fnmatch.c: Do not comment out all the code if we are using
72458         the GNU C library, because in some cases we are replacing buggy
72459         code in the GNU C library itself.
72460
72461 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72462
72463         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72464         (regex_compile): Catch bogus \(\1\).
72465
72466 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72467
72468         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72469         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72470         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72471
72472 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72473
72474         * lib/error.h, getline.h, modechange.h:
72475         Remove "2000" from Copyright line, as the file hasn't been
72476         changed this year other than in the copyright notice.
72477
72478         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72479         was changed this year.
72480
72481 2000-10-29  Jim Meyering  <meyering@lucent.com>
72482
72483         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72484         renaming.
72485         * m4/ls-mntd-fs.m4: Likewise
72486
72487 2000-10-29  Jim Meyering  <meyering@lucent.com>
72488
72489         * lib/xstat.in: Fix grammar in comment.
72490
72491 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72492
72493         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72494         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72495         doesn't define __restrict_arr.
72496
72497 2000-10-28  Jim Meyering  <meyering@lucent.com>
72498
72499         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72500         (jm_PREREQ_MEMCHR): New function.
72501
72502 2000-10-28  Jim Meyering  <meyering@lucent.com>
72503
72504         * lib/memchr.c: Update from libc.
72505         Adjust for portability:
72506         [HAVE_STDLIB_H]: Include stdlib.h.
72507         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72508         Undef __memchr, too.
72509         [!weak_alias]: Define __memchr to memchr.
72510
72511         * lib/regex.c: Update from libc.
72512         * lib/regex.h: Likewise.
72513         * lib/getopt1.c: Likewise.
72514         * lib/memcmp.c: Likewise.
72515
72516         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72517         Avoid using fseek, when possible -- it's broken by design.
72518         Patch by Ulrich Drepper.
72519
72520 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72521
72522         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72523         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72524         Giving in to popular pressure to shut up the compiler with casts.
72525
72526 2000-10-26  Jim Meyering  <meyering@lucent.com>
72527
72528         * lib/strftime.c: Update from libc.
72529
72530 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72531
72532         * regex.c: More `unsigned char' -> `re_char' changes.
72533         Also change several `int' into `re_wchar_t'.
72534         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72535         (PUSH_FAILURE_POINTER): Don't cast any more.
72536         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72537         We want GCC to complain, since this piece of code makes
72538         re_match non-reentrant, which *should* be fixed.
72539         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72540         (EXTEND_BUFFER): Use RETALLOC.
72541         (SET_LIST_BIT): Don't cast.
72542         (re_wchar_t): New type.
72543         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72544         that those two functions will always properly return.
72545         (IMMEDIATE_QUIT_CHECK): Cast to void.
72546         (analyse_first): Use recursion rather than an explicit stack.
72547         (re_compile_fastmap): Can't fail anymore.
72548         (re_search_2): Don't check re_compile_fastmap for failure.
72549         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72550         Now also sets the new value (passed in a new argument).
72551         (re_match_2_internal): Use it.
72552         Also, use a new var `reg' of type size_t when looping through regs
72553         rather than reuse the inappropriate `mcnt'.
72554
72555 2000-10-25  Jim Meyering  <meyering@lucent.com>
72556
72557         * lib/obstack.c: Update from libc.
72558
72559 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72560
72561         * regex.c (regex_compile): Change the way of handling a range from
72562         a char less than 256 to a char not less than 256.
72563
72564 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72565
72566         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72567         NT-Emacs only.
72568         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72569         so that re_search functions only quit when callers expect them to.
72570
72571 2000-10-23  Jim Meyering  <meyering@lucent.com>
72572
72573         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72574         wrong.  That set_locale call must not have any side effects.
72575         From Paul Eggert.
72576
72577 2000-10-22  Jim Meyering  <meyering@lucent.com>
72578
72579         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72580         [CYCLIC]: Remove now-unused definition.
72581
72582         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72583         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72584         Suggestion from Ulrich Drepper.
72585
72586 2000-10-21  Jim Meyering  <meyering@lucent.com>
72587
72588         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72589         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72590         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72591
72592 2000-10-21  Jim Meyering  <meyering@lucent.com>
72593
72594         * lib/dirname.c (memrchr): Declare if necessary.
72595         (dir_name): Remove the restriction that there be no
72596         trailing slashes.  Now, this code skips past them, effectively
72597         ignoring them.
72598         [TEST_DIRNAME] (main): New unit tests.
72599
72600         * lib/memrchr.c: New file from GNU libc.
72601         Undef __memrchr, too.
72602         [!weak_alias]: Define __memrchr to memrchr.
72603         Guard weak_alias use with `#ifdef weak_alias'.
72604
72605 2000-10-21  Jim Meyering  <meyering@lucent.com>
72606
72607         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72608         (dir_name): Use dir_name_r.
72609         * lib/dirname.h (dir_name_r): Declare it.
72610
72611 2000-10-17  Jim Meyering  <meyering@lucent.com>
72612
72613         * lib/quote.h (PARAMS): Define and use.
72614         Reported by Akim Demaille.
72615
72616         * lib/getopt.c: Update from libc.
72617
72618 2000-10-16  Jim Meyering  <meyering@lucent.com>
72619
72620         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72621         setlocale.
72622         From Jan Fedak.
72623
72624 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72625
72626         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72627
72628 2000-09-25  Jim Meyering  <meyering@lucent.com>
72629
72630         * lib/md5.h (rol): Define (from GnuPG).
72631
72632         * lib/sha.c: Give credit (GnuPG) where due.
72633         (M): Use rol rather than open-coding it.
72634         Add a FIXME comment.
72635
72636 2000-09-21  Jim Meyering  <meyering@lucent.com>
72637
72638         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72639         Reported by Michael Stone.
72640
72641 2000-09-20  Jim Meyering  <meyering@lucent.com>
72642
72643         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72644         (noinst_HEADERS): Add sha.h.
72645         Based on code from Scott G. Miller and from GnuPG.
72646
72647 2000-09-18  Jim Meyering  <meyering@lucent.com>
72648
72649         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72650         LIBS. Otherwise, everyone ends up linking with -lelf for some
72651         configurations.
72652         Reported by Mike Stone.
72653
72654 2000-09-15  Jim Meyering  <meyering@lucent.com>
72655
72656         * lib/regex.c: Update from libc.
72657
72658 2000-09-10  Jim Meyering  <meyering@lucent.com>
72659
72660         * lib/getopt.c (_getopt_internal): Update from glibc.
72661
72662 2000-09-09  Jim Meyering  <meyering@lucent.com>
72663
72664         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72665         think it should be used as a general replacement for isascii.
72666         * lib/fnmatch.c: Likewise.
72667         * lib/mbswidth.c: Likewise
72668         * lib/regex.c: Likewise.
72669
72670         Don't use atoi.
72671         * lib/userspec.c: Include sys/param.h and limits.h.
72672         Include xstrtol.h.
72673         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72674         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72675         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72676         UID, GID.  Check range.
72677
72678 2000-09-06  Jim Meyering  <meyering@lucent.com>
72679
72680         * lib/getopt.c (_getopt_internal): Update from glibc.
72681
72682 2000-08-30  Jim Meyering  <meyering@lucent.com>
72683
72684         * lib/strftime.c: Merge in changes from GNU libc.
72685
72686 2000-08-26  Jim Meyering  <meyering@lucent.com>
72687
72688         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72689         * m4/fpending.m4: New file.
72690
72691 2000-08-26  Jim Meyering  <meyering@lucent.com>
72692
72693         * lib/closeout.c: Include "__fpending.h".
72694         (close_stdout_status): Return right away if there's nothing to flush.
72695
72696         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72697         * lib/__fpending.c: New file.
72698         * lib/__fpending.h: New file.
72699
72700 2000-08-20  Jim Meyering  <meyering@lucent.com>
72701
72702         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72703         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72704         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72705
72706 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72707
72708         Improve fileutils installation on systems where running
72709         programs (like install) can't be unlinked.
72710         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72711         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72712
72713 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72714
72715         Standardize on "memory exhausted" instead of "Memory exhausted"
72716         or "virtual memory exhausted".
72717         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72718         "virtual memory exhausted".
72719         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72720         our own message.
72721         * lib/userspec.c (parse_user_spec): Likewise.
72722         * lib/bumpalloc.h: comment fix
72723         * lib/same.c, userspec.c: Include xalloc.h.
72724
72725         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72726         not char *const and pointing to a constant array.
72727         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72728         (xrealloc): Comment fix.
72729
72730         * lib/userspec.c (parse_user_spec):
72731         Don't translate a message until just before returning,
72732         to avoid unnecessary translation.
72733
72734 2000-08-07  Jim Meyering  <meyering@lucent.com>
72735
72736         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72737         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72738         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72739         getgroups.c, gethostname.c, getopt.h, group-member.c,
72740         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72741         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72742         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72743         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72744         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72745         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72746         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72747         yesno.c: Back out Copyright date changes for each file with no change
72748         this year.  This eases coordination with other programs using the same
72749         source code modules.  From Paul Eggert.
72750
72751 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72752
72753         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72754         not char, for compatibility with glibc 2.1.3 strftime.c.
72755
72756 2000-08-03  Greg McGary  <greg@mcgary.org>
72757
72758         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72759         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72760         (EXTEND_BUFFER): Use them.
72761
72762 2000-08-01  Jim Meyering  <meyering@lucent.com>
72763
72764         * lib/dirname.c (ISSLASH): Define.
72765         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72766         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72767         both `\' and `/' may be use as path separators.
72768         Based on a patch from Prashant TR.
72769
72770 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72771
72772         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72773         slot vector a constant, since it might get modified.
72774
72775 2000-07-31  Jim Meyering  <meyering@lucent.com>
72776
72777         * lib/xmalloc.c: Use `virtual memory exhausted', not
72778         `Memory exhausted'.
72779         * lib/obstack.c (print_and_abort): Likewise.
72780
72781 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72782
72783         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72784         buffer, so that the caller can always quote one small
72785         component of a "memory exhausted" message in slot 0.
72786         From a suggestion by Jim Meyering.
72787
72788 2000-07-30  Jim Meyering  <meyering@lucent.com>
72789
72790         * lib/makepath.c (make_path): Quote the other instance, too.
72791
72792         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72793         (STATIC_BUF_SIZE): Define.
72794         (quotearg_n_options): Use only statically allocated storage when
72795         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72796         than STATIC_BUF_SIZE.
72797
72798 2000-07-29  Jim Meyering  <meyering@lucent.com>
72799
72800         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72801         * lib/dirname.c (dir_name): Likewise.
72802
72803         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72804         `/'.
72805
72806         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72807         (dir_name): Assert that there are no trailing slashes.
72808
72809 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72810
72811         * lib/mbswidth.h (mbswidth): Add a flags argument.
72812         (mbswidth): New declaration.
72813         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72814         * lib/mbswidth.c (mbswidth): Add a flags argument.
72815         (mbsnwidth): New function.
72816
72817 2000-07-24  Jim Meyering  <meyering@lucent.com>
72818
72819         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72820
72821 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72822
72823         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72824
72825 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72826
72827         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72828         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72829         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72830         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72831         invoke multibyte primitives.
72832
72833 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72834
72835         * lib/quotearg.c:
72836         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72837         so that mbstate_t is always defined.
72838
72839         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72840         be 1 in at least one GCC installation, and this configuration
72841         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72842         performance on hosts that have mbrtowc but have only unibyte
72843         locales, but I assume these hosts are rare.
72844
72845 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72846
72847         * lib/mbswidth.c (_XOPEN_SOURCE):
72848         Don't define; this causes problems on Solaris 7.
72849         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72850
72851 2000-07-23  Jim Meyering  <meyering@lucent.com>
72852
72853         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72854         too: getgrgid, getpwuid, getuid.
72855
72856 2000-07-23  Jim Meyering  <meyering@lucent.com>
72857
72858         * lib/basename.c (base_name): Add an assertion.
72859
72860 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72861
72862         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72863         shadow its mbsinit function.
72864
72865 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72866
72867         * lib/mbswidth.h: New file.
72868         * lib/mbswidth.c: New file.
72869         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72870         (noinst_HEADERS): Add mbswidth.h.
72871
72872 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72873
72874         * lib/config.charset: Add support for FreeBSD. Improve support for
72875         HP-UX and IRIX 6.
72876
72877 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72878
72879         * m4/mbswidth.m4: New file.
72880         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72881
72882 2000-07-15  Jim Meyering  <meyering@lucent.com>
72883
72884         * lib/makepath.c: Include quote.h.
72885         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72886         corresponding argument in a `quote (...)' call.
72887         Give better diagnostics.
72888
72889         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72890         (noinst_HEADERS): Add quote.h.
72891
72892         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72893         from tar's src/misc.c.
72894         * lib/quote.h: New file.  Prototypes for same.
72895
72896 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72897
72898         From a suggestion by Bruno Haible.
72899         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72900         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72901         to decide whether to define the BeOS workaround macro;
72902         this adjusts to the change to AC_MBSTATE_T.
72903
72904 2000-07-14  Jim Meyering  <meyering@lucent.com>
72905
72906         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72907         jm_AC_TYPE_UINTMAX_T.
72908
72909 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72910
72911         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72912
72913         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72914         quotearg_buffer_restyled): Add support for
72915         clocale_quoting_style.  Undo previous change to
72916         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72917         and "{RIGHT QUOTATION MARK}" msgids.
72918
72919 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72920
72921         From a suggestion by Bruno Haible.
72922         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72923         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72924         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72925         and mbstate_t, to a single-part test that simply defines mbstate_t.
72926         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72927         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72928
72929 2000-07-10  Jim Meyering  <meyering@lucent.com>
72930
72931         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72932
72933         * m4/gnu-source.m4: Output to confdefs.h directly.
72934         Suggestion from Akim Demaille.
72935
72936 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72937
72938         The old behavior of quoting `like this' doesn't look good with
72939         newer, ISO-style fonts.  See:
72940         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72941
72942         Instead, quote "like this" by default.  Let the translator
72943         tailor the locale-specific quoting behavior by providing
72944         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72945
72946         * lib/quotearg.c (N_): New macro.
72947         (gettext_default): New function.
72948         (quotearg_buffer_restyled): Use
72949         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72950         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72951
72952 2000-07-09  Jim Meyering  <meyering@lucent.com>
72953
72954         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72955         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72956
72957         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72958         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72959
72960 2000-07-09  Jim Meyering  <meyering@lucent.com>
72961
72962         * lib/Most files: Update copyright dates to include 2000.
72963
72964 2000-07-08  Jim Meyering  <meyering@lucent.com>
72965
72966         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72967         if not defined.
72968         (xgethostname): Remove now-unnecessary #ifdef.
72969         Move declaration of `err' into loop where it's used.
72970
72971 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72972         and Bruno Haible  <haible@clisp.cons.org>
72973
72974         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72975         only if the test for an object-type mbstate_t fails.  This
72976         prevents us from mistakenly reporting that mbstate_t is a
72977         system object type after we "#define mbstate_t int" to work
72978         around its lack.
72979
72980 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72981         and Bruno Haible  <haible@clisp.cons.org>
72982
72983         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72984
72985 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72986
72987         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72988         to strerror_r.
72989         Include <ctype.h> for use of isalpha.
72990
72991 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72992
72993         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72994         by allocating a larger buffer. Test the gethostname return value for
72995         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72996         returns an error and ENAMETOOLONG isn't defined.
72997
72998 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72999
73000         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
73001         dimension.
73002
73003 2000-07-04  Jim Meyering  <meyering@lucent.com>
73004
73005         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
73006         of the deprecated AC_CHECKING.
73007
73008 2000-07-04  Jim Meyering  <meyering@lucent.com>
73009
73010         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
73011         Reported by Bruno Haible.
73012
73013 2000-07-04  Jim Meyering  <meyering@lucent.com>
73014
73015         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
73016         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
73017         lacks mbrtowc.
73018
73019 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73020
73021         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
73022         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
73023
73024 2000-07-03  Paul Eggert  <eggert@twinsun.com>
73025         and Bruno Haible  <haible@clisp.cons.org>
73026
73027         * lib/quotearg.c (mbrtowc):
73028         Assign to *pwc, and return 1 only if result is nonzero.
73029         (iswprint): Use ISPRINT when substituting our own mbrtowc.
73030
73031 2000-07-03  Jim Meyering  <meyering@lucent.com>
73032
73033         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
73034
73035 2000-07-03  Jim Meyering  <meyering@lucent.com>
73036
73037         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
73038         This is necessary to get a definition of e.g., UTMP_FILE on
73039         HP-UX 10.20.
73040         From Bob Proulx.
73041
73042 2000-07-02  Jim Meyering  <meyering@lucent.com>
73043
73044         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
73045
73046         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
73047         AC_LIBOBJ(function_name).
73048         * m4/chown.m4: Likewise.
73049         * m4/fnmatch.m4: Likewise.
73050         * m4/ftruncate.m4: Likewise.
73051         * m4/getgroups.m4: Likewise.
73052         * m4/getline.m4: Likewise.
73053         * m4/group-member.m4: Likewise.
73054         * m4/jm-macros.m4: Likewise.
73055         * m4/lstat.m4: Likewise.
73056         * m4/malloc.m4: Likewise.
73057         * m4/memcmp.m4: Likewise.
73058         * m4/nanosleep.m4: Likewise.
73059         * m4/putenv.m4: Likewise.
73060         * m4/realloc.m4: Likewise.
73061         * m4/regex.m4: Likewise.
73062         * m4/stat.m4: Likewise.
73063         * m4/strftime.m4: Likewise.
73064
73065 2000-07-02  Jim Meyering  <meyering@lucent.com>
73066
73067         * lib/quotearg.c (mbstate_t): Don't define here.
73068
73069 2000-07-02  Jim Meyering  <meyering@lucent.com>
73070
73071         * lib/nanosleep.c (SIGCONT): Define if not already defined.
73072
73073 2000-07-01  Jim Meyering  <meyering@lucent.com>
73074
73075         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
73076
73077 2000-07-01  Jim Meyering  <meyering@lucent.com>
73078
73079         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
73080         problem.
73081
73082 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73083
73084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
73085         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
73086
73087 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
73088
73089         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
73090         per change in ../m4/ls-mntd-fs.m4.
73091         (read_filesystem_list): Ignore symbolic links.
73092
73093 2000-06-29  Jim Meyering  <meyering@lucent.com>
73094
73095         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
73096         for declaration of strcmp.
73097
73098         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
73099
73100         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
73101         Avoid warning by casting result to `char *' to remove `const'.
73102
73103 2000-06-28  Jim Meyering  <meyering@lucent.com>
73104
73105         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
73106         included by quotearg.c, for which we perform this test.  From
73107         Bruno Haible.
73108
73109 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73110
73111         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
73112         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
73113         <utmpx.h> exists, put readutmp.o into LIBOBJS.
73114
73115 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
73116
73117         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
73118
73119 2000-06-26  Paul Eggert  <eggert@twinsun.com>
73120
73121         savedir now sets errno on failure and invokes xmalloc to get memory.
73122         Fix a couple of other minor bugs while we're at it.
73123
73124         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
73125         (NAMLEN): Remove macro.
73126         (malloc, realloc): Remove decls.
73127         (stpcpy): Likewise.
73128         ("xalloc.h"): Include.
73129         (NAME_SIZE_DEFAULT): New macro.
73130         (savedir): Use xmalloc / xrealloc to allocate memory.
73131         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
73132         Skip "" directory entries.
73133         Use strlen to calculate directory entry length, since the old method
73134         is rarely used these days and isn't worth supporting.
73135         Don't use a pointer after freeing it.
73136         Check for integer overflow when calculating allocation size.
73137         Use memcpy to copy entries, instead of stpcpy.
73138         Set errno properly when returning NULL.
73139         Check for readdir error.
73140
73141 2000-06-26  Jim Meyering  <meyering@lucent.com>
73142
73143         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
73144
73145 2000-06-25  Jim Meyering  <meyering@lucent.com>
73146
73147         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
73148         Linux header bug when _XOPEN_SOURCE is defined to 500.
73149
73150 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73151
73152         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
73153         deficiency.
73154
73155 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
73156
73157         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
73158         Include xalloc.h.
73159         Don't include <stdlib.h>.  Don't declare malloc, realloc.
73160
73161 2000-06-24  Jim Meyering  <meyering@lucent.com>
73162
73163         * m4/strerror_r.m4: Revive this file -- to try out an experimental
73164         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
73165         for which strerror does return char*, but which lacks a conveniently
73166         accessible declaration of the function.  If the compile-test says
73167         strerror_r doesn't work, then resort to a `run'-test that works on
73168         BeOS and segfaults on DEC Unix.
73169
73170 2000-06-24  Jim Meyering  <meyering@lucent.com>
73171
73172         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
73173
73174 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73175
73176         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
73177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
73178
73179 2000-06-23  Paul Eggert  <eggert@twinsun.com>
73180
73181         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
73182         (mbrtowc, mbstate_t): Define substitutes if
73183         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
73184         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
73185         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
73186
73187 2000-06-23  Jim Meyering  <meyering@lucent.com>
73188
73189         * m4/afs.m4: Add missing AC_MSG_RESULT.
73190         Reported by Bruno Haible.
73191
73192         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
73193         Suggestion from Bruno Haible.
73194
73195 2000-06-23  Jim Meyering  <meyering@lucent.com>
73196
73197         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
73198
73199 2000-06-21  Jim Meyering  <meyering@lucent.com>
73200
73201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
73202
73203 2000-06-21  Jim Meyering  <meyering@lucent.com>
73204
73205         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
73206         (noinst_HEADERS): Add getstr.h.
73207
73208         * lib/getline.c (getstr): Move into a separate file.
73209         * lib/getstr.c (getstr): New file, extracted from getline.c, with
73210         the following changes: new parameter, delim2; both delim[12]
73211         parameters have type `int', not `char'.  The latter would lose
73212         with 8-bit delimiters.
73213         * lib/getstr.h: New file.
73214
73215 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73216
73217         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
73218         than 1024, return a memory chunk of least possible size, instead
73219         of size PATH_MAX + 2. In the loop, increment the size proportionally.
73220         Use free/xmalloc instead of xrealloc to avoid copying for very long
73221         paths.
73222
73223 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73224
73225         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
73226         the empty string.
73227
73228 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
73229
73230         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
73231         address, not strdup.  Include <stdlib.h> and don't declare free().
73232
73233 2000-06-19  Jim Meyering  <meyering@lucent.com>
73234
73235         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
73236
73237 2000-06-18  Jim Meyering  <meyering@lucent.com>
73238
73239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
73240
73241         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
73242         `checking whether...' message to be consistent with that of the
73243         lstat test.
73244
73245 2000-06-18  Jim Meyering  <meyering@lucent.com>
73246
73247         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
73248         Besides, these days every porting target provides a mkdir function.
73249
73250         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
73251         needed. (this snippet comes from src/system.h).
73252
73253 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
73254
73255         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
73256
73257 2000-06-15  Paul Eggert  <eggert@twinsun.com>
73258
73259         * lib/human.c (adjust_value): New function.
73260         (human_readable_inexact): Apply rounding style even when
73261         printing approximate values.
73262
73263 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73264
73265         * lib/human.c (human_readable_inexact): Allow an input block
73266         size that is not a multiple of the output block size, and vice versa.
73267         Reported by Piergiorgio Sartor.
73268
73269 2000-06-14  Paul Eggert  <eggert@twinsun.com>
73270
73271         * lib/getdate.y (get_date): Apply relative times after time
73272         zone indicator, not before.  Reported by Todd A. Jacobs.
73273
73274 2000-06-13  Jim Meyering  <meyering@lucent.com>
73275
73276         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
73277
73278         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
73279
73280 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73281
73282         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73283
73284 2000-06-12  Jim Meyering  <meyering@lucent.com>
73285
73286         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73287         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73288         optional argument.
73289         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73290         the optional argument, `lib'.
73291
73292 2000-06-08  Jim Meyering  <meyering@lucent.com>
73293
73294         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73295
73296 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73297
73298         Rewrite largefile configuration so that we don't need to run
73299         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73300         AC_CANONICAL_HOST in configure.in -- jmm]
73301
73302         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73303         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73304         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73305         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73306         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73307         All uses changed.
73308         Instead of inspecting the output of getconf, try to compile the
73309         test program without and with the macro definition.
73310         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73311         for getconf.  Instead, check for the needed flags by compiling
73312         test programs.
73313
73314 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73315
73316         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73317
73318 2000-06-04  Jim Meyering  <meyering@lucent.com>
73319
73320         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73321         SunOS 4.1.4 for which gid_t is an unsigned type.
73322
73323 2000-06-03  Jim Meyering  <meyering@lucent.com>
73324
73325         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73326         now that autoconf requires that.
73327
73328         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73329         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73330         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73331
73332 2000-06-03  Jim Meyering  <meyering@lucent.com>
73333
73334         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73335
73336 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73337
73338         * m4/glibc21.m4: New file.
73339         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73340
73341 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73342
73343         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73344         newer, don't install charset.alias.
73345         * lib/config.charset: Change the Linux/glibc rules so they become empty
73346         on glibc-2.1 or newer.
73347
73348 2000-06-02  Jim Meyering  <meyering@lucent.com>
73349
73350         * lib/mountlist.c: Back out last change.  Instead, do this...
73351         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73352         me_dummy member using the same `ignore'-testing code.
73353         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73354         fs_type strings.
73355         From Mark D. Roth.
73356
73357 2000-05-29  Jim Meyering  <meyering@lucent.com>
73358
73359         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73360         mounts with the `ignore' attribute.  Based on a patch from
73361         Mark D. Roth.
73362
73363 2000-05-28  Jim Meyering  <meyering@lucent.com>
73364
73365         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73366         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73367         * m4/stat.m4: Likewise.
73368         * m4/lstat.m4: Likewise.
73369         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73370
73371         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73372         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73373
73374 2000-05-26  Jim Meyering  <meyering@lucent.com>
73375
73376         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73377
73378 2000-05-24  Jim Meyering  <meyering@lucent.com>
73379
73380         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73381         autoconf requires that.
73382         * m4/lib-check.m4: Likewise.
73383         * m4/jm-macros.m4: Likewise.
73384         * m4/strftime.m4: Likewise.
73385
73386         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73387         AC_CHECK_DECLS, now that autoconf requires that.
73388
73389 2000-05-22  Jim Meyering  <meyering@lucent.com>
73390
73391         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73392         * m4/lstat.m4: Likewise.
73393
73394 2000-05-22  Jim Meyering  <meyering@lucent.com>
73395
73396         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73397
73398 2000-05-20  Jim Meyering  <meyering@lucent.com>
73399
73400         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73401         (jm_PREREQ): Use it.
73402
73403 2000-05-18  Jim Meyering  <meyering@lucent.com>
73404
73405         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73406         back, too, since it may have been modified by allocate_entry.
73407         (hash_delete): Rewrite to use neither the assignment operator
73408         nor the comma operator in an if-expression.
73409
73410 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73411
73412         * lib/closeout.c:
73413         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73414         Remove; no longer needed.
73415         "quotearg.h": Add include.
73416         (file_name): Do not bother to explicitly initialize to NULL; it's less
73417         efficient on some hosts.
73418         (close_stdout_status): Remove test as to whether stdout was already
73419         closed; it breaks for the case "echo x | sort >&-".
73420         Quote file name colons.
73421         Do not assume that _("write error") lacks format strings.
73422
73423 2000-05-15  Jim Meyering  <meyering@lucent.com>
73424
73425         * lib/version-etc.c (version_etc_copyright): Update the copyright
73426         string used in all --version output.
73427
73428 2000-05-14  Jim Meyering  <meyering@lucent.com>
73429
73430         * lib/closeout.c (close_stdout_set_file_name): New function.
73431         (close_stdout_status): Use new file-scoped global.
73432         Return right away if fstat says the stdout file descriptor is invalid.
73433         * lib/closeout.h (close_stdout_set_file_name): Declare.
73434
73435 2000-05-10  Jim Meyering  <meyering@lucent.com>
73436
73437         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73438         (close_stdout_set_status): New function.
73439         * lib/closeout.h (close_stdout_set_status): Declare.
73440
73441 2000-05-09  Jim Meyering  <meyering@lucent.com>
73442
73443         * m4/gettext.m4: Rename this...
73444         * m4/libintl.m4: ...to this.
73445
73446 2000-05-08  Jim Meyering  <meyering@lucent.com>
73447
73448         * lib/long-options.c: Don't include closeout.h.
73449         (parse_long_options): Don't call close_stdout for --version.
73450
73451 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73452
73453         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73454         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73455         2.1.3 bug.  This avoids a clash when files like regex.c define
73456         _GNU_SOURCE.
73457
73458 2000-05-06  Jim Meyering  <meyering@lucent.com>
73459
73460         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73461         (AC_REPLACE_FUNCS): Add strnlen.
73462
73463         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73464         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73465
73466         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73467         AC_SEARCH_LIBS call for nanosleep.
73468         (LIB_NANOSLEEP): Set and AC_SUBST.
73469
73470 2000-05-06  Jim Meyering  <meyering@lucent.com>
73471
73472         * lib/strnlen.c: Undefine __strnlen and strnlen.
73473         [!weak_alias]: Define __strnlen to strnlen.
73474
73475         * lib/atexit.c: New file, from libiberty.
73476
73477 2000-05-06  Jim Meyering  <meyering@lucent.com>
73478
73479         * lib/closeout.c (close_stdout_status): Also check for errors on the
73480         stderr stream.
73481
73482 2000-05-05  Jim Meyering  <meyering@lucent.com>
73483
73484         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73485         AC_SEARCH_LIBS call for clock_gettime.
73486         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73487
73488         * m4/search-libs.m4: Update from autoconf.
73489
73490         su doesn't work on Solaris 2.6.
73491         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73492         <shadow.h>.  Reported by Dragos Harabor.
73493
73494 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73495
73496         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73497         memcpy instead of xmalloc, xrealloc, path_concat.
73498         (locale_charset): Treat empty environment variables as absent.
73499         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73500
73501 2000-05-04  Jim Meyering  <meyering@lucent.com>
73502
73503         * lib/getopt.c: Update from glibc.
73504         * lib/obstack.c: Likewise.
73505         * lib/obstack.h: Likewise.
73506         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73507         file
73508
73509         * lib/regex.h: Likewise.
73510         * lib/strndup.c: Likewise.
73511         * lib/strnlen.c: New file, from glibc.
73512
73513 2000-05-03  Jim Meyering  <meyering@lucent.com>
73514
73515         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73516
73517 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73518
73519         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73520         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73521         compile-time test, rather than inspecting host and OS, to
73522         decide whether to define _LARGEFILE_SOURCE.
73523
73524 2000-05-01  Jim Meyering  <meyering@lucent.com>
73525
73526         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73527
73528         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73529         Based on a patch from Bruno Haible.
73530
73531 2000-05-01  Jim Meyering  <meyering@lucent.com>
73532
73533         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73534
73535 2000-04-29  Jim Meyering  <meyering@lucent.com>
73536
73537         * lib/path-concat.c: Declare strdup only if it's not defined.
73538         * lib/canon-host.c: Likewise.
73539
73540 2000-04-28  Jim Meyering  <meyering@lucent.com>
73541
73542         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73543         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73544         is included first, then limits.h is included by locale.h by libintl.h.
73545         From John David Anglin.
73546
73547 2000-04-25  Jim Meyering  <meyering@lucent.com>
73548
73549         * lib/makepath.c (S_IRWXUGO): Define.
73550         (make_path): Always perform explicit chmod if MODE specifies any
73551         of the `special' permission bits.  Prompted by a bug report against
73552         install from Mate Wierdl and Joost van Baal.
73553
73554 2000-04-18  Jim Meyering  <meyering@lucent.com>
73555
73556         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73557         (jm_PREREQ): Use it.
73558
73559 2000-04-18  Jim Meyering  <meyering@lucent.com>
73560
73561         * lib/README: New file.
73562
73563         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73564         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73565
73566 2000-04-17  Jim Meyering  <meyering@lucent.com>
73567
73568         Get it right :-)
73569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73570         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73571         Suggestion from Akim Demaille.
73572
73573 2000-04-17  Jim Meyering  <meyering@lucent.com>
73574
73575         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73576         the definition of it to rpl_strftime also defined-away the system's
73577         declaration.
73578
73579 2000-04-15  Jim Meyering  <meyering@lucent.com>
73580
73581         Use `C' to denote so-called `contiguous' files, the same way
73582         that tar does.
73583         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73584         (ftypelet): Use S_ISCTG.
73585         From Michael Deutschmann.
73586
73587 2000-04-14  Jim Meyering  <meyering@lucent.com>
73588
73589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73590         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73591         clobbered.
73592
73593 2000-04-14  Jim Meyering  <meyering@lucent.com>
73594
73595         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73596
73597 2000-04-13  Jim Meyering  <meyering@lucent.com>
73598
73599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73600         AH_VERBATIM to insert required #ifndef into config.h.in.
73601         Suggestion from Akim Demaille.
73602
73603 2000-04-12  Jim Meyering  <meyering@lucent.com>
73604
73605         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73606         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73607         Christian Krackowizer.
73608
73609         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73610         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73611         (AC_SYS_LARGEFILE): Require.
73612         (AM_C_PROTOTYPES): Require.
73613
73614 2000-04-08  Jim Meyering  <meyering@lucent.com>
73615
73616         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73617         names don't conflict.  Reported by Eli Zaretskii.
73618
73619 2000-04-07  Jim Meyering  <meyering@lucent.com>
73620
73621         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73622         sys/types.h, to work around system header problems on AIX 3.2.5.
73623         From Bruno Haible.
73624
73625 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73626
73627         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73628         bug.  Deal with the different error behavior of Irix iconv.
73629
73630 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73631
73632         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73633         IRIX if the installer said otherwise.
73634
73635 2000-04-05  Jim Meyering  <meyering@lucent.com>
73636
73637         Portability tweaks required for ultrix4.3.
73638         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73639         (jm_CHECK_DECLS): Add getutent to the list of functions.
73640         (_jm_DECL_HEADERS): Add utmpx.h.
73641         From John David Anglin.
73642
73643         * m4/strftime.m4: Back out the 2000-04-02 change.
73644         Instead of that change, simply undefine putenv in the test program.
73645
73646 2000-04-05  Jim Meyering  <meyering@lucent.com>
73647
73648         Portability tweaks required for ultrix4.3.
73649         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73650         getutent.
73651         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73652         * lib/canon-host.c: Declare strdup.
73653         * lib/path-concat.c: Likewise.
73654         From John David Anglin.
73655
73656 2000-04-04  Jim Meyering  <meyering@lucent.com>
73657
73658         Be more DOS 8.3-friendly.
73659         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73660         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73661         * lib/Makefile.am: Reflect renaming.
73662         Reported by Eli Zaretskii.
73663
73664         Use a temporary file name that won't clash with `charset.alias'
73665         in the DOS 8.3 name space.
73666         * lib/Makefile.am (charset_tmp): Define.
73667         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73668         (uninstall-local): Likewise.
73669         Reported by Eli Zaretskii.
73670
73671 2000-04-03  Jim Meyering  <meyering@lucent.com>
73672
73673         * m4/gettext.m4: Fix typo in comment.
73674
73675         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73676         textutils/configure.in).  Suggestion from Paul Eggert.
73677         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73678
73679 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73680
73681         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73682         variable in the shell rather than using putenv, which isn't
73683         portable.  This avoids the configure-time inter-test dependency
73684         on the potentially-renamed putenv function.
73685
73686 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73687
73688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73689         before checking struct stat.st_blksize, so that
73690         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73691
73692 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73693
73694         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73695         since strftime.c uses HAVE_STRFTIME to decide whether to use
73696         the underlying strftime.
73697
73698 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73699
73700         * lib/time/strftime.c (my_strftime): Make sure we call the system
73701         strftime, not ourselves, when invoking the underlying strftime.
73702
73703 2000-03-24  Jim Meyering  <meyering@lucent.com>
73704
73705         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73706         (charset_alias): Define.
73707         (install-exec-local): Factor out common code.
73708         (uninstall-local): Split lines longer than 80.
73709         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73710         (SUFFIXES): Define.
73711         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73712         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73713
73714 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73715
73716         * lib/config.charset: Output a line containing "Packages using this
73717         file".
73718         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73719         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73720         ref-del.sed): New rules.
73721
73722 2000-03-17  Jim Meyering  <meyering@lucent.com>
73723
73724         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73725         Otherwise, include <strings.h>
73726
73727 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73728
73729         * lib/unicodeio.c (utf8_wctomb): New function.
73730         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73731         format instead of in UCS-4 with platform dependent endianness.
73732
73733 2000-03-10  Jim Meyering  <meyering@lucent.com>
73734
73735         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73736         From Marco Franzen.
73737
73738 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73739
73740         * lib/savedir.c (savedir): Work even if directory size is
73741         negative; this can happen with some screwy NFS configurations.
73742
73743 2000-03-06  Jim Meyering  <meyering@lucent.com>
73744
73745         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73746         if it's NULL (because we ran out of memory).  From Bruno Haible.
73747
73748 2000-03-05  Jim Meyering  <meyering@lucent.com>
73749
73750         * lib/localcharset.c ("path-concat.h"): Include.
73751         (get_charset_aliases): Use path_concat instead of ANSI string
73752         concatenation.
73753
73754         * lib/unicodeio.h (PARAMS): Define.
73755         Use it to guard prototype.
73756
73757 2000-03-04  Jim Meyering  <meyering@lucent.com>
73758
73759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73760         for lib/localcharset.c.
73761
73762 2000-03-04  Jim Meyering  <meyering@lucent.com>
73763
73764         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73765         installing into it.
73766         (uninstall-local): Uncomment this rule so `make distcheck' works
73767         once again.
73768
73769         * lib/unicodeio.c (<errno.h>): Include it.
73770         (errno): Declare if not defined.
73771
73772         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73773
73774         * lib/config.charset: New version, incorporating remarks from a linux
73775         i18n mailing list.  From Bruno Haible.
73776
73777 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73778
73779         * m4/codeset.m4: New file.
73780         * m4/iconv.m4: New file.
73781         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73782
73783 2000-03-03  Jim Meyering  <meyering@lucent.com>
73784
73785         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73786
73787 2000-03-02  Jim Meyering  <meyering@lucent.com>
73788
73789         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73790         the messages come out on separate lines.
73791
73792         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73793         rather than jm_CHECK_DECLARATIONS.
73794         * m4/decl.m4: Remove now-unused file.
73795
73796         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73797         geteuid.
73798
73799 2000-03-02  Jim Meyering  <meyering@lucent.com>
73800
73801         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73802
73803 2000-03-01  Jim Meyering  <meyering@lucent.com>
73804
73805         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73806         * lib/unicodeio.c: Likewise.
73807
73808 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73809
73810         * lib/config.charset: New file.
73811         * lib/localcharset.c: New file.
73812         * lib/unicodeio.h, lib/unicodeio.c: New files.
73813         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73814         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73815         (noinst_HEADERS): Add unicodeio.h.
73816         (all-local, install-exec-local, charset.alias): New targets.
73817
73818 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73819
73820         * lib/quotearg.c (ALERT_CHAR): New macro.
73821         (quotearg_buffer_restyled): Use it.
73822
73823 2000-02-27  Jim Meyering  <meyering@lucent.com>
73824
73825         * m4/check-decl.m4: Add getenv to the list.
73826
73827 2000-02-27  Jim Meyering  <meyering@lucent.com>
73828
73829         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73830         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73831
73832         * lib/backupfile.c: Guard inclusion of stdlib.h with
73833         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73834         Declare malloc if needed.
73835
73836         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73837         `#ifndef HAVE_DECL..'
73838         now that autoconf always defines the HAVE_DECL_ symbols.
73839         * lib/human.c: Likewise.
73840         * lib/same.c: Likewise.
73841         * lib/strtoumax.c: Likewise.
73842
73843         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73844         declaration check was not run.
73845         * lib/hash.c: Likewise.
73846         * lib/human.c: Likewise.
73847         * lib/same.c: Likewise.
73848         * lib/strtoumax.c: Likewise.
73849
73850         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73851         `.', then first look up the entire `.'-containing string as a login
73852         name.
73853
73854 2000-02-23  Jim Meyering  <meyering@lucent.com>
73855
73856         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73857         in place of my hack.
73858
73859 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73860
73861         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73862         (textint): New typedef.
73863         (parser_control): Member year changed from int to textint.
73864         All uses changed.
73865         (YYSTYPE): Removed; replaced by %union with int and textint members.
73866         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73867         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73868         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73869         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73870         (date, number, to_year): Use width of number in digits, not its value,
73871         to determine whether it's a 2-digit year, or a 2-digit time.
73872         (yylex): Store number of digits of numeric tokens.
73873         Reported by John Kendall.
73874
73875         (parser_control): Changed from struct parser_control to typedef (for
73876         consistency).  All uses changed.
73877
73878         (tID): Removed; not used.
73879         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73880
73881 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73882
73883         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73884         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73885
73886 2000-02-12  Jim Meyering  <meyering@lucent.com>
73887
73888         * lib/userspec.c (ISDIGIT): Define it.
73889         (isdigit): Remove definition.
73890         (is_number): Use ISDIGIT, not isdigit.
73891         <libintl.h>: Include.
73892         (_ and N_): Define.
73893         (parse_user_spec): Mark translatable strings.
73894
73895 2000-02-10  Jim Meyering  <meyering@lucent.com>
73896
73897         With these changes, nanosleep.[ch] are finally enough like the other
73898         lib/* replacement files to compile on a few more losing systems.
73899
73900         * lib/nanosleep.h: Don't include config.h.
73901         Remove prototype from declaration of nanosleep.
73902         (PARAMS): Remove now-unneeded definition.
73903         * lib/nanosleep.c: #undef nanosleep.
73904         (rpl_nanosleep): Rename from nanosleep.
73905
73906 2000-02-10  Jim Meyering  <meyering@lucent.com>
73907
73908         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73909         gnu_nanosleep to rpl_nanosleep.
73910
73911 2000-02-09  Jim Meyering  <meyering@lucent.com>
73912
73913         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73914         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73915
73916 2000-02-08  Akim Demaille  <akim@epita.fr>
73917
73918         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73919         `[' and `]' and remove uses of `changequote'.
73920         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73921         (AC_SYS_LARGEFILE): Likewise.
73922         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73923         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73924         of changequote.
73925         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73926         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73927         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73928         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73929
73930 2000-02-05  Jim Meyering  <meyering@lucent.com>
73931
73932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73933         Remove explicit use of AC_HEADER_TIME.  It is required by
73934         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73935         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73936         in autoconf whereby the expansion of the latter ended up preceding
73937         the expansion of its prerequisite, AC_HEADER_TIME.
73938         Reported by Volker Borchert.
73939
73940 2000-02-03  Jim Meyering  <meyering@lucent.com>
73941
73942         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73943
73944 2000-02-03  Jim Meyering  <meyering@lucent.com>
73945
73946         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73947         rather than with `#if HAVE_UTMPNAME'.
73948
73949 2000-02-02  Jim Meyering  <meyering@lucent.com>
73950
73951         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73952         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73953         Reported by Eli Zaretskii.
73954
73955 2000-02-01  Jim Meyering  <meyering@lucent.com>
73956
73957         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73958
73959 2000-01-31  Jim Meyering  <meyering@lucent.com>
73960
73961         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73962         functions.  Add the time.h and sys/time.h headers along with the
73963         AC_REQUIRE'ment of AC_HEADER_TIME.
73964
73965 2000-01-31  Jim Meyering  <meyering@lucent.com>
73966
73967         * lib/nanosleep.h (nanosleep): Guard declaration with
73968         `#if ! HAVE_DECL_NANOSLEEP'.
73969         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73970         the declaration in that vendor's sys/timers.h.
73971         Reported by Christian Krackowizer.
73972
73973         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73974         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73975         (ISPRINT): Likewise.
73976         Reported by Tom Tromey.
73977
73978 2000-01-30  Jim Meyering  <meyering@lucent.com>
73979
73980         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73981
73982         * m4/prereq.m4 (utmp_includes): Define.
73983         Check for ut_user and ut_name members in both struct utmpx
73984         and struct utmp.
73985
73986 2000-01-30  Jim Meyering  <meyering@lucent.com>
73987
73988         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73989         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73990         header files where only utmpx.ut_user is declared.
73991
73992         * lib/readutmp.h (UT_USER): Define.
73993
73994 2000-01-29  Jim Meyering  <meyering@lucent.com>
73995
73996         * m4/lib-check.m4: New file containing library-related checks from
73997         fileutils and sh-utils (textutils had none).
73998
73999 2000-01-28  Jim Meyering  <meyering@lucent.com>
74000
74001         * m4/perl.m4: Change format of warning message to look more like that
74002         from the missing script.  Suggestion from François Pinard.
74003
74004 2000-01-25  Jim Meyering  <meyering@lucent.com>
74005
74006         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
74007         well as time.h in the compile check.
74008         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
74009         Fix typo in cross-compiling case: s/yes/no/.
74010
74011 2000-01-23  Jim Meyering  <meyering@lucent.com>
74012
74013         * m4/jm-macros.m4: Move df-related tests here from
74014         fileutils/configure.in
74015
74016         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
74017         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
74018
74019         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
74020         s/space/ac_fsusage_space/.
74021         (jm_FILE_SYSTEM_USAGE): Take two parameters.
74022
74023         * m4/ftruncate.m4: New file (derived from part of
74024         fileutils/configure.in).
74025         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
74026         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
74027
74028         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
74029         AC_SUBST these here, rather than just in sh-util/configure.in, so
74030         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
74031         all the same.
74032         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
74033         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
74034         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
74035         (AC_SUBST(POW_LIBM)): Likewise.
74036         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
74037
74038 2000-01-23  Jim Meyering  <meyering@lucent.com>
74039
74040         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
74041         obstack.c.
74042
74043 2000-01-22  Jim Meyering  <meyering@lucent.com>
74044
74045         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
74046
74047         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
74048
74049         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
74050         configure.in
74051         (AC_CHECK_HEADERS): Likewise for sh-utils.
74052         (AC_CHECK_HEADERS): Likewise for textutils.
74053         Merge the three lists of headers.
74054
74055         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
74056         from fileutils' configure.in.
74057
74058         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
74059         code. Moved tests into their own function (_jm_DECL_HEADERS) in
74060         check-decl.m4.
74061
74062         * m4/check-decl.m4: Use #if rather than #ifdef.
74063         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
74064         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
74065         (_jm_DECL_HEADERS): Define new function.
74066         (jm_CHECK_DECLARATIONS): Require it.
74067
74068 2000-01-22  Jim Meyering  <meyering@lucent.com>
74069
74070         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
74071         [! HAVE_DECL_STRTOULL]: Declare strtoull.
74072         Required for some AIX systems.  Reported by Christian Krackowizer.
74073         [TESTING] (main): New function.
74074
74075         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
74076         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
74077         letters.
74078
74079         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
74080         iswprint.
74081
74082         * lib/strverscmp.c (ISDIGIT): Define.
74083         (strverscmp): Use ISDIGIT, not isdigit.
74084
74085 2000-01-19  Jim Meyering  <meyering@lucent.com>
74086
74087         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
74088         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
74089         defines `struct timespec' in <sys/time.h>
74090
74091         * m4/c-bs-a.m4: Remove uses of changequote altogether.
74092         Thanks to Akim for explaining.
74093
74094 2000-01-17  Paul Eggert  <eggert@twinsun.com>
74095
74096         * lib/nanosleep.c (nanosleep):
74097         Don't use SA_INTERRUPT to decide whether to call sigaction, as
74098         POSIX.1 doesn't require SA_INTERRUPT and some systems
74099         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
74100         it's been part of POSIX.1 since day 1 (in 1988).
74101
74102 2000-01-17  Jim Meyering  <meyering@lucent.com>
74103
74104         * lib/interlock: Remove unused file.  Reported by François Pinard.
74105
74106 2000-01-16  Paul Eggert  <eggert@twinsun.com>
74107
74108         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
74109         alert, backslash, formfeed, and vertical tab unnecessarily in
74110         shell quoting style.
74111
74112 2000-01-16  Jim Meyering  <meyering@lucent.com>
74113
74114         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
74115         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
74116         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
74117         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
74118
74119 2000-01-16  Jim Meyering  <meyering@lucent.com>
74120
74121         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
74122         because the latter didn't work.
74123
74124 2000-01-15  Jim Meyering  <meyering@lucent.com>
74125
74126         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
74127         (AC_REPLACE_FUNCS): Add memcpy and memset.
74128         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
74129         Add strpbrk.
74130         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
74131
74132 2000-01-12  Jim Meyering  <meyering@lucent.com>
74133
74134         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
74135         (jm_PREREQ): Use it.
74136         (jm_PREREQ_READUTMP): New macro.
74137         (jm_PREREQ): Use it.
74138
74139 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74140
74141         Quote multibyte characters correctly.
74142         * m4/c-bs-a.m4: New file.
74143         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
74144         (jm_PREREQ): Use it.
74145
74146 2000-01-11  Paul Eggert  <eggert@twinsun.com>
74147
74148         * m4/uintmax_t.m4: Port to autoconf 2.13.
74149
74150 2000-01-08  Jim Meyering  <meyering@ascend.com>
74151
74152         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
74153         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
74154
74155 2000-01-04  Jim Meyering  <meyering@ascend.com>
74156
74157         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
74158         jm_STRUCT_DIRENT_D_TYPE.
74159         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
74160         jm_STRUCT_DIRENT_D_INO.
74161         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
74162         jm_STRUCT_UTIMBUF.
74163         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
74164         renamings.
74165         * m4/utime.m4: Likewise.
74166
74167         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
74168         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
74169
74170 2000-01-03  Paul Eggert  <eggert@twinsun.com>
74171
74172         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
74173         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
74174
74175 2000-01-02  Jim Meyering  <meyering@ascend.com>
74176
74177         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
74178         remember if this is necessary.
74179
74180 1999-12-26  Jim Meyering  <meyering@ascend.com>
74181
74182         * m4/jm-macros.m4: Use it here.
74183         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
74184
74185 1999-12-23  Jim Meyering  <meyering@ascend.com>
74186
74187         * m4/jm-macros.m4: Check for clock_gettime (moved from
74188         fileutils/configure.in)
74189         Check for gettimeofday.
74190
74191 1999-12-20  Jim Meyering  <meyering@ascend.com>
74192
74193         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
74194         autoconf-2.14a-1999-12-20.
74195
74196 1999-12-19  Jim Meyering  <meyering@ascend.com>
74197
74198         * m4/lstat-slash.m4: New file.
74199         * m4/jm-macros.m4: Use the new macro:
74200         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74201
74202 1999-12-07  Jim Meyering  <meyering@ascend.com>
74203
74204         * m4/perl.m4: Require that File::Compare be available, too.
74205         Too many systems seem to lack it.
74206
74207         * m4/strftime.m4: Add checks for most of the cpp macros tested in
74208         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
74209
74210 1999-11-18  Paul Eggert  <eggert@twinsun.com>
74211
74212         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
74213         problem with the QNX 4.25 shell, which doesn't propagate exit
74214         status of failed commands inside shell assignments.
74215
74216 1999-11-17  Jim Meyering  <meyering@ascend.com>
74217
74218         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
74219
74220 1999-11-07  Jim Meyering  <meyering@ascend.com>
74221
74222         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
74223
74224 1999-11-06  Jim Meyering  <meyering@ascend.com>
74225
74226         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
74227         * m4/jm-macros.m4 (jm_MACROS): Use it here.
74228
74229 1999-11-05  Jim Meyering  <meyering@ascend.com>
74230
74231         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
74232         configure.in of textutils, fileutils, and sh-utils into this one
74233         (shared between those packages) file.
74234         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
74235         AC_STRUCT_ST_BLKSIZE.
74236
74237 1999-11-03  Jim Meyering  <meyering@ascend.com>
74238
74239         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
74240         of AC_CHECK_TYPE checks includes unistd.h.
74241         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
74242         Suggestion from Akim Demaille.
74243
74244 1999-10-30  Jim Meyering  <meyering@ascend.com>
74245
74246         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
74247         m4-quoted string.
74248         * m4/ls-mntd-fs.m4: Likewise.
74249         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
74250         * m4/jm-winsz1.m4: Likewise.
74251
74252         * m4/const.m4: Remove file, since the fix made it into the experimental
74253         version of autoconf.
74254         * m4/mktime.m4: Likewise.
74255
74256         * m4/check-type.m4: Remove file, now that the latest version of
74257         AC_CHECK_TYPE takes a third arg to specify additional #includes.
74258
74259         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
74260         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
74261         AC_CHECK_TYPE.
74262
74263 1999-10-04  Jim Meyering  <meyering@ascend.com>
74264
74265         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
74266
74267 1999-09-22  Paul Eggert  <eggert@twinsun.com>
74268
74269         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
74270         2.95.1 bug with HP-UX 10.20.
74271
74272 1999-09-17  Jim Meyering  <meyering@ascend.com>
74273
74274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
74275         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
74276         due to missing strdup (against sh-utils-2.0).
74277
74278 1999-08-29  Jim Meyering  <meyering@ascend.com>
74279
74280         * m4/jm-macros.m4: Require jm_BISON.
74281         * m4/bison.m4: New file.
74282
74283 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74284
74285         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74286         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74287
74288 1999-08-05  Jim Meyering  <meyering@ascend.com>
74289
74290         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74291         to avoid conflicts with `conftest' on 8+3 filesystems.
74292         Suggestion from Eli Zaretskii.
74293
74294 1999-08-04  Jim Meyering  <meyering@ascend.com>
74295
74296         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74297         fileutils and sh-utils (textutils's getline test was inadequate).
74298         (AM_FUNC_GETLINE): Run this test.
74299         (AC_CHECK_FUNCS): Check for getdelim.
74300         Reported by Bob Proulx.
74301
74302 1999-08-02  Jim Meyering  <meyering@ascend.com>
74303
74304         * m4/jm-macros.m4: Add a comment.
74305
74306 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74307
74308         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74309         <inttypes.h> defines strtoumax as a macro (and not as a
74310         function).
74311
74312 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74313
74314         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74315         that we can shift, multiply and divide unsigned long long
74316         values; Ultrix cc can't do it.
74317
74318 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74319
74320         * m4/mktime.m4: New file, which is a preview of what should appear
74321         in the next public autoconf release.
74322
74323 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74324
74325         * m4/lfs.m4: Remove this file.
74326         * m4/largefile.m4: New file.  It contains the old contents of
74327         lfs.m4, except that all names with prefix AC_LFS have been
74328         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74329         compatible with future autoconf versions.  Also, some minor m4
74330         quoting problems have been fixed.
74331
74332 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74333
74334         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74335         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74336         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74337         and simplify the shell code.
74338
74339 1999-08-01  Jim Meyering  <meyering@ascend.com>
74340
74341         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74342         m4.
74343
74344 1999-07-20  Jim Meyering  <meyering@ascend.com>
74345
74346         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74347
74348 1999-07-15  Jim Meyering  <meyering@ascend.com>
74349
74350         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74351
74352 1999-05-22  Jim Meyering  <meyering@ascend.com>
74353
74354         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74355
74356 1999-05-20  Jim Meyering  <meyering@ascend.com>
74357
74358         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74359         Add a colon after each `then' in case $4 is empty.
74360
74361 1999-05-16  Jim Meyering  <meyering@ascend.com>
74362
74363         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74364
74365 1999-05-10  Jim Meyering  <meyering@ascend.com>
74366
74367         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74368
74369         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74370         AC_FUNC_MKTIME.
74371
74372 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74373
74374         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74375
74376 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74377
74378         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74379         not CPPFLAGS, so that linking works correctly in IRIX.
74380
74381 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74382
74383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74384
74385 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74386
74387         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74388         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74390         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74391         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74392
74393         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74394
74395 1999-04-20  Jim Meyering  <meyering@ascend.com>
74396
74397         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74398         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74399         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74400
74401 1999-04-18  Jim Meyering  <meyering@ascend.com>
74402
74403         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74404         * m4/jm-macros.m4: Use it.
74405
74406 1999-04-06  Jim Meyering  <meyering@ascend.com>
74407
74408         * m4/strftime.m4: Remove test for %f.
74409
74410 1999-03-29  Jim Meyering  <meyering@ascend.com>
74411
74412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74413         superset of the AC_TYPE_* checks in the textutils, fileutils,
74414         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74415         AC_TYPE_PID_T.
74416
74417 1999-03-28  Jim Meyering  <meyering@ascend.com>
74418
74419         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74420         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74421         replaced e.g., in the *.sh files of the sh-utils.
74422
74423 1999-03-20  Jim Meyering  <meyering@ascend.com>
74424
74425         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74426         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74427         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74428
74429 1999-03-19  Jim Meyering  <meyering@ascend.com>
74430
74431         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74432
74433 1999-03-12  Jim Meyering  <meyering@ascend.com>
74434
74435         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74436
74437 1999-03-07  Jim Meyering  <meyering@ascend.com>
74438
74439         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74440         declared.
74441
74442 1999-02-17  Jim Meyering  <meyering@ascend.com>
74443
74444         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74445         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74446
74447 1999-02-07  Jim Meyering  <meyering@ascend.com>
74448
74449         * m4/group-member.m4: New file -- extracted from sh-utils'
74450         configure.in.
74451
74452         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74453         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74454
74455 1999-02-06  Jim Meyering  <meyering@ascend.com>
74456
74457         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74458         * m4/fnmatch.m4: Likewise.
74459         * m4/getgroups.m4: Likewise.
74460         * m4/lstat.m4: Likewise.
74461         * m4/malloc.m4: Likewise.
74462         * m4/putenv.m4: Likewise.
74463         * m4/realloc.m4: Likewise.
74464         * m4/regex.m4: Likewise.
74465         * m4/stat.m4: Likewise.
74466         * m4/strftime.m4: Likewise.
74467         Suggestion from Alain Magloire.
74468
74469         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74470         * m4/fnmatch.m4: Likewise.
74471         * m4/getgroups.m4: Likewise.
74472         * m4/getline.m4: Likewise.
74473         * m4/lstat.m4: Likewise.
74474         * m4/malloc.m4: Likewise.
74475         * m4/memcmp.m4: Likewise.
74476         * m4/putenv.m4: Likewise.
74477         * m4/realloc.m4: Likewise.
74478         * m4/regex.m4: Likewise.
74479         * m4/stat.m4: Likewise.
74480         * m4/strftime.m4: Likewise.
74481         Suggestion from Alain Magloire.
74482
74483         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74484         an argument.
74485
74486         * m4/regex.m4: Add a run-time Test for proper operation of
74487         re_compile_pattern.
74488
74489 1999-01-31  Jim Meyering  <meyering@ascend.com>
74490
74491         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74492
74493 1999-01-30  Jim Meyering  <meyering@ascend.com>
74494
74495         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74496
74497         * m4/jm-mktime.m4: Make this a wrapper around the official
74498         AM_FUNC_MKTIME rather than my private copy, now that the official one
74499         is up to date.
74500         * m4/mktime.m4: Remove file.
74501
74502         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74503         * m4/uptime.m4: Likewise.
74504         * m4/uintmax_t.m4: Likewise.
74505
74506 1999-01-28  Jim Meyering  <meyering@ascend.com>
74507
74508         * m4/jm-macros.m4: Use jm_AFS.
74509         * m4/afs.m4: New file (from fileutils' configure.in).
74510
74511         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74512         * m4/chown.m4: Likewise.
74513         * m4/d-ino.m4: Likewise.
74514         * m4/d-type.m4: Likewise.
74515         * m4/fnmatch.m4: Likewise.
74516         * m4/getgroups.m4: Likewise.
74517         * m4/gettext.m4: Likewise.
74518         * m4/jm-mktime.m4: Likewise.
74519         * m4/jm-winsz2.m4: Likewise.
74520         * m4/lcmessage.m4: Likewise.
74521         * m4/ls-mntd-fs.m4: Likewise.
74522         * m4/malloc.m4: Likewise.
74523         * m4/memcmp.m4: Likewise.
74524         * m4/putenv.m4: Likewise.
74525         * m4/realloc.m4: Likewise.
74526         * m4/st_mtim.m4: Likewise.
74527         * m4/strftime.m4: Likewise.
74528
74529 1999-01-16  Jim Meyering  <meyering@ascend.com>
74530
74531         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74532         (ARGMATCH_DIE_DECL): Define.
74533
74534 1999-01-12  Jim Meyering  <meyering@ascend.com>
74535
74536         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74537         Reported by Lars Hecking.
74538
74539 1999-01-10  Jim Meyering  <meyering@ascend.com>
74540
74541         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74542         gross kludge.
74543         * m4/inttypes_h.m4: Likewise.
74544         * m4/lstat.m4: Likewise.
74545         * m4/malloc.m4: Likewise.
74546         * m4/readdir.m4: Likewise.
74547         * m4/realloc.m4: Likewise.
74548         * m4/st_dm_mode.m4: Likewise.
74549         * m4/stat.m4: Likewise.
74550         * m4/utimbuf.m4: Likewise.
74551         * m4/utimes.m4: Likewise.
74552
74553         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74554         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74555         comments in config.h.in are meaningful.
74556
74557         * m4/jm-macros.m4: Require autoconf-2.13 here.
74558
74559         * m4/regex.m4: By default, don't use the included regex.c on systems
74560         with glibc 2.  Suggestion from Uli Drepper.
74561
74562 1999-01-02  Jim Meyering  <meyering@ascend.com>
74563
74564         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74565
74566 1998-12-18  Jim Meyering  <meyering@ascend.com>
74567
74568         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74569         Based on a suggestion from Lars Hecking.
74570
74571 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74572
74573         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74574
74575 1998-11-16  Jim Meyering  <meyering@ascend.com>
74576
74577         * m4/lfs.m4: Double-quote the `uname...` expression.
74578
74579 1998-11-14  Jim Meyering  <meyering@ascend.com>
74580
74581         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74582         * m4/stat.m4: Likewise.
74583
74584 1998-11-03  Jim Meyering  <meyering@ascend.com>
74585
74586         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74587         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74588
74589 1998-10-18  Jim Meyering  <meyering@ascend.com>
74590
74591         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74592
74593 1998-10-17  Jim Meyering  <meyering@ascend.com>
74594
74595         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74596         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74597         calls for those previously hard-coded headers.  Instead, take a new
74598         parameter.
74599         (jm_CHECK_DECLARATIONS): Reflect interface change.
74600         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74601         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74602
74603         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74604
74605 1998-10-14  Jim Meyering  <meyering@ascend.com>
74606
74607         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74608         instead of "TZ=America/Vancouver".  From Paul Eggert.
74609
74610 1998-10-11  Jim Meyering  <meyering@ascend.com>
74611
74612         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74613         This adds a test for a recently added compatibility fix for mktime.c.
74614         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74615
74616 1998-09-27  Jim Meyering  <meyering@ascend.com>
74617
74618         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74619
74620         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74621         ../configure.in, including a change from Gordon Matzigkeit to allow
74622         cross-compiling for the Hurd.
74623
74624         * m4/glibc.m4: New file/macro to test for the GNU C Library
74625         versions 1 and 2.  From Gordon Matzigkeit.
74626         Indent.
74627
74628 1998-09-21  Jim Meyering  <meyering@ascend.com>
74629
74630         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74631
74632 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74633
74634         Port nanosecond-resolution times to UnixWare 2.1.2 and
74635         pedantic Solaris 2.6.
74636
74637         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74638         AC_STRUCT_ST_MTIM.
74639         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74640         Generate name of ns member, instead of just 1 or undef.
74641         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74642
74643 1998-08-15  Jim Meyering  <meyering@ascend.com>
74644
74645         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74646         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74647         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74648         instead of jm_TYPE_SSIZE_T.
74649
74650 1998-08-12  Jim Meyering  <meyering@ascend.com>
74651
74652         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74653
74654 1998-08-02  Jim Meyering  <meyering@ascend.com>
74655
74656         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74657         in acconfig.h manually.
74658
74659 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74660
74661         * m4/st_mtim.m4: New file.
74662
74663 1998-07-28  Jim Meyering  <meyering@ascend.com>
74664
74665         * m4/utimes.m4: Undef stat.
74666
74667 1998-07-25  Jim Meyering  <meyering@ascend.com>
74668
74669         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74670         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74671
74672 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74673
74674         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74675         uid and gid actually remain unchanged.
74676
74677 1998-07-07  Jim Meyering  <meyering@ascend.com>
74678
74679         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74680
74681 1998-07-04  Jim Meyering  <meyering@ascend.com>
74682
74683         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74684         to prove that this macro can be used in packages without regex.c.
74685
74686 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74687
74688         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74689         is to be used.
74690
74691 1998-07-03  Jim Meyering  <meyering@ascend.com>
74692
74693         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74694
74695         * m4/gettext.m4: New file -- from gettext-0.10.35.
74696         * m4/lcmessage.m4: Likewise.
74697         * m4/progtest.m4: Likewise.
74698
74699         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74700         * m4/jm-macros.m4: Require the new macro.
74701
74702 1998-06-29  Jim Meyering  <meyering@ascend.com>
74703
74704         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74705         for the definition of NGROUPS (used in a system header included
74706         by sys/mount.h).
74707
74708 1998-06-28  Jim Meyering  <meyering@ascend.com>
74709
74710         * m4/ls-mntd-fs.m4: New file.
74711         * m4/fstypename.m4: New file.
74712
74713         * m4/jm-macros.m4: Require the new macro.
74714         * m4/jm-glibc-io.m4: New file.
74715
74716 1998-05-19  Jim Meyering  <meyering@ascend.com>
74717
74718         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74719         * m4/lchown.m4: New file.
74720
74721         * m4/Makefile.am.in: New file.
74722         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74723
74724 1998-05-14  Jim Meyering  <meyering@ascend.com>
74725
74726         * m4/Makefile.am (EXTRA_DIST): Add them.
74727         * m4/jm-macros.m4: New file.
74728         * m4/utimbuf.m4: New file.
74729
74730 1998-05-12  Jim Meyering  <meyering@ascend.com>
74731
74732         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74733
74734 1998-05-11  Jim Meyering  <meyering@ascend.com>
74735
74736         * m4/isc-posix.m4: New file.
74737
74738 1998-05-10  Jim Meyering  <meyering@ascend.com>
74739
74740         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74741
74742 1998-05-09  Jim Meyering  <meyering@ascend.com>
74743
74744         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74745         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74746         with automake.
74747
74748         * m4/ssize_t.m4: New file.
74749         * m4/mktime.m4: Remove file -- the new automake has this now.
74750
74751 1998-04-26  Jim Meyering  <meyering@ascend.com>
74752
74753         * m4/assert.m4: New file.
74754         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74755
74756 1998-04-05  Jim Meyering  <meyering@ascend.com>
74757
74758         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74759         (jm_PREREQ): Use it here.
74760
74761 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74762
74763         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74764         in acconfig.h.
74765
74766 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74767
74768         * m4/prereq.m4: New file.
74769         * m4/error.m4: New file.
74770         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74771
74772 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74773
74774         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74775         cache-check for the same variable -- that defeated the purpose of
74776         the test; the test program was never run.  This was a problem only
74777         on systems with losing getline functions -- HP-UX 10.20 is one.
74778         Reported by Bjorn Helgaas.
74779
74780 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74781
74782         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74783
74784 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74785
74786         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74787
74788         * m4/const.m4: New file.  Use an initializer in this declaration
74789         typedef int charset[2]; const charset x;
74790         Reported by Bob Glickstein.
74791
74792 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74793
74794         * m4/chown.m4: Fix reversed types on -1 args to chown.
74795         From Kaveh Ghazi.
74796
74797 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74798
74799         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74800         Add lseek and memchr.
74801
74802         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74803         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74804         have a 20-character limit on names.
74805
74806 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74807
74808         * m4/inttypes_h.m4: New file.
74809         * m4/uintmax_t.m4: New file.
74810         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74811
74812
74813         -----
74814
74815         Local Variables:
74816         coding: utf-8
74817         End:
74818
74819         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74820
74821         Copying and distribution of this file, with or without
74822         modification, are permitted provided the copyright notice
74823         and this notice are preserved.