* modules/assert-h (assert.h): Substitute the symbol-prefix more consistently.
[gnulib.git] / ChangeLog
1 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         assert-h: work around 'verify' incompatibility
4         * lib/verify.h: Use @...@ directives, not ifdef.
5         * modules/assert-h (assert.h): Implement the directives.
6         (assert.h): Substitute the symbol-prefix more consistently.
7
8 2011-05-29  Jim Meyering  <meyering@redhat.com>
9
10         trim: remove three superfluous assignments
11         * lib/trim.c (trim2): Remove three superfluous assignments
12         and correct brace positioning.
13
14 2011-05-29  Bruno Haible  <bruno@clisp.org>
15
16         wctype-h: Avoid namespace pollution on Solaris 2.6.
17         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18         identifiers.
19         * doc/posix-headers/wctype.texi: Mention the problem.
20         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21
22 2011-05-28  Jim Meyering  <meyering@redhat.com>
23
24         parse-datetime.y: accommodate -Wstrict-overflow
25         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
26         placate -Wstrict-overflow.
27
28         trim: avoid a warning from -O2 -Wstrict-overflow
29         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
30
31 2011-05-29  Bruno Haible  <bruno@clisp.org>
32
33         gnulib-tool: Fix bug in yesterday's commit.
34         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
35         twice.
36
37 2011-05-29  Bruno Haible  <bruno@clisp.org>
38
39         Allow multiple gnulib generated include files to be combined.
40         * gnulib-tool (func_compute_include_guard_prefix): New function.
41         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
42         ${gl_include_guard_prefix} references.
43         (func_import, func_create_testdir): Invoke
44         func_compute_include_guard_prefix.
45         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
46         * lib/ctype.in.h: Likewise.
47         * lib/dirent.in.h: Likewise.
48         * lib/errno.in.h: Likewise.
49         * lib/fcntl.in.h: Likewise.
50         * lib/float.in.h: Likewise.
51         * lib/getopt.in.h: Likewise.
52         * lib/iconv.in.h: Likewise.
53         * lib/langinfo.in.h: Likewise.
54         * lib/locale.in.h: Likewise.
55         * lib/math.in.h: Likewise.
56         * lib/netdb.in.h: Likewise.
57         * lib/netinet_in.in.h: Likewise.
58         * lib/poll.in.h: Likewise.
59         * lib/pthread.in.h: Likewise.
60         * lib/pty.in.h: Likewise.
61         * lib/sched.in.h: Likewise.
62         * lib/se-selinux.in.h: Likewise.
63         * lib/search.in.h: Likewise.
64         * lib/signal.in.h: Likewise.
65         * lib/spawn.in.h: Likewise.
66         * lib/stdarg.in.h: Likewise.
67         * lib/stddef.in.h: Likewise.
68         * lib/stdint.in.h: Likewise.
69         * lib/stdio.in.h: Likewise.
70         * lib/stdlib.in.h: Likewise.
71         * lib/string.in.h: Likewise.
72         * lib/strings.in.h: Likewise.
73         * lib/sys_file.in.h: Likewise.
74         * lib/sys_ioctl.in.h: Likewise.
75         * lib/sys_select.in.h: Likewise.
76         * lib/sys_socket.in.h: Likewise.
77         * lib/sys_stat.in.h: Likewise.
78         * lib/sys_time.in.h: Likewise.
79         * lib/sys_times.in.h: Likewise.
80         * lib/sys_uio.in.h: Likewise.
81         * lib/sys_utsname.in.h: Likewise.
82         * lib/sys_wait.in.h: Likewise.
83         * lib/sysexits.in.h: Likewise.
84         * lib/termios.in.h: Likewise.
85         * lib/time.in.h: Likewise.
86         * lib/unistd.in.h: Likewise.
87         * lib/wchar.in.h: Likewise.
88         * lib/wctype.in.h: Likewise.
89         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
90         * modules/ctype (Makefile.am): Likewise.
91         * modules/dirent (Makefile.am): Likewise.
92         * modules/errno (Makefile.am): Likewise.
93         * modules/fcntl-h (Makefile.am): Likewise.
94         * modules/float (Makefile.am): Likewise.
95         * modules/getopt-posix (Makefile.am): Likewise.
96         * modules/iconv-h (Makefile.am): Likewise.
97         * modules/langinfo (Makefile.am): Likewise.
98         * modules/locale (Makefile.am): Likewise.
99         * modules/math (Makefile.am): Likewise.
100         * modules/netdb (Makefile.am): Likewise.
101         * modules/netinet_in (Makefile.am): Likewise.
102         * modules/poll-h (Makefile.am): Likewise.
103         * modules/pthread (Makefile.am): Likewise.
104         * modules/pty (Makefile.am): Likewise.
105         * modules/sched (Makefile.am): Likewise.
106         * modules/search (Makefile.am): Likewise.
107         * modules/selinux-h (Makefile.am): Likewise.
108         * modules/signal (Makefile.am): Likewise.
109         * modules/spawn (Makefile.am): Likewise.
110         * modules/stdarg (Makefile.am): Likewise.
111         * modules/stddef (Makefile.am): Likewise.
112         * modules/stdint (Makefile.am): Likewise.
113         * modules/stdio (Makefile.am): Likewise.
114         * modules/stdlib (Makefile.am): Likewise.
115         * modules/string (Makefile.am): Likewise.
116         * modules/strings (Makefile.am): Likewise.
117         * modules/sys_file (Makefile.am): Likewise.
118         * modules/sys_ioctl (Makefile.am): Likewise.
119         * modules/sys_select (Makefile.am): Likewise.
120         * modules/sys_socket (Makefile.am): Likewise.
121         * modules/sys_stat (Makefile.am): Likewise.
122         * modules/sys_time (Makefile.am): Likewise.
123         * modules/sys_times (Makefile.am): Likewise.
124         * modules/sys_uio (Makefile.am): Likewise.
125         * modules/sys_utsname (Makefile.am): Likewise.
126         * modules/sys_wait (Makefile.am): Likewise.
127         * modules/sysexits (Makefile.am): Likewise.
128         * modules/termios (Makefile.am): Likewise.
129         * modules/time (Makefile.am): Likewise.
130         * modules/unistd (Makefile.am): Likewise.
131         * modules/wchar (Makefile.am): Likewise.
132         * modules/wctype-h (Makefile.am): Likewise.
133         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
134
135 2011-05-29  Bruno Haible  <bruno@clisp.org>
136
137         assert-h: Allow multiple gnulib generated replacements to coexist.
138         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
139
140 2011-05-29  Bruno Haible  <bruno@clisp.org>
141
142         argp: Allow coexistence with strerror_r-posix module.
143         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
144         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
145         by gnulib's <string.h> replacement), assume it has the POSIX signature,
146         not the glibc signature.
147
148 2011-05-28  Bruno Haible  <bruno@clisp.org>
149
150         gnulib-tool: Alternative structure of testdirs, similar to --import.
151         * gnulib-tool: New option --single-configure.
152         (func_usage): Document it.
153         (single_configure): New variable.
154         (func_modules_transitive_closure_separately,
155         func_modules_transitive_closure_separately,
156         func_determine_use_libtests, func_modules_add_dummy_separately,
157         func_modules_to_filelist_separately): New functions, extracted from
158         func_import.
159         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
160         (func_import): Use the new functions.
161         (func_create_testdir): Set final_modules. Handle $single_configure =
162         true case.
163
164 2011-05-28  Bruno Haible  <bruno@clisp.org>
165
166         getloadavg: Remove an unreliable safety check.
167         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
168         getloadavg.c is in place.
169         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
170         Reported by Sam Steingold <sds@gnu.org>.
171
172 2011-05-28  Bruno Haible  <bruno@clisp.org>
173
174         doc: Cleanup yet another file produced by texinfo.tex.
175         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
176
177 2011-05-28  Bruno Haible  <bruno@clisp.org>
178
179         Finish the conditional dependencies mechanism.
180         * gnulib-tool: New option --no-conditional-dependencies.
181         (func_usage): Document it. Don't mark --conditional-dependencies as
182         experimental.
183         (cond_dependencies): The possible values can now be true, false, empty.
184         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
185         (func_import): Store setting in gnulib-cache.m4 and read it from there.
186         * doc/gnulib-tool.texi (Conditional dependencies): New section.
187
188 2011-05-28  Bruno Haible  <bruno@clisp.org>
189
190         doc: Use a recent texinfo.tex.
191         * doc/Makefile (tex_opts): New variable.
192         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
193
194 2011-05-28  Jim Meyering  <meyering@redhat.com>
195
196         intprops.h: adjust comment to match code change
197         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
198         only once, it *may* have side effects.  Also fix an unrelated typo.
199         (_GL_INT_SIGNED): Likewise.
200
201 2011-05-26  Simon Josefsson  <simon@josefsson.org>
202
203         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
204
205 2011-05-26  Bruno Haible  <bruno@clisp.org>
206
207         mbsrchr: Avoid collision with system function on Interix.
208         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
209         Reported by Markus Duft <mduft@gentoo.org>.
210
211 2011-05-15  James Youngman  <jay@gnu.org>
212
213         getopt: for ambiguous options, enumerate the possibilities.
214         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
215         the ambiguous options when an ambiguous prefix is given. This was
216         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
217         glibc change was
218         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
219
220 2011-05-25  Eric Blake  <eblake@redhat.com>
221
222         getcwd: work around mingw bug
223         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
224         * doc/posix-functions/getcwd.texi (getcwd): Document it.
225         Reported by Matthias Bolte.
226
227 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
228
229         test-intprops: disable -Wtype-limits diagnostics
230         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
231         diagnostics.  Otherwise, the integer overflow macros generate many
232         diagnostics.  Reported by Jim Meyering in
233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
234
235         intprops: shorten, to pacify gcc -Woverlength-strings
236         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
237         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
238         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
239         likely to run afoul of C compiler limits for string constant lengths.
240         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
241
242 2011-05-24  Eric Blake  <eblake@redhat.com>
243
244         docs: document recently fixed glibc printf bug
245         * doc/posix-functions/fprintf.texi (fprintf): Document it.
246         * doc/posix-functions/printf.texi (printf): Likewise.
247         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
248         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
249
250         closein-tests: convert to init.sh
251         * modules/closein-tests (Files): Add init.sh
252         * tests/test-closein.sh Use it.
253
254         yesno-tests: convert to init.sh
255         * modules/yesno-tests (Files): Add init.sh.
256         * tests/test-yesno.sh: Use it.
257
258         atexit-tests: ensure reliable exit status
259         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
260         Reported by Bruno Haible.
261
262 2011-05-24  Bruno Haible  <bruno@clisp.org>
263
264         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
266         gl_PREREQ_STRERROR_R invocations from here...
267         * modules/strerror_r-posix (configure.ac): ... to here.
268
269 2011-05-24  Eric Blake  <eblake@redhat.com>
270
271         strerror_r: fix missing header
272         * lib/strerror_r.c: Avoid compiler warning about snprintf.
273
274         strerror_r: fix AIX test failures
275         * lib/strerror_r.c (strerror_r): Convert silent truncation to
276         ERANGE failure.
277
278         strerror_r: fix Solaris test failures
279         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
280         failures.
281         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
282
283         strerror_r: enforce POSIX recommendations
284         * lib/strerror_r.c (safe_copy): New helper method.
285         (strerror_r): Guarantee a non-empty string.
286         * tests/test-strerror_r.c (main): Enhance tests to incorporate
287         recent POSIX rulings and to match our strerror guarantees.
288         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
289
290 2011-05-24  Jim Meyering  <meyering@redhat.com>
291
292         test-perror2.c: avoid warning about unused variable
293         * tests/test-perror2.c (main): Remove declaration of unused "fp".
294
295 2011-05-24  Eric Blake  <eblake@redhat.com>
296
297         perror: avoid spurious test failure on HP-UX
298         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
299
300         tests: fix logic bug in init.sh
301         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
302         shell.
303
304 2011-05-24  Jim Meyering  <meyering@redhat.com>
305
306         utimensat: do not reference an out-of-scope buffer
307         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
308         declared in an inner scope, yet "times" would be dereferenced outside
309         the scope in which "ts" was valid.
310         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
311         of ts[2] "out/up", so that the use of aliased "times" (via
312         "times = ts;") does not end up referencing an out-of-scope "ts"
313
314         opendir-safer.c: don't clobber errno; don't close negative FD
315         * lib/opendir-safer.c (opendir_safer):
316         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
317         file descriptor, and more importantly, don't clobber the
318         offending errno value with EINVAL.  Before, upon failure
319         of dup_safer, we would pass the negative file descriptor to
320         fdopendir, which would clobber errno.
321
322 2011-05-23  Bruno Haible  <bruno@clisp.org>
323
324         idcache: Fix module description.
325         * modules/idcache (Include): Set to "idcache.h".
326
327 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
328
329         gnulib-tool: fix portability problem with MacOS sed
330         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
331         before the "}".  Problem reported by Leo in
332         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
333         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
334         sed_extract_condition1, sed_extract_condition2.
335
336 2011-05-23  Bruno Haible  <bruno@clisp.org>
337
338         hash: Simplify autoconf macro.
339         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
340
341 2011-05-23  Bruno Haible  <bruno@clisp.org>
342
343         getugroups: Fix module description.
344         * modules/getugroups (Include): Set to "getugroups.h".
345
346 2011-05-23  Bruno Haible  <bruno@clisp.org>
347
348         linkat: Simplify autoconf macro.
349         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
350
351 2011-05-23  Bruno Haible  <bruno@clisp.org>
352             Eric Blake  <eblake@redhat.com>
353
354         linkat, renameat: Update dependencies.
355         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
356         * modules/linkat (Depends-on): Likewise. Remove also readlink,
357         symlinkat.
358
359 2011-05-23  Jim Meyering  <meyering@redhat.com>
360
361         maint.mk: more tight_scope improvements
362         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
363         (_gl_TS_headers): Define only in if-0'd block.
364         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
365         sometimes we must *not* use it.  Adjust uses accordingly.
366         (sc_tight_scope): Use much simpler grep-based test to determine
367         whether we skip this rule.
368
369         maint.mk: generalize/improve the tight-scope rule
370         * top/maint.mk: Emit a warning when the test is skipped.
371         (_gl_TS_dir): Add $(srcdir)/ prefix.
372         (_gl_TS_function_match): Simplify, rather than trying
373         to enumerate common types.  Otherwise, it would fail to match an
374         "extern unsigned char const *" declaration in idutils.
375         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
376         a way to support use of that type of macro.
377         (_gl_TS_var_match): Simplify regexp.
378         (_gl_TS_obj_files): New configurable variable.
379         (_gl_TS_headers): Likewise.
380
381 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
382
383         verify: fix bug when gnulib <assert.h> is also included
384         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
385         is defined, not if _GL_STATIC_ASSERT_H is not defined.
386         Perhaps there's a better way, but this fixes the immediate problem.
387         Problem reported by Bruno Haible in
388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
389
390 2011-05-22  Bruno Haible  <bruno@clisp.org>
391
392         xgetcwd: Simplify autoconf macro.
393         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
394
395 2011-05-22  Bruno Haible  <bruno@clisp.org>
396
397         New module 'mktime-internal'.
398         * modules/mktime-internal: New file.
399         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
400         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
401         mktime_internal as a C macro if libc has __mktime_internal.
402         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
403         conditions.
404         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
405
406 2011-05-22  Bruno Haible  <bruno@clisp.org>
407
408         timegm: Correct mktime replacement statements.
409         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
410         defining mktime as a C macro. This completes a 2009-07-28 commit.
411
412 2011-05-22  Bruno Haible  <bruno@clisp.org>
413
414         timegm: Simplify autoconf macro.
415         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
416
417 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
418
419         clock-time: change to LGPLv2+.
420         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
421         BSD-like but we have no mark for that; this is good enough for now.
422
423 2011-05-21  Bruno Haible  <bruno@clisp.org>
424
425         strerror_r: Fix comments.
426         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
427
428 2011-05-21  Bruno Haible  <bruno@clisp.org>
429
430         relocatable-prog-wrapper: Fix possible link error.
431         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
432         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
433         (gl_FUNC_SETENV): ... to here.
434         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
435         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
436
437 2011-05-21  Bruno Haible  <bruno@clisp.org>
438
439         relocatable-prog-wrapper: Assume strerror() exists.
440         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
441         m4/strerror.m4.
442         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
443         * lib/relocwrapper.c: Remove mention of strerror module.
444         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
446         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
447         C macro.
448
449 2011-05-21  Bruno Haible  <bruno@clisp.org>
450
451         select: Simplify replacement idiom.
452         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
453         Win32 platforms.
454         * lib/sys_select.in.h (select): Simplify accordingly.
455         * modules/select (Depends-on): Likewise.
456
457 2011-05-21  Bruno Haible  <bruno@clisp.org>
458
459         mkdir-p: Simplify autoconf macro.
460         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
461         gl_FUNC_LCHOWN.
462
463 2011-05-21  Eric Blake  <eblake@redhat.com>
464
465         strerror_r: avoid clobbering strerror on cygwin
466         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
467         fall back instead to sys_errlist.
468         * modules/strerror (configure.ac): Add witness.
469         * tests/test-strerror_r.c (main): Enhance test.
470         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
471         * tests/test-perror2.c (main): Free memory before exit.
472
473 2011-05-21  Bruno Haible  <bruno@clisp.org>
474
475         mkdtemp: Use gnulib naming conventions.
476         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
477         * modules/mkdtemp (configure.ac): Update.
478
479 2011-05-20  Eric Blake  <eblake@redhat.com>
480
481         strerror_r: avoid corrupting errno on Solaris
482         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
483         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
484
485         strerror_r: avoid compiler warning
486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
487
488         strerror_r: simplify AIX code
489         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
490
491         test-perror: avoid spurious failure on FreeBSD
492         * modules/perror-tests (Depends-on): Add strerror, now that
493         strerror_r no longer pulls it in.
494
495 2011-05-20  Bruno Haible  <bruno@clisp.org>
496
497         strerror_r-posix: Remove unused dependencies.
498         * modules/strerror_r-posix (Depends-on): Remove strerror.
499         Reported by Eric Blake.
500
501 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
502
503         intprops: remove assumption about A|B representation
504         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
505         is a valid integer if both A and B are.  Although this is true for
506         all known practical hosts, the C standard doesn't guarantee it,
507         and the code need not assume it.  Also, this change may work around
508         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
510
511 2011-05-20  Eric Blake  <eblake@redhat.com>
512
513         perror: work around FreeBSD bug
514         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
515         is broken.  Move AC_LIBOBJ...
516         * modules/perror (configure.ac): Here.
517         * doc/posix-functions/perror.texi (perror): Document this.
518         * tests/test-perror2.c (main): Enhance test.
519
520         test-perror: check for strerror interactions
521         * tests/macros.h (STREQ): Add macro.
522         * modules/perror-tests (Files): Add second test.
523         * tests/test-perror2.c (main): New file.
524         * doc/posix-functions/perror.texi (perror): Document glibc bug.
525
526         test-perror: rewrite to use init script
527         * modules/perror-tests (Files): Add init.sh.
528         * tests/test-perror.sh: Use temporary directory.
529
530 2011-05-20  Jim Meyering  <meyering@redhat.com>
531
532         maint: replace misused "a" with "an"
533         * doc/intprops.texi: "a integer"
534         * doc/regex.texi: "a explanation"
535         * lib/alignof.h: "a object"
536         * lib/argmatch.h: "a explanation"
537         * lib/argp-help.c: "a option" and "a OPTION_DOC"
538         * lib/stdint.in.h: "a integer"
539         * lib/userspec.c: "a owner"
540         * doc/gnulib.texi: Fix "a idea", and reword.
541
542 2011-05-19  Jim Meyering  <meyering@redhat.com>
543
544         maint: correct misuse of "a" and "an"
545         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
546         * lib/argp-help.c: "an docum...": s/an/a/
547         * lib/argp-parse.c: "An vector": s/An/A/
548         * lib/execute.c: "an native": s/an/a/
549         * lib/spawn-pipe.c: Likewise.
550         * lib/gc.h: "an Gc_rc": s/an/a/
551         * lib/unigbrk.in.h: "an grapheme": s/an/a/
552         * lib/fts.c: "an stat.st_dev": s/an/a/
553
554 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
555
556         intprops-tests: work around HP-UX 11.23 cc bug with constants
557         * tests/test-intprops.c (VERIFY): New macro.
558         (main): Use it, instead of verify, to work around the compiler bug; see
559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
560
561         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
562         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
563         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
564         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
565         (_GL_REMAINDER_OVERFLOW): Use it.
566
567         intprops-tests: revert unsigned part of previous change
568         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
569         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
570         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
572
573 2011-05-19  Bruno Haible  <bruno@clisp.org>
574
575         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
576         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
577         strerror_r() returned without filling the buffer.
578         Reported by Eric Blake.
579
580 2011-05-19  Eric Blake  <eblake@redhat.com>
581
582         strerror_r: guarantee unchanged errno
583         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
584         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
585         failure.
586         * tests/test-strerror_r.c (main): Enhance test.
587
588 2011-05-19  Bruno Haible  <bruno@clisp.org>
589
590         strerror_r: Reorder #if blocks.
591         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
592         for consistency with the previous commit.
593
594 2011-05-19  Bruno Haible  <bruno@clisp.org>
595
596         perror: Avoid clobbering the strerror buffer when possible.
597         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
598         * lib/strerror.c: Include it.
599         * modules/strerror (Files): Add lib/strerror-impl.h.
600         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
601         (my_strerror): New function, defined through lib/strerror-impl.h.
602         (perror): Use it instead of strerror.
603         * modules/perror (Files): Add lib/strerror-impl.h.
604         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
605
606 2011-05-19  Eric Blake  <eblake@redhat.com>
607
608         strerror_r: fix on newer cygwin
609         * lib/strerror_r.c (strerror_r): Cygwin now has
610         __xpg_strerror_r, use it.
611
612 2011-05-19  Bruno Haible  <bruno@clisp.org>
613
614         strerror_r: Avoid clobbering the strerror buffer when possible.
615         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
616         (sys_nerr, sys_errlist): New declarations.
617         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
618         HP-UX, native Win32, IRIX, and 32-bit Solaris.
619         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
620
621 2011-05-19  Bruno Haible  <bruno@clisp.org>
622
623         strerror_r: Fix test failure on mingw.
624         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
625         EXTEND_STRERROR_R.
626         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
627         macros from errno.in.h instead.
628
629 2011-05-19  Eric Blake  <eblake@redhat.com>
630
631         strerror: relax test for Solaris
632         * tests/test-strerror.c (main): Permit Solaris behavior.
633         * tests/test-strerror_r.c (main): Likewise.
634
635         strerror: enforce POSIX ruling on strerror(0)
636         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
637         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
638         * lib/strerror_r.c (rpl_strerror_r): Work around it.
639         * doc/posix-functions/strerror.texi (strerror): Document it.
640         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
641         * tests/test-strerror.c (main): Strengthen test.
642         * tests/test-strerror_r.c (main): Likewise.
643
644 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
645
646         intprop-tests: port to older and more-pedantic compilers
647         * modules/intprops-tests (Files): Add tests/macros.h.
648         * tests/test-intprops.c: Include macros.h.
649         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
650         it's no longer documented to expand to an integer constant expression.
651         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
652         argument is floating point, as it's no longer documented to expand
653         to an integer constant expression in that case.
654         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
655         compiler bugs reported by Bruno Haible.  See
656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
657         (U0, U1): New constants, to work around the same bugs.  Also,
658         in tests, use e.g., "(unsigned int) 39" rather than "39u".
659
660         intprops: work around C compiler bugs
661         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
662         bug in Sun C 5.11 2010/08/13 and other compilers; see
663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
664
665         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
666         * doc/intprops.texi (Integer Type Determination): Fix
667         documentation for TYPE_IS_INTEGER: it returns an constant
668         expression, not an integer constant expression.  Fix doc for
669         TYPE_SIGNED: it returns an integer constant expression only if its
670         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
671         hardly worth documented that way....)
672
673 2011-05-18  Bruno Haible  <bruno@clisp.org>
674
675         strerror_r: Avoid clobbering the strerror buffer when possible.
676         * lib/strerror_r.c (strerror_r): Merge the three implementations.
677         Handle gnulib defined errno values here. When strerror() returns NULL
678         or an empty string, return EINVAL.
679         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
680         gnulib defined errno values here.
681         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
682
683 2011-05-18  Eric Blake  <eblake@redhat.com>
684
685         fnmatch: avoid compiler warning
686         * lib/fnmatch_loop.c (FCT): Use correct type.
687         Reported by Matthias Bolte.
688
689 2011-05-13  Jim Meyering  <meyering@redhat.com>
690
691         maint.mk: three new prohibit_<HDR>_without_use rules
692         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
693         (sc_prohibit_stdio-safer_without_use): Likewise.
694         (sc_prohibit_xfreopen_without_use): Likewise.
695
696 2011-05-17  Jim Meyering  <meyering@redhat.com>
697
698         announce-gen: fail if the NEWS delta is empty
699         If there's nothing noteworthy in NEWS, then either you forgot
700         or you shouldn't be releasing.
701         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
702
703 2011-05-17  Pádraig Brady <P@draigBrady.com>
704
705         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
706         reserved symbols starting with double underscore from the check.
707
708 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
709
710         intprops: add doc
711         * doc/intprops.texi: New file, documenting intprops.
712         * doc/gnulib.texi (Particular Modules): Include it.
713
714         verify: add doc to gnulib manual and fix example
715         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
716         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
717         (Compile-time Assertions): Fix example so it can't overflow.
718
719 2011-05-17  Jim Meyering  <meyering@redhat.com>
720
721         warnings.m4: don't usurp save_CPPFLAGS variable name
722         * m4/warnings.m4: Prefix local temporary variable name with gl_.
723
724         doc: fix typo
725         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
726
727 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
728             Bruno Haible  <bruno@clisp.org>
729
730         doc: Tweak recent change.
731         * README (Portability guidelines): Tweak new text.
732         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
733         Interix 6.1.
734
735 2011-05-16  Eric Blake  <eblake@redhat.com>
736
737         inttypes: avoid autoconf warning
738         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
739         * m4/stdint.m4 (gl_STDINT_H): Likewise.
740
741 2011-05-16  Sam Steingold <sds@gnu.org>
742         and Eric Blake  <eblake@redhat.com>
743
744         vc-list-files: accept multiple directory operands
745         * build-aux/vc-list-files: Iterate over all remaining operands.
746
747 2011-05-16  Bruno Haible  <bruno@clisp.org>
748
749         Fix confusion regarding deprecated modules.
750         * modules/calloc (Status, Notice): Mark module as deprecated, not
751         obsolete.
752         * modules/fnmatch-posix (Status, Notice): Likewise.
753         * modules/getdate (Status, Notice): Likewise.
754         * modules/getopt (Status, Notice): Likewise.
755         * modules/malloc (Status, Notice): Likewise.
756         * modules/pipe (Status, Notice): Likewise.
757         * modules/realloc (Status, Notice): Likewise.
758         * modules/rename-dest-slash (Status, Notice): Likewise.
759         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
760         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
761         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
762         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
763         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
764
765 2011-05-16  Bruno Haible  <bruno@clisp.org>
766
767         doc: List the target platforms.
768         * doc/gnulib-intro.texi (Target Platforms): New section.
769         * doc/gnulib.texi (Introduction): Update menu.
770         * README (Portability guidelines): Refer to the new section. Update
771         statement about oldest supported environment. Remove rationale why
772         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
773         unportable C89 function.
774         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
775         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
776
777 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
778
779         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
780
781 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
782
783         intprops-tests: new module
784         * modules/intprops-tests, tests/test-intprops.c: New files.
785
786         intprops: add safe, portable integer overflow checking
787         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
788         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
789         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
790         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
791         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
792         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
793         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
794         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
795         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
796         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
797         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
798
799 2011-05-12  James Youngman  <jay@gnu.org>
800
801         Add a test for glibc's Bugzilla bug #12378.
802         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
803         doesn't allow the literal matching of a lone "[" (which is
804         required by POSIX).
805         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
806
807 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
808
809         Sync glibc change fixing Bugzilla bug #12378.
810         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
811         beginning and fall back to matching as normal character if the
812         string ends before the matching ']' is found.  This is what POSIX
813         requires.
814
815 2011-05-13  Eric Blake  <eblake@redhat.com>
816
817         getcwd-lgpl: relax test for FreeBSD
818         * doc/posix-functions/getcwd.texi (getcwd): Document portability
819         issue.
820         * tests/test-getcwd-lgpl.c (main): Relax test.
821         Reported by Matthias Bolte.
822
823 2011-05-11  Eric Blake  <eblake@redhat.com>
824
825         test-fflush: silence compiler warning
826         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
827
828 2011-05-11  Bruno Haible  <bruno@clisp.org>
829
830         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
831         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
832         * modules/canonicalize (Depends-on): Add 'nocrash'.
833         * modules/canonicalize-lgpl (Depends-on): Likewise.
834         * doc/posix-functions/realpath.texi: Update platforms list.
835         Reported by Ryan Schmidt <ryandesign@macports.org>.
836
837 2011-05-11  Bruno Haible  <bruno@clisp.org>
838
839         group-member: Declare function in <unistd.h>.
840         * lib/unistd.in.h (group_member): New declaration.
841         * lib/group-member.h: Remove file.
842         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
843         * tests/test-unistd-c++.cc: Check signature of group_member.
844         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
845         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
846         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
847         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
848         HAVE_GROUP_MEMBER.
849         * modules/group-member (Files): Remove lib/group-member.h.
850         (Depends-on): Add unistd. Specify conditions.
851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
852         (Include): Change to <unistd.h>.
853         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
854         HAVE_GROUP_MEMBER.
855         * NEWS: Mention the change.
856         * lib/euidaccess.c: Don't include group-member.h.
857
858 2011-05-11  Bruno Haible  <bruno@clisp.org>
859
860         group-member: Document module.
861         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
862         module.
863
864 2011-05-11  Bruno Haible  <bruno@clisp.org>
865
866         fclose: Fix mistake earlier today.
867         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
868
869 2011-05-11  Eric Blake  <eblake@redhat.com>
870
871         fclose: preserve fflush errors
872         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
873         Reported by Jim Meyering.
874
875         bootstrap: support a prereq of 'rpcgen -' on RHEL5
876         * build-aux/bootstrap (check_versions): When no specific version
877         is required, merely check that the app produces an exit status
878         that indicates its existence.
879
880         maint.mk: drop redundant check
881         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
882         the same but better.
883
884 2011-05-11  Bruno Haible  <bruno@clisp.org>
885
886         fclose: Fix possible link error.
887         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
888         unregister_shadow_fd. Improve comments.
889         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
890         Eric Blake.
891
892 2011-05-11  Jim Meyering  <meyering@redhat.com>
893
894         maint.mk: improve "can not" detection and generalize rule name
895         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
896         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
897         Use the same technique as in sc_prohibit_doubled_word, so that
898         we recognize "can not" also when the words are separated by a newline.
899         Suggested by Eric Blake.
900         (perl_filename_lineno_text_): Define.  Factored out of...
901         (prohibit_doubled_word_): ...here.  Use the new definition.
902         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
903         (prohibit_undesirable_word_seq_RE_): New overridable variable.
904         (ignore_undesirable_word_sequence_RE_): New overridable variable.
905
906 2011-05-10  Eric Blake  <eblake@redhat.com>
907
908         fclose: avoid double close race when possible
909         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
910         all but WINDOWS_SOCKETS.
911
912 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
913
914         openat: correct new comment
915         * lib/openat-proc.c (openat_proc_name): Correct the comment.
916
917 2011-05-10  Jim Meyering  <meyering@redhat.com>
918
919         openat: add comments
920         * lib/openat-proc.c (openat_proc_name): Add comments,
921         mostly from Eric Blake.
922
923 2011-05-09  Eric Blake  <eblake@redhat.com>
924
925         openat: reduce syscalls in first probe of /proc
926         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
927         be a directory.  Simplify the probe for .. bugs.
928         * modules/openat (Depends-on): Drop same-inode.
929         Reported by Bastien ROUCARIES.
930
931 2011-05-09  Jim Meyering  <meyering@redhat.com>
932
933         maint.mk: change semantics/name of tight_scope variables
934         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
935         Rename variables to align with semantics that make them more useful.
936
937         maint.mk: tweak new rule's name not to impinge
938         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
939         (sc_tight_scope): Use new rule name rather than $@-0.
940
941         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
942         * top/maint.mk (sc_tight_scope): New rule.
943         (sc_tight_scope-0): New rule, ifdef'd out.
944         (_gl_TS_dir): Default.
945         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
946         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
947
948 2011-05-09  Simon Josefsson  <simon@josefsson.org>
949
950         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
951         Haible <bruno@clisp.org>.
952
953 2011-05-08  Bruno Haible  <bruno@clisp.org>
954
955         Comments.
956         * m4/isnanf.m4: Add comment.
957         * m4/isnanl.m4: Likewise.
958
959 2011-05-08  Bruno Haible  <bruno@clisp.org>
960
961         glob: Remove obsolete macro.
962         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
963
964 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
965
966         intprops: Sun C 5.11 supports __typeof__
967         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
968         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
969         which is new.
970         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
971
972         intprops: switch to usual gnulib indenting and naming
973         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
974         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
975
976         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
977
978 2011-05-08  Jim Meyering  <meyering@redhat.com>
979
980         maint.mk: suppress "Entering/Leaving directory" diag in announcement
981         * top/maint.mk (release-prep): Use make's --no-print-directory
982         option when generating the announcement.  This eliminates the
983         pesky "make[2]: Entering/Leaving directory" diagnostics in the
984         generated announcement template.
985
986 2011-05-08  Bruno Haible  <bruno@clisp.org>
987
988         tzset: Fix gettimeofday wrapper on Solaris 2.6.
989         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
990         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
991
992 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
993
994         ignore-value, verify: Omit include files from lib_SOURCES.
995         * modules/ignore-value, modules/verify (Makefile.am):
996         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
997         that leads Automake to duplicate use of am__objects_... variables
998         in Makefile.in.  See
999         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1000
1001 2011-05-07  Bruno Haible  <bruno@clisp.org>
1002
1003         fclose: Simplify autoconf macro.
1004         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1005         defined.
1006
1007 2011-05-07  Bruno Haible  <bruno@clisp.org>
1008
1009         canonicalize-lgpl: Fix autoconf macro ordering bug.
1010         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1011         gl_STDLIB_H_DEFAULTS.
1012
1013 2011-05-06  Eric Blake  <eblake@redhat.com>
1014
1015         maintainer-makefile: make sc_po_check easier to tune
1016         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1017         to probe for strings, such as an alternate location for gnulib.
1018
1019         fclose: guarantee behavior on seekable stdin
1020         * modules/fclose (Depends-on): Add fflush.
1021         * doc/posix-functions/fclose.texi (fclose): Document this.
1022         * tests/test-fclose.c (main): Make test for this unconditional.
1023
1024 2011-05-06  Bruno Haible  <bruno@clisp.org>
1025
1026         fflush, fpurge: Relicense under LGPLv2+.
1027         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1028         * modules/fpurge (License): Likewise.
1029         With permission from Eric Blake and Jim Meyering.
1030         Suggested by Eric Blake.
1031
1032 2011-05-06  Karl Berry  <karl@gnu.org>
1033
1034         * MODULES.html.sh (func_all_modules): remove exit.
1035
1036 2011-05-06  Jim Meyering  <meyering@redhat.com>
1037
1038         maint.mk: use info-gnu@ as the default only for a stable release
1039         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1040         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1041         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1043
1044 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1045
1046         assert-h: new module, which supports C1X-style static_assert
1047         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1048         * lib/verify.h: Revamp so that this can be copied into assert.h,
1049         while retaining the ability to use it standalone as before.
1050         Rename private identifiers so as not to encroach on the
1051         standard C namespace, since this is now used by assert.h.
1052         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1053         the old verify_true.
1054         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1055         the old verify_true.  Use _GL_VERIFY_TYPE.
1056         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1057         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1058         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1059         defined when this file is copied into the replacement assert.h.
1060         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1061         and _Static_assert is not built in.
1062         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1063         defined, and use the new macros mentioned above.
1064         * doc/posix-headers/assert.texi: Document this.
1065
1066 2011-05-05  Bruno Haible  <bruno@clisp.org>
1067
1068         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1069         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1070         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1071         gl_REPLACE_FCLOSE here.
1072         * modules/fflush (Depends-on): Remove fclose.
1073         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1074         combination with module 'fclose'.
1075
1076 2011-05-05  Bruno Haible  <bruno@clisp.org>
1077
1078         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1079         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1080         gl_FUNC_FFLUSH.
1081         (gl_FUNC_FFLUSH): Use it.
1082         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1084         gl_REPLACE_FSEEKO here.
1085
1086 2011-05-05  Bruno Haible  <bruno@clisp.org>
1087
1088         tzset: Relicense under LGPL.
1089         * modules/tzset (License): Change to LGPL.
1090         No agreement needed; it's a no-op.
1091
1092         strtoimax, strtoumax: Relicense under LGPL.
1093         * modules/strtoimax (License): Change to LGPL.
1094         * modules/strtoumax (License): Likewise.
1095         With permission from Jim Meyering, Paul Eggert:
1096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1098
1099         getgroups: Relicense under LGPL.
1100         * modules/getgroups (License): Change to LGPL.
1101         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1105
1106         nanosleep: Relicense under LGPL.
1107         * modules/nanosleep (License): Change to LGPL.
1108         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1109         Haible:
1110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1114
1115         futimens: Relicense under LGPL.
1116         * modules/futimens (License): Change to LGPL.
1117         With permission from Eric Blake:
1118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1119
1120         fflush: Relicense under LGPL.
1121         * modules/fflush (License): Change to LGPL.
1122         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1126
1127         tmpfile: Relicense under LGPL.
1128         * modules/tmpfile (License): Change to LGPL.
1129         With permission from Ben Pfaff:
1130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1131
1132         isfinite: Relicense under LGPL.
1133         * modules/isfinite (License): Change to LGPL.
1134         With permission from Ben Pfaff, Bruno Haible:
1135         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1137
1138         acosl..tanl: Relicense under LGPL.
1139         * modules/acosl (License): Change to LGPL.
1140         * modules/asinl (License): Likewise.
1141         * modules/atanl (License): Likewise.
1142         * modules/cosl (License): Likewise.
1143         * modules/expl (License): Likewise.
1144         * modules/logl (License): Likewise.
1145         * modules/sinl (License): Likewise.
1146         * modules/sqrtl (License): Likewise.
1147         * modules/tanl (License): Likewise.
1148         Source code originally from glibc and Paolo Bonzini. Agreements:
1149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1151
1152 2011-05-05  Bruno Haible  <bruno@clisp.org>
1153
1154         signal: Define sighandler_t.
1155         * lib/signal.in.h (sighandler_t): New type.
1156         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1157         whether sighandler_t is defined.
1158         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1159         * modules/signal (Depends-on): Add extensions.
1160         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1161         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1162         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1163
1164 2011-05-05  Eric Blake  <eblake@redhat.com>
1165
1166         maint: remove useless REPLACE_*_H macros
1167         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1168         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1169         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1170         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1171         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1172         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1173         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1174         * m4/btowc.m4: Update callers.
1175         * m4/dirfd.m4: Likewise.
1176         * m4/duplocale.m4: Likewise.
1177         * m4/fchdir.m4: Likewise.
1178         * m4/fdopendir.m4: Likewise.
1179         * m4/inet_ntop.m4: Likewise.
1180         * m4/inet_pton.m4: Likewise.
1181         * m4/ioctl.m4: Likewise.
1182         * m4/mbrlen.m4: Likewise.
1183         * m4/mbrtowc.m4: Likewise.
1184         * m4/mbsinit.m4: Likewise.
1185         * m4/mbsnrtowcs.m4: Likewise.
1186         * m4/mbsrtowcs.m4: Likewise.
1187         * m4/poll.m4: Likewise.
1188         * m4/setlocale.m4: Likewise.
1189         * m4/wcrtomb.m4: Likewise.
1190         * m4/wcsnrtombs.m4: Likewise.
1191         * m4/wcsrtombs.m4: Likewise.
1192         * m4/wctob.m4: Likewise.
1193         * m4/wcwidth.m4: Likewise.
1194         * modules/posix_spawn: Likewise.
1195         * modules/posix_spawn_file_actions_addclose: Likewise.
1196         * modules/posix_spawn_file_actions_adddup2: Likewise.
1197         * modules/posix_spawn_file_actions_addopen: Likewise.
1198         * modules/posix_spawn_file_actions_destroy: Likewise.
1199         * modules/posix_spawn_file_actions_init: Likewise.
1200         * modules/posix_spawnattr_destroy: Likewise.
1201         * modules/posix_spawnattr_getflags: Likewise.
1202         * modules/posix_spawnattr_getpgroup: Likewise.
1203         * modules/posix_spawnattr_getschedparam: Likewise.
1204         * modules/posix_spawnattr_getschedpolicy: Likewise.
1205         * modules/posix_spawnattr_getsigdefault: Likewise.
1206         * modules/posix_spawnattr_getsigmask: Likewise.
1207         * modules/posix_spawnattr_init: Likewise.
1208         * modules/posix_spawnattr_setflags: Likewise.
1209         * modules/posix_spawnattr_setpgroup: Likewise.
1210         * modules/posix_spawnattr_setschedparam: Likewise.
1211         * modules/posix_spawnattr_setschedpolicy: Likewise.
1212         * modules/posix_spawnattr_setsigdefault: Likewise.
1213         * modules/posix_spawnattr_setsigmask: Likewise.
1214         * modules/posix_spawnp: Likewise.
1215
1216 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1217
1218         Add option to do-release-commit-and-tag to specify branch.
1219         * build-aux/do-release-commit-and-tag: Add --branch.
1220
1221 2011-05-03  Bruno Haible  <bruno@clisp.org>
1222
1223         Avoid unnecessary compilation units, through conditional dependencies.
1224         * modules/accept (Depends-on): Add conditions to the dependencies.
1225         * modules/acosl (Depends-on): Likewise.
1226         * modules/argz (Depends-on): Likewise.
1227         * modules/asinl (Depends-on): Likewise.
1228         * modules/atanl (Depends-on): Likewise.
1229         * modules/atoll (Depends-on): Likewise.
1230         * modules/bind (Depends-on): Likewise.
1231         * modules/btowc (Depends-on): Likewise.
1232         * modules/canonicalize-lgpl (Depends-on): Likewise.
1233         * modules/ceil (Depends-on): Likewise.
1234         * modules/ceilf (Depends-on): Likewise.
1235         * modules/ceill (Depends-on): Likewise.
1236         * modules/chdir-long (Depends-on): Likewise.
1237         * modules/chown (Depends-on): Likewise.
1238         * modules/close (Depends-on): Likewise.
1239         * modules/connect (Depends-on): Likewise.
1240         * modules/cosl (Depends-on): Likewise.
1241         * modules/dirfd (Depends-on): Likewise.
1242         * modules/dprintf (Depends-on): Likewise.
1243         * modules/dprintf-posix (Depends-on): Likewise.
1244         * modules/error (Depends-on): Likewise.
1245         * modules/euidaccess (Depends-on): Likewise.
1246         * modules/expl (Depends-on): Likewise.
1247         * modules/faccessat (Depends-on): Likewise.
1248         * modules/fchdir (Depends-on): Likewise.
1249         * modules/fclose (Depends-on): Likewise.
1250         * modules/fcntl (Depends-on): Likewise.
1251         * modules/fdopendir (Depends-on): Likewise.
1252         * modules/fflush (Depends-on): Likewise.
1253         * modules/floor (Depends-on): Likewise.
1254         * modules/floorf (Depends-on): Likewise.
1255         * modules/floorl (Depends-on): Likewise.
1256         * modules/fnmatch (Depends-on): Likewise.
1257         * modules/fopen (Depends-on): Likewise.
1258         * modules/fprintf-posix (Depends-on): Likewise.
1259         * modules/frexp (Depends-on): Likewise.
1260         * modules/frexp-nolibm (Depends-on): Likewise.
1261         * modules/frexpl (Depends-on): Likewise.
1262         * modules/frexpl-nolibm (Depends-on): Likewise.
1263         * modules/fseek (Depends-on): Likewise.
1264         * modules/fsusage (Depends-on): Likewise.
1265         * modules/ftell (Depends-on): Likewise.
1266         * modules/ftello (Depends-on): Likewise.
1267         * modules/futimens (Depends-on): Likewise.
1268         * modules/getcwd (Depends-on): Likewise.
1269         * modules/getcwd-lgpl (Depends-on): Likewise.
1270         * modules/getdelim (Depends-on): Likewise.
1271         * modules/getdomainname (Depends-on): Likewise.
1272         * modules/getgroups (Depends-on): Likewise.
1273         * modules/gethostname (Depends-on): Likewise.
1274         * modules/getline (Depends-on): Likewise.
1275         * modules/getlogin_r (Depends-on): Likewise.
1276         * modules/getopt-posix (Depends-on): Likewise.
1277         * modules/getpeername (Depends-on): Likewise.
1278         * modules/getsockname (Depends-on): Likewise.
1279         * modules/getsockopt (Depends-on): Likewise.
1280         * modules/getsubopt (Depends-on): Likewise.
1281         * modules/getusershell (Depends-on): Likewise.
1282         * modules/glob (Depends-on): Likewise.
1283         * modules/grantpt (Depends-on): Likewise.
1284         * modules/iconv_open (Depends-on): Likewise.
1285         * modules/iconv_open-utf (Depends-on): Likewise.
1286         * modules/inet_ntop (Depends-on): Likewise.
1287         * modules/inet_pton (Depends-on): Likewise.
1288         * modules/ioctl (Depends-on): Likewise.
1289         * modules/isapipe (Depends-on): Likewise.
1290         * modules/isfinite (Depends-on): Likewise.
1291         * modules/isinf (Depends-on): Likewise.
1292         * modules/lchown (Depends-on): Likewise.
1293         * modules/ldexpl (Depends-on): Likewise.
1294         * modules/link (Depends-on): Likewise.
1295         * modules/linkat (Depends-on): Likewise.
1296         * modules/listen (Depends-on): Likewise.
1297         * modules/logl (Depends-on): Likewise.
1298         * modules/lstat (Depends-on): Likewise.
1299         * modules/mbrlen (Depends-on): Likewise.
1300         * modules/mbrtowc (Depends-on): Likewise.
1301         * modules/mbsinit (Depends-on): Likewise.
1302         * modules/mbsnrtowcs (Depends-on): Likewise.
1303         * modules/mbsrtowcs (Depends-on): Likewise.
1304         * modules/mbtowc (Depends-on): Likewise.
1305         * modules/memcmp (Depends-on): Likewise.
1306         * modules/mkdir (Depends-on): Likewise.
1307         * modules/mkdtemp (Depends-on): Likewise.
1308         * modules/mkfifo (Depends-on): Likewise.
1309         * modules/mkfifoat (Depends-on): Likewise.
1310         * modules/mknod (Depends-on): Likewise.
1311         * modules/mkostemp (Depends-on): Likewise.
1312         * modules/mkostemps (Depends-on): Likewise.
1313         * modules/mkstemp (Depends-on): Likewise.
1314         * modules/mkstemps (Depends-on): Likewise.
1315         * modules/mktime (Depends-on): Likewise.
1316         * modules/nanosleep (Depends-on): Likewise.
1317         * modules/open (Depends-on): Likewise.
1318         * modules/openat (Depends-on): Likewise.
1319         * modules/perror (Depends-on): Likewise.
1320         * modules/poll (Depends-on): Likewise.
1321         * modules/popen (Depends-on): Likewise.
1322         * modules/posix_spawn (Depends-on): Likewise.
1323         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1324         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1325         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1326         * modules/posix_spawnp (Depends-on): Likewise.
1327         * modules/pread (Depends-on): Likewise.
1328         * modules/printf-posix (Depends-on): Likewise.
1329         * modules/ptsname (Depends-on): Likewise.
1330         * modules/putenv (Depends-on): Likewise.
1331         * modules/pwrite (Depends-on): Likewise.
1332         * modules/readline (Depends-on): Likewise.
1333         * modules/readlink (Depends-on): Likewise.
1334         * modules/readlinkat (Depends-on): Likewise.
1335         * modules/recv (Depends-on): Likewise.
1336         * modules/recvfrom (Depends-on): Likewise.
1337         * modules/regex (Depends-on): Likewise.
1338         * modules/remove (Depends-on): Likewise.
1339         * modules/rename (Depends-on): Likewise.
1340         * modules/renameat (Depends-on): Likewise.
1341         * modules/rmdir (Depends-on): Likewise.
1342         * modules/round (Depends-on): Likewise.
1343         * modules/roundf (Depends-on): Likewise.
1344         * modules/roundl (Depends-on): Likewise.
1345         * modules/rpmatch (Depends-on): Likewise.
1346         * modules/select (Depends-on): Likewise.
1347         * modules/send (Depends-on): Likewise.
1348         * modules/sendto (Depends-on): Likewise.
1349         * modules/setenv (Depends-on): Likewise.
1350         * modules/setlocale (Depends-on): Likewise.
1351         * modules/setsockopt (Depends-on): Likewise.
1352         * modules/shutdown (Depends-on): Likewise.
1353         * modules/sigaction (Depends-on): Likewise.
1354         * modules/signbit (Depends-on): Likewise.
1355         * modules/sigprocmask (Depends-on): Likewise.
1356         * modules/sinl (Depends-on): Likewise.
1357         * modules/sleep (Depends-on): Likewise.
1358         * modules/snprintf (Depends-on): Likewise.
1359         * modules/snprintf-posix (Depends-on): Likewise.
1360         * modules/socket (Depends-on): Likewise.
1361         * modules/sprintf-posix (Depends-on): Likewise.
1362         * modules/sqrtl (Depends-on): Likewise.
1363         * modules/stat (Depends-on): Likewise.
1364         * modules/strchrnul (Depends-on): Likewise.
1365         * modules/strdup-posix (Depends-on): Likewise.
1366         * modules/strerror (Depends-on): Likewise.
1367         * modules/strerror_r-posix (Depends-on): Likewise.
1368         * modules/strndup (Depends-on): Likewise.
1369         * modules/strnlen (Depends-on): Likewise.
1370         * modules/strptime (Depends-on): Likewise.
1371         * modules/strsep (Depends-on): Likewise.
1372         * modules/strsignal (Depends-on): Likewise.
1373         * modules/strstr-simple (Depends-on): Likewise.
1374         * modules/strtod (Depends-on): Likewise.
1375         * modules/strtoimax (Depends-on): Likewise.
1376         * modules/strtok_r (Depends-on): Likewise.
1377         * modules/strtoumax (Depends-on): Likewise.
1378         * modules/symlink (Depends-on): Likewise.
1379         * modules/symlinkat (Depends-on): Likewise.
1380         * modules/tanl (Depends-on): Likewise.
1381         * modules/tcgetsid (Depends-on): Likewise.
1382         * modules/tmpfile (Depends-on): Likewise.
1383         * modules/trunc (Depends-on): Likewise.
1384         * modules/truncf (Depends-on): Likewise.
1385         * modules/truncl (Depends-on): Likewise.
1386         * modules/uname (Depends-on): Likewise.
1387         * modules/unlink (Depends-on): Likewise.
1388         * modules/unlockpt (Depends-on): Likewise.
1389         * modules/unsetenv (Depends-on): Likewise.
1390         * modules/usleep (Depends-on): Likewise.
1391         * modules/utimensat (Depends-on): Likewise.
1392         * modules/vasprintf (Depends-on): Likewise.
1393         * modules/vdprintf (Depends-on): Likewise.
1394         * modules/vdprintf-posix (Depends-on): Likewise.
1395         * modules/vfprintf-posix (Depends-on): Likewise.
1396         * modules/vprintf-posix (Depends-on): Likewise.
1397         * modules/vsnprintf (Depends-on): Likewise.
1398         * modules/vsnprintf-posix (Depends-on): Likewise.
1399         * modules/vsprintf-posix (Depends-on): Likewise.
1400         * modules/wcrtomb (Depends-on): Likewise.
1401         * modules/wcscasecmp (Depends-on): Likewise.
1402         * modules/wcscspn (Depends-on): Likewise.
1403         * modules/wcsdup (Depends-on): Likewise.
1404         * modules/wcsncasecmp (Depends-on): Likewise.
1405         * modules/wcsnrtombs (Depends-on): Likewise.
1406         * modules/wcspbrk (Depends-on): Likewise.
1407         * modules/wcsrtombs (Depends-on): Likewise.
1408         * modules/wcsspn (Depends-on): Likewise.
1409         * modules/wcsstr (Depends-on): Likewise.
1410         * modules/wcstok (Depends-on): Likewise.
1411         * modules/wcswidth (Depends-on): Likewise.
1412         * modules/wctob (Depends-on): Likewise.
1413         * modules/wctomb (Depends-on): Likewise.
1414         * modules/wctype (Depends-on): Likewise.
1415         * modules/wcwidth (Depends-on): Likewise.
1416         * modules/write (Depends-on): Likewise.
1417
1418 2011-05-03  Bruno Haible  <bruno@clisp.org>
1419
1420         Support for conditional dependencies.
1421         * doc/gnulib.texi (Module description): Document the syntax of
1422         conditional dependencies.
1423         * gnulib-tool: New option --conditional-dependencies.
1424         (func_usage): Document it.
1425         (cond_dependencies): New variable.
1426         (func_get_automake_snippet_conditional,
1427         func_get_automake_snippet_unconditional): New functions, extracted from
1428         func_get_automake_snippet.
1429         (func_get_automake_snippet): Use them.
1430         (sed_first_32_chars): New variable.
1431         (func_module_shellfunc_name): New function.
1432         (func_module_shellvar_name): New function.
1433         (func_module_conditional_name): New function.
1434         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1435         func_cond_module_condition): New functions.
1436         (func_modules_transitive_closure): Add support for conditional
1437         dependencies.
1438         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1439         conditional automake snippet in an automake conditional.
1440         (func_emit_autoconf_snippets): Emit shell functions that contain the
1441         code for conditional modules.
1442         (func_import, func_create_testdir): Update specification.
1443
1444 2011-05-03  Eric Blake  <eblake@redhat.com>
1445
1446         test-getaddrinfo: report error information
1447         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1448
1449 2011-05-03  Jim Meyering  <meyering@redhat.com>
1450
1451         bootstrap: avoid build failure when $GZIP is set
1452         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1453         program name.  If defined at all, it is supposed to list gzip options.
1454         Reported by Alan Curry in http://debbugs.gnu.org/8609
1455
1456 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1457
1458         readme-release: new module with release instructions
1459         * modules/readme-release: New module.
1460         * top/README-release: New file, from coreutils, grep, diffutils.
1461         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1462
1463 2011-05-02  Eric Blake  <eblake@redhat.com>
1464
1465         fflush: also replace fclose when fixing fflush
1466         * modules/fflush (Depends-on): Add fclose.
1467         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1468         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1469         memstreams with no backing fd.
1470         * doc/posix-functions/fclose.texi (fclose): Document the use of
1471         fflush module to fix the bug.
1472         * tests/test-fclose.c (main): Relax test when fclose is used in
1473         isolation.
1474
1475         fclose: add some tests
1476         * modules/fclose-tests: New test module.
1477         * tests/test-fclose.c: New file.
1478         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1479
1480         fclose: reduced dependencies
1481         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1482         simpler lseek.
1483         * lib/fclose.c (rpl_fclose): Likewise.
1484         Reported by Simon Josefsson.
1485
1486         exit: drop remaining clients
1487         * modules/argmatch (Depends-on): Replace exit with stdlib.
1488         * modules/copy-file (Depends-on): Likewise.
1489         * modules/execute (Depends-on): Likewise.
1490         * modules/exitfail (Depends-on): Likewise.
1491         * modules/obstack (Depends-on): Likewise.
1492         * modules/pagealign_alloc (Depends-on): Likewise.
1493         * modules/pipe-filter-gi (Depends-on): Likewise.
1494         * modules/pipe-filter-ii (Depends-on): Likewise.
1495         * modules/savewd (Depends-on): Likewise.
1496         * modules/spawn-pipe (Depends-on): Likewise.
1497         * modules/wait-process (Depends-on): Likewise.
1498         * modules/xsetenv (Depends-on): Likewise.
1499         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1500         * modules/git-merge-changelog (Depends-on): Likewise.
1501         * modules/long-options (Depends-on): Likewise.
1502         * modules/pt_chown (Depends-on): Likewise.
1503         * modules/sysexits (Depends-on): Likewise.
1504
1505         freading: relax license from LGPLv3+ to LGPLv2+
1506         * modules/freading (License): Relax LGPL version.
1507
1508 2011-05-02  Bruno Haible  <bruno@clisp.org>
1509
1510         fchdir: Remove unused dependencies.
1511         * modules/fchdir (Depends-on): Remove include_next.
1512
1513 2011-05-02  Bruno Haible  <bruno@clisp.org>
1514
1515         gnulib-tool: Refactor.
1516         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1517         from func_emit_autoconf_snippets.
1518         (func_emit_autoconf_snippets): Use it.
1519
1520 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1521
1522         * NEWS: Document removal of 'exit'.
1523         * modules/exit: Remove file.
1524
1525 2011-05-01  Bruno Haible  <bruno@clisp.org>
1526
1527         Update DEPENDENCIES.
1528         * DEPENDENCIES (gettext): Recommend the newest release.
1529         Reported by Simon Josefsson.
1530
1531 2011-05-01  Bruno Haible  <bruno@clisp.org>
1532
1533         gnulib-tool: Reduce code duplication.
1534         * gnulib-tool (func_emit_autoconf_snippets): New function.
1535         (func_import, func_create_testdir): Use it.
1536
1537 2011-04-30  Eric Blake  <eblake@redhat.com>
1538
1539         fclose: don't fail on non-seekable input stream
1540         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1541         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1542         since fflush is allowed to fail in that case.
1543
1544 2011-04-30  Bruno Haible  <bruno@clisp.org>
1545
1546         dup3: cleanup
1547         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1548
1549 2011-04-30  Bruno Haible  <bruno@clisp.org>
1550
1551         netdb: Make it work in C++ mode.
1552         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1553         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1554         module.
1555         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1556         gl_MODULE_INDICATOR_FOR_TESTS.
1557         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1558         * modules/netdb-c++-tests: New file.
1559         * tests/test-netdb-c++.cc: New file.
1560
1561 2011-04-30  Bruno Haible  <bruno@clisp.org>
1562
1563         New modules 'vfscanf', 'vscanf'.
1564         * modules/vfscanf: New file.
1565         * modules/vscanf: New file.
1566         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1567         here.
1568         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1569         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1570
1571 2011-04-30  Bruno Haible  <bruno@clisp.org>
1572
1573         passfd: Add comments.
1574         * lib/passfd.c: Add comments about platforms.
1575
1576 2011-04-30  Bruno Haible  <bruno@clisp.org>
1577
1578         sys_uio: Make <sys/uio.h> self-contained.
1579         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1580         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1581
1582 2011-04-30  Bruno Haible  <bruno@clisp.org>
1583
1584         sys_socket: Ensure 'struct iovec' definition.
1585         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1586         <sys/socket.h>.
1587         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1588
1589 2011-04-30  Bruno Haible  <bruno@clisp.org>
1590
1591         sys_uio: Protect definition of 'struct iovec'.
1592         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1593         it as a C struct.
1594
1595 2011-04-30  Bruno Haible  <bruno@clisp.org>
1596
1597         manywarnings: fix indentation
1598         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1599
1600 2011-04-30  Pádraig Brady <P@draigBrady.com>
1601
1602         manywarnings: add -Wno-missing-field-initializers if needed.
1603         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1604         option if it's needed to allow initialization with { 0, }
1605
1606 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1607
1608         announce-gen: cosmetic improvement
1609         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1610
1611 2011-04-29  Jim Meyering  <meyering@redhat.com>
1612
1613         vc-list-files: indent with spaces, not TABs
1614         * build-aux/vc-list-files: Convert leading TABs to spaces,
1615         to match the style of most other files in gnulib.
1616
1617         announce-gen: indent with spaces, not TABs
1618         * build-aux/announce-gen: Convert all TABs to spaces, to match
1619         the style of most other files in gnulib.
1620
1621 2011-04-29  Eric Blake  <eblake@redhat.com>
1622
1623         quotearg: avoid uninitialized variable use
1624         * lib/quotearg.c (quoting_options_from_style): Initialize
1625         remaining fields, and ensure that custom styles are only used via
1626         quoting_options rather than quoting_style.
1627
1628 2011-04-29  Jim Meyering  <meyering@redhat.com>
1629
1630         maint.mk: remove unused VC-tag variable
1631         * top/maint.mk (VC-tag): Remove unused variable.
1632
1633 2011-04-29  Bruno Haible  <bruno@clisp.org>
1634
1635         netdb: fix gai_strerror replacements
1636         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1637         * modules/netdb: Substitute it.
1638
1639 2011-04-29  Jim Meyering  <meyering@redhat.com>
1640
1641         test-getcwd.c: avoid new set-but-not-used warning
1642         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1643         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1644         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1645         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1646
1647         test-hash.c: avoid a new shadowing warning
1648         * tests/test-hash.c (main): Don't shadow "dup".
1649
1650 2011-04-28  Eric Blake  <eblake@redhat.com>
1651
1652         getaddrinfo: fix gai_strerror signature
1653         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1654         and work around mingw with UNICODE defined.
1655         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1656         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1657         * modules/netdb (Makefile.am): Substitute it.
1658         * lib/netdb.in.h (gai_strerror): Declare replacement.
1659         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1660         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1661         the fix.
1662
1663         getsockopt: avoid compiler warning
1664         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1665         Reported by Matthias Bolte.
1666
1667         tests: drop unused link dependency
1668         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1669         * modules/dirent-safer-tests (Makefile.am): Likewise.
1670         * modules/fdopendir-tests (Makefile.am): Likewise.
1671         * modules/mkfifoat-tests (Makefile.am): Likewise.
1672         * modules/openat-safer-tests (Makefile.am): Likewise.
1673         * modules/openat-tests (Makefile.am): Likewise.
1674         * modules/readlinkat-tests (Makefile.am): Likewise.
1675         * modules/symlinkat-tests (Makefile.am): Likewise.
1676         * modules/linkat-tests (Makefile.am): Likewise.
1677         (Depends-on): Switch to filenamecat-lgpl.
1678         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1679         LIBINTL.
1680         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1681         * tests/test-linkat.c (main): Don't require xalloc.
1682
1683         hash, mgetgroups: drop xalloc dependency
1684         * lib/hash.c (includes): Adjust includes.
1685         * lib/mgetgroups.c (includes): Likewise.
1686         (xgetgroups): Move...
1687         * lib/xgetgroups.c: ...to new file.
1688         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1689         * modules/xgetgroups: New file, split from...
1690         * modules/mgetgroups: ...here.
1691         (Depends-on): Add xalloc-oversized.
1692         * modules/hash (Depends-on): Likewise.
1693         * modules/hash-tests (Depends-on): Drop xalloc.
1694         (test_hash_LDADD): Drop unused library.
1695         * tests/test-hash.c (main): Break xalloc dependency.
1696         (includes): Drop unused include.
1697
1698         xalloc-oversized: new module
1699         * modules/xalloc-oversized: New module.
1700         * modules/xalloc (Depends-on): Add it.
1701         * lib/xalloc.h (xalloc_oversized): Move...
1702         * lib/xalloc-oversized.h: ...into new file.
1703
1704         utimecmp: drop dependency on xmalloc
1705         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1706         due to memory pressure.
1707         * modules/utimecmp (Depends-on): Drop xalloc.
1708
1709 2011-04-27  Eric Blake  <eblake@redhat.com>
1710
1711         getcwd: fix mingw bugs
1712         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1713         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1714         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1715
1716 2011-04-27  Bruno Haible  <bruno@clisp.org>
1717
1718         mkstemps: Ensure declaration on MacOS X 10.5.
1719         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1720         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1721         MacOS X.
1722
1723 2011-04-27  Bruno Haible  <bruno@clisp.org>
1724
1725         mkstemp: More documentation.
1726         * doc/posix-functions/mkstemp.texi: Document header file problem on
1727         MacOS X.
1728
1729 2011-04-27  Bruno Haible  <bruno@clisp.org>
1730
1731         mkstemp: Tweak configure message when cross-compiling.
1732         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1733         result as a guess.
1734
1735 2011-04-27  Bruno Haible  <bruno@clisp.org>
1736
1737         clean-temp: Clarify what it does.
1738         * lib/clean-temp.h: Add more comments.
1739         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1740         module.
1741         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1742         * doc/glibc-functions/mkstemps.texi: Likewise.
1743         * doc/glibc-functions/mkostemps.texi: Likewise.
1744
1745 2011-04-27  Eric Blake  <eblake@redhat.com>
1746
1747         fchdir: avoid extra chdir and fix test
1748         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1749         getcwd-lgpl.
1750         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1751         have to be canonical.
1752         (canonicalize_file_name): Drop unused macro.
1753         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1754
1755         filenamecat-lgpl: fix licence
1756         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1757         when it was first created.
1758
1759         linkat, renameat: add missing dependency
1760         * modules/linkat (Depends-on): Require getcwd-lgpl.
1761         * modules/renameat (Depends-on): Likewise.
1762
1763         tests: reduce dependencies
1764         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1765         * tests/test-renameat.c (main): Likewise.
1766         * modules/linkat-tests (Depends-on): Relax dependency.
1767         * modules/renameat-tests (Depends-on): Likewise.
1768         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1769         dependency explicit.
1770
1771         save-cwd: reduce default dependency
1772         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1773         * lib/save-cwd.c: Update comments.
1774         * NEWS: Document the semantic change.
1775
1776         getcwd: enhance tests
1777         * tests/test-getcwd-lgpl.c: New file, taken from...
1778         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1779         repeat long path stress tests from m4 probe.
1780         * modules/getcwd-lgpl-tests: New module.
1781         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1782         * m4/getcwd-abort-bug.m4: Update comment.
1783         * m4/getcwd-path-max.m4: Likewise.
1784
1785         getcwd-lgpl: new module
1786         * modules/getcwd-lgpl: New module.
1787         * lib/getcwd-lgpl.c: New file.
1788         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1789         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1790         * modules/getcwd (configure.ac): Set C witness.
1791         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1792
1793         getcwd: tweak comments
1794         * m4/getcwd-abort-bug.m4: Fix comments.
1795         * m4/getcwd-path-max.m4: Likewise.
1796         * m4/getcwd.m4: Likewise.
1797
1798 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1799         and Eric Blake  <eblake@redhat.com>
1800
1801         mkstemp: replace if system version uses wrong permissions
1802         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1803         read/write mode bits set in file created by mkstemp.
1804         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1805
1806 2011-04-27  Eric Blake  <eblake@redhat.com>
1807
1808         passfd: avoid compiler warning
1809         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1810         Reported by Laine Stump.
1811
1812 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1813
1814         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1815         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1816
1817 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1818         and Eric Blake  <eblake@redhat.com>
1819
1820         mkstemp: mention clean-temp module
1821         * lib/mkstemp.c: Add comment.
1822         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1823
1824 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1825
1826         inttypes: also provide default values for 32-bit tests
1827         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1828         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1829
1830 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1831
1832         strtoumax: remove dependency on strtoimax
1833         This is like the strtoull change of yesterday.
1834         * modules/strtoumax (Files): Add lib/strtoimax.c.
1835         (Depends-on): Remove strtoimax and add verify.
1836
1837         inttypes-incomplete: new module
1838         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1839         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1840         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1841         of gl_INTTYPES_H.
1842         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1843         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1844         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1845         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1846         * modules/strtoumax, modules/xstrtol (Depends-on):
1847         Depend on inttypes-incomplete, not inttypes.
1848         * modules/inttypes-incomplete: New module, containing the contents
1849         of the old modules/inttypes module, except that the Files: section
1850         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1851         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1852         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1853         (Depends-on): Depend only on inttypes-incomplete.
1854         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1855
1856         inttypes: omit now-redundant strtoimax and strtoumax work
1857         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1858         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1859
1860         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1861         This supports apps that need pointers to strtoimax and strtoumax,
1862         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1863         nonexistent functions.  See
1864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1865         et seq.
1866         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1867         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1868         a macro.
1869         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1870
1871 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1872
1873         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1874
1875 2011-04-25  Bruno Haible  <bruno@clisp.org>
1876
1877         strtol, strtoul: Mark modules as obsolete.
1878         * modules/strtol (Status, Notice): New sections.
1879         * modules/strtoul (Status, Notice): New sections.
1880
1881 2011-04-25  Bruno Haible  <bruno@clisp.org>
1882
1883         strtod: Remove check for strtod, unless supporting old platforms.
1884         * modules/strtod-obsolete: New file.
1885         * m4/strtod-obsolete.m4: New file.
1886         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1887         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1888         * modules/strtod (Depends-on): Add strtod-obsolete.
1889         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1890
1891 2011-04-25  Bruno Haible  <bruno@clisp.org>
1892
1893         strcase: Make module obsolete.
1894         * modules/strcase (Status, Notice): New sections.
1895
1896 2011-04-25  Bruno Haible  <bruno@clisp.org>
1897
1898         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1899         * modules/dup2-obsolete: New file.
1900         * m4/dup2-obsolete.m4: New file.
1901         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1902         gl_FUNC_DUP2_OBSOLETE is not also defined.
1903         * modules/dup2 (Depends-on): Add dup2-obsolete.
1904         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1905
1906 2011-04-25  Bruno Haible  <bruno@clisp.org>
1907
1908         strnlen: Avoid memchr related link error on old obsolete platforms.
1909         * modules/memchr-obsolete: New file.
1910         * m4/memchr-obsolete.m4: New file.
1911         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1912         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1913         * modules/memchr (Depends-on): Add memchr-obsolete.
1914         * modules/strnlen (Depends-on): Likewise.
1915         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1916
1917 2011-04-25  Jim Meyering  <meyering@redhat.com>
1918
1919         maint.mk: makefile_at_at_check extend and clean up
1920         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1921         in addition to */Makefile.am.
1922         Exempt legitimate uses of @VAR@ notation, e.g.,
1923         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1924         Remove obsolete coreutils-specific comment.
1925         Prompted by discussion here:
1926         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1927
1928 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1929
1930         strtoul: remove dependency on strtol
1931         This is so that 'configure' need not check for strtol merely because
1932         the application needs strtoul.
1933         * modules/strtoul (Files): Add lib/strtol.c.
1934         (Depends-on): Remove strtol.
1935
1936         strtoull: remove dependency on strtoul
1937         This is like the strtoll change.
1938         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1939         (Depends-on): Remove strtoul.
1940
1941         strtoll: remove dependency on strtol
1942         This is so that 'configure' need not check for strtol merely because
1943         the application needs strtoll.
1944         * modules/strtoll (Files): Add lib/strtol.c.
1945         (Depends-on): Remove strtol.
1946
1947 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         inttypes: Move some configure check to module 'imaxdiv'.
1950         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1951         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1952         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1953
1954 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1955
1956         inttypes: Move some configure check to module 'imaxabs'.
1957         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1958         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1959         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1960
1961 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1962
1963         inttypes: Remove configure tests that are not needed since 2009-12-31.
1964         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1965         gl_cv_header_working_inttypes_h.
1966
1967 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1968
1969         * modules/strnlen (Depends-on): Remove memchr.
1970         The strnlen implementation doesn't need the memchr module's fixes; see
1971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1972
1973         strtol: remove dependency on wchar
1974         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1975         * modules/strtol (Depends-on): Remove wchar.
1976
1977 2011-04-21  Eric Blake  <eblake@redhat.com>
1978
1979         passfd: fix test regression on Linux
1980         * modules/passfd-tests (configure.ac): Correct socketpair check.
1981
1982         passfd: speed up configure and drop unused code
1983         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1984         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1985         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1986         Instead of probing at configure for unix_scm_rights_bsd44_way,
1987         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1988         check to a struct member probe.
1989         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1990         (sendfd, recvfd): Update preprocessor checks.
1991         * modules/passfd (Files): Reflect rename, and drop unused file.
1992         (Depends-on): Drop unused dependency.
1993
1994         passfd: allow compilation on mingw
1995         * modules/sys_socket (Depends-on): Add sys_uio.
1996         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1997         iovec and a minimal struct msghdr.
1998         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1999         * tests/test-sys_socket.c (main): Enhance test.
2000         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2001         guaranteed to provide what we need.
2002         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2003         * modules/passfd-tests (Depends-on): Add sys_wait.
2004         * tests/test-passfd.c (main): Skip test on mingw, for now.
2005         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2006         partial 'struct msghdr' implementation.
2007
2008         sys_uio: new module
2009         * modules/sys_uio: New module.
2010         * modules/sys_uio-tests: Likewise.
2011         * lib/sys_uio.in.h: New file.
2012         * m4/sys_uio_h.m4: Likewise.
2013         * tests/test-sys_uio.c: Likewise.
2014         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2015         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2016
2017 2011-04-20  Jim Meyering  <meyering@redhat.com>
2018
2019         useless-if-before-free: avoid false-positive
2020         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2021         disjunct so that it too requires a terminating ";".  Without that,
2022         this script would identify as useless one statement from gcc that
2023         was not:
2024           if (aligned_ptr)
2025             free (((void **) aligned_ptr) [-1]);
2026
2027 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2028
2029         doc: update users.txt.
2030         * users.txt: Add barcode.
2031
2032 2011-04-19  Bruno Haible  <bruno@clisp.org>
2033
2034         ioctl: Remove link dependency on native Windows.
2035         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2036         (gl_close_fn, gl_ioctl_fn): New types.
2037         (struct fd_hook): Renamed from struct close_hook. Change type of
2038         private_close_fn field. Add private_ioctl_fn field.
2039         (close_hook_fn): Add parameter for primary close method.
2040         (execute_close_hooks, execute_all_close_hooks): Likewise.
2041         (ioctl_hook_fn): New type.
2042         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2043         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2044         argument.
2045         (unregister_fd_hook): Renamed from unregister_close_hook.
2046         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2047         Don't include <unistd.h>.
2048         (close): Remove undef.
2049         (anchor): Update.
2050         (execute_close_hooks): Add argument for primary close method.
2051         (execute_all_close_hooks): Likewise.
2052         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2053         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2054         argument. Allow each argument to be NULL.
2055         (unregister_fd_hook): Renamed from unregister_close_hook.
2056         * lib/close.c (rpl_close): Pass 'close' function pointer to
2057         execute_all_close_hooks.
2058         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2059         (primary_ioctl): New function.
2060         (ioctl): Don't call ioctlsocket here. Instead, call
2061         execute_all_ioctl_hooks.
2062         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2063         close method.
2064         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2065         (fd_sockets_hook): Renamed from close_sockets_hook.
2066         (gl_sockets_startup, gl_sockets_cleanup): Update.
2067         * modules/fd-hook: Renamed from modules/close-hook. Update.
2068         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2069         * modules/sockets (Depends-on): Likewise.
2070         * modules/ioctl (Depends-on): Add fd-hook.
2071         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2072         GNULIB_SOCKET.
2073
2074 2011-04-19  Bruno Haible  <bruno@clisp.org>
2075
2076         Move the support of O_NONBLOCK in open() to the 'open' module.
2077         * modules/nonblocking (Depends-on): Remove 'open'.
2078         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2079         gl_cv_have_open_O_NONBLOCK.
2080         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2081         O_NONBLOCK support.
2082         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2083
2084 2011-04-17  Bruno Haible  <bruno@clisp.org>
2085
2086         pipe2: Simplify code.
2087         * lib/pipe2.c (pipe2): Reduce code duplication.
2088
2089 2011-04-17  Bruno Haible  <bruno@clisp.org>
2090
2091         nonblocking: Add comment.
2092         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2093
2094 2011-04-17  Bruno Haible  <bruno@clisp.org>
2095
2096         nonblocking: Add tests for sockets.
2097         * tests/test-nonblocking-socket.sh: New file.
2098         * tests/test-nonblocking-socket-main.c: New file.
2099         * tests/test-nonblocking-socket-child.c: New file.
2100         * tests/test-nonblocking-socket.h: New file.
2101         * tests/socket-server.h: New file.
2102         * tests/socket-client.h: New file.
2103         * modules/nonblocking-socket-tests: New file.
2104         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2105
2106 2011-04-17  Bruno Haible  <bruno@clisp.org>
2107
2108         nonblocking: Add tests for pipes.
2109         * tests/test-nonblocking-pipe.sh: New file.
2110         * tests/test-nonblocking-pipe-main.c: New file.
2111         * tests/test-nonblocking-pipe-child.c: New file.
2112         * tests/test-nonblocking-pipe.h: New file.
2113         * tests/test-nonblocking-writer.h: New file.
2114         * tests/test-nonblocking-reader.h: New file.
2115         * tests/test-nonblocking-misc.h: New file.
2116         * modules/nonblocking-pipe-tests: New file.
2117         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2118
2119 2011-04-16  Bruno Haible  <bruno@clisp.org>
2120
2121         gettext: Clarify the needed programmer actions.
2122         * modules/gettext (Notice): New field.
2123         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2124
2125 2011-04-16  Bruno Haible  <bruno@clisp.org>
2126
2127         strchrnul: Tweak last commit.
2128         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2129         bug.
2130         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2131         as in _GL_FUNCDECL_SYS.
2132         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2133         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2134
2135 2011-04-15  Eric Blake  <eblake@redhat.com>
2136
2137         strchrnul: work around cygwin bug
2138         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2139         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2141         * modules/string (Makefile.am): Substitute it.
2142         * lib/string.in.h (strchrnul): Use it.
2143
2144 2011-04-15  Bruno Haible  <bruno@clisp.org>
2145
2146         Don't require lib/stdio-write.c when only module 'stdio' is used.
2147         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2148         invocation.
2149         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2150
2151 2011-04-14  Bruno Haible  <bruno@clisp.org>
2152
2153         Support non-blocking pipe I/O in read() on native Windows.
2154         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2155         (read): New declaration.
2156         * lib/read.c: New file.
2157         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2158         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2159         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2160         vscanf): New declarations.
2161         * lib/stdio-read.c: New file.
2162         * m4/read.m4: New file.
2163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2164         REPLACE_READ.
2165         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2166         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2167         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2168         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2169         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2170         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2171         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2172         * modules/read: New file.
2173         * modules/nonblocking (Files): Add lib/stdio-read.c.
2174         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2175         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2176         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2177         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2178         * modules/pread (Depends-on): Add read.
2179         * modules/safe-read (Depends-on): Likewise.
2180         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2181         gets, scanf, vfscanf, vscanf): Verify signatures.
2182         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2183         problem with non-blocking pipes.
2184         * doc/posix-functions/fgetc.texi: Likewise.
2185         * doc/posix-functions/fgets.texi: Likewise.
2186         * doc/posix-functions/fread.texi: Likewise.
2187         * doc/posix-functions/fscanf.texi: Likewise.
2188         * doc/posix-functions/getc.texi: Likewise.
2189         * doc/posix-functions/getchar.texi: Likewise.
2190         * doc/posix-functions/gets.texi: Likewise.
2191         * doc/posix-functions/scanf.texi: Likewise.
2192         * doc/posix-functions/vfscanf.texi: Likewise.
2193         * doc/posix-functions/vscanf.texi: Likewise.
2194
2195 2011-04-14  Bruno Haible  <bruno@clisp.org>
2196
2197         Support non-blocking pipe I/O in write() on native Windows.
2198         * lib/write.c (rpl_write): Split a write request that failed merely
2199         because the byte count was larger than the pipe buffer's size.
2200         * doc/posix-functions/write.texi: Mention the problem with large byte
2201         counts.
2202
2203 2011-04-14  Bruno Haible  <bruno@clisp.org>
2204
2205         wchar: Ensure that wchar_t gets defined on uClibc.
2206         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2207         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2208
2209 2011-04-13  Bruno Haible  <bruno@clisp.org>
2210
2211         safe-write, full-read: Avoid unnecessary compilation units.
2212         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2213         (Depends-on): Remove safe-read. Add ssize_t.
2214         * modules/full-read (Files): Add lib/full-write.c.
2215         (Depends-on): Add full-write.
2216
2217 2011-04-13  Bruno Haible  <bruno@clisp.org>
2218
2219         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2220         * modules/pwrite (Depends-on): Add 'write'.
2221
2222 2011-04-13  Bruno Haible  <bruno@clisp.org>
2223
2224         Support non-blocking pipe I/O in write() on native Windows.
2225         * lib/unistd.in.h (write): Enable replacement also if
2226         GNULIB_UNISTD_H_NONBLOCKING is 1.
2227         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2228         (rpl_write): When failing to write on a non-blocking pipe, change
2229         errno from ENOSPC to EAGAIN.
2230         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2231         putchar, puts, vfprintf, vprintf): Enable replacement also if
2232         GNULIB_STDIO_H_NONBLOCKING is 1.
2233         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2234         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2235         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2236         CALL_WITH_SIGPIPE_EMULATION.
2237         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2238         * m4/nonblocking.m4: New file.
2239         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2240         for non-blocking I/O support.
2241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2242         GNULIB_UNISTD_H_NONBLOCKING.
2243         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2244         required for non-blocking I/O support.
2245         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2246         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2247         lib/stdio-write.c, m4/asm-underscore.m4.
2248         (Depends-on): Add stdio, unistd.
2249         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2250         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2251         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2252         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2253         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2254         problem with non-blocking pipes.
2255         * doc/posix-functions/fputc.texi: Likewise.
2256         * doc/posix-functions/fputs.texi: Likewise.
2257         * doc/posix-functions/fwrite.texi: Likewise.
2258         * doc/posix-functions/printf.texi: Likewise.
2259         * doc/posix-functions/putc.texi: Likewise.
2260         * doc/posix-functions/putchar.texi: Likewise.
2261         * doc/posix-functions/puts.texi: Likewise.
2262         * doc/posix-functions/vfprintf.texi: Likewise.
2263         * doc/posix-functions/vprintf.texi: Likewise.
2264         * doc/posix-functions/write.texi: Likewise.
2265
2266 2011-04-10  Jim Meyering  <meyering@redhat.com>
2267
2268         maint.mk: prohibit doubled words
2269         Detect them also when they're separated by a newline.
2270         There are 3 ways to customize it:
2271           - disable the test on a per file basis, as usual with rules using
2272             $(VC_LIST_EXCEPT)
2273           - replace the default doubled-word-selecting regexp (affects all files)
2274           - ignore a particular file-vs-doubled-word match
2275         I nearly used that last one to ignore the "is is" match in
2276         coreutils' NEWS file, since the text was "ls -is is ..."
2277         To do that, I would have added this line to cfg.mk:
2278           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2279         but it would have ignored any "is is" match in NEWS.
2280         Low probability, but still...
2281         Instead, I changed the text, slightly:
2282           -  ls -is is now consistent with ls -lis in ignoring values returned
2283           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2284         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2285         (prohibit_doubled_word_): Define.
2286         (sc_prohibit_doubled_word): New rule.
2287         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2288
2289 2011-04-10  Jim Meyering  <meyering@redhat.com>
2290
2291         maint: fix doubled-word typo in comment
2292         * m4/gethostname.m4: s/is is/it is/
2293         * m4/getdomainname.m4: Likewise.
2294
2295 2011-04-10  Jim Meyering  <meyering@redhat.com>
2296
2297         maint: remove doubled word: s/it it/it/
2298         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2299
2300 2011-04-10  Jim Meyering  <meyering@redhat.com>
2301
2302         maint.mk: remove useless semicolon and backslash
2303         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2304         semicolon and backslash.
2305
2306 2011-04-10  Bruno Haible  <bruno@clisp.org>
2307
2308         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2309         * modules/stdint-tests (Depends-on): Add wchar.
2310
2311 2011-04-10  Jim Meyering  <meyering@redhat.com>
2312
2313         maint: remove doubled words in comments, e.g., s/a a/a/
2314         * lib/strptime.c (day_of_the_week): s/the the/the/
2315         * tests/test-chown.h (test_chown): s/a a/a/
2316
2317         test-chown.h: correct a cast
2318         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2319         when the destination is a stat.st_gid.
2320
2321 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2322
2323         getaddrinfo: Fix test for sa_len member.
2324         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2325         include <sys/types.h> before <sys/socket.h>.
2326
2327 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2328
2329         maint: change "can not" to "cannot"
2330         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2331         boundaries.
2332
2333 2011-04-09  Jim Meyering  <meyering@redhat.com>
2334
2335         maint: change "a a" to "a"
2336         * tests/test-lchown.h (test_lchown): s/a a/a/
2337
2338         maint.mk: prohibit \<the the\>
2339         * top/maint.mk (sc_prohibit_the_the): New rule.
2340
2341         maint: fix "the the" in comment
2342         * lib/count-one-bits.h: s/the the/the/
2343
2344         maint: change "can not" to "cannot"
2345         But do not change the occurrences in maintain.texi or in
2346         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2347         * doc/gnulib-tool.texi: s/can not/cannot/
2348         * doc/posix-functions/accept.texi (accept): Likewise.
2349         * doc/posix-functions/socket.texi (socket): Likewise.
2350         * lib/mbrtowc.c: Likewise.
2351
2352         maint.mk: prohibit use of "can not"
2353         * top/maint.mk (sc_prohibit_can_not): New rule.
2354         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2355
2356 2011-04-09  Bruno Haible  <bruno@clisp.org>
2357
2358         careadlinkat: Guard against misuse of careadlinkatcwd.
2359         * lib/careadlinkat.c: Include <stdlib.h>.
2360         (careadlinkatcwd): Check that the fd argument is as expected.
2361
2362 2011-04-09  Bruno Haible  <bruno@clisp.org>
2363
2364         careadlinkat: Use common coding style.
2365         * lib/careadlinkat.c: Move gnulib includes after system includes.
2366
2367 2011-04-09  Bruno Haible  <bruno@clisp.org>
2368
2369         careadlinkat: Clarify specification.
2370         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2371         (careadlinkatcwd): Add comment.
2372         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2373
2374 2011-04-09  Bruno Haible  <bruno@clisp.org>
2375
2376         areadlinkat: Avoid link error on many platforms.
2377         * modules/areadlinkat (Depends-on): Add areadlink.
2378
2379 2011-04-09  Bruno Haible  <bruno@clisp.org>
2380
2381         allocator, careadlinkat: Fix double-inclusion guard.
2382         * lib/allocator.h: Fix double-inclusion guard.
2383         * lib/careadlinkat.h: Likewise.
2384
2385 2011-04-09  Bruno Haible  <bruno@clisp.org>
2386
2387         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2388         * lib/relocwrapper.c: Update dependencies hierarchy.
2389         * build-aux/install-reloc: Update list of files to be compiled.
2390         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2391         lib/allocator.[hc].
2392
2393 2011-04-08  Eric Blake  <eblake@redhat.com>
2394
2395         strftime: silence gnulib-tool warning
2396         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2397
2398 2011-04-08  Bruno Haible  <bruno@clisp.org>
2399
2400         verify: Fix syntax error with GCC 4.6 in C++ mode.
2401         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2402         (HAVE_STATIC_ASSERT): New macro.
2403         (verify_true, verify): Use 'static_assert' if it is supported and
2404         '_Static_assert' is not supported.
2405
2406 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         allocator: New module.
2409         * modules/allocator, lib/allocator.c: New files.
2410         * lib/allocator.h (stdlib_allocator): New decl.
2411         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2412         Remove.  Do not include <stdlib.h>.
2413         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2414         * modules/careadlinkat (Files): Remove lib/allocator.h.
2415         (Depends-on): Add allocator.
2416
2417         stdlib: let modules use system malloc, realloc
2418         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2419         if !_GL_USE_STDLIB_ALLOC.
2420         (malloc, realloc): Limit this change to a smaller scope.
2421
2422         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2423         (malloc, realloc): Don't #undef; no longer needed.
2424         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2425         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2426         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2427         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2428         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2429         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2430         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2431         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2432
2433         careadlinkat: rename members to avoid problem
2434         * lib/allocator.h (struct allocator): Rename members from
2435         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2436         and realloc are #define'd.  Reported by Eric Blake in
2437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2438         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2439
2440 2011-04-08  Eric Blake  <eblake@redhat.com>
2441
2442         nonblocking: reduce dependency
2443         * tests/test-nonblocking.c: Only test sockets when in use.
2444         * modules/nonblocking-tests (Depends-on): Drop socket.
2445         (Makefile.am): Link even if sockets are not present.
2446         * modules/pipe2-tests (Makefile.am): Likewise.
2447         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2448
2449         pipe2: fix O_NONBLOCK support on mingw
2450         * modules/pipe2 (Depends-on): Add nonblocking.
2451         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2452         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2453         * tests/test-nonblocking.c (main): Likewise.
2454         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2455
2456         fcntl-h: fix O_ACCMODE on cygwin
2457         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2458         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2459
2460         pipe-filter: drop O_NONBLOCK workarounds
2461         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2462         * modules/pipe-filter-ii (Depends-on): Likewise.
2463         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2464
2465         nonblocking: provide O_NONBLOCK for mingw
2466         * modules/nonblocking (Depends-on): Add open.
2467         (configure.ac): Set new witness macro.
2468         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2469         * modules/fcntl-h (Makefile.am): Substitute it.
2470         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2471         nonblocking module is in use.
2472         * lib/nonblocking.c: Adjust portability test.
2473         * lib/open.c (open): Don't let native open see gnulib flag.
2474         * tests/test-fcntl-h.c (main): Enhance test.
2475         * tests/test-open.h (test_open): Likewise.
2476         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2477
2478         careadlinkat: fix compilation error on mingw
2479         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2480         within struct allocator.
2481
2482 2011-04-06  Eric Blake  <eblake@redhat.com>
2483
2484         binary-io: relicense under LGPLv2+
2485         * modules/binary-io (License): Relax to LGPLv2+.
2486         Requested for libvirt, and required by pipe2.
2487
2488 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2489
2490         verify: use _Static_assert if available
2491         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2492         (verify_true, verify): Use it if available.  This generates better
2493         diagnostics with GCC 4.6.0 and later.
2494
2495 2011-04-05  Bruno Haible  <bruno@clisp.org>
2496
2497         Remove leftover generated .h files after config.status changed.
2498
2499         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2500         GL_GENERATE_ALLOCA_H.
2501         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2502         GL_GENERATE_ALLOCA_H evaluates to false.
2503
2504         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2505         GL_GENERATE_ARGZ_H.
2506         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2507         evaluates to false.
2508
2509         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2510         GL_GENERATE_BYTESWAP_H.
2511         * modules/byteswap (Makefile.am): Remove byteswap.h if
2512         GL_GENERATE_BYTESWAP_H evaluates to false.
2513
2514         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2515         GL_GENERATE_ERRNO_H.
2516         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2517         evaluates to false.
2518
2519         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2520         GL_GENERATE_FLOAT_H.
2521         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2522         evaluates to false.
2523
2524         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2525         GL_GENERATE_FNMATCH_H.
2526         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2527         GL_GENERATE_FNMATCH_H evaluates to false.
2528
2529         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2530         GL_GENERATE_GLOB_H.
2531         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2532         evaluates to false.
2533
2534         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2535         automake conditional GL_GENERATE_ICONV_H.
2536         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2537         evaluates to false.
2538
2539         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2540         GL_GENERATE_NETINET_IN_H.
2541         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2542         GL_GENERATE_NETINET_IN_H evaluates to false.
2543
2544         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2545         conditional GL_GENERATE_PTHREAD_H.
2546         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2547         * modules/pthread (Makefile.am): Remove pthread.h if
2548         GL_GENERATE_PTHREAD_H evaluates to false.
2549
2550         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2551         GL_GENERATE_SCHED_H.
2552         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2553         evaluates to false.
2554
2555         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2556         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2557         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2558         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2559
2560         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2561         GL_GENERATE_STDARG_H.
2562         * modules/stdarg (Makefile.am): Remove stdarg.h if
2563         GL_GENERATE_STDARG_H evaluates to false.
2564
2565         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2566         GL_GENERATE_STDBOOL_H.
2567         * modules/stdbool (Makefile.am): Remove stdbool.h if
2568         GL_GENERATE_STDBOOL_H evaluates to false.
2569
2570         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2571         conditional GL_GENERATE_STDDEF_H.
2572         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2573         * modules/stddef (Makefile.am): Remove stddef.h if
2574         GL_GENERATE_STDDEF_H evaluates to false.
2575
2576         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2577         GL_GENERATE_STDINT_H.
2578         * modules/stdint (Makefile.am): Remove stdint.h if
2579         GL_GENERATE_STDINT_H evaluates to false.
2580
2581         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2582         GL_GENERATE_SYSEXITS_H.
2583         * modules/sysexits (Makefile.am): Remove sysexits.h if
2584         GL_GENERATE_SYSEXITS_H evaluates to false.
2585
2586         Reported by Karl Berry and Ralf Wildenhues.
2587
2588 2011-04-05  Bruno Haible  <bruno@clisp.org>
2589
2590         Ensure to rebuild generated .h files when config.status has changed.
2591         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2592         config.status.
2593         * modules/ctype (Makefile.am): Likewise.
2594         * modules/dirent (Makefile.am): Likewise.
2595         * modules/errno (Makefile.am): Likewise.
2596         * modules/fcntl-h (Makefile.am): Likewise.
2597         * modules/float (Makefile.am): Likewise.
2598         * modules/getopt-posix (Makefile.am): Likewise.
2599         * modules/glob (Makefile.am): Likewise.
2600         * modules/iconv-h (Makefile.am): Likewise.
2601         * modules/inttypes (Makefile.am): Likewise.
2602         * modules/langinfo (Makefile.am): Likewise.
2603         * modules/locale (Makefile.am): Likewise.
2604         * modules/math (Makefile.am): Likewise.
2605         * modules/netdb (Makefile.am): Likewise.
2606         * modules/netinet_in (Makefile.am): Likewise.
2607         * modules/poll-h (Makefile.am): Likewise.
2608         * modules/pthread (Makefile.am): Likewise.
2609         * modules/pty (Makefile.am): Likewise.
2610         * modules/sched (Makefile.am): Likewise.
2611         * modules/search (Makefile.am): Likewise.
2612         * modules/selinux-h (Makefile.am): Likewise.
2613         * modules/signal (Makefile.am): Likewise.
2614         * modules/spawn (Makefile.am): Likewise.
2615         * modules/stdarg (Makefile.am): Likewise.
2616         * modules/stdbool (Makefile.am): Likewise.
2617         * modules/stddef (Makefile.am): Likewise.
2618         * modules/stdint (Makefile.am): Likewise.
2619         * modules/stdio (Makefile.am): Likewise.
2620         * modules/stdlib (Makefile.am): Likewise.
2621         * modules/string (Makefile.am): Likewise.
2622         * modules/strings (Makefile.am): Likewise.
2623         * modules/sys_file (Makefile.am): Likewise.
2624         * modules/sys_ioctl (Makefile.am): Likewise.
2625         * modules/sys_select (Makefile.am): Likewise.
2626         * modules/sys_socket (Makefile.am): Likewise.
2627         * modules/sys_stat (Makefile.am): Likewise.
2628         * modules/sys_time (Makefile.am): Likewise.
2629         * modules/sys_times (Makefile.am): Likewise.
2630         * modules/sys_utsname (Makefile.am): Likewise.
2631         * modules/sys_wait (Makefile.am): Likewise.
2632         * modules/sysexits (Makefile.am): Likewise.
2633         * modules/termios (Makefile.am): Likewise.
2634         * modules/time (Makefile.am): Likewise.
2635         * modules/unistd (Makefile.am): Likewise.
2636         * modules/wchar (Makefile.am): Likewise.
2637         * modules/wctype-h (Makefile.am): Likewise.
2638         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2639
2640 2011-04-05  Bruno Haible  <bruno@clisp.org>
2641
2642         pipe2: Relicense under LGPLv2+.
2643         * modules/pipe2 (License): Change to LGPLv2+.
2644         Requested by Eric Blake, for libvirt.
2645
2646 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2647
2648         bootstrap: compute gnulib_extra_files after updating build_aux
2649         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2650         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2651
2652 2011-04-05  Eric Blake  <eblake@redhat.com>
2653
2654         bootstrap: preserve git whitelist item sorting
2655         * build-aux/bootstrap (sort_patterns): New function.
2656         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2657
2658 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2659
2660         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2661         sc_space_tab check.
2662
2663 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2664
2665         areadlink, areadlinkat: rewrite in terms of careadlinkat
2666         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2667         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2668         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2669         (malloc, realloc): Remove #undefs.
2670         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2671         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2672         readlink, ssize_t, stdint, unistd.
2673         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2674         areadlink, stdint.
2675
2676         careadlinkat: new module
2677         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2678         * modules/careadlinkat: New files, written by me with
2679         a review and feedback from Ben Pfaff in
2680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2681
2682 2011-04-01  Bruno Haible  <bruno@clisp.org>
2683
2684         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2685         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2686         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2687         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2688         Reported by Bruce Korb <bruce.korb@gmail.com>.
2689
2690 2011-04-01  Bruno Haible  <bruno@clisp.org>
2691
2692         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2693         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2694         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2695         * modules/wcpcpy (Depends-on): Add extensions.
2696         * modules/wcpncpy (Depends-on): Likewise.
2697         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2698         systems.
2699         * doc/posix-functions/wcpncpy.texi: Likewise.
2700         * doc/posix-functions/wcwidth.texi: Likewise.
2701
2702 2011-03-31  Eric Blake  <eblake@redhat.com>
2703
2704         nonblocking: fix mingw test failures
2705         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2706         non-blocking flag on regular file.
2707         (get_nonblocking_flag): Set errno on invalid fd.
2708         * tests/test-nonblocking.c (main): Avoid test failure on
2709         directories if fchdir is not active.
2710         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2711
2712 2011-03-31  Bruno Haible  <bruno@clisp.org>
2713
2714         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2715         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2716         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2717         Reported by Simon Josefsson <simon@josefsson.org>.
2718
2719 2011-03-31  Bruno Haible  <bruno@clisp.org>
2720         and Eric Blake  <eblake@redhat.com>
2721
2722         nonblocking: new module
2723         * modules/nonblocking: New module.
2724         * modules/nonblocking-tests: Likewise.
2725         * lib/nonblocking.h: New file.
2726         * lib/nonblocking.c: Likewise.
2727         * tests/test-nonblocking.c: New test.
2728         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2729
2730 2011-03-30  Bruno Haible  <bruno@clisp.org>
2731
2732         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2733         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2734         instead of 'printf' format for GCC >= 4.4.
2735         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2736         (fprintf, printf, vfprintf, vprintf): Declare with
2737         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2738         the system's vfprintf() function.
2739         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2740
2741 2011-03-30  Eric Blake  <eblake@redhat.com>
2742
2743         passfd: fix scoping bug
2744         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2745         before sendmsg/recvmsg.
2746
2747         passfd: standardize coding conventions
2748         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2749         can be learned at compile time.
2750         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2751         ifdefs.
2752         (sendfd, recvfd): Follow gnulib code conventions.
2753
2754         passfd: fix incorrect sendmsg arguments
2755         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2756         incorrect msg_controllen value.
2757         * modules/passfd-tests (Depends-on): Check for alarm.
2758         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2759         Reported by Bastien ROUCARIES.
2760
2761 2011-03-30  Bruno Haible  <bruno@clisp.org>
2762
2763         c-strcasestr: Relicense under LGPLv2+.
2764         * modules/c-strcasestr (License): Change to LGPLv2+.
2765         Requested by Eric Blake, for libvirt.
2766
2767 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2768
2769         * users.txt: Add libidn2.  Fix libtasn1 link.
2770
2771 2011-03-30  Jim Meyering  <meyering@redhat.com>
2772
2773         tests: readlink* ("",... fails with EINVAL on newer kernels
2774         readlink and readlinkat have typically failed with ENOENT for
2775         the invalid, empty file name,  "".  However, with the advent
2776         of linux-2.6.39, they fail with EINVAL.
2777         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2778         when operating on the empty file name.
2779         * tests/test-readlink.h (test_readlink): Likewise.
2780
2781 2011-03-29  Bruno Haible  <bruno@clisp.org>
2782
2783         Relicense some modules under LGPLv2+, for libidn2.
2784         * modules/array-mergesort (License): Change to LGPLv2+.
2785         * modules/c-strcaseeq (License): Likewise.
2786         * modules/striconveh (License): Likewise.
2787         * modules/striconveha (License): Likewise.
2788         * modules/uniconv/base (License): Likewise.
2789         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2790         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2791         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2792         * modules/unictype/base (License): Likewise.
2793         * modules/unictype/bidiclass-of (License): Likewise.
2794         * modules/unictype/category-M (License): Likewise.
2795         * modules/unictype/category-none (License): Likewise.
2796         * modules/unictype/category-of (License): Likewise.
2797         * modules/unictype/category-test (License): Likewise.
2798         * modules/unictype/category-test-withtable (License): Likewise.
2799         * modules/unictype/combining-class (License): Likewise.
2800         * modules/unictype/joiningtype-of (License): Likewise.
2801         * modules/unictype/scripts (License): Likewise.
2802         * modules/uninorm/base (License): Likewise.
2803         * modules/uninorm/canonical-decomposition (License): Likewise.
2804         * modules/uninorm/composition (License): Likewise.
2805         * modules/uninorm/decompose-internal (License): Likewise.
2806         * modules/uninorm/decomposition-table (License): Likewise.
2807         * modules/uninorm/nfc (License): Likewise.
2808         * modules/uninorm/nfd (License): Likewise.
2809         * modules/uninorm/u32-normalize (License): Likewise.
2810         * modules/unistr/base (License): Likewise.
2811         * modules/unistr/u32-cpy (License): Likewise.
2812         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2813         * modules/unistr/u32-to-u8 (License): Likewise.
2814         * modules/unistr/u32-uctomb (License): Likewise.
2815         * modules/unistr/u8-check (License): Likewise.
2816         * modules/unistr/u8-mblen (License): Likewise.
2817         * modules/unistr/u8-mbtouc (License): Likewise.
2818         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2819         * modules/unistr/u8-mbtoucr (License): Likewise.
2820         * modules/unistr/u8-prev (License): Likewise.
2821         * modules/unistr/u8-strlen (License): Likewise.
2822         * modules/unistr/u8-to-u32 (License): Likewise.
2823         * modules/unistr/u8-uctomb (License): Likewise.
2824         * modules/unitypes (License): Likewise.
2825         Requested by Simon Josefsson.
2826
2827 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2828
2829         lib-symbol-visibility: Add a notice.
2830         * modules/lib-symbol-visibility (Notice): New field.
2831
2832 2011-03-29  Bruno Haible  <bruno@clisp.org>
2833
2834         getaddrinfo: Doc fix.
2835         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2836         section "fixed in Gnulib".
2837
2838 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2839
2840         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2841         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2842
2843 2011-03-26  Bruno Haible  <bruno@clisp.org>
2844
2845         unictype/property-byname: Reduce the number of load-time relocations.
2846         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2847         (UC_PROPERTY_INDEX_*): New enumeration values.
2848         (uc_property_byname): Convert an index from the lookup table to an
2849         uc_property_t.
2850         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2851         values.
2852
2853 2011-03-26  Bruno Haible  <bruno@clisp.org>
2854
2855         unictype/property-byname: Allow omitted word separators and aliases.
2856         * lib/unictype/pr_byname.gperf: Add property names without word
2857         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2858         for 'space'.
2859
2860 2011-03-26  Bruno Haible  <bruno@clisp.org>
2861
2862         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2863         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2864         also hyphens to space.
2865         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2866         without spaces.
2867         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2868
2869 2011-03-26  Bruno Haible  <bruno@clisp.org>
2870
2871         unictype/joiningtype-byname: Recognize long names as well.
2872         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2873         a long name.
2874         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2875         unictype/joiningtype_byname.h.
2876         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2877         * lib/unictype/joiningtype_byname.gperf: New file.
2878         * modules/unictype/joiningtype-byname (Files): Add
2879         lib/unictype/joiningtype_byname.gperf.
2880         (Depends-on): Add gperf.
2881         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2882         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2883         long names.
2884
2885         Tests for module 'unictype/joiningtype-longname'.
2886         * modules/unictype/joiningtype-longname-tests: New file.
2887         * tests/unictype/test-joiningtype_longname.c: New file.
2888
2889         New module 'unictype/joiningtype-longname'.
2890         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2891         * lib/unictype/joiningtype_longname.c: New file.
2892         * modules/unictype/joiningtype-longname: New file.
2893         * modules/unictype/joiningtype-all (Depends-on): Add
2894         unictype/joiningtype-longname.
2895
2896 2011-03-26  Bruno Haible  <bruno@clisp.org>
2897
2898         unictype/bidiclass-byname: Recognize long names as well.
2899         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2900         name.
2901         * lib/unictype/bidi_byname.c: Include <string.h>,
2902         unictype/bidi_byname.h.
2903         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2904         * lib/unictype/bidi_byname.gperf: New file.
2905         * modules/unictype/bidiclass-byname (Files): Add
2906         lib/unictype/bidi_byname.gperf.
2907         (Depends-on): Add gperf.
2908         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2909         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2910         long names.
2911
2912         Tests for module 'unictype/bidiclass-longname'.
2913         * modules/unictype/bidiclass-longname-tests: New file.
2914         * tests/unictype/test-bidi_longname.c: New file.
2915
2916         New module 'unictype/bidiclass-longname'.
2917         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2918         * lib/unictype/bidi_longname.c: New file.
2919         * modules/unictype/bidiclass-longname: New file.
2920         * modules/unictype/bidiclass-all (Depends-on): Add
2921         unictype/bidiclass-longname.
2922
2923 2011-03-26  Bruno Haible  <bruno@clisp.org>
2924
2925         unictype/bidi*: Rename modules.
2926         * modules/unictype/bidiclass-all: Renamed from
2927         modules/unictype/bidicategory-all.
2928         * modules/unictype/bidiclass-name: Renamed from
2929         modules/unictype/bidiclass-name.
2930         (Description): Update.
2931         * modules/unictype/bidiclass-name-tests: Renamed from
2932         modules/unictype/bidicategory-name-tests.
2933         * modules/unictype/bidiclass-byname: Renamed from
2934         modules/unictype/bidicategory-byname.
2935         (Description): Update.
2936         * modules/unictype/bidiclass-byname-tests: Renamed from
2937         modules/unictype/bidicategory-byname-tests.
2938         * modules/unictype/bidiclass-of: Renamed from
2939         modules/unictype/bidicategory-of.
2940         (Description): Update.
2941         * modules/unictype/bidiclass-of-tests: Renamed from
2942         modules/unictype/bidicategory-of-tests.
2943         * modules/unictype/bidiclass-test: Renamed from
2944         modules/unictype/bidicategory-test.
2945         (Description): Update.
2946         * modules/unictype/bidiclass-test-tests: Renamed from
2947         modules/unictype/bidicategory-test-tests.
2948         * modules/unictype/bidicategory-all: New file, a simple redirection.
2949         * modules/unictype/bidicategory-name: Likewise.
2950         * modules/unictype/bidicategory-byname: Likewise.
2951         * modules/unictype/bidicategory-of: Likewise.
2952         * modules/unictype/bidicategory-test: Likewise.
2953         * modules/unictype/property-bidi-* (Dependencies): Update.
2954         * lib/unictype/bidi_*.c: Update comment.
2955
2956 2011-03-26  Bruno Haible  <bruno@clisp.org>
2957
2958         unictype/bidi*: Rename functions, part 2.
2959         * modules/unictype/bidicategory-name (configure.ac): Update required
2960         libunistring version.
2961         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2962
2963 2011-03-25  Bruno Haible  <bruno@clisp.org>
2964
2965         New module 'unictype/combining-class-all'.
2966         * modules/unictype/combining-class-all: New file.
2967
2968         Tests for module 'unictype/combining-class-byname'.
2969         * modules/unictype/combining-class-byname-tests: New file.
2970         * tests/unictype/test-combiningclass_byname.c: New file.
2971
2972         New module 'unictype/combining-class-byname'.
2973         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2974         * lib/unictype/combiningclass_byname.c: New file.
2975         * lib/unictype/combiningclass_byname.gperf: New file.
2976         * modules/unictype/combining-class-byname: New file.
2977
2978         Tests for module 'unictype/combining-class-longname'.
2979         * modules/unictype/combining-class-longname-tests: New file.
2980         * tests/unictype/test-combiningclass_longname.c: New file.
2981
2982         New module 'unictype/combining-class-longname'.
2983         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2984         * lib/unictype/combiningclass_longname.c: New file.
2985         * modules/unictype/combining-class-longname: New file.
2986
2987         Tests for module 'unictype/combining-class-name'.
2988         * modules/unictype/combining-class-name-tests: New file.
2989         * tests/unictype/test-combiningclass_name.c: New file.
2990
2991         New module 'unictype/combining-class-name'.
2992         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2993         * lib/unictype/combiningclass_name.c: New file.
2994         * modules/unictype/combining-class-name: New file.
2995
2996 2011-03-25  Bruno Haible  <bruno@clisp.org>
2997
2998         unictype/combining-class: Rename source files.
2999         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3000         of unictype/combining.h.
3001         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3002         Update.
3003         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3004         * modules/unictype/combining-class (Description): Fix.
3005         (Files, Makefile.am): Update.
3006         * tests/unictype/test-combiningclass.c: Renamed from
3007         tests/unictype/test-combining.c.
3008         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3009
3010 2011-03-25  Bruno Haible  <bruno@clisp.org>
3011
3012         unictype: Update list of canonical combining classes.
3013         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3014
3015 2011-03-25  Bruno Haible  <bruno@clisp.org>
3016
3017         unictype/category-byname: Recognize long names as well.
3018         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3019         a long name.
3020         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3021         unictype/categ_byname.h.
3022         (UC_CATEGORY_INDEX_*): New enumeration values.
3023         (uc_general_category_byname): Use uc_general_category_lookup and
3024         convert from index to value.
3025         * lib/unictype/categ_byname.gperf: New file.
3026         * modules/unictype/category-byname (Files): Add
3027         lib/unictype/categ_byname.gperf.
3028         (Depends-on): Add gperf.
3029         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3030         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3031         long names.
3032
3033         Tests for module 'unictype/category-longname'.
3034         * modules/unictype/category-longname-tests: New file.
3035         * tests/unictype/test-categ_longname.c: New file.
3036
3037         New module 'unictype/category-longname'.
3038         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3039         * lib/unictype/categ_longname.c: New file.
3040         * modules/unictype/category-longname: New file.
3041         * modules/unictype/category-all (Depends-on): Add it.
3042
3043 2011-03-25  Bruno Haible  <bruno@clisp.org>
3044
3045         Tests for module 'unictype/category-LC'.
3046         * modules/unictype/category-LC-tests: New file.
3047         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3048
3049         New module 'unictype/category-LC'.
3050         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3051         (UC_CATEGORY_LC): New declaration.
3052         (UC_CASED_LETTER): New macro.
3053         * lib/gen-uni-tables.c (is_category_LC): New function.
3054         (output_categories): Also handle category LC.
3055         (UC_CATEGORY_MASK_LC): New enumeration value.
3056         (general_category_byname): Also handle category LC.
3057         * lib/unictype/categ_LC.c: New file.
3058         * lib/unictype/categ_LC.h: New file, automatically generated.
3059         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3060         category LC.
3061         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3062         * modules/unictype/category-LC: New file.
3063         * modules/unictype/category-byname (Depends-on): Add
3064         unictype/category-LC.
3065         * modules/unictype/category-all (Depends-on): Likewise.
3066
3067 2011-03-25  Eric Blake  <eblake@redhat.com>
3068
3069         xmalloc: revert yesterday's regression
3070         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3071         realloc's underlying behavior (allowing allocation of zero-size
3072         objects, especially if malloc-gnu is also in use).
3073
3074 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3075
3076         maint.mk: add missing version to VC-tag
3077         * top/maint.mk: git tag was missing actual tag name; add it.
3078
3079         valgrind: do leak checking, and exit with code 1 on error (not 0)
3080         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3081         to VALGRIND.
3082
3083 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3084
3085         posix-modules: say what it does.
3086         * posix-modules: Add a line to the --help output saying what it does.
3087
3088 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3089
3090         xmalloc: Do not leak if underlying realloc is C99 compatible.
3091         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3092         This avoids a leak on C99-based systems.  See
3093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3094
3095 2011-03-24  Eric Blake  <eblake@redhat.com>
3096
3097         realloc: document portability problem
3098         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3099         passing 0 size to realloc.
3100
3101 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3102
3103         doc: update users.txt
3104         * users.txt: Add cvsps, tmpwatch
3105
3106 2011-03-23  Matt Rice  <ratmice@gmail.com>
3107
3108         doc: update users.txt
3109         * users.txt: Add gdb.
3110
3111 2011-03-23  Jim Meyering  <meyering@redhat.com>
3112
3113         doc: update users.txt
3114         Looking through matches up to the following URL (there are still
3115         several more pages), I found several projects that use gnulib:
3116         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3117         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3118         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3119
3120 2011-03-22  Bruno Haible  <bruno@clisp.org>
3121
3122         unictype/bidi*: Rename functions.
3123         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3124         uc_bidi_class, uc_is_bidi_class): New declarations.
3125         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3126         uc_bidi_category_byname.
3127         (uc_bidi_category_byname): New function.
3128         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3129         u_bidi_category_name.
3130         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3131         (uc_bidi_category_name): New function.
3132         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3133         uc_bidi_category.
3134         (uc_bidi_category): New function.
3135         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3136         uc_is_bidi_category. Invoke uc_bidi_class.
3137         (uc_is_bidi_category): New function.
3138         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3139         instead of uc_bidi_category_byname.
3140         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3141         instead of uc_bidi_category_name.
3142         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3143         uc_bidi_category.
3144         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3145         instead of uc_is_bidi_category.
3146
3147 2011-03-21  Bruno Haible  <bruno@clisp.org>
3148
3149         New module 'unictype/joininggroup-all'.
3150         * modules/unictype/joininggroup-all: New file.
3151
3152         Tests for module 'unictype/joininggroup-of'.
3153         * modules/unictype/joininggroup-of-tests: New file.
3154         * tests/unictype/test-joininggroup_of.c: New file.
3155         * tests/unictype/test-joininggroup_of.h: New file, automatically
3156         generated by gen-uni-tables.
3157
3158         New module 'unictype/joininggroup-of'.
3159         * modules/unictype/joininggroup-of: New file.
3160         * lib/unictype/joininggroup_of.c: New file.
3161         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3162         gen-uni-tables.
3163
3164         Tests for module 'unictype/joininggroup-byname'.
3165         * modules/unictype/joininggroup-byname-tests: New file.
3166         * tests/unictype/test-joininggroup_byname.c: New file.
3167
3168         New module 'unictype/joininggroup-byname'.
3169         * modules/unictype/joininggroup-byname: New file.
3170         * lib/unictype/joininggroup_byname.c: New file.
3171         * lib/unictype/joininggroup_byname.gperf: New file.
3172
3173         Tests for module 'unictype/joininggroup-name'.
3174         * modules/unictype/joininggroup-name-tests: New file.
3175         * tests/unictype/test-joininggroup_name.c: New file.
3176
3177         New module 'unictype/joininggroup-name'.
3178         * modules/unictype/joininggroup-name: New file.
3179         * lib/unictype/joininggroup_name.c: New file.
3180         * lib/unictype/joininggroup_name.h: New file.
3181
3182         New module 'unictype/joiningtype-all'.
3183         * modules/unictype/joiningtype-all: New file.
3184
3185         Tests for module 'unictype/joiningtype-of'.
3186         * modules/unictype/joiningtype-of-tests: New file.
3187         * tests/unictype/test-joiningtype_of.c: New file.
3188         * tests/unictype/test-joiningtype_of.h: New file, automatically
3189         generated by gen-uni-tables.
3190
3191         New module 'unictype/joiningtype-of'.
3192         * modules/unictype/joiningtype-of: New file.
3193         * lib/unictype/joiningtype_of.c: New file.
3194         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3195         gen-uni-tables.
3196
3197         Tests for module 'unictype/joiningtype-byname'.
3198         * modules/unictype/joiningtype-byname-tests: New file.
3199         * tests/unictype/test-joiningtype_byname.c: New file.
3200
3201         New module 'unictype/joiningtype-byname'.
3202         * modules/unictype/joiningtype-byname: New file.
3203         * lib/unictype/joiningtype_byname.c: New file.
3204
3205         Tests for module 'unictype/joiningtype-name'.
3206         * modules/unictype/joiningtype-name-tests: New file.
3207         * tests/unictype/test-joiningtype_name.c: New file.
3208
3209         New module 'unictype/joiningtype-name'.
3210         * modules/unictype/joiningtype-name: New file.
3211         * lib/unictype/joiningtype_name.c: New file.
3212
3213         unictype: Add support for Arabic shaping properties.
3214         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3215         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3216         declarations.
3217         (UC_JOINING_GROUP_*): New enumeration values.
3218         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3219         declarations.
3220         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3221         (unicode_joining_type): New variable.
3222         (UC_JOINING_GROUP_*): New enumeration values.
3223         (unicode_joining_group): New variable.
3224         (fill_arabicshaping, joining_type_as_c_identifier,
3225         output_joining_type_test, output_joining_type,
3226         joining_group_as_c_identifier, output_joining_group_test,
3227         output_joining_group): New functions.
3228         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3229         fill_arabicshaping and output_joining_type_test, output_joining_type,
3230         output_joining_group_test, output_joining_group.
3231         Reported by Simon Josefsson.
3232
3233 2011-03-21  Jim Meyering  <meyering@redhat.com>
3234
3235         strftime: fix a bug in yesterday's change
3236         * lib/strftime.c (add): Accommodate width's initial value of -1.
3237         Otherwise, nstrftime would copy uninitialized data into
3238         the result buffer.
3239
3240 2011-03-21  Jim Meyering  <meyering@redhat.com>
3241
3242         tests: add strftime-tests module
3243         * tests/test-strftime.c: New file.
3244         * modules/strftime-tests: New module.
3245
3246 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3247
3248         strftime: don't assume a byte count fits in 'int'
3249         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3250         found this problem by static analysis, using gcc -Wstrict-overflow
3251         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3252         on an integer overflow having undefined behavior, but it turns out
3253         that the argument is a size, which might not fit in 'int' anyway,
3254
3255 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3256
3257         stdio: don't require ignore_value around fwrite
3258
3259         This patch works around libc bug 11959
3260         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3261         Without this patch, applications must often write
3262         ignore_value (fwrite (...)) even though the ignore_value is
3263         not helpful here.  It's common to write many objects, using
3264         fwrite/printf/etc., and then use ferror to detect output error.
3265
3266         I considered making this patch optional, but decided against it,
3267         because libc is obviously being inconsistent here: there is no
3268         reason libc should insist that user code must inspect fwrite
3269         return's value without also insisting that it inspect printf's,
3270         putchar's, etc.  If user code wants to have a strict style where
3271         all these functions' values are checked (so that ferror need not
3272         be checked), we could add support for that style in a new gnulib
3273         module, but in the meantime it's better to be consistent and to
3274         support common usage.
3275
3276         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3277         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3278         that we are compiling in checking mode, and if not C++, and
3279         if not already wrapping fwrite for some other reason.
3280         (fwrite): #define to rpl_fwrite if the latter is defined.
3281
3282 2011-03-20  Bruno Haible  <bruno@clisp.org>
3283
3284         verror: Fix compilation error introduced on 2011-02-13.
3285         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3286         instead of __attribute__.
3287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3288
3289 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3290             Bruno Haible  <bruno@clisp.org>
3291
3292         socklen: do not depend on sys_socket
3293         While trying to modify Emacs to use gnulib's socklen module,
3294         I discovered a circular dependency: socklen depends on sys_socket
3295         and vice versa.  Emacs can use socklen, but it does not need
3296         sys_socket because it has its own substitute for sys/socket.h.
3297         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3298         gl_TYPE_SOCKLEN_T.
3299         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3300         gl_PREREQ_SYS_H_SOCKET.
3301         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3302         gl_PREREQ_SYS_H_SOCKET.
3303         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3304         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3305         * modules/socklen (Depends-on): Do not depend on sys_socket.
3306         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3307
3308 2011-03-20  Jim Meyering  <meyering@redhat.com>
3309
3310         maint.mk: sort file names *after* new transformation
3311         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3312         prefix would have led to an unwarranted failure in GNU parted.
3313         Sort after that transformation.
3314
3315 2011-03-19  Jim Meyering  <meyering@redhat.com>
3316
3317         maint.mk: fix po-file syntax-check rule
3318         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3319         Patch by Bruno Haible.
3320
3321 2011-03-19  Bruno Haible  <bruno@clisp.org>
3322
3323         socklen: Update comment.
3324         * m4/socklen.m4: Update comment about platforms.
3325
3326 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3327             Bruno Haible  <bruno@clisp.org>
3328
3329         inet_ntop, inet_pton: Simplify.
3330         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3331         documented to provide socklen_t and we already depend on sys_socket.
3332         * modules/inet_pton (Depends-on): Likewise.
3333         * lib/arpa_inet.in.h: Adjust comment.
3334
3335 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3336             Bruno Haible  <bruno@clisp.org>
3337
3338         netdb: Simplify.
3339         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3340         documented to provide socklen_t and we already depend on sys_socket.
3341         * lib/netdb.in.h: Adjust comment.
3342
3343 2011-03-19  Bruno Haible  <bruno@clisp.org>
3344
3345         sys_socket, netdb: Document problem with socklen_t.
3346         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3347         platforms.
3348         * doc/posix-headers/netdb.texi: Likewise.
3349
3350 2011-03-18  Eric Blake  <eblake@redhat.com>
3351
3352         maint.mk: let po check work in VPATH build
3353         * top/maint.mk (po_file): Allow cfg.mk override.
3354         (sc_po_check): Allow VPATH use.
3355         Reported by Jiri Denemark.
3356
3357 2011-03-16  Jim Meyering  <meyering@redhat.com>
3358
3359         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3360         Before, you would have had to create one .x-sc_ file per rule in order
3361         to exempt offending files.  Now, you may instead use a Make variable --
3362         usually defined in cfg.mk -- whose name identifies the affected rule.
3363         * top/maint.mk (_sc_excl): Define.
3364         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3365         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3366
3367 2011-03-13  Bruno Haible  <bruno@clisp.org>
3368
3369         ignore-value tests: Avoid warnings.
3370         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3371         empty for gcc < 3.4.
3372
3373 2011-03-13  Bruno Haible  <bruno@clisp.org>
3374
3375         passfd: Fix link error on Solaris.
3376         * modules/passfd (Description): Correct.
3377         (Depends-on): Add socketlib.
3378         (Link): New section.
3379         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3380
3381 2011-03-13  Bruno Haible  <bruno@clisp.org>
3382
3383         passfd: Fix link error on AIX 5.2.
3384         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3385
3386 2011-03-13  Bruno Haible  <bruno@clisp.org>
3387
3388         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3389         * lib/sys_socket.in.h: Include <stddef.h>.
3390         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3391         CMSG_FIRSTHDR. Remove unused variable.
3392
3393 2011-03-13  Bruno Haible  <bruno@clisp.org>
3394
3395         passfd: Fix compilation error on OpenBSD.
3396         * lib/passfd.c: Include <sys/uio.h>.
3397
3398 2011-03-13  Bruno Haible  <bruno@clisp.org>
3399
3400         passfd test: Fix warnings.
3401         * tests/test-passfd.c: Include <sys/wait.h>.
3402         (main): Fix typo.
3403
3404 2011-03-13  Bruno Haible  <bruno@clisp.org>
3405
3406         passfd module, part 4, tweaks.
3407         * tests/test-passfd.c: Reorder includes.
3408         (main): Fix perror and printf calls.
3409
3410 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3411
3412         passfd module, part 4.
3413         * modules/passfd-tests: New file.
3414         * tests/test-passfd.c: New file.
3415
3416 2011-03-13  Jim Meyering  <meyering@redhat.com>
3417
3418         Makefile: rely on GNU make; derive syntax-check rule names
3419         Rather than requiring that each sc_ rule be listed as a dependent
3420         of "check", use features of GNU make to derive the list.
3421         * Makefile (syntax-check-rules): Define.
3422         (check): Depend on the new variable, not the hard-coded list.
3423
3424 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3425             Bruno Haible  <bruno@clisp.org>
3426
3427         passfd module, part 3.
3428         * lib/passfd.h (recvfd): Add a flags argument.
3429         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3430         (recvfd): Add a flags argument.
3431         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3432         exists.
3433         * modules/passfd (Depends-on): Add cloexec.
3434         Suggested by Eric Blake.
3435
3436 2011-03-13  Bruno Haible  <bruno@clisp.org>
3437
3438         passfd module, part 2, tweaks.
3439         * modules/passfd (Files): Reorder.
3440         (Depends-on): Remove errno.
3441         (Include): Remove <sys/socket.h>, <sys/un.h>.
3442         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3443         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3444         specification header. Include <sys/socket.h> always. Don't include
3445         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3446         (sendfd): Clarify that it sets errno when it fails.
3447         (recvfd): Fix specification.
3448
3449 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3450
3451         passfd module, part 2.
3452         * modules/passfd: New file.
3453         * lib/passfd.h: New file.
3454         * lib/passfd.c: New file.
3455
3456 2011-03-12  Bruno Haible  <bruno@clisp.org>
3457
3458         wcswidth, mbswidth: Avoid integer overflow.
3459         * lib/wcswidth.c: Include <limits.h>.
3460         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3461         * lib/mbswidth.c: Include <limits.h>.
3462         (mbsnwidth): Avoid 'int' overflow.
3463         Reported by Jim Meyering.
3464
3465 2011-03-12  Bruno Haible  <bruno@clisp.org>
3466
3467         futimens, utimensat: Avoid endless recursion on Solaris 10.
3468         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3469         Solaris.
3470         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3471         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3472
3473 2011-03-11  Jim Meyering  <meyering@redhat.com>
3474
3475         maint.mk: relax a regexp to accommodate other formatting styles
3476         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3477         between "ngettext" and the following "(".
3478
3479 2011-03-11  Pádraig Brady <P@draigBrady.com>
3480
3481         maint.mk: suppress a false positive warning
3482         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3483         diagnostics are marked with ngettext.
3484
3485 2011-03-10  Eric Blake  <eblake@redhat.com>
3486
3487         wchar: add explicit dependencies, for Tru64
3488         * modules/mbmemcasecoll (Depends-on): Add wchar.
3489         * modules/mbtowc (Depends-on): Likewise.
3490         * modules/vasnprintf (Depends-on): Likewise.
3491         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3492         * modules/wctomb (Depends-on): Likewise.
3493         Reported by Peter O'Gorman.
3494
3495 2011-03-08  Bruno Haible  <bruno@clisp.org>
3496
3497         passfd module, part 1, tweaks.
3498         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3499         Improve indentation. Improve AC_MSG_CHECKING messages.
3500         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3501         gl_SOCKET_FAMILIES.
3502
3503 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3504
3505         passfd module, part 1.
3506         * m4/afunix.m4: New file.
3507         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3508         sockets.
3509
3510 2011-03-08  Bruno Haible  <bruno@clisp.org>
3511
3512         regex-quote: New API.
3513         * lib/regex-quote.h: Include <stdbool.h>.
3514         (struct regex_quote_spec): New type.
3515         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3516         New declarations.
3517         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3518         'const struct regex_quote_spec *' argument.
3519         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3520         (pcre_special): New constant.
3521         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3522         New functions.
3523         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3524         'const struct regex_quote_spec *' argument.
3525         * modules/regex-quote (Depends-on): Add stdbool.
3526         * tests/test-regex-quote.c (check): Update for new API. Add test for
3527         anchored results.
3528         * NEWS: Mention the API change.
3529         Reported by Reuben Thomas and Eric Blake.
3530
3531 2011-03-06  Bruno Haible  <bruno@clisp.org>
3532
3533         regex-quote: Fix creation of POSIX extended regular expressions.
3534         * lib/regex-quote.c (ere_special): Add grouping and alternation
3535         operators.
3536
3537 2011-03-05  Bruno Haible  <bruno@clisp.org>
3538
3539         doc: Improve doc regarding autopoint vs. gnulib.
3540         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3541         disable autopoint while running autoreconf.
3542         Suggested by Ralf Wildenhues.
3543
3544 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3545
3546         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3547         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3548
3549 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3550
3551         parse-duration: remove xalloc.h dependency
3552         * lib/parse-duration.c (parse_period): handle NULL return from
3553         strdup instead of calling xstrdup().
3554         * modules/parse-duration: remove "xalloc" dependency
3555
3556 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3557
3558         bootstrap: honor m4_base when running aclocal
3559         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3560
3561 2011-03-02  Jim Meyering  <meyering@redhat.com>
3562
3563         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3564         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3565         on request from Matt Booth.
3566
3567 2011-03-01  Eric Blake  <eblake@redhat.com>
3568
3569         test-link: work on Hurd
3570         * tests/test-link.h (test_link): Hurd rejects linking directories
3571         with EISDIR instead of the POSIX-mandated EPERM.
3572
3573 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3574
3575         stdio: simplify by moving files to printf-posix, sigpipe
3576         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3577         since this symbol is needed only if printf is replaced.
3578         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3579         Require gl_ASM_SYMBOL_PREFIX.
3580         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3581         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3582         (Depends-on): Add 'raise'.
3583         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3584         * modules/stdio (Files): Remove lib/stdio-write.c,
3585         m4/asm-underscore.m4.
3586         (Depends-on): Remove 'raise'.
3587
3588         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3589         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3590         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3591         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3592
3593 2011-02-28  Bruno Haible  <bruno@clisp.org>
3594
3595         localcharset: Assume ANSI C behaviour of free().
3596         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3597         calling free().
3598         Suggested by Simon Josefsson <simon@josefsson.org>.
3599
3600 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3601             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3602             Bruno Haible  <bruno@clisp.org>  (tiny change)
3603
3604         On Cygwin, use /proc file system instead of win32 API.
3605         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3606         Win32 file names.
3607         (DllMain): Simplify by removing Cygwin specific code.
3608         (find_shared_library_fullname): Use Linux specific implementation also
3609         for Cygwin.
3610         (get_shared_library_fullname): Update accordingly.
3611         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3612         Win32 file names.
3613         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3614         Cygwin specific code.
3615
3616 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3617             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3618
3619         Fix OpenMP flag detection for various Fortran compilers.
3620         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3621         OpenMP-conditional compilation construct, to force compile
3622         failure with missing OpenMP flag.
3623         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3624
3625 2011-02-25  Eric Blake  <eblake@redhat.com>
3626
3627         strstr: expand test coverage
3628         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3629         compilation.
3630         * tests/test-memmem.c (main): Duplicate tests.
3631         * tests/test-strcasestr.c (main): Likewise.
3632         * tests/test-c-strcasestr.c (main): Likewise.
3633
3634 2011-02-25  Jim Meyering  <meyering@redhat.com>
3635
3636         maint.mk: detect missing-NL-at-EOF, too
3637         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3638         it also detects when a file lacks a newline at EOF.
3639         (require_exactly_one_NL_at_EOF_): Renamed from
3640         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3641         since people may well have .x-sc_... file names tied to the
3642         existing name.  Suggested by Eric Blake.
3643
3644 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3645
3646         dirname: move m4/dos.m4 functionality into lib/dosname.h
3647
3648         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3649         extracts symbols from it, puts them into config.h; but it's much
3650         easier to use the symbols directly.  filename.h already does this,
3651         but it disagrees with dos.m4 in some respects.  This patch
3652         introduces a different include file dosname.h that packages up
3653         dos.m4, and then later we can work on merging filename.h and
3654         dosname.h.  Applications that need only the easy-to-configure
3655         symbols should consider including dosname.h rather than dirname.h.
3656         * NEWS: Mention incompatible changes.
3657         * m4/dos.m4: Remove.
3658         * lib/dosname.h, modules/dosname: New files.
3659         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3660         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3661         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3662         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3663         Include dosname.h, not dirname.h.
3664         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3665         Include dosname.h, for definitions of symbols like ISSLASH
3666         that used to be in config.h.
3667         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3668         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3669         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3670         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3671         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3672         * modules/rmdir (Files): Likewise.
3673         * modules/stat (Files): Likewise.
3674         * modules/unlink (Files): Likewise.
3675         * modules/dirname-lgpl (Depends-on): Add dosname.
3676         * modules/lstat (Depends-on): Likewise.
3677         * modules/openat (Depends-on): Likewise.
3678         * modules/rmdir (Depends-on): Likewise.
3679         * modules/savewd (Depends-on): Likewise.
3680         * modules/stat (Depends-on): Likewise.
3681         * modules/unlink (Depends-on): Likewise.
3682         * modules/openat (Depends-on): Remove dirname-lgpl.
3683         * modules/savewd (Depends-on): Likewise.
3684         * tests/test-dirname.c: Do not use removed symbols like
3685         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3686         the remaining symbols, e.g., ISSLASH ('\\').
3687
3688 2011-02-25  Eric Blake  <eblake@redhat.com>
3689
3690         strstr: revert patches that introduced bug and pessimization
3691         * lib/str-two-way.h: Add another reference.
3692         (two_way_short_needle, two_way_long_needle): Revert changes from
3693         2011-02-24; they pessimize search speed.
3694         (critical_factorization): Partially revert changes from
3695         2010-06-22; they violate the requirement that the left half of the
3696         needle be smaller than the period of the needle.
3697
3698 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3699
3700         filenamecat: remove unnecessary dependency on dirname-lgpl
3701         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3702         is no direct dependency, just an indirect one via filenamecat-lgpl.
3703
3704         remove: remove unnecessary use of m4/dos.m4
3705         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3706         * modules/remove (FILES): Remove m4/dos.m4.
3707
3708         * lib/openat-proc.c: Don't include dirname.h; not needed.
3709
3710         backupfile: remove unnecessary use of m4/dos.m4
3711         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3712         of its symbols are used by the backupfile code.  backupfile.c does
3713         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3714         for the rare case of programs that want all their backup file
3715         names to live within 8+3 limits, and dos.m4 doesn't address that.
3716         * modules/backupfile (Files): Remove m4/dos.m4.
3717
3718 2011-02-24  Jim Meyering  <meyering@redhat.com>
3719
3720         strstr: fix a bug whereby strstr would mistakenly return NULL
3721         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3722         in period calculation.
3723         (two_way_long_needle): Likewise.
3724         The original problem was reported by Mike Stump in
3725         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3726         Ralf Wildenhues provided the short needle and haystack.
3727         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3728         Add a more involved test to trigger the bug in two_way_long_needle.
3729
3730 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3731
3732         gnulib-tool: remove use of bold display in help screen
3733         * gnulib-tool (func_usage): Do not use bold display anymore in the
3734         help screen.  That was just meant to be a temporary emphasis for a
3735         backward-incompatible change.
3736
3737 2011-02-23  Bruno Haible  <bruno@clisp.org>
3738
3739         Fix misindentation of preprocessor directives.
3740         * lib/argp-namefrob.h: Reindent preprocessor directives.
3741         * lib/getopt_int.h (struct _getopt_data): Likewise.
3742         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3743         * lib/vasnprintf.c (decode_long_double): Likewise.
3744         * tests/test-argmatch.c: Insert blank lines, for clarity.
3745         * tests/test-exclude.c: Likewise.
3746
3747 2011-02-22  Bruno Haible  <bruno@clisp.org>
3748
3749         ioctl: Fix for MacOS X in 64-bit mode.
3750         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3751         value.
3752         Suggested by Eric Blake.
3753         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3754
3755 2011-02-22  Jim Meyering  <meyering@redhat.com>
3756
3757         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3758         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3759         in lib/.
3760
3761 2011-02-22  Eric Blake  <eblake@redhat.com>
3762
3763         maint: avoid any CDPATH issue
3764         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3765
3766         maint: adjust cpp indentation for my modules, as well
3767         * Makefile (sc_cpp_indent_check): Add my name.
3768         * lib/fbufmode.c: Filter through cppi.
3769         * lib/fpurge.c: Likewise.
3770         * lib/freadable.c: Likewise.
3771         * lib/freading.c: Likewise.
3772         * lib/fwritable.c: Likewise.
3773         * lib/fwriting.c: Likewise.
3774         * lib/sigaction.c: Likewise.
3775
3776 2011-02-22  Jim Meyering  <meyering@redhat.com>
3777
3778         maint: adjust cpp indentation to reflect nesting depth
3779         I.e., in a block of code that begins with an unnested "#if",
3780         put one space between the "#" in column 1 and following token.
3781         For example,
3782         -#include <sys/vfs.h>
3783         +# include <sys/vfs.h>
3784         Do this only in .c files that are part of a module I maintain.
3785         * lib/linkat.c: Filter through cppi.
3786         * lib/nanosleep.c: Likewise.
3787         * lib/openat.c: Likewise.
3788         * lib/openat-die.c: Likewise.
3789         * lib/dup3.c: Likewise.
3790         * lib/fchownat.c: Likewise.
3791         * lib/flock.c: Likewise.
3792         * lib/fsync.c: Likewise.
3793         * lib/fts.c: Likewise.
3794         * lib/getpass.c: Likewise.
3795         * lib/gettimeofday.c: Likewise.
3796         * lib/userspec.c: Likewise.
3797         * Makefile (sc_cpp_indent_check): New rule, to check this.
3798
3799 2011-02-22  Bruno Haible  <bruno@clisp.org>
3800
3801         New module 'wctomb'.
3802         * lib/stdlib.in.h (wctomb): New declaration.
3803         * lib/wctomb.c: New file.
3804         * lib/wctomb-impl.h: New file.
3805         * m4/wctomb.m4: New file.
3806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3807         REPLACE_WCTOMB.
3808         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3809         REPLACE_WCTOMB.
3810         * modules/wctomb: New file.
3811         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3812         * doc/posix-functions/wctomb.texi: Mention the new module.
3813         * modules/wctob (Depends-on): Add wctomb.
3814
3815 2011-02-22  Bruno Haible  <bruno@clisp.org>
3816
3817         New module 'mbtowc'.
3818         * lib/stdlib.in.h (mbtowc): New declaration.
3819         * lib/mbtowc.c: New file.
3820         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3821         * m4/mbtowc.m4: New file.
3822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3823         REPLACE_MBTOWC.
3824         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3825         REPLACE_MBTOWC.
3826         * modules/mbtowc: New file.
3827         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3828         * doc/posix-functions/mbtowc.texi: Mention the new module.
3829         * modules/btowc (Depends-on): Add mbtowc.
3830
3831 2011-02-22  Bruno Haible  <bruno@clisp.org>
3832
3833         wcrtomb: Add more tests for native Windows platforms.
3834         * tests/test-wcrtomb-w32-1.sh: New file.
3835         * tests/test-wcrtomb-w32-2.sh: New file.
3836         * tests/test-wcrtomb-w32-3.sh: New file.
3837         * tests/test-wcrtomb-w32-4.sh: New file.
3838         * tests/test-wcrtomb-w32-5.sh: New file.
3839         * tests/test-wcrtomb-w32.c: New file.
3840         * modules/wcrtomb-tests (Files): Add them.
3841         (Makefile.am): Arrange to run these tests.
3842         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3843         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3844
3845 2011-02-20  Bruno Haible  <bruno@clisp.org>
3846
3847         wcrtomb: Enhance test.
3848         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3849
3850 2011-02-20  Bruno Haible  <bruno@clisp.org>
3851
3852         mbrtowc: Tiny optimization.
3853         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3854
3855 2011-02-20  Jim Meyering  <meyering@redhat.com>
3856
3857         test-exclude.c: remove unmatched #endif
3858         * tests/test-exclude.c: Remove stray #endif, left over from
3859         the change of a week ago.
3860
3861 2011-02-19  Jim Meyering  <meyering@redhat.com>
3862
3863         git-version-gen: skip "-dirty" check when appropriate
3864         * build-aux/git-version-gen: Don't run any git commands when the
3865         version string comes from .tarball-version.  Prior to this, we
3866         would run git update-index --refresh even from a just-unpacked
3867         tarball directory, and that could affect a .git/ directory in a
3868         parent of the build directory.  Reported by Mike Frysinger.
3869
3870 2011-02-19  Bruno Haible  <bruno@clisp.org>
3871
3872         unictype/property-byname: Reduce the size of the 'data' segment.
3873         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3874
3875 2011-02-19  Bruno Haible  <bruno@clisp.org>
3876
3877         unictype/scripts: Reduce the size of the 'data' segment.
3878         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3879         '%pic'.
3880         * lib/unictype/scripts_byname.gperf: Regenerated.
3881
3882 2011-02-19  Bruno Haible  <bruno@clisp.org>
3883
3884         stdint: Update documentation.
3885         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3886
3887 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3888
3889         stdint: omit redundant check for wchar.h
3890         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3891         always tests whether wchar.h exists, so remove the now-redundant test.
3892
3893 2011-02-18  Bruno Haible  <bruno@clisp.org>
3894
3895         stdint: Cut dependency to module 'wchar'.
3896         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3897         include the necessary prerequisites.
3898         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3899         * modules/stdint (Depends-on): Remove wchar.
3900         (Makefile.am): Substitute HAVE_WCHAR_H.
3901         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3902
3903 2011-02-18  Eric Blake  <eblake@redhat.com>
3904
3905         longlong: skip, rather than fail, on cross-compilation
3906         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3907         when cross-compiling; regression from 2011-02-16.
3908
3909 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3910
3911         * NEWS: Mention 2011-02-08 change to stdlib.
3912
3913 2011-02-17  Bruno Haible  <bruno@clisp.org>
3914
3915         getloadavg: Add comments about platforms.
3916         * m4/getloadavg.m4: Add comment.
3917         * lib/getloadavg.c: Likewise.
3918
3919 2011-02-17  Bruno Haible  <bruno@clisp.org>
3920
3921         getloadavg: Fix link error on Solaris 2.6.
3922         * modules/getloadavg (Link): New section.
3923         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3924         linking test-getloadavg.
3925         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3926         getloadavg.
3927
3928 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3929
3930         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3931         It was 'int', but this doesn't match the IRIX 6.5 manual.
3932         Suggested by Bruno Haible in
3933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3934
3935 2011-02-17  Bruno Haible  <bruno@clisp.org>
3936
3937         havelib: Fix comments.
3938         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3939         change.
3940
3941 2011-02-17  Bruno Haible  <bruno@clisp.org>
3942
3943         havelib: Update config.rpath.
3944         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3945
3946 2011-02-17  Bruno Haible  <bruno@clisp.org>
3947
3948         getloadavg test: Add some plausibility checks.
3949         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3950         is improbable.
3951
3952 2011-02-16  Eric Blake  <eblake@redhat.com>
3953
3954         maintainer-makefile: make syntax-check a no-op from tarballs
3955         * top/maint.mk (no-vc-detected): New rule.
3956         (local-checks-available): Use it to avoid hanging if someone tries
3957         'make syntax-check' from a tarball.  Also append to any non-syntax
3958         checks already defined in cfg.mk.
3959
3960 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3961
3962         longlong: tune, particularly for common case of c99
3963
3964         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3965         or running anything if c99, or if unsigned long long int does not
3966         work.  In either case, we know the answer without further tests.
3967         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3968         it at most once, and use its results for both long long int and
3969         unsigned long long int.  This is more likely to be efficient in
3970         the common case where the program wants to check for both long
3971         long int and unsigned long long int.
3972         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3973         since the answer is already known.
3974
3975 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3976
3977         getloadavg: set errno
3978         * lib/getloadavg.c: Set errno when returning -1.  If no other
3979         error number looks appropriate, set it to ENOSYS if the getloadavg
3980         looks like it can't possibly ever work, ENOTSUP otherwise.
3981         Suggested by Bruno Haible in
3982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3983
3984         getloadavg: trim unused parts and speed up 'configure'
3985         * NEWS: Document this.
3986         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3987         always compiled if getloadavg is absent.
3988         Move test code to ...
3989         * tests/test-getloadavg.c: New file, containing previous
3990         contents of test from lib/getloadavg.c.  It also contains
3991         suggestions by Bruno Haible in
3992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3993         * modules/getloadavg-tests: New file.
3994         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3995         Do tests in the same order as they're needed for getloadavg.c.
3996         Omit setgid-related tests that generate symbols KMEM_GROUP,
3997         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3998         Do only the tests that are needed to see whether the system has
3999         getloadavg, moving the other tests into ...
4000         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4001         NLIST_NAME_UNION; nobody should be using it.  Do not define
4002         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4003         relevant, as the user of this module shouldn't care how getloadavg
4004         is implemented.
4005
4006         getloadavg: omit unused var
4007         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4008
4009 2011-02-15  Jim Meyering  <meyering@redhat.com>
4010
4011         doc: update users.txt
4012         * users.txt: Update iwhd's URL.
4013
4014 2011-02-13  Bruno Haible  <bruno@clisp.org>
4015
4016         Consistent macro naming for macros that use GCC __attribute__.
4017         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4018         _ATTRIBUTE_NONNULL_.
4019         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4020         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4021         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4022         ATTRIBUTE_DEPRECATED.
4023         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4024         ATTRIBUTE_NORETURN.
4025         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4026         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4027         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4028         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4029         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4030         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4031         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4032         ATTRIBUTE_SENTINEL.
4033         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4034         ATTRIBUTE_RETURN_CHECK.
4035         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4036         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4037         ATTRIBUTE_NORETURN.
4038         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4039         Reported by Paul Eggert.
4040
4041 2011-02-13  Bruno Haible  <bruno@clisp.org>
4042
4043         Don't interfere with a program's definition of __attribute__.
4044         * lib/argp.h (__attribute__): Remove definition.
4045         (_GL_ATTRIBUTE_FORMAT): New macro.
4046         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4047         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4048         (_GL_ATTRIBUTE_FORMAT): New macro.
4049         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4050         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4051         GCC 3 or newer.
4052         * lib/error.h (__attribute__): Remove definition.
4053         (_GL_ATTRIBUTE_FORMAT): New macro.
4054         (error, error_at_line): Use it.
4055         * lib/hash.h (__attribute__): Remove definition.
4056         (ATTRIBUTE_WUR): Update definition. Define always.
4057         * lib/openat.h (__attribute__): Remove definition.
4058         (ATTRIBUTE_NORETURN): Update definition. Define always.
4059         * lib/sigpipe-die.h (__attribute__): Remove definition.
4060         (ATTRIBUTE_NORETURN): Update definition. Define always.
4061         * lib/vasnprintf.h (__attribute__): Remove definition.
4062         (_GL_ATTRIBUTE_FORMAT): New macro.
4063         (asnprintf, vasnprintf): Use it.
4064         * lib/xalloc.h (__attribute__): Remove definition.
4065         (ATTRIBUTE_NORETURN): Update definition. Define always.
4066         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4067         * lib/xmemdup0.h (__attribute__): Remove definition.
4068         (ATTRIBUTE_NORETURN): Update definition. Define always.
4069         * lib/xprintf.h (__attribute__): Remove definition.
4070         (_GL_ATTRIBUTE_FORMAT): New macro.
4071         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4072         * lib/xstrtol.h (__attribute__): Remove definition.
4073         (ATTRIBUTE_NORETURN): Update definition. Define always.
4074         * lib/xvasprintf.h (__attribute__): Remove definition.
4075         (_GL_ATTRIBUTE_FORMAT): New macro.
4076         (xasprintf, xvasprintf): Use it.
4077         * tests/test-argmatch.c (__attribute__): Remove definition.
4078         (ATTRIBUTE_NORETURN): Update definition. Define always.
4079         * tests/test-exclude.c (__attribute__): Remove definition.
4080         (ATTRIBUTE_NORETURN): Update definition. Define always.
4081         Reported by Paul Eggert.
4082
4083 2011-02-13  Bruno Haible  <bruno@clisp.org>
4084
4085         mbrtowc: Add more tests for native Windows platforms.
4086         * tests/test-mbrtowc-w32-1.sh: New file.
4087         * tests/test-mbrtowc-w32-2.sh: New file.
4088         * tests/test-mbrtowc-w32-3.sh: New file.
4089         * tests/test-mbrtowc-w32-4.sh: New file.
4090         * tests/test-mbrtowc-w32-5.sh: New file.
4091         * tests/test-mbrtowc-w32.c: New file.
4092         * modules/mbrtowc-tests (Files): Add them.
4093         (Makefile.am): Arrange to run these tests.
4094         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4095         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4096
4097 2011-02-13  Bruno Haible  <bruno@clisp.org>
4098
4099         mbrtowc: Work around native Windows bug.
4100         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4101         guess when no suitable locale for testing was found.
4102         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4103
4104 2011-02-13  Bruno Haible  <bruno@clisp.org>
4105
4106         mbsinit: Work around mingw bug.
4107         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4108         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4109         Windows.
4110         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4111
4112 2011-02-13  Bruno Haible  <bruno@clisp.org>
4113
4114         mbsinit: Don't crash for a NULL argument.
4115         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4116         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4117
4118 2011-02-13  Bruno Haible  <bruno@clisp.org>
4119
4120         Don't interfere with a program's definition of __attribute__.
4121         * lib/stdio.in.h (__attribute__): Remove definition.
4122         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4123         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4124         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4125         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4126         * lib/string.in.h (__attribute__): Remove definition.
4127         Reported by Paul Eggert.
4128
4129 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4130
4131         stdlib: don't get in the way of non-GCC __attribute__
4132         See thread starting at
4133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4134         Revert previous stdlib change, installing the following instead:
4135         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4136         to get in the way of a non-GCC compiler that supports __attribute__.
4137         (_GL_ATTRIBUTE_RETURN): New macro.
4138         (_Exit): Use it instead of __attribute__.
4139
4140 2011-02-12  Bruno Haible  <bruno@clisp.org>
4141
4142         quotearg test: Avoid test failure on mingw.
4143         * tests/test-quotearg.sh: Convert the locale identifier from native
4144         Windows syntax to Unix syntax.
4145
4146 2011-02-12  Bruno Haible  <bruno@clisp.org>
4147
4148         setlocale: Prefer gnulib's override over libintl's override.
4149         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4150         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4151         GNULIB_defined_setlocale is set.
4152
4153 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4154
4155         stdlib: support non-GCC __attribute__
4156
4157         Fix a serious and tricky problem encountered when attempting to
4158         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4159         5.5, but it crashed due to memory corruption on Solaris 10 with
4160         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4161         bits that are otherwise zero.  This tagging is optional inside
4162         Emacs but is preferred and is used when __attribute__ ((__aligned
4163         (8))) works, as it does with both recent-enough GCC and with Sun C
4164         5.11.  However, Sun C 5.11 is not GCC and does not #define
4165         __GNUC__ and __GNUC_MINOR__.
4166
4167         When I added the getloadavg module to Emacs, it brought in
4168         stdlib.in.h, which contained this fragment:
4169
4170            #ifndef __attribute__
4171            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4172            #  define __attribute__(Spec)   /* empty */
4173            # endif
4174            #endif
4175
4176         When files that include <stdlib.h> were compiled with Sun C 5.11,
4177         the above code disabled __attribute__ ((__aligned (8))), which
4178         caused variables to not be properly aligned, which eventually led
4179         to the pointer corruption mentioned above.  (This was a bit hard
4180         to diagnose, unfortunately.)
4181
4182         Several "#define __attribute__(X) /* empty */" code snippets need
4183         to be eradicated from Gnulib to work with non-GCC compilers that
4184         support __attribute__.  The Autoconf way to do this is to test for
4185         each kind of attribute that we want support for, and selectively
4186         enable that in source code.
4187
4188         Fix this problem just for stdlib.h, by adding a test for the
4189         __noreturn__ attribute, and change stdlib.in.h to use that test
4190         when needed.  This technique can be easily generalized to the
4191         other *.in.h files and attributes, and a similar technique can be
4192         used for *.h and *.c files.  This patch is enough to solve the
4193         problem for Emacs + getloadavg, and I thought I'd publish it for
4194         feedback before undertaking further, similar fixes in other
4195         modules.
4196
4197         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4198         because it's not needed for stdlib.h.  It merely substitutes the
4199         value directly into stdlib.h.  We may well need to #define it, or
4200         similar symbols, for other modules, but it's nice to also have an
4201         option to not #define it for applications like Emacs that do not
4202         need it.
4203
4204         * lib/stdlib.in.h (__attribute__): Do not #define.
4205         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4206         be defined only if the _Exit module is also used.
4207         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4209         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4210         platforms.
4211         * modules/_Exit (Files): Add m4/attribute.m4.
4212         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4213         * m4/attribute.m4: New file.
4214
4215 2011-02-12  Bruno Haible  <bruno@clisp.org>
4216
4217         wcsrtombs: Work around bug on native Windows.
4218         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4219         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4220         instead of len.
4221         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4222
4223 2011-02-12  Bruno Haible  <bruno@clisp.org>
4224
4225         mbsrtowcs: Work around bug on native Windows.
4226         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4227         against mingw bug.
4228         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4229
4230 2011-02-12  Bruno Haible  <bruno@clisp.org>
4231
4232         Avoid setlocale bugs in tests.
4233         * modules/btowc (Dependencies): Add setlocale.
4234         * modules/c-strcase (Dependencies): Likewise.
4235         * modules/mbmemcasecmp (Dependencies): Likewise.
4236         * modules/mbmemcasecoll (Dependencies): Likewise.
4237         * modules/mbrtowc (Dependencies): Likewise.
4238         * modules/mbscasecmp (Dependencies): Likewise.
4239         * modules/mbscasestr (Dependencies): Likewise.
4240         * modules/mbschr (Dependencies): Likewise.
4241         * modules/mbscspn (Dependencies): Likewise.
4242         * modules/mbsinit (Dependencies): Likewise.
4243         * modules/mbsncasecmp (Dependencies): Likewise.
4244         * modules/mbsnrtowcs (Dependencies): Likewise.
4245         * modules/mbspbrk (Dependencies): Likewise.
4246         * modules/mbspcasecmp (Dependencies): Likewise.
4247         * modules/mbsrchr (Dependencies): Likewise.
4248         * modules/mbsrtowcs (Dependencies): Likewise.
4249         * modules/mbsspn (Dependencies): Likewise.
4250         * modules/mbsstr (Dependencies): Likewise.
4251         * modules/nl_langinfo (Dependencies): Likewise.
4252         * modules/quotearg (Dependencies): Likewise.
4253         * modules/unicase/locale-language (Dependencies): Likewise.
4254         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4255         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4256         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4257         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4258         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4259         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4260         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4261         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4262         * modules/vasnprintf-posix (Dependencies): Likewise.
4263         * modules/wcrtomb (Dependencies): Likewise.
4264         * modules/wcsnrtombs (Dependencies): Likewise.
4265         * modules/wcsrtombs (Dependencies): Likewise.
4266
4267 2011-02-12  Bruno Haible  <bruno@clisp.org>
4268
4269         setlocale: Workaround native Windows bug.
4270         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4271         succeeds but sets LC_CTYPE to "C", report a failure.
4272         * tests/test-setlocale2.sh: New file.
4273         * tests/test-setlocale2.c: New file.
4274         * modules/setlocale-tests (Files): Add the new files.
4275         (Makefile.am): Enable test-setlocale2.sh test.
4276         * doc/posix-functions/setlocale.texi: Mention workaround.
4277
4278 2011-02-11  Bruno Haible  <bruno@clisp.org>
4279
4280         Tests for module 'setlocale'.
4281         * modules/setlocale-tests: New file.
4282         * tests/test-setlocale1.sh: New file.
4283         * tests/test-setlocale1.c: New file.
4284
4285         New module 'setlocale'.
4286         * lib/locale.in.h (setlocale): New declaration.
4287         * lib/setlocale.c: New file, based on
4288         gettext/gettext-runtime/intl/setlocale.c.
4289         * m4/setlocale.m4: New file.
4290         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4291         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4292         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4293         REPLACE_SETLOCALE.
4294         * modules/setlocale: New file.
4295         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4296         * doc/posix-functions/setlocale.texi: Mention the new module.
4297
4298 2011-02-11  Bruno Haible  <bruno@clisp.org>
4299
4300         Prepare for locale dependent tests on mingw.
4301         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4302         because it has the wrong locale encoding.
4303         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4304         French_France.1252 instead of "fr".
4305         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4306         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4307         because it has the wrong locale encoding.
4308         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4309         native Windows, try Turkish_Turkey.65001.
4310         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4311         Chinese_China.54936.
4312
4313         Prepare for locale dependent tests on mingw.
4314         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4315         differently.
4316         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4317         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4318         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4319         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4320
4321 2011-02-11  Eric Blake  <eblake@redhat.com>
4322
4323         strptime: avoid compiler warnings
4324         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4325         compiler warnings about dead code.
4326         Reported by Daniel P. Berrange.
4327
4328 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4329
4330         doc: update users.txt
4331         * users.txt: Add rcs.
4332
4333 2011-02-10  John W. Eaton  <jwe@gnu.org>
4334
4335         doc: update users.txt
4336         * users.txt: Add octave.
4337
4338 2011-02-10  Jim Meyering  <meyering@redhat.com>
4339
4340         doc: update users.txt
4341         * users.txt: Add iwhd.
4342
4343 2011-02-09  Bruno Haible  <bruno@clisp.org>
4344
4345         gnulib-tool: Make copyright notice adjustment more robust.
4346         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4347         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4348         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4349         License".
4350         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4351
4352 2011-02-06  Bruno Haible  <bruno@clisp.org>
4353
4354         New module 'towctrans'.
4355         * modules/towctrans: New file.
4356         * lib/wctype.in.h (towctrans): New declaration.
4357         * lib/towctrans.c: New file.
4358         * lib/towctrans-impl.h: New file.
4359         * m4/towctrans.m4: New file.
4360         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4361         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4362         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4363         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4364         * doc/posix-functions/towctrans.texi: Mention the new module.
4365
4366 2011-02-06  Bruno Haible  <bruno@clisp.org>
4367
4368         New module 'wctrans'.
4369         * modules/wctrans: New file.
4370         * lib/wctype.in.h (wctrans): New declaration.
4371         * lib/wctrans.c: New file.
4372         * lib/wctrans-impl.h: New file.
4373         * m4/wctrans.m4: New file.
4374         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4375         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4376         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4377         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4378         * doc/posix-functions/wctrans.texi: Mention the new module.
4379
4380 2011-02-06  Bruno Haible  <bruno@clisp.org>
4381
4382         New module 'iswctype'.
4383         * modules/iswctype: New file.
4384         * lib/wctype.in.h (iswctype): New declaration.
4385         * lib/iswctype.c: New file.
4386         * lib/iswctype-impl.h: New file.
4387         * m4/iswctype.m4: New file.
4388         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4389         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4390         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4391         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4392         * doc/posix-functions/iswctype.texi: Mention the new module and the
4393         HP-UX 11.00 problem.
4394
4395 2011-02-06  Bruno Haible  <bruno@clisp.org>
4396
4397         New module 'wctype'.
4398         * modules/wctype: Change to represent the wctype() substitute.
4399         * lib/wctype.in.h (wctype): New declaration.
4400         * lib/wctype.c: New file.
4401         * lib/wctype-impl.h: New file.
4402         * m4/wctype.m4: New file.
4403         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4404         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4405         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4406         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4407         * doc/posix-functions/wctype.texi: Mention the new module and the
4408         HP-UX 11.00 problem.
4409
4410 2011-02-06  Bruno Haible  <bruno@clisp.org>
4411
4412         wctype-h: Ensure wctype_t and wctrans_t are defined.
4413         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4414         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4415         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4416         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4417         HAVE_WCTRANS_T.
4418         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4419
4420 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4421
4422         flock: fix license typo
4423
4424         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4425         omitted.
4426
4427 2011-02-08  Bruno Haible  <bruno@clisp.org>
4428
4429         Split large sed scripts, for HP-UX sed.
4430         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4431         to avoid HP-UX limit of 99 commands, in the near future.
4432         * modules/stdlib (Makefile.am): Likewise.
4433         * modules/unistd (Makefile.am): Likewise.
4434         * modules/wchar (Makefile.am): Likewise.
4435         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4436         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4438
4439 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4440             Bruno Haible  <bruno@clisp.org>
4441
4442         stdlib: improve random_r modularization
4443         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4444         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4445         you also need the random_r module to get this material right.
4446         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4447         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4448         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4449
4450 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4451
4452         stdlib: don't depend on stdint
4453         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4454         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4455         be independent of whether stdint.h is needed.
4456         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4457         here, instead of ...
4458         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4459         struct random_data should be using the random_r module, not just
4460         the stdlib module (which wouldn't make sense: what package needs
4461         just struct random_data without also needing random_r?).
4462         * modules/stdlib (Depends-on): Remove stdint.
4463
4464         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4465         See the thread rooted at
4466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4467         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4468         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4469         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4470         __VMS)); previously it was always included (via fcntl--.h).
4471         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4472         hand; this is good enough for load averages.  Also, do not use
4473         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4474         flags directly if available and don't bother otherwise.  (Packages
4475         that need the extra reliability should use the modules that define
4476         these flags on older platforms that lack them.)
4477         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4478         fcntl-safer.
4479
4480 2011-02-08  Jim Meyering  <meyering@redhat.com>
4481
4482         di-set.h, ino-map.h: add multiple-inclusion guard
4483         Technically, the guard is required only for ino-map.h, due to its
4484         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4485         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4486         * lib/ino-map.h: Likewise.
4487
4488 2011-02-06  Bruno Haible  <bruno@clisp.org>
4489
4490         iswblank: Ensure declaration on glibc systems.
4491         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4492         * modules/iswblank (Dependencies): Add 'extensions'.
4493         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4494
4495 2011-02-06  Bruno Haible  <bruno@clisp.org>
4496
4497         New module 'iswblank'.
4498         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4499         * modules/iswblank: New file.
4500         * modules/wctype-h (Files): Remove lib/iswblank.c.
4501         (Makefile.am): Substitute GNULIB_ISWBLANK.
4502         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4503         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4504         (gl_WCTYPE_H_DEFAULTS): New macro.
4505         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4506         * modules/iswblank-tests: New file.
4507         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4508         * tests/test-wctype-h.c (main): Remove iswblank tests.
4509         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4510         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4511         of 'wctype-h'.
4512         * NEWS: Mention the change.
4513         * modules/mbchar (Depends-on): Add iswblank.
4514
4515 2011-02-08  Bruno Haible  <bruno@clisp.org>
4516
4517         di-set tests: Refactor.
4518         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4519         unnecessary includes.
4520         (ASSERT): Remove macro.
4521         (main): Make C90 compliant by avoiding variable declaration after
4522         statement.
4523         * modules/di-set-tests (Files): Add tests/macros.h.
4524
4525 2011-02-08  Bruno Haible  <bruno@clisp.org>
4526
4527         ino-map tests: Refactor.
4528         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4529         unnecessary includes.
4530         (ASSERT): Remove macro.
4531         (main): Make C90 compliant by avoiding variable declaration after
4532         statement.
4533         * modules/ino-map-tests (Files): Add tests/macros.h.
4534
4535 2011-02-08  Jim Meyering  <meyering@redhat.com>
4536
4537         di-set: add "const" to a cast
4538         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4539         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4540
4541 2011-02-06  Bruno Haible  <bruno@clisp.org>
4542
4543         Rename module 'wctype' to 'wctype-h'.
4544         * modules/wctype-h: Renamed from modules/wctype.
4545         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4546         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4547         (Files, Depends-on, Makefile.am): Update.
4548         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4549         (Files, Makefile.am): Update.
4550         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4551         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4552         * doc/posix-headers/wctype.texi: Update.
4553         * doc/posix-functions/iswalnum.texi: Update.
4554         * doc/posix-functions/iswalpha.texi: Update.
4555         * doc/posix-functions/iswblank.texi: Update.
4556         * doc/posix-functions/iswcntrl.texi: Update.
4557         * doc/posix-functions/iswdigit.texi: Update.
4558         * doc/posix-functions/iswgraph.texi: Update.
4559         * doc/posix-functions/iswlower.texi: Update.
4560         * doc/posix-functions/iswprint.texi: Update.
4561         * doc/posix-functions/iswpunct.texi: Update.
4562         * doc/posix-functions/iswspace.texi: Update.
4563         * doc/posix-functions/iswupper.texi: Update.
4564         * doc/posix-functions/iswxdigit.texi: Update.
4565         * doc/posix-functions/towlower.texi: Update.
4566         * doc/posix-functions/towupper.texi: Update.
4567         * NEWS: Mention the change.
4568         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4569         * modules/mbchar (Dependencies): Likewise.
4570         * modules/mbswidth (Dependencies): Likewise.
4571         * modules/quotearg (Dependencies): Likewise.
4572         * modules/regex (Dependencies): Likewise.
4573         * modules/wcscasecmp (Dependencies): Likewise.
4574         * modules/wcsncasecmp (Dependencies): Likewise.
4575         * modules/wcwidth (Dependencies): Likewise.
4576
4577 2011-02-06  Bruno Haible  <bruno@clisp.org>
4578
4579         New module 'wcswidth'.
4580         * modules/wcswidth: New file.
4581         * lib/wchar.in.h (wcswidth): New declaration.
4582         * lib/wcswidth.c: New file.
4583         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4584         * m4/wcswidth.m4: New file.
4585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4587         REPLACE_WCSWIDTH.
4588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4589         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4590         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4591         * doc/posix-functions/wcswidth.texi: Mention the new module.
4592
4593 2011-02-06  Bruno Haible  <bruno@clisp.org>
4594
4595         New module 'wcstok'.
4596         * modules/wcstok: New file.
4597         * lib/wchar.in.h (wcstok): New declaration.
4598         * lib/wcstok.c: New file.
4599         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4600         * m4/wcstok.m4: New file.
4601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4604         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4605         * doc/posix-functions/wcstok.texi: Mention the new module.
4606
4607 2011-02-06  Bruno Haible  <bruno@clisp.org>
4608
4609         New module 'wcsstr'.
4610         * modules/wcsstr: New file.
4611         * lib/wchar.in.h (wcsstr): New declaration.
4612         * lib/wcsstr.c: New file.
4613         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4614         * m4/wcsstr.m4: New file.
4615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4618         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4619         * doc/posix-functions/wcsstr.texi: Mention the new module.
4620
4621 2011-02-06  Bruno Haible  <bruno@clisp.org>
4622
4623         New module 'wcspbrk'.
4624         * modules/wcspbrk: New file.
4625         * lib/wchar.in.h (wcspbrk): New declaration.
4626         * lib/wcspbrk.c: New file.
4627         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4628         * m4/wcspbrk.m4: New file.
4629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4632         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4633         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4634
4635 2011-02-06  Bruno Haible  <bruno@clisp.org>
4636
4637         New module 'wcsspn'.
4638         * modules/wcsspn: New file.
4639         * lib/wchar.in.h (wcsspn): New declaration.
4640         * lib/wcsspn.c: New file.
4641         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4642         * m4/wcsspn.m4: New file.
4643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4646         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4647         * doc/posix-functions/wcsspn.texi: Mention the new module.
4648
4649 2011-02-06  Bruno Haible  <bruno@clisp.org>
4650
4651         New module 'wcscspn'.
4652         * modules/wcscspn: New file.
4653         * lib/wchar.in.h (wcscspn): New declaration.
4654         * lib/wcscspn.c: New file.
4655         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4656         * m4/wcscspn.m4: New file.
4657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4660         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4661         * doc/posix-functions/wcscspn.texi: Mention the new module.
4662
4663 2011-02-06  Bruno Haible  <bruno@clisp.org>
4664
4665         New module 'wcsrchr'.
4666         * modules/wcsrchr: New file.
4667         * lib/wchar.in.h (wcsrchr): New declaration.
4668         * lib/wcsrchr.c: New file.
4669         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4670         * m4/wcsrchr.m4: New file.
4671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4674         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4675         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4676
4677 2011-02-06  Bruno Haible  <bruno@clisp.org>
4678
4679         New module 'wcschr'.
4680         * modules/wcschr: New file.
4681         * lib/wchar.in.h (wcschr): New declaration.
4682         * lib/wcschr.c: New file.
4683         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4684         * m4/wcschr.m4: New file.
4685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4688         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4689         * doc/posix-functions/wcschr.texi: Mention the new module.
4690
4691 2011-02-06  Bruno Haible  <bruno@clisp.org>
4692
4693         New module 'wcsdup'.
4694         * modules/wcsdup: New file.
4695         * lib/wchar.in.h (wcsdup): New declaration.
4696         * lib/wcsdup.c: New file.
4697         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4698         * m4/wcsdup.m4: New file.
4699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4702         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4703         * doc/posix-functions/wcsdup.texi: Mention the new module.
4704
4705 2011-02-06  Bruno Haible  <bruno@clisp.org>
4706
4707         New module 'wcsxfrm'.
4708         * modules/wcsxfrm: New file.
4709         * lib/wchar.in.h (wcsxfrm): New declaration.
4710         * lib/wcsxfrm.c: New file.
4711         * lib/wcsxfrm-impl.h: New file.
4712         * m4/wcsxfrm.m4: New file.
4713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4716         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4717         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4718
4719 2011-02-06  Bruno Haible  <bruno@clisp.org>
4720
4721         New module 'wcscoll'.
4722         * modules/wcscoll: New file.
4723         * lib/wchar.in.h (wcscoll): New declaration.
4724         * lib/wcscoll.c: New file.
4725         * lib/wcscoll-impl.h: New file.
4726         * m4/wcscoll.m4: New file.
4727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4730         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4731         * doc/posix-functions/wcscoll.texi: Mention the new module.
4732
4733 2011-02-06  Bruno Haible  <bruno@clisp.org>
4734
4735         New module 'wcsncasecmp'.
4736         * modules/wcsncasecmp: New file.
4737         * lib/wchar.in.h (wcsncasecmp): New declaration.
4738         * lib/wcsncasecmp.c: New file.
4739         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4740         * m4/wcsncasecmp.m4: New file.
4741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4744         HAVE_WCSNCASECMP.
4745         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4746         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4747
4748 2011-02-06  Bruno Haible  <bruno@clisp.org>
4749
4750         New module 'wcscasecmp'.
4751         * modules/wcscasecmp: New file.
4752         * lib/wchar.in.h (wcscasecmp): New declaration.
4753         * lib/wcscasecmp.c: New file.
4754         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4755         * m4/wcscasecmp.m4: New file.
4756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4759         HAVE_WCSCASECMP.
4760         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4761         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4762
4763 2011-02-05  Bruno Haible  <bruno@clisp.org>
4764
4765         New module 'wcsncmp'.
4766         * modules/wcsncmp: New file.
4767         * lib/wchar.in.h (wcsncmp): New declaration.
4768         * lib/wcsncmp.c: New file.
4769         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4770         * m4/wcsncmp.m4: New file.
4771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4774         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4775         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4776
4777 2011-02-05  Bruno Haible  <bruno@clisp.org>
4778
4779         New module 'wcscmp'.
4780         * modules/wcscmp: New file.
4781         * lib/wchar.in.h (wcscmp): New declaration.
4782         * lib/wcscmp.c: New file.
4783         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4784         * m4/wcscmp.m4: New file.
4785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4788         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4789         * doc/posix-functions/wcscmp.texi: Mention the new module.
4790
4791 2011-02-05  Bruno Haible  <bruno@clisp.org>
4792
4793         New module 'wcsncat'.
4794         * modules/wcsncat: New file.
4795         * lib/wchar.in.h (wcsncat): New declaration.
4796         * lib/wcsncat.c: New file.
4797         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4798         * m4/wcsncat.m4: New file.
4799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4802         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4803         * doc/posix-functions/wcsncat.texi: Mention the new module.
4804
4805 2011-02-05  Bruno Haible  <bruno@clisp.org>
4806
4807         New module 'wcscat'.
4808         * modules/wcscat: New file.
4809         * lib/wchar.in.h (wcscat): New declaration.
4810         * lib/wcscat.c: New file.
4811         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4812         * m4/wcscat.m4: New file.
4813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4816         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4817         * doc/posix-functions/wcscat.texi: Mention the new module.
4818
4819 2011-02-05  Bruno Haible  <bruno@clisp.org>
4820
4821         New module 'wcpncpy'.
4822         * modules/wcpncpy: New file.
4823         * lib/wchar.in.h (wcpncpy): New declaration.
4824         * lib/wcpncpy.c: New file.
4825         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4826         * m4/wcpncpy.m4: New file.
4827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4829         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4830         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4831         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4832
4833 2011-02-05  Bruno Haible  <bruno@clisp.org>
4834
4835         New module 'wcsncpy'.
4836         * modules/wcsncpy: New file.
4837         * lib/wchar.in.h (wcsncpy): New declaration.
4838         * lib/wcsncpy.c: New file.
4839         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4840         * m4/wcsncpy.m4: New file.
4841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4844         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4845         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4846
4847 2011-02-05  Bruno Haible  <bruno@clisp.org>
4848
4849         New module 'wcpcpy'.
4850         * modules/wcpcpy: New file.
4851         * lib/wchar.in.h (wcpcpy): New declaration.
4852         * lib/wcpcpy.c: New file.
4853         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4854         * m4/wcpcpy.m4: New file.
4855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4857         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4858         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4859         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4860
4861 2011-02-05  Bruno Haible  <bruno@clisp.org>
4862
4863         New module 'wcscpy'.
4864         * modules/wcscpy: New file.
4865         * lib/wchar.in.h (wcscpy): New declaration.
4866         * lib/wcscpy.c: New file.
4867         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4868         * m4/wcscpy.m4: New file.
4869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4872         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4873         * doc/posix-functions/wcscpy.texi: Mention the new module.
4874
4875 2011-02-05  Bruno Haible  <bruno@clisp.org>
4876
4877         New module 'wcsnlen'.
4878         * modules/wcsnlen: New file.
4879         * lib/wchar.in.h (wcsnlen): New declaration.
4880         * lib/wcsnlen.c: New file.
4881         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4882         * m4/wcsnlen.m4: New file.
4883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4886         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4887         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4888
4889 2011-02-05  Bruno Haible  <bruno@clisp.org>
4890
4891         New module 'wcslen'.
4892         * modules/wcslen: New file.
4893         * lib/wchar.in.h (wcslen): New declaration.
4894         * lib/wcslen.c: New file.
4895         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4896         * m4/wcslen.m4: New file.
4897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4900         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4901         * doc/posix-functions/wcslen.texi: Mention the new module.
4902
4903 2011-02-05  Bruno Haible  <bruno@clisp.org>
4904
4905         New module 'wmemset'.
4906         * modules/wmemset: New file.
4907         * lib/wchar.in.h (wmemset): New declaration.
4908         * lib/wmemset.c: New file.
4909         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4910         * m4/wmemset.m4: New file.
4911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4913         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4914         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4915         * doc/posix-functions/wmemset.texi: Mention the new module.
4916
4917 2011-02-05  Bruno Haible  <bruno@clisp.org>
4918
4919         New module 'wmemmove'.
4920         * modules/wmemmove: New file.
4921         * lib/wchar.in.h (wmemmove): New declaration.
4922         * lib/wmemmove.c: New file.
4923         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4924         * m4/wmemmove.m4: New file.
4925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4927         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4928         HAVE_WMEMMOVE.
4929         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4930         * doc/posix-functions/wmemmove.texi: Mention the new module.
4931
4932 2011-02-05  Bruno Haible  <bruno@clisp.org>
4933
4934         New module 'wmemcpy'.
4935         * modules/wmemcpy: New file.
4936         * lib/wchar.in.h (wmemcpy): New declaration.
4937         * lib/wmemcpy.c: New file.
4938         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4939         * m4/wmemcpy.m4: New file.
4940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4942         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4943         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4944         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4945
4946 2011-02-05  Bruno Haible  <bruno@clisp.org>
4947
4948         New module 'wmemcmp'.
4949         * modules/wmemcmp: New file.
4950         * lib/wchar.in.h (wmemcmp): New declaration.
4951         * lib/wmemcmp.c: New file.
4952         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4953         * m4/wmemcmp.m4: New file.
4954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4956         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4957         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4958         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4959
4960 2011-02-07  Jim Meyering  <meyering@redhat.com>
4961
4962         di-set, ino-map: new modules, from coreutils
4963         * lib/di-set.c: New file.
4964         * lib/di-set.h: Likewise.
4965         * lib/ino-map.c: Likewise.
4966         * lib/ino-map.h: Likewise.
4967         * modules/di-set: Likewise.
4968         * modules/di-set-tests: Likewise.
4969         * modules/ino-map: Likewise.
4970         * modules/ino-map-tests: Likewise.
4971         * tests/test-di-set.c: Likewise.
4972         * tests/test-ino-map.c: Likewise.
4973
4974 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4975
4976         getloadavg: merge minor changes from Emacs
4977
4978         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4979         (getloadavg): Use memset, not bzero.
4980
4981         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4982         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4983         clash (bug#86).
4984
4985 2010-11-14  Bruno Haible  <bruno@clisp.org>
4986
4987         Allow multiple gnulib generated replacements to coexist.
4988         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4989         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4990         * lib/langinfo.in.h (nl_item): Likewise.
4991         * lib/math.in.h (_NaN, NAN): Likewise.
4992         * lib/netdb.in.h (struct addrinfo): Likewise.
4993         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4994         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4995         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4996         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4997         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4998         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4999         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5000         pthread_mutexattr_init, pthread_mutexattr_settype,
5001         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5002         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5003         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5004         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5005         * lib/sched.in.h (struct sched_param): Likewise.
5006         * lib/se-selinux.in.h (security_class_t, security_context_t,
5007         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5008         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5009         lsetfilecon, fsetfilecon, security_check_context,
5010         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5011         Likewise.
5012         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5013         Likewise.
5014         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5015         _gl_function_taking_int_returning_void_t, union sigval,
5016         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5017         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5018         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5019         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5020         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5021         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5022         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5023         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5024         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5025         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5026         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5027         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5028         socklen_t, rpl_fd_isset): Likewise.
5029         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5030         * lib/sys_time.in.h (struct timeval): Likewise.
5031         * lib/sys_times.in.h (struct tms): Likewise.
5032         * lib/sys_utsname.in.h (struct utsname):
5033         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5034         * lib/unistd.in.h (getpagesize): Likewise.
5035         * lib/wchar.in.h (mbstate_t): Likewise.
5036         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5037         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5038         towlower, towupper): Likewise.
5039         Reported by Sam Steingold <sds@gnu.org>.
5040
5041 2011-02-05  Eric Blake  <eblake@redhat.com>
5042
5043         unsetenv: work around Haiku issues
5044         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5045         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5046
5047 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5048
5049         libposix: avoid calling error() within libposix
5050         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5051         is defined.
5052
5053 2011-02-05  Eric Blake  <eblake@redhat.com>
5054
5055         strerror_r-posix: port to cygwin
5056         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5057         implementation.
5058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5059         * tests/test-strerror_r.c (main): Fix test.
5060         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5061         issue.
5062
5063 2011-02-05  Bruno Haible  <bruno@clisp.org>
5064
5065         New module 'wmemchr'.
5066         * modules/wmemchr: New file.
5067         * lib/wchar.in.h (wmemchr): New declaration.
5068         * lib/wmemchr.c: New file.
5069         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5070         * m4/wmemchr.m4: New file.
5071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5073         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5074         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5075         * doc/posix-functions/wmemchr.texi: Mention the new module.
5076
5077 2011-02-04  Eric Blake  <eblake@redhat.com>
5078
5079         fdopendir: detect FreeBSD bug
5080         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5081         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5082
5083 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5084
5085         stdbool: do not define HAVE_STDBOOL_H
5086         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5087         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5088         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5089         imported from the latest Autoconf git.  It was motivated by Emacs,
5090         which uses gnulib but does not need HAVE_STDBOOL_H.
5091
5092 2011-02-04  Bruno Haible  <bruno@clisp.org>
5093
5094         wcsnrtombs: Prepare for new module wwcsnrtombs.
5095         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5096         * lib/wcsnrtombs.c: Include it.
5097         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5098
5099         wcsrtombs: Prepare for new module wwcsrtombs.
5100         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5101         * lib/wcsrtombs.c: Include it.
5102         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5103
5104         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5105         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5106         * lib/mbsnrtowcs.c: Include it.
5107         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5108
5109         mbsrtowcs: Prepare for new module mbsrtowwcs.
5110         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5111         * lib/mbsrtowcs.c: Include it.
5112         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5113
5114 2011-02-04  Bruno Haible  <bruno@clisp.org>
5115
5116         vasnprintf: Reduce use of malloc for small format strings.
5117         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5118         (arguments): Add room for the first 7 arguments.
5119         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5120         (char_directives, u8_directives, u16_directives, u32_directives): Add
5121         room for the first 7 directives.
5122         * lib/printf-parse.c: Include <string.h>.
5123         (PRINTF_PARSE): Change memory handling code so that it uses the first
5124         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5125         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5126         Reported by Pádraig Brady <P@draigbrady.com>.
5127
5128 2011-01-31  Eric Blake  <eblake@redhat.com>
5129
5130         dup2: work around Haiku bug
5131         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5132         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5133         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5134         * tests/test-dup2.c (main): Enhance test.
5135
5136 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5137
5138         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5139         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5140         declared by eglibc 2.11.2.
5141         * lib/stdio.in.h: Likewise.
5142
5143 2011-01-31  Eric Blake  <eblake@redhat.com>
5144
5145         ignore-value: add missing test dependency
5146         * tests/test-ignore-value.c: Revert previous change; stdio.h
5147         provides off_t.
5148         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5149
5150 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5151
5152         mktime: clarify long_int width checking
5153         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5154         the top level, to make it clearer that the assumption about
5155         long_int width is being checked.  See
5156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5157
5158 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5159
5160         ignore-value: Fix self-test.
5161         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5162
5163 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5164
5165         TYPE_MAXIMUM: avoid theoretically undefined behavior
5166         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5167         negative number, which the C Standard says has undefined behavior.
5168         In practice this is not a problem, but might as well do it by the book.
5169         Reported by Rich Felker and Eric Blake; see
5170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5171         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5172         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5174         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5175         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5176         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5177
5178         mktime: #undef mktime before #defining it
5179         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5180
5181         mktime: systematically normalize tm_isdst comparisons
5182         * lib/mktime.c (isdst_differ): New function.
5183         (__mktime_internal): Use it systematically for all isdst comparisons.
5184         This completes the fix for libc BZ #6723, and removes the need for
5185         normalizing tm_isdst.  See
5186         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5187         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5188
5189         mktime: fix some integer overflow issues and sidestep the rest
5190
5191         This was prompted by a bug report by Benjamin Lindner for MinGW
5192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5193         His bug is due to signed integer overflow (0 - INT_MIN), and I
5194         I scanned through mktime.c looking for other integer overflow
5195         problems, fixing all the bugs I found.
5196
5197         Although the C Standard says the resulting code is still not safe
5198         in the presence of integer overflow, in practice it should be good
5199         enough for all real-world two's-complement implementations, except
5200         for debugging environments that deliberately trap on integer
5201         overflow (e.g., gcc -ftrapv).
5202
5203         * lib/mktime.c (WRAPV): New macro.
5204         (SHR): Also check that long_int and time_t shift right in the
5205         usual way, before using the fast-but-unportable method.
5206         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5207         used.  The code already assumed two's complement, so there's
5208         no need to test for alternatives.  All uses removed.
5209         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5210         the C standard.  Problem reported by Rich Felker in
5211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5212         (twos_complement_arithmetic): Also check long_int and time_t.
5213         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5214         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5215         (__mktime_internal): Avoid integer overflow with unary subtraction
5216         in two instances where -1 - X is an adequate replacement for -X,
5217         since the calculations are approximate.
5218
5219 2011-01-29  Eric Blake  <eblake@redhat.com>
5220
5221         mktime: avoid infinite loop
5222         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5223         type; behavior is still undefined but portable to all known targets.
5224         Reported by Rich Felker.
5225
5226 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5227
5228         rename, unlink, same-inode: Relicense.
5229         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5230         * modules/unlink (License): Likewise.
5231         * modules/same-inode (License): Likewise.
5232
5233 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5234
5235         mktime: avoid problems on NetBSD 5 / i386
5236         * lib/mktime.c (long_int): New type.  This works around a problem
5237         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5238         but time_t is 64 bits, and where I expect the existing code is
5239         wrong in some cases.
5240         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5241         (ydhms_diff): Bring back the compile-time check for wide-enough
5242         year and yday.
5243
5244         mktime: fix misspelling in comment
5245         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5246         This merges all recent glibc changes of importance.
5247
5248 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5249
5250         move-if-change: cope with concurrent mv of identical file.
5251         * build-aux/move-if-change (CMPPROG): Accept environment
5252         variable as an override for `cmp'.
5253         (usage): Document CMPPROG.
5254         Adjust comparison to drop stdout.  Cope with failure of mv if
5255         the target file exists and is identical to the source, for
5256         parallel builds.
5257         Report from H.J. Lu against binutils in PR binutils/12283.
5258
5259 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5260
5261         * users.txt: Mention sharutils.
5262
5263 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5264
5265         * users.txt: Mention OATH Toolkit.
5266
5267 2011-01-27  Bruno Haible  <bruno@clisp.org>
5268
5269         Prepare for supporting FreeBSD 10.
5270         * build-aux/config.libpath: Remove handling of freebsd1*.
5271
5272 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5273
5274         Prepare for supporting FreeBSD 10.
5275         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5276         match FreeBSD 10.0.
5277
5278 2011-01-27  Bruno Haible  <bruno@clisp.org>
5279
5280         vma-iter, get-rusage-as: Add OpenBSD support.
5281         * modules/vma-iter (configure.ac): Test for mquery.
5282         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5283         * lib/vma-iter.c: Include <sys/mman.h>.
5284         (vma_iterate): Add an implementation based on mquery().
5285         * lib/resource-ext.h (get_rusage_as): Update comments.
5286         * lib/get-rusage-as.c: Likewise.
5287         * lib/get-rusage-data.c: Likewise.
5288
5289 2011-01-26  Karl Berry  <karl@gnu.org>
5290
5291         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5292         variables to make it easier to override the makeinfo program used.
5293
5294 2011-01-26  Eric Blake  <eblake@redhat.com>
5295
5296         fcntl: work around Haiku F_DUPFD bugs
5297         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5298         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5299         cloexec bit on duplication.
5300         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5301
5302 2011-01-26  Bruno Haible  <bruno@clisp.org>
5303
5304         Enable memory leak tests on AIX.
5305         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5306         * tests/test-fprintf-posix3.c (main): Likewise.
5307
5308 2011-01-26  Bruno Haible  <bruno@clisp.org>
5309
5310         Tests for module 'get-rusage-data'.
5311         * modules/get-rusage-data-tests: New file.
5312         * tests/test-get-rusage-data.c: New file.
5313
5314         New module 'get-rusage-data'.
5315         * lib/resource-ext.h (get_rusage_data): New declaration.
5316         * lib/get-rusage-data.c: New file.
5317         * modules/get-rusage-data: New file.
5318
5319 2011-01-25  Bruno Haible  <bruno@clisp.org>
5320
5321         get-rusage-as: Allow for easier testing.
5322         * lib/resource-ext.h (get_rusage_as): Add comment.
5323         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5324         (main): New function for interactive testing.
5325
5326 2011-01-25  Bruno Haible  <bruno@clisp.org>
5327
5328         vma-iter: Treat Haiku like BeOS.
5329         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5330         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5331
5332 2011-01-25  Eric Blake  <eblake@redhat.com>
5333
5334         c-stack: fix regression on cygwin when libsigsegv is present
5335         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5336
5337 2011-01-24  Bruno Haible  <bruno@clisp.org>
5338
5339         vma-iter: Avoid empty intervals.
5340         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5341         on an empty interval.
5342
5343 2011-01-24  Jim Meyering  <meyering@redhat.com>
5344
5345         u64: remove unnecessary #include
5346         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5347
5348 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5349
5350         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5351         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5352
5353 2011-01-23  Bruno Haible  <bruno@clisp.org>
5354
5355         New module 'vma-iter'.
5356         * lib/vma-iter.h: New file.
5357         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5358         * modules/vma-iter: New file.
5359         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5360         for get_rusage_as_via_iterator.
5361         (vma_iterate_callback): New function.
5362         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5363         * modules/get-rusage-as (Depends-on): Add vma-iter.
5364
5365 2011-01-23  Bruno Haible  <bruno@clisp.org>
5366
5367         uninorm: Tweak includes.
5368         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5369         Reported by Jim Meyering.
5370
5371 2011-01-23  Bruno Haible  <bruno@clisp.org>
5372
5373         get-rusage-as: Improve on NetBSD.
5374         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5375         /proc, like on FreeBSD.
5376
5377 2011-01-23  Jim Meyering  <meyering@redhat.com>
5378
5379         xreadlink.h: remove unnecessary #include
5380         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5381
5382         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5383         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5384
5385 2011-01-23  Bruno Haible  <bruno@clisp.org>
5386
5387         get-rusage-as: Fix bug.
5388         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5389         original limit when aborting the first loop.
5390
5391 2011-01-23  Bruno Haible  <bruno@clisp.org>
5392
5393         wctype: Ensure valid C syntax.
5394         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5395         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5396
5397 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5398
5399         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5401         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5402         as they are needed only for configure's test case.
5403         This removes two unnecessary symbols from config.h.
5404
5405         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5406         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5407         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5408         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5409         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5410         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5411         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5412         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5413         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5414         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5415         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5419         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5420         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5421         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5422         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5423
5424 2011-01-21  Eric Blake  <eblake@redhat.com>
5425
5426         maintainer-makefile: work with older git for submodule check
5427         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5428         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5429         Reported by Matthias Bolte.
5430
5431         bootstrap: minor portability fixes
5432         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5433         (usage): Omit leading capital and trailing . on help phrases, per
5434         GNU Coding Standards.
5435         (check_versions, top level): Prefix messages with script name.
5436
5437 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5438
5439         bootstrap: support --no-git option
5440         * build-aux/bootstrap: Add --no-git option, to be used when
5441         --gnulib-srcdir points to the exact desired checkout.
5442
5443 2011-01-21  Eric Blake  <eblake@redhat.com>
5444
5445         strerror_r-posix: work with glibc 2.13
5446         * lib/strerror_r.c (strerror_r): Fix return type.
5447
5448 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5449             Bruno Haible  <bruno@clisp.org>
5450
5451         uN_strstr: New unit tests.
5452         * modules/unistr/u8-strstr-tests: New file.
5453         * modules/unistr/u16-strstr-tests: New file.
5454         * modules/unistr/u32-strstr-tests: New file.
5455         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5456         * tests/unistr/test-u8-strstr.c: New file.
5457         * tests/unistr/test-u16-strstr.c: New file.
5458         * tests/unistr/test-u32-strstr.c: New file.
5459
5460 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5461             Bruno Haible  <bruno@clisp.org>
5462
5463         Make uN_strstr functions O(n) worst-case.
5464         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5465         16-bit and 32-bit unit cases, use the unibyte algorithm from
5466         lib/mbsstr.c.
5467         * lib/unistr/u8-strstr.c: Include <string.h>.
5468         (UNIT_IS_UINT8_T): New macro.
5469         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5470         (U_STRLEN, U_STRNLEN): New macros.
5471         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5472         (U_STRLEN, U_STRNLEN): New macros.
5473         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5474         (configure.ac): Update required libunistring version.
5475         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5476         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5477         malloca.
5478         (configure.ac): Update required libunistring version.
5479         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5480         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5481         malloca.
5482         (configure.ac): Update required libunistring version.
5483
5484 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5485             Bruno Haible  <bruno@clisp.org>
5486
5487         Prepare for faster uN_strstr functions.
5488         * lib/str-kmp.h: Support definable UNITs.
5489         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5490         needle_len argument.
5491         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5492         * lib/mbscasestr.c (mbscasestr): Likewise.
5493
5494 2011-01-21  Pádraig Brady <P@draigBrady.com>
5495
5496         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5497         * tests/test-malloca.c (main): Unset the environment variable
5498         to greatly speed up the test.
5499         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5500         * modules/malloca-tests: Depend on unsetenv.
5501
5502 2011-01-21  Pádraig Brady <P@draigBrady.com>
5503
5504         ignore-value: remove stdint dependency
5505         * lib/ignore-value.h: Remove <stdint.h>
5506         * modules/ignore-value: Remove stdint dependency.
5507
5508 2011-01-21  Jim Meyering  <meyering@redhat.com>
5509
5510         maint.mk: adjust variable name to be consistent with other gl_ vars
5511         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5512         to be lower case.
5513
5514 2011-01-20  Jim Meyering  <meyering@redhat.com>
5515
5516         maint.mk: make "check" depend on public-submodule-commit by default
5517         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5518
5519 2011-01-20  Bruno Haible  <bruno@clisp.org>
5520
5521         mbfile, mbiter: Complete change from 2008-12-21.
5522         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5523         * m4/mbiter.m4 (gl_MBITER): Likewise.
5524
5525 2011-01-20  Jim Meyering  <meyering@redhat.com>
5526
5527         init.sh: insert space between each function name and "()"
5528         * tests/init.sh: Make it a little easier to see that a function's
5529         name is "warn_", and not "warn" when looking at the first part of
5530         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5531
5532 2011-01-20  Jim Meyering  <meyering@redhat.com>
5533
5534         mountlist: clean up code formatting
5535         * lib/mountlist.c (read_file_system_list): Split a long line,
5536         correct bracing style, use NULL in place of "(struct statfs *)0",
5537         don't parenthesize return value, add spaces around "=" and after
5538         ";-in-for-stmt".
5539
5540 2011-01-14  Markus Duft <mduft@gentoo.org>
5541
5542         mountlist: add support for Interix
5543         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5544         Apply statvfs to all entries of /dev/fs.
5545         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5546         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5547
5548 2011-01-20  Jim Meyering  <meyering@redhat.com>
5549
5550         maint.mk: improve the public-submodule-commit rule
5551         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5552         to suppress printing of its commands... unless V=1.
5553         Add git submodule's --quiet option to suppress printing of e.g.,
5554         "Entering gnulib" output.
5555         "cd" into $(srcdir) before running git submodule.
5556
5557 2011-01-20  Bruno Haible  <bruno@clisp.org>
5558
5559         include_next: Fix bug introduced on 2011-01-18.
5560         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5561         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5562         ac_cv_header_... variable if the second argument is not 'check'.
5563         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5564         gl_NEXT_HEADERS_INTERNAL.
5565
5566 2011-01-20  Bruno Haible  <bruno@clisp.org>
5567
5568         Allow the user to avoid the GNULIB_TEST_* macros.
5569         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5570         Suggested by Paul Eggert.
5571
5572 2011-01-14  Jim Meyering  <meyering@redhat.com>
5573
5574         bootstrap: avoid failure when there is no .gitmodules file
5575         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5576         has been assigned to, even when its value is the empty string.
5577         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5578         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5579         Reported by John W. Eaton <jwe@gnu.org>.
5580
5581 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5582
5583         assume <ctype.h>, ..., <time.h> exist
5584         For years gnulib has been assuming the existence of the headers
5585         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5586         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5587         them, since they don't appear to be needed.
5588         * README (Portability guidelines): Document this.
5589         * lib/flock.c: Assume <fcntl.h> exists.
5590         * lib/regex_internal.h: Assume <locale.h> exists.
5591         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5592         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5593         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5594         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5595         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5596         * m4/regex.m4 (gl_REGEX): Likewise.
5597         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5598         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5599         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5600         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5601         * tests/test-argp.c: Likewise.
5602         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5603
5604         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5605         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5606         AA_APPLE_UNIVERSAL_BUILD.  See
5607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5608         * NEWS: Document this.
5609
5610 2011-01-19  Eric Blake  <eblake@redhat.com>
5611
5612         c-stack: assume stack overflow if SA_SIGINFO unsupported
5613         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5614         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5615         sigaction will work.
5616         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5617         behavior match Linux.
5618         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5619
5620         stdbool-tests: accomodate Haiku
5621         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5622
5623         binary-io: fix O_TEXT on Haiku
5624         * modules/binary-io (Depends-on): Add fcntl-h.
5625         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5626         than blindly undefining O_TEXT.
5627         Reported by Scott McCreary.
5628
5629 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5630
5631         include_next: do not check for standard headers like stddef.h
5632
5633         I found this problem when modifying Emacs to use gnulib.
5634         I noticed that it added HAVE_STDDEF_H to config.h, even though
5635         gnulib always assumes <stddef.h> exists as per README and this
5636         symbol is unnecessary.
5637         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5638         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5639         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5640         faster for headers like stddef.h that are known to exist.
5641         (gl_CHECK_NEXT_HEADERS): Use it.
5642         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5643         rather than gl_CHECK_NEXT_HEADERS.
5644         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5645         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5646
5647 2011-01-18  Eric Blake  <eblake@redhat.com>
5648
5649         ansi-c++-opt: skip C++ dependency style if C++ is unused
5650         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5651         tests when we know C++ compilation is not desired.
5652         Reported by Scott McCreary.
5653
5654 2011-01-18  Bruno Haible  <bruno@clisp.org>
5655
5656         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5657         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5658         (main): Perform test also when getrlimit and setrlimit don't exist or
5659         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5660         limiting the address space size using setrlimit, compare the address
5661         space size before and after the the test.
5662         * tests/test-dprintf-posix2.c: Likewise.
5663         * tests/test-fprintf-posix3.sh: Update skip messages.
5664         * tests/test-dprintf-posix2.sh: Likewise.
5665         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5666         * modules/dprintf-posix-tests (Depends-on): Likewise.
5667         Reported by Bruce Korb <bkorb@gnu.org> and
5668         Gary V. Vaughan <gary@gnu.org>.
5669
5670 2011-01-18  Bruno Haible  <bruno@clisp.org>
5671
5672         get-rusage-as: Improvement for Cygwin.
5673         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5674         areas that are merely reserved.
5675
5676 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5677
5678         strftime: remove dependencies on multibyte modules
5679
5680         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5681         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5682         only if __osf__ is defined, and I suspect OSF doesn't need these
5683         other modules.  If my guess is wrong, we'll need to come up with a
5684         variant of strftime that doesn't need the multibyte modules.
5685
5686         I discovered this problem when attempting modify Emacs to use the
5687         strftime module.  With the previous gnulib, this caused Emacs to
5688         need 31 new files, ranging from lib/config.charset to
5689         m4/wint_t.m4.  This was overkill and I expect would be offputting
5690         to the Emacs maintainers.  After this change, only 6 new files are
5691         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5692         stdbool.m4, and tm_gmtoff.m4.
5693
5694         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5695         Suggested by Bruno Haible in
5696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5697         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5698         and do not check for wchar.h.
5699         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5700         (Depends-on): Remove mbrlen, mbsinit, wchar.
5701
5702 2011-01-18  Bruno Haible  <bruno@clisp.org>
5703
5704         Tests for module 'get-rusage-as'.
5705         * modules/get-rusage-as-tests: New file.
5706         * tests/test-get-rusage-as.c: New file.
5707
5708         New module 'get-rusage-as'.
5709         * modules/get-rusage-as: New file.
5710         * lib/resource-ext.h: New file.
5711         * lib/get-rusage-as.c: New file.
5712
5713 2011-01-17  Eric Blake  <eblake@redhat.com>
5714
5715         sigaction: relax license from LGPLv3+ to LGPLv2+
5716         * modules/sigaction (License): Relax to LGPLv2+.
5717
5718 2011-01-14  Bruno Haible  <bruno@clisp.org>
5719
5720         filemode: Make function declarations usable in C++ mode.
5721         * lib/filemode.h: Enclose function declarations in extern "C" block.
5722         Reported by John W. Eaton <jwe@gnu.org>.
5723
5724 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5725
5726         save-cwd: no longer include "xgetcwd.h"
5727         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5728         This avoids a compilation failure in projects that use save-cwd
5729         without also using the xgetcwd module.
5730
5731 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5732
5733         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5734         This is so that a program like Emacs, which needs only dtoastr,
5735         does not have to bother with distributing and compiling ftoastr
5736         and ldtoastr.
5737         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5738         * modules/dtoastr, modules/ldtoastr: New files.
5739         * modules/ftoastr: Now works just for 'float'.
5740         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5741         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5742         dtoastr.c, ldtoastr.c.
5743
5744 2011-01-11  Jim Meyering  <meyering@redhat.com>
5745
5746         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5747         There is no need to work around the lack of the fchdir function,
5748         since gnulib can now provide a replacement when required.
5749         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5750         * modules/save-cwd (Depends-on): Add fchdir.
5751
5752 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5753
5754         openat, save-cwd: avoid xmalloc
5755
5756         This removes a direct (but undocumented) dependency of openat on
5757         xalloc, along with an indirect dependency via save-cwd.  It also
5758         removes a dependency of save-cwd on xgetcwd, and thereby
5759         indirectly on xalloc.  This change causes the openat substitute
5760         to fall back on save_cwd when memory is tight, and for save_cwd to
5761         fail instead of dying when memory is tight, but that's good enough.
5762         Problem and initial idea for fix reported by Bastien Roucaries in
5763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5764
5765         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5766         xalloc.h (for xmalloc).
5767         (openat_proc_name): Use malloc, not xmalloc.
5768         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5769         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5770
5771         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5772         This avoids heap allocation for file names whose lengths are in
5773         the range 512..1023, with the upper bound increasing to at most
5774         4031 depending on the platform's PATH_MAX.  (We do not want
5775         pathmax.h here as it might supply a non-constant PATH_MAX.)
5776         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5777         Perhaps they should be moved to malloca.h?
5778         (OPENAT_BUFFER_SIZE): Use them.
5779
5780 2011-01-10  Bruno Haible  <bruno@clisp.org>
5781
5782         doc: Update users.txt.
5783         * users.txt: Add recutils.
5784
5785 2011-01-09  Karl Berry  <karl@gnu.org>
5786
5787         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5788
5789         * doc/configmake.texi: New file.
5790         * doc/gnulib.texi: Include it.
5791         * modules/configmake: Move documentation from here.
5792
5793 2011-01-09  Bruno Haible  <bruno@clisp.org>
5794
5795         Update to Unicode 6.0.0.
5796         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5797         (get_lbp): Update for Unicode 6.0.0.
5798         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5799         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5800         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5801         U+11001, U+11038..U+11046. Remove U+06DE.
5802         (uc_width): Fix bounds of planes.
5803         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5804         lib/uniwidth/width.c.
5805         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5806         trailing whitespace removed.
5807         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5808         without comments, but with the original copyright notice.
5809         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5810         * lib/unicase/ignorable.h: Likewise.
5811         * lib/unicase/tocasefold.h: Likewise.
5812         * lib/unicase/tolower.h: Likewise.
5813         * lib/unicase/totitle.h: Likewise.
5814         * lib/unicase/toupper.h: Likewise.
5815         * lib/unictype/bidi_of.h: Likewise.
5816         * lib/unictype/blocks.h: Likewise.
5817         * lib/unictype/categ_C.h: Likewise.
5818         * lib/unictype/categ_Cn.h: Likewise.
5819         * lib/unictype/categ_L.h: Likewise.
5820         * lib/unictype/categ_Ll.h: Likewise.
5821         * lib/unictype/categ_Lm.h: Likewise.
5822         * lib/unictype/categ_Lo.h: Likewise.
5823         * lib/unictype/categ_Lu.h: Likewise.
5824         * lib/unictype/categ_M.h: Likewise.
5825         * lib/unictype/categ_Mc.h: Likewise.
5826         * lib/unictype/categ_Me.h: Likewise.
5827         * lib/unictype/categ_Mn.h: Likewise.
5828         * lib/unictype/categ_N.h: Likewise.
5829         * lib/unictype/categ_Nd.h: Likewise.
5830         * lib/unictype/categ_No.h: Likewise.
5831         * lib/unictype/categ_P.h: Likewise.
5832         * lib/unictype/categ_Po.h: Likewise.
5833         * lib/unictype/categ_S.h: Likewise.
5834         * lib/unictype/categ_Sc.h: Likewise.
5835         * lib/unictype/categ_Sk.h: Likewise.
5836         * lib/unictype/categ_Sm.h: Likewise.
5837         * lib/unictype/categ_So.h: Likewise.
5838         * lib/unictype/categ_of.h: Likewise.
5839         * lib/unictype/combining.h: Likewise.
5840         * lib/unictype/ctype_alnum.h: Likewise.
5841         * lib/unictype/ctype_alpha.h: Likewise.
5842         * lib/unictype/ctype_graph.h: Likewise.
5843         * lib/unictype/ctype_lower.h: Likewise.
5844         * lib/unictype/ctype_print.h: Likewise.
5845         * lib/unictype/ctype_punct.h: Likewise.
5846         * lib/unictype/ctype_upper.h: Likewise.
5847         * lib/unictype/decdigit.h: Likewise.
5848         * lib/unictype/digit.h: Likewise.
5849         * lib/unictype/numeric.h: Likewise.
5850         * lib/unictype/pr_alphabetic.h: Likewise.
5851         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5852         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5853         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5854         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5855         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5856         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5857         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5858         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5859         * lib/unictype/pr_case_ignorable.h: Likewise.
5860         * lib/unictype/pr_cased.h: Likewise.
5861         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5862         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5863         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5864         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5865         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5866         * lib/unictype/pr_combining.h: Likewise.
5867         * lib/unictype/pr_composite.h: Likewise.
5868         * lib/unictype/pr_currency_symbol.h: Likewise.
5869         * lib/unictype/pr_decimal_digit.h: Likewise.
5870         * lib/unictype/pr_deprecated.h: Likewise.
5871         * lib/unictype/pr_format_control.h: Likewise.
5872         * lib/unictype/pr_grapheme_base.h: Likewise.
5873         * lib/unictype/pr_grapheme_extend.h: Likewise.
5874         * lib/unictype/pr_grapheme_link.h: Likewise.
5875         * lib/unictype/pr_id_continue.h: Likewise.
5876         * lib/unictype/pr_id_start.h: Likewise.
5877         * lib/unictype/pr_ideographic.h: Likewise.
5878         * lib/unictype/pr_lowercase.h: Likewise.
5879         * lib/unictype/pr_math.h: Likewise.
5880         * lib/unictype/pr_numeric.h: Likewise.
5881         * lib/unictype/pr_other_alphabetic.h: Likewise.
5882         * lib/unictype/pr_other_id_continue.h: Likewise.
5883         * lib/unictype/pr_other_math.h: Likewise.
5884         * lib/unictype/pr_punctuation.h: Likewise.
5885         * lib/unictype/pr_sentence_terminal.h: Likewise.
5886         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5887         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5888         * lib/unictype/pr_unified_ideograph.h: Likewise.
5889         * lib/unictype/pr_uppercase.h: Likewise.
5890         * lib/unictype/pr_xid_continue.h: Likewise.
5891         * lib/unictype/pr_xid_start.h: Likewise.
5892         * lib/unictype/scripts.h: Likewise.
5893         * lib/unictype/scripts_byname.gperf: Likewise.
5894         * lib/unictype/sy_java_ident.h: Likewise.
5895         * lib/unigbrk/gbrkprop.h: Likewise.
5896         * lib/unilbrk/lbrkprop1.h: Likewise.
5897         * lib/unilbrk/lbrkprop2.h: Likewise.
5898         * lib/uninorm/decomposition-table2.h: Likewise.
5899         * lib/uniwbrk/wbrkprop.h: Likewise.
5900         * tests/unicase/test-cased.c: Likewise.
5901         * tests/unicase/test-ignorable.c: Likewise.
5902         * tests/unicase/test-uc_tolower.c: Likewise.
5903         * tests/unicase/test-uc_totitle.c: Likewise.
5904         * tests/unicase/test-uc_toupper.c: Likewise.
5905         * tests/unictype/test-categ_C.c: Likewise.
5906         * tests/unictype/test-categ_Cn.c: Likewise.
5907         * tests/unictype/test-categ_L.c: Likewise.
5908         * tests/unictype/test-categ_Ll.c: Likewise.
5909         * tests/unictype/test-categ_Lm.c: Likewise.
5910         * tests/unictype/test-categ_Lo.c: Likewise.
5911         * tests/unictype/test-categ_Lu.c: Likewise.
5912         * tests/unictype/test-categ_M.c: Likewise.
5913         * tests/unictype/test-categ_Mc.c: Likewise.
5914         * tests/unictype/test-categ_Me.c: Likewise.
5915         * tests/unictype/test-categ_Mn.c: Likewise.
5916         * tests/unictype/test-categ_N.c: Likewise.
5917         * tests/unictype/test-categ_Nd.c: Likewise.
5918         * tests/unictype/test-categ_No.c: Likewise.
5919         * tests/unictype/test-categ_P.c: Likewise.
5920         * tests/unictype/test-categ_Po.c: Likewise.
5921         * tests/unictype/test-categ_S.c: Likewise.
5922         * tests/unictype/test-categ_Sc.c: Likewise.
5923         * tests/unictype/test-categ_Sk.c: Likewise.
5924         * tests/unictype/test-categ_Sm.c: Likewise.
5925         * tests/unictype/test-categ_So.c: Likewise.
5926         * tests/unictype/test-ctype_alnum.c: Likewise.
5927         * tests/unictype/test-ctype_alpha.c: Likewise.
5928         * tests/unictype/test-ctype_graph.c: Likewise.
5929         * tests/unictype/test-ctype_lower.c: Likewise.
5930         * tests/unictype/test-ctype_print.c: Likewise.
5931         * tests/unictype/test-ctype_punct.c: Likewise.
5932         * tests/unictype/test-ctype_upper.c: Likewise.
5933         * tests/unictype/test-decdigit.h: Likewise.
5934         * tests/unictype/test-digit.h: Likewise.
5935         * tests/unictype/test-numeric.h: Likewise.
5936         * tests/unictype/test-pr_alphabetic.c: Likewise.
5937         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5938         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5939         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5940         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5941         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5942         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5943         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5944         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5945         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5946         * tests/unictype/test-pr_cased.c: Likewise.
5947         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5948         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5949         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5950         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5951         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5952         * tests/unictype/test-pr_combining.c: Likewise.
5953         * tests/unictype/test-pr_composite.c: Likewise.
5954         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5955         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5956         * tests/unictype/test-pr_deprecated.c: Likewise.
5957         * tests/unictype/test-pr_format_control.c: Likewise.
5958         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5959         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5960         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5961         * tests/unictype/test-pr_id_continue.c: Likewise.
5962         * tests/unictype/test-pr_id_start.c: Likewise.
5963         * tests/unictype/test-pr_ideographic.c: Likewise.
5964         * tests/unictype/test-pr_lowercase.c: Likewise.
5965         * tests/unictype/test-pr_math.c: Likewise.
5966         * tests/unictype/test-pr_numeric.c: Likewise.
5967         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5968         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5969         * tests/unictype/test-pr_other_math.c: Likewise.
5970         * tests/unictype/test-pr_punctuation.c: Likewise.
5971         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5972         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5973         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5974         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5975         * tests/unictype/test-pr_uppercase.c: Likewise.
5976         * tests/unictype/test-pr_xid_continue.c: Likewise.
5977         * tests/unictype/test-pr_xid_start.c: Likewise.
5978         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5979         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5980         changes.
5981         * lib/unictype/categ_Cc.h: Likewise.
5982         * lib/unictype/categ_Cf.h: Likewise.
5983         * lib/unictype/categ_Co.h: Likewise.
5984         * lib/unictype/categ_Cs.h: Likewise.
5985         * lib/unictype/categ_Lt.h: Likewise.
5986         * lib/unictype/categ_Nl.h: Likewise.
5987         * lib/unictype/categ_Pc.h: Likewise.
5988         * lib/unictype/categ_Pd.h: Likewise.
5989         * lib/unictype/categ_Pe.h: Likewise.
5990         * lib/unictype/categ_Pf.h: Likewise.
5991         * lib/unictype/categ_Pi.h: Likewise.
5992         * lib/unictype/categ_Ps.h: Likewise.
5993         * lib/unictype/categ_Z.h: Likewise.
5994         * lib/unictype/categ_Zl.h: Likewise.
5995         * lib/unictype/categ_Zp.h: Likewise.
5996         * lib/unictype/categ_Zs.h: Likewise.
5997         * lib/unictype/ctype_blank.h: Likewise.
5998         * lib/unictype/ctype_cntrl.h: Likewise.
5999         * lib/unictype/ctype_digit.h: Likewise.
6000         * lib/unictype/ctype_space.h: Likewise.
6001         * lib/unictype/ctype_xdigit.h: Likewise.
6002         * lib/unictype/mirror.h: Likewise.
6003         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6004         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6005         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6006         * lib/unictype/pr_bidi_control.h: Likewise.
6007         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6008         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6009         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6010         * lib/unictype/pr_bidi_pdf.h: Likewise.
6011         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6012         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6013         * lib/unictype/pr_dash.h: Likewise.
6014         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6015         * lib/unictype/pr_diacritic.h: Likewise.
6016         * lib/unictype/pr_extender.h: Likewise.
6017         * lib/unictype/pr_hex_digit.h: Likewise.
6018         * lib/unictype/pr_hyphen.h: Likewise.
6019         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6020         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6021         * lib/unictype/pr_ignorable_control.h: Likewise.
6022         * lib/unictype/pr_iso_control.h: Likewise.
6023         * lib/unictype/pr_join_control.h: Likewise.
6024         * lib/unictype/pr_left_of_pair.h: Likewise.
6025         * lib/unictype/pr_line_separator.h: Likewise.
6026         * lib/unictype/pr_logical_order_exception.h: Likewise.
6027         * lib/unictype/pr_non_break.h: Likewise.
6028         * lib/unictype/pr_not_a_character.h: Likewise.
6029         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6030         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6031         * lib/unictype/pr_other_id_start.h: Likewise.
6032         * lib/unictype/pr_other_lowercase.h: Likewise.
6033         * lib/unictype/pr_other_uppercase.h: Likewise.
6034         * lib/unictype/pr_paired_punctuation.h: Likewise.
6035         * lib/unictype/pr_paragraph_separator.h: Likewise.
6036         * lib/unictype/pr_pattern_syntax.h: Likewise.
6037         * lib/unictype/pr_pattern_white_space.h: Likewise.
6038         * lib/unictype/pr_private_use.h: Likewise.
6039         * lib/unictype/pr_quotation_mark.h: Likewise.
6040         * lib/unictype/pr_radical.h: Likewise.
6041         * lib/unictype/pr_soft_dotted.h: Likewise.
6042         * lib/unictype/pr_space.h: Likewise.
6043         * lib/unictype/pr_titlecase.h: Likewise.
6044         * lib/unictype/pr_variation_selector.h: Likewise.
6045         * lib/unictype/pr_white_space.h: Likewise.
6046         * lib/unictype/pr_zero_width.h: Likewise.
6047         * lib/unictype/sy_c_ident.h: Likewise.
6048         * lib/unictype/sy_c_whitespace.h: Likewise.
6049         * lib/unictype/sy_java_whitespace.h: Likewise.
6050         * lib/uninorm/composition-table.gperf: Likewise.
6051         * lib/uninorm/decomposition-table1.h: Likewise.
6052         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6053         LB8.
6054         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6055         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6056         * modules/unictype/*: Bump version number of expected libunistring
6057         version.
6058
6059 2011-01-09  Bruno Haible  <bruno@clisp.org>
6060
6061         Update to Unicode 5.2.0.
6062         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6063         trailing whitespace removed.
6064
6065 2011-01-09  Bruno Haible  <bruno@clisp.org>
6066
6067         New Unicode character properties, from Unicode 5.2.0.
6068         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6069         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6070         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6071         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6072         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6073         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6074         uc_is_property_cased, uc_is_property_case_ignorable,
6075         uc_is_property_changes_when_lowercased,
6076         uc_is_property_changes_when_uppercased,
6077         uc_is_property_changes_when_titlecased,
6078         uc_is_property_changes_when_casefolded,
6079         uc_is_property_changes_when_casemapped): New declarations.
6080         * lib/unictype/pr_byname.gperf: Add the new properties.
6081         * modules/unictype/property-byname (Depends-on): Depend on the new
6082         properties modules.
6083         * modules/unictype/property-all (Depends-on): Likewise.
6084         * MODULES.html.sh (Unicode string functions): Add
6085         unictype/property-case-ignorable, unictype/property-cased,
6086         unictype/property-changes-when-casefolded,
6087         unictype/property-changes-when-casemapped,
6088         unictype/property-changes-when-lowercased,
6089         unictype/property-changes-when-titlecased,
6090         unictype/property-changes-when-uppercased.
6091
6092         New module 'unictype/property-changes-when-casemapped'.
6093         * modules/unictype/property-changes-when-casemapped: New file.
6094         * lib/unictype/pr_changes_when_casemapped.c: New file.
6095         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6096         generated by gen-uni-tables.
6097         * modules/unictype/property-changes-when-casemapped-tests: New file.
6098         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6099         automatically generated by gen-uni-tables.
6100
6101         New module 'unictype/property-changes-when-casefolded'.
6102         * modules/unictype/property-changes-when-casefolded: New file.
6103         * lib/unictype/pr_changes_when_casefolded.c: New file.
6104         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6105         generated by gen-uni-tables.
6106         * modules/unictype/property-changes-when-casefolded-tests: New file.
6107         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6108         automatically generated by gen-uni-tables.
6109
6110         New module 'unictype/property-changes-when-titlecased'.
6111         * modules/unictype/property-changes-when-titlecased: New file.
6112         * lib/unictype/pr_changes_when_titlecased.c: New file.
6113         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6114         generated by gen-uni-tables.
6115         * modules/unictype/property-changes-when-titlecased-tests: New file.
6116         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6117         automatically generated by gen-uni-tables.
6118
6119         New module 'unictype/property-changes-when-uppercased'.
6120         * modules/unictype/property-changes-when-uppercased: New file.
6121         * lib/unictype/pr_changes_when_uppercased.c: New file.
6122         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6123         generated by gen-uni-tables.
6124         * modules/unictype/property-changes-when-uppercased-tests: New file.
6125         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6126         automatically generated by gen-uni-tables.
6127
6128         New module 'unictype/property-changes-when-lowercased'.
6129         * modules/unictype/property-changes-when-lowercased: New file.
6130         * lib/unictype/pr_changes_when_lowercased.c: New file.
6131         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6132         generated by gen-uni-tables.
6133         * modules/unictype/property-changes-when-lowercased-tests: New file.
6134         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6135         automatically generated by gen-uni-tables.
6136
6137         New module 'unictype/property-case-ignorable'.
6138         * modules/unictype/property-case-ignorable: New file.
6139         * lib/unictype/pr_case_ignorable.c: New file.
6140         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6141         by gen-uni-tables.
6142         * modules/unictype/property-case-ignorable-tests: New file.
6143         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6144         generated by gen-uni-tables.
6145
6146         New module 'unictype/property-cased'.
6147         * modules/unictype/property-cased: New file.
6148         * lib/unictype/pr_cased.c: New file.
6149         * lib/unictype/pr_cased.h: New file, automatically generated by
6150         gen-uni-tables.
6151         * modules/unictype/property-cased-tests: New file.
6152         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6153         gen-uni-tables.
6154
6155 2011-01-09  Bruno Haible  <bruno@clisp.org>
6156
6157         Update to Unicode 5.2.0.
6158         * lib/gen-uni-tables.c (output_predicate, output_category,
6159         output_combclass, output_bidi_category, output_decimal_digit_test,
6160         output_decimal_digit, output_digit_test, output_digit,
6161         output_numeric_test, output_numeric, output_mirror, output_scripts,
6162         output_scripts_byname, output_blocks, output_ident_category): Fix
6163         comment header.
6164         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6165         get_wbp.
6166         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6167         items.
6168         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6169         Changes_When_Lowercased, Changes_When_Uppercased,
6170         Changes_When_Titlecased, Changes_When_Casefolded,
6171         Changes_When_Casemapped.
6172         (is_property_alphabetic, is_property_default_ignorable_code_point):
6173         Update for Unicode 5.2.0.
6174         (is_property_cased, is_property_case_ignorable,
6175         is_property_changes_when_lowercased,
6176         is_property_changes_when_uppercased,
6177         is_property_changes_when_titlecased,
6178         is_property_changes_when_casefolded,
6179         is_property_changes_when_casemapped): New functions.
6180         (output_properties): Output also the properties cased, case_ignorable,
6181         changes_when_lowercased, changes_when_uppercased,
6182         changes_when_titlecased, changes_when_casefolded,
6183         changes_when_casemapped.
6184         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6185         Unicode TR#11 revision 17 -> 19.
6186         (LBP_CP): New enumeration value.
6187         (LBP_*): Adjust values accordingly.
6188         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6189         TR#14 revision 22 -> 24.
6190         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6191         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6192         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6193         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6194         is_WBP_MIDLETTER.
6195         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6196         the code1 and code2 of each composition rule.
6197         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6198         * lib/unicase/ignorable.h: Likewise.
6199         * lib/unicase/tocasefold.h: Likewise.
6200         * lib/unicase/tolower.h: Likewise.
6201         * lib/unicase/totitle.h: Likewise.
6202         * lib/unicase/toupper.h: Likewise.
6203         * lib/unictype/bidi_of.h: Likewise.
6204         * lib/unictype/blocks.h: Likewise.
6205         * lib/unictype/categ_C.h: Likewise.
6206         * lib/unictype/categ_Cf.h: Likewise.
6207         * lib/unictype/categ_Cn.h: Likewise.
6208         * lib/unictype/categ_L.h: Likewise.
6209         * lib/unictype/categ_Ll.h: Likewise.
6210         * lib/unictype/categ_Lm.h: Likewise.
6211         * lib/unictype/categ_Lo.h: Likewise.
6212         * lib/unictype/categ_Lu.h: Likewise.
6213         * lib/unictype/categ_M.h: Likewise.
6214         * lib/unictype/categ_Mc.h: Likewise.
6215         * lib/unictype/categ_Mn.h: Likewise.
6216         * lib/unictype/categ_N.h: Likewise.
6217         * lib/unictype/categ_Nd.h: Likewise.
6218         * lib/unictype/categ_Nl.h: Likewise.
6219         * lib/unictype/categ_No.h: Likewise.
6220         * lib/unictype/categ_P.h: Likewise.
6221         * lib/unictype/categ_Pd.h: Likewise.
6222         * lib/unictype/categ_Po.h: Likewise.
6223         * lib/unictype/categ_S.h: Likewise.
6224         * lib/unictype/categ_Sc.h: Likewise.
6225         * lib/unictype/categ_So.h: Likewise.
6226         * lib/unictype/categ_of.h: Likewise.
6227         * lib/unictype/combining.h: Likewise.
6228         * lib/unictype/ctype_alnum.h: Likewise.
6229         * lib/unictype/ctype_alpha.h: Likewise.
6230         * lib/unictype/ctype_graph.h: Likewise.
6231         * lib/unictype/ctype_lower.h: Likewise.
6232         * lib/unictype/ctype_print.h: Likewise.
6233         * lib/unictype/ctype_punct.h: Likewise.
6234         * lib/unictype/ctype_upper.h: Likewise.
6235         * lib/unictype/decdigit.h: Likewise.
6236         * lib/unictype/digit.h: Likewise.
6237         * lib/unictype/numeric.h: Likewise.
6238         * lib/unictype/pr_alphabetic.h: Likewise.
6239         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6240         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6241         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6242         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6243         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6244         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6245         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6246         * lib/unictype/pr_combining.h: Likewise.
6247         * lib/unictype/pr_composite.h: Likewise.
6248         * lib/unictype/pr_currency_symbol.h: Likewise.
6249         * lib/unictype/pr_dash.h: Likewise.
6250         * lib/unictype/pr_decimal_digit.h: Likewise.
6251         * lib/unictype/pr_deprecated.h: Likewise.
6252         * lib/unictype/pr_diacritic.h: Likewise.
6253         * lib/unictype/pr_extender.h: Likewise.
6254         * lib/unictype/pr_grapheme_base.h: Likewise.
6255         * lib/unictype/pr_grapheme_extend.h: Likewise.
6256         * lib/unictype/pr_grapheme_link.h: Likewise.
6257         * lib/unictype/pr_id_continue.h: Likewise.
6258         * lib/unictype/pr_id_start.h: Likewise.
6259         * lib/unictype/pr_ideographic.h: Likewise.
6260         * lib/unictype/pr_ignorable_control.h: Likewise.
6261         * lib/unictype/pr_logical_order_exception.h: Likewise.
6262         * lib/unictype/pr_lowercase.h: Likewise.
6263         * lib/unictype/pr_numeric.h: Likewise.
6264         * lib/unictype/pr_other_alphabetic.h: Likewise.
6265         * lib/unictype/pr_punctuation.h: Likewise.
6266         * lib/unictype/pr_sentence_terminal.h: Likewise.
6267         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6268         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6269         * lib/unictype/pr_unified_ideograph.h: Likewise.
6270         * lib/unictype/pr_uppercase.h: Likewise.
6271         * lib/unictype/pr_xid_continue.h: Likewise.
6272         * lib/unictype/pr_xid_start.h: Likewise.
6273         * lib/unictype/pr_zero_width.h: Likewise.
6274         * lib/unictype/scripts.h: Likewise.
6275         * lib/unictype/scripts_byname.gperf: Likewise.
6276         * lib/unictype/sy_java_ident.h: Likewise.
6277         * lib/unigbrk/gbrkprop.h: Likewise.
6278         * lib/unilbrk/lbrkprop1.h: Likewise.
6279         * lib/unilbrk/lbrkprop2.h: Likewise.
6280         * lib/unilbrk/lbrktables.h: Likewise.
6281         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6282         LBP_CP. Implement rule LB30.
6283         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6284         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6285         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6286         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6287         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6288         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6289         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6290         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6291         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6292         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6293         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6294         bits instead of 16 bits in the code1 and code2 of each composition
6295         rule.
6296         (uc_composition): Update for Unicode 5.2.0.
6297         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6298         * lib/uninorm/decomposition-table2.h: Likewise.
6299         * lib/uniwbrk/wbrkprop.h: Likewise.
6300         * tests/unicase/test-cased.c: Likewise.
6301         * tests/unicase/test-ignorable.c: Likewise.
6302         * tests/unicase/test-uc_tolower.c: Likewise.
6303         * tests/unicase/test-uc_totitle.c: Likewise.
6304         * tests/unicase/test-uc_toupper.c: Likewise.
6305         * tests/unictype/test-categ_C.c: Likewise.
6306         * tests/unictype/test-categ_Cf.c: Likewise.
6307         * tests/unictype/test-categ_Cn.c: Likewise.
6308         * tests/unictype/test-categ_L.c: Likewise.
6309         * tests/unictype/test-categ_Ll.c: Likewise.
6310         * tests/unictype/test-categ_Lm.c: Likewise.
6311         * tests/unictype/test-categ_Lo.c: Likewise.
6312         * tests/unictype/test-categ_Lu.c: Likewise.
6313         * tests/unictype/test-categ_M.c: Likewise.
6314         * tests/unictype/test-categ_Mc.c: Likewise.
6315         * tests/unictype/test-categ_Mn.c: Likewise.
6316         * tests/unictype/test-categ_N.c: Likewise.
6317         * tests/unictype/test-categ_Nd.c: Likewise.
6318         * tests/unictype/test-categ_Nl.c: Likewise.
6319         * tests/unictype/test-categ_No.c: Likewise.
6320         * tests/unictype/test-categ_P.c: Likewise.
6321         * tests/unictype/test-categ_Pd.c: Likewise.
6322         * tests/unictype/test-categ_Po.c: Likewise.
6323         * tests/unictype/test-categ_S.c: Likewise.
6324         * tests/unictype/test-categ_Sc.c: Likewise.
6325         * tests/unictype/test-categ_So.c: Likewise.
6326         * tests/unictype/test-ctype_alnum.c: Likewise.
6327         * tests/unictype/test-ctype_alpha.c: Likewise.
6328         * tests/unictype/test-ctype_graph.c: Likewise.
6329         * tests/unictype/test-ctype_lower.c: Likewise.
6330         * tests/unictype/test-ctype_print.c: Likewise.
6331         * tests/unictype/test-ctype_punct.c: Likewise.
6332         * tests/unictype/test-ctype_upper.c: Likewise.
6333         * tests/unictype/test-decdigit.h: Likewise.
6334         * tests/unictype/test-digit.h: Likewise.
6335         * tests/unictype/test-numeric.h: Likewise.
6336         * tests/unictype/test-pr_alphabetic.c: Likewise.
6337         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6338         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6339         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6340         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6341         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6342         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6343         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6344         * tests/unictype/test-pr_combining.c: Likewise.
6345         * tests/unictype/test-pr_composite.c: Likewise.
6346         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6347         * tests/unictype/test-pr_dash.c: Likewise.
6348         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6349         * tests/unictype/test-pr_deprecated.c: Likewise.
6350         * tests/unictype/test-pr_diacritic.c: Likewise.
6351         * tests/unictype/test-pr_extender.c: Likewise.
6352         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6353         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6354         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6355         * tests/unictype/test-pr_id_continue.c: Likewise.
6356         * tests/unictype/test-pr_id_start.c: Likewise.
6357         * tests/unictype/test-pr_ideographic.c: Likewise.
6358         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6359         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6360         * tests/unictype/test-pr_lowercase.c: Likewise.
6361         * tests/unictype/test-pr_numeric.c: Likewise.
6362         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6363         * tests/unictype/test-pr_punctuation.c: Likewise.
6364         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6365         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6366         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6367         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6368         * tests/unictype/test-pr_uppercase.c: Likewise.
6369         * tests/unictype/test-pr_xid_continue.c: Likewise.
6370         * tests/unictype/test-pr_xid_start.c: Likewise.
6371         * tests/unictype/test-pr_zero_width.c: Likewise.
6372         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6373         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6374         changed behaviour: line breaking is now disallowed between a letter
6375         or '=' and '('.
6376         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6377         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6378         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6379         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6380         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6381         lib/uniwidth/width.c.
6382         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6383         without comments, but with the original copyright notice.
6384         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6385         changes.
6386         * lib/unictype/categ_Cc.h: Likewise.
6387         * lib/unictype/categ_Co.h: Likewise.
6388         * lib/unictype/categ_Cs.h: Likewise.
6389         * lib/unictype/categ_Lt.h: Likewise.
6390         * lib/unictype/categ_Me.h: Likewise.
6391         * lib/unictype/categ_Pc.h: Likewise.
6392         * lib/unictype/categ_Pe.h: Likewise.
6393         * lib/unictype/categ_Pf.h: Likewise.
6394         * lib/unictype/categ_Pi.h: Likewise.
6395         * lib/unictype/categ_Ps.h: Likewise.
6396         * lib/unictype/categ_Sk.h: Likewise.
6397         * lib/unictype/categ_Sm.h: Likewise.
6398         * lib/unictype/categ_Z.h: Likewise.
6399         * lib/unictype/categ_Zl.h: Likewise.
6400         * lib/unictype/categ_Zp.h: Likewise.
6401         * lib/unictype/categ_Zs.h: Likewise.
6402         * lib/unictype/ctype_blank.h: Likewise.
6403         * lib/unictype/ctype_cntrl.h: Likewise.
6404         * lib/unictype/ctype_digit.h: Likewise.
6405         * lib/unictype/ctype_space.h: Likewise.
6406         * lib/unictype/ctype_xdigit.h: Likewise.
6407         * lib/unictype/mirror.h: Likewise.
6408         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6409         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6410         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6411         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6412         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6413         * lib/unictype/pr_bidi_control.h: Likewise.
6414         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6415         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6416         * lib/unictype/pr_bidi_pdf.h: Likewise.
6417         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6418         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6419         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6420         * lib/unictype/pr_format_control.h: Likewise.
6421         * lib/unictype/pr_hex_digit.h: Likewise.
6422         * lib/unictype/pr_hyphen.h: Likewise.
6423         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6424         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6425         * lib/unictype/pr_iso_control.h: Likewise.
6426         * lib/unictype/pr_join_control.h: Likewise.
6427         * lib/unictype/pr_left_of_pair.h: Likewise.
6428         * lib/unictype/pr_line_separator.h: Likewise.
6429         * lib/unictype/pr_math.h: Likewise.
6430         * lib/unictype/pr_non_break.h: Likewise.
6431         * lib/unictype/pr_not_a_character.h: Likewise.
6432         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6433         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6434         * lib/unictype/pr_other_id_continue.h: Likewise.
6435         * lib/unictype/pr_other_id_start.h: Likewise.
6436         * lib/unictype/pr_other_lowercase.h: Likewise.
6437         * lib/unictype/pr_other_math.h: Likewise.
6438         * lib/unictype/pr_other_uppercase.h: Likewise.
6439         * lib/unictype/pr_paired_punctuation.h: Likewise.
6440         * lib/unictype/pr_paragraph_separator.h: Likewise.
6441         * lib/unictype/pr_pattern_syntax.h: Likewise.
6442         * lib/unictype/pr_pattern_white_space.h: Likewise.
6443         * lib/unictype/pr_private_use.h: Likewise.
6444         * lib/unictype/pr_quotation_mark.h: Likewise.
6445         * lib/unictype/pr_radical.h: Likewise.
6446         * lib/unictype/pr_soft_dotted.h: Likewise.
6447         * lib/unictype/pr_space.h: Likewise.
6448         * lib/unictype/pr_titlecase.h: Likewise.
6449         * lib/unictype/pr_variation_selector.h: Likewise.
6450         * lib/unictype/pr_white_space.h: Likewise.
6451         * lib/unictype/sy_c_ident.h: Likewise.
6452         * lib/unictype/sy_c_whitespace.h: Likewise.
6453         * lib/unictype/sy_java_whitespace.h: Likewise.
6454         * modules/uni*/*: Bump version number of expected libunistring version.
6455         Reported by Simon Josefsson.
6456
6457 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6458
6459         useless-if-before-free: fix typo in --help and make the internal,
6460         automatic version date update process work once again.
6461         --help output contained a NUL character instead of the
6462         backslash-zero that was intended.  Also, the "must lie within
6463         the first 8 lines" line is on line 9, and hence not getting
6464         automatically updated.
6465         * build-aux/useless-if-before-free: Fix the former by adding a
6466         backslash, and the latter by condensing the three lines of what-it-does
6467         to a single line, leaving one line of slack for the future.
6468
6469 2011-01-09  Bruno Haible  <bruno@clisp.org>
6470
6471         uniwidth/width: Fix width of U+1D173..U+1D17A.
6472         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6473         symbolic_width, output_width_property_test): New functions.
6474         (main): Invoke output_nonspacing_property, output_width_property_test.
6475         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6476         U+1D173..U+1D17A.
6477         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6478         1.
6479         * modules/uniwidth/*: Bump version number of expected libunistring
6480         version.
6481         * modules/unilbrk/*: Likewise.
6482
6483 2011-01-08  Bruno Haible  <bruno@clisp.org>
6484
6485         uninorm tests: Preserve copyright of Unicode data file.
6486         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6487         Mention modifications.
6488
6489 2011-01-08  Bruno Haible  <bruno@clisp.org>
6490
6491         gen-uni-tables: Prepare for Unicode 5.2.0.
6492         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6493         (debug_output_lbp, output_lbp): Update.
6494
6495 2011-01-08  Bruno Haible  <bruno@clisp.org>
6496
6497         unilbrk: Clarify gen-uni-tables.c code.
6498         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6499         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6500         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6501
6502 2011-01-07  Bruno Haible  <bruno@clisp.org>
6503
6504         strtod: Restore errno when successfully parsing Infinity or NaN.
6505         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6506         restore the original errno.
6507
6508 2011-01-07  Bruno Haible  <bruno@clisp.org>
6509
6510         remove test: Avoid failure on HP-UX 11.
6511         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6512
6513 2011-01-07  Bruno Haible  <bruno@clisp.org>
6514
6515         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6516         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6517         error code.
6518
6519 2011-01-07  Pádraig Brady <P@draigBrady.com>
6520
6521         ignore-value: fixup comments, and add Eric Blake
6522         as an author since he rewrote the macros.
6523         * lib/ignore-value.h (ignore_value):  State that
6524         we now support aggregates.  Also specify exactly
6525         when the GCC warn_unused_result feature was added.
6526
6527 2011-01-06  Eric Blake  <eblake@redhat.com>
6528
6529         ignore-value: support aggregate types
6530         * lib/ignore-value.h (ignore_value): Provide separate gcc
6531         definition.
6532         * modules/ignore-value-tests: New test module.
6533         * tests/test-ignore-value.c: New test.
6534
6535         maint.mk: improve sc_prohibit_strcmp regex
6536         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6537         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6538         definition of STRNEQ.
6539
6540         signal: work around Haiku issue with SIGBUS
6541         * lib/siglist.h: Add comment.
6542         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6543         strsignal's favoring of SIGSEGV.
6544         * tests/test-signal.c (main): Avoid test failure.
6545         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6546         Reported by Scott McCreary.
6547
6548         maint.mk: add pre-release check to ensure submodule commits are public
6549         * top/maint.mk (public-submodule-commit): New rule.
6550         (submodule-checks): New variable.
6551         (alpha beta stable): Depend on the variable.
6552
6553 2011-01-05  Pádraig Brady <P@draigBrady.com>
6554         and Jim Meyering  <meyering@redhat.com>
6555
6556         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6557         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6558         (ATTRIBUTE_DEPRECATED): Define.
6559         (_ignore_case): New function.
6560         (ignore_value): New macro, to replace the old function.
6561         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6562         * modules/ignore-value (Depends-on): Add stdint.
6563
6564 2011-01-04  Eric Blake  <eblake@redhat.com>
6565
6566         doc: regenerate INSTALL
6567         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6568         @firstparagraphindent support, now that autoconf dropped it.
6569         (INSTALL_PRELUDE): Reinstate old macro.
6570         * doc/install.texi: Resync from autoconf.
6571         * doc/INSTALL: Reflect recent autoconf update.
6572         * doc/INSTALL.ISO: Likewise.
6573         * doc/INSTALL.UTF-8: Likewise.
6574         Reported by Karl Berry.
6575
6576 2011-01-04  Bruce Korb  <address@hidden>
6577
6578         git-version-gen: avoid a sub-shell
6579         * build-aux/git-version-gen: Redirect stderr in `...` via
6580         "exec 2>...", rather than via an added sub-shell.
6581
6582 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6583
6584         git-version-gen: use (...) rather than sh -c '...'
6585         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6586         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6587
6588 2011-01-03  Jim Meyering  <meyering@redhat.com>
6589
6590         git-version-gen: convert leading TABs to spaces
6591         * build-aux/git-version-gen: Expand leading TABs.
6592
6593         git-version-gen: handle failed "git rev-list"
6594         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6595         from git and proceeding as if it had succeeded but printed no SHA1
6596         checksums, suppress the diagnostic and handle the failure.
6597         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6598
6599         git-version-gen: include command name in one more diagnostic
6600         * build-aux/git-version-gen: When the required .tarball-version file
6601         was missing or unreadable, you might see the diagnostic from "cat",
6602         but no trace of the name of the invoking script.  Now, you still see
6603         the diagnostic from cat, but also get one from "git-version-gen: ".
6604         Inspired by a patch from Bruce Korb.
6605
6606         update-copyright: adjust test to match changed code
6607         * tests/test-update-copyright.sh: Change test's expected output
6608         to match new actual output.
6609
6610 2011-01-02  Bruno Haible  <bruno@clisp.org>
6611
6612         getlogin_r: Avoid test failure on HP-UX 11.
6613         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6614         ERANGE when the second argument is zero.
6615         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6616         portability problem.
6617
6618 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6619
6620         * build-aux/update-copyright: doc Simon's changes
6621
6622 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6623
6624         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6625         environment variable.
6626
6627 2011-01-02  Bruno Haible  <bruno@clisp.org>
6628
6629         unigbrk: Avoid gcc warnings.
6630         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6631         unused variable.
6632         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6633         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6634         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6635         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6636         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6637         Change type of first argument to 'const char *'.
6638         (main): Remove unused variable.
6639         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6640         type of first argument to 'const char *'.
6641         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6642         Likewise.
6643         (main): Change type of variable 's'.
6644         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6645         to 'int'.
6646
6647 2011-01-02  Bruno Haible  <bruno@clisp.org>
6648
6649         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6650         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6651         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6652         bug.
6653         * lib/pwrite.c: Undo 2010-12-31 patch.
6654         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6655
6656 2011-01-02  Bruno Haible  <bruno@clisp.org>
6657
6658         pread: Fix test whether it works.
6659         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6660
6661 2011-01-02  Bruno Haible  <bruno@clisp.org>
6662
6663         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6664         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6665         ends in "6". Don't require a specific month name. Try also the locale
6666         names found on HP-UX 11 and Solaris 7.
6667
6668 2011-01-02  Bruno Haible  <bruno@clisp.org>
6669
6670         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6671         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6672         C linkage.
6673         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6674
6675 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6676
6677         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6678         for consistency, since the "cluster" term is not used elsewhere.
6679         * lib/unigbrk.in.h: Update name.
6680         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6681         * lib/unigbrk/u16-grapheme-next.c: Update name.
6682         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6683         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6684         * lib/unigbrk/u32-grapheme-next.c: Update name.
6685         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6686         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6687         * lib/unigbrk/u8-grapheme-next.c: Update name.
6688         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6689         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6690         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6691         Suggested by Bruno Haible.
6692
6693 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6694
6695         Remove module 'u8-grapheme-len' as too redundant with
6696         'u8-grapheme-next'.
6697         * modules/unigbrk/u8-grapheme-len: Delete file.
6698         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6699         * lib/unigbrk.in.h: Remove prototype for deleted function.
6700         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6701         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6702
6703         Remove module 'u16-grapheme-len' as too redundant with
6704         'u16-grapheme-next'.
6705         * modules/unigbrk/u16-grapheme-len: Delete file.
6706         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6707         * lib/unigbrk.in.h: Remove prototype for deleted function.
6708         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6709         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6710
6711         Remove module 'u32-grapheme-len' as too redundant with
6712         'u32-grapheme-next'.
6713         * modules/unigbrk/u32-grapheme-len: Delete file.
6714         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6715         * lib/unigbrk.in.h: Remove prototype for deleted function.
6716         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6717         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6718
6719         Suggested by Bruno Haible.
6720
6721 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6722
6723         * unigbrk.in.h: Fix typo: "ben" => "been".
6724         Reported by Bruno Haible.
6725
6726 2011-01-01  Jim Meyering  <meyering@redhat.com>
6727
6728         maint: update almost all copyright ranges to include 2011
6729         Run the new "make update-copyright" rule.
6730
6731 2011-01-01  Jim Meyering  <meyering@redhat.com>
6732
6733         maint: update-copyright: exempt doc/INSTALL*
6734         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6735         since they are generated.  Suggested by Bruno Haible.
6736
6737 2011-01-01  Jim Meyering  <meyering@redhat.com>
6738
6739         maint: refine the update-copyright rule
6740         * Makefile (update-copyright): Also exclude any file that includes
6741         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6742         code that merely generates the comment.
6743
6744 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6745
6746         New module 'u8-grapheme-len'.
6747         * modules/unigbrk/u8-grapheme-len: New file.
6748         * modules/unigbrk/u8-grapheme-len-tests: New file.
6749         * lib/unigbrk.in.h: Add prototype for new function.
6750         * lib/unigbrk/u8-grapheme-len.c: New file.
6751         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6752
6753         New module 'u16-grapheme-len'.
6754         * modules/unigbrk/u16-grapheme-len: New file.
6755         * modules/unigbrk/u16-grapheme-len-tests: New file.
6756         * lib/unigbrk.in.h: Add prototype for new function.
6757         * lib/unigbrk/u16-grapheme-len.c: New file.
6758         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6759
6760         New module 'u32-grapheme-len'.
6761         * modules/unigbrk/u32-grapheme-len: New file.
6762         * modules/unigbrk/u32-grapheme-len-tests: New file.
6763         * lib/unigbrk.in.h: Add prototype for new function.
6764         * lib/unigbrk/u32-grapheme-len.c: New file.
6765         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6766
6767         New module 'u8-grapheme-next'.
6768         * modules/unigbrk/u8-grapheme-next: New file.
6769         * modules/unigbrk/u8-grapheme-next-tests: New file.
6770         * lib/unigbrk.in.h: Add prototype for new function.
6771         * lib/unigbrk/u8-grapheme-next.c: New file.
6772         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6773
6774         New module 'u16-grapheme-next'.
6775         * modules/unigbrk/u16-grapheme-next: New file.
6776         * modules/unigbrk/u16-grapheme-next-tests: New file.
6777         * lib/unigbrk.in.h: Add prototype for new function.
6778         * lib/unigbrk/u16-grapheme-next.c: New file.
6779         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6780
6781         New module 'u32-grapheme-next'.
6782         * modules/unigbrk/u32-grapheme-next: New file.
6783         * modules/unigbrk/u32-grapheme-next-tests: New file.
6784         * lib/unigbrk.in.h: Add prototype for new function.
6785         * lib/unigbrk/u32-grapheme-next.c: New file.
6786         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6787
6788         New module 'u8-grapheme-prev'.
6789         * modules/unigbrk/u8-grapheme-prev: New file.
6790         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6791         * lib/unigbrk.in.h: Add prototype for new function.
6792         * lib/unigbrk/u8-grapheme-prev.c: New file.
6793         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6794
6795         New module 'u16-grapheme-prev'.
6796         * modules/unigbrk/u16-grapheme-prev: New file.
6797         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6798         * lib/unigbrk.in.h: Add prototype for new function.
6799         * lib/unigbrk/u16-grapheme-prev.c: New file.
6800         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6801
6802         New module 'u32-grapheme-prev'.
6803         * modules/unigbrk/u32-grapheme-prev: New file.
6804         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6805         * lib/unigbrk.in.h: Add prototype for new function.
6806         * lib/unigbrk/u32-grapheme-prev.c: New file.
6807         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6808
6809         New module 'u8-grapheme-breaks'.
6810         * modules/unigbrk/u8-grapheme-breaks: New file.
6811         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6812         * lib/unigbrk.in.h: Add prototype for new function.
6813         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6814         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6815
6816         New module 'u16-grapheme-breaks'.
6817         * modules/unigbrk/u16-grapheme-breaks: New file.
6818         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6819         * lib/unigbrk.in.h: Add prototype for new function.
6820         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6821         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6822
6823         New module 'u32-grapheme-breaks'.
6824         * modules/unigbrk/u32-grapheme-breaks: New file.
6825         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6826         * lib/unigbrk.in.h: Add prototype for new function.
6827         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6828         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6829
6830         New module 'ulc-grapheme-breaks'.
6831         * modules/unigbrk/ulc-grapheme-breaks: New file.
6832         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6833         * m4/locale-ar.m4: New file.
6834         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6835         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6836         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6837
6838 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6839
6840         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6841         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6842         modified how this file was generated before I initially submitted
6843         the module, but failed to regenerate it.  This meant that several
6844         of the level2 entries were wrong.
6845         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6846         Remove the division-by-2 that is folded into the table now that
6847         gbrkprop.h has been regenerated properly.  Now -1 entries are
6848         handled correctly.
6849
6850         New module 'unigbrk/uc-gbrk-prop-tests'.
6851         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6852         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6853         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6854         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6855
6856 2011-01-01  Bruno Haible  <bruno@clisp.org>
6857
6858         Avoid use of hexadecimal escapes.
6859         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6860         instead of hexadecimal escapes.
6861
6862 2011-01-01  Jim Meyering  <meyering@redhat.com>
6863
6864         maint: new rule to update copyright year ranges
6865         * Makefile (update-copyright): New rule.
6866
6867         maint: indent with TABs in Makefile
6868         * Makefile: Expand leading sequences of spaces to TABs
6869
6870         version-etc: update the copyright year it reports
6871         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6872
6873 2010-12-31  Bruno Haible  <bruno@clisp.org>
6874
6875         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6876         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6877         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6878         zero.
6879
6880 2010-12-31  Bruno Haible  <bruno@clisp.org>
6881
6882         pwrite: Work around HP-UX 11.11 bug.
6883         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6884         works and set REPLACE_PWRITE if not.
6885         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6886         function.
6887         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6888
6889 2010-12-31  Bruno Haible  <bruno@clisp.org>
6890
6891         pread: Work around HP-UX 11 bugs.
6892         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6893         and set REPLACE_PREAD if not.
6894         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6895
6896 2010-12-31  Eric Blake  <eblake@redhat.com>
6897
6898         nl_langinfo: fix YESEXPR on Irix 6.5
6899         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6900         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6901         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6902         it.
6903
6904 2010-12-31  Bruno Haible  <bruno@clisp.org>
6905
6906         iconv: Document HP-UX 11 bug.
6907         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6908
6909 2010-12-31  Bruno Haible  <bruno@clisp.org>
6910
6911         ldexpl: Fix link error on HP-UX 11.
6912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6913         LDEXPL_LIBM, using $ISNANL_LIBM.
6914
6915 2010-12-31  Eric Blake  <eblake@redhat.com>
6916
6917         ftello: avoid compilation failure with SunStudio c89
6918         * lib/ftello.c (ftello): Use lseek, not llseek.
6919
6920         tests: avoid failing coreutils tests on cygwin
6921         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6922         (create_exe_shims_): Return 0 when skipping.
6923
6924 2010-12-31  Bruno Haible  <bruno@clisp.org>
6925
6926         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6927         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6928
6929 2010-12-31  Bruno Haible  <bruno@clisp.org>
6930
6931         waitpid: Fix link error in C++ mode.
6932         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6933
6934 2010-12-31  Bruno Haible  <bruno@clisp.org>
6935
6936         isnan: Use GCC built-ins when possible.
6937         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6938         __builtin_isnan.
6939         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6940         (isnan): Define using GCC built-ins for GCC >= 4.0.
6941
6942 2010-12-31  Bruno Haible  <bruno@clisp.org>
6943
6944         isnand: Fix mistake.
6945         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6946         __builtin_isnand.
6947
6948 2010-12-31  Bruno Haible  <bruno@clisp.org>
6949
6950         open: Avoid C++ error on HP-UX 11.
6951         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6952
6953 2010-12-31  Bruno Haible  <bruno@clisp.org>
6954
6955         time_r: Add missing declarations on HP-UX 11.
6956         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6957         instead of HAVE_LOCALTIME_R.
6958         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6959         HAVE_LOCALTIME_R always.
6960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6961         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6962         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6963         HAVE_LOCALTIME_R.
6964         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6965         * doc/posix-functions/localtime_r.texi: Likewise.
6966
6967 2010-12-29  Eric Blake  <eblake@redhat.com>
6968
6969         mountlist: tweak previous commit
6970         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6971         Reported by Paul Eggert.
6972
6973         mountlist: fix local drive detection on cygwin
6974         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6975         that works for cygwin.
6976
6977 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6978
6979         ftoastr, snprintf: ftoastr + snprintf module
6980         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6981         since the snprintf module now should be good enough here.
6982         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6983         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6984         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6985         GNULIB_SNPRINTF only for the test directory, and the latter
6986         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6987         seems to suffice by itself.
6988
6989 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6990
6991         alloca: one step towards thread-safety
6992         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6993         need for a static variable.  All callers changed.  This does not
6994         make the alloca replacement thread-safe, but it's one step.
6995
6996         tests: minor indenting change
6997         * tests/init.sh: Sync from coreutils housekeeping patch
6998         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6999         to keep lines within 80 columns.
7000
7001 2010-12-28  Jim Meyering  <meyering@redhat.com>
7002
7003         regex: don't infloop on persistent failing calloc
7004         * lib/regexec.c (build_trtable): Return failure indication upon
7005         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7006         In glibc, this was fixed for version 2.13:
7007         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7008
7009 2010-12-28  Bruno Haible  <bruno@clisp.org>
7010             Paul Eggert <eggert@cs.ucla.edu>
7011
7012         linkat: Make implementation robust against system behaviour variations.
7013         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7014         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7015         way, and to -2 if it needs a generic runtime test.
7016         * lib/linkat.c (solaris_optimized_link_immediate,
7017         solaris_optimized_link_follow): New functions.
7018         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7019         (check_same_link): Use it.
7020
7021 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7022
7023         New module 'unigbrk/base'.
7024         * modules/unigbrk/base: New file.
7025         * lib/unigbrk.in.h: New file.
7026
7027         New module 'unigbrk/uc-gbrk-prop'.
7028         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7029         * modules/unigbrk/uc-gbrk-prop: New file.
7030         * lib/unigbrk/gbrkprop.h: New file.
7031         * lib/unigbrk/uc-gbrk-prop.c: New file.
7032
7033         New module 'unigbrk/uc-is-grapheme-break'.
7034         * modules/unigbrk/uc-is-grapheme-break: New file.
7035         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7036         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7037         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7038         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7039         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7040
7041         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7042
7043 2010-12-27  Bruno Haible  <bruno@clisp.org>
7044
7045         linkat test: Avoid failure on Solaris 11 2010-11.
7046         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7047
7048 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7049
7050         utimens: work around glibc rounding bug on more platforms
7051         * lib/utimens.c (fdutimens): Work around rounding bug even if
7052         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7053         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7054
7055 2010-12-27  Bruno Haible  <bruno@clisp.org>
7056
7057         select tests: Improve comments.
7058         * tests/test-select.c (do_select): Add comments.
7059
7060 2010-12-27  Bruno Haible  <bruno@clisp.org>
7061
7062         select tests: Safer way of handling timeout.
7063         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7064         at every invocation.
7065
7066 2010-12-27  Bruno Haible  <bruno@clisp.org>
7067
7068         select tests: Use 'bool' where appropriate.
7069         * tests/test-select.c (connect_to_socket): Change argument type to
7070         'bool'.
7071
7072 2010-12-27  Bruno Haible  <bruno@clisp.org>
7073
7074         select tests: Use existing modules.
7075         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7076         (configure.ac): Don't test for unistd.h.
7077         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7078         declared in <unistd.h>.
7079
7080 2010-12-27  Bruno Haible  <bruno@clisp.org>
7081
7082         mbrtowc: Work around a Solaris 7 bug.
7083         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7084         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7085         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7086         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7087         MBRTOWC_NULL_ARG1_BUG.
7088         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7089         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7090         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7091         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7092
7093 2010-12-27  Jim Meyering  <meyering@redhat.com>
7094
7095         read-file.c: tweak syntax
7096         * lib/read-file.c (fread_file): Remove space after "*" in function
7097         definitions.
7098
7099 2010-12-27  Bruno Haible  <bruno@clisp.org>
7100
7101         times test: Avoid gcc warnings on OSF/1.
7102         * tests/test-times.c (main): Cast printf arguments from clock_t to
7103         'long int'.
7104
7105 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7106
7107         utimens: work around glibc rounding bug on older Linux kernels
7108         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7109         on Linux with a glibc whose utimes might not work, then work
7110         around a longstanding glibc bug involving rounding rather than
7111         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7112         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7113
7114 2010-12-26  Bruno Haible  <bruno@clisp.org>
7115
7116         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7117         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7118         _GL_CXXALIAS_SYS.
7119         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7120
7121 2010-12-26  Bruno Haible  <bruno@clisp.org>
7122
7123         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7124         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7125         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7126         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7127         looking for the declaration.
7128         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7129         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7130         problem.
7131         * doc/posix-functions/inet_pton.texi: Likewise.
7132
7133 2010-12-26  Bruno Haible  <bruno@clisp.org>
7134
7135         arpa_inet: Use the common idioms with C++ support.
7136         * lib/arpa_inet.in.h: Include c++defs.h.
7137         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7138         support.
7139         * modules/arpa_inet (Depends-on): Add c++defs.
7140         (Makefile.am): Substitute the contents of c++defs.h.
7141         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7142         * modules/arpa_inet-c++-tests: New file.
7143         * tests/test-arpa_inet-c++.cc: New file.
7144
7145 2010-12-25  Bruno Haible  <bruno@clisp.org>
7146
7147         Fix more C++ link errors on Solaris 8.
7148         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7149         $(LIB_EACCESS).
7150         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7151         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7152         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7153         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7154         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7155
7156 2010-12-25  Bruno Haible  <bruno@clisp.org>
7157
7158         printf-posix: Fix link error when a non-GCC compiler is used.
7159         * lib/stdio.in.h (printf): When not using GCC, override printf
7160         correctly.
7161         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7162
7163 2010-12-25  Bruno Haible  <bruno@clisp.org>
7164
7165         strerror_r-posix: Update doc.
7166         * doc/posix-functions/strerror_r.texi: Update doc about the return
7167         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7168
7169 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7170
7171         utimens: simplify the logic of the previous change
7172         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7173         This should not affect whether the test succeeds or fails.
7174
7175         utimens: configure better on hosts with NFS clock skew
7176         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7177         uses the clock of the local host.  It might use the clock of the
7178         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7180
7181 2010-12-25  Bruno Haible  <bruno@clisp.org>
7182
7183         ptsname test: Avoid failure on Solaris.
7184         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7185         open a pseudo-terminal; don't use BSD-style ptys.
7186         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7187
7188 2010-12-25  Bruno Haible  <bruno@clisp.org>
7189
7190         ptsname: Avoid ERANGE failure on some systems.
7191         * lib/ptsname.c (buffer): Increase size.
7192
7193 2010-12-25  Bruno Haible  <bruno@clisp.org>
7194
7195         rename, renameat: Avoid test failures at NFS mounted locations.
7196         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7197         so that subsequent mkdir calls succeed.
7198
7199 2010-12-25  Bruno Haible  <bruno@clisp.org>
7200
7201         iswblank: Fix C++ link error on Solaris 8.
7202         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7203         _GL_FUNCDECL_SYS.
7204
7205 2010-12-25  Bruno Haible  <bruno@clisp.org>
7206
7207         unistd: Fix C++ link error on Solaris 8.
7208         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7209
7210 2010-12-25  Bruno Haible  <bruno@clisp.org>
7211
7212         readlink doc: Mention an old glibc bug.
7213         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7214
7215 2010-12-25  Bruno Haible  <bruno@clisp.org>
7216
7217         fcntl-h: Fix for use of C++ on glibc systems.
7218         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7219         also on glibc systems in C++ mode.
7220         Reported by Gary V. Vaughan <gary@gnu.org>.
7221
7222 2010-12-25  Bruno Haible  <bruno@clisp.org>
7223
7224         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7225         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7226
7227 2010-12-25  Bruno Haible  <bruno@clisp.org>
7228
7229         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7230         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7231         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7232         test whether truncl works according to ISO C 99 with IEC 60559.
7233         * m4/truncl-ieee.m4: New file.
7234         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7235         m4/signbit.m4.
7236         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7237
7238 2010-12-25  Bruno Haible  <bruno@clisp.org>
7239
7240         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7241         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7242         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7243         test whether ceill works according to ISO C 99 with IEC 60559.
7244         * m4/ceill-ieee.m4: New file.
7245         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7246         m4/signbit.m4.
7247         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7248
7249 2010-12-25  Bruno Haible  <bruno@clisp.org>
7250
7251         Ensure all prerequisites of <wchar.h> are included.
7252         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7253         before <wchar.h>.
7254         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7255         gl_MBRLEN_NUL_RETVAL): Likewise.
7256         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7257         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7258         AC_FUNC_MBRTOWC): Likewise.
7259         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7260         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7261         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7262         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7263         Likewise.
7264         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7265         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7266         (gl_WCHAR_H): Improve comments.
7267         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7268
7269 2010-12-25  Bruno Haible  <bruno@clisp.org>
7270
7271         strtok_r: Fix C syntax error in autoconf macro.
7272         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7273         characters in test program.
7274
7275 2010-12-24  Bruno Haible  <bruno@clisp.org>
7276
7277         ceil, trunc, round: Fix gcc warnings.
7278         * lib/ceil.c (MIN): Undefine before redefining.
7279         * lib/trunc.c (MIN): Likewise.
7280         * lib/round.c (MIN): Likewise.
7281         Include <math.h> first.
7282
7283 2010-12-24  Bruno Haible  <bruno@clisp.org>
7284
7285         select tests: Avoid failures on OSF/1 5.1.
7286         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7287         failure of closing the last socket; it may fail with ECONNRESET.
7288
7289 2010-12-24  Eric Blake  <eblake@redhat.com>
7290
7291         stdint: avoid HP-UX 10.20 preprocessor bug
7292         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7293         than #if.
7294         * tests/test-floor2.c (main): Likewise.
7295         Reported by Peter O'Gorman.
7296
7297         pipe: make obsoletion transition easier
7298         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7299         * modules/pipe (Files): Include revived file.
7300         (Include): Drop reference, to mirror getdate's behavior.
7301
7302 2010-12-24  Bruno Haible  <bruno@clisp.org>
7303
7304         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7305         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7306         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7308
7309 2010-12-24  Bruno Haible  <bruno@clisp.org>
7310
7311         gethostname: Ensure declaration on NonStop Kernel.
7312         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7314
7315 2010-12-24  Bruno Haible  <bruno@clisp.org>
7316
7317         sys_select: Ensure all necessary types on NonStop Kernel.
7318         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7319         include <sys/time.h>.
7320         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7321         NonStop Kernel.
7322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7323
7324 2010-12-24  Bruno Haible  <bruno@clisp.org>
7325
7326         sys_select: Remove unneeded include.
7327         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7328         have <sys/select.h>.
7329
7330 2010-12-24  Bruno Haible  <bruno@clisp.org>
7331
7332         gethostname: Provide a fallback for HOST_NAME_MAX.
7333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7334         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7335         instead.
7336         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7337
7338 2010-12-24  Bruno Haible  <bruno@clisp.org>
7339
7340         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7341         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7342         (SA_RESTART): Likewise.
7343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7344
7345 2010-12-24  Bruno Haible  <bruno@clisp.org>
7346
7347         signal: Define NSIG.
7348         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7349         * tests/test-signal.c (nsig): New variable.
7350         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7351
7352 2010-12-24  Bruno Haible  <bruno@clisp.org>
7353
7354         rename, renameat: Avoid test failures on OSF/1 5.1.
7355         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7356         alternative error codes.
7357         * tests/test-renameat.c (main): Likewise.
7358
7359 2010-12-24  Bruno Haible  <bruno@clisp.org>
7360
7361         *printf: Detect large precisions bug on Solaris 10/SPARC.
7362         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7363         by Paul Eggert.
7364         * tests/test-snprintf-posix.h (test_function): Add this test code here
7365         too.
7366         * tests/test-sprintf-posix.h (test_function): Likewise.
7367         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7368         * tests/test-vasprintf-posix.c (test_function): Likewise.
7369         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7370         around by gnulib.
7371         * doc/posix-functions/printf.texi: Likewise.
7372         * doc/posix-functions/snprintf.texi: Likewise.
7373         * doc/posix-functions/sprintf.texi: Likewise.
7374         * doc/posix-functions/vfprintf.texi: Likewise.
7375         * doc/posix-functions/vprintf.texi: Likewise.
7376         * doc/posix-functions/vsnprintf.texi: Likewise.
7377         * doc/posix-functions/vsprintf.texi: Likewise.
7378         * doc/posix-functions/dprintf.texi: Undo last commit.
7379         * doc/posix-functions/vdprintf.texi: Likewise.
7380
7381 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7382
7383         tests: port test-fdutimensat.c to Solaris 8
7384         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7385         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7386         On Solaris 8, it fails with errno == ENOSYS, because there is no
7387         futimens (so it can't use the fd), and there is no lutimens (so it
7388         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7389
7390         vsnprintf: make more consistent with snprintf; doc fixes
7391
7392         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7393         the byte count return problem was promoted from the snprintf-posix
7394         to the snprintf module.
7395         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7396         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7397         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7398         * tests/test-snprintf.c (main): Check the byte count returned.
7399         * tests/test-vsnprintf.c (main): Likewise.
7400
7401 2010-12-23  Eric Blake  <eblake@redhat.com>
7402
7403         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7404         * modules/sigpipe (License): Relax license.
7405
7406 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7407
7408         doc: document Solaris printf bug with large float precisions
7409         * doc/posix-functions/dprintf.texi (dprintf):
7410         * doc/posix-functions/fprintf.texi (fprintf):
7411         * doc/posix-functions/printf.texi (printf):
7412         * doc/posix-functions/snprintf.texi (snprintf):
7413         * doc/posix-functions/sprintf.texi (sprintf):
7414         * doc/posix-functions/vdprintf.texi (vdprintf):
7415         * doc/posix-functions/vfprintf.texi (vfprintf):
7416         * doc/posix-functions/vprintf.texi (vprintf):
7417         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7418         * doc/posix-functions/vsprintf.texi (vsprintf):
7419         Mention that these functions mishandle large floating point
7420         precisions on Solaris 10.  The same bug is also present in Solaris
7421         8, and I assume earlier.  This causes "cd gnulib-tests; make
7422         check" to fail on Solaris 8 (and I assume, later) when building
7423         the latest coreutils, in test-vasprintf-posix's call to
7424         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7425         the wide flavors (e.g., wprintf) so this patch just updates the
7426         documentation for the narrow ones.
7427
7428         test-posixtm.c: add two tests
7429         * tests/test-posixtm.c: Add two tests, to highlight the
7430         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7431         around this bug; this is merely to document it.
7432
7433 2010-12-22  Bruno Haible  <bruno@clisp.org>
7434
7435         getlogin_r: Work around portability problem on OSF/1.
7436         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7437         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7438         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7439         test for a truncated result.
7440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7441         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7442         * modules/getlogin_r (Depends-on): Add memchr.
7443         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7444
7445 2010-12-22  Bruno Haible  <bruno@clisp.org>
7446
7447         ptsname: Avoid test failure on OSF/1 5.1.
7448         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7449         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7450         (same_slave): New function.
7451         (main): Use it to compare ptsname's result with the expected file name.
7452
7453 2010-12-22  Bruno Haible  <bruno@clisp.org>
7454
7455         Port extended stdio modules to HP NonStop Kernel.
7456         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7457         macros.
7458         * lib/fbufmode.c: Update comments.
7459         * lib/fflush.c: Likewise.
7460         * lib/fpurge.c: Likewise.
7461         * lib/freadable.c: Likewise.
7462         * lib/freadahead.c: Likewise.
7463         * lib/freading.c: Likewise.
7464         * lib/freadptr.c: Likewise.
7465         * lib/freadseek.c: Likewise.
7466         * lib/fseeko.c: Likewise.
7467         * lib/fseterr.c: Likewise.
7468         * lib/fwritable.c: Likewise.
7469         * lib/fwriting.c: Likewise.
7470         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7471
7472 2010-12-22  Bruno Haible  <bruno@clisp.org>
7473
7474         ttyname_r: Work around bug on OSF/1 5.1.
7475         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7476         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7477         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7478         present.
7479         * lib/ttyname_r.c (ttyname_r): Update comments.
7480
7481 2010-12-22  Bruno Haible  <bruno@clisp.org>
7482
7483         round: Implement result sign according to IEEE 754.
7484         * lib/round.c (MIN, MINUS_ZERO): New macros.
7485         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7486         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7487         * tests/test-round-ieee.c (main): Likewise.
7488         * tests/test-roundl-ieee.c (main): Likewise.
7489
7490         trunc: Implement result sign according to IEEE 754.
7491         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7492         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7493         * tests/test-trunc2.c: Include minus-zero.h.
7494         (MINUS_ZERO): New macro.
7495         (trunc_reference): Keep in sync with lib/trunc.c.
7496         * tests/test-truncf2.c: Include minus-zero.h.
7497         (MINUS_ZERO): New macro.
7498         (truncf_reference): Keep in sync with lib/trunc.c.
7499         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7500         * tests/test-trunc-ieee.c (main): Likewise.
7501         * tests/test-truncl-ieee.c (main): Likewise.
7502
7503         ceil: Implement result sign according to IEEE 754.
7504         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7505         (FUNC): Return -0.0 for -1 < x < 0.
7506         * tests/test-ceil2.c: Include minus-zero.h.
7507         (MINUS_ZERO): New macro.
7508         (ceil_reference): Keep in sync with lib/ceil.c.
7509         * tests/test-ceilf2.c: Include minus-zero.h.
7510         (MINUS_ZERO): New macro.
7511         (ceilf_reference): Keep in sync with lib/ceil.c.
7512         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7513         * tests/test-ceil-ieee.c (main): Likewise.
7514         * tests/test-ceill-ieee.c (main): Likewise.
7515
7516         floor: Implement result sign according to IEEE 754.
7517         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7518         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7519         * tests/test-floorf2.c (floorf_reference): Likewise.
7520         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7521         * tests/test-floor-ieee.c (main): Likewise.
7522         * tests/test-floorl-ieee.c (main): Likewise.
7523
7524 2010-12-22  Bruno Haible  <bruno@clisp.org>
7525
7526         getaddrinfo: Update doc.
7527         * doc/posix-functions/gai_strerror.texi: Return type is also different
7528         on AIX and HP-UX.
7529
7530 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7531
7532         getaddrinfo, inet_ntop: Update doc for Solaris.
7533         * doc/posix-functions/gai_strerror.texi: Return type is also an
7534         issue on Solaris 9 and earlier.
7535         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7536         on Solaris 10 and earlier.
7537
7538 2010-12-21  Bruno Haible  <bruno@clisp.org>
7539
7540         New module 'roundl-ieee'.
7541         * modules/roundl-ieee: New file.
7542         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7543         test whether roundl works according to ISO C 99 with IEC 60559.
7544         * m4/roundl-ieee.m4: New file.
7545         * modules/roundl-ieee-tests: New file.
7546         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7547         * tests/test-roundl.c (main): Remove signbit tests.
7548         * modules/roundl-tests (Depends-on): Remove signbit.
7549         * doc/posix-functions/roundl.texi: Mention the new module.
7550
7551 2010-12-21  Bruno Haible  <bruno@clisp.org>
7552
7553         New module 'truncl-ieee'.
7554         * modules/truncl-ieee: New file.
7555         * modules/truncl-ieee-tests: New file.
7556         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7557         * tests/test-truncl.c (main): Remove signbit tests.
7558         * modules/truncl-tests (Depends-on): Remove signbit.
7559         * doc/posix-functions/truncl.texi: Mention the new module.
7560
7561 2010-12-21  Bruno Haible  <bruno@clisp.org>
7562
7563         New module 'ceill-ieee'.
7564         * modules/ceill-ieee: New file.
7565         * modules/ceill-ieee-tests: New file.
7566         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7567         * tests/test-ceill.c (main): Remove signbit tests.
7568         * modules/ceill-tests (Depends-on): Remove signbit.
7569         * doc/posix-functions/ceill.texi: Mention the new module.
7570
7571 2010-12-21  Bruno Haible  <bruno@clisp.org>
7572
7573         New module 'floorl-ieee'.
7574         * modules/floorl-ieee: New file.
7575         * modules/floorl-ieee-tests: New file.
7576         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7577         * tests/test-floorl.c (main): Remove signbit tests.
7578         * modules/floorl-tests (Depends-on): Remove signbit.
7579         * doc/posix-functions/floorl.texi: Mention the new module.
7580
7581 2010-12-21  Bruno Haible  <bruno@clisp.org>
7582
7583         New module 'round-ieee'.
7584         * modules/round-ieee: New file.
7585         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7586         whether round works according to ISO C 99 with IEC 60559.
7587         * m4/round-ieee.m4: New file.
7588         * modules/round-ieee-tests: New file.
7589         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7590         * tests/test-round1.c (main): Remove signbit tests.
7591         * modules/round-tests (Depends-on): Remove 'signbit'.
7592         * doc/posix-functions/round.texi: Mention the new module.
7593
7594 2010-12-21  Bruno Haible  <bruno@clisp.org>
7595
7596         New module 'trunc-ieee'.
7597         * modules/trunc-ieee: New file.
7598         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7599         whether trunc works according to ISO C 99 with IEC 60559.
7600         * m4/trunc-ieee.m4: New file.
7601         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7603         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7604         * modules/trunc-ieee-tests: New file.
7605         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7606         * tests/test-trunc1.c (main): Remove signbit tests.
7607         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7608         * doc/posix-functions/trunc.texi: Mention the new module.
7609
7610 2010-12-21  Bruno Haible  <bruno@clisp.org>
7611
7612         New module 'ceil-ieee'.
7613         * modules/ceil-ieee: New file.
7614         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7615         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7616         ISO C 99 with IEC 60559.
7617         * m4/ceil-ieee.m4: New file.
7618         * modules/ceil (Files): Add lib/ceil.c.
7619         (Depends-on): Add 'float'.
7620         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7621         * lib/math.in.h (ceil): New declaration.
7622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7623         REPLACE_CEIL.
7624         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7625         * modules/ceil-ieee-tests: New file.
7626         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7627         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7628         * doc/posix-functions/ceil.texi: Mention the new module.
7629
7630 2010-12-21  Bruno Haible  <bruno@clisp.org>
7631
7632         New module 'floor-ieee'.
7633         * modules/floor-ieee: New file.
7634         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7635         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7636         ISO C 99 with IEC 60559.
7637         * m4/floor-ieee.m4: New file.
7638         * modules/floor (Files): Add lib/floor.c.
7639         (Depends-on): Add 'float'.
7640         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7641         * lib/math.in.h (floor): New declaration.
7642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7643         REPLACE_FLOOR.
7644         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7645         * modules/floor-ieee-tests: New file.
7646         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7647         * tests/test-math-c++.cc: Check the signature of 'floor'.
7648         * doc/posix-functions/floor.texi: Mention the new module.
7649
7650 2010-12-21  Bruno Haible  <bruno@clisp.org>
7651
7652         New module 'roundf-ieee'.
7653         * modules/roundf-ieee: New file.
7654         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7655         test whether roundf works according to ISO C 99 with IEC 60559.
7656         * m4/roundf-ieee.m4: New file.
7657         * modules/roundf-ieee-tests: New file.
7658         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7659         * tests/test-roundf1.c (main): Remove signbit tests.
7660         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7661         * doc/posix-functions/roundf.texi: Mention the new module.
7662
7663 2010-12-21  Bruno Haible  <bruno@clisp.org>
7664
7665         New module 'truncf-ieee'.
7666         * modules/truncf-ieee: New file.
7667         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7668         test whether truncf works according to ISO C 99 with IEC 60559.
7669         * m4/truncf-ieee.m4: New file.
7670         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7672         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7673         * modules/truncf-ieee-tests: New file.
7674         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7675         * tests/test-truncf1.c (main): Remove signbit tests.
7676         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7677         * doc/posix-functions/truncf.texi: Mention the new module.
7678
7679 2010-12-21  Bruno Haible  <bruno@clisp.org>
7680
7681         New module 'ceilf-ieee'.
7682         * modules/ceilf-ieee: New file.
7683         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7684         test whether ceilf works according to ISO C 99 with IEC 60559.
7685         * m4/ceilf-ieee.m4: New file.
7686         * modules/ceilf-ieee-tests: New file.
7687         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7688         * tests/test-ceilf1.c (main): Remove signbit tests.
7689         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7690         * doc/posix-functions/ceilf.texi: Mention the new module.
7691
7692 2010-12-21  Bruno Haible  <bruno@clisp.org>
7693
7694         New module 'floorf-ieee'.
7695         * modules/floorf-ieee: New file.
7696         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7697         test whether floorf works according to ISO C 99 with IEC 60559.
7698         * m4/floorf-ieee.m4: New file.
7699         * modules/floorf-ieee-tests: New file.
7700         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7701         * tests/test-floorf1.c (main): Remove signbit tests.
7702         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7703         * doc/posix-functions/floorf.texi: Mention the new module.
7704
7705 2010-12-21  Bruno Haible  <bruno@clisp.org>
7706
7707         Support for minus zero in autoconf macros.
7708         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7709         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7710         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7711         * tests/minus-zero.h: Update comments.
7712
7713 2010-12-21  Bruno Haible  <bruno@clisp.org>
7714
7715         Tests for module 'ceil'.
7716         * modules/ceil-tests: New file.
7717         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7718         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7719
7720 2010-12-21  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'floor'.
7723         * modules/floor-tests: New file.
7724         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7725         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7726
7727 2010-12-21  Bruno Haible  <bruno@clisp.org>
7728
7729         math: Fix indentation.
7730         * lib/math.in.h (floorf): Fix indentation.
7731
7732 2010-12-21  Bruno Haible  <bruno@clisp.org>
7733
7734         Fix cross-compilation guesses on Solaris.
7735         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7736         not match "solaris2.10".
7737         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7738         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7739         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7740
7741 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7742
7743         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7744         This fixes a problem observed with the latest coreutils snapshot
7745         that caused a test to fail on Solaris 8.  src/csplit.c's call
7746         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7747         earlier, instead of returning the number of bytes that would have
7748         been generated; this causes csplit to incorrectly report memory
7749         exhaustion.
7750         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7751         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7752         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7753         comments to match.
7754         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7755         Fix typo in matching older versions of Solaris: "solaris2.10"
7756         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7757         only for guessing while cross-compiling.
7758         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7759
7760 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7761
7762         ftoastr: fix comment again
7763         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7764         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7765         Also, simplify example a bit by using flags = 0.
7766
7767 2010-12-20  Bruno Haible  <bruno@clisp.org>
7768
7769         round*, trunc*: Update documentation regarding glibc.
7770         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7771         * doc/posix-functions/round.texi: Likewise.
7772         * doc/posix-functions/roundl.texi: Likewise.
7773         * doc/posix-functions/truncf.texi: Likewise.
7774         * doc/posix-functions/trunc.texi: Likewise.
7775         * doc/posix-functions/truncl.texi: Likewise.
7776
7777 2010-12-20  Bruno Haible  <bruno@clisp.org>
7778
7779         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7780         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7781         * doc/posix-functions/round.texi: Likewise.
7782         * doc/posix-functions/roundl.texi: Likewise.
7783
7784 2010-12-20  Bruno Haible  <bruno@clisp.org>
7785
7786         ttyname_r: Add missing declaration on HP-UX 11.
7787         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7788         HAVE_TTYNAME_R.
7789         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7790         declared. Set HAVE_TTYNAME_R always.
7791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7792         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7793         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7794         HAVE_TTYNAME_R.
7795         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7796
7797 2010-12-20  Bruno Haible  <bruno@clisp.org>
7798
7799         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7800         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7801         * doc/posix-functions/getlogin_r.texi: Likewise.
7802         * tests/test-getlogin.c: Include <errno.h>.
7803         (main): Avoid test failure on HP-UX 11.11.
7804         * tests/test-getlogin_r.c (main): Likewise.
7805
7806 2010-12-20  Bruno Haible  <bruno@clisp.org>
7807
7808         getlogin_r: Add missing declaration on HP-UX 11.
7809         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7810         declared also when it exists as a function.
7811         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7812
7813 2010-12-20  Bruno Haible  <bruno@clisp.org>
7814
7815         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7816         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7817         through wcrtomb.
7818
7819 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7820
7821         ftoastr: fix comment
7822         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7824
7825 2010-12-19  Bruno Haible  <bruno@clisp.org>
7826
7827         isnan: Ensure it is a macro.
7828         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7829         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7830         Solaris.
7831
7832 2010-12-19  Bruno Haible  <bruno@clisp.org>
7833
7834         ldexpl test: Fix link error on OSF/1 5.1.
7835         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7836
7837 2010-12-19  Bruno Haible  <bruno@clisp.org>
7838
7839         wctype: Make it work in C++ mode on OSF/1 5.1.
7840         * lib/wctype.in.h (iswblank): Declare but not define here.
7841         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7842         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7843         * modules/wctype (Files): Add lib/iswblank.c.
7844
7845 2010-12-19  Bruno Haible  <bruno@clisp.org>
7846
7847         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7848         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7849         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7850
7851 2010-12-19  Bruno Haible  <bruno@clisp.org>
7852
7853         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7854         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7855         _POSIX_PII_SOCKET.
7856         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7857         * doc/posix-functions/recvfrom.texi: Likewise.
7858         * doc/posix-functions/send.texi: Likewise.
7859         * doc/posix-functions/sendto.texi: Likewise.
7860
7861 2010-12-19  Bruno Haible  <bruno@clisp.org>
7862
7863         tcgetsid: Add missing declaration on OSF/1 5.1.
7864         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7865         HAVE_TCGETSID.
7866         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7867         Don't set HAVE_TCGETSID.
7868         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7869         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7870         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7871         HAVE_TCGETSID.
7872         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7873
7874 2010-12-19  Bruno Haible  <bruno@clisp.org>
7875
7876         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7877         * lib/stdio.in.h: During the include_next statement, let recursive
7878         includes of this file include only the system header file.
7879
7880 2010-12-19  Bruno Haible  <bruno@clisp.org>
7881
7882         iconv_open: Fix regression from 2010-12-04.
7883         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7884         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7885
7886 2010-12-19  Bruno Haible  <bruno@clisp.org>
7887
7888         stdbool test: Avoid a gcc warning.
7889         * tests/test-stdbool.c (main): Fail if e1 is false.
7890         Reported by Jim Meyering.
7891
7892 2010-12-19  Jim Meyering  <meyering@redhat.com>
7893
7894         setenv: restore to working order
7895         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7896         mistakenly removed.
7897         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7898         HAVE_SETENV.
7899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7900         HAVE_SETENV.
7901
7902 2010-12-19  Bruno Haible  <bruno@clisp.org>
7903
7904         Document some different function declarations on OSF/1 5.1.
7905         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7906         * doc/posix-functions/inet_ntop.texi: Likewise.
7907         * doc/posix-functions/gethostname.texi: Likewise.
7908         * lib/unistd.in.h (gethostname): Update comment.
7909
7910 2010-12-19  Bruno Haible  <bruno@clisp.org>
7911
7912         doc: Mention vasprintf-posix module.
7913         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7914         the 'vasprintf-posix' module.
7915         * doc/glibc-functions/vasprintf.texi: Likewise.
7916
7917 2010-12-19  Bruno Haible  <bruno@clisp.org>
7918
7919         unsetenv: Add missing declaration on OSF/1 5.1.
7920         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7921         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7922         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7924         not HAVE_UNSETENV.
7925         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7926         HAVE_UNSETENV.
7927         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7928
7929 2010-12-19  Bruno Haible  <bruno@clisp.org>
7930
7931         setenv: Add missing declaration on OSF/1 5.1.
7932         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7933         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7934         declared. Don't set HAVE_SETENV.
7935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7936         not HAVE_SETENV.
7937         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7938         HAVE_SETENV.
7939         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7940
7941 2010-12-19  Bruno Haible  <bruno@clisp.org>
7942
7943         nl_langinfo tests: Avoid gcc warning.
7944         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7945
7946 2010-12-19  Bruno Haible  <bruno@clisp.org>
7947
7948         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7949         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7950         _GL_CXXALIAS_SYS.
7951
7952 2010-12-19  Bruno Haible  <bruno@clisp.org>
7953
7954         stdbool: Relax test.
7955         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7956         address to 'bool' work in static initializer, for compilers other than
7957         GCC.
7958
7959 2010-12-19  Bruno Haible  <bruno@clisp.org>
7960
7961         ftello: Add missing declaration on OSF/1 5.1.
7962         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7963         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7965         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7966         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7967
7968 2010-12-19  Bruno Haible  <bruno@clisp.org>
7969
7970         fseeko: Add missing declaration on OSF/1 5.1.
7971         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7972         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7974         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7975         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7976
7977 2010-12-19  Bruno Haible  <bruno@clisp.org>
7978
7979         fchdir: Add missing declaration on OSF/1 5.1.
7980         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7983         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7984         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7985
7986 2010-12-19  Bruno Haible  <bruno@clisp.org>
7987
7988         relocatable-prog-wrapper: Separate from relocatable-prog.
7989         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7990         uninstall-relocwrapper rule here.
7991         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7992         Reported by Ian Beckwith <ianb@erislabs.net>.
7993
7994 2010-12-19  Bruno Haible  <bruno@clisp.org>
7995
7996         unistr/u8-mbsnlen: Add missing dependency.
7997         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7998         Reported by Ian Beckwith <ianb@erislabs.net>.
7999
8000 2010-12-19  Bruno Haible  <bruno@clisp.org>
8001
8002         iconv: Make it possible again to use this module without 'iconv-h'.
8003         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8004         if it is not defined.
8005         Reported by Ian Beckwith <ianb@erislabs.net>.
8006
8007 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8008
8009         acl: port to Solaris 8 when copying from tmpfs to ufs
8010         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8011         error number.  Problem observed on Solaris 8 with latest
8012         coreutils, with "mv A B", where A is on a tmpfs file system and B
8013         is on a ufs file system.  This caused coreutils' mv/part-symlink
8014         test to fail.
8015
8016         tests: set fail=0 at start
8017         * tests/init.sh (setup_): Move fail=0 initialization here ...
8018         (mktempd_): ... from here, so that tests can rely on fail being
8019         set to 0 initially.  This fixes a problem in coreutils; see:
8020         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8021
8022 2010-12-18  Bruno Haible  <bruno@clisp.org>
8023
8024         memmem-simple: Stylistic changes.
8025         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8026         Fix preprocessor directive indentation.
8027
8028 2010-12-15  Pádraig Brady <P@draigBrady.com>
8029
8030         memmem, memmem-simple: reorganize and expand empty needle check
8031         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8032         functional checks to memmem-simple so that one has a fully functional
8033         memmem by using just this module.
8034         Restrict the performance only check to the memmem module.
8035         Also expand the empty needle check to ensure the correct
8036         pointer is returned, not just a non NULL pointer.
8037         * doc/glibc-functions/memmem.texi: Rearrange the portability
8038         documentation to correlate with the rearranged checks.
8039         Clarify exactly how the memmem and memmem-simple modules
8040         relate to each other.
8041
8042 2010-12-15  Pádraig Brady <P@draigBrady.com>
8043             Bruno Haible  <bruno@clisp.org>
8044
8045         Improve cross-compilation guesses for uClibc.
8046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8047         that uClibc does not have the glibc bug.
8048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8049         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8050
8051 2010-12-14  Eric Blake  <eblake@redhat.com>
8052
8053         configmake: provide fallbacks for oldest supported autotools
8054         * m4/configmake.m4: New file.
8055         * modules/configmake (Files): Ship it.
8056         (configure.ac): Use it to guarantee fallbacks.
8057
8058 2010-12-13  Pádraig Brady <P@draigBrady.com>
8059
8060         read-file: Improve handling of large files
8061         * lib/read-file.c (fread_file): Minimize realloc()s
8062         for regular files, and better manage sizes around SIZE_MAX.
8063
8064 2010-12-13  Eric Blake  <eblake@redhat.com>
8065
8066         cloexec, fcntl: relax license
8067         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8068         consent from all contributors.
8069         * modules/fcntl (License): Likewise.
8070
8071 2010-12-10  Bruno Haible  <bruno@clisp.org>
8072
8073         Tests for module 'pipe-posix'.
8074         * modules/pipe-posix-tests: New file.
8075         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8076
8077 2010-12-10  Bruno Haible  <bruno@clisp.org>
8078
8079         pipe-posix: Make it work in C++ mode.
8080         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8081         (pipe): Use common idiom, not a macro definition.
8082         * lib/pipe.c: New file.
8083         * m4/pipe.m4: New file.
8084         * modules/pipe-posix (Description): Enhance.
8085         (Files): Add lib/pipe.c, m4/pipe.m4.
8086         (configure.ac): Invoke gl_FUNC_PIPE.
8087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8088         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8089         * tests/test-unistd-c++.cc: Check the signature of pipe.
8090
8091 2010-12-10  Bruno Haible  <bruno@clisp.org>
8092
8093         Rename module 'pipe' to 'spawn-pipe'.
8094         * modules/spawn-pipe: New file, renamed from modules/pipe.
8095         (Files, configure.ac, Makefile.am): Update.
8096         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8097         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8098         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8099         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8100         "spawn-pipe.h" instead of "pipe.h".
8101         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8102         to gl_SPAWN_PIPE.
8103         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8104         (Files, Makefile.am): Update.
8105         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8106         Update.
8107         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8108         Include "spawn-pipe.h" instead of "pipe.h".
8109         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8110         * lib/javacomp.c: Likewise.
8111         * lib/javaversion.c: Likewise.
8112         * lib/pipe-filter-gi.c: Likewise.
8113         * lib/pipe-filter-ii.c: Likewise.
8114         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8115         * modules/javacomp (Depends-on): Likewise.
8116         * modules/javaversion (Depends-on): Likewise.
8117         * modules/pipe-filter-gi (Depends-on): Likewise.
8118         * modules/pipe-filter-ii (Depends-on): Likewise.
8119         * MODULES.html.sh (Executing programs): Update.
8120         * NEWS: Mention the change.
8121
8122 2010-12-10  Eric Blake  <eblake@redhat.com>
8123
8124         pipe-posix: new module
8125         * modules/pipe-posix: New file.
8126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8127         (gl_UNISTD_H): Check for declaration.
8128         * modules/unistd (Makefile.am): Substitute it.
8129         * lib/unistd.in.h (pipe): Provide it for mingw.
8130         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8131         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8132
8133 2010-12-07  Bruno Haible  <bruno@clisp.org>
8134
8135         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8136         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8137         u8_strcmp_gnu.
8138         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8139
8140 2010-12-06  Bruno Haible  <bruno@clisp.org>
8141
8142         Update internal documentation.
8143         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8144
8145 2010-12-04  Bruno Haible  <bruno@clisp.org>
8146
8147         Put more information about failed tests into the test return codes.
8148         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8149         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8150         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8152         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8155         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8156         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8159         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8160         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8161         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8162         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8163         returns a bit mask.
8164         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8165         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8166         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8167         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8168         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8169         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8170         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8172         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8173         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8174         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8175         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8176         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8177         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8178         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8179         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8180         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8181         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8182         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8183         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8184         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8185         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8187         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8188         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8189         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8190         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8191         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8192         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8193         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8194         gl_PRINTF_PRECISION): Likewise.
8195         * m4/regex.m4 (gl_REGEX): Likewise.
8196         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8197         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8198         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8199         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8200         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8202         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8203         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8204         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8205         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8206         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8207         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8209         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8210         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8211         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8212         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8215         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8216         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8217         enumerated value.
8218         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8219
8220 2010-12-04  Bruno Haible  <bruno@clisp.org>
8221
8222         Update for Solaris 11 2010-11.
8223         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8224         Express, released in November 2010.
8225
8226 2010-12-04  Bruno Haible  <bruno@clisp.org>
8227
8228         nproc: Relax license.
8229         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8230         and Paul Eggert.
8231         Requested by Ludovic Courtès <ludo@gnu.org>.
8232
8233 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8234
8235         utimecmp: fine-grained src to nearby coarse-grained dest
8236
8237         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8238         and the source is on a file system with higher-resolution time
8239         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8240         not work, and the time stamps are close together, the algorithm to
8241         determine the exact resolution from the read-back mtime was buggy:
8242         it had a "!=" where it should have had an "==".  This bug has been
8243         in the code ever since it was introduced to gnulib.
8244         Problem reported by Dan Jacobson in
8245         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8246
8247 2010-11-30  Bruno Haible  <bruno@clisp.org>
8248
8249         strerror_r-posix: Fix autoconf test.
8250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8251
8252 2010-11-28  Bruno Haible  <bruno@clisp.org>
8253             Paul Eggert  <eggert@cs.ucla.edu>
8254
8255         Tests for module 'getdomainname'.
8256         * modules/getdomainname-tests: New file.
8257         * tests/test-getdomainname.c: New file, based on
8258         tests/test-gethostname.c.
8259
8260 2010-11-28  Bruno Haible  <bruno@clisp.org>
8261             Paul Eggert  <eggert@cs.ucla.edu>
8262
8263         getdomainname: Use the system function when possible.
8264         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8265         (getdomainname): Replace if needed. Provide the declaration if it is
8266         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8267         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8268         (getdomainname): When the system has getdomainname, call the system
8269         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8270         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8271         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8272         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8273         the function if its second argument is of type 'int' or if it is found
8274         in libnsl.
8275         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8276         <sys/systeminfo.h> and sysinfo().
8277         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8279         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8280         HAVE_GETDOMAINNAME.
8281         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8282         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8283         * doc/glibc-functions/getdomainname.texi: Document the problems with
8284         the getdomainname declaration.
8285
8286 2010-11-28  Bruno Haible  <bruno@clisp.org>
8287
8288         sys_socket: Ensure ss_family field on AIX.
8289         * lib/sys_socket.in.h (ss_family): New macro definition.
8290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8291         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8292         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8293         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8294         * modules/sys_socket (Makefile.am): Substitute
8295         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8296         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8297
8298 2010-11-27  Bruno Haible  <bruno@clisp.org>
8299
8300         readline: Improve configure output.
8301         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8302         "checking for readline..." result understandable.
8303
8304 2010-11-27  Bruno Haible  <bruno@clisp.org>
8305
8306         *printf-posix: Detect a bug on Solaris 10/x86.
8307         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8308         for floating-point output.
8309         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8310         directive.
8311         * tests/test-snprintf-posix.h (test_function): Likewise.
8312         * tests/test-sprintf-posix.h (test_function): Likewise.
8313         * tests/test-vasprintf-posix.c (test_function): Likewise.
8314         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8315         * doc/posix-functions/printf.texi: Likewise.
8316         * doc/posix-functions/snprintf.texi: Likewise.
8317         * doc/posix-functions/sprintf.texi: Likewise.
8318         * doc/posix-functions/vfprintf.texi: Likewise.
8319         * doc/posix-functions/vprintf.texi: Likewise.
8320         * doc/posix-functions/vsnprintf.texi: Likewise.
8321         * doc/posix-functions/vsprintf.texi: Likewise.
8322         * doc/glibc-functions/obstack_printf.texi: Likewise.
8323         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8324
8325 2010-11-27  Bruno Haible  <bruno@clisp.org>
8326
8327         Fix link error when module libunistring-optional is in use.
8328         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8329         * modules/striconveha-tests (Makefile.am): Likewise.
8330
8331 2010-11-27  Bruno Haible  <bruno@clisp.org>
8332
8333         regex: Mention link dependencies.
8334         * modules/regex (Link): New section.
8335         * modules/rpmatch (Link): Likewise.
8336         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8337
8338 2010-11-27  Bruno Haible  <bruno@clisp.org>
8339
8340         ftoastr: Fix compilation error on Solaris.
8341         * lib/ftoastr.c: Include <config.h>.
8342
8343 2010-11-27  Bruno Haible  <bruno@clisp.org>
8344
8345         getloadavg: Update documentation.
8346         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8347
8348 2010-11-27  Bruno Haible  <bruno@clisp.org>
8349
8350         sys_socket: Fix test whether the functions are declared.
8351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8352         not <sys/select.h>.
8353
8354 2010-11-27  Bruno Haible  <bruno@clisp.org>
8355
8356         getpass: Make sure to get system declaration on some platforms.
8357         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8358         gl_USE_SYSTEM_EXTENSIONS.
8359         * modules/getpass (Depends-on): Add extensions.
8360
8361 2010-11-26  Bruno Haible  <bruno@clisp.org>
8362
8363         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8364         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8365         'iconv' module is present.
8366         (ICONV_CONST): New macro.
8367         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8368         ICONV_CONST.
8369         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8370         set ICONV_CONST.
8371         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8372         here.
8373         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8374         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8375         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8376         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8377         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8378         present.
8379
8380 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8381
8382         ftoastr: comment fix
8383         * lib/ftoastr.c: "little" -> "little or no" in comment
8384
8385 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8386
8387         stdint: port to GCC 4.3 + OSX + Octave
8388         On this platform, stdint.h is buggy and defines int64_t to long
8389         long int.  The replacement defined it to long int, causing
8390         problems with C++ style name mangling.  Instead, trust the system
8391         definition if INT64_MAX is defined, and likewise for the unsigned
8392         variant.   Problem reported by Jarno Rajahalme in
8393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8394         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8395         and don't mess with int64_t and INT64_MAX in this case.
8396         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8397
8398 2010-11-24  Bruno Haible  <bruno@clisp.org>
8399
8400         doc: Corrections regarding MacOS X 10.4 and 10.5.
8401         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8402         MacOS X.
8403         Reported by Simon Josefsson.
8404
8405 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8406
8407         Uninstall ".bin" files installed by relocwrapper.
8408         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8409         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8410         unless it is already there.
8411
8412 2010-11-21  Bruno Haible  <bruno@clisp.org>
8413
8414         Update for NetBSD 5.0.
8415         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8416         NetBSD; the test fails on NetBSD 5.0.
8417         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8418         about NetBSD.
8419
8420 2010-11-21  Bruno Haible  <bruno@clisp.org>
8421
8422         Update for HP-UX 11.23 and HP-UX 11.31.
8423         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8424         HP-UX.
8425
8426 2010-11-21  Bruno Haible  <bruno@clisp.org>
8427
8428         Update for MacOS X 10.5.
8429         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8430         MacOS X; the test fails on MacOS X 10.5.8.
8431         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8432         about MacOS X.
8433
8434 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8435
8436         bootstrap: add bootstrap_sync option.
8437         See discussion at
8438         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8440         * build-aux/bootstrap: Accept --bootstrap-sync to update
8441         bootstrap if it is not identical to the local gnulib's
8442         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8443         enable this by default.  Accept --no-bootstrap-sync to disable
8444         it.
8445
8446 2010-11-20  Bruno Haible  <bruno@clisp.org>
8447
8448         Ensure that <features.h> is included before __GLIBC__ is tested.
8449         * lib/printf-parse.h: Include <features.h>.
8450         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8451         Reported by Mike Frysinger <vapier@gentoo.org>.
8452
8453         Ensure that <features.h> is included before __GLIBC__ is tested.
8454         * lib/wchar.in.h: Include <features.h>.
8455         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8456         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8457         Reported by Mike Frysinger <vapier@gentoo.org>.
8458
8459         Ensure that <features.h> is included before __GLIBC__ is tested.
8460         * lib/arpa_inet.in.h: Include <features.h>.
8461         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8462         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8463         Reported by Mike Frysinger <vapier@gentoo.org>.
8464
8465         Ensure that <features.h> is included before __GLIBC__ is tested.
8466         * build-aux/link-warning.h: Include <features.h>.
8467         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8468         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8469         Reported by Mike Frysinger <vapier@gentoo.org>.
8470
8471         Ensure that <features.h> is included before __GLIBC__ is tested.
8472         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8473         Reported by Mike Frysinger <vapier@gentoo.org>.
8474
8475 2010-11-20  Bruno Haible  <bruno@clisp.org>
8476
8477         memmem: Fix autoconf test.
8478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8479
8480 2010-11-20  Bruno Haible  <bruno@clisp.org>
8481
8482         Port to uClibc.
8483         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8484         * lib/fcntl.in.h: Likewise.
8485         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8486         * lib/mbrtowc.c (mbrtowc): Likewise.
8487         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8488         * lib/strerror_r.c: Likewise.
8489         * lib/unistr/u8-strnlen.c: Likewise.
8490         * lib/vasnprintf.c (decimal_point_char): Likewise.
8491         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8492         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8493         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8494         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8495         * tests/test-sigaction.c (handler, main): Likewise.
8496         * lib/freading.h: Treat uClibc like a non-glibc platform.
8497         * lib/freading.c: Likewise.
8498         * lib/gettext.h: Likewise.
8499         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8500         Likewise.
8501         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8502         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8503         * lib/propername.c (proper_name_utf8): Likewise.
8504         * lib/spawn.in.h: Likewise.
8505         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8506         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8507         mem_cd_iconveh_internal): Likewise.
8508         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8509         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8510         strstr, strcasestr): Likewise.
8511         * lib/unicodeio.c (unicode_to_mb): Likewise.
8512         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8513         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8514         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8515         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8516         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8517         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8518         * lib/unistr/u8-stpncpy.c: Likewise.
8519         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8520         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8521         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8522         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8523         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8524         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8525         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8528         Likewise.
8529         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8530         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8534         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8535         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8536         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8537         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8538         * tests/test-striconveha.c (main): Likewise.
8539         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8540         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8541         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8542         * doc/posix-functions/getline.texi: Likewise.
8543         Reported by Mike Frysinger <vapier@gentoo.org>.
8544
8545 2010-11-20  Bruno Haible  <bruno@clisp.org>
8546
8547         nproc: Fix condition.
8548         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8549         HAVE_PTHREAD_AFFINITY_NP.
8550
8551 2010-11-20  Bruno Haible  <bruno@clisp.org>
8552
8553         Fix a comment.
8554         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8555
8556 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8557
8558         ftoastr: don't assume snprintf
8559         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8560         Implement a subset of snprintf here, by using sprintf safely.
8561         * modules/ftoastr (Depends-on): Remove snprintf.
8562
8563 2010-11-19  Jim Meyering  <meyering@redhat.com>
8564
8565         test-rename.h: fix compilation failure
8566         * tests/test-rename.h (test_rename): Add omitted "}".
8567
8568 2010-11-17  Jim Meyering  <meyering@redhat.com>
8569
8570         maint.mk: add a URL discussing the no-@acronym policy
8571         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8572
8573 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8574
8575         ftoastr: depend on snprintf, improve comments
8576         * lib/ftoastr.c: Also mention Loitsch's draft.
8577         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8578         needed in the current implementation, but it might simplify
8579         speeding up the code later.
8580         * modules/ftoastr: Depend on snprintf; this improves portability.
8581         Suggested by Bruno Haible in the same email.
8582
8583         ftoastr: port to hosts lacking strtof and strtold
8584         Problem reported by Bruno Haible in
8585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8586         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8587         environment and strtold (and presumably strtof) are not available.
8588         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8589         (configure.ac): Require gl_C99_STRTOLD.
8590
8591 2010-11-18  Bruno Haible  <bruno@clisp.org>
8592
8593         c-strtold: Avoid link error on AIX 7.
8594         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8595         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8596         (gl_C_STRTOLD): Test whether strtold_l exists.
8597         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8598
8599 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8600
8601         intprops: new macro INT_BITS_STRLEN_BOUND
8602         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8603         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8604         not exposed.  Also, it uses a slightly tighter bound than before;
8605         though this makes no practical difference, we might as well be as
8606         tight as we easily can.
8607
8608         ftoastr: new module, for lossless conversion of floats to short strings
8609         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8610         * modules/ftoastr: New files.
8611
8612 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8613
8614         bootstrap: port to Solaris sed
8615         * build-aux/bootstrap (get_version): Port to Solaris sed.
8616         See Ralf Wildenhues's note in
8617         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8618
8619 2010-11-14  Jim Meyering  <meyering@redhat.com>
8620
8621         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8622         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8623         and move definition closer to sole use.
8624
8625 2010-11-13  Jim Meyering  <meyering@redhat.com>
8626
8627         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8628         Now we require at least autoconf-2.59, which means the work-around
8629         is no longer needed.
8630         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8631         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8632         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8633         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8634         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8635
8636 2010-11-13  Bruno Haible  <bruno@clisp.org>
8637
8638         rename, renameat: Avoid test failures at NFS mounted locations.
8639         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8640         functions.
8641         (test_rename): Use assert_nonexistent.
8642         * tests/test-rename.c: Include <dirent.h>.
8643         * tests/test-renameat.c: Likewise.
8644         Reported by Gary V. Vaughan <gary@gnu.org>.
8645
8646         rename, renameat: Document Linux bug with NFS
8647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8648         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8649         * doc/posix-functions/renameat.texi: Likewise.
8650         Suggested by Eric Blake.
8651
8652 2010-11-13  Bruno Haible  <bruno@clisp.org>
8653
8654         rename test: Add comments.
8655         * tests/test-rename.h (test_rename): Add structure and comments.
8656
8657 2010-11-13  Eric Blake  <eblake@redhat.com>
8658
8659         maintainer-makefile: cover a few more files
8660         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8661         scripts generated within C files, for libvirt.
8662
8663 2010-11-13  Bruno Haible  <bruno@clisp.org>
8664
8665         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8666         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8667         character, return the number of bytes that belong together, not always
8668         1.
8669         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8670         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8671         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8672         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8673         number of bytes of an invalid character.
8674         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8675         (main): Invoke it.
8676         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8677         results.
8678         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8679         malformed byte sequences.
8680         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8681         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8682         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8683         Reported by Ben Pfaff and Paolo Bonzini.
8684
8685 2010-11-13  Bruno Haible  <bruno@clisp.org>
8686
8687         openat: Work around glibc bug with fchownat() and empty file names.
8688         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8689         (gl_FUNC_FCHOWNAT): Invoke it.
8690         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8691         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8692         Reported by Gary V. Vaughan <gary@gnu.org>.
8693
8694 2010-11-13  Bruno Haible  <bruno@clisp.org>
8695
8696         openat: Ensure autoconf macro ordering.
8697         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8698         gl_USE_SYSTEM_EXTENSIONS.
8699         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8700
8701 2010-11-13  Bruno Haible  <bruno@clisp.org>
8702
8703         Update comments.
8704         * lib/unistr/u8-check.c: Update file name in comments.
8705         * lib/unistr/u8-mblen.c: Likewise.
8706         * lib/unistr/u8-prev.c: Likewise.
8707         * lib/unistr/u8-strmblen.c: Likewise.
8708         * lib/unistr/u8-strmbtouc.c: Likewise.
8709
8710 2010-11-13  Jim Meyering  <meyering@redhat.com>
8711
8712         tests: avoid test failure on Solaris 10 due to lack of PATH export
8713         * tests/test-update-copyright.sh: Don't forget to export PATH.
8714
8715         init.sh: ensure that IFS is defined, just in case...
8716         * tests/init.sh (setup_): Ensure that IFS is defined,
8717         so that saving and restoring it works as expected.  This
8718         appears to be useful at least for an old version of dash
8719         from a long time ago (RH 6).  See here for details:
8720         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8721
8722         maint.mk: tighten "test a == b" check
8723         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8724         test to files that contain something like #!/bin/sh.
8725         Without this, coreutils would get two false positives in
8726         the comments of C source files.
8727
8728 2010-11-12  Eric Blake  <eblake@redhat.com>
8729
8730         bootstrap: fix typo in previous attempt
8731         * build-aux/bootstrap (buildreq): Correct the grouping.
8732         Reported by Paul Eggert.
8733
8734         maintainer-makefile: prohibit test x == x
8735         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8736         Based on a report by Matthias Bolte.
8737
8738         bootstrap: allow FreeBSD gzip
8739         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8740         which has no '.' and goes to stderr.
8741         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8742         Reported by Matthias Bolte.
8743
8744         maintainer-makefile: check for i18n setup
8745         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8746         will likely work.
8747
8748 2010-11-12  Bruno Haible  <bruno@clisp.org>
8749
8750         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8751         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8752         * lib/nanosleep.c (nanosleep): Likewise.
8753
8754 2010-11-11  Bruno Haible  <bruno@clisp.org>
8755
8756         fcntl-h: Fix for use of C++ on glibc systems.
8757         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8758         also on glibc systems in C++ mode.
8759         Reported by Gary V. Vaughan <gary@gnu.org>.
8760
8761 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8762
8763         mknod: avoid false failure with dash
8764         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8765
8766 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8767
8768         unlink: Fix "is it should" typo in diagnostic.
8769         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8770         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8771
8772 2010-11-11  Bruno Haible  <bruno@clisp.org>
8773
8774         Tests for module 'strerror_r-posix'.
8775         * modules/strerror_r-posix-tests: New file.
8776         * tests/test-strerror_r.c: New file.
8777         * tests/test-string-c++.cc: Check the signature of strerror_r.
8778
8779         New module 'strerror_r-posix'.
8780         * lib/string.in.h (strerror_r): New declaration.
8781         * lib/strerror_r.c: New file.
8782         * m4/strerror_r.m4: New file.
8783         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8784         of strerror_r.
8785         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8786         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8787         * modules/strerror_r-posix: New file.
8788         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8789         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8790         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8791         portability problems.
8792
8793 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8794
8795         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8796         line is also considered for output. Quoted function name in shell
8797         command, so temporary files for functions like MyClass::operator()
8798         are removed correctly without errors.
8799
8800 2010-11-09  Bruno Haible  <bruno@clisp.org>
8801
8802         * doc/posix-functions/strerror.texi: List more failing platforms.
8803
8804         * doc/posix-functions/strerror.texi: Add a comment.
8805
8806 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8807
8808         fdopendir: fix bug on MacOS X when low on file descriptors
8809
8810         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8811         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8812         All callers changed.
8813         (fdopendir): Invoke save_cwd at the top level, not after using
8814         multiple dup() calls to use up file descriptors.  Then retry
8815         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8816         less than the maximum number of open file descriptors, because
8817         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8818         on Mac OS X 10.6.4 for tar 1.24
8819         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8820         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8821         and for tar 1.25
8822         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8823
8824 2010-11-07  Bruno Haible  <bruno@clisp.org>
8825
8826         vasnprintf: Support I flag on glibc systems.
8827         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8828         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8829         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8830         snprintf function.
8831         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8832         glibc systems.
8833         * tests/test-vasnprintf-posix3.c: New file.
8834         * modules/vasnprintf-posix-tests (Files): Add it.
8835         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8836
8837 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8838
8839         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8840         * MODULES.html.sh: For compiler warnings, use name
8841         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8842
8843 2010-11-05  Eric Blake  <eblake@redhat.com>
8844
8845         ceil, floor: avoid spurious failure with icc
8846         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8847         [denormals-as-zero] when optimizing without -mieee-fp option.
8848         * tests/test-floorf2.c (floorf_reference): Likewise.
8849         * tests/test-ceilf1.c (dummy): New function.
8850         (main): Use it to outsmart icc's optimization.
8851         * tests/test-floorf1.c (dummy, main): Likewise.
8852
8853         tests: require working signbit
8854         * modules/ceilf-tests (Depends-on): Add signbit.
8855         * modules/ceill-tests (Depends-on): Likewise.
8856         * modules/floorf-tests (Depends-on): Likewise.
8857         * modules/floorl-tests (Depends-on): Likewise.
8858         * modules/round-tests (Depends-on): Likewise.
8859         * modules/roundf-tests (Depends-on): Likewise.
8860         * modules/roundl-tests (Depends-on): Likewise.
8861         * modules/trunc-tests (Depends-on): Likewise.
8862         * modules/truncf-tests (Depends-on): Likewise.
8863         * modules/truncl-tests (Depends-on): Likewise.
8864
8865         strtod: work around icc bug
8866         * lib/strtod.c (minus_zero): Define to working value.
8867         (strtod): Use it to avoid icc bug.
8868
8869         copysign: enhance tests
8870         * modules/copysign-tests (Files): Add minus-zero.h.
8871         * tests/test-copysign.c (main): Also test zeros.
8872
8873 2010-11-04  Eric Blake  <eblake@redhat.com>
8874
8875         ceil, floor, round, trunc: enhance tests of -0
8876         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8877         * tests/test-ceill.c (main): Likewise.
8878         * tests/test-floorf1.c (main): Likewise.
8879         * tests/test-floorl.c (main): Likewise.
8880         * tests/test-round1.c (main): Likewise.
8881         * tests/test-roundf1.c (main): Likewise.
8882         * tests/test-roundl.c (main): Likewise.
8883         * tests/test-trunc1.c (main): Likewise.
8884         * tests/test-truncf1.c (main): Likewise.
8885         * tests/test-truncl.c (main): Likewise.
8886
8887 2010-11-04  Eric Blake  <eblake@redhat.com>
8888
8889         frexp, tests: work around ICC bug with -zero
8890         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8891         works with more compilers.
8892         * tests/minus-zero.h: New file.
8893         * modules/ceilf-tests (Files): Include it.
8894         * modules/ceill-tests (Files): Likewise.
8895         * modules/floorf-tests (Files): Likewise.
8896         * modules/floorl-tests (Files): Likewise.
8897         * modules/frexp-nolibm-tests (Files): Likewise.
8898         * modules/frexp-tests (Files): Likewise.
8899         * modules/frexpl-nolibm-tests (Files): Likewise.
8900         * modules/frexpl-tests (Files): Likewise.
8901         * modules/isnan-tests (Files): Likewise.
8902         * modules/isnand-nolibm-tests (Files): Likewise.
8903         * modules/isnand-tests (Files): Likewise.
8904         * modules/isnanf-nolibm-tests (Files): Likewise.
8905         * modules/isnanf-tests (Files): Likewise.
8906         * modules/isnanl-nolibm-tests (Files): Likewise.
8907         * modules/isnanl-tests (Files): Likewise.
8908         * modules/round-tests (Files): Likewise.
8909         * modules/roundf-tests (Files): Likewise.
8910         * modules/roundl-tests (Files): Likewise.
8911         * modules/ldexpl-tests (Files): Likewise.
8912         * modules/signbit-tests (Files): Likewise.
8913         * modules/snprintf-posix-tests (Files): Likewise.
8914         * modules/sprintf-posix-tests (Files): Likewise.
8915         * modules/strtod-tests (Files): Likewise.
8916         * modules/trunc-tests (Files): Likewise.
8917         * modules/truncf-tests (Files): Likewise.
8918         * modules/truncl-tests (Files): Likewise.
8919         * modules/vsnprintf-posix-tests (Files): Likewise.
8920         * modules/vsprintf-posix-tests (Files): Likewise.
8921         * modules/vasnprintf-posix-tests (Files): Likewise.
8922         * modules/vasprintf-posix-tests (Files): Likewise.
8923         * tests/test-ceilf1.c (main): Use it.
8924         * tests/test-ceill.c (main): Likewise.
8925         * tests/test-floorf1.c (main): Likewise.
8926         * tests/test-floorl.c (main): Likewise.
8927         * tests/test-frexp.c (main): Likewise.
8928         * tests/test-frexpl.c (main): Likewise.
8929         * tests/test-isnan.c (main): Likewise.
8930         * tests/test-isnand.h (main): Likewise.
8931         * tests/test-isnanf.h (main): Likewise.
8932         * tests/test-isnanl.h (main): Likewise.
8933         * tests/test-ldexpl.c (main): Likewise.
8934         * tests/test-round.c (main): Likewise.
8935         * tests/test-roundf.c (main): Likewise.
8936         * tests/test-roundl.c (main): Likewise.
8937         * tests/test-signbit.c (test_signbitf, test_signbitd)
8938         (test_signbitl): Likewise.
8939         * tests/test-snprintf-posix.h (test_function): Likewise.
8940         * tests/test-sprintf-posix.h (test_function): Likewise.
8941         * tests/test-strtod.c (main): Likewise.
8942         * tests/test-trunc1.c (main): Likewise.
8943         * tests/test-truncf1.c (main): Likewise.
8944         * tests/test-truncl.c (main): Likewise.
8945
8946         isnanl: work around icc bug
8947         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8948
8949 2010-11-03  Eric Blake  <eblake@redhat.com>
8950
8951         tests: fix compiler warnings
8952         * tests/test-getopt.h (test_getopt): Fix condition.
8953         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8954         * tests/test-pipe2.c (main): Likewise.
8955         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8956
8957         utimens: fix broken m4 test
8958         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8959
8960 2010-10-28  Bruno Haible  <bruno@clisp.org>
8961
8962         posix_spawn*, getdtablesize: Relax license.
8963         * modules/posix_spawn (License): Change to LGPLv2+.
8964         * modules/posix_spawnp (License): Likewise.
8965         * modules/posix_spawn-internal (License): Likewise.
8966         * modules/posix_spawnattr_init (License): Likewise.
8967         * modules/posix_spawnattr_getflags (License): Likewise.
8968         * modules/posix_spawnattr_setflags (License): Likewise.
8969         * modules/posix_spawnattr_getpgroup (License): Likewise.
8970         * modules/posix_spawnattr_setpgroup (License): Likewise.
8971         * modules/posix_spawnattr_getschedparam (License): Likewise.
8972         * modules/posix_spawnattr_setschedparam (License): Likewise.
8973         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8974         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8975         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8976         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8977         * modules/posix_spawnattr_getsigmask (License): Likewise.
8978         * modules/posix_spawnattr_setsigmask (License): Likewise.
8979         * modules/posix_spawnattr_destroy (License): Likewise.
8980         * modules/posix_spawn_file_actions_init (License): Likewise.
8981         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8982         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8983         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8984         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8985         * modules/getdtablesize (License): Likewise.
8986         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8987
8988 2010-10-26  Bruno Haible  <bruno@clisp.org>
8989
8990         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8991         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8992         Cygwin and mingw.
8993         Suggested by Eric Blake.
8994
8995 2010-10-26  Bruno Haible  <bruno@clisp.org>
8996
8997         stdio: Work around compilation error due to renameat() on Solaris 10.
8998         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8999         * lib/renameat.c: Don't include <unistd.h> here.
9000         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9001         Reported by Paul Eggert and Eric Blake.
9002
9003 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9004
9005         renameat: port to Solaris 10, which declares renameat in unistd.h
9006
9007         * lib/renameat.c: Include unistd.h before stdio.h, because
9008         Solaris 10 declares renameat in unistd.h.  Problem encountered
9009         when building GNU tar 1.24 on Solaris 10.
9010
9011 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9012
9013         fdopendir: fix C89 compilation
9014         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9015         compilers.
9016
9017 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9018
9019         inttostr: simplify by removing unnecessary redundancy
9020         * lib/anytostr.c: Don't include verify.h.
9021         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9022         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9023         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9024         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9025         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9026         Likewise.
9027         * modules/inttostr (Depends-on): Remove 'verify'.
9028
9029 2010-10-23  Bruno Haible  <bruno@clisp.org>
9030
9031         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9032         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9033         Reported by Eric Blake.
9034
9035 2010-10-23  Bruno Haible  <bruno@clisp.org>
9036
9037         Tests: Fix LOCALE_JA on MirBSD 10.
9038         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9039         to an UTF-8 locale.
9040         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9041         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9042         Reported by Eric Blake.
9043
9044 2010-10-21  Bruno Haible  <bruno@clisp.org>
9045
9046         nl_langinfo test: Avoid test failure on NetBSD 5.
9047         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9048         Reported by Eric Blake.
9049
9050 2010-10-21  Eric Blake  <eblake@redhat.com>
9051
9052         c-stack: work around libsigsegv 2.8 bug
9053         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9054         overflow on at least PowerPC64.
9055
9056 2010-10-17  Bruno Haible  <bruno@clisp.org>
9057
9058         userspec: Drop redundant file.
9059         * modules/userspec (Files): Remove lib/inttostr.h.
9060
9061 2010-10-17  Bruno Haible  <bruno@clisp.org>
9062
9063         nl_langinfo tests: Silence some warnings.
9064         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9065         Reported by Jim Meyering.
9066
9067 2010-10-17  Bruno Haible  <bruno@clisp.org>
9068
9069         Make use of GCC's attribute __alloc_size__.
9070         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9071         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9072         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9073         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9074         __alloc_size__.
9075         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9076         Suggested by Jim Meyering.
9077
9078 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9079
9080         bootstrap: anchor .gitignore entries.
9081         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9082         with...
9083         (insert_vc_ignore): ... this new function, which prepends `/' to
9084         all .gitignore entries before passing them to
9085         insert_sorted_if_absent.
9086
9087 2010-10-16  Bruno Haible  <bruno@clisp.org>
9088
9089         nextafter: Fix configure check.
9090         * modules/nextafter (configure.ac): Correct expected prototype.
9091
9092 2010-10-16  Bruno Haible  <bruno@clisp.org>
9093
9094         termios: Update documentation.
9095         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9096
9097 2010-10-16  Bruno Haible  <bruno@clisp.org>
9098
9099         tests: Make them compile with TinyCC.
9100         * tests/test-strstr.c (main): Remove parentheses around array
9101         initializer.
9102
9103 2010-10-15  Eric Blake  <eblake@redhat.com>
9104
9105         ignore-value: make header idempotent
9106         * lib/ignore-value.h: Add double-inclusion guards.
9107         Reported by Stefan Berger.
9108
9109 2010-10-15  Jim Meyering  <meyering@redhat.com>
9110
9111         GNUmakefile: handle "stable" target, not "major"
9112         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9113         lists in maint.mk and announce-gen.  Without this, "make stable"
9114         would fail to ensure that $(VERSION) is up to date.
9115
9116 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9117
9118         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9119         & co.
9120
9121 2010-10-14  Bruno Haible  <bruno@clisp.org>
9122
9123         vasnprintf: Don't set errno to 0.
9124         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9125         block that sets it to 0.
9126         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9127
9128 2010-10-14  Bruno Haible  <bruno@clisp.org>
9129
9130         socketlib: Fix.
9131         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9132         gl_PREREQ_SYS_H_WINSOCK2.
9133         Reported by Ian Beckwith <ianb@erislabs.net>.
9134
9135 2010-10-13  Jim Meyering  <meyering@redhat.com>
9136
9137         test-select-stdin.c: avoid warn_unused_result warnings
9138         * tests/test-select-stdin.c: Include "macros.h".
9139         ASSERT that read and fflush succeed.
9140
9141 2010-10-13  Jim Meyering  <meyering@redhat.com>
9142
9143         git-version-gen: do require git-VC'd files in cwd
9144         * build-aux/git-version-gen: Reject a git version string
9145         if there are no commits associated with the current directory.
9146         This avoids an unlikely false-positive (unrelated dir whose parent
9147         repository also contains a tag matching v*), as pointed out
9148         by Giuseppe Scrivano in
9149         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9150
9151 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9152
9153         argv-iter: omit nonconforming declaration
9154         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9155         enum arg_iter_err declaration, which doesn't conform to C99.
9156         Solaris 10 cc warns about this.
9157
9158 2010-10-13  Eric Blake  <eblake@redhat.com>
9159
9160         termios: fix compilation on mingw
9161         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9162         (gl_TERMIOS_H): Adjust it on mingw.
9163         * modules/termios (Makefile.am): Substitute new key.
9164         * lib/termios.in.h (includes): Make include_next conditional.
9165         * doc/posix-headers/termios.texi (termios.h): Update
9166         documentation.
9167         Reported by Daniel P. Berrange.
9168
9169 2010-10-13  Jim Meyering  <meyering@redhat.com>
9170
9171         git-version-gen: don't require that .git/ be in the current dir
9172         * build-aux/git-version-gen: Adjust this script so that it works
9173         when run from any working directory beneath the top-level .git/-
9174         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9176
9177         test-select: avoid warn_unused_result warnings
9178         * tests/test-select.c: Include "macros.h".
9179         ASSERT that each call to read, write, and pipe succeeds.
9180         While not technically required, also check each "close".
9181         * modules/select-tests (Files): Add tests/macros.h.
9182
9183         test-symlinkat: remove declaration of unused local
9184         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9185
9186         test-inttostr: avoid shadowing warnings
9187         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9188         and use malloc rather than the stack for the same reason as
9189         mentioned in the comment justifying the other allocation.
9190
9191 2010-10-11  Bruno Haible  <bruno@clisp.org>
9192
9193         stdlib: Allow multiple gnulib generated replacements to coexist.
9194         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9195         Reported by Sam Steingold <sds@gnu.org>.
9196
9197 2010-10-11  Jim Meyering  <meyering@redhat.com>
9198
9199         fix a documentation typo
9200         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9201
9202 2010-10-11  Eric Blake  <eblake@redhat.com>
9203
9204         futimens: work around Solaris 11 bug
9205         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9206         * tests/test-futimens.h (test_futimens): Enhance, rather than
9207         weaken test.
9208         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9209
9210 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9211
9212         Indentation.
9213         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9214         higher-level operators more to the left.
9215
9216 2010-10-11  Jim Meyering  <meyering@redhat.com>
9217
9218         test-futimens: avoid unwarranted test failure on Solaris 5.11
9219         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9220         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9221         because it tries to dereference the NULL name argument.
9222
9223 2010-10-11  Bruno Haible  <bruno@clisp.org>
9224
9225         Indentation.
9226         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9227         indentation.
9228
9229 2010-10-11  Jim Meyering  <meyering@redhat.com>
9230
9231         spawn.in.h: make indentation consistent with parentheses
9232         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9233         Make indentation consistent with parentheses.
9234
9235 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9236
9237         Fix mismatched parens in previous commit
9238         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9239         parens.
9240
9241 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9242
9243         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9244
9245         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9246         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9247         * lib/malloca.c: Include "verify.h".
9248         (verify1): Remove, replacing with a verify call.
9249         * lib/relocwrapper.c (verify1): Likewise.
9250         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9251         Likewise.
9252         * modules/malloca (Depends-on): Add 'verify'.
9253         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9254         * modules/vasnprintf (Depends-on): Add 'verify'.
9255         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9262
9263         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9264
9265         Formerly the style was sometimes 2*X - 1, because the C standard
9266         was wrongly thought to disallow ?: in integral constant expressions.
9267         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9268         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9269         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9270         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9271         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9272         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9273         verify that time_t cannot be floating.
9274
9275 2010-10-08  Eric Blake  <eblake@redhat.com>
9276
9277         time: enforce recent POSIX ruling that time_t is integral
9278         * lib/time.in.h (__time_t_must_be_integral): Detect any
9279         problematic systems, allowing the rest of gnulib to assume POSIX.
9280
9281 2010-10-08  Jim Meyering  <meyering@redhat.com>
9282
9283         fdopendir: fix a bug on systems lacking openat and /proc support
9284         OpenBSD 4.7 is one such system.  The most noticeable effect was
9285         failure of any application making nontrivial use of fts: rm, du,
9286         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9287           ./rm: traversal failed: `a': Bad file descriptor
9288         Debugging that, you see that even though FD 6 was closed just
9289         prior to the opendir call in fd_clone_opendir, its resulting
9290         dir->dd_fd was 8, rather than the expected value of 6:
9291
9292         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9293         93                close (fd);
9294         (gdb) n
9295         94                dir = fd_clone_opendir (dupfd);
9296         (gdb) n
9297         95                saved_errno = errno;
9298         (gdb) p dir->dd_fd
9299         $11 = 8
9300
9301         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9302         The problem is that on OpenBSD, fd_clone_opendir has to resort
9303         to using the old-style save/restore CWD mechanism, due to its
9304         lack of openat/proc support, and *that* would steal the FD (6)
9305         that opendir was supposed to use.
9306
9307         The fix is to squirrel away the desired FD so that save_cwd uses a
9308         different one, and then free the dest FD right before calling opendir.
9309         That guarantees opendir will use the required file descriptor.
9310
9311         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9312
9313 2010-10-08  Bruno Haible  <bruno@clisp.org>
9314
9315         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9316         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9317
9318 2010-10-08  Bruno Haible  <bruno@clisp.org>
9319
9320         nanosleep: Make replacement POSIX compliant.
9321         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9322         is out of range.
9323         Reported by Jim Meyering.
9324
9325 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9326
9327         bootstrap: add hook for altering gnulib.mk, for Bison
9328         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9329         the Bison bootstrapping process can rewrite file names and variables
9330         in this file before later parts of 'bootstrap' use the file.
9331         Bison wants to include lib/gnulib.mk from the top-level makefile,
9332         so it needs the file names in this file to be relative to the top
9333         level, not relative to lib; plus it needs variable names to be
9334         rewritten.
9335         (slurp): Use the new function.
9336
9337         bootstrap: reformat for readability
9338         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9339
9340 2010-10-08  Eric Blake  <eblake@redhat.com>
9341
9342         docs: update cygwin progress
9343         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9344         1.7.7.
9345         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9346         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9347         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9348         * doc/posix-functions/carg.texi (carg): Likewise.
9349         * doc/posix-functions/cargf.texi (cargf): Likewise.
9350         * doc/posix-functions/casin.texi (casin): Likewise.
9351         * doc/posix-functions/casinf.texi (casinf): Likewise.
9352         * doc/posix-functions/casinh.texi (casinh): Likewise.
9353         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9354         * doc/posix-functions/catan.texi (catan): Likewise.
9355         * doc/posix-functions/catanf.texi (catanf): Likewise.
9356         * doc/posix-functions/catanh.texi (catanh): Likewise.
9357         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9358         * doc/posix-functions/ccos.texi (ccos): Likewise.
9359         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9360         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9361         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9362         * doc/posix-functions/cexp.texi (cexp): Likewise.
9363         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9364         * doc/posix-functions/cimag.texi (cimag): Likewise.
9365         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9366         * doc/posix-functions/clog.texi (clog): Likewise.
9367         * doc/posix-functions/clogf.texi (clogf): Likewise.
9368         * doc/posix-functions/conj.texi (conj): Likewise.
9369         * doc/posix-functions/conjf.texi (conjf): Likewise.
9370         * doc/posix-functions/cpow.texi (cpow): Likewise.
9371         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9372         * doc/posix-functions/cproj.texi (cproj): Likewise.
9373         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9374         * doc/posix-functions/creal.texi (creal): Likewise.
9375         * doc/posix-functions/crealf.texi (crealf): Likewise.
9376         * doc/posix-functions/csin.texi (csin): Likewise.
9377         * doc/posix-functions/csinf.texi (csinf): Likewise.
9378         * doc/posix-functions/csinh.texi (csinh): Likewise.
9379         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9380         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9381         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9382         * doc/posix-functions/ctan.texi (ctan): Likewise.
9383         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9384         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9385         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9386         * doc/posix-headers/complex.texi (complex.h): Likewise.
9387
9388 2010-10-07  Jim Meyering  <meyering@redhat.com>
9389
9390         parse-datetime: avoid compilation failure on OpenBSD 4.7
9391         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9392         This works around a compilation failure on OpenBSD 4.7:
9393         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9394
9395 2010-10-07  Eric Blake  <eblake@redhat.com>
9396
9397         docs: update cygwin progress
9398         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9399         1.7.6.
9400         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9401         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9402         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9403         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9404         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9405         Likewise.
9406         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9407         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9408         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9409         Likewise.
9410         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9411         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9412         Likewise.
9413         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9414         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9415         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9416         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9417         Likewise.
9418         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9419         Likewise.
9420         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9421
9422         docs: update parse-datetime history
9423         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9424         documentation of this function's history and alternatives.
9425
9426         cygwin: use more robust version check
9427         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9428         exclude an eventual cygwin 1.9.1.
9429         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9431         (gl_FUNC_STRCASESTR): Likewise.
9432         Reported by Bruno Haible.
9433
9434 2010-10-06  Bruno Haible  <bruno@clisp.org>
9435
9436         string, sys_select: Avoid #including large headers unless necessary.
9437         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9438         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9439         OSF/1, BeOS, Haiku.
9440         Reported by Jim Meyering.
9441
9442 2010-10-05  Eric Blake  <eblake@redhat.com>
9443
9444         memmem, strstr, strcasestr: fix bug with long periodic needle
9445         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9446         periodic needle having false positive.
9447         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9448         and cygwin 1.7.7.
9449         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9451         (gl_FUNC_STRCASESTR): Likewise.
9452         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9453         * tests/test-memmem.c (main): Expose the bug.
9454         * tests/test-strcasestr.c (main): Likewise.
9455         * tests/test-strstr.c (main): Likewise.
9456         * tests/test-c-strcasestr.c (main): Likewise.
9457         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9458         * doc/posix-functions/strstr.texi (strstr): Likewise.
9459         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9460         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9461
9462 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9463
9464         parse-datetime: do some more renaming
9465         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9466         parse_datetime, not get_date.  Mention the renaming.
9467         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9468         in comments.
9469         * m4/bison.m4: Likewise.
9470
9471 2010-10-05  Eric Blake  <eblake@redhat.com>
9472
9473         parse-datetime: better name than get_date
9474         * NEWS: Reword the deprecation notice.
9475         * modules/get_date: Rename to modules/parse-datetime.
9476         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9477         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9478         * lib/get_date.y: Rename to lib/parse-datetime.y.
9479         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9480         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9481         * doc/getdate.texi: Provide fallback wrapper.
9482         * lib/getdate.h: Move guts, and wrap...
9483         * lib/parse-datetime.h: ...new file.
9484         * lib/parse-datetime.y (get_date): Rename...
9485         (parse_datetime): ...to this.
9486         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9487         (gl_PARSE_DATETIME): ...to this.
9488         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9489         documentation.
9490         * modules/getdate (Files): Provide fallback docs and header.
9491         (Notice, Depends-on): Update references.
9492         * tests/test-parse-datetime.c: Likewise.
9493         * DEPENDENCIES: Likewise.
9494         * MODULES.html.sh (Date and time <time.h>): Likewise.
9495         * doc/parse-datetime.texi (Date input formats)
9496         (Authors of parse_datetime): Likewise.
9497         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9498         (Include): Likewise.
9499         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9500         * gnulib-tool: Likewise.
9501         * m4/bison.m4 (gl_BISON): Likewise.
9502         Suggested by Bruno Haible.
9503
9504 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9505
9506         more ports to Solaris tr, which needs [] around ranges
9507         * gnulib-tool: Solaris tr needs [] around ranges.
9508         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9509         * tests/test-pipe-filter-gi1.c (main): Likewise.
9510         * tests/test-pipe-filter-ii1.c (main): Likewise.
9511
9512 2010-10-05  Eric Blake  <eblake@redhat.com>
9513
9514         bootstrap: fix Solaris regression
9515         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9516         around ranges.
9517         Reported by Pádraig Brady.
9518
9519         bootstrap: work with pkg-config
9520         * build-aux/bootstrap (check_versions): Also transliterate - in
9521         prerequisite name.
9522         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9523         prerequisites that were already found, to avoid confusion.
9524         Reported by Justin Clift.
9525
9526         faccessat: remove unused wrappers
9527         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9528         presence of these wrappers dragged in -lgen on Solaris.
9529         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9530
9531 2010-10-05  Jim Meyering  <meyering@redhat.com>
9532
9533         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9534         * Makefile (sc_pragma_columns): New syntax-check rule.
9535
9536 2010-10-04  Bruno Haible  <bruno@clisp.org>
9537
9538         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9539         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9540         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9541         Reported by Bruce Korb and Eric Blake.
9542
9543 2010-10-04  Bruno Haible  <bruno@clisp.org>
9544
9545         threadlib: Make option --with-libpth-prefix work.
9546         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9547         use $LIBPTH, not just -lpth.
9548
9549 2010-10-04  Bruno Haible  <bruno@clisp.org>
9550
9551         Avoid line length limitation from HP NonStop system header files.
9552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9553         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9554         * lib/ctype.in.h: Likewise.
9555         * lib/dirent.in.h: Likewise.
9556         * lib/errno.in.h: Likewise.
9557         * lib/fcntl.in.h: Likewise.
9558         * lib/float.in.h: Likewise.
9559         * lib/getopt.in.h: Likewise.
9560         * lib/iconv.in.h: Likewise.
9561         * lib/inttypes.in.h: Likewise.
9562         * lib/langinfo.in.h: Likewise.
9563         * lib/locale.in.h: Likewise.
9564         * lib/math.in.h: Likewise.
9565         * lib/netdb.in.h: Likewise.
9566         * lib/netinet_in.in.h: Likewise.
9567         * lib/poll.in.h: Likewise.
9568         * lib/pthread.in.h: Likewise.
9569         * lib/pty.in.h: Likewise.
9570         * lib/sched.in.h: Likewise.
9571         * lib/se-selinux.in.h: Likewise.
9572         * lib/search.in.h: Likewise.
9573         * lib/signal.in.h: Likewise.
9574         * lib/spawn.in.h: Likewise.
9575         * lib/stdarg.in.h: Likewise.
9576         * lib/stddef.in.h: Likewise.
9577         * lib/stdint.in.h: Likewise.
9578         * lib/stdio.in.h: Likewise.
9579         * lib/stdlib.in.h: Likewise.
9580         * lib/string.in.h: Likewise.
9581         * lib/strings.in.h: Likewise.
9582         * lib/sys_file.in.h: Likewise.
9583         * lib/sys_ioctl.in.h: Likewise.
9584         * lib/sys_select.in.h: Likewise.
9585         * lib/sys_socket.in.h: Likewise.
9586         * lib/sys_stat.in.h: Likewise.
9587         * lib/sys_time.in.h: Likewise.
9588         * lib/sys_times.in.h: Likewise.
9589         * lib/sys_utsname.in.h: Likewise.
9590         * lib/sys_wait.in.h: Likewise.
9591         * lib/sysexits.in.h: Likewise.
9592         * lib/termios.in.h: Likewise.
9593         * lib/time.in.h: Likewise.
9594         * lib/unistd.in.h: Likewise.
9595         * lib/wchar.in.h: Likewise.
9596         * lib/wctype.in.h: Likewise.
9597         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9598         * modules/ctype (Makefile.am): Likewise.
9599         * modules/dirent (Makefile.am): Likewise.
9600         * modules/errno (Makefile.am): Likewise.
9601         * modules/fcntl-h (Makefile.am): Likewise.
9602         * modules/float (Makefile.am): Likewise.
9603         * modules/getopt-posix (Makefile.am): Likewise.
9604         * modules/iconv-h (Makefile.am): Likewise.
9605         * modules/inttypes (Makefile.am): Likewise.
9606         * modules/langinfo (Makefile.am): Likewise.
9607         * modules/locale (Makefile.am): Likewise.
9608         * modules/math (Makefile.am): Likewise.
9609         * modules/netdb (Makefile.am): Likewise.
9610         * modules/netinet_in (Makefile.am): Likewise.
9611         * modules/poll-h (Makefile.am): Likewise.
9612         * modules/pthread (Makefile.am): Likewise.
9613         * modules/pty (Makefile.am): Likewise.
9614         * modules/sched (Makefile.am): Likewise.
9615         * modules/search (Makefile.am): Likewise.
9616         * modules/selinux-h (Makefile.am): Likewise.
9617         * modules/signal (Makefile.am): Likewise.
9618         * modules/spawn (Makefile.am): Likewise.
9619         * modules/stdarg (Makefile.am): Likewise.
9620         * modules/stddef (Makefile.am): Likewise.
9621         * modules/stdint (Makefile.am): Likewise.
9622         * modules/stdio (Makefile.am): Likewise.
9623         * modules/stdlib (Makefile.am): Likewise.
9624         * modules/string (Makefile.am): Likewise.
9625         * modules/strings (Makefile.am): Likewise.
9626         * modules/sys_file (Makefile.am): Likewise.
9627         * modules/sys_ioctl (Makefile.am): Likewise.
9628         * modules/sys_select (Makefile.am): Likewise.
9629         * modules/sys_socket (Makefile.am): Likewise.
9630         * modules/sys_stat (Makefile.am): Likewise.
9631         * modules/sys_time (Makefile.am): Likewise.
9632         * modules/sys_times (Makefile.am): Likewise.
9633         * modules/sys_utsname (Makefile.am): Likewise.
9634         * modules/sys_wait (Makefile.am): Likewise.
9635         * modules/sysexits (Makefile.am): Likewise.
9636         * modules/termios (Makefile.am): Likewise.
9637         * modules/time (Makefile.am): Likewise.
9638         * modules/unistd (Makefile.am): Likewise.
9639         * modules/wchar (Makefile.am): Likewise.
9640         * modules/wctype (Makefile.am): Likewise.
9641
9642 2010-10-04  Bruno Haible  <bruno@clisp.org>
9643
9644         read-file tests: Avoid a test failure on NonStop Kernel.
9645         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9646         a regular file.
9647         Reported by Joachim Schmitz <schmitz@hp.com>.
9648
9649 2010-10-03  Bruno Haible  <bruno@clisp.org>
9650
9651         gnulib-tool: Fixes for --create-testdir with --libtool.
9652         * gnulib-tool (func_get_automake_snippet): Don't augment
9653         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9654         an executable.
9655         (func_create_testdir): Handle module 'alloca' like func_import.
9656         Reported by Bruce Korb <bruce.korb@gmail.com>.
9657
9658 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9659
9660         Avoid some lines longer than 80 characters.
9661         * lib/stdint.in.h: Break long comment lines.
9662         * lib/math.in.h: Likewise.
9663         (_GL_NUM_UINT_WORDS): New macro, for readability.
9664         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9665         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9666         * lib/stdlib.in.h: Likewise.
9667         * lib/spawn.in.h: Likewise.
9668         * lib/sys_socket.in.h: Update an URL.
9669         * lib/sys_stat.in.h: Break long line.
9670
9671 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9672
9673         Improve pmccabe2html.
9674         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9675         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9676         when the sources change. Remove the line in the HTML about "Used
9677         ranges" (which implied that there might be other unused ranges),
9678         rename "Resume" to "Summary" (easier to understand for more users).
9679         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9680         styles, and some unnecessary blank lines.
9681
9682 2010-10-03  Bruno Haible  <bruno@clisp.org>
9683             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9684
9685         acl: Add support for ACLs on NonStop Kernel.
9686         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9687         Check whether the function aclsort() exists.
9688         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9689         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9690         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9691         (acl_nontrivial [HAVE_ACLSORT]: New function.
9692         (file_has_acl): Implement for NonStop Kernel.
9693         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9694         (qset_acl): Implement for NonStop Kernel.
9695         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9696         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9697         (main): Implement for NonStop Kernel.
9698         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9699         Kernel. Handle this flavor.
9700         * tests/test-set-mode-acl.sh: Likewise.
9701         * tests/test-copy-acl.sh: Likewise.
9702         * tests/test-copy-file.sh: Likewise.
9703
9704 2010-10-03  Bruno Haible  <bruno@clisp.org>
9705
9706         Info about ACLs on NonStop Kernel.
9707         * doc/acl-resources.txt: Add info about NonStop Kernel.
9708         References by Joachim Schmitz <schmitz@hp.com>.
9709
9710 2010-10-02  Bruno Haible  <bruno@clisp.org>
9711
9712         Define missing EDQUOT on NonStop Kernel.
9713         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9714         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9716         missing.
9717         * doc/posix-headers/errno.texi: Mention the NSK bug.
9718         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9719         Reported by Joachim Schmitz <schmitz@hp.com>.
9720
9721 2010-10-02  Bruno Haible  <bruno@clisp.org>
9722
9723         Update doc for POSIX:2008.
9724         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9725         Update URL of POSIX specification.
9726
9727 2010-10-02  Bruno Haible  <bruno@clisp.org>
9728
9729         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9730         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9731         from gnulib, not from Automake.
9732
9733 2010-10-02  Bruno Haible  <bruno@clisp.org>
9734
9735         New module 'system-posix'.
9736         * modules/system-posix: New file.
9737         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9738         module is present.
9739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9740         GNULIB_SYSTEM_POSIX.
9741         * modules/stdlib (Depends-on): Remove sys_wait.
9742         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9743         * doc/posix-functions/system.texi: Mention the new module.
9744         * doc/posix-headers/stdlib.texi: Likewise.
9745         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9746         define test_sys_wait_macros to a no-op.
9747         Reported by Sam Steingold <sds@gnu.org>.
9748
9749 2010-09-30  Bruno Haible  <bruno@clisp.org>
9750
9751         More renaming from 'getdate' to 'get_date'.
9752         * doc/get_date.texi: Renamed from doc/getdate.texi.
9753         * modules/get_date (Files): Update.
9754         * MODULES.html.sh (Date and time <time.h>): Update.
9755         * DEPENDENCIES: Update.
9756         * gnulib-tool: Update comment.
9757         * m4/bison.m4 (gl_BISON): Likewise.
9758         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9759
9760 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9761
9762         bootstrap: support ACLOCAL_FLAGS during aclocal
9763         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9764         can add additional -I dir for third-party .m4 files.
9765
9766 2010-09-30  Eric Blake  <eblake@redhat.com>
9767
9768         bootstrap: use glibtoolize on MacOS
9769         * build-aux/bootstrap (check_versions): Convert libtool into
9770         libtoolize.
9771         (tool search): Move libtool check earlier, and look for
9772         glibtoolize for MacOS.
9773         (gnulib_tool_options): Auto-add --libtool when appropriate.
9774         Reported by Justin Clift.
9775
9776         poll: fix typo that broke test on MacOS
9777         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9778         Reported by Justin Clift.
9779
9780         getdate: rename to get_date
9781         Note: getdate.h is not renamed, to minimize client impact.
9782         * modules/getdate: Mark obsolete.  Move old contents...
9783         * modules/get_date: ...to new module name.
9784         * modules/getdate-tests: Move...
9785         * modules/get_date-tests: ...here.
9786         * m4/getdate.m4: Move...
9787         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9788         * lib/getdate.y: Move...
9789         * lib/get_date.y: ...here.
9790         * tests/test-getdate.c: Move...
9791         * tests/test-get_date.c: ...here.
9792         * doc/posix-functions/getdate.texi (getdate): Update name.
9793         * NEWS: Mention the change.
9794
9795 2010-09-29  Bruno Haible  <bruno@clisp.org>
9796
9797         Separate the module 'waitpid' from the module 'sys_wait'.
9798         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9799         present.
9800         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9801         gl_MODULE_INDICATOR_FOR_TESTS.
9802         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9803         * modules/sys_wait (Depends-on): Remove waitpid.
9804         (Makefile.am): Substitute GNULIB_WAITPID.
9805         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9806         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9807         signature only if the 'waitpid' module is present.
9808         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9809         * NEWS: Mention the change.
9810         * modules/grantpt (Depends-on): Add waitpid.
9811         * modules/wait-process (Depends-on): Likewise.
9812
9813 2010-09-29  Bruno Haible  <bruno@clisp.org>
9814
9815         More tests for module 'sys_wait'.
9816         * modules/sys_wait-c++-tests: New file.
9817         * tests/test-sys_wait-c++.cc: New file.
9818         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9819         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9820
9821 2010-09-29  Bruno Haible  <bruno@clisp.org>
9822
9823         New module 'waitpid'.
9824         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9825         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9826         Don't include <process.h>.
9827         (waitpid): Declare only, using modern idiom.
9828         * m4/waitpid.m4: New file.
9829         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9830         * modules/waitpid: New file.
9831         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9832         (Makefile.am): Update.
9833         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9834
9835 2010-09-28  Bruno Haible  <bruno@clisp.org>
9836
9837         poll: Assume ANSI C.
9838         * lib/poll.c (poll): Use an ANSI C declaration.
9839
9840 2010-09-28  Bruno Haible  <bruno@clisp.org>
9841
9842         poll-h: Create poll.h on all platforms.
9843         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9844         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9845         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9846         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9847         (gl_REPLACE_POLL_H): Don't set POLL_H.
9848         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9849         * modules/poll-h (Depends-on): Add include_next.
9850         (Makefile.am): Create poll.h unconditionally. Substitute also
9851         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9852
9853 2010-09-28  Bruno Haible  <bruno@clisp.org>
9854
9855         Tests for module 'poll-h'.
9856         * modules/poll-h-c++-tests: New file.
9857         * tests/test-poll-h-c++.cc: New file.
9858
9859         Tests for module 'poll-h'.
9860         * modules/poll-h-tests: New file.
9861         * tests/test-poll-h.c: New file.
9862
9863 2010-09-28  Bruno Haible  <bruno@clisp.org>
9864
9865         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9866         * modules/poll-h (Depends-on): Add 'extensions'.
9867
9868 2010-09-28  Bruno Haible  <bruno@clisp.org>
9869
9870         New module 'poll-h'.
9871         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9872         (poll): Use modern idiom.
9873         * modules/poll-h: New file.
9874         * modules/poll (Files): Remove lib/poll.in.h.
9875         (Depends-on): Add poll-h.
9876         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9877         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9878         * m4/poll_h.m4: New file.
9879         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9880         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9881         and invoke gl_REPLACE_POLL_H.
9882         * lib/poll.c: Use common idiom.
9883         * tests/test-poll.c: Likewise.
9884         * doc/posix-headers/poll.texi: Mention the poll-h module.
9885         Suggested by Eric Blake.
9886
9887 2010-09-26  Bruno Haible  <bruno@clisp.org>
9888
9889         sys_wait: Implement WSTOPSIG.
9890         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9891         Reported by Simon Josefsson.
9892
9893 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9894
9895         stdlib, sys_wait: Avoid compilation error on mingw.
9896         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9897
9898 2010-09-26  Bruno Haible  <bruno@clisp.org>
9899
9900         stdlib tests: Avoid code duplication.
9901         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9902         * modules/sys_wait-tests (Files): Likewise.
9903         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9904         * tests/test-stdlib.c: Include test-sys_wait.h.
9905         (main): Invoke test_sys_wait_macros.
9906         * tests/test-sys_wait.c: Include test-sys_wait.h.
9907         (main): Invoke test_sys_wait_macros.
9908
9909 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9910
9911         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9912         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9913         sure Windows sockets are working before calling getaddrinfo.
9914         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9915         * doc/gnulib.texi (Windows sockets): Fix typo.
9916
9917 2010-09-25  Bruno Haible  <bruno@clisp.org>
9918
9919         Tests for module 'regex-quote'.
9920         * modules/regex-quote-tests: New file.
9921         * tests/test-regex-quote.c: New file.
9922
9923         New module 'regex-quote'.
9924         * lib/regex-quote.h: New file.
9925         * lib/regex-quote.c: New file.
9926         * modules/regex-quote: New file.
9927         Suggested by Reuben Thomas <rrt@sc3d.org>.
9928
9929 2010-09-24  Bruno Haible  <bruno@clisp.org>
9930
9931         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9932         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9933
9934 2010-09-23  Bruno Haible  <bruno@clisp.org>
9935
9936         setenv: Relax license.
9937         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9938         Blake.
9939         Requested by Eric Blake.
9940
9941 2010-09-22  Bruno Haible  <bruno@clisp.org>
9942
9943         termios: Relax license.
9944         * modules/termios (License): Change to LGPLv2+.
9945         Requested by Eric Blake.
9946
9947 2010-09-22  Bruno Haible  <bruno@clisp.org>
9948
9949         threadlib: Allow the package to change the default to 'no'.
9950         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9951         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9952         Reported by Paul Eggert.
9953
9954 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9955             Bruno Haible  <bruno@clisp.org>
9956
9957         Fix endless loop in mbmemcasecoll.
9958         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9959         byte.
9960         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9961
9962 2010-09-22  Bruno Haible  <bruno@clisp.org>
9963
9964         Tests for module 'memcoll'.
9965         * modules/memcoll-tests: New file.
9966         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9967
9968         memcoll, xmemcoll: Clarify size vs. length.
9969         * modules/memcoll.c (memcoll0): Clarify specification.
9970         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9971         passed to collate_error.
9972
9973 2010-09-22  Bruno Haible  <bruno@clisp.org>
9974
9975         Tests for module 'memcasecmp'.
9976         * modules/memcasecmp-tests: New file.
9977         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9978
9979 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9980
9981         * lib/pthread.in.h: Add split double-inclusion guard, and include
9982         system <pthread.h> if there is one.  Use @@-style as in other
9983         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9984         pthread.h doesn't.
9985         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9986         (pthread_mutexattr_settype, pthread_mutex_trylock):
9987         New static inline functions, if there's no system <pthread.h>.
9988         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9989         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9990         Approximate with mutexes if the system lacks spinlocks, as in
9991         MacOS.
9992         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9993         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9994         @@-style.  Check for spinlocks separately.
9995         (gl_PTHREAD_DEFAULTS): New macro.
9996         * modules/pthread: Redo to use a more typical style for in.h files.
9997
9998 2010-09-21  Eric Blake  <eblake@redhat.com>
9999
10000         net_if: enhance tests
10001         * tests/test-net_if.c (main): Move signature checks earlier.
10002         Print failures to stderr.
10003         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10004         Document the bug that we do not yet fix.
10005
10006 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10007
10008         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10009         about gnulib, not GSS.
10010
10011 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10012
10013         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10014         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10015         for Emacs.
10016         * build-aux/pmccabe2html: Make Makefile.am example code more
10017         cut-and-paste friendly.
10018
10019 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10020
10021         * tests/test-net_if.c: New file.
10022         * modules/net_if-tests: New file.
10023
10024 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10025
10026         pthread: add pthread_spin_destroy
10027         * lib/pthread.in.h (pthread_spin_destroy): New function.
10028
10029 2010-09-19  Bruno Haible  <bruno@clisp.org>
10030
10031         gnulib-tool: Fix --help output.
10032         * gnulib-tool (func_usage): Fix help message.
10033         Reported by Reuben Thomas <rrt@sc3d.org>.
10034
10035 2010-09-18  Jim Meyering  <meyering@redhat.com>
10036
10037         maint.mk: avoid unexpanded \n in two diagnostics
10038         * top/maint.mk (sc_prohibit_always_true_header_tests):
10039         Don't use a literal \n in a halt=... assignment.  It would not be
10040         expanded, and the two \n bytes would appear in the diagnostic output
10041         rather than the desired newline.  Use halt=$$(printf ... instead.
10042         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10043
10044 2010-09-18  Bruno Haible  <bruno@clisp.org>
10045
10046         netinet_in: Doc tweak.
10047         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10049
10050 2010-09-18  Jim Meyering  <meyering@redhat.com>
10051
10052         init.sh: correct an outdated comment
10053         * tests/init.sh (create_exe_shims_):  s/function/alias/
10054
10055         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10056         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10057         a file named "*.exe" is removed between the glob expansion and the
10058         processing of that oddly named file.
10059
10060 2010-09-17  Eric Blake  <eblake@redhat.com>
10061
10062         mirbsd: add some more support
10063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10064         in BSD family.
10065         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10066         devices as OpenBSD.
10067         * m4/host-os.m4 (mirbsd): Add MirBSD.
10068
10069         tests: fix unportable assumption on sys/wait.h
10070         * tests/test-sys_wait.c (main): Relax test.
10071         * tests/test-stdlib.c (main): Likewise.
10072
10073         init.sh: accomodate directory with no .exes
10074         * tests/init.sh: Accomodate directory containing only scripts.
10075
10076         tests: avoid compiler warning
10077         * tests/test-stdlib.c (main): Use the variable.
10078
10079         fdutimens, fdutimensat: update signature, again
10080         * lib/utimens.h (gl_futimens): Delete, and move signature...
10081         (fdutimens): ...here.
10082         (fdutimensat): Rearrange signature.
10083         (lutimensat): Rename variable for clarity.
10084         * lib/fdutimensat.c (fdutimensat): Update signature.
10085         * lib/utimens.c (fdutimens): Likewise.
10086         (gl_futimens): Delete.
10087         (utimens, lutimens): Update callers.
10088         * lib/futimens.c (futimens): Likewise.
10089         * tests/test-fdutimensat.c: Likewise.
10090         * tests/test-utimens.c: Likewise.
10091         * tests/test-futimens.h: Update comment.
10092         * NEWS: Mention this.
10093         Suggested by Paul Eggert.
10094
10095 2010-09-17  Bruno Haible  <bruno@clisp.org>
10096
10097         Take over the maintenance of some older macros from Autoconf.
10098         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10099         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10100         GNU Autoconf.
10101         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10102         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10103
10104 2010-09-17  Eric Blake  <eblake@redhat.com>
10105
10106         fdutimensat: drop atflag validation
10107         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10108         with valid fd, to close a race scenario where futimens is
10109         unsupported and FILE was replaced by a symlink.
10110         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10111         accordingly.
10112         Suggested by Paul Eggert.
10113
10114 2010-09-16  Bruno Haible  <bruno@clisp.org>
10115
10116         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10117         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10118
10119 2010-09-16  Bruno Haible  <bruno@clisp.org>
10120
10121         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10122         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10123         login_tty exists.
10124         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10125
10126 2010-09-16  Bruno Haible  <bruno@clisp.org>
10127
10128         login_tty: Make the replacement code work on BSD systems.
10129         * lib/login_tty.c: Include <sys/ioctl.h>.
10130         (login_tty): Use ioctl TIOCSCTTY when available.
10131         * modules/login_tty (Depends-on): Add sys_ioctl.
10132         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10133
10134 2010-09-16  Bruno Haible  <bruno@clisp.org>
10135
10136         login_tty: Stricter unit test.
10137         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10138         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10139         and tcgetsid() after login_tty.
10140         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10141
10142 2010-09-16  Bruno Haible  <bruno@clisp.org>
10143
10144         New module 'tcgetsid'.
10145         * lib/tcgetsid.c: New file.
10146         * m4/tcgetsid.m4: New file.
10147         * modules/tcgetsid: New file.
10148         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10149         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10150         GNULIB_TCGETSID, HAVE_TCGETSID.
10151         * lib/termios.in.h: Include <sys/types.h>.
10152         (tcgetsid): New declaration.
10153         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10154         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10155         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10156         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10157
10158 2010-09-16  Bruno Haible  <bruno@clisp.org>
10159
10160         Tests for module 'termios'.
10161         * modules/termios-c++-tests: New file.
10162         * modules/termios-tests: New file.
10163         * tests/test-termios-c++.cc: New file.
10164         * tests/test-termios.c: New file.
10165
10166         New module 'termios'.
10167         * modules/termios: New file.
10168         * lib/termios.in.h: New file.
10169         * m4/termios_h.m4: New file.
10170         * doc/posix-headers/termios.texi: Mention the new module.
10171
10172 2010-09-16  Eric Blake  <eblake@redhat.com>
10173
10174         fdutimensat: add an atflag parameter
10175         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10176         * lib/utimens.h (fdutimensat): Update prototype.
10177         * tests/test-fdutimensat.c: Adjust test to match.
10178         * NEWS: Document the change.
10179         Suggested by Paul Eggert.
10180
10181 2010-09-16  Bruno Haible  <bruno@clisp.org>
10182
10183         Fix typos in comments.
10184         * lib/striconveh.h: Fix typo in comment.
10185         * lib/login_tty.c (login_tty): Likewise.
10186
10187 2010-09-15  Bruno Haible  <bruno@clisp.org>
10188
10189         stdlib: clarify MirBSD WEXITSTATUS bug
10190         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10191         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10192
10193 2010-09-15  Eric Blake  <eblake@redhat.com>
10194
10195         stdlib: work around MirBSD WEXITSTATUS bug
10196         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10197         * modules/stdlib (Depends-on): Add sys_wait.
10198         * tests/test-sys_wait.c (main): Enhance test.
10199         * tests/test-stdlib.c (main): Likewise.
10200         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10201
10202         docs: mention MacOS issue with WEXITSTATUS(constant)
10203         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10204         issue.
10205         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10206
10207         strnlen: add tests
10208         * modules/strnlen-tests: New file.
10209         * tests/test-strnlen.c: Likewise.
10210
10211 2010-09-14  Bruno Haible  <bruno@clisp.org>
10212
10213         unistr/base: Avoid link errors when module 'libunistring' is also used.
10214         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10215         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10216         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10217         Declare also when HAVE_LIBUNISTRING is set.
10218         Reported by Pádraig Brady <P@draigbrady.com>.
10219
10220 2010-09-14  Eric Blake  <eblake@redhat.com>
10221
10222         test-rawmemchr: make more robust
10223         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10224         (Depends-on, configure.ac): Add needed prerequisites to use it.
10225         * modules/memchr-tests (Files, Depends-on, configure.ac):
10226         Likewise, to avoid implicit reliance on memchr module prereqs.
10227         * tests/test-memchr.c (main): Ensure proper masking.
10228         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10229         reads.
10230
10231         memchr: detect glibc Alpha bug
10232         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10233         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10234         Alpha.
10235         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10236         * tests/test-memchr.c (main): Enhance test.
10237         Reported by Nelson H. F. Beebe.
10238
10239 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10240
10241         fts, getcwd, glob: audit for dirfd returning -1
10242         * lib/fts.c (opendir): Remove #define; no longer used.
10243         (opendirat): New arg PDIR_FD.  All callers changed.
10244         (fts_build, _opendir2): Use new opendirat to avoid the need for
10245         dirfd, or for checking whether dirfd returns a negative value.
10246         Don't use opendir; always use openat followed by fdopendir.
10247         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10248         it.
10249         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10250         returns -1 here.
10251         * modules/fts (Depends-on): Remove dirfd.
10252         * modules/getcwd (Depends-on): Likewise.
10253
10254 2010-09-13  Eric Blake  <eblake@redhat.com>
10255
10256         float: fix broken MirBSD header
10257         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10258         * doc/posix-headers/float.texi (float.h): Document it.
10259
10260 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10261
10262         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10263         * lib/fts.c (opendirat): New arg extra_flags.
10264         (__opendir2): Use it to avoid following symlinks when opening
10265         a directory, if symlinks are not supposed to be followed.  See
10266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10267
10268         fdopendir: preserve argument fd before returning
10269         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10270         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10271         (fdopendir): Use them, arranging for FD to be open to the same
10272         directory that it was when it started.  (It might be temporarily
10273         closed while fdopendir is running, so this not thread- or
10274         signal-safe.)  Be careful to do the right thing even when file
10275         descriptors are scarce and dup fails with errno == EMFILE.  See
10276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10277
10278 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10279
10280         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10281         * NEWS: Document change.
10282         * m4/regex.m4: Disable test for regoff_t size.
10283
10284 2010-09-13  Jim Meyering  <meyering@redhat.com>
10285
10286         fts: don't operate on an invalid file descriptor after failed dup
10287         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10288         negative file descriptor.
10289
10290 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10291
10292         savedir: add streamsavedir, deprecate fdsavedir
10293         * NEWS: Mention deprecation of fdsavedir.
10294         * lib/savedir.c (streamsavedir): New extern function, whose name
10295         ends in "savedir" to be consistent with the others.  This differs
10296         from savedirstream in that it doesn't close its argument.  The
10297         next version of GNU tar will use this instead of fdsavedir, to
10298         avoid some race conditions and conserve file descriptors.
10299         (savedirstream): Reimplement as a wrapper around streamsavedir.
10300         (fdsavedir): Add a comment deprecating this function.  As far as
10301         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10302         * lib/savedir.h (streamsavedir): New decl.
10303         (fdsavedir): Add a comment deprecating this.
10304
10305 2010-09-10  Bruno Haible  <bruno@clisp.org>
10306
10307         langinfo: Fix last commit.
10308         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10309         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10311
10312 2010-09-10  Bruno Haible  <bruno@clisp.org>
10313
10314         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10315         * lib/progreloc.c (O_EXEC): Define fallback.
10316
10317 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10318
10319         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10320         * NEWS: Document recent changes to fcntl-h.
10321         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10322         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10323         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10324         Similarly for O_SEARCH; this last was already true, but not documented.
10325         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10326         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10327         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10328         Likewise.
10329         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10330         is zero, not whether it is defined.
10331         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10332         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10333         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10334
10335 2010-09-10  Bruno Haible  <bruno@clisp.org>
10336
10337         langinfo, nl_langinfo: Fix for IRIX 5.3.
10338         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10339         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10340         HAVE_LANGINFO_YESEXPR.
10341         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10342         HAVE_LANGINFO_YESEXPR.
10343         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10344         HAVE_LANGINFO_T_FMT_AMPM is 0.
10345         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10346         HAVE_LANGINFO_YESEXPR is 0.
10347         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10348         NOEXPR.
10349         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10350         * doc/posix-functions/nl_langinfo.texi: Likewise.
10351         Reported by Eric Blake.
10352
10353 2010-09-10  Bruno Haible  <bruno@clisp.org>
10354
10355         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10356         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10357         on FreeBSD 8.0 and OpenBSD 4.6.
10358         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10359         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10360         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10361         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10362         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10363         ac_includes_default.
10364         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10365
10366 2010-09-09  Eric Blake  <eblake@redhat.com>
10367
10368         strsignal: work around NetBSD bug
10369         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10370         * lib/string.in.h (includes): Likewise.
10371         * doc/posix-functions/strsignal.texi (strsignal): Document the
10372         bug.
10373         Reported by Nelson H. F. Beebe.
10374
10375         gnulib-tool: work with NetBSD /bin/sh
10376         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10377         (func_get_description, func_get_comment, func_get_status)
10378         (func_get_notice, func_get_applicability, func_get_filelist)
10379         (func_get_dependencies, func_get_autoconf_early_snippet)
10380         (func_get_autoconf_snippet, func_get_automake_snippet)
10381         (func_get_include_directive, func_get_link_directive)
10382         (func_get_license, func_get_maintainer, func_import): Avoid
10383         shell syntax errors from parsing syntax extensions.
10384
10385 2010-09-09  Bruno Haible  <bruno@clisp.org>
10386
10387         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10388         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10389         a reliable way to determine whether the 'alias' command works.
10390
10391 2010-09-08  Jim Meyering  <meyering@redhat.com>
10392
10393         init.sh: penalize a set-x-impaired shell; don't disqualify it
10394         * tests/init.sh: Too many shells corrupt application stderr when
10395         you set -x, so we can't afford to disqualify them, since at least
10396         on Irix-6.5, that would disqualify all bourne shells.
10397         Instead, use a two-pass approach.
10398         On the first pass, try to find a shell that meets the stricter
10399         condition that set -x does not corrupt stderr.
10400         If no shell meets the stricter condition, retest each candidate
10401         shell, but without that extra condition.  Finally, when
10402         VERBOSE=yes is requested and set -x might cause trouble, simply
10403         issue a warning and refrain from enabling debug output.
10404
10405 2010-09-08  Eric Blake  <eblake@redhat.com>
10406
10407         unsetenv: fix OpenBSD bug
10408         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10409         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10410         documentation.
10411         Reported by Jim Meyering.
10412
10413         strtod: work around IRIX 6.5 bug
10414         * lib/strtod.c (strtod): Reparse number on shorter string if
10415         exponent parse was invalid.
10416         * tests/test-strtod.c (main): Add check for "0x1p 2".
10417         Reported by Tom G. Christensen.
10418
10419         getopt: optimize previous patch
10420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10421         empty variable.  Speed up awk script.
10422         Reported by Paolo Bonzini.
10423
10424 2010-09-08  Jim Meyering  <meyering@redhat.com>
10425
10426         test.sh: disqualify shells for which set -x corrupts stderr
10427         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10428         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10429         appear in stderr output.  For example, this command:
10430             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10431         prints "P=1" on those two systems:
10432
10433 2010-09-08  Bruno Haible  <bruno@clisp.org>
10434
10435         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10436         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10437         commands, because some shells ignore redirections when there is an
10438         error in the command lookup.
10439         Reported by Eric Blake.
10440
10441 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10442
10443         * lib/regex.h: Fix a mention of `regex_compile' (should be
10444         `re_compile_pattern').
10445         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10446         (re_set_registers): Correct name of parameter in comment.
10447
10448         * doc/regex.texi: Add documentation for missing syntax flags.
10449         Remove commented-out documentation of defunct syntax option
10450         RE_NO_EMPTY_ALTS.
10451         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10452         Add documentation of re_set_registers.
10453         Document trick to re-use a pattern buffer by setting fastmap manually.
10454         Update documentation of struct re_pattern_buffer per public members.
10455         Uncomment documentation of equivalence class operators and
10456         collating symbol operators, since they are now implemented,
10457         Explain leftmost-longest matching in relation to alternatives.
10458         Tidy documentation of substring matching.
10459         Remove POSIX documentation, which is done better in
10460         glibc, and refer the reader there. Keep BSD API documentation, as
10461         that is not readily available elsewhere.
10462
10463 2010-09-07  Eric Blake  <eblake@redhat.com>
10464
10465         getopt: handle POSIXLY_CORRECT set but not exported
10466         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10467         export state of POSIXLY_CORRECT, due to bash set -o posix.
10468         Reported by Dustin J. Mitchell.
10469
10470 2010-09-05  Bruno Haible  <bruno@clisp.org>
10471
10472         gnulib-tool: Highlight the changed options.
10473         * gnulib-tool (func_usage): Display the --import, --add-import,
10474         --remove-import explanations in bold font.
10475
10476 2010-09-06  Karl Berry  <karl@gnu.org>
10477
10478         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10479
10480 2010-09-05  Bruno Haible  <bruno@clisp.org>
10481
10482         uniwidth/width: Update comment.
10483         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10484         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10485
10486 2010-09-05  Bruno Haible  <bruno@clisp.org>
10487
10488         isinf, isnan: Relax license.
10489         * modules/isinf (License): Change from GPL to LGPL, with consent from
10490         Ben Pfaff.
10491         * modules/isnan (License): Likewise.
10492         Requested by Ludovic Courtès.
10493
10494 2010-09-04  Bruno Haible  <bruno@clisp.org>
10495
10496         gnulib-tool: Help migration from --import to --add-import or --update.
10497         * gnulib-tool: Emit a verbose error message when --import is used
10498         without any module name.
10499
10500 2010-09-04  Bruno Haible  <bruno@clisp.org>
10501
10502         Update doc about gnulib-tool.
10503         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10504         'gnulib-tool --update' in more detail.
10505         Reported by Eric Blake.
10506
10507 2010-09-04  Bruno Haible  <bruno@clisp.org>
10508
10509         gnulib-tool: Change --import. New options --add/remove-import.
10510         * gnulib-tool: New options --add-import, --remove-import.
10511         (func_usage): Document them.
10512         (have_associative): Define always.
10513         (func_import): In import mode, don't merge the specified settings with
10514         the cached settings. Implement remove-import mode.
10515         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10516         Explain when to use them versus --import.
10517         (Simple update): Use --add-import instead of --import.
10518         * NEWS: Mention the change.
10519
10520 2010-09-04  Bruno Haible  <bruno@clisp.org>
10521
10522         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10523         separate gnulib.mk.
10524
10525 2010-09-04  Bruno Haible  <bruno@clisp.org>
10526
10527         gnulib-tool: Don't talk about CVS any more.
10528         * gnulib-tool (func_usage, func_import): Write "version control"
10529         instead of CVS.
10530
10531 2010-09-04  Jim Meyering  <meyering@redhat.com>
10532
10533         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10534         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10535         false positives (whose names may be ill-chosen) when searching
10536         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10537         would cause a false-positive.
10538
10539         avoid coreutils "make distcheck" failure
10540         Coreutils tests with an absolute build directory name that contains
10541         a space.  Not quoting this directory name caused a failure.
10542         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10543         * tests/test-vc-list-files-cvs.sh: Likewise.
10544
10545 2010-09-04  Bruno Haible  <bruno@clisp.org>
10546
10547         gnulib-tool: Avoid error when run in a package without Makefile.am.
10548         * gnulib-tool: When collecting the m4dirs in a package that does not
10549         have a Makefile.am, eliminate those directories that contain no
10550         gnulib-cache.m4. Fix expression that counts these directories.
10551
10552 2010-09-04  Bruno Haible  <bruno@clisp.org>
10553
10554         update-copyright test: Improve output when perl is missing or too old.
10555         * tests/test-update-copyright.sh: Move test of Perl version down after
10556         the test whether Perl exists. Provide an explanation relating Perl's
10557         error message to Automake's SKIP: message.
10558
10559 2010-09-04  Bruno Haible  <bruno@clisp.org>
10560
10561         Don't augment PATH in TESTS_ENVIRONMENT.
10562         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10563         set abs_aux_dir instead of augmenting PATH.
10564         * modules/vc-list-files-tests (Makefile.am): Likewise.
10565         * tests/test-update-copyright.sh: Augment PATH here.
10566         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10567         path_prepend_.
10568         * tests/test-vc-list-files-git.sh: Likewise.
10569
10570 2010-09-04  Jim Meyering  <meyering@redhat.com>
10571
10572         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10573         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10574
10575 2010-09-04  Bruno Haible  <bruno@clisp.org>
10576
10577         strdup: Fix compilation error in C++ mode.
10578         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10579         the macro.
10580
10581 2010-09-04  Bruno Haible  <bruno@clisp.org>
10582
10583         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10584         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10585         macro into a function.
10586         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10587
10588 2010-09-04  Bruno Haible  <bruno@clisp.org>
10589
10590         Set PATH_SEPARATOR the same way autoconf does.
10591         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10592         the value of PATH_SEPARATOR the same way autoconf-generated configure
10593         scripts do.
10594         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10595         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10596
10597 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10598
10599         Set PATH_SEPARATOR the same way autoconf does.
10600         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10601         the same way autoconf-generated configure scripts do.
10602         * posix-modules: Likewise.
10603
10604 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10605
10606         hash: fix safe_hasher const typo
10607         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10608         const; otherwise, there is a type error later.
10609
10610 2010-09-02  Jim Meyering  <meyering@redhat.com>
10611
10612         test-update-copyright.sh: require perl 5.8.0
10613         * tests/test-update-copyright.sh: Require 5.8.0,
10614         which Tom G. Christensen has confirmed is adequate,
10615         while 5.6.1 is not.
10616
10617 2010-09-02  Eric Blake  <eblake@redhat.com>
10618
10619         tests: init.sh improvements for re-exec'ing with zsh
10620         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10621         -vx through shell re-exec.
10622         Reported by Tom G. Christensen.
10623
10624         wctype: fix typo in previous commit
10625         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10626         Reported by Ludovic Courtès.
10627
10628 2010-09-02  Jim Meyering  <meyering@redhat.com>
10629
10630         test-update-copyright.sh: skip test if Perl is too old
10631         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10632         Reported by Tom G. Christensen.
10633
10634 2010-09-02  Bruno Haible  <bruno@clisp.org>
10635
10636         wctype: Avoid compilation error on IRIX 6.5.30.
10637         * lib/wctype.in.h (iswblank): Declare with a replacement if
10638         REPLACE_ISWBLANK is set.
10639         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10640         declared. Set REPLACE_ISWBLANK.
10641         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10642         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10643         * doc/posix-headers/wctype.texi: Likewise.
10644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10645
10646 2010-09-01  Bruno Haible  <bruno@clisp.org>
10647
10648         New module 'socketlib'.
10649         * modules/socketlib: New file.
10650         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10651         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10652         * modules/sockets (Depends-on): Add socketlib.
10653         Suggested by Sam Steingold <sds@gnu.org>.
10654
10655 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10656
10657         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10658
10659         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10660         when one needs search access to a directory but not read access.
10661         On systems where it is available, it works in some cases where
10662         O_RDONLY does not, namely on directories that are searchable but
10663         not readable, and which need only to be searchable.  If O_SEARCH
10664         is not available, fall back to the traditional method of using
10665         O_RDONLY.
10666
10667         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10668         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10669         when opening a directory that needs only to be searchable.
10670         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10671         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10672         * lib/openat-proc.c (openat_proc_name): Likewise.
10673         * lib/openat.c (openat_needs_fchdir): Likewise.
10674         * lib/save-cwd.c (save_cwd): Likewise.
10675         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10676
10677 2010-08-28  Bruno Haible  <bruno@clisp.org>
10678
10679         New module 'host-cpu-c-abi'.
10680         * modules/host-cpu-c-abi: New file.
10681         * m4/host-cpu-c-abi.m4: New file, based on part of
10682         clisp/src/m4/general.m4.
10683         Requested by Sam Steingold <sds@gnu.org>.
10684
10685 2010-08-31  Eric Blake  <eblake@redhat.com>
10686         and Jim Meyering  <meyering@redhat.com>
10687
10688         hash: factor, and guard against misbehaving hasher function
10689         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10690         of table->hasher's return value.  Also protect against a hash value
10691         so large that adding it to table->bucket results in a NULL pointer.
10692         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10693         Use it in place of open-coded check-and-abort.
10694
10695 2010-08-30  Bruno Haible  <bruno@clisp.org>
10696
10697         hash: silence spurious clang warning
10698         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10699         Reported by Eric Blake.
10700
10701 2010-08-30  Eric Blake  <eblake@redhat.com>
10702
10703         strstr, memmem, strcasestr: avoid leaked shell message
10704         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10705         FreeBSD.
10706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10707         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10708
10709         tests: silence clang warning
10710         * tests/test-malloca.c (do_allocation): Avoid dead store.
10711
10712 2010-08-29  Bruno Haible  <bruno@clisp.org>
10713
10714         gettext: Fix recent mistake.
10715         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10716
10717 2010-08-29  Bruno Haible  <bruno@clisp.org>
10718
10719         selinux-h: Offer a --without-selinux option.
10720         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10721         --without-selinux was specified, skip all tests and define
10722         HAVE_SELINUX_SELINUX_H to 0.
10723         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10724         set LIB_SELINUX to empty.
10725         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10726         gl_LIBSELINUX. If --without-selinux was specified, replace
10727         selinux/context.h.
10728         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10729
10730 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10731             Bruno Haible  <bruno@clisp.org>
10732
10733         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10734         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10735         of HAVE_REALLOC.
10736         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10737         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10738         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10739         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10740
10741 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10742             Bruno Haible  <bruno@clisp.org>
10743
10744         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10745         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10746         HAVE_CALLOC.
10747         * lib/xmalloc.c: Update accordingly.
10748         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10749         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10750         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10751
10752 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10753             Bruno Haible  <bruno@clisp.org>
10754
10755         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10756         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10757         HAVE_MALLOC.
10758         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10759         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10760         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10761
10762 2010-08-29  Bruno Haible  <bruno@clisp.org>
10763
10764         Update modules list.
10765         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10766         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10767         (String handling <string.h>): Add astrxfrm.
10768         (File system functions): Add readlinkat.
10769
10770 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10771
10772         Tests for module 'realloc-gnu'.
10773         * modules/realloc-gnu-tests: New file.
10774         * tests/test-realloc-gnu.c: New file.
10775
10776         Tests for module 'calloc-gnu'.
10777         * modules/calloc-gnu-tests: New file.
10778         * tests/test-calloc-gnu.c: New file.
10779
10780         Tests for module 'malloc-gnu'.
10781         * modules/malloc-gnu-tests: New file.
10782         * tests/test-malloc-gnu.c: New file.
10783
10784 2010-08-28  Bruno Haible  <bruno@clisp.org>
10785
10786         Rename module 'realloc' -> 'realloc-gnu'.
10787         * modules/realloc-gnu: New file, copied from modules/realloc.
10788         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10789         obsolete.
10790         * modules/mgetgroups (Depends-on): Update.
10791         * doc/posix-functions/realloc.texi: Update.
10792         * NEWS: Mention the change.
10793
10794         Rename module 'calloc' -> 'calloc-gnu'.
10795         * modules/calloc-gnu: New file, copied from modules/calloc.
10796         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10797         obsolete.
10798         * doc/posix-functions/calloc.texi: Update.
10799         * NEWS: Mention the change.
10800
10801         Rename module 'malloc' -> 'malloc-gnu'.
10802         * modules/malloc-gnu: New file, copied from modules/malloc.
10803         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10804         obsolete.
10805         * modules/argp (Depends-on): Update.
10806         * modules/regex (Depends-on): Update.
10807         * doc/posix-functions/malloc.texi: Update.
10808         * NEWS: Mention the change.
10809
10810 2010-08-28  Eric Blake  <eblake@redhat.com>
10811
10812         pread, pwrite: add missing dependency
10813         * modules/pread (Depends-on): Add extensions.
10814         * modules/pwrite (Depends-on): Likewise.
10815
10816 2010-08-28  Bruno Haible  <bruno@clisp.org>
10817
10818         unistr/u*-strchr: Fix tests dependencies.
10819         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10820         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10821         Reported by Ian Beckwith <ianb@erislabs.net>.
10822
10823 2010-08-28  Bruno Haible  <bruno@clisp.org>
10824
10825         read-file: Don't occupy too much unused memory.
10826         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10827
10828 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10829             Eric Blake  <eblake@redhat.com>
10830             Bruno Haible  <bruno@clisp.org>
10831
10832         read-file: Avoid memory reallocations with regular files.
10833         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10834         (fread_file): With regular files, use the remaining length as the
10835         initial buffer size.  Check against overflow.
10836         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10837         sys_stat.
10838
10839 2010-08-28  Bruno Haible  <bruno@clisp.org>
10840
10841         ftello: Relax license.
10842         * modules/ftello (License): Relax to LGPLv2+.
10843         Reported by Eric Blake.
10844
10845 2010-08-28  Bruno Haible  <bruno@clisp.org>
10846
10847         Avoid relocwrapper link errors due to gnulib replacement functions.
10848         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10849         function.
10850         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10851
10852 2010-08-28  Bruno Haible  <bruno@clisp.org>
10853
10854         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10855         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10856         defined.
10857         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10858         Suggested by Eric Blake.
10859
10860 2010-08-28  Bruno Haible  <bruno@clisp.org>
10861
10862         sys_socket, netdb: Ensure socklen_t gets defined.
10863         * modules/sys_socket (Depends-on): Add socklen.
10864         * modules/netdb (Depends-on): Likewise.
10865         * modules/getaddrinfo (Depends-on): Remove socklen.
10866         * modules/getsockopt (Depends-on): Likewise.
10867         * modules/setsockopt (Depends-on): Likewise.
10868         * tests/test-sys_socket.c: Check that socklen_t is defined.
10869         * tests/test-netdb.c: Likewise.
10870         * m4/socklen.m4: Update comments.
10871         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10872
10873 2010-08-27  Eric Blake  <eblake@redhat.com>
10874
10875         login_tty: add missing dependency
10876         * modules/login_tty (Depends-on): Add pty.
10877
10878 2010-08-26  Eric Blake  <eblake@redhat.com>
10879
10880         lib-symbol-versions: fix m4 quoting
10881         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10882         format for AC_LINK_IFELSE.
10883
10884         glob: fix compile test
10885         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10886
10887         btowc: fix missing file
10888         * modules/btowc (Files): Also ship locale-fr.m4.
10889
10890         lseek: fix link test
10891         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10892         AC_LINK_IFELSE.
10893
10894         include_next: silence autoconf 2.68 warning
10895         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10896         AC_COMPILE_IFELSE as special.
10897         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10898         autoconf < 2.68.
10899
10900         acl: fix compilation test
10901         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10902         AC_COMPILE_IFELSE.
10903
10904 2010-08-26  Bruno Haible  <bruno@clisp.org>
10905
10906         Modernize AC_TRY_RUN invocations.
10907         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10908         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10909         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10910         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10911         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10912         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10914         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10915         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10916         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10917         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10918         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10919         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10920         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10921         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10922         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10923         gl_MBRLEN_NUL_RETVAL): Likewise.
10924         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10925         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10926         Likewise.
10927         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10928         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10929         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10930         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10931         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10932         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10933         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10934         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10935         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10936         Likewise.
10937         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10938         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10939         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10940         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10941         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10942         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10943         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10944         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10945         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10947
10948 2010-08-26  Bruno Haible  <bruno@clisp.org>
10949
10950         Modernize AC_TRY_LINK invocations.
10951         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10952         AC_TRY_LINK.
10953         * m4/argp.m4 (gl_ARGP): Likewise.
10954         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10955         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10956         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10957         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10958         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10959         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10960         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10961         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10962         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10963         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10964         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10965         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10966         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10967         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10968         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10969         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10970         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10971         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10972         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10973         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10974         Likewise.
10975         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10976         Likewise.
10977         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10978         Likewise.
10979         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10981         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10982         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10983         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10984         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10985         * m4/servent.m4 (gl_SERVENT): Likewise.
10986         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10987         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10988         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10989         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10990         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10991         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10992         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10994         * modules/tsearch-tests (configure.ac): Likewise.
10995
10996 2010-08-26  Bruno Haible  <bruno@clisp.org>
10997
10998         Modernize AC_TRY_COMPILE invocations.
10999         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11000         AC_TRY_COMPILE.
11001         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11002         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11003         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11004         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11005         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11006         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11007         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11008         * m4/lock.m4 (gl_LOCK): Likewise.
11009         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11010         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11011         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11012         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11013         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11014         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11015         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11017         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11018         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11019         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11020         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11021         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11022         extraneous semicolon.
11023
11024 2010-08-26  Jim Meyering  <meyering@redhat.com>
11025
11026         stat-time: relax license LGPL
11027         * modules/stat-time (License): Change from GPL to LGPL,
11028         with consent from all contributors, for use in libguile.
11029         Requested by Ludovic Courtès.
11030
11031 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11032
11033         poll: return immediately on POLLHUP.
11034         * lib/poll.c (poll): Always set timeout before wait_timeout is
11035         computed.
11036
11037 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11038
11039         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11040         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11041         rmdir ("dir/.//"), unlinkat.
11042
11043 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11044
11045         stdbool: avoid spurious failure with modern xlc
11046         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11047
11048 2010-08-24  Bruno Haible  <bruno@clisp.org>
11049
11050         getloadavg: simplify code
11051         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11052         gl_have_func. Update comments.
11053
11054 2010-08-24  Eric Blake  <eblake@redhat.com>
11055
11056         getloadavg: don't define SVR4 on cygwin
11057         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11058         only define SVR4 when -lkvm is required.
11059         Reported by Yaakov Selkowitz.
11060
11061 2010-08-24  Bruno Haible  <bruno@clisp.org>
11062
11063         priv-set: fix comment
11064         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11065
11066 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11067
11068         priv-set: fix comments
11069         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11070         to match code, as suggested by David Bartley in:
11071         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11072
11073 2010-08-23  Eric Blake  <eblake@redhat.com>
11074
11075         stdbool: avoid rejecting clang
11076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11077         * tests/test-stdbool.c: Enable more tests if using the system
11078         <stdbool.h> instead of the gnulib replacement.
11079         (main): Move xlc bug test to a runtime test for all compilers.
11080         Reported by Anders Kaseorg.
11081
11082         argz: fix shell quoting issue
11083         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11084         Reported by Charles Wilson.
11085
11086 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11087             Erik Faye-Lund <kusmabite@gmail.com>
11088
11089         poll, select: handle ERROR_BROKEN_PIPE.
11090         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11091         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11092         * lib/select.c (win32_compute_revents): Do not mark a pipe
11093         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11094
11095 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11096
11097         fts: allow compilation with C++
11098         * lib/fts_.h: Specify extern "C" linkage with C++.
11099
11100 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11101
11102         Fix gnulib-tool sed script de-commentation for AIX sed.
11103         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11104         sed.
11105
11106 2010-08-17  Eric Blake  <eblake@redhat.com>
11107
11108         test-stddef: test for (some) offsetof bugs
11109         * tests/test-stddef.c: Enhance test to ensure correct type of
11110         offsetof.
11111         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11112         that we are not fixing at this time.
11113
11114 2010-08-15  Bruno Haible  <bruno@clisp.org>
11115
11116         stpncpy: Allow stpncpy to be defined as a macro.
11117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11118         if it's already correctly declared.
11119         * lib/string.in.h (stpncpy): Undefine before redefining.
11120         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11121
11122 2010-08-14  Bruno Haible  <bruno@clisp.org>
11123
11124         Rename module 'memxfrm' to 'amemxfrm'.
11125         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11126         (amemxfrm): Renamed from memxfrm.
11127         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11128         (amemxfrm): Renamed from memxfrm.
11129         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11130         * NEWS: Mention the change.
11131         * MODULES.html.sh (String handling <string.h>): Update.
11132         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11133         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11134         * lib/unicase/u16-casexfrm.c: Likewise.
11135         * lib/unicase/u32-casexfrm.c: Likewise.
11136         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11137         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11138         * lib/uninorm/u16-normxfrm.c: Likewise.
11139         * lib/uninorm/u32-normxfrm.c: Likewise.
11140         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11141         memxfrm.
11142         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11143         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11144         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11145         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11146         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11147         Suggested by Paul Eggert.
11148
11149 2010-08-14  Bruno Haible  <bruno@clisp.org>
11150
11151         Tests for module 'astrxfrm'.
11152         * modules/astrxfrm-tests: New file.
11153         * tests/test-astrxfrm.c: New file.
11154
11155         New module 'astrxfrm'.
11156         * lib/astrxfrm.h: New file.
11157         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11158         * modules/astrxfrm: New file.
11159
11160 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11161
11162         regex: Tweak doc.
11163         * doc/regex.texi (Overview): Don't mention regex.c.
11164         (GNU Regular Expression Compiling): Likewise.
11165         (Match-end-of-line Operator): Mention 'not_eol'.
11166
11167 2010-08-14  Brian Gough  <bjg@gnu.org>
11168             Bruno Haible  <bruno@clisp.org>
11169
11170         git-merge-changelog: add doc relating to use with bzr and hg.
11171         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11172
11173 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11174
11175         pthread: fix pthread.h creation for srcdir != builddir
11176         * modules/pthread (Makefile.am): Fix the rule to work also in a
11177         non-srcdir build.
11178
11179 2010-08-13  Karl Berry  <karl@gnu.org>
11180
11181         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11182         * doc/posix-*/*: force line break before @url of POSIX
11183         specifications.
11184         Suggested by Werner Lemberg.
11185
11186 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11187
11188         strtod: fix const diagnostic
11189         * lib/strtod.c (strtod): Don't assign const char * to char *,
11190         as this elicits a warning from GCC when warnings are enabled.
11191
11192 2010-08-10  Pádraig Brady <P@draigbrady.com>
11193         and Eric Blake  <eblake@redhat.com>
11194
11195         copy-acl: ignore ENOTSUP on HP-UX
11196         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11197         so that it is available for HP-UX.
11198         * lib/copy-acl.c (qcopy_acl): Use it.
11199         Reported by Patrick M. Callahan.
11200
11201 2010-08-10  Eric Blake  <eblake@redhat.com>
11202
11203         open, chown: relax license
11204         * modules/open (License): Change to LGPLv2+, with consent by all
11205         authors, for use in augeas.
11206         * modules/chown (License): Likewise.
11207         * modules/lchown (Likewise): Likewise.
11208         Requested by Adam Stokes.
11209
11210 2010-08-09  Karl Berry  <karl@gnu.org>
11211
11212         * build-aux/ar-lib: new file, import from Automake.
11213         * config/srclist.txt: autocheck for updates.
11214
11215 2010-08-09  Eric Blake  <eblake@redhat.com>
11216
11217         readlinkat: adjust client modules
11218         * modules/areadlinkat (Depends-on): Use readlinkat, not
11219         symlinkat.
11220         * modules/areadlinkat-with-size (Depends-on): Likewise.
11221
11222         mknod: be more vocal about danger of running tests as root
11223         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11224         root, since that is just asking for problems.
11225         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11226
11227         readlinkat: split into its own module
11228         * modules/symlinkat: Split readlinkat...
11229         * modules/readlinkat: ...into separate module.
11230         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11231         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11232         * lib/symlinkat.c (readlinkat): Move...
11233         * lib/readlinkat.c: ...into new file.
11234         * modules/symlinkat-tests: Split readlinkat test...
11235         * modules/readlinkat-tests: ...into separate module.
11236         * tests/test-symlinkat.c: Split...
11237         * tests/test-readlinkat.c: ...into new file.
11238         * NEWS: Document the split.
11239         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11240         * lib/unistd.in.h (readlinkat): Likewise.
11241         Suggested by Bruno Haible.
11242
11243 2010-08-08  Bruno Haible  <bruno@clisp.org>
11244
11245         memxfrm: Speed up.
11246         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11247         that usually only one call to strxfrm is necessary for each string
11248         part.
11249         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11250
11251 2010-08-07  Karl Berry  <karl@gnu.org>
11252
11253         * doc/posix-headers/limits.texi,
11254         * doc/posix-functions/malloc.texi,
11255         * doc/posix-functions/strsignal.texi: missing @item.
11256         * doc/ld-version-script.texi: spurious leading i.
11257         * doc/regex.texi (Interval Operators): no commas inside @var.
11258
11259 2010-08-01  Bruno Haible  <bruno@clisp.org>
11260
11261         Integrate the regex documentation.
11262         * doc/gnulib.texi: Define 'cn' index.
11263         (Regular expressions): New a chapter that includes regex.texi and
11264         regexprops-generic.texi.
11265         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11266         syntax.
11267
11268         Whitespace cleanup.
11269         * doc/regex.texi: Remove trailing spaces.
11270
11271         Add regex documentation.
11272         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11273         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11274         Written by Kathy A. Hargreaves and Karl Berry.
11275
11276 2010-08-01  Bruno Haible  <bruno@clisp.org>
11277
11278         link: Update documentation.
11279         * doc/posix-functions/link.texi: Update regarding Solaris.
11280
11281 2010-07-31  Bruno Haible  <bruno@clisp.org>
11282
11283         Update modules list.
11284         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11285         (String handling <string.h>): Add memcmp2, memxfrm.
11286         (Container data structures): Add xlist, xsublist, xoset.
11287         (Core language properties): Add alignof, unused-parameter.
11288         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11289         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11290         (Unibyte characters <ctype.h>): New section.
11291         (String handling <string.h>): New section.
11292         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11293         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11294         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11295         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11296         tan, tanh, tanl, y0, y1, yn.
11297         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11298         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11299         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11300         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11301         unlockpt, vdprintf, vdprintf-posix.
11302         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11303         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11304         xconcat-filename.
11305         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11306         getdtablesize, pipe2, pipe2-safer.
11307         (Security): New section.
11308         (Networking functions): Add accept4.
11309         (Signal handling): Add sigpipe.
11310         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11311         mbmemcasecoll.
11312         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11313         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11314         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11315         pipe-filter-ii.
11316         (Misc): Add argp-version-etc, login_tty, parse-duration.
11317
11318 2010-07-31  Bruno Haible  <bruno@clisp.org>
11319
11320         Improve doc in MODULES.html.
11321         * modules/linkat (Description): Add the word "function".
11322         * modules/mkfifo (Description): Likewise.
11323         * modules/mknod (Description): Likewise.
11324         * modules/remove (Description): Likewise.
11325         * modules/renameat (Description): Likewise.
11326         * modules/stat (Description): Likewise.
11327         * modules/symlink (Description): Likewise.
11328         * modules/unlink (Description): Likewise.
11329
11330 2010-07-31  Bruno Haible  <bruno@clisp.org>
11331
11332         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11333         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11334         option --enable/disable-c++ instead of --enable/disable-cxx.
11335         * NEWS: Mention the change.
11336
11337 2010-07-31  Bruno Haible  <bruno@clisp.org>
11338
11339         readlink, areadlink: Relax test a bit.
11340         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11341         alternative to ENOTDIR.
11342         * tests/test-areadlink.h (test_areadlink): Likewise.
11343         Reported by Rainer Tammer.
11344
11345 2010-07-31  Bruno Haible  <bruno@clisp.org>
11346
11347         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11348         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11349         character, perform the search using U_STRCHR.
11350         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11351         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11352         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11353         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11354         Suggested by Paolo Bonzini.
11355
11356 2010-07-31  Bruno Haible  <bruno@clisp.org>
11357
11358         unistr/u*-strstr: Fix dependencies.
11359         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11360         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11361         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11362
11363 2010-07-31  Bruno Haible  <bruno@clisp.org>
11364
11365         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11366         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11367         the beginning of the loop.
11368         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11369         cases in 'switch' statement.
11370
11371         unistr/u8-strchr: Fix several bugs.
11372         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11373         the string. When not found, return NULL, not a pointer near the end.
11374
11375         More tests for unistr/u8-strchr.
11376         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11377         that the function does not read past the first occurrence of the byte
11378         being searched.
11379         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11380         * tests/unistr/test-u16-strchr.c (main): New function.
11381         * tests/unistr/test-u32-strchr.c (main): New function.
11382
11383 2010-07-31  Bruno Haible  <bruno@clisp.org>
11384
11385         posix-modules: Ignore backup files of documentation files.
11386         * posix-modules: grep only through files named *.texi.
11387
11388 2010-07-31  Bruno Haible  <bruno@clisp.org>
11389
11390         symlinkat: Fix documentation.
11391         * doc/posix-functions/readlinkat.texi: Fix module name.
11392
11393 2010-07-31  Bruno Haible  <bruno@clisp.org>
11394
11395         fchownat: Replace also when chown has the trailing slash bug.
11396         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11397         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11398         introduced on 2010-04-10.
11399         Reported by Rainer Tammer.
11400
11401 2010-07-31  Bruno Haible  <bruno@clisp.org>
11402
11403         linkat: Work around AIX 7.1 bug.
11404         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11405         whether linkat handles trailing slash correctly. If not, replace linkat
11406         and define LINKAT_TRAILING_SLASH_BUG.
11407         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11408         check whether (fd1,file1) points to a directory if file1 or file2 ends
11409         in a slash. Code taken from lib/link.c.
11410         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11411         Reported by Rainer Tammer.
11412
11413 2010-07-31  Bruno Haible  <bruno@clisp.org>
11414
11415         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11416         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11417         This disables an xlc optimization that was causing wrong test results.
11418         Reported by Rainer Tammer.
11419
11420 2010-07-31  Bruno Haible  <bruno@clisp.org>
11421
11422         iconv: Work around AIX 6.1..7.1 bug.
11423         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11424         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11425         cross-compiling, guess no on all versions of AIX.
11426         Reported by Rainer Tammer.
11427
11428 2010-07-31  Bruno Haible  <bruno@clisp.org>
11429
11430         readlink: Relax test a bit.
11431         * tests/test-readlink.h (test_readlink): Allow different errno value
11432         when readlink is called with a file name that ends in / and refers to
11433         a file.
11434         Suggested by Eric Blake.
11435         Reported by Rainer Tammer.
11436
11437 2010-07-31  Bruno Haible  <bruno@clisp.org>
11438
11439         copysign: Does not require -lm on glibc systems.
11440         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11441         gl_COMMON_DOUBLE_MATHFUNC.
11442         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11443
11444 2010-07-31  Bruno Haible  <bruno@clisp.org>
11445
11446         duplocale: Work around AIX 7.1 bug.
11447         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11448         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11449         * lib/duplocale.c (rpl_duplocale): Update comment.
11450         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11451         Reported by Rainer Tammer.
11452
11453 2010-07-30  Bruno Haible  <bruno@clisp.org>
11454
11455         dirfd: Avoid link error on AIX 7.1.
11456         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11457         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11458         exist, set REPLACE_DIRFD.
11459         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11460         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11461         * doc/posix-functions/dirfd.texi: Update.
11462         Reported by Rainer Tammer.
11463
11464 2010-07-30  Eric Blake  <eblake@redhat.com>
11465
11466         strtod: next round of AIX fixes
11467         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11468         exponent.
11469         * tests/test-strtod.c (main): Enhance tests.
11470         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11471         Reported by Rainer Tammer.
11472
11473         futimens: fix configure check
11474         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11475         Reported by Bruno Haible.
11476
11477 2010-07-30  Bruno Haible  <bruno@clisp.org>
11478
11479         getline: Update regarding AIX.
11480         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11481         Reported by Rainer Tammer.
11482
11483 2010-07-30  Bruno Haible  <bruno@clisp.org>
11484
11485         wcwidth: Drop replacement on AIX 7.
11486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11487         AIX 7.
11488         Reported by Rainer Tammer.
11489
11490 2010-07-30  Bruno Haible  <bruno@clisp.org>
11491
11492         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11493         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11494         a 'char *'.
11495         Reported by Rainer Tammer.
11496
11497 2010-07-30  Bruno Haible  <bruno@clisp.org>
11498
11499         unlink: Update regarding AIX.
11500         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11501         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11502         Reported by Rainer Tammer.
11503
11504 2010-07-30  Bruno Haible  <bruno@clisp.org>
11505
11506         symlink: Update regarding AIX.
11507         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11508         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11509         Reported by Rainer Tammer.
11510
11511 2010-07-30  Bruno Haible  <bruno@clisp.org>
11512
11513         strndup: Update regarding AIX.
11514         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11515         AIX 7.
11516         Reported by Rainer Tammer.
11517
11518 2010-07-30  Bruno Haible  <bruno@clisp.org>
11519
11520         stat: Update regarding AIX.
11521         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11522         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11523         Reported by Rainer Tammer.
11524
11525 2010-07-30  Bruno Haible  <bruno@clisp.org>
11526
11527         truncl: Fix autoconf test.
11528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11529         whether truncl works.
11530         Reported by Rainer Tammer.
11531
11532 2010-07-30  Bruno Haible  <bruno@clisp.org>
11533
11534         round: Update regarding AIX.
11535         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11536         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11537         Reported by Rainer Tammer.
11538
11539 2010-07-30  Bruno Haible  <bruno@clisp.org>
11540
11541         rename: Update regarding AIX.
11542         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11543         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11544         Reported by Rainer Tammer.
11545
11546 2010-07-30  Bruno Haible  <bruno@clisp.org>
11547
11548         printf.m4: Update regarding AIX.
11549         * m4/printf.m4: Update comments regarding AIX.
11550         Reported by Rainer Tammer.
11551
11552 2010-07-30  Bruno Haible  <bruno@clisp.org>
11553
11554         iconv: Update regarding AIX.
11555         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11556         AIX 7.
11557         Reported by Rainer Tammer.
11558
11559 2010-07-30  Bruno Haible  <bruno@clisp.org>
11560
11561         getopt: Update regarding AIX.
11562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11563         no on AIX.
11564         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11565         Reported by Rainer Tammer.
11566
11567 2010-07-30  Bruno Haible  <bruno@clisp.org>
11568
11569         ldexpl; Update regarding AIX.
11570         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11571         on AIX 7.
11572         Reported by Rainer Tammer.
11573
11574 2010-07-30  Bruno Haible  <bruno@clisp.org>
11575
11576         frexpl: Update regarding AIX.
11577         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11578         on AIX 7.
11579         Reported by Rainer Tammer.
11580
11581 2010-07-30  Bruno Haible  <bruno@clisp.org>
11582
11583         open, fopen: Update regarding AIX.
11584         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11585         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11586         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11587         * doc/posix-functions/fopen.texi: Likewise.
11588         Reported by Rainer Tammer.
11589
11590 2010-07-30  Bruno Haible  <bruno@clisp.org>
11591
11592         chown: Update doc regarding AIX.
11593         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11594         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11595         Reported by Rainer Tammer.
11596
11597 2010-07-30  Eric Blake  <eblake@redhat.com>
11598
11599         strtod: fix bug in replacement function on AIX
11600         * lib/strtod.c (strtod): Special case broken "0x" parse in
11601         underlying strtod.
11602         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11603         * doc/posix-functions/strtod.texi (strtod): Likewise.
11604         Reported by Rainer Tammer.
11605
11606 2010-07-30  Bruno Haible  <bruno@clisp.org>
11607
11608         mbrlen: Fix cross-compilation guess for AIX.
11609         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11610         guess. Leftover from 2008-12-22.
11611
11612 2010-07-30  Bruno Haible  <bruno@clisp.org>
11613
11614         mbrtowc: Fix cross-compilation guess for AIX.
11615         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11616         guess. Leftover from 2008-12-21.
11617
11618 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11619
11620         init.sh: work around trap limitation of some shells
11621         * tests/init.sh (setup_): Move exit trap outside of shell function.
11622
11623 2010-07-29  Eric Blake  <eblake@redhat.com>
11624
11625         strtod: aid debugging
11626         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11627         understanding why strtod is rejected.
11628
11629 2010-07-28  Bruno Haible  <bruno@clisp.org>
11630
11631         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11632         * lib/unistr/u8-chr.c: Include <string.h>.
11633         * tests/unistr/test-u8-chr.c: Likewise.
11634         * tests/unistr/test-u16-chr.c: Likewise.
11635         * tests/unistr/test-u32-chr.c: Likewise.
11636         * tests/unistr/test-u8-strchr.c: Likewise.
11637         * tests/unistr/test-u16-strchr.c: Likewise.
11638         * tests/unistr/test-u32-strchr.c: Likewise.
11639         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11640         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11641         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11642         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11643
11644 2010-07-28  Bruno Haible  <bruno@clisp.org>
11645
11646         Use spaces for indentation, not tabs.
11647         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11648
11649 2010-07-27  Bruno Haible  <bruno@clisp.org>
11650
11651         mbspcasecmp: Fix function specification.
11652         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11653         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11654         Reported by Eric Blake <eblake@redhat.com>.
11655
11656 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11657
11658         timespec: use cast and not conditional, as truncation isn't possible
11659         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11660         instead of a conditional.  Comment about the situation in more detail.
11661         This undoes most of the 2009-10-29 patch.
11662
11663 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11664
11665         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11666         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11667         * lib/unistr/u8-strchr.c: Likewise.
11668         * modules/unistr/u8-chr: Depend on memchr.
11669
11670         unistr/u*-strchr: add tests
11671         * modules/unistr/u8-strchr-tests: New file.
11672         * modules/unistr/u16-strchr-tests: New file.
11673         * modules/unistr/u32-strchr-tests: New file.
11674         * tests/unistr/test-strchr.h: New file.
11675         * tests/unistr/test-u8-strchr.c: New file.
11676         * tests/unistr/test-u16-strchr.c: New file.
11677         * tests/unistr/test-u32-strchr.c: New file.
11678
11679         unistr/u*-chr: test multibyte sequences more
11680         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11681         test vector.
11682         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11683         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11684         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11685
11686         unistr/u*-chr: test multibyte sequences
11687         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11688
11689         unistr/u*-chr: prepare for multibyte tests
11690         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11691         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11692         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11693         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11694         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11695         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11696
11697 2010-07-18  Bruno Haible  <bruno@clisp.org>
11698
11699         unistr/u8-strchr: Optimize non-ASCII argument case.
11700         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11701         because the first byte often matches anyway.
11702         Reported by Pádraig Brady <P@draigbrady.com>.
11703
11704 2010-07-15  Karl Berry  <karl@gnu.org>
11705
11706         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11707
11708 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11709
11710         getcwd: on Solaris, work better if ancestors are inaccessible
11711         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11712         buffer and size, try again with a large buffer.  This works better
11713         on Solaris, since its getcwd succeeds even if the path to the root
11714         is inaccessible, and this is helpful in common cases such as .zfs
11715         hidden directories.  Problem reported by J Chapman Flack in
11716         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11717         Use system getcwd if it's declared, not merely if it's partly
11718         working; use the partly-working test only to avoid needless effort
11719         if the system getcwd fails.
11720         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11721         comment that was already obsolete and is now even more obsolete.
11722         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11723         now might call strdup.
11724
11725 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11726
11727         pthread: Add enough so that coreutils/src/sort.c compiles.
11728         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11729         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11730         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11731         Include <sys/types.h>, in case it defines pthread_t.
11732         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11733         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11734         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11735         (pthread_rwlockattr_t, pthread_spinlock_t):
11736         New typedefs, if HAVE_PTHREAD_T is not defined.
11737         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11738         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11739         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11740         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11741         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11742         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11743         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11744         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11745         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11746         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11747         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11748         New macros.
11749         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11750         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11751         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11752         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11753         (pthread_spin_unlock): New dummy functions.
11754         (pthread_create): Return EAGAIN; don't set errno.
11755         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11756         require AC_C_INLINE.
11757         * modules/pthread (Depends-on): Add sched, time.
11758         (pthread.h): Use AM_V_GEN.
11759
11760 2010-07-13  Bruno Haible  <bruno@clisp.org>
11761
11762         striconveh: Don't malloc memory if the result buffer is sufficient.
11763         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11764         buffer if its size is sufficient.
11765         Reported by Ludovic Courtès <ludo@gnu.org>.
11766
11767 2010-07-13  Bruno Haible  <bruno@clisp.org>
11768
11769         strtod: Add safety check.
11770         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11771
11772 2010-07-12  Bruno Haible  <bruno@clisp.org>
11773
11774         Unify tests that set gl_cv_func_ldexpl_no_libm.
11775         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11776         gl_FUNC_LDEXPL.
11777         (gl_FUNC_LDEXPL): Invoke it.
11778         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11779
11780 2010-07-12  Bruno Haible  <bruno@clisp.org>
11781
11782         Unify tests that set gl_cv_func_ldexp_no_libm.
11783         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11784         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11785         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11786         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11787         * modules/strtod (Files): Add m4/ldexp.m4.
11788
11789 2010-07-12  Bruno Haible  <bruno@clisp.org>
11790
11791         Unify tests that set gl_cv_func_frexpl_no_libm.
11792         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11793         gl_FUNC_FREXPL_NO_LIBM.
11794         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11795         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11796
11797 2010-07-12  Bruno Haible  <bruno@clisp.org>
11798
11799         Unify tests that set gl_cv_func_frexp_no_libm.
11800         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11801         gl_FUNC_FREXP_NO_LIBM.
11802         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11803         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11804
11805 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11806
11807         memcoll: clarify sizes versus lengths, document better, and tweak perf
11808         * lib/memcoll.c (strcoll_loop, memcoll0):
11809         Improve quality of descriptive comments.  Name variables
11810         consistently as to whether they are lengths (which do not include
11811         terminating null) versus sizes (which do).
11812         * lib/xmemcoll.c (xmemcoll0): Likewise.
11813         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11814         returned when s1size == 0; this is easier to compile and saves
11815         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11816
11817 2010-07-12  Bruno Haible  <bruno@clisp.org>
11818
11819         Tests for module '_Exit'.
11820         * modules/_Exit-tests: New file.
11821         * tests/test-_Exit.sh: New file.
11822         * tests/test-_Exit.c: New file.
11823
11824         New module '_Exit'.
11825         * lib/stdlib.in.h (__attribute__): New macro.
11826         (_Exit): New declaration.
11827         * lib/_Exit.c: New file.
11828         * m4/_Exit.m4: New file.
11829         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11830         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11831         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11832         * modules/_Exit: New file.
11833         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11834         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11835
11836 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11837
11838         strtod: make it more-accurate typically, and don't require libm
11839         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11840         Include limits.h.  Don't include string.h.
11841         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11842         (locale_isspace): New function, so that no casts are needed to
11843         check whether *s is a space.
11844         (ldexp): Provide an unused dummy if not available.
11845         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11846         (strtod): Use them.  This implementation prefers to use the
11847         underlying strtod if available, falling back on our own code
11848         only to fix known bugs.  This is more likely to produce an
11849         accurate result.  Also, it avoids the use of libm functions.
11850         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11851         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11852         was absent, but it caused a test failure with coreutils.
11853         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11854         with libm.
11855         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11856         * modules/strtod-tests (Makefile.am): Likewise.
11857
11858 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11859             Bruno Haible  <bruno@clisp.org>
11860
11861         unistr/u8-strchr: Optimize ASCII argument case.
11862         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11863
11864 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         (x)memcoll: minor tweaks
11867         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11868         is after the type that it qualifies.
11869         (memcoll0): Likewise.
11870         * lib/memcoll.h (memcoll0): Likewise.
11871         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11872         * lib/xmemcoll.h (xmemcoll0): Likewise.
11873         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11874         differs from memcoll in that the NUL byte is part of the argument.
11875         Omit the abort-checks, as performance is a real issue here.  Plus,
11876         the checks were wrong anyway (an off-by-one error).  Omit local
11877         variable 'diff', as it's a bit clearer that way.
11878         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11879         no longer needed.
11880
11881 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11882
11883         (x)memcoll: speedup when input is known to be NUL delimited
11884         * lib/memcoll.c: Include stdlib.
11885         (memcoll0): New function.
11886         (strcoll_loop): New function, refactored for use in both memcoll
11887         and memcoll0.
11888         * lib/memcoll.h (memcoll0): Add prototype.
11889         * lib/xmemcoll.c (xmemcoll0): New function.
11890         (collate_error): New function, refactored for use in both xmemcoll
11891         and xmemcoll0.
11892         * lib/xmemcoll.h (xmemcoll0): Add prototype.
11893         * m4/memcoll.m4: add inline invocation.
11894
11895 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11896
11897         * build-aux/bootstrap: Remove any local translations
11898         from the translation project synchronization directory,
11899         so that local only translations are not distributed.
11900
11901 2010-07-04  Bruno Haible  <bruno@clisp.org>
11902
11903         fsusage: Clarify which code applies to which platforms.
11904         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11905         platform.
11906         * lib/fsusage.c (get_fs_usage): Likewise.
11907
11908 2010-07-04  Bruno Haible  <bruno@clisp.org>
11909
11910         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11911         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11912         Reported by Martin Lambers <marlam@marlam.de>.
11913
11914 2010-07-04  Jim Meyering  <meyering@redhat.com>
11915
11916         hash: once again explicitly disallow insertion of NULL
11917         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11918         inserting a NULL pointer cannot work with these functions.
11919         Add a comment with details.
11920         This reverts part of the 2010-07-01 commit, 5bef1a35
11921         "hash: extend module to deal with non-pointer keys".
11922
11923 2010-07-01  Bruno Haible  <bruno@clisp.org>
11924
11925         stdbool: Update doc.
11926         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11927         Info from Christian Weisgerber <naddy@mips.inka.de>.
11928
11929 2010-07-01  Jim Meyering  <meyering@redhat.com>
11930
11931         hash: extend module to deal with non-pointer keys
11932         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11933         but that allows insertion of non-pointer entries.
11934         Do not disallow an ENTRY value of NULL.
11935         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11936         * lib/hash.h (hash_insert0): Declare.
11937
11938 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11939
11940         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11941         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11942         not present (i.e. with autoconf 2.59 and when using gettextize, not
11943         gnulib), require AC_GNU_SOURCE instead.
11944
11945 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11946
11947         idpriv-drop: Fix tests.
11948         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11949         not to the test-idpriv-droptemp program.
11950
11951 2010-06-29  Bruno Haible  <bruno@clisp.org>
11952
11953         string: Fix syntax error with g++ 2.96.
11954         * lib/string.in.h (__pure__): Remove definition.
11955         (_GL_ATTRIBUTE_PURE): New macro.
11956         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11957         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11958         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11959
11960 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11961
11962         unitypes: Fix bug introduced on 2010-05-18.
11963         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11964
11965 2010-06-22  Eric Blake  <eblake@redhat.com>
11966
11967         memmem: slight optimization
11968         * lib/str-two-way.h (critical_factorization): Update comments.
11969         Reduce work during factorization phase.
11970         Reported by Carlos Bueno <carlos@bueno.org>.
11971
11972 2010-06-21  Bruno Haible  <bruno@clisp.org>
11973
11974         Fix HAVE_CALLOC_POSIX misnomer.
11975         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11976         !HAVE_CALLOC_POSIX.
11977         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11978         HAVE_CALLOC_POSIX.
11979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11980         instead of HAVE_CALLOC_POSIX.
11981         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11982         HAVE_CALLOC_POSIX.
11983
11984         Use modern idiom for calloc() replacement.
11985         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11986         AC_FUNC_CALLOC.
11987         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11988         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11989         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11990         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11991         (gl_REPLACE_CALLOC): New macro.
11992
11993 2010-06-21  Bruno Haible  <bruno@clisp.org>
11994
11995         Fix HAVE_REALLOC_POSIX misnomer.
11996         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11997         !HAVE_REALLOC_POSIX.
11998         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11999         HAVE_REALLOC_POSIX.
12000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12001         instead of HAVE_REALLOC_POSIX.
12002         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12003         HAVE_REALLOC_POSIX.
12004
12005         Use modern idiom for realloc() replacement.
12006         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12007         AC_FUNC_REALLOC.
12008         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12009         Autoconf's AC_FUNC_REALLOC.
12010         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12011         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12012         (gl_REPLACE_REALLOC): New macro.
12013         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12014
12015 2010-06-21  Bruno Haible  <bruno@clisp.org>
12016
12017         Fix HAVE_MALLOC_POSIX misnomer.
12018         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12019         !HAVE_MALLOC_POSIX.
12020         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12021         HAVE_MALLOC_POSIX.
12022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12023         instead of HAVE_MALLOC_POSIX.
12024         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12025         HAVE_MALLOC_POSIX.
12026
12027         Use modern idiom for malloc() replacement.
12028         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12029         AC_FUNC_MALLOC.
12030         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12031         Autoconf's AC_FUNC_MALLOC.
12032         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12033         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12034         (gl_REPLACE_MALLOC): New macro.
12035         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12036
12037 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12038
12039         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12040         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12041         This macro takes 3 arguments, not 4.
12042
12043 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12044
12045         ipv6: fix detection under mingw
12046         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12047         in6_addr.
12048
12049 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12050
12051         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12052         that strtod() works when cross-compiling to a glibc version known
12053         to work.
12054
12055 2010-06-15  Bruno Haible  <bruno@clisp.org>
12056
12057         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12058
12059 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12060
12061         select: Correct timeout.
12062         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12063
12064 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12065
12066         git-version-gen: init shell var to avoid env var influence
12067         * build-aux/git-version-gen (v): Init shell var to empty.
12068
12069 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12070
12071         priv-set: Don't assume that priv.h exists merely because getppriv does.
12072         See Jan Andersen's bug report about AIX 5L in
12073         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12074         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12075         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12076         * lib/priv-set.h: Likewise.
12077         * tests/test-priv-set.c: Likewise.
12078
12079 2010-06-13  Bruno Haible  <bruno@clisp.org>
12080
12081         relocatable: Make it easier to test whether to install wrappers.
12082         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12083         RELOCATABLE_VIA_WRAPPER.
12084
12085 2010-06-13  Bruno Haible  <bruno@clisp.org>
12086
12087         gnulib-tool: Display specified modules and dependencies differently.
12088         * gnulib-tool (func_show_module_list): New function.
12089         (func_import, func_create_testdir): Invoke it.
12090         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12091
12092 2010-06-13  Bruno Haible  <bruno@clisp.org>
12093
12094         gnulib-tool: Align code of func_import and func_create_testdir.
12095         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12096         specified_modules.
12097
12098 2010-06-12  Jim Meyering  <meyering@redhat.com>
12099
12100         test-inttostr: avoid spurious failure on Solaris 9
12101         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12102         to accept "%ju".  Reported by Bruno Haible.
12103
12104 2010-06-11  Jim Meyering  <meyering@redhat.com>
12105
12106         test-sys_socket: mark variables as used more readably
12107         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12108         as "used" explicitly via (void) statement casts.  This is more
12109         readable than using them in an artificial return expression.
12110         Suggestion from Bruno Haible.
12111
12112 2010-06-11  Bruno Haible  <bruno@clisp.org>
12113
12114         Avoid some more warnings from "gcc -Wwrite-strings".
12115         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12116         to 'const char *'.
12117         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12118         * tests/test-c-strcasestr.c (main): Likewise.
12119         * tests/test-mbscasestr1.c (main): Likewise.
12120         * tests/test-mbscasestr2.c (main): Likewise.
12121         * tests/test-memmem.c (main): Likewise.
12122         * tests/test-strstr.c (main): Likewise.
12123         * tests/test-strcasestr.c (main): Likewise.
12124
12125 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12126
12127         init.sh: change framework_failure_ to fail with status 99, not 1
12128         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12129         automake's parallel-tests rule that this is an unexpected failure,
12130         even if the test is listed in XFAIL_TESTS.
12131
12132 2010-06-11  Jim Meyering  <meyering@redhat.com>
12133
12134         test-inttostr: avoid warnings about 4-6KB literal strings
12135         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12136         Include "macros.h", for its definition of ASSERT.
12137         (CK): s/assert/ASSERT/
12138         * modules/inttostr-tests (Files): Add macros.h.
12139
12140         init.sh: don't use $ME_ or skip_ before they are defined
12141         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12142         their first uses.  Also hoist their companions: warn_, fail_,
12143         framework_failure_, $stderr_fileno.  Prompted by a patch from
12144         Stefano Lattarini.
12145
12146         test-sys_socket: avoid set-but-not-used warnings from gcc
12147         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12148         avoid warning about set-but-not-used variables.
12149
12150         test-xvasprintf: avoid 'const' discard warnings
12151         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12152         "const" when assigning from literal strings.
12153         (test_xasprintf): Add "void" in function argument list to placate
12154         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12155
12156         tests: avoid compilation warnings in argmatch and exclude tests...
12157         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12158         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12159         Since it always exits, declare with the "noreturn" attribute.
12160         * tests/test-argmatch.c: Likewise.
12161
12162         tests: avoid 'const' discard warnings in mbsstr tests
12163         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12164         * tests/test-mbsstr2.c (main): Likewise.
12165
12166         test-verify: avoid warning from gcc's -Wmissing-declarations
12167         * tests/test-verify.c (function): Declare to be static.
12168
12169         test-inttostr.c: include <string.h> for use of strcmp
12170         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12171
12172         test-linkat: avoid failed assertion on "other" architectures
12173         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12174         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12175         sparc: https://bugs.launchpad.net/bugs/591968
12176
12177 2010-06-11  Jim Meyering  <meyering@redhat.com>
12178
12179         printf.m4: avoid autoconf's "Expanded Before Required" warning
12180         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12181         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12182         autoconf warning.
12183
12184 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12185
12186         Replacement header templates are now named with ".in", not "_".
12187         * doc/gnulib-intro.texi: Correct.
12188
12189 2010-06-10  Jim Meyering  <meyering@redhat.com>
12190
12191         inttostr-tests: depend on snprintf, not snprintf-posix
12192         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12193         snprintf-posix, to avoid this aclocal failure:
12194           missing file gnulib-tests/vasnprintf.c
12195           configure.ac:45: error: expected source file, required through \
12196           AC_LIBSOURCES, not found
12197
12198 2010-06-10  Jim Meyering  <meyering@redhat.com>
12199
12200         inttostr: add a new function, inttostr, and tests
12201         The namesake function was not available.  The existence of the
12202         template file, inttostr.c makes its addition nontrivial.
12203         * lib/anytostr.c: Rename from inttostr.c.
12204         (anytostr): Rename from inttostr.
12205         * lib/inttostr.c: New file.
12206         * modules/inttostr (Files): Add anytostr.c.
12207         (Makefile.am): Set lib_SOURCES instead of ...
12208         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12209         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12210         * lib/offtostr.c: Likewise.
12211         * lib/uinttostr.c: Likewise.
12212         * lib/umaxtostr.c: Likewise.
12213         * modules/inttostr-tests: New file.
12214         * tests/test-inttostr.c: New file.  Test these functions.
12215
12216 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12217             Bruno Haible  <bruno@clisp.org>
12218
12219         Add "Extending Gnulib" chapter to manual.
12220         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12221         chapter.
12222         (Extending Gnulib): New chapter.
12223         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12224         chapter.
12225
12226 2010-06-09  Bruno Haible  <bruno@clisp.org>
12227
12228         Avoid relocwrapper link errors due to gnulib replacement functions.
12229         * lib/areadlink.c: Use the system's malloc, realloc functions.
12230         (areadlink): Set errno to ENOMEM explicitly.
12231         * modules/areadlink (Depends-on): Remove malloc-posix.
12232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12233
12234 2010-06-09  Bruno Haible  <bruno@clisp.org>
12235
12236         Avoid relocwrapper link errors due to gnulib replacement functions.
12237         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12238         * lib/malloca.c: Likewise.
12239         * lib/relocatable.c: Likewise.
12240         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12241         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12242         * lib/setenv.c: Use the system's malloc, realloc functions.
12243         * lib/strerror.c: Use the system's sprintf function.
12244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12245
12246 2010-06-04  Bruno Haible  <bruno@clisp.org>
12247
12248         Prefer documented low-level autoconf macro names.
12249         * m4/lib-link.m4: Use m4_translit instead of translit.
12250         * m4/environ.m4: Likewise.
12251         * m4/mathfunc.m4: Likewise.
12252         * m4/onceonly.m4: Likewise.
12253         * m4/stdint.m4: Likewise.
12254         Suggested by Eric Blake.
12255
12256 2010-06-04  Martin Lambers  <marlam@marlam.de>
12257             Bruno Haible  <bruno@clisp.org>
12258
12259         havelib: Allow library names with '+' characters.
12260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12261         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12262
12263 2010-06-09  Bruno Haible  <bruno@clisp.org>
12264
12265         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12266         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12267         realloc failed.
12268
12269 2010-06-08  Peter Simons  <simons@cryp.to>
12270
12271         maint.mk: make the news-check rule more configurable
12272         * top/maint.mk (news-check-lines-spec): New variable.
12273         (news-check): Use "sed -n 1,10p" in place of "head".
12274
12275 2010-06-07  Jim Meyering  <meyering@redhat.com>
12276
12277         do-release-commit-and-tag: fix typo in --help
12278         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12279
12280         regex: avoid new dead-code warning with gcc-4.6.0
12281         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12282         if-block containing a while-loop.  It's been unused for at least
12283         5 years.
12284
12285 2010-06-05  Bruno Haible  <bruno@clisp.org>
12286
12287         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12288         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12289
12290 2010-06-04  Bruno Haible  <bruno@clisp.org>
12291
12292         Update to GNU gettext 0.18.1.
12293         * modules/gettext (configure.ac): Require gettext infrastructure from
12294         version 0.18.1.
12295
12296 2010-06-03  Bruno Haible  <bruno@clisp.org>
12297
12298         Don't use AC_LIBOBJ with file names in subdirectories.
12299         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12300         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12301         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12302         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12303         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12304         gl_LIBUNISTRING_LIBSOURCE.
12305         (Makefile.am): Augment lib_SOURCES here, conditionally.
12306         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12307
12308 2010-06-03  Bruno Haible  <bruno@clisp.org>
12309
12310         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12311         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12312         expansion does not end with a newline.
12313         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12314         unnecessary newline.
12315
12316 2010-06-03  Bruno Haible  <bruno@clisp.org>
12317
12318         Reduce dependencies.
12319         * tests/test-quotearg.h: New file, extracted from
12320         tests/test-quotearg.c.
12321         * tests/test-quotearg-simple.c: New file, extracted from
12322         tests/test-quotearg.c.
12323         * tests/test-quotearg.c: Don't include <ctype.h>.
12324         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12325         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12326         use_quote_double_quotes, use_quotearg_colon): Moved to
12327         tests/test-quotearg.h.
12328         (results_g, flag_results, custom_quotes, custom_results): Moved
12329         to tests/test-quotearg-simple.c.
12330         (main): Moved the part that does not depend on gettext to
12331         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12332         performed.
12333         * modules/quotearg-simple: New file.
12334         * modules/quotearg-simple-tests: New file.
12335         * modules/quotearg (Depends-on): Add quotearg-simple.
12336         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12337         (Files): Add tests/test-quotearg.h.
12338         Reported by Paolo Bonzini.
12339
12340 2010-06-03  Bruno Haible  <bruno@clisp.org>
12341
12342         Reduce dependencies.
12343         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12344
12345 2010-06-03  Bruno Haible  <bruno@clisp.org>
12346
12347         time: Undefine more broken macros.
12348         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12349         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12350         Reported by Eric Blake.
12351
12352 2010-06-03  Bruno Haible  <bruno@clisp.org>
12353
12354         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12355         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12356         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12357         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12358         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12359         Reported by Ludovic Courtès <ludo@gnu.org>.
12360
12361 2010-06-02  Eric Blake  <eblake@redhat.com>
12362
12363         time: work with mingw + pthreads-win32 library
12364         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12365         if timespec is defined only in pthread.h.
12366         * modules/time (Makefile.am): Substitute it.
12367         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12368         <pthread.h>, when needed.
12369         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12370         from the library.
12371
12372 2010-05-31  Bruno Haible  <bruno@clisp.org>
12373
12374         Avoid expanding two macros in the wrong order.
12375         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12376         gl_LIBUNISTRING if it is defined.
12377         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12378         autoconf >= 2.64.
12379         Reported by Ludovic Courtès <ludo@gnu.org>.
12380
12381 2010-05-27  Jim Meyering  <meyering@redhat.com>
12382
12383         maint.mk: also prohibit "#undef" of always-defined symbols
12384         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12385         Allow more than one space before the symbol name.
12386         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12387         the regexp uses alternation.
12388
12389 2010-05-26  Eric Blake  <eblake@redhat.com>
12390
12391         maint.mk: avoid echo -e
12392         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12393         Convert all uses of echo -* to printf.
12394         Reported by Matthias Bolte.
12395
12396 2010-05-25  Bruno Haible  <bruno@clisp.org>
12397
12398         Update to GNU gettext 0.18, part 2.
12399         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12400         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12401
12402 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12403
12404         Add missing include in test-pwrite.c.
12405         * tests/test-pwrite.c: Include string.h, for strcmp.
12406
12407 2010-05-24  Bruno Haible  <bruno@clisp.org>
12408
12409         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12410
12411 2010-05-24  Bruno Haible  <bruno@clisp.org>
12412
12413         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12414         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12415         iconveh_error argument.
12416         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12417         U_STRCONV_TO_LOCALE.
12418         * lib/unistr/u16-strcoll.c: Likewise.
12419         * lib/unistr/u32-strcoll.c: Likewise.
12420         * modules/unistr/u8-strcoll (Depends-on): Add
12421         uniconv/u8-strconv-to-enc, localcharset. Remove
12422         uniconv/u8-strconv-to-locale.
12423         (configure.ac): Bump version number.
12424         * modules/unistr/u16-strcoll (Depends-on): Add
12425         uniconv/u16-strconv-to-enc, localcharset. Remove
12426         uniconv/u16-strconv-to-locale.
12427         (configure.ac): Bump version number.
12428         * modules/unistr/u32-strcoll (Depends-on): Add
12429         uniconv/u32-strconv-to-enc, localcharset. Remove
12430         uniconv/u32-strconv-to-locale.
12431         (configure.ac): Bump version number.
12432
12433 2010-05-24  Bruno Haible  <bruno@clisp.org>
12434
12435         Avoid a test failure on NetBSD 5.0.
12436         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12437         an iconv() bug.
12438
12439 2010-05-24  Bruno Haible  <bruno@clisp.org>
12440
12441         Adjust #include directive style.
12442         * modules/regex (Includes): Recommend to write <regex.h>.
12443
12444 2010-05-24  Bruno Haible  <bruno@clisp.org>
12445
12446         regex: Don't require alloca.
12447         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12448         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12449         only inside if (0).
12450
12451 2010-05-23  Jim Meyering  <meyering@redhat.com>
12452
12453         test-renameat.c: include <sys/stat.h>
12454         * tests/test-renameat.c: Include <sys/stat.h>; required for
12455         definition of S_IS* macros.
12456
12457 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12458
12459         Update maintainer documentation for 'relocatable-prog' module.
12460         * doc/relocatable-maint.texi: Update.
12461         Comments by Bruno Haible.
12462
12463 2010-05-23  Bruno Haible  <bruno@clisp.org>
12464
12465         git-merge-changelog: Enable --split-merged-entry by default.
12466         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12467         (usage): Don't mention this option any more.
12468         Reported by Ralf Wildenhues.
12469
12470 2010-05-23  Jim Meyering  <meyering@redhat.com>
12471
12472         test-pwrite: do not leave behind a test file named "out"
12473         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12474         The trivial-looking use of init.sh is really necessary.
12475         It ensures that the temporary file, "out", is created in
12476         a temporary directory, and removed upon termination.
12477         * tests/test-pwrite.sh: Re-add file.
12478         * modules/pwrite-tests: Reference it.
12479
12480 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12481
12482         Fix output redirection buglet in init.sh.
12483         * tests/init.sh: Fix redirection of stderr.
12484
12485 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12486
12487         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12488
12489 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12490
12491         * modules/valgrind-tests: New file.
12492         * m4/valgrind-tests.m4: New file.
12493         * doc/valgrind-tests.texi: New file.
12494         * doc/gnulib.texi (Running self-tests under valgrind): New
12495         section.
12496
12497 2010-05-19  Bruno Haible  <bruno@clisp.org>
12498
12499         Clean up dead code in recent commit.
12500         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12501         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12502         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12503         Suggested by Paolo Bonzini.
12504
12505 2010-05-19  Bruno Haible  <bruno@clisp.org>
12506
12507         Avoid valgrind error reports from libunistring.
12508         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12509         * modules/libunistring (Files): Add it.
12510         * modules/libunistring-optional (Files): Likewise.
12511
12512 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12513             Bruno Haible  <bruno@clisp.org>
12514
12515         New module 'libunistring-optional'.
12516         * modules/libunistring-optional: New file.
12517         * m4/libunistring-base.m4: New file.
12518         * m4/libunistring-optional.m4: New file.
12519         * lib/unicase.in.h: Renamed from lib/unicase.h.
12520         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12521         * lib/unictype.in.h: Renamed from lib/unictype.h.
12522         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12523         * lib/uniname.in.h: Renamed from lib/uniname.h.
12524         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12525         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12526         * lib/unistr.in.h: Renamed from lib/unistr.h.
12527         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12528         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12529         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12530         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12531         gl_LIBUNISTRING. If the library was found, determine the installed
12532         version and set LIBUNISTRING_VERSION.
12533         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12534         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12535         handle a configuration option --with-included-libunistring.
12536         * modules/libunistring (Files): Add m4/absolute-header.m4.
12537         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12538         Add m4/libunistring-base.m4.
12539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12540         (Makefile.am): Build unicase.h from unicase.in.h.
12541         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12542         Add m4/libunistring-base.m4.
12543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12544         (Makefile.am): Build uniconv.h from uniconv.in.h.
12545         * modules/unictype/base (Files): Use unictype.in.h instead of
12546         unictype.h. Add m4/libunistring-base.m4.
12547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12548         (Makefile.am): Build unictype.h from unictype.in.h.
12549         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12550         Add m4/libunistring-base.m4.
12551         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12552         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12553         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12554         Add m4/libunistring-base.m4.
12555         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12556         (Makefile.am): Build uniname.h from uniname.in.h.
12557         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12558         Add m4/libunistring-base.m4.
12559         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12560         (Makefile.am): Build uninorm.h from uninorm.in.h.
12561         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12562         unistdio.h. Add m4/libunistring-base.m4.
12563         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12564         (Makefile.am): Build unistdio.h from unistdio.in.h.
12565         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12566         Add m4/libunistring-base.m4.
12567         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12568         (Makefile.am): Build unistr.h from unistr.in.h.
12569         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12570         Add m4/libunistring-base.m4.
12571         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12572         (Makefile.am): Build unitypes.h from unitypes.in.h.
12573         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12574         Add m4/libunistring-base.m4.
12575         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12576         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12577         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12578         uniwidth.h. Add m4/libunistring-base.m4.
12579         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12580         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12581         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12582         instead of augmenting lib_SOURCES.
12583         * modules/unicase/empty-suffix-context: Likewise.
12584         * modules/unicase/locale-language: Likewise.
12585         * modules/unicase/tolower: Likewise.
12586         * modules/unicase/totitle: Likewise.
12587         * modules/unicase/toupper: Likewise.
12588         * modules/unicase/u8-casecmp: Likewise.
12589         * modules/unicase/u8-casecoll: Likewise.
12590         * modules/unicase/u8-casefold: Likewise.
12591         * modules/unicase/u8-casexfrm: Likewise.
12592         * modules/unicase/u8-ct-casefold: Likewise.
12593         * modules/unicase/u8-ct-tolower: Likewise.
12594         * modules/unicase/u8-ct-totitle: Likewise.
12595         * modules/unicase/u8-ct-toupper: Likewise.
12596         * modules/unicase/u8-is-cased: Likewise.
12597         * modules/unicase/u8-is-casefolded: Likewise.
12598         * modules/unicase/u8-is-lowercase: Likewise.
12599         * modules/unicase/u8-is-titlecase: Likewise.
12600         * modules/unicase/u8-is-uppercase: Likewise.
12601         * modules/unicase/u8-prefix-context: Likewise.
12602         * modules/unicase/u8-suffix-context: Likewise.
12603         * modules/unicase/u8-tolower: Likewise.
12604         * modules/unicase/u8-totitle: Likewise.
12605         * modules/unicase/u8-toupper: Likewise.
12606         * modules/unicase/u16-casecmp: Likewise.
12607         * modules/unicase/u16-casecoll: Likewise.
12608         * modules/unicase/u16-casefold: Likewise.
12609         * modules/unicase/u16-casexfrm: Likewise.
12610         * modules/unicase/u16-ct-casefold: Likewise.
12611         * modules/unicase/u16-ct-tolower: Likewise.
12612         * modules/unicase/u16-ct-totitle: Likewise.
12613         * modules/unicase/u16-ct-toupper: Likewise.
12614         * modules/unicase/u16-is-cased: Likewise.
12615         * modules/unicase/u16-is-casefolded: Likewise.
12616         * modules/unicase/u16-is-lowercase: Likewise.
12617         * modules/unicase/u16-is-titlecase: Likewise.
12618         * modules/unicase/u16-is-uppercase: Likewise.
12619         * modules/unicase/u16-prefix-context: Likewise.
12620         * modules/unicase/u16-suffix-context: Likewise.
12621         * modules/unicase/u16-tolower: Likewise.
12622         * modules/unicase/u16-totitle: Likewise.
12623         * modules/unicase/u16-toupper: Likewise.
12624         * modules/unicase/u32-casecmp: Likewise.
12625         * modules/unicase/u32-casecoll: Likewise.
12626         * modules/unicase/u32-casefold: Likewise.
12627         * modules/unicase/u32-casexfrm: Likewise.
12628         * modules/unicase/u32-ct-casefold: Likewise.
12629         * modules/unicase/u32-ct-tolower: Likewise.
12630         * modules/unicase/u32-ct-totitle: Likewise.
12631         * modules/unicase/u32-ct-toupper: Likewise.
12632         * modules/unicase/u32-is-cased: Likewise.
12633         * modules/unicase/u32-is-casefolded: Likewise.
12634         * modules/unicase/u32-is-lowercase: Likewise.
12635         * modules/unicase/u32-is-titlecase: Likewise.
12636         * modules/unicase/u32-is-uppercase: Likewise.
12637         * modules/unicase/u32-prefix-context: Likewise.
12638         * modules/unicase/u32-suffix-context: Likewise.
12639         * modules/unicase/u32-tolower: Likewise.
12640         * modules/unicase/u32-totitle: Likewise.
12641         * modules/unicase/u32-toupper: Likewise.
12642         * modules/unicase/ulc-casecmp: Likewise.
12643         * modules/unicase/ulc-casecoll: Likewise.
12644         * modules/unicase/ulc-casexfrm: Likewise.
12645         * modules/uniconv/u8-conv-from-enc: Likewise.
12646         * modules/uniconv/u8-conv-to-enc: Likewise.
12647         * modules/uniconv/u8-strconv-from-enc: Likewise.
12648         * modules/uniconv/u8-strconv-from-locale: Likewise.
12649         * modules/uniconv/u8-strconv-to-enc: Likewise.
12650         * modules/uniconv/u8-strconv-to-locale: Likewise.
12651         * modules/uniconv/u16-conv-from-enc: Likewise.
12652         * modules/uniconv/u16-conv-to-enc: Likewise.
12653         * modules/uniconv/u16-strconv-from-enc: Likewise.
12654         * modules/uniconv/u16-strconv-from-locale: Likewise.
12655         * modules/uniconv/u16-strconv-to-enc: Likewise.
12656         * modules/uniconv/u16-strconv-to-locale: Likewise.
12657         * modules/uniconv/u32-conv-from-enc: Likewise.
12658         * modules/uniconv/u32-conv-to-enc: Likewise.
12659         * modules/uniconv/u32-strconv-from-enc: Likewise.
12660         * modules/uniconv/u32-strconv-from-locale: Likewise.
12661         * modules/uniconv/u32-strconv-to-enc: Likewise.
12662         * modules/uniconv/u32-strconv-to-locale: Likewise.
12663         * modules/unictype/bidicategory-byname: Likewise.
12664         * modules/unictype/bidicategory-name: Likewise.
12665         * modules/unictype/bidicategory-of: Likewise.
12666         * modules/unictype/bidicategory-test: Likewise.
12667         * modules/unictype/block-list: Likewise.
12668         * modules/unictype/block-test: Likewise.
12669         * modules/unictype/category-C: Likewise.
12670         * modules/unictype/category-Cc: Likewise.
12671         * modules/unictype/category-Cf: Likewise.
12672         * modules/unictype/category-Cn: Likewise.
12673         * modules/unictype/category-Co: Likewise.
12674         * modules/unictype/category-Cs: Likewise.
12675         * modules/unictype/category-L: Likewise.
12676         * modules/unictype/category-Ll: Likewise.
12677         * modules/unictype/category-Lm: Likewise.
12678         * modules/unictype/category-Lo: Likewise.
12679         * modules/unictype/category-Lt: Likewise.
12680         * modules/unictype/category-Lu: Likewise.
12681         * modules/unictype/category-M: Likewise.
12682         * modules/unictype/category-Mc: Likewise.
12683         * modules/unictype/category-Me: Likewise.
12684         * modules/unictype/category-Mn: Likewise.
12685         * modules/unictype/category-N: Likewise.
12686         * modules/unictype/category-Nd: Likewise.
12687         * modules/unictype/category-Nl: Likewise.
12688         * modules/unictype/category-No: Likewise.
12689         * modules/unictype/category-P: Likewise.
12690         * modules/unictype/category-Pc: Likewise.
12691         * modules/unictype/category-Pd: Likewise.
12692         * modules/unictype/category-Pe: Likewise.
12693         * modules/unictype/category-Pf: Likewise.
12694         * modules/unictype/category-Pi: Likewise.
12695         * modules/unictype/category-Po: Likewise.
12696         * modules/unictype/category-Ps: Likewise.
12697         * modules/unictype/category-S: Likewise.
12698         * modules/unictype/category-Sc: Likewise.
12699         * modules/unictype/category-Sk: Likewise.
12700         * modules/unictype/category-Sm: Likewise.
12701         * modules/unictype/category-So: Likewise.
12702         * modules/unictype/category-Z: Likewise.
12703         * modules/unictype/category-Zl: Likewise.
12704         * modules/unictype/category-Zp: Likewise.
12705         * modules/unictype/category-Zs: Likewise.
12706         * modules/unictype/category-and: Likewise.
12707         * modules/unictype/category-and-not: Likewise.
12708         * modules/unictype/category-byname: Likewise.
12709         * modules/unictype/category-name: Likewise.
12710         * modules/unictype/category-none: Likewise.
12711         * modules/unictype/category-of: Likewise.
12712         * modules/unictype/category-or: Likewise.
12713         * modules/unictype/category-test: Likewise.
12714         * modules/unictype/combining-class: Likewise.
12715         * modules/unictype/ctype-alnum: Likewise.
12716         * modules/unictype/ctype-alpha: Likewise.
12717         * modules/unictype/ctype-blank: Likewise.
12718         * modules/unictype/ctype-cntrl: Likewise.
12719         * modules/unictype/ctype-digit: Likewise.
12720         * modules/unictype/ctype-graph: Likewise.
12721         * modules/unictype/ctype-lower: Likewise.
12722         * modules/unictype/ctype-print: Likewise.
12723         * modules/unictype/ctype-punct: Likewise.
12724         * modules/unictype/ctype-space: Likewise.
12725         * modules/unictype/ctype-upper: Likewise.
12726         * modules/unictype/ctype-xdigit: Likewise.
12727         * modules/unictype/decimal-digit: Likewise.
12728         * modules/unictype/digit: Likewise.
12729         * modules/unictype/mirror: Likewise.
12730         * modules/unictype/numeric: Likewise.
12731         * modules/unictype/property-alphabetic: Likewise.
12732         * modules/unictype/property-ascii-hex-digit: Likewise.
12733         * modules/unictype/property-bidi-arabic-digit: Likewise.
12734         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12735         * modules/unictype/property-bidi-block-separator: Likewise.
12736         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12737         * modules/unictype/property-bidi-common-separator: Likewise.
12738         * modules/unictype/property-bidi-control: Likewise.
12739         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12740         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12741         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12742         * modules/unictype/property-bidi-european-digit: Likewise.
12743         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12744         * modules/unictype/property-bidi-left-to-right: Likewise.
12745         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12746         * modules/unictype/property-bidi-other-neutral: Likewise.
12747         * modules/unictype/property-bidi-pdf: Likewise.
12748         * modules/unictype/property-bidi-segment-separator: Likewise.
12749         * modules/unictype/property-bidi-whitespace: Likewise.
12750         * modules/unictype/property-byname: Likewise.
12751         * modules/unictype/property-combining: Likewise.
12752         * modules/unictype/property-composite: Likewise.
12753         * modules/unictype/property-currency-symbol: Likewise.
12754         * modules/unictype/property-dash: Likewise.
12755         * modules/unictype/property-decimal-digit: Likewise.
12756         * modules/unictype/property-default-ignorable-code-point: Likewise.
12757         * modules/unictype/property-deprecated: Likewise.
12758         * modules/unictype/property-diacritic: Likewise.
12759         * modules/unictype/property-extender: Likewise.
12760         * modules/unictype/property-format-control: Likewise.
12761         * modules/unictype/property-grapheme-base: Likewise.
12762         * modules/unictype/property-grapheme-extend: Likewise.
12763         * modules/unictype/property-grapheme-link: Likewise.
12764         * modules/unictype/property-hex-digit: Likewise.
12765         * modules/unictype/property-hyphen: Likewise.
12766         * modules/unictype/property-id-continue: Likewise.
12767         * modules/unictype/property-id-start: Likewise.
12768         * modules/unictype/property-ideographic: Likewise.
12769         * modules/unictype/property-ids-binary-operator: Likewise.
12770         * modules/unictype/property-ids-trinary-operator: Likewise.
12771         * modules/unictype/property-ignorable-control: Likewise.
12772         * modules/unictype/property-iso-control: Likewise.
12773         * modules/unictype/property-join-control: Likewise.
12774         * modules/unictype/property-left-of-pair: Likewise.
12775         * modules/unictype/property-line-separator: Likewise.
12776         * modules/unictype/property-logical-order-exception: Likewise.
12777         * modules/unictype/property-lowercase: Likewise.
12778         * modules/unictype/property-math: Likewise.
12779         * modules/unictype/property-non-break: Likewise.
12780         * modules/unictype/property-not-a-character: Likewise.
12781         * modules/unictype/property-numeric: Likewise.
12782         * modules/unictype/property-other-alphabetic: Likewise.
12783         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12784         * modules/unictype/property-other-grapheme-extend: Likewise.
12785         * modules/unictype/property-other-id-continue: Likewise.
12786         * modules/unictype/property-other-id-start: Likewise.
12787         * modules/unictype/property-other-lowercase: Likewise.
12788         * modules/unictype/property-other-math: Likewise.
12789         * modules/unictype/property-other-uppercase: Likewise.
12790         * modules/unictype/property-paired-punctuation: Likewise.
12791         * modules/unictype/property-paragraph-separator: Likewise.
12792         * modules/unictype/property-pattern-syntax: Likewise.
12793         * modules/unictype/property-pattern-white-space: Likewise.
12794         * modules/unictype/property-private-use: Likewise.
12795         * modules/unictype/property-punctuation: Likewise.
12796         * modules/unictype/property-quotation-mark: Likewise.
12797         * modules/unictype/property-radical: Likewise.
12798         * modules/unictype/property-sentence-terminal: Likewise.
12799         * modules/unictype/property-soft-dotted: Likewise.
12800         * modules/unictype/property-space: Likewise.
12801         * modules/unictype/property-terminal-punctuation: Likewise.
12802         * modules/unictype/property-test: Likewise.
12803         * modules/unictype/property-titlecase: Likewise.
12804         * modules/unictype/property-unassigned-code-value: Likewise.
12805         * modules/unictype/property-unified-ideograph: Likewise.
12806         * modules/unictype/property-uppercase: Likewise.
12807         * modules/unictype/property-variation-selector: Likewise.
12808         * modules/unictype/property-white-space: Likewise.
12809         * modules/unictype/property-xid-continue: Likewise.
12810         * modules/unictype/property-xid-start: Likewise.
12811         * modules/unictype/property-zero-width: Likewise.
12812         * modules/unictype/scripts: Likewise.
12813         * modules/unictype/syntax-c-ident: Likewise.
12814         * modules/unictype/syntax-c-whitespace: Likewise.
12815         * modules/unictype/syntax-java-ident: Likewise.
12816         * modules/unictype/syntax-java-whitespace: Likewise.
12817         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12818         * modules/unilbrk/u8-width-linebreaks: Likewise.
12819         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12820         * modules/unilbrk/u16-width-linebreaks: Likewise.
12821         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12822         * modules/unilbrk/u32-width-linebreaks: Likewise.
12823         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12824         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12825         * modules/uniname/uniname: Likewise.
12826         * modules/uninorm/canonical-decomposition: Likewise.
12827         * modules/uninorm/composition: Likewise.
12828         * modules/uninorm/decomposing-form: Likewise.
12829         * modules/uninorm/decomposition: Likewise.
12830         * modules/uninorm/filter: Likewise.
12831         * modules/uninorm/nfc: Likewise.
12832         * modules/uninorm/nfd: Likewise.
12833         * modules/uninorm/nfkc: Likewise.
12834         * modules/uninorm/nfkd: Likewise.
12835         * modules/uninorm/u8-normalize: Likewise.
12836         * modules/uninorm/u8-normcmp: Likewise.
12837         * modules/uninorm/u8-normcoll: Likewise.
12838         * modules/uninorm/u8-normxfrm: Likewise.
12839         * modules/uninorm/u16-normalize: Likewise.
12840         * modules/uninorm/u16-normcmp: Likewise.
12841         * modules/uninorm/u16-normcoll: Likewise.
12842         * modules/uninorm/u16-normxfrm: Likewise.
12843         * modules/uninorm/u32-normalize: Likewise.
12844         * modules/uninorm/u32-normcmp: Likewise.
12845         * modules/uninorm/u32-normcoll: Likewise.
12846         * modules/uninorm/u32-normxfrm: Likewise.
12847         * modules/unistdio/u8-asnprintf: Likewise.
12848         * modules/unistdio/u8-asprintf: Likewise.
12849         * modules/unistdio/u8-snprintf: Likewise.
12850         * modules/unistdio/u8-sprintf: Likewise.
12851         * modules/unistdio/u8-u8-asnprintf: Likewise.
12852         * modules/unistdio/u8-u8-asprintf: Likewise.
12853         * modules/unistdio/u8-u8-snprintf: Likewise.
12854         * modules/unistdio/u8-u8-sprintf: Likewise.
12855         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12856         * modules/unistdio/u8-u8-vasprintf: Likewise.
12857         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12858         * modules/unistdio/u8-u8-vsprintf: Likewise.
12859         * modules/unistdio/u8-vasnprintf: Likewise.
12860         * modules/unistdio/u8-vasprintf: Likewise.
12861         * modules/unistdio/u8-vsnprintf: Likewise.
12862         * modules/unistdio/u8-vsprintf: Likewise.
12863         * modules/unistdio/u16-asnprintf: Likewise.
12864         * modules/unistdio/u16-asprintf: Likewise.
12865         * modules/unistdio/u16-snprintf: Likewise.
12866         * modules/unistdio/u16-sprintf: Likewise.
12867         * modules/unistdio/u16-u16-asnprintf: Likewise.
12868         * modules/unistdio/u16-u16-asprintf: Likewise.
12869         * modules/unistdio/u16-u16-snprintf: Likewise.
12870         * modules/unistdio/u16-u16-sprintf: Likewise.
12871         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12872         * modules/unistdio/u16-u16-vasprintf: Likewise.
12873         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12874         * modules/unistdio/u16-u16-vsprintf: Likewise.
12875         * modules/unistdio/u16-vasnprintf: Likewise.
12876         * modules/unistdio/u16-vasprintf: Likewise.
12877         * modules/unistdio/u16-vsnprintf: Likewise.
12878         * modules/unistdio/u16-vsprintf: Likewise.
12879         * modules/unistdio/u32-asnprintf: Likewise.
12880         * modules/unistdio/u32-asprintf: Likewise.
12881         * modules/unistdio/u32-snprintf: Likewise.
12882         * modules/unistdio/u32-sprintf: Likewise.
12883         * modules/unistdio/u32-u32-asnprintf: Likewise.
12884         * modules/unistdio/u32-u32-asprintf: Likewise.
12885         * modules/unistdio/u32-u32-snprintf: Likewise.
12886         * modules/unistdio/u32-u32-sprintf: Likewise.
12887         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12888         * modules/unistdio/u32-u32-vasprintf: Likewise.
12889         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12890         * modules/unistdio/u32-u32-vsprintf: Likewise.
12891         * modules/unistdio/u32-vasnprintf: Likewise.
12892         * modules/unistdio/u32-vasprintf: Likewise.
12893         * modules/unistdio/u32-vsnprintf: Likewise.
12894         * modules/unistdio/u32-vsprintf: Likewise.
12895         * modules/unistdio/ulc-asnprintf: Likewise.
12896         * modules/unistdio/ulc-asprintf: Likewise.
12897         * modules/unistdio/ulc-fprintf: Likewise.
12898         * modules/unistdio/ulc-snprintf: Likewise.
12899         * modules/unistdio/ulc-sprintf: Likewise.
12900         * modules/unistdio/ulc-vasnprintf: Likewise.
12901         * modules/unistdio/ulc-vasprintf: Likewise.
12902         * modules/unistdio/ulc-vfprintf: Likewise.
12903         * modules/unistdio/ulc-vsnprintf: Likewise.
12904         * modules/unistdio/ulc-vsprintf: Likewise.
12905         * modules/unistr/u8-check: Likewise.
12906         * modules/unistr/u8-chr: Likewise.
12907         * modules/unistr/u8-cmp: Likewise.
12908         * modules/unistr/u8-cmp2: Likewise.
12909         * modules/unistr/u8-cpy: Likewise.
12910         * modules/unistr/u8-cpy-alloc: Likewise.
12911         * modules/unistr/u8-endswith: Likewise.
12912         * modules/unistr/u8-mblen: Likewise.
12913         * modules/unistr/u8-mbsnlen: Likewise.
12914         * modules/unistr/u8-mbtouc: Likewise.
12915         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12916         * modules/unistr/u8-mbtoucr: Likewise.
12917         * modules/unistr/u8-move: Likewise.
12918         * modules/unistr/u8-next: Likewise.
12919         * modules/unistr/u8-prev: Likewise.
12920         * modules/unistr/u8-set: Likewise.
12921         * modules/unistr/u8-startswith: Likewise.
12922         * modules/unistr/u8-stpcpy: Likewise.
12923         * modules/unistr/u8-stpncpy: Likewise.
12924         * modules/unistr/u8-strcat: Likewise.
12925         * modules/unistr/u8-strchr: Likewise.
12926         * modules/unistr/u8-strcmp: Likewise.
12927         * modules/unistr/u8-strcoll: Likewise.
12928         * modules/unistr/u8-strcpy: Likewise.
12929         * modules/unistr/u8-strcspn: Likewise.
12930         * modules/unistr/u8-strdup: Likewise.
12931         * modules/unistr/u8-strlen: Likewise.
12932         * modules/unistr/u8-strmblen: Likewise.
12933         * modules/unistr/u8-strmbtouc: Likewise.
12934         * modules/unistr/u8-strncat: Likewise.
12935         * modules/unistr/u8-strncmp: Likewise.
12936         * modules/unistr/u8-strncpy: Likewise.
12937         * modules/unistr/u8-strnlen: Likewise.
12938         * modules/unistr/u8-strpbrk: Likewise.
12939         * modules/unistr/u8-strrchr: Likewise.
12940         * modules/unistr/u8-strspn: Likewise.
12941         * modules/unistr/u8-strstr: Likewise.
12942         * modules/unistr/u8-strtok: Likewise.
12943         * modules/unistr/u8-to-u16: Likewise.
12944         * modules/unistr/u8-to-u32: Likewise.
12945         * modules/unistr/u8-uctomb: Likewise.
12946         * modules/unistr/u16-check: Likewise.
12947         * modules/unistr/u16-chr: Likewise.
12948         * modules/unistr/u16-cmp: Likewise.
12949         * modules/unistr/u16-cmp2: Likewise.
12950         * modules/unistr/u16-cpy: Likewise.
12951         * modules/unistr/u16-cpy-alloc: Likewise.
12952         * modules/unistr/u16-endswith: Likewise.
12953         * modules/unistr/u16-mblen: Likewise.
12954         * modules/unistr/u16-mbsnlen: Likewise.
12955         * modules/unistr/u16-mbtouc: Likewise.
12956         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12957         * modules/unistr/u16-mbtoucr: Likewise.
12958         * modules/unistr/u16-move: Likewise.
12959         * modules/unistr/u16-next: Likewise.
12960         * modules/unistr/u16-prev: Likewise.
12961         * modules/unistr/u16-set: Likewise.
12962         * modules/unistr/u16-startswith: Likewise.
12963         * modules/unistr/u16-stpcpy: Likewise.
12964         * modules/unistr/u16-stpncpy: Likewise.
12965         * modules/unistr/u16-strcat: Likewise.
12966         * modules/unistr/u16-strchr: Likewise.
12967         * modules/unistr/u16-strcmp: Likewise.
12968         * modules/unistr/u16-strcoll: Likewise.
12969         * modules/unistr/u16-strcpy: Likewise.
12970         * modules/unistr/u16-strcspn: Likewise.
12971         * modules/unistr/u16-strdup: Likewise.
12972         * modules/unistr/u16-strlen: Likewise.
12973         * modules/unistr/u16-strmblen: Likewise.
12974         * modules/unistr/u16-strmbtouc: Likewise.
12975         * modules/unistr/u16-strncat: Likewise.
12976         * modules/unistr/u16-strncmp: Likewise.
12977         * modules/unistr/u16-strncpy: Likewise.
12978         * modules/unistr/u16-strnlen: Likewise.
12979         * modules/unistr/u16-strpbrk: Likewise.
12980         * modules/unistr/u16-strrchr: Likewise.
12981         * modules/unistr/u16-strspn: Likewise.
12982         * modules/unistr/u16-strstr: Likewise.
12983         * modules/unistr/u16-strtok: Likewise.
12984         * modules/unistr/u16-to-u32: Likewise.
12985         * modules/unistr/u16-to-u8: Likewise.
12986         * modules/unistr/u16-uctomb: Likewise.
12987         * modules/unistr/u32-check: Likewise.
12988         * modules/unistr/u32-chr: Likewise.
12989         * modules/unistr/u32-cmp: Likewise.
12990         * modules/unistr/u32-cmp2: Likewise.
12991         * modules/unistr/u32-cpy: Likewise.
12992         * modules/unistr/u32-cpy-alloc: Likewise.
12993         * modules/unistr/u32-endswith: Likewise.
12994         * modules/unistr/u32-mblen: Likewise.
12995         * modules/unistr/u32-mbsnlen: Likewise.
12996         * modules/unistr/u32-mbtouc: Likewise.
12997         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12998         * modules/unistr/u32-mbtoucr: Likewise.
12999         * modules/unistr/u32-move: Likewise.
13000         * modules/unistr/u32-next: Likewise.
13001         * modules/unistr/u32-prev: Likewise.
13002         * modules/unistr/u32-set: Likewise.
13003         * modules/unistr/u32-startswith: Likewise.
13004         * modules/unistr/u32-stpcpy: Likewise.
13005         * modules/unistr/u32-stpncpy: Likewise.
13006         * modules/unistr/u32-strcat: Likewise.
13007         * modules/unistr/u32-strchr: Likewise.
13008         * modules/unistr/u32-strcmp: Likewise.
13009         * modules/unistr/u32-strcoll: Likewise.
13010         * modules/unistr/u32-strcpy: Likewise.
13011         * modules/unistr/u32-strcspn: Likewise.
13012         * modules/unistr/u32-strdup: Likewise.
13013         * modules/unistr/u32-strlen: Likewise.
13014         * modules/unistr/u32-strmblen: Likewise.
13015         * modules/unistr/u32-strmbtouc: Likewise.
13016         * modules/unistr/u32-strncat: Likewise.
13017         * modules/unistr/u32-strncmp: Likewise.
13018         * modules/unistr/u32-strncpy: Likewise.
13019         * modules/unistr/u32-strnlen: Likewise.
13020         * modules/unistr/u32-strpbrk: Likewise.
13021         * modules/unistr/u32-strrchr: Likewise.
13022         * modules/unistr/u32-strspn: Likewise.
13023         * modules/unistr/u32-strstr: Likewise.
13024         * modules/unistr/u32-strtok: Likewise.
13025         * modules/unistr/u32-to-u16: Likewise.
13026         * modules/unistr/u32-to-u8: Likewise.
13027         * modules/unistr/u32-uctomb: Likewise.
13028         * modules/uniwbrk/u8-wordbreaks: Likewise.
13029         * modules/uniwbrk/u16-wordbreaks: Likewise.
13030         * modules/uniwbrk/u32-wordbreaks: Likewise.
13031         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13032         * modules/uniwbrk/wordbreak-property: Likewise.
13033         * modules/uniwidth/u8-strwidth: Likewise.
13034         * modules/uniwidth/u8-width: Likewise.
13035         * modules/uniwidth/u16-strwidth: Likewise.
13036         * modules/uniwidth/u16-width: Likewise.
13037         * modules/uniwidth/u32-strwidth: Likewise.
13038         * modules/uniwidth/u32-width: Likewise.
13039         * modules/uniwidth/width: Likewise.
13040         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13041         with $(LIBUNISTRING).
13042         * modules/unicase/ignorable-tests: Likewise.
13043         * modules/unicase/locale-language-tests: Likewise.
13044         * modules/unicase/tolower-tests: Likewise.
13045         * modules/unicase/totitle-tests: Likewise.
13046         * modules/unicase/toupper-tests: Likewise.
13047         * modules/unicase/u8-casecmp-tests: Likewise.
13048         * modules/unicase/u8-casecoll-tests: Likewise.
13049         * modules/unicase/u8-casefold-tests: Likewise.
13050         * modules/unicase/u8-is-cased-tests: Likewise.
13051         * modules/unicase/u8-is-casefolded-tests: Likewise.
13052         * modules/unicase/u8-is-lowercase-tests: Likewise.
13053         * modules/unicase/u8-is-titlecase-tests: Likewise.
13054         * modules/unicase/u8-is-uppercase-tests: Likewise.
13055         * modules/unicase/u8-tolower-tests: Likewise.
13056         * modules/unicase/u8-totitle-tests: Likewise.
13057         * modules/unicase/u8-toupper-tests: Likewise.
13058         * modules/unicase/u16-casecmp-tests: Likewise.
13059         * modules/unicase/u16-casecoll-tests: Likewise.
13060         * modules/unicase/u16-casefold-tests: Likewise.
13061         * modules/unicase/u16-is-cased-tests: Likewise.
13062         * modules/unicase/u16-is-casefolded-tests: Likewise.
13063         * modules/unicase/u16-is-lowercase-tests: Likewise.
13064         * modules/unicase/u16-is-titlecase-tests: Likewise.
13065         * modules/unicase/u16-is-uppercase-tests: Likewise.
13066         * modules/unicase/u16-tolower-tests: Likewise.
13067         * modules/unicase/u16-totitle-tests: Likewise.
13068         * modules/unicase/u16-toupper-tests: Likewise.
13069         * modules/unicase/u32-casecmp-tests: Likewise.
13070         * modules/unicase/u32-casecoll-tests: Likewise.
13071         * modules/unicase/u32-casefold-tests: Likewise.
13072         * modules/unicase/u32-is-cased-tests: Likewise.
13073         * modules/unicase/u32-is-casefolded-tests: Likewise.
13074         * modules/unicase/u32-is-lowercase-tests: Likewise.
13075         * modules/unicase/u32-is-titlecase-tests: Likewise.
13076         * modules/unicase/u32-is-uppercase-tests: Likewise.
13077         * modules/unicase/u32-tolower-tests: Likewise.
13078         * modules/unicase/u32-totitle-tests: Likewise.
13079         * modules/unicase/u32-toupper-tests: Likewise.
13080         * modules/unicase/ulc-casecmp-tests: Likewise.
13081         * modules/unicase/ulc-casecoll-tests: Likewise.
13082         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13083         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13084         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13085         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13086         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13087         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13088         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13089         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13090         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13091         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13092         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13093         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13094         * modules/unictype/bidicategory-byname-tests: Likewise.
13095         * modules/unictype/bidicategory-name-tests: Likewise.
13096         * modules/unictype/bidicategory-of-tests: Likewise.
13097         * modules/unictype/bidicategory-test-tests: Likewise.
13098         * modules/unictype/block-list-tests: Likewise.
13099         * modules/unictype/block-of-tests: Likewise.
13100         * modules/unictype/block-test-tests: Likewise.
13101         * modules/unictype/category-C-tests: Likewise.
13102         * modules/unictype/category-Cc-tests: Likewise.
13103         * modules/unictype/category-Cf-tests: Likewise.
13104         * modules/unictype/category-Cn-tests: Likewise.
13105         * modules/unictype/category-Co-tests: Likewise.
13106         * modules/unictype/category-Cs-tests: Likewise.
13107         * modules/unictype/category-L-tests: Likewise.
13108         * modules/unictype/category-Ll-tests: Likewise.
13109         * modules/unictype/category-Lm-tests: Likewise.
13110         * modules/unictype/category-Lo-tests: Likewise.
13111         * modules/unictype/category-Lt-tests: Likewise.
13112         * modules/unictype/category-Lu-tests: Likewise.
13113         * modules/unictype/category-M-tests: Likewise.
13114         * modules/unictype/category-Mc-tests: Likewise.
13115         * modules/unictype/category-Me-tests: Likewise.
13116         * modules/unictype/category-Mn-tests: Likewise.
13117         * modules/unictype/category-N-tests: Likewise.
13118         * modules/unictype/category-Nd-tests: Likewise.
13119         * modules/unictype/category-Nl-tests: Likewise.
13120         * modules/unictype/category-No-tests: Likewise.
13121         * modules/unictype/category-P-tests: Likewise.
13122         * modules/unictype/category-Pc-tests: Likewise.
13123         * modules/unictype/category-Pd-tests: Likewise.
13124         * modules/unictype/category-Pe-tests: Likewise.
13125         * modules/unictype/category-Pf-tests: Likewise.
13126         * modules/unictype/category-Pi-tests: Likewise.
13127         * modules/unictype/category-Po-tests: Likewise.
13128         * modules/unictype/category-Ps-tests: Likewise.
13129         * modules/unictype/category-S-tests: Likewise.
13130         * modules/unictype/category-Sc-tests: Likewise.
13131         * modules/unictype/category-Sk-tests: Likewise.
13132         * modules/unictype/category-Sm-tests: Likewise.
13133         * modules/unictype/category-So-tests: Likewise.
13134         * modules/unictype/category-Z-tests: Likewise.
13135         * modules/unictype/category-Zl-tests: Likewise.
13136         * modules/unictype/category-Zp-tests: Likewise.
13137         * modules/unictype/category-Zs-tests: Likewise.
13138         * modules/unictype/category-and-not-tests: Likewise.
13139         * modules/unictype/category-and-tests: Likewise.
13140         * modules/unictype/category-byname-tests: Likewise.
13141         * modules/unictype/category-name-tests: Likewise.
13142         * modules/unictype/category-none-tests: Likewise.
13143         * modules/unictype/category-of-tests: Likewise.
13144         * modules/unictype/category-or-tests: Likewise.
13145         * modules/unictype/category-test-withtable-tests: Likewise.
13146         * modules/unictype/combining-class-tests: Likewise.
13147         * modules/unictype/ctype-alnum-tests: Likewise.
13148         * modules/unictype/ctype-alpha-tests: Likewise.
13149         * modules/unictype/ctype-blank-tests: Likewise.
13150         * modules/unictype/ctype-cntrl-tests: Likewise.
13151         * modules/unictype/ctype-digit-tests: Likewise.
13152         * modules/unictype/ctype-graph-tests: Likewise.
13153         * modules/unictype/ctype-lower-tests: Likewise.
13154         * modules/unictype/ctype-print-tests: Likewise.
13155         * modules/unictype/ctype-punct-tests: Likewise.
13156         * modules/unictype/ctype-space-tests: Likewise.
13157         * modules/unictype/ctype-upper-tests: Likewise.
13158         * modules/unictype/ctype-xdigit-tests: Likewise.
13159         * modules/unictype/decimal-digit-tests: Likewise.
13160         * modules/unictype/digit-tests: Likewise.
13161         * modules/unictype/mirror-tests: Likewise.
13162         * modules/unictype/numeric-tests: Likewise.
13163         * modules/unictype/property-alphabetic-tests: Likewise.
13164         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13165         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13166         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13167         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13168         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13169         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13170         * modules/unictype/property-bidi-control-tests: Likewise.
13171         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13172         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13173         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13174         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13175         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13176         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13177         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13178         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13179         * modules/unictype/property-bidi-pdf-tests: Likewise.
13180         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13181         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13182         * modules/unictype/property-byname-tests: Likewise.
13183         * modules/unictype/property-combining-tests: Likewise.
13184         * modules/unictype/property-composite-tests: Likewise.
13185         * modules/unictype/property-currency-symbol-tests: Likewise.
13186         * modules/unictype/property-dash-tests: Likewise.
13187         * modules/unictype/property-decimal-digit-tests: Likewise.
13188         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13189         * modules/unictype/property-deprecated-tests: Likewise.
13190         * modules/unictype/property-diacritic-tests: Likewise.
13191         * modules/unictype/property-extender-tests: Likewise.
13192         * modules/unictype/property-format-control-tests: Likewise.
13193         * modules/unictype/property-grapheme-base-tests: Likewise.
13194         * modules/unictype/property-grapheme-extend-tests: Likewise.
13195         * modules/unictype/property-grapheme-link-tests: Likewise.
13196         * modules/unictype/property-hex-digit-tests: Likewise.
13197         * modules/unictype/property-hyphen-tests: Likewise.
13198         * modules/unictype/property-id-continue-tests: Likewise.
13199         * modules/unictype/property-id-start-tests: Likewise.
13200         * modules/unictype/property-ideographic-tests: Likewise.
13201         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13202         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13203         * modules/unictype/property-ignorable-control-tests: Likewise.
13204         * modules/unictype/property-iso-control-tests: Likewise.
13205         * modules/unictype/property-join-control-tests: Likewise.
13206         * modules/unictype/property-left-of-pair-tests: Likewise.
13207         * modules/unictype/property-line-separator-tests: Likewise.
13208         * modules/unictype/property-logical-order-exception-tests: Likewise.
13209         * modules/unictype/property-lowercase-tests: Likewise.
13210         * modules/unictype/property-math-tests: Likewise.
13211         * modules/unictype/property-non-break-tests: Likewise.
13212         * modules/unictype/property-not-a-character-tests: Likewise.
13213         * modules/unictype/property-numeric-tests: Likewise.
13214         * modules/unictype/property-other-alphabetic-tests: Likewise.
13215         * modules/unictype/property-other-default-ignorable-code-point-tests:
13216         Likewise.
13217         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13218         * modules/unictype/property-other-id-continue-tests: Likewise.
13219         * modules/unictype/property-other-id-start-tests: Likewise.
13220         * modules/unictype/property-other-lowercase-tests: Likewise.
13221         * modules/unictype/property-other-math-tests: Likewise.
13222         * modules/unictype/property-other-uppercase-tests: Likewise.
13223         * modules/unictype/property-paired-punctuation-tests: Likewise.
13224         * modules/unictype/property-paragraph-separator-tests: Likewise.
13225         * modules/unictype/property-pattern-syntax-tests: Likewise.
13226         * modules/unictype/property-pattern-white-space-tests: Likewise.
13227         * modules/unictype/property-private-use-tests: Likewise.
13228         * modules/unictype/property-punctuation-tests: Likewise.
13229         * modules/unictype/property-quotation-mark-tests: Likewise.
13230         * modules/unictype/property-radical-tests: Likewise.
13231         * modules/unictype/property-sentence-terminal-tests: Likewise.
13232         * modules/unictype/property-soft-dotted-tests: Likewise.
13233         * modules/unictype/property-space-tests: Likewise.
13234         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13235         * modules/unictype/property-test-tests: Likewise.
13236         * modules/unictype/property-titlecase-tests: Likewise.
13237         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13238         * modules/unictype/property-unified-ideograph-tests: Likewise.
13239         * modules/unictype/property-uppercase-tests: Likewise.
13240         * modules/unictype/property-variation-selector-tests: Likewise.
13241         * modules/unictype/property-white-space-tests: Likewise.
13242         * modules/unictype/property-xid-continue-tests: Likewise.
13243         * modules/unictype/property-xid-start-tests: Likewise.
13244         * modules/unictype/property-zero-width-tests: Likewise.
13245         * modules/unictype/scripts-tests: Likewise.
13246         * modules/unictype/syntax-c-ident-tests: Likewise.
13247         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13248         * modules/unictype/syntax-java-ident-tests: Likewise.
13249         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13250         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13251         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13252         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13253         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13254         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13255         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13256         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13257         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13258         * modules/uniname/uniname-tests: Likewise.
13259         * modules/uninorm/canonical-decomposition-tests: Likewise.
13260         * modules/uninorm/compat-decomposition-tests: Likewise.
13261         * modules/uninorm/composition-tests: Likewise.
13262         * modules/uninorm/decomposing-form-tests: Likewise.
13263         * modules/uninorm/decomposition-tests: Likewise.
13264         * modules/uninorm/filter-tests: Likewise.
13265         * modules/uninorm/nfc-tests: Likewise.
13266         * modules/uninorm/nfd-tests: Likewise.
13267         * modules/uninorm/nfkc-tests: Likewise.
13268         * modules/uninorm/nfkd-tests: Likewise.
13269         * modules/uninorm/u8-normcmp-tests: Likewise.
13270         * modules/uninorm/u8-normcoll-tests: Likewise.
13271         * modules/uninorm/u16-normcmp-tests: Likewise.
13272         * modules/uninorm/u16-normcoll-tests: Likewise.
13273         * modules/uninorm/u32-normcmp-tests: Likewise.
13274         * modules/uninorm/u32-normcoll-tests: Likewise.
13275         * modules/unistdio/u8-asnprintf-tests: Likewise.
13276         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13277         * modules/unistdio/u8-vasprintf-tests: Likewise.
13278         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13279         * modules/unistdio/u8-vsprintf-tests: Likewise.
13280         * modules/unistdio/u16-asnprintf-tests: Likewise.
13281         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13282         * modules/unistdio/u16-vasprintf-tests: Likewise.
13283         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13284         * modules/unistdio/u16-vsprintf-tests: Likewise.
13285         * modules/unistdio/u32-asnprintf-tests: Likewise.
13286         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13287         * modules/unistdio/u32-vasprintf-tests: Likewise.
13288         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13289         * modules/unistdio/u32-vsprintf-tests: Likewise.
13290         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13291         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13292         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13293         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13294         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13295         * modules/unistr/u8-check-tests: Likewise.
13296         * modules/unistr/u8-chr-tests: Likewise.
13297         * modules/unistr/u8-cmp-tests: Likewise.
13298         * modules/unistr/u8-cmp2-tests: Likewise.
13299         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13300         * modules/unistr/u8-cpy-tests: Likewise.
13301         * modules/unistr/u8-mblen-tests: Likewise.
13302         * modules/unistr/u8-mbsnlen-tests: Likewise.
13303         * modules/unistr/u8-mbtouc-tests: Likewise.
13304         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13305         * modules/unistr/u8-mbtoucr-tests: Likewise.
13306         * modules/unistr/u8-move-tests: Likewise.
13307         * modules/unistr/u8-next-tests: Likewise.
13308         * modules/unistr/u8-prev-tests: Likewise.
13309         * modules/unistr/u8-set-tests: Likewise.
13310         * modules/unistr/u8-stpcpy-tests: Likewise.
13311         * modules/unistr/u8-stpncpy-tests: Likewise.
13312         * modules/unistr/u8-strcat-tests: Likewise.
13313         * modules/unistr/u8-strcmp-tests: Likewise.
13314         * modules/unistr/u8-strcoll-tests: Likewise.
13315         * modules/unistr/u8-strcpy-tests: Likewise.
13316         * modules/unistr/u8-strdup-tests: Likewise.
13317         * modules/unistr/u8-strlen-tests: Likewise.
13318         * modules/unistr/u8-strmblen-tests: Likewise.
13319         * modules/unistr/u8-strmbtouc-tests: Likewise.
13320         * modules/unistr/u8-strncat-tests: Likewise.
13321         * modules/unistr/u8-strncmp-tests: Likewise.
13322         * modules/unistr/u8-strncpy-tests: Likewise.
13323         * modules/unistr/u8-strnlen-tests: Likewise.
13324         * modules/unistr/u8-to-u16-tests: Likewise.
13325         * modules/unistr/u8-to-u32-tests: Likewise.
13326         * modules/unistr/u8-uctomb-tests: Likewise.
13327         * modules/unistr/u16-check-tests: Likewise.
13328         * modules/unistr/u16-chr-tests: Likewise.
13329         * modules/unistr/u16-cmp-tests: Likewise.
13330         * modules/unistr/u16-cmp2-tests: Likewise.
13331         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13332         * modules/unistr/u16-cpy-tests: Likewise.
13333         * modules/unistr/u16-mblen-tests: Likewise.
13334         * modules/unistr/u16-mbsnlen-tests: Likewise.
13335         * modules/unistr/u16-mbtouc-tests: Likewise.
13336         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13337         * modules/unistr/u16-mbtoucr-tests: Likewise.
13338         * modules/unistr/u16-move-tests: Likewise.
13339         * modules/unistr/u16-next-tests: Likewise.
13340         * modules/unistr/u16-prev-tests: Likewise.
13341         * modules/unistr/u16-set-tests: Likewise.
13342         * modules/unistr/u16-stpcpy-tests: Likewise.
13343         * modules/unistr/u16-stpncpy-tests: Likewise.
13344         * modules/unistr/u16-strcat-tests: Likewise.
13345         * modules/unistr/u16-strcmp-tests: Likewise.
13346         * modules/unistr/u16-strcoll-tests: Likewise.
13347         * modules/unistr/u16-strcpy-tests: Likewise.
13348         * modules/unistr/u16-strdup-tests: Likewise.
13349         * modules/unistr/u16-strlen-tests: Likewise.
13350         * modules/unistr/u16-strmblen-tests: Likewise.
13351         * modules/unistr/u16-strmbtouc-tests: Likewise.
13352         * modules/unistr/u16-strncat-tests: Likewise.
13353         * modules/unistr/u16-strncmp-tests: Likewise.
13354         * modules/unistr/u16-strncpy-tests: Likewise.
13355         * modules/unistr/u16-strnlen-tests: Likewise.
13356         * modules/unistr/u16-to-u32-tests: Likewise.
13357         * modules/unistr/u16-to-u8-tests: Likewise.
13358         * modules/unistr/u16-uctomb-tests: Likewise.
13359         * modules/unistr/u32-check-tests: Likewise.
13360         * modules/unistr/u32-chr-tests: Likewise.
13361         * modules/unistr/u32-cmp-tests: Likewise.
13362         * modules/unistr/u32-cmp2-tests: Likewise.
13363         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13364         * modules/unistr/u32-cpy-tests: Likewise.
13365         * modules/unistr/u32-mblen-tests: Likewise.
13366         * modules/unistr/u32-mbsnlen-tests: Likewise.
13367         * modules/unistr/u32-mbtouc-tests: Likewise.
13368         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13369         * modules/unistr/u32-mbtoucr-tests: Likewise.
13370         * modules/unistr/u32-move-tests: Likewise.
13371         * modules/unistr/u32-next-tests: Likewise.
13372         * modules/unistr/u32-prev-tests: Likewise.
13373         * modules/unistr/u32-set-tests: Likewise.
13374         * modules/unistr/u32-stpcpy-tests: Likewise.
13375         * modules/unistr/u32-stpncpy-tests: Likewise.
13376         * modules/unistr/u32-strcat-tests: Likewise.
13377         * modules/unistr/u32-strcmp-tests: Likewise.
13378         * modules/unistr/u32-strcoll-tests: Likewise.
13379         * modules/unistr/u32-strcpy-tests: Likewise.
13380         * modules/unistr/u32-strdup-tests: Likewise.
13381         * modules/unistr/u32-strlen-tests: Likewise.
13382         * modules/unistr/u32-strmblen-tests: Likewise.
13383         * modules/unistr/u32-strmbtouc-tests: Likewise.
13384         * modules/unistr/u32-strncat-tests: Likewise.
13385         * modules/unistr/u32-strncmp-tests: Likewise.
13386         * modules/unistr/u32-strncpy-tests: Likewise.
13387         * modules/unistr/u32-strnlen-tests: Likewise.
13388         * modules/unistr/u32-to-u16-tests: Likewise.
13389         * modules/unistr/u32-to-u8-tests: Likewise.
13390         * modules/unistr/u32-uctomb-tests: Likewise.
13391         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13392         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13393         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13394         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13395         * modules/uniwidth/u8-strwidth-tests: Likewise.
13396         * modules/uniwidth/u8-width-tests: Likewise.
13397         * modules/uniwidth/u16-strwidth-tests: Likewise.
13398         * modules/uniwidth/u16-width-tests: Likewise.
13399         * modules/uniwidth/u32-strwidth-tests: Likewise.
13400         * modules/uniwidth/u32-width-tests: Likewise.
13401         * modules/uniwidth/width-tests: Likewise.
13402
13403 2010-05-18  Richard Jones  <rjones@redhat.com>
13404
13405         doc: users.txt: list hivex
13406         * users.txt: Add hivex.
13407
13408 2010-05-18  Richard Jones  <rjones@redhat.com>
13409
13410         doc: users.txt: list febootstrap
13411         * users.txt: Add febootstrap.
13412
13413 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13414
13415         bootstrap: fix an error when gnulib is not used as a git submodule
13416         * build-aux/bootstrap (gnulib_path): If its length is zero then
13417         assign "gnulib" to it.
13418         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13419
13420 2010-05-16  Bruno Haible  <bruno@clisp.org>
13421
13422         Avoid autoconf warnings about AM_ICONV.
13423         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13424         2.64.
13425
13426 2010-05-16  Bruno Haible  <bruno@clisp.org>
13427
13428         absolute-header: Make the macro usable in more situations.
13429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13430         from gl_ABSOLUTE_HEADER.
13431         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13432
13433 2010-05-16  James Youngman  <jay@gnu.org>
13434
13435         doc: update users.txt
13436         * users.txt: Add CSSC.
13437
13438 2010-05-16  Jim Meyering  <meyering@redhat.com>
13439
13440         init.sh: fix an error in the previous change; add more comments
13441         * tests/init.sh: Compare exit code in loop against 9, not 2.
13442         Patch by Bruno Haible.
13443         Make the two tests more similar by adding an empty "then" clause.
13444         Add comments.
13445
13446         init.sh: avoid unnecessary shell re-exec
13447         * tests/init.sh: Improve the re-exec-required check to first test the
13448         current shell.  If it passes the test, do not search for a shell that
13449         does pass, and do not re-exec.  This test is particularly contorted to
13450         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13451         of $(...) evokes a syntax error and causes immediate shell exit with
13452         status 2.  Bruno Haible reported that the re-exec made it impossible
13453         to single-step through any init.sh-using script.
13454
13455 2010-05-16  Bruno Haible  <bruno@clisp.org>
13456
13457         Fix collision between gnulib's and libintl's printf replacements.
13458         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13459         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13460         (printf): When using GNU C, map the __printf__ function to rpl_printf
13461         via __asm__. When not using GNU C, define rpl_printf instead of
13462         __printf__.
13463         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13464         commit.
13465         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13466         commit.
13467         * m4/asm-underscore.m4: New file.
13468         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13469         * modules/stdio (Files): Add m4/asm-underscore.m4.
13470         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13471         Reported by Ben Pfaff.
13472
13473 2010-05-16  Bruno Haible  <bruno@clisp.org>
13474
13475         verify: Avoid skipping the test on openSUSE 11.0.
13476         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13477
13478 2010-05-13  Bruno Haible  <bruno@clisp.org>
13479
13480         Avoid useless warnings from G++.
13481         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13482         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13483         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13484
13485 2010-05-11  Jim Meyering  <meyering@redhat.com>
13486
13487         maint.mk: tweak preceding change
13488         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13489         regexps tighter by anchoring at EOL, and make the new group "shy"
13490         for slightly decreased overhead.
13491
13492 2010-05-11  Eric Blake  <eblake@redhat.com>
13493
13494         maint.mk: gnulib doesn't guarantee NSIG
13495         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13496
13497 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13498
13499         test-pwrite.c: Remove unused variable declaration.
13500         * tests/test-pwrite.c (main): Remove read_buf declaration.
13501
13502         Remove useless test-pwrite.sh file.
13503         * tests/test-pwrite.sh: Delete file.
13504         * modules/pwrite-tests: Remove references.
13505         Reported by Bruno Haible.
13506
13507 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13508
13509         init.sh: fix a typo
13510         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13511
13512 2010-05-10  Jim Meyering  <meyering@redhat.com>
13513
13514         maint.mk: avoid using a temporary file in the always-defined-macros check
13515         * top/maint.mk (.re-defmac): Remove rule.
13516         (gl_trap_): Remove definition.
13517         (sc_prohibit_always-defined_macros): Rewrite not to create and
13518         depend on a temporary file.  Instead, depend on GNU grep's ability
13519         to read a list of regular expressions from stdin when given "-f -".
13520
13521 2010-05-09  Bruno Haible  <bruno@clisp.org>
13522
13523         Update to GNU gettext 0.18, part 1.
13524         * m4/gettext.m4: Update to GNU gettext 0.18.
13525         * m4/intl.m4: Likewise.
13526         * m4/po.m4: Likewise.
13527         * modules/gettext (Files): Add m4/fcntl-o.m4.
13528         (configure.ac): Require gettext infrastructure from version 0.18.
13529
13530 2010-05-09  Jim Meyering  <meyering@redhat.com>
13531
13532         init.sh: enable MALLOC_PERTURB_
13533         * tests/init.sh: Enable glibc's malloc-perturbing option.
13534
13535         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13536         With my recent change in init.sh from the two-line form:
13537             -#   : ${srcdir=.}
13538             -#   . "$srcdir/init.sh"; path_prepend_ .
13539             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13540         I noticed that using the one-line form would cause this test
13541         to fail with a false-positive, or to stop working altogether,
13542         depending on whether help-version changed or all the tests did.
13543         * top/maint.mk (_hv_regex): Remove this definition.
13544         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13545         (_hv_regex_strong): Use a stronger regex to check for conformance.
13546         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13547         Give a separate diagnostic for lack of conforming use.
13548
13549         maint.mk: prohibit definition of symbols defined by gnulib
13550         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13551         definition of symbols defined by gnulib.
13552
13553 2010-05-09  Bruno Haible  <bruno@clisp.org>
13554
13555         acl: Avoid test failure on Cygwin-hosted mingw.
13556         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13557
13558 2010-05-09  Bruno Haible  <bruno@clisp.org>
13559
13560         error: Use system's fcntl function.
13561         * lib/error.c (fcntl): Undefine.
13562
13563 2010-05-09  Jim Meyering  <meyering@redhat.com>
13564
13565         verify: adjust formatting to be more consistent
13566         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13567         argument-list '('s, and after one comma.
13568
13569 2010-05-09  Bruno Haible  <bruno@clisp.org>
13570
13571         error: More reliable output on mingw.
13572         * lib/error.c: Include <windows.h>.
13573         (is_open): New function.
13574         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13575         defined.
13576
13577 2010-05-09  Bruno Haible  <bruno@clisp.org>
13578
13579         vasnprintf: Fix syntax errors in libintl build on mingw.
13580         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13581         pad_ourselves and prec_ourselves after use.
13582
13583 2010-05-08  Bruno Haible  <bruno@clisp.org>
13584
13585         * lib/config.charset: Update comments for Cygwin 1.7.
13586         * lib/localcharset.c: Likewise.
13587
13588 2010-05-07  Jim Meyering  <meyering@redhat.com>
13589
13590         init.sh: improve comments
13591         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13592         . "${srcdir=.}/init.sh"; path_prepend_ .
13593         Add a note about path_prepend_ and the alternative of using
13594         TESTS_ENVIRONMENT.
13595
13596 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13597
13598         exclude: Unescape hashed patterns in wildcard mode.
13599         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13600         to the hash list.
13601         * tests/test-exclude8.sh: New test case.
13602         * modules/exclude-tests: Add new test.
13603
13604 2010-05-05  Eric Blake  <eblake@redhat.com>
13605
13606         verify: automate tests
13607         * modules/verify-tests: New module.
13608         * tests/test-verify.sh: New file.
13609         * tests/test-verify.c: Guard each negative test with a unique id.
13610         Also avoid warning about unused left hand of comma expressions.
13611
13612 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13613
13614         Further improvements to verify.h, suggested by Eric Blake.
13615         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13616         the GL_* versions, to avoid collision with OpenGL.
13617         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13618         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13619         than testing merely whether it's defined.
13620
13621         Modify verify.h to pacify gcc -Wredundant_decls.
13622         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13623         These use the prefix "GL_" since they're likely to be useful elsewhere.
13624         We may need to break them out into a different .h file.
13625         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13626         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13627         of verify_function__.
13628
13629 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13630
13631         Tests for module pwrite.
13632         * modules/pwrite-tests: New file.
13633         * tests/test-pwrite.sh: New file.
13634         * tests/test-pwrite.c: New file.
13635
13636         New module pwrite.
13637         * lib/unistd.in.h (pwrite): New declaration.
13638         * lib/pwrite.c: New file, from glibc with modifications.
13639         * m4/pwrite.m4: New file.
13640         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13641         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13642         REPLACE_PWRITE.
13643         * modules/pwrite: New file.
13644         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13645         REPLACE_PWRITE.
13646         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13647         * doc/posix-functions/pwrite.texi: Mention the new module.
13648
13649 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13650
13651         pread: Update documentation.
13652         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13653
13654 2010-05-04  Eric Blake  <eblake@redhat.com>
13655
13656         docs: update cygwin progress
13657         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13658         this bug.
13659         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13660         Added in cygwin 1.7.2.
13661         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13662         Likewise.
13663         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13664         Likewise.
13665         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13666         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13667         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13668         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13669         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13670         Mention nproc module.
13671         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13672         bug in cygwin 1.7.5 addition.
13673         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13674         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13675         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13676         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13677         1.7.5.
13678         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13679         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13680         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13681         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13682         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13683         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13684         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13685         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13686         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13687         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13688         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13689         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13690         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13691         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13692         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13693         Likewise.
13694         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13695         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13696         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13697         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13698         Likewise.
13699         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13700         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13701         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13702         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13703         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13704         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13705         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13706         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13707         Likewise.
13708         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13709         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13710         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13711         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13712         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13713         Likewise.
13714         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13715         Likewise.
13716         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13717         Likewise.
13718         * doc/glibc-functions/xdrrec_endofrecord.texi
13719         (xdrrec_endofrecord): Likewise.
13720         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13721         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13722         Likewise.
13723         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13724         Likewise.
13725
13726 2010-05-04  Jim Meyering  <meyering@redhat.com>
13727
13728         gendocs.sh: make its "-s FILE" option more useful
13729         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13730         $PACKAGE to reflect the probably-different basename of "FILE".
13731
13732 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13733
13734         bootstrap: don't ignore download_po_files failure
13735         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13736         failure.
13737
13738 2010-05-03  Jim Meyering  <meyering@redhat.com>
13739
13740         maint.mk: allow to pass options to gendocs.sh
13741         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13742         (gendocs_options_): New overridable variable.
13743
13744         gnu-web-doc-update: don't ignore configure or build failure
13745         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13746
13747         announce-gen: backslash-escape '@'s in --help output
13748         * build-aux/announce-gen: Fix syntax errors.
13749
13750         maint.mk, announce-gen: allow project-specific announcement mail headers
13751         * top/maint.mk (translation_project_): Define default.
13752         (announcement_Cc_, announcement_mail_headers_): Likewise.
13753         (announcement): Invoke announce-gen with new --mail-headers option.
13754         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13755
13756         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13757         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13758         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13759         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13760         line in the "err2" output file when running "make check" in verbose
13761         mode (i.e., with set -x enabled).
13762
13763 2010-05-03  Bruno Haible  <bruno@clisp.org>
13764
13765         wctob: Fix for weird platforms.
13766         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13767         argument value.
13768
13769 2010-05-03  Jim Meyering  <meyering@redhat.com>
13770
13771         maint.mk: prohibit unwarranted use of <strings.h>
13772         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13773         strings.h in a file that does not also use strcasecmp, strncasecmp,
13774         ffs or ffsll.
13775
13776         maint.mk: remove obsolete comments
13777         * top/maint.mk: Remove stale, commented-out rules.
13778
13779 2010-05-02  Bruno Haible  <bruno@clisp.org>
13780
13781         wcwidth: Declare also when it's aliased.
13782         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13783         macro.
13784
13785 2010-05-02  Bruno Haible  <bruno@clisp.org>
13786
13787         Fix regression from 2010-04-25.
13788         * gnulib-tool (func_modules_transitive_closure): Check the status of
13789         all modules, not only of the tests that are of the form foo-tests where
13790         foo is a module.
13791
13792 2010-05-02  Bruno Haible  <bruno@clisp.org>
13793
13794         wctob: Work around nasty Cygwin 1.7.2 bug.
13795         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13796         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13797
13798 2010-05-01  Bruno Haible  <bruno@clisp.org>
13799
13800         fpurge: Sharper test.
13801         * tests/test-fpurge.c (main): Add one more ftell check.
13802         * modules/fpurge-tests (Depends-on): Add ftell.
13803         Suggested by Eric Blake.
13804
13805 2010-05-01  Bruno Haible  <bruno@clisp.org>
13806
13807         ftello: Another test.
13808         * tests/test-ftello3.c: New file.
13809         * modules/ftello-tests (Files): Add it.
13810         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13811         MOSTLYCLEANFILES.
13812
13813         ftell: Another test.
13814         * tests/test-ftell3.c: New file.
13815         * modules/ftell-tests (Files): Add it.
13816         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13817         MOSTLYCLEANFILES.
13818
13819 2010-05-01  Bruno Haible  <bruno@clisp.org>
13820
13821         ftell, ftello: Work around Solaris bug.
13822         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13823         * lib/ftello.c: Include stdio-impl.h.
13824         (ftello): On Solaris, when _IOWRT is set, compute the result without
13825         looking at _IOREAD.
13826         * modules/ftello (Files): Add lib/stdio-impl.h.
13827         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13828         * doc/posix-functions/ftello.texi: Likewise.
13829         Reported by Eric Blake.
13830
13831 2010-05-01  Bruno Haible  <bruno@clisp.org>
13832
13833         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13834         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13835         the _IOWRT flag is also set.
13836
13837 2010-05-01  Bruno Haible  <bruno@clisp.org>
13838
13839         Fix doc about a HP-UX stdio bug.
13840         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13841         * doc/posix-functions/ftello.texi: Likewise.
13842
13843 2010-05-01  Bruno Haible  <bruno@clisp.org>
13844
13845         lseek test: Fix failure on Solaris.
13846         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13847         output.
13848
13849 2010-04-30  Jim Meyering  <meyering@redhat.com>
13850
13851         bootstrap: don't ignore failure to generate po*/Makevars
13852         * build-aux/bootstrap (with_gettext): Don't ignore failure
13853         to create po/Makevars or runtime-po/Makevars.
13854
13855 2010-04-29  Eric Blake  <eblake@redhat.com>
13856
13857         headers: relax license to LGPLv2+
13858         * modules/fcntl-h (License): Relax license.
13859         * modules/getopt-posix (License): Likewise.
13860         * modules/locale (License): Likewise.
13861         * modules/math (License): Likewise.
13862         * modules/pty (License): Likewise.
13863         * modules/sched (License): Likewise.
13864         * modules/search (License): Likewise.
13865         * modules/spawn (License): Likewise.
13866         * modules/stdarg (License): Likewise.
13867         * modules/sysexits (License): Likewise.
13868
13869 2010-04-29  Jim Meyering  <meyering@redhat.com>
13870
13871         inttypes: relax license to LGPLv2+
13872         * modules/inttypes (License): Relax license.
13873
13874 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13875
13876         * top/maint.mk (indent): Run twice to produce idempotent results.
13877
13878 2010-04-28  Bruno Haible  <bruno@clisp.org>
13879
13880         getdate: Generate getdate.c in the source directory.
13881         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13882         MOSTLYCLEANFILES.
13883         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13884
13885 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13886
13887         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13888         is not declared as a const *; avoid warnings in that case.
13889
13890 2010-04-28  Eric Blake  <eblake@redhat.com>
13891
13892         canonicalize-lgpl: avoid compiler warning
13893         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13894         declaration' / 'extraneous semicolon' warning with some compilers.
13895         Reported by Andreas Gruenbacher.
13896
13897 2010-04-28  Jim Meyering  <meyering@redhat.com>
13898
13899         init.sh: ensure a more reliable exit status when exiting via trap
13900         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13901         Inspired by patches from Dmitry V. Levin.
13902         Also trap on signal 3 (SIGQUIT).
13903
13904 2010-04-27  Bruno Haible  <bruno@clisp.org>
13905
13906         Update doc about utimes().
13907         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13908         'utimens' module.
13909         Reported by Andreas Gruenbacher <agruen@suse.de>.
13910
13911 2010-04-27  Eric Blake  <eblake@redhat.com>
13912
13913         full-read, full-write: relax license
13914         * modules/full-read (License): Drop to LGPLv2+.
13915         * modules/full-write (License): Likewise.
13916         * modules/safe-read (License): Likewise.
13917         * modules/safe-write (License): Likewise.
13918
13919         pthread: mention library for linking
13920         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13921
13922 2010-04-27  Jim Meyering  <meyering@redhat.com>
13923
13924         maint.mk: fix a bug introduced in last change
13925         * top/maint.mk (gl_assured_headers_): Now that all names are on
13926         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13927         is not anchored to end of word, it should be adequate.
13928
13929         maint.mk: avoid side-effect in latest syntax-check
13930         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13931         to run commands via $(shell...), and hence to incur cost only when
13932         the new rule is actually run.
13933
13934         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13935         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13936         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13937         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13938         (gl_assured_headers_, az_, AZ_): Define.
13939         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13940
13941 2010-04-26  Jim Meyering  <jim@meyering.net>
13942             Bruno Haible  <bruno@clisp.org>
13943
13944         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13945         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13946         Prompted by an exchange with Gilles Espinasse.
13947
13948 2010-04-26  Jim Meyering  <meyering@redhat.com>
13949
13950         git-version-gen: aesthetic tweak
13951         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13952         so that the command remains on a single line.
13953
13954 2010-04-26  Eric Blake  <eblake@redhat.com>
13955
13956         git-version-gen: allow use on EBCDIC hosts
13957         * build-aux/git-version-gen (dirty): Use literal rather than tying
13958         ourselves to ascii.
13959         Reported by Steve Goetze.
13960
13961 2010-04-25  Bruno Haible  <bruno@clisp.org>
13962
13963         netdb: Add support for GNULIB_POSIXCHECK.
13964         * lib/netdb.in.h: Include warn-on-use.h.
13965         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13966         functions are used when GNULIB_POSIXCHECK is defined and the
13967         getaddrinfo module is not in use.
13968         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13969         freeaddrinfo, gai_strerror, getnameinfo are declared.
13970         * modules/netdb (Depends-on): Add warn-on-use.
13971         (Makefile.am): Include warn-on-use.h in netdb.h.
13972
13973 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13974
13975         build: avoid "make check" failure without .git/ directory
13976         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13977         there is no .git/ directory.
13978
13979 2010-04-25  Bruno Haible  <bruno@clisp.org>
13980
13981         ptsname: Fix misuse of ttyname_r.
13982         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13983         of errno.
13984
13985 2010-04-25  Bruno Haible  <bruno@clisp.org>
13986
13987         ttyname_r: Make it work on Solaris 10.
13988         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13989         if the system function has the POSIX declaration. Test whether the
13990         function fails if the buffer is less than 128 bytes large.
13991         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13992         system's ttyname_r function. Provide a reasonably large buffer.
13993         * modules/ttyname_r (Depends-on): Add extensions.
13994         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13995
13996 2010-04-25  Bruno Haible  <bruno@clisp.org>
13997
13998         Use the 'extensions' module for some more functions on Solaris.
13999         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14000         module.
14001         * doc/posix-functions/ctime_r.texi: Likewise.
14002         * doc/posix-functions/getgrgid_r.texi: Likewise.
14003         * doc/posix-functions/getgrnam_r.texi: Likewise.
14004         * doc/posix-functions/getpwnam_r.texi: Likewise.
14005         * doc/posix-functions/getpwuid_r.texi: Likewise.
14006         * doc/posix-functions/readdir_r.texi: Likewise.
14007         * doc/posix-functions/sigwait.texi: Likewise.
14008         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14009         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14010
14011 2010-04-25  Bruno Haible  <bruno@clisp.org>
14012
14013         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14015         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14016         * lib/ttyname_r.c: Include <limits.h>.
14017         (ttyname_r): Define using the system's ttyname_r function, if it exists
14018         and not on Solaris.
14019         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14020         set.
14021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14022         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14023         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14024         Reported by Simon Josefsson.
14025
14026 2010-04-25  Bruno Haible  <bruno@clisp.org>
14027
14028         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14029         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14030         * doc/posix-functions/ctime_r.texi: Likewise.
14031         * doc/posix-functions/getgrgid_r.texi: Likewise.
14032         * doc/posix-functions/getgrnam_r.texi: Likewise.
14033         * doc/posix-functions/getlogin_r.texi: Likewise.
14034         * doc/posix-functions/getpwnam_r.texi: Likewise.
14035         * doc/posix-functions/getpwuid_r.texi: Likewise.
14036         * doc/posix-functions/readdir_r.texi: Likewise.
14037         * doc/posix-functions/sigwait.texi: Likewise.
14038         * doc/posix-functions/ttyname_r.texi: Likewise.
14039         Reported by Simon Josefsson.
14040
14041 2010-04-25  Bruno Haible  <bruno@clisp.org>
14042
14043         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14044         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14045         also to --create-testdir.
14046         (func_acceptable): Don't consider the status of *-tests modules here.
14047         (func_modules_transitive_closure): Consider it here, before including a
14048         test module.
14049         (func_import, func_create_testdir): Set inc_all_direct_tests,
14050         inc_all_indirect_tests.
14051         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14052         --create-testdir and --create-megatestdir.
14053
14054 2010-04-25  Bruno Haible  <bruno@clisp.org>
14055
14056         gnulib-tool: Add --without-*-tests options.
14057         * gnulib-tool (func_usage): Document the --without-*-tests options.
14058         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14059         excl_unportable_tests): New variables.
14060         Fail if they are specified with --import or --update.
14061         (func_acceptable): Respect the excl_*_tests variables.
14062         (func_import): Set the excl_*_tests variables to empty.
14063
14064 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14065             Bruno Haible  <bruno@clisp.org>
14066
14067         Work around a MacOS X 10.4 bug with openpty.
14068         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14069         * tests/test-openpty.c (main): Close the master side explicitly.
14070
14071 2010-04-25  Bruno Haible  <bruno@clisp.org>
14072
14073         strnlen: Fix a C++ test error on MacOS X and Solaris.
14074         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14075         the function is not declared.
14076         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14077         Simon Josefsson.
14078
14079 2010-04-24  Bruno Haible  <bruno@clisp.org>
14080
14081         Avoid a gcc warning.
14082         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14083         of correct type for %08lx directive.
14084         Reported by Eric Blake.
14085
14086 2010-04-24  Bruno Haible  <bruno@clisp.org>
14087
14088         vasnprintf: Correct errno value in case of out-of-memory.
14089         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14090         or sprintf. Use the errno value from SNPRINTF or sprintf.
14091         Reported by Ian Beckwith <ianb@erislabs.net>.
14092
14093 2010-04-24  Bruno Haible  <bruno@clisp.org>
14094
14095         ansi-c++-opt: Find correct compiler when cross-compiling.
14096         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14097         AC_CHECK_PROGS.
14098         Reported by Simon Josefsson.
14099
14100 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14101
14102         vc-list-files: Add support for subversion
14103         * build-aux/vc-list-files: Use "svn list" to generate the list of
14104         files controlled by subversion.
14105
14106 2010-04-23  Jim Meyering  <meyering@redhat.com>
14107
14108         vc-list-files tests: convert to use init.sh
14109         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14110         path_prepend_.
14111         Use Exit, not exit.
14112         Use skip_ rather than open coding it.
14113         Remove trap set-up and compare definitions.
14114         * tests/test-vc-list-files-git.sh: Likewise.
14115         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14116
14117 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14118
14119         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14120         backup files.
14121
14122 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14123
14124         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14125
14126 2010-04-20  Eric Blake  <eblake@redhat.com>
14127
14128         tests: be robust to ignored SIGPIPE
14129         * tests/test-select-in.sh: Consume all output.
14130         * tests/test-lseek.sh: Check correct exit status, while avoiding
14131         EPIPE.
14132
14133 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14134             Bruno Haible  <bruno@clisp.org>
14135
14136         visibility: Don't use -fvisibility if it leads to a warning.
14137         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14138         yes, don't pretend that visibility works if it leads to a warning.
14139         Reported by Mike Gran <spk121@yahoo.com>.
14140
14141 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14142
14143         * build-aux/bootstrap: Use "git -h" for testing for supported options
14144         instead of "git --help".  The short-form option only shows a summary,
14145         and doesn't layout the full man page.  Grep for the full option name
14146         in the summary, too.
14147
14148 2010-04-19  Bruno Haible  <bruno@clisp.org>
14149
14150         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14151         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14152         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14153         mention of RELOCATABLE_STRIP.
14154         Reported by Sylvain Beucler <beuc@beuc.net>.
14155
14156 2010-04-19  Bruno Haible  <bruno@clisp.org>
14157
14158         * lib/diffseq.h: Fix typo in comment.
14159         Reported by Eric Blake.
14160
14161 2010-04-19  Bruno Haible  <bruno@clisp.org>
14162
14163         ioctl: Move autoconf macro to a .m4 file.
14164         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14165         * modules/ioctl (Files): Add it.
14166         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14167         Reported by Ian Beckwith <ianb@erislabs.net>.
14168
14169 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14170             Bruno Haible  <bruno@clisp.org>
14171
14172         diffseq: Accommodate use-case with abstract arrays.
14173         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14174         is not defined.
14175         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14176         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14177
14178 2010-04-18  Bruno Haible  <bruno@clisp.org>
14179
14180         * doc/posix-headers/stdbool.texi: More precise wording.
14181
14182 2010-04-17  Jim Meyering  <meyering@redhat.com>
14183
14184         maint.mk: use gnu-style indentation in an embedded perl script
14185         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14186         Rename variable: s/two/last_two_bytes/
14187
14188 2010-04-16  Eric Blake  <eblake@redhat.com>
14189
14190         test-stdbool: skip test that fails with Solaris CC
14191         * tests/test-stdbool.c (f): Skip test that causes compilation
14192         error under buggy C++ compiler.
14193         * lib/stdbool.in.h: Document the limitation.
14194         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14195
14196         setenv: allow compilation with C++
14197         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14198         register keyword.
14199
14200         stdint: allow test to pass with C++
14201         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14202
14203         getopt: allow compilation with C++
14204         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14205         struct.
14206         * lib/getopt.c (_getopt_internal_r): Use correct type.
14207         Reported by Dagobert Michelson, via Joel E. Denny.
14208
14209 2010-04-16  Bruno Haible  <bruno@clisp.org>
14210
14211         Override netdb.h always.
14212         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14213         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14214         Reported by Ludovic Courtès <ludo@gnu.org>.
14215
14216 2010-04-15  Bruno Haible  <bruno@clisp.org>
14217
14218         openpty: Fix mistake from 2010-03-21.
14219         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14220         Reported by Simon Josefsson.
14221
14222 2010-04-15  Eric Blake  <eblake@redhat.com>
14223
14224         test-forkpty: fix expected signature
14225         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14226         Reported by Simon Josefsson.
14227
14228 2010-04-15  Jim Meyering  <meyering@redhat.com>
14229
14230         maint.mk: texinfo_suffix_re_: correct the default regexp
14231         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14232
14233         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14234         make it configurable via texinfo_suffix_re_.
14235
14236 2010-04-14  Eric Blake  <eblake@redhat.com>
14237
14238         strtok_r: relax license to LGPLv2+
14239         * modules/strtok_r (License): Relax license.
14240         Reported by Matthias Bolte.
14241
14242 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14243
14244         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14245         version 1.4.4 by default instead of requiring the libgcrypt
14246         version used during build.  This makes it possible to use the
14247         application with older but still binary compatible libgcrypt
14248         versions.
14249
14250 2010-04-13  Eric Blake  <eblake@redhat.com>
14251
14252         getopt-gnu: match recent glibc fixes and posix ruling
14253         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14254         '+' handling, when requesting extensions.
14255         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14256         'W;' handling.
14257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14258         * doc/posix-functions/getopt.texi (getopt): Document this.
14259         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14260         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14261         Likewise.
14262
14263         getopt: merge bug fixes from glibc
14264         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14265         diagnostics.  Honor '+:' correctly.  Reject ';'.
14266
14267         getopt-posix: detect MacOS bug
14268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14269         optind when missing a required argument.
14270         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14271         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14272         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14273         Likewise.
14274
14275         getopt-posix: avoid spurious failure on Solaris
14276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14277         an indicator that setting optind=1 is sufficient for reset.
14278
14279         getopt-posix: avoid spurious failure on FreeBSD
14280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14281         in POSIX mode, since the m4 test uses it.
14282
14283         gnulib-tool: silence warning on BSD sh
14284         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14285
14286 2010-04-13  Jim Meyering  <meyering@redhat.com>
14287
14288         doc: users.txt: GNU patch now uses gnulib
14289         * users.txt: Add patch.
14290
14291 2010-04-12  Jim Meyering  <meyering@redhat.com>
14292
14293         maint.mk: generate more concise timing data for syntax-check rules
14294         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14295         " done" from each line that reports a syntax-check test duration.
14296
14297 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14298
14299         git-version-gen: use "git update-index..." rather than "git status"
14300         * build-aux/git-version-gen: Use git update-index --refresh, not
14301         "git status".  With some versions of git, "git status" would fail
14302         to update the index and result in an unwarranted "-dirty" suffix.
14303
14304 2010-04-11  Jim Meyering  <meyering@redhat.com>
14305
14306         openat: correct formatting (no semantic change)
14307         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14308         Suggested by Bruno Haible.
14309
14310 2010-04-11  Bruno Haible  <bruno@clisp.org>
14311
14312         Stricter declaration checking in testdirs.
14313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14314         If for_tests is true, augment AM_CPPFLAGS to define
14315         GNULIB_STRICT_CHECKING.
14316         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14317         GNULIB_STRICT_CHECKING is defined, verify that the function is
14318         declared.
14319
14320 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14321             Bruno Haible  <bruno@clisp.org>
14322
14323         libunistring: Improve configure output.
14324         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14325         Don't say "consider installing GNU libunistring" when checking again
14326         with libiconv.
14327
14328 2010-04-11  Bruno Haible  <bruno@clisp.org>
14329
14330         libunistring: Correct value of $LTLIBUNISTRING.
14331         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14332         correct the value of $LTLIBUNISTRING.
14333
14334 2010-04-11  Bruno Haible  <bruno@clisp.org>
14335
14336         havelib: Add static libraries to LIBS in the right order.
14337         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14338         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14339
14340 2010-04-11  Bruno Haible  <bruno@clisp.org>
14341
14342         libunistring: Detect libunistring also when it depends on libiconv.
14343         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14344         the second AC_LIB_HAVE_LINKFLAGS invocation.
14345
14346 2010-04-11  James Youngman  <jay@gnu.org>
14347
14348         close-stream: declare local scalars to be "const"
14349         * lib/close-stream.c (close_stream): Make boolean variables const
14350         to document the fact that we set but do not change them.
14351
14352 2010-04-11  Bruno Haible  <bruno@clisp.org>
14353
14354         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14355
14356 2010-04-11  Jim Meyering  <meyering@redhat.com>
14357
14358         maint.mk: don't include dist-check.mk
14359         * top/maint.mk: Remove bogus include directive.
14360
14361         maint.mk: improve empty-line-at-EOF check
14362         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14363         solution, rather than tail+Perl-based one.  The latter would read
14364         a few kilobytes from the end of each file, and did not handle empty
14365         files properly.
14366
14367         maint.mk: print the elapsed time for each syntax-check rule
14368         * top/maint.mk (sc_m_rules_): Save start time in a file.
14369         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14370         (local-check): Interpose the .z rules
14371
14372 2010-04-11  Jim Meyering  <meyering@redhat.com>
14373
14374         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14375         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14376         empty file with one that ends in an empty line.
14377
14378 2010-04-10  Bruno Haible  <bruno@clisp.org>
14379
14380         mkdir: Make it work on mingw64.
14381         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14382         * lib/mkdir.c: Update comment.
14383         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14384
14385 2010-04-10  Bruno Haible  <bruno@clisp.org>
14386
14387         Don't override improved macro from newer autoconf.
14388         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14389         autoconf >= 2.62.
14390         Reported by Joel E. Denny <jdenny@clemson.edu>.
14391
14392 2010-04-10  Jim Meyering  <meyering@redhat.com>
14393
14394         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14395         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14396
14397         maint.mk: correct a diagnostic
14398         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14399         in diagnostic; now use $prohibit.
14400
14401 2010-04-10  Bruno Haible  <address@hidden>
14402
14403         fchownat: Fix a C++ test error on Solaris 8.
14404         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14405         the function does not exist.
14406
14407 2010-04-10  Bruno Haible  <bruno@clisp.org>
14408
14409         vasnprintf: Add more tests.
14410         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14411         (test_function): Test converting an invalid wide string.
14412
14413         vasnprintf: Correct handling of unconvertible wide string arguments.
14414         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14415         VASNPRINTF.
14416         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14417         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14418         smaller than the expected maximum need for the directive. Set errno to
14419         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14420         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14422         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14423         * modules/vasnprintf (Files): Add m4/printf.m4.
14424         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14425
14426 2010-04-10  Bruno Haible  <bruno@clisp.org>
14427
14428         vasnprintf: Fix crash in %ls directive.
14429         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14430         string is passed as argument to %ls, with no precision and no width.
14431         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14432
14433 2010-04-10  Bruno Haible  <bruno@clisp.org>
14434
14435         vasnprintf: Fix multiple test failures on mingw.
14436         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14437         _snprintf, or snwprintf, not _snwprintf.
14438
14439 2010-04-10  Bruno Haible  <bruno@clisp.org>
14440
14441         write: Fix a C++ test error on mingw.
14442         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14443
14444 2010-04-10  Bruno Haible  <bruno@clisp.org>
14445
14446         vasnprintf test: Reduce code duplication.
14447         * tests/test-vasnprintf.c (test_function): New function, extracted from
14448         test_vasnprintf.
14449         (test_vasnprintf, test_asnprintf): Invoke it.
14450
14451 2010-04-10  Bruno Haible  <bruno@clisp.org>
14452
14453         strnlen: Fix warning in C++ mode on MacOS X.
14454         * lib/string.in.h (strnlen): Use the modern idiom.
14455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14456         defining strnlen as a macro already in <config.h>.
14457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14458         REPLACE_STRNLEN.
14459         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14460         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14461
14462 2010-04-08  James Youngman  <jay@gnu.org>
14463
14464         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14465         the example.
14466
14467 2010-04-09  Jim Meyering  <meyering@redhat.com>
14468
14469         maint.mk: print better diagnostic when there is no $(_hv_file)
14470         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14471         announce that when $(_hv_file) (aka help-version) does not exist.
14472
14473         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14474         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14475         not try to interpret its random input bytes.  Jarno Rajahalme reported
14476         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14477         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14478         (mktempd_): Likewise, just in case.
14479
14480         ftruncate: add two years to projected module removal date: 2012
14481         * m4/ftruncate.m4: Adjust comments.
14482
14483         ftruncate: mark module as obsolete; even MinGW provides it, now
14484         * modules/ftruncate (Status): Obsolete.
14485         (Notice): Say that.
14486         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14488
14489 2010-04-08  Bruno Haible  <bruno@clisp.org>
14490
14491         Fix side effects from tests-related modules.
14492         * modules/dprintf-posix (Comment): New section.
14493         * modules/fprintf-posix (Comment): Likewise.
14494         * modules/obstack-printf-posix (Comment): Likewise.
14495         * modules/printf-posix (Comment): Likewise.
14496         * modules/snprintf-posix (Comment): Likewise.
14497         * modules/sprintf-posix (Comment): Likewise.
14498         * modules/vasnprintf-posix (Comment): Likewise.
14499         * modules/vasprintf-posix (Comment): Likewise.
14500         * modules/vdprintf-posix (Comment): Likewise.
14501         * modules/vfprintf-posix (Comment): Likewise.
14502         * modules/vprintf-posix (Comment): Likewise.
14503         * modules/vsnprintf-posix (Comment): Likewise.
14504         * modules/vsprintf-posix (Comment): Likewise.
14505         * modules/xprintf-posix (Comment): Likewise.
14506         * modules/xvasprintf-posix (Comment): Likewise.
14507         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14508         * modules/floorf-tests (Depends-on): Likewise.
14509         * modules/round-tests (Depends-on): Likewise.
14510         * modules/roundf-tests (Depends-on): Likewise.
14511         * modules/trunc-tests (Depends-on): Likewise.
14512         * modules/truncf-tests (Depends-on): Likewise.
14513         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14514         'fprintf-posix' module is not present.
14515         * tests/test-floorf2.c (check): Likewise.
14516         * tests/test-trunc2.c (check): Likewise.
14517         * tests/test-truncf2.c (check): Likewise.
14518         * tests/test-round2.c (equal): Likewise.
14519         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14520
14521 2010-04-07  Karl Berry  <karl@gnu.org>
14522
14523         * config/srclist.txt,
14524         * config/srclistvars.sh,
14525         * config/srclist-update: doc fixes.
14526
14527 2010-04-07  Jim Meyering  <meyering@redhat.com>
14528
14529         maint.mk: add a PATH crosschecking syntax-check rule
14530         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14531         Useful if you use a test like the one in help-version (coreutils,
14532         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14533         printed by prog --version.
14534
14535 2010-04-06  Bruno Haible  <bruno@clisp.org>
14536
14537         Fix link error on mingw.
14538         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14539         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14540
14541 2010-04-06  Bruno Haible  <bruno@clisp.org>
14542
14543         Assume rmdir exists.
14544         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14545
14546 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14547
14548         doc: update users.txt
14549         * users.txt: Add gcal.
14550
14551 2010-04-06  Jim Meyering  <meyering@redhat.com>
14552
14553         init.sh: simply unset TMPDIR rather than risking env -i
14554         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14555         although it probably works fine on all Unix-based systems, some
14556         systems (Cygwin?) cannot tolerate a totally cleared environment.
14557         Suggestion from Eric Blake.
14558
14559 2010-04-06  Jim Meyering  <meyering@redhat.com>
14560
14561         init.sh: portability fix: use env's POSIX-specified -i option not -u
14562         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14563         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14564
14565 2010-04-05  Bruno Haible  <bruno@clisp.org>
14566
14567         btowc: Work around Cygwin 1.7.2 bug.
14568         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14569         does not map NUL to 0.
14570         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14571
14572 2010-04-05  Bruno Haible  <bruno@clisp.org>
14573
14574         Make the multithread modules work on Cygwin 1.7.2.
14575         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14576         imported symbols can be declared weak, so that it returns "no" on
14577         Cygwin 1.7.2.
14578
14579 2010-04-05  Bruno Haible  <bruno@clisp.org>
14580
14581         Use the module 'strncat'.
14582         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14583
14584         Tests for module 'strncat'.
14585         * modules/strncat-tests: New file.
14586         * tests/test-strncat.c: New file.
14587
14588         New module 'strncat'.
14589         * lib/string.in.h (strncat): New declaration.
14590         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14591         * m4/strncat.m4: New file, based on m4/memchr.m4.
14592         * modules/strncat: New file.
14593         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14594         is declared.
14595         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14596         REPLACE_STRNCAT.
14597         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14598         REPLACE_STRNCAT.
14599         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14600         module.
14601         * tests/test-string-c++.cc: Check signature of strncat.
14602
14603 2010-04-05  Jim Meyering  <meyering@redhat.com>
14604
14605         xstrtoumax-tests: convert to use init.sh
14606         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14607         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14608         Use Exit, not exit.
14609         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14610
14611         xstrtoimax-tests: convert to use init.sh
14612         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14613         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14614         Use Exit, not exit.
14615         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14616
14617 2010-04-05  Bruno Haible  <bruno@clisp.org>
14618
14619         sys_socket: Avoid #define replacements in C++ mode.
14620         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14621         warning to the function if possible, rather than #defining the symbol
14622         to a dysfunctional alias.
14623
14624 2010-04-05  Bruno Haible  <bruno@clisp.org>
14625
14626         fseeko: Fix C++ test error on mingw.
14627         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14628         gl_FUNC_FSEEKO.
14629         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14630         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14631         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14632         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14633
14634 2010-04-05  Bruno Haible  <bruno@clisp.org>
14635
14636         duplocale: Improve test output.
14637         * tests/test-duplocale.c (main): Print reason for skipped test.
14638
14639 2010-04-05  Bruno Haible  <bruno@clisp.org>
14640
14641         Assume rmdir exists.
14642         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14643         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14644
14645 2010-04-05  Bruno Haible  <bruno@clisp.org>
14646
14647         Fix link error on Solaris 8 with cc.
14648         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14649
14650 2010-04-05  Bruno Haible  <bruno@clisp.org>
14651
14652         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14653         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14654
14655 2010-04-05  Bruno Haible  <bruno@clisp.org>
14656
14657         vasprintf: Update documentation.
14658         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14659
14660 2010-04-05  Bruno Haible  <bruno@clisp.org>
14661
14662         ptsname: Improve test.
14663         * tests/test-ptsname.c (main): Also try the various master names of BSD
14664         systems.
14665
14666 2010-04-05  Bruno Haible  <bruno@clisp.org>
14667
14668         memchr: Avoid a possible C++ test error.
14669         * lib/string.in.h (memchr): Provide declaration if function is missing.
14670         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14671         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14673         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14674
14675 2010-04-05  Bruno Haible  <bruno@clisp.org>
14676
14677         strtok_r: Improve idiom.
14678         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14679         AC_LIBOBJ is used.
14680
14681 2010-04-05  Bruno Haible  <bruno@clisp.org>
14682
14683         strdup: Improve idiom.
14684         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14685         AC_LIBOBJ is used.
14686         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14687         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14688         when AC_LIBOBJ is used.
14689
14690 2010-04-05  Bruno Haible  <bruno@clisp.org>
14691
14692         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14693         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14694         don't set REPLACE_MBSINIT to 1.
14695         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14696         don't set REPLACE_MBRTOWC to 1.
14697         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14698         exist, don't set REPLACE_MBSRTOWCS to 1.
14699         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14700         exist, don't set REPLACE_MBSNRTOWCS to 1.
14701         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14702         don't set REPLACE_WCRTOMB to 1.
14703         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14704         exist, don't set REPLACE_WCSRTOMBS to 1.
14705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14706         exist, don't set REPLACE_WCSNRTOMBS to 1.
14707
14708 2010-04-05  Bruno Haible  <bruno@clisp.org>
14709
14710         ldexpl: Improve idiom.
14711         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14712         make sure to set HAVE_DECL_LDEXPL to 0.
14713
14714 2010-04-05  Jim Meyering  <meyering@redhat.com>
14715
14716         xstrtol-tests: convert to use init.sh
14717         * modules/xstrtol-tests (Files): Add tests/init.sh.
14718         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14719         Use Exit, not exit.
14720         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14721
14722         atexit-tests: convert to use init.sh
14723         * modules/atexit-tests (Files): Add tests/init.sh.
14724         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14725         Use Exit, not exit.
14726         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14727
14728         init.sh: fix typo
14729         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14730
14731         init.sh: make it easier for a test script to write to the tty, ...
14732         when using automake's parallel-tests mode.
14733         * tests/init.sh (stderr_fileno_): Define overridable variable.
14734         (warn_): New function, to use it.
14735         (fail_, skip_, framework_failure_): Use warn_.
14736
14737 2010-04-04  Bruno Haible  <bruno@clisp.org>
14738
14739         btowc: Avoid warning.
14740         * lib/btowc.c: Include <stdlib.h>.
14741         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14742
14743 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14744             Bruno Haible  <bruno@clisp.org>
14745
14746         wchar: Port to NetBSD 1.5.
14747         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14748         * lib/wctype.in.h (WEOF): Likewise.
14749
14750 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14751             Bruno Haible  <bruno@clisp.org>
14752
14753         Port extended stdio to NetBSD 1.5.
14754         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14755         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14756         older.
14757
14758 2010-04-04  Bruno Haible  <bruno@clisp.org>
14759
14760         string: Remove unused substitution.
14761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14762         HAVE_DECL_STRERROR.
14763         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14764
14765 2010-04-04  Bruno Haible  <bruno@clisp.org>
14766
14767         strtod: Avoid a possible C++ test error.
14768         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14769         set REPLACE_STRTOD.
14770
14771 2010-04-04  Bruno Haible  <bruno@clisp.org>
14772
14773         strerror: Update documentation.
14774         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14775
14776 2010-04-04  Bruno Haible  <bruno@clisp.org>
14777
14778         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14779         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14780         _GL_CXXALIAS_SYS_CAST.
14781
14782 2010-04-04  Bruno Haible  <bruno@clisp.org>
14783
14784         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14785         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14786         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14787         REPLACE_FREXPL to 1.
14788         * doc/posix-functions/frexpl.texi: Update documentation.
14789
14790 2010-04-04  Bruno Haible  <bruno@clisp.org>
14791
14792         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14793         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14794
14795 2010-04-04  Bruno Haible  <bruno@clisp.org>
14796
14797         Implement nanosleep for native Windows.
14798         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14799
14800 2010-04-04  Bruno Haible  <bruno@clisp.org>
14801
14802         math: Fix some C++ test errors on Solaris 8.
14803         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14804
14805 2010-04-04  Bruno Haible  <bruno@clisp.org>
14806
14807         math: Fix some C++ test errors on Cygwin.
14808         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14809         truncl): Provide declaration if the system does not have it.
14810         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14811         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14812         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14813         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14814         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14815         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14816         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14817         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14818         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14819         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14820         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14821         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14822         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14823         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14824         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14825         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14827         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14828         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14829         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14830         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14831         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14832
14833 2010-04-04  Bruno Haible  <bruno@clisp.org>
14834
14835         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14836         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14837         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14838         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14839         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14840         * m4/isinf.m4 (gl_ISINF): Likewise.
14841         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14842
14843 2010-04-04  Bruno Haible  <bruno@clisp.org>
14844
14845         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14846         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14847
14848 2010-04-04  Bruno Haible  <bruno@clisp.org>
14849
14850         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14851         * modules/tmpfile (configure.ac): Update.
14852
14853         tmpfile: Fix C++ test error on mingw.
14854         * lib/stdio.in.h (tmpfile): New declaration.
14855         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14856         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14857         * modules/tmpfile (Depends-on): Add stdio.
14858         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14859         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14860         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14861         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14862         REPLACE_TMPFILE.
14863         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14864
14865 2010-04-04  Bruno Haible  <bruno@clisp.org>
14866
14867         ioctl: Fix C++ test error on mingw.
14868         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14869         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14870         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14871
14872 2010-04-03  Bruno Haible  <bruno@clisp.org>
14873
14874         wcwidth: Fix C++ test error on mingw.
14875         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14877         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14878
14879 2010-04-03  Bruno Haible  <bruno@clisp.org>
14880
14881         nanosleep: Fix C++ test error on mingw.
14882         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14883         * lib/time.in.h (nanosleep): Use modern idiom.
14884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14885         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14886         REPLACE_NANOSLEEP to 1.
14887         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14888         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14889
14890 2010-04-03  Bruno Haible  <bruno@clisp.org>
14891
14892         strptime: Fix C++ test error on mingw.
14893         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14894         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14895         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14896         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14898         not REPLACE_STRPTIME.
14899         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14900         REPLACE_STRPTIME.
14901
14902 2010-04-03  Bruno Haible  <bruno@clisp.org>
14903
14904         timegm: Fix C++ test error on mingw.
14905         * lib/time.in.h (timegm): Use modern idiom.
14906         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14907         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14908         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14909         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14910
14911 2010-04-03  Bruno Haible  <bruno@clisp.org>
14912
14913         timegm: Assume declaration if function exists.
14914         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14915         if it exists. Don't clobber ac_cv_func_timegm.
14916
14917 2010-04-03  Bruno Haible  <bruno@clisp.org>
14918
14919         time_r: Fix C++ test error on mingw.
14920         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14921         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14922         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14924         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14925
14926 2010-04-03  Bruno Haible  <bruno@clisp.org>
14927
14928         time_r: Minor updates.
14929         * modules/time_r (Description): Mention the provided functions.
14930         * lib/time_r.c: Don't include <string.h>.
14931         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14932         * doc/posix-functions/localtime_r.texi: Likewise.
14933
14934 2010-04-03  Bruno Haible  <bruno@clisp.org>
14935
14936         time: Fix regression introduced on 2010-03-08.
14937         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14938         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14939
14940 2010-04-03  Jim Meyering  <meyering@redhat.com>
14941
14942         maint.mk: don't silently disable project-specific syntax-check rules
14943         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14944         that they need to convert their project-specific syntax-check rules
14945         to use the new _sc_search_regexp.
14946
14947 2010-04-03  Bruno Haible  <bruno@clisp.org>
14948
14949         fchdir: Fix regression introduced on 2010-03-08.
14950         * lib/unistd.in.h (fchdir): Fix declaration.
14951         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14953         REPLACE_FCHDIR.
14954         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14955         REPLACE_FCHDIR.
14956
14957 2010-04-03  Bruno Haible  <bruno@clisp.org>
14958
14959         getpagesize: Fix C++ test error on mingw.
14960         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14961         system does not declare the function.
14962         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14963         declared.
14964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14965         HAVE_DECL_GETPAGESIZE.
14966         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14967
14968 2010-04-03  Bruno Haible  <bruno@clisp.org>
14969
14970         stdio: Make C++ tests work on mingw.
14971         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14972         does not declare the function.
14973
14974 2010-04-03  Bruno Haible  <bruno@clisp.org>
14975
14976         ftello: Fix C++ test error on mingw.
14977         * lib/stdio.in.h (ftello): Use modern idiom.
14978         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14979         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14980         is missing and that it needs to be replaced.
14981         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14983         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14984
14985 2010-04-03  Bruno Haible  <bruno@clisp.org>
14986
14987         fseeko: Fix C++ test error on mingw.
14988         * lib/stdio.in.h (fseeko): Use modern idiom.
14989         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14991         is missing and that it needs to be replaced.
14992         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14994         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14995
14996 2010-04-03  Bruno Haible  <bruno@clisp.org>
14997
14998         mkstemp: Fix C++ test error on mingw.
14999         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15001         function is missing and that it needs to be replaced.
15002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15003         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15004
15005 2010-04-03  Bruno Haible  <bruno@clisp.org>
15006
15007         stpncpy: Fix C++ test error on mingw.
15008         * lib/string.in.h (stpncpy): Use modern idiom.
15009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15010         function is missing and that it needs to be replaced.
15011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15012         REPLACE_STPNCPY.
15013         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15014
15015 2010-04-03  Bruno Haible  <bruno@clisp.org>
15016
15017         sys_stat: Fix C++ test error on mingw.
15018         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15019         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15020
15021 2010-04-03  Bruno Haible  <bruno@clisp.org>
15022
15023         pty: Update doc.
15024         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15025
15026 2010-04-03  Bruno Haible  <bruno@clisp.org>
15027
15028         unistd: Fix C++ test error on mingw.
15029         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15030
15031 2010-04-03  Bruno Haible  <bruno@clisp.org>
15032
15033         Update doc regarding mingw.
15034         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15035         * doc/glibc-functions/login_tty.texi: Likewise.
15036         * doc/glibc-functions/forkpty.texi: Likewise.
15037
15038 2010-04-03  Bruno Haible  <bruno@clisp.org>
15039
15040         stdlib: Avoid compilation failure of c-strtold on mingw.
15041         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15042
15043 2010-04-03  Bruno Haible  <bruno@clisp.org>
15044
15045         locale: Make C++ tests work on Cygwin and mingw.
15046         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15047         cannot provide the function.
15048         Reported by Simon Josefsson.
15049
15050 2010-04-03  Bruno Haible  <bruno@clisp.org>
15051
15052         localename: Port to MacOS X 10.6.
15053         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15054         memory layout of the locales in MacOS X 10.6 as well.
15055         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15056
15057 2010-04-02  Bruno Haible  <bruno@clisp.org>
15058
15059         gnulib-tool: Ensure that long-running tests are executed last.
15060         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15061         running tests after the one for the other tests.
15062
15063 2010-04-02  Bruno Haible  <bruno@clisp.org>
15064
15065         gnulib-tool: Ensure the tests in the main directory are executed first.
15066         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15067         start with the current directory.
15068
15069 2010-04-02  Bruno Haible  <bruno@clisp.org>
15070
15071         Tests for module 'havelib', moved here from GNU gettext.
15072         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15073         modifications.
15074         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15075         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15076         with modifications.
15077         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15078         modifications.
15079         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15080         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15081         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15082         with modifications.
15083         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15084         with modifications.
15085         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15086         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15087         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15088         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15089         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15090         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15091         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15092         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15093         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15094         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15095         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15096         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15097         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15098         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15099         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15100         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15101         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15102         with modifications.
15103         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15104         with modifications.
15105         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15106         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15107         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15108         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15109         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15110         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15111         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15112         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15113         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15114         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15115         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15116         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15117         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15118         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15119         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15120         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15121         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15122         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15123         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15124         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15125         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15126         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15127         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15128         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15129         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15130         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15131         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15132         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15133         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15134         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15135         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15136         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15137         * tests/havelib/rpathx/rpathx.c: New file, from
15138         gettext/autoconf-lib-link.
15139         * tests/havelib/rpathx/Makefile.am: New file, from
15140         gettext/autoconf-lib-link.
15141         * tests/havelib/rpathx/configure.ac: New file, from
15142         gettext/autoconf-lib-link with modifications.
15143         * tests/havelib/rpathy/rpathy.c: New file, from
15144         gettext/autoconf-lib-link.
15145         * tests/havelib/rpathy/Makefile.am: New file, from
15146         gettext/autoconf-lib-link.
15147         * tests/havelib/rpathy/configure.ac: New file, from
15148         gettext/autoconf-lib-link with modifications.
15149         * tests/havelib/rpathz/rpathz.c: New file, from
15150         gettext/autoconf-lib-link.
15151         * tests/havelib/rpathz/Makefile.am: New file, from
15152         gettext/autoconf-lib-link.
15153         * tests/havelib/rpathz/configure.ac: New file, from
15154         gettext/autoconf-lib-link with modifications.
15155         * tests/havelib/rpathlx/usex.c: New file, from
15156         gettext/autoconf-lib-link.
15157         * tests/havelib/rpathlx/Makefile.am: New file, from
15158         gettext/autoconf-lib-link.
15159         * tests/havelib/rpathlx/configure.ac: New file, from
15160         gettext/autoconf-lib-link with modifications.
15161         * tests/havelib/rpathly/usey.c: New file, from
15162         gettext/autoconf-lib-link.
15163         * tests/havelib/rpathly/Makefile.am: New file, from
15164         gettext/autoconf-lib-link.
15165         * tests/havelib/rpathly/configure.ac: New file, from
15166         gettext/autoconf-lib-link with modifications.
15167         * tests/havelib/rpathlz/usez.c: New file, from
15168         gettext/autoconf-lib-link.
15169         * tests/havelib/rpathlz/Makefile.am: New file, from
15170         gettext/autoconf-lib-link.
15171         * tests/havelib/rpathlz/configure.ac: New file, from
15172         gettext/autoconf-lib-link with modifications.
15173         * tests/havelib/rpathlyx/usey.c: New file, from
15174         gettext/autoconf-lib-link.
15175         * tests/havelib/rpathlyx/Makefile.am: New file, from
15176         gettext/autoconf-lib-link.
15177         * tests/havelib/rpathlyx/configure.ac: New file, from
15178         gettext/autoconf-lib-link with modifications.
15179         * tests/havelib/rpathlzyx/usez.c: New file, from
15180         gettext/autoconf-lib-link.
15181         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15182         gettext/autoconf-lib-link.
15183         * tests/havelib/rpathlzyx/configure.ac: New file, from
15184         gettext/autoconf-lib-link with modifications.
15185         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15186         with modifications.
15187
15188 2010-04-02  Bruno Haible  <bruno@clisp.org>
15189
15190         gnulib-tool: Create distributed built sources also for the tests.
15191         * gnulib-tool (func_create_testdir): Also generate distributed built
15192         sources in the tests directory.
15193
15194 2010-04-02  Bruno Haible  <bruno@clisp.org>
15195
15196         gnulib-tool: Obey user's environment variables.
15197         * gnulib-tool (func_create_testdir): When creating built sources,
15198         respect the environment variables for autoconf, automake, etc. given by
15199         the user.
15200
15201 2010-04-02  Bruno Haible  <bruno@clisp.org>
15202
15203         gnulib-tool: Provide the value of --m4-base to modules.
15204         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15205         of gl_m4_base.
15206
15207 2010-04-02  Eric Blake  <eblake@redhat.com>
15208
15209         maint.mk: fix some fallout
15210         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15211         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15212
15213 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15214
15215         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15216         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15217         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15218         (sc_cast_of_x_alloc_return_value): Likewise.
15219         (sc_cast_of_alloca_return_value): Likewise.
15220         (sc_space_tab): Likewise.
15221         (sc_prohibit_atoi_atof): Likewise.
15222         (sc_prohibit_magic_number_exit): Likewise.
15223         (sc_error_exit_success): Likewise.
15224         (sc_file_system): Likewise.
15225         (sc_prohibit_have_config_h): Likewise.
15226         (sc_require_config_h): Likewise.
15227         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15228         (sc_obsolete_symbols): Likewise.
15229         (sc_changelog): Likewise.
15230         (sc_program_name): Likewise.
15231         (sc_the_the): Likewise.
15232         (sc_trailing_blank): Likewise.
15233         (sc_two_space_separator_in_usage): Likewise.
15234         (sc_useless_cpp_parens): Likewise.
15235         (sc_GPL_version): Likewise.
15236         (sc_GFDL_version): Likewise.
15237         (sc_texinfo_acronym): Likewise.
15238         (sc_prohibit_cvs_keyword): Likewise.
15239         (sc_prohibit_stat_st_blocks): Likewise.
15240         (sc_prohibit_S_IS_definition): Likewise.
15241         (sc_redundant_const): Likewise.
15242         (sc_makefile_TAB_only_indentation): Likewise.
15243         (sc_m4_quote_check): Likewise.
15244         (sc_makefile_path_separator_check): Likewise.
15245         (sc_copyright_check): Likewise.
15246         (sc_Wundef_boolean): Likewise.
15247         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15248
15249         maint.mk: match 0 or more whitespace-before-function-call '('
15250         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15251         that have zero or two-and-more spaces between the function name
15252         and the open parenthesis.
15253         (sc_error_message_warn_fatal): Likewise.
15254         (sc_error_message_uppercase): Likewise.
15255         (sc_error_message_period): Likewise.
15256
15257 2010-03-31  Eric Blake  <eblake@redhat.com>
15258
15259         maint.mk: check for [ as well as test
15260         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15261         Based on a libvirt report by Matthias Bolte.
15262
15263         gnumakefile: don't squelch _version output
15264         * top/GNUmakefile (_version): Create one-shot dependency rather
15265         than using $(shell) when version must be regenerated.
15266         (_autoreconf): Run verbosely, by default.
15267
15268         sys_time: avoid compiler warnings
15269         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15270         unconditional, fixing regression from 2010-03-29.
15271         Reported by Simon Josefsson.
15272
15273 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15274
15275         maint.mk: s/_header_without_use/_sc_header_without_use/
15276         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15277         (sc_prohibit_assert_without_use): Use the new name.
15278         (sc_prohibit_close_stream_without_use): Likewise.
15279         (sc_prohibit_getopt_without_use): Likewise.
15280         (sc_prohibit_quotearg_without_use): Likewise.
15281         (sc_prohibit_quote_without_use): Likewise.
15282         (sc_prohibit_long_options_without_use): Likewise.
15283         (sc_prohibit_inttostr_without_use): Likewise.
15284         (sc_prohibit_ignore_value_without_use): Likewise.
15285         (sc_prohibit_error_without_use): Likewise.
15286         (sc_prohibit_xalloc_without_use): Likewise.
15287         (sc_prohibit_hash_without_use): Likewise.
15288         (sc_prohibit_hash_pjw_without_use): Likewise.
15289         (sc_prohibit_safe_read_without_use): Likewise.
15290         (sc_prohibit_argmatch_without_use): Likewise.
15291         (sc_prohibit_canonicalize_without_use): Likewise.
15292         (sc_prohibit_root_dev_ino_without_use): Likewise.
15293         (sc_prohibit_openat_without_use): Likewise.
15294         (sc_prohibit_c_ctype_without_use): Likewise.
15295         (sc_prohibit_signal_without_use): Likewise.
15296         (sc_prohibit_intprops_without_use): Likewise.
15297
15298 2010-03-30  Eric Blake  <eblake@redhat.com>
15299
15300         maint: improve module indicators
15301         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15302         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15303         columns, and avoid extra macro expansion.
15304
15305         fdopendir: work around FreeBSD bug
15306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15307         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15308         * modules/dirent (Makefile.am): Substitute it.
15309         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15310         declaration.
15311         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15312         fix.
15313         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15314
15315 2010-03-29  Bruno Haible  <bruno@clisp.org>
15316
15317         Emit #pragma system_header after the inclusion guard, not before.
15318         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15319         guard that spans the entire file, not before. This enables an
15320         optimization in GCC's preprocessor.
15321         * lib/ctype.in.h: Likewise.
15322         * lib/dirent.in.h: Likewise.
15323         * lib/errno.in.h: Likewise.
15324         * lib/float.in.h: Likewise.
15325         * lib/getopt.in.h: Likewise.
15326         * lib/iconv.in.h: Likewise.
15327         * lib/langinfo.in.h: Likewise.
15328         * lib/locale.in.h: Likewise.
15329         * lib/math.in.h: Likewise.
15330         * lib/netdb.in.h: Likewise.
15331         * lib/netinet_in.in.h: Likewise.
15332         * lib/pty.in.h: Likewise.
15333         * lib/sched.in.h: Likewise.
15334         * lib/se-selinux.in.h: Likewise.
15335         * lib/search.in.h: Likewise.
15336         * lib/spawn.in.h: Likewise.
15337         * lib/stdarg.in.h: Likewise.
15338         * lib/stdint.in.h: Likewise.
15339         * lib/string.in.h: Likewise.
15340         * lib/strings.in.h: Likewise.
15341         * lib/sys_file.in.h: Likewise.
15342         * lib/sys_ioctl.in.h: Likewise.
15343         * lib/sys_time.in.h: Likewise.
15344         * lib/sys_times.in.h: Likewise.
15345         * lib/sys_utsname.in.h: Likewise.
15346         * lib/sys_wait.in.h: Likewise.
15347         * lib/sysexits.in.h: Likewise.
15348         * lib/wctype.in.h: Likewise.
15349
15350 2010-03-28  James Youngman  <jay@gnu.org>
15351
15352         save-cwd: don't leak a file descriptor when the caller execs.
15353         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15354         saved file descriptor.
15355         * modules/save-cwd (Depends-on): Depend on cloexec.
15356
15357 2010-03-29  Bruno Haible  <bruno@clisp.org>
15358
15359         Remove vestiges of fts-lgpl module.
15360         * lib/fts_.h: Assume GNULIB_FTS is 1.
15361         * lib/fts.c: Likewise.
15362         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15363
15364 2010-03-28  Bruno Haible  <bruno@clisp.org>
15365
15366         Fix definition of tests witness macro.
15367         * gnulib-tool (func_import): Fix definition of witness macro.
15368
15369 2010-03-28  Bruno Haible  <bruno@clisp.org>
15370
15371         Fix ioctl's protoype on glibc systems.
15372         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15373         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15374         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15375         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15376         signature. If not, arrange to replace the ioctl function.
15377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15378         REPLACE_IOCTL.
15379         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15380         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15381         Reported by Ludovic Courtès <ludo@gnu.org>.
15382
15383 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15384
15385         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15386         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15387         made it so grep -r --include=GLOB* ... did not work.
15388
15389 2010-03-26  Jim Meyering  <meyering@redhat.com>
15390             Eric Blake  <eblake@redhat.com>
15391
15392         maint.mk: prohibit use of test's -o and -a operators
15393         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15394
15395 2010-03-28  Bruno Haible  <bruno@clisp.org>
15396
15397         Remove unused GNULIB_XYZ macro definitions.
15398         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15399         invocation.
15400
15401 2010-03-28  Bruno Haible  <bruno@clisp.org>
15402
15403         Mark privileged tests modules.
15404         * modules/idpriv-drop-tests (Status): New section.
15405         * modules/idpriv-droptemp-tests (Status): New section.
15406
15407 2010-03-28  Bruno Haible  <bruno@clisp.org>
15408
15409         Split C++ tests into separate tests modules.
15410         * modules/dirent-c++-tests: New file, extracted from
15411         modules/dirent-tests.
15412         * modules/dirent-tests: Depend on it.
15413         * modules/fcntl-h-c++-tests: New file, extracted from
15414         modules/fcntl-h-tests.
15415         * modules/fcntl-h-tests: Depend on it.
15416         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15417         * modules/glob-tests: Depend on it.
15418         * modules/iconv-h-c++-tests: New file, extracted from
15419         modules/iconv-h-tests.
15420         * modules/iconv-h-tests: Depend on it.
15421         * modules/langinfo-c++-tests: New file, extracted from
15422         modules/langinfo-tests.
15423         * modules/langinfo-tests: Depend on it.
15424         * modules/locale-c++-tests: New file, extracted from
15425         modules/locale-tests.
15426         * modules/locale-tests: Depend on it.
15427         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15428         * modules/math-tests: Depend on it.
15429         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15430         * modules/pty-tests: Depend on it.
15431         * modules/search-c++-tests: New file, extracted from
15432         modules/search-tests.
15433         * modules/search-tests: Depend on it.
15434         * modules/signal-c++-tests: New file, extracted from
15435         modules/signal-tests.
15436         * modules/signal-tests: Depend on it.
15437         * modules/spawn-c++-tests: New file, extracted from
15438         modules/spawn-tests.
15439         * modules/spawn-tests: Depend on it.
15440         * modules/stdio-c++-tests: New file, extracted from
15441         modules/stdio-tests.
15442         * modules/stdio-tests: Depend on it.
15443         * modules/stdlib-c++-tests: New file, extracted from
15444         modules/stdlib-tests.
15445         * modules/stdlib-tests: Depend on it.
15446         * modules/string-c++-tests: New file, extracted from
15447         modules/string-tests.
15448         * modules/string-tests: Depend on it.
15449         * modules/sys_ioctl-c++-tests: New file, extracted from
15450         modules/sys_ioctl-tests.
15451         * modules/sys_ioctl-tests: Depend on it.
15452         * modules/sys_select-c++-tests: New file, extracted from
15453         modules/sys_select-tests.
15454         * modules/sys_select-tests: Depend on it.
15455         * modules/sys_socket-c++-tests: New file, extracted from
15456         modules/sys_socket-tests.
15457         * modules/sys_socket-tests: Depend on it.
15458         * modules/sys_stat-c++-tests: New file, extracted from
15459         modules/sys_stat-tests.
15460         * modules/sys_stat-tests: Depend on it.
15461         * modules/sys_time-c++-tests: New file, extracted from
15462         modules/sys_time-tests.
15463         * modules/sys_time-tests: Depend on it.
15464         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15465         * modules/time-tests: Depend on it.
15466         * modules/unistd-c++-tests: New file, extracted from
15467         modules/unistd-tests.
15468         * modules/unistd-tests: Depend on it.
15469         * modules/wchar-c++-tests: New file, extracted from
15470         modules/wchar-tests.
15471         * modules/wchar-tests: Depend on it.
15472         * modules/wctype-c++-tests: New file, extracted from
15473         modules/wctype-tests.
15474         * modules/wctype-tests: Depend on it.
15475         Reported by Simon Josefsson.
15476
15477 2010-03-28  Bruno Haible  <bruno@clisp.org>
15478
15479         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15480         * gnulib-tool (func_exists_module): New function, extracted from
15481         func_verify_module.
15482         (func_verify_module): Use it.
15483         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15484         'foo' only if 'foo' exists.
15485         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15486         module.
15487
15488 2010-03-28  Bruno Haible  <bruno@clisp.org>
15489
15490         gnulib-tool: Add support for special categories of tests.
15491         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15492         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15493         (func_usage): Document them.
15494         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15495         inc_unportable_tests, inc_all_tests): New variables.
15496         (func_acceptable): Consider these variables.
15497         (func_modules_transitive_closure): Make it work when the 'Status' field
15498         consists of multiple words.
15499         (func_import): Store and restore the values of inc_cxx_tests,
15500         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15501         inc_all_tests in gnulib-comp.m4.
15502         (func_create_testdir): Set inc_all_tests to true.
15503         * doc/gnulib.texi (Extra tests modules): New section.
15504         Suggested by Jim Meyering.
15505
15506 2010-03-28  Bruno Haible  <bruno@clisp.org>
15507
15508         ansi-c++-opt: Allow turning off the C++ build by default.
15509         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15510         gl_CXX_CHOICE_DEFAULT_NO is defined.
15511         Requested by Eric Blake.
15512
15513 2010-03-28  Bruno Haible  <bruno@clisp.org>
15514
15515         unistd: Avoid #define replacements in C++ mode.
15516         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15517         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15518         setsockopt, shutdown, select): In C++, attach a warning to the function
15519         if possible, rather than #defining the symbol to a dysfunctional alias.
15520         Reported by John W. Eaton <jwe@gnu.org>.
15521
15522 2010-03-28  Bruno Haible  <bruno@clisp.org>
15523
15524         Fix link errors on mingw.
15525         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15526         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15527         $(LIBSOCKET).
15528         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15529         $(LIBSOCKET).
15530
15531 2010-03-28  Bruno Haible  <bruno@clisp.org>
15532             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15533
15534         lib-ignore: Determine different options for different compilers.
15535         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15536         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15537         Add comments.
15538         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15539         * NEWS: Mention the change.
15540
15541 2010-03-27  Bruno Haible  <bruno@clisp.org>
15542
15543         Remove unused GNULIB_XYZ macro definitions.
15544         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15545         * modules/fseek (configure.ac): Likewise.
15546         * modules/ioctl (configure.ac): Likewise.
15547         * modules/open (configure.ac): Likewise.
15548         * modules/stdlib-safer (configure.ac): Likewise.
15549
15550 2010-03-27  Bruno Haible  <bruno@clisp.org>
15551
15552         Add a remark about certain modules.
15553         * modules/malloc (Comment): New section.
15554         * modules/realloc (Comment): Likewise.
15555         * modules/sigpipe (Comment): Likewise.
15556
15557 2010-03-27  Bruno Haible  <bruno@clisp.org>
15558
15559         Resolve conflict between the two kinds of module indicators.
15560         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15561         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15562         * modules/canonicalize (configure.ac): Invoke
15563         gl_MODULE_INDICATOR_FOR_TESTS.
15564         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15565         GNULIB_XYZ.
15566         * tests/test-dirent-c++.cc: Likewise.
15567         * tests/test-dirent-safer.c: Likewise.
15568         * tests/test-dup2.c: Likewise.
15569         * tests/test-fchdir.c: Likewise.
15570         * tests/test-fcntl-h-c++.cc: Likewise.
15571         * tests/test-getopt.c: Likewise.
15572         * tests/test-getopt.h: Likewise.
15573         * tests/test-langinfo-c++.cc: Likewise.
15574         * tests/test-locale-c++.cc: Likewise.
15575         * tests/test-math-c++.cc: Likewise.
15576         * tests/test-pty-c++.cc: Likewise.
15577         * tests/test-search-c++.cc: Likewise.
15578         * tests/test-signal-c++.cc: Likewise.
15579         * tests/test-spawn-c++.cc: Likewise.
15580         * tests/test-stdio-c++.cc: Likewise.
15581         * tests/test-stdlib-c++.cc: Likewise.
15582         * tests/test-string-c++.cc: Likewise.
15583         * tests/test-sys_ioctl-c++.cc: Likewise.
15584         * tests/test-sys_select-c++.cc: Likewise.
15585         * tests/test-sys_socket-c++.cc: Likewise.
15586         * tests/test-sys_stat-c++.cc: Likewise.
15587         * tests/test-sys_time-c++.cc: Likewise.
15588         * tests/test-time-c++.cc: Likewise.
15589         * tests/test-unistd-c++.cc: Likewise.
15590         * tests/test-wchar-c++.cc: Likewise.
15591         * tests/uninorm/test-u8-nfc.c: Likewise.
15592         * tests/uninorm/test-u8-nfd.c: Likewise.
15593         * tests/uninorm/test-u8-nfkc.c: Likewise.
15594         * tests/uninorm/test-u8-nfkd.c: Likewise.
15595         * tests/uninorm/test-u16-nfc.c: Likewise.
15596         * tests/uninorm/test-u16-nfd.c: Likewise.
15597         * tests/uninorm/test-u16-nfkc.c: Likewise.
15598         * tests/uninorm/test-u16-nfkd.c: Likewise.
15599         * tests/uninorm/test-u32-nfc.c: Likewise.
15600         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15601         * tests/uninorm/test-u32-nfd.c: Likewise.
15602         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15603         * tests/uninorm/test-u32-nfkc.c: Likewise.
15604         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15605         * tests/uninorm/test-u32-nfkd.c: Likewise.
15606         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15607         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15608
15609 2010-03-27  Bruno Haible  <bruno@clisp.org>
15610
15611         Distinguish two kinds of module indicators.
15612         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15613         gl_MODULE_INDICATOR.
15614         (gl_MODULE_INDICATOR): New macro.
15615         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15616         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15617         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15618         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15619         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15620         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15621         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15622         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15623         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15624         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15625         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15626         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15628         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15629         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15630         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15631         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15632         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15633         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15634         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15635         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15636         * modules/cloexec (configure.ac): Likewise.
15637         * modules/getopt-gnu (configure.ac): Likewise.
15638         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15639         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15640         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15641         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15642
15643 2010-03-27  Bruno Haible  <bruno@clisp.org>
15644
15645         New module description field 'Comment'.
15646         * gnulib-tool: New option --extract-comment.
15647         (func_usage): Document it.
15648         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15649         (func_get_comment): New function.
15650         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15651
15652 2010-03-27  Bruno Haible  <bruno@clisp.org>
15653
15654         Addendum to 2010-02-07 commit.
15655         * gnulib-tool (func_usage): Document --extract-applicability option.
15656
15657 2010-03-27  Bruno Haible  <bruno@clisp.org>
15658
15659         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15660         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15661         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15662         rather than link errors.
15663
15664 2010-03-27  Bruno Haible  <bruno@clisp.org>
15665
15666         Avoid side effects from tests-related modules on the compilation of lib.
15667         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15668         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15669         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15670         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15671         macro.
15672         (func_import): Define a witness macro. Assign it a value that depends
15673         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15674         tests-related modules.
15675         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15676         Reported by Jim Meyering.
15677
15678 2010-03-27  Bruno Haible  <bruno@clisp.org>
15679
15680         Factorize common .m4 code.
15681         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15682         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15683         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15684         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15685         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15686         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15687         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15688         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15689         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15690         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15691         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15692         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15693         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15694         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15695         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15696         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15697         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15698         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15700         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15701         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15703         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15704         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15705         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15706         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15707         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15709         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15710         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15711         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15712         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15713
15714 2010-03-27  Bruno Haible  <bruno@clisp.org>
15715
15716         Fix a compilation error on Cygwin with g++ >= 4.3.
15717         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15718         if it is undefined or if we alias it to chmod.
15719         (lstat): Don't warn about the use of this function if it is undefined
15720         or if we alias it to stat.
15721         Reported by Simon Josefsson.
15722
15723 2010-03-27  Bruno Haible  <bruno@clisp.org>
15724
15725         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15726         * modules/getlogin (configure.ac): Update.
15727
15728         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15729         * modules/getlogin_r (configure.ac): Update.
15730
15731         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15733         * modules/inet_ntop (configure.ac): Update.
15734
15735         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15736         * modules/inet_pton (configure.ac): Update.
15737
15738         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15739         * modules/mbslen (configure.ac): Update.
15740
15741         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15742         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15743         * modules/forkpty (configure.ac): Update.
15744         * modules/openpty (configure.ac): Update.
15745
15746 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15747
15748         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15749         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15750
15751 2010-03-25  Eric Blake  <eblake@redhat.com>
15752
15753         maint: use pragma consistently across replacement headers
15754         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15755         * lib/dirent.in.h (system_header): Likewise.
15756         * lib/errno.in.h (system_header): Likewise.
15757         * lib/float.in.h (system_header): Likewise.
15758         * lib/getopt.in.h (system_header): Likewise.
15759         * lib/iconv.in.h (system_header): Likewise.
15760         * lib/inttypes.in.h (system_header): Likewise.
15761         * lib/langinfo.in.h (system_header): Likewise.
15762         * lib/locale.in.h (system_header): Likewise.
15763         * lib/math.in.h (system_header): Likewise.
15764         * lib/netdb.in.h (system_header): Likewise.
15765         * lib/netinet_in.in.h (system_header): Likewise.
15766         * lib/pty.in.h (system_header): Likewise.
15767         * lib/sched.in.h (system_header): Likewise.
15768         * lib/se-selinux.in.h (system_header): Likewise.
15769         * lib/search.in.h (system_header): Likewise.
15770         * lib/spawn.in.h (system_header): Likewise.
15771         * lib/stdarg.in.h (system_header): Likewise.
15772         * lib/stdint.in.h (system_header): Likewise.
15773         * lib/string.in.h (system_header): Likewise.
15774         * lib/strings.in.h (system_header): Likewise.
15775         * lib/sys_file.in.h (system_header): Likewise.
15776         * lib/sys_ioctl.in.h (system_header): Likewise.
15777         * lib/sys_socket.in.h (system_header): Likewise.
15778         * lib/sys_times.in.h (system_header): Likewise.
15779         * lib/sys_utsname.in.h (system_header): Likewise.
15780         * lib/sys_wait.in.h (system_header): Likewise.
15781         * lib/sysexits.in.h (system_header): Likewise.
15782         * lib/unistd.in.h (system_header): Likewise.
15783         * lib/wctype.in.h (system_header): Likewise.
15784
15785         arpa/inet: fix mingw compilation warning
15786         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15787         Reported by Matthew Bolte.
15788
15789 2010-03-25  Bruno Haible  <bruno@clisp.org>
15790
15791         Avoid collision between gnulib wrapper and libintl wrapper.
15792         * lib/printf.c (printf): Don't define if a printf wrapper is already
15793         defined in intl/printf.c.
15794         Reported by Michel Boaventura <michel@michelboaventura.com>.
15795
15796 2010-03-25  Bruno Haible  <bruno@clisp.org>
15797
15798         Use ANSI C.
15799         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15800
15801 2010-03-25  Bruno Haible  <bruno@clisp.org>
15802
15803         Minor formatting changes.
15804         * lib/acosl.c: Insert space before function argument list.
15805         * lib/argz.c: Likewise.
15806         * lib/asinl.c: Likewise.
15807         * lib/expl.c: Likewise.
15808         * lib/gen-uni-tables.c: Likewise.
15809         * lib/gettext.h: Likewise.
15810         * lib/glthread/lock.h: Likewise.
15811         * lib/tanl.c: Likewise.
15812         * lib/uniname/uniname.c: Likewise.
15813         * tests/test-idpriv-drop.c: Likewise.
15814         * tests/test-idpriv-droptemp.c: Likewise.
15815         * tests/test-lock.c: Likewise.
15816         * tests/test-tls.c: Likewise.
15817         * lib/argp-help.c: Insert space before function-like macro argument
15818         list.
15819         * lib/memcmp.c: Likewise.
15820         * tests/test-base64.c: Likewise.
15821         * lib/localename.c: Insert space before sizeof's argument list.
15822         * lib/safe-alloc.h: Likewise.
15823         * lib/file-set.h: Insert space before macro argument list.
15824         * tests/test-argp.c: Likewise.
15825         * lib/argp-namefrob.h: Insert space before function parameter list.
15826         * lib/getaddrinfo.c: Likewise.
15827         * lib/netdb.in.h: Likewise.
15828         * lib/parse-duration.h: Likewise.
15829         * lib/parse-duration.c: Likewise.
15830         * lib/poll.c: Likewise.
15831         * lib/select.c: Likewise.
15832         * lib/trim.h: Likewise.
15833         * tests/test-usleep.c: Likewise.
15834         * lib/ldexpl.c: Insert space before function parameter list and before
15835         function argument list.
15836         * lib/logl.c: Likewise.
15837         * lib/sqrtl.c: Likewise.
15838         * lib/trim.c: Likewise.
15839         * lib/cosl.c: Use GNU style indentation. Insert space before function
15840         argument list.
15841         * lib/sinl.c: Likewise.
15842         * lib/tsearch.c: Insert space after 'for'.
15843         Reported by Jim Meyering.
15844
15845 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15846
15847         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15848         config header before grepping, as it's not present before
15849         autoreconf/configure are run.  Reported by Simon Josefsson.
15850
15851 2010-03-23  Bruno Haible  <bruno@clisp.org>
15852
15853         pt_chown: Make it work with automake < 1.11.
15854         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15855         Reported by Simon Josefsson.
15856
15857 2010-03-23  Bruno Haible  <bruno@clisp.org>
15858
15859         pt_chown: Don't depend on GPLed modules.
15860         * lib/pt_chown.c: Don't include idpriv.h.
15861         (main): Don't drop privileges.
15862         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15863         Reported by Simon Josefsson.
15864
15865 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15866
15867         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15868         suggestions from karl@freefriends.org (Karl Berry).
15869
15870 2010-03-22  Eric Blake  <eblake@redhat.com>
15871
15872         gethostname: further tweaks
15873         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15874         are overriding gethostname.
15875         Suggested by Bruno Haible.
15876
15877 2010-03-21  Bruno Haible  <bruno@clisp.org>
15878
15879         Fix comments.
15880         * lib/forkpty.c (rpl_forkpty): Fix comment.
15881         * lib/openpty.c (rpl_openpty): Likewise.
15882         Reported by Eric Blake.
15883
15884 2010-03-22  Eric Blake  <eblake@redhat.com>
15885
15886         gethostname: fix build on mingw
15887         * lib/unistd.in.h (includes): Work around fact that mingw
15888         <winsock2.h> re-includes <unistd.h>, by avoiding any
15889         redeclarations if we are being included by <winsock2.h>.
15890         Reported by Matthias Bolte.
15891
15892 2010-03-21  Bruno Haible  <bruno@clisp.org>
15893
15894         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15895         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15896         modifications.
15897         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15898         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15899         provide the replacement.
15900         * modules/forkpty (Depends-on): Add openpty, login_tty.
15901         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15902         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15903         * doc/glibc-functions/forkpty.texi: More supported platforms.
15904         * config/srclist.txt: Add forkpty.c (commented).
15905
15906 2010-03-21  Bruno Haible  <bruno@clisp.org>
15907
15908         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15909         (Makefile.am): Verify that PTY_LIB is defined.
15910
15911         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15912
15913 2010-03-21  Bruno Haible  <bruno@clisp.org>
15914
15915         Tests for module 'login_tty'.
15916         * modules/login_tty-tests: New file.
15917         * tests/test-login_tty.c: New file.
15918
15919         New module 'login_tty'.
15920         * lib/login_tty.c: New file.
15921         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15922         * modules/login_tty: New file.
15923         * doc/glibc-functions/login_tty.texi: Mention the new module.
15924
15925 2010-03-21  Bruno Haible  <bruno@clisp.org>
15926
15927         login_tty: Documentation.
15928         * doc/glibc-functions/login_tty.texi: New file.
15929         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15930
15931 2010-03-21  Bruno Haible  <bruno@clisp.org>
15932
15933         pty: Consistent macro naming.
15934         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15935         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15936         * modules/pty (configure.ac): Update.
15937
15938 2010-03-21  Bruno Haible  <bruno@clisp.org>
15939
15940         Tests for openpty: Make stricter.
15941         * tests/test-openpty.c (main): Add test of canonical processing and
15942         erase.
15943         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15944
15945         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15946         * lib/openpty.c (openpty): New replacement function.
15947         * lib/pty.in.h: Include <termios.h>.
15948         (openpty): Update declaration. Add comments.
15949         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15950         is not declared, arrange to provide the replacement. Check for _getpty
15951         and posix_openpt.
15952         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15953         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15954         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15955         * modules/pty-tests (test_pty_c___LDADD): New variable.
15956         * doc/glibc-functions/openpty.texi: More supported platforms.
15957
15958 2010-03-21  Bruno Haible  <bruno@clisp.org>
15959
15960         setenv: Tweaks.
15961         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15962         the test program.
15963         * doc/posix-functions/setenv.texi: Update platforms list.
15964
15965 2010-03-21  Bruno Haible  <bruno@clisp.org>
15966
15967         New module 'unlockpt'.
15968         * lib/unlockpt.c: New file, from glibc with modifications.
15969         * m4/unlockpt.m4: New file.
15970         * modules/unlockpt: New file.
15971         * lib/stdlib.in.h (unlockpt): New declaration.
15972         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15973         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15974         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15975         HAVE_UNLOCKPT.
15976         * doc/posix-functions/unlockpt.texi: Mention the new module.
15977         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15978         * config/srclist.txt: Add unlockpt.c (commented).
15979
15980 2010-03-21  Jim Meyering  <meyering@redhat.com>
15981
15982         maint.mk: prohibit inclusion of "intprops.h" without use
15983         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15984
15985 2010-03-21  Bruno Haible  <bruno@clisp.org>
15986
15987         New module 'grantpt'.
15988         * lib/grantpt.c: New file, from glibc with modifications.
15989         * m4/grantpt.m4: New file.
15990         * modules/grantpt: New file.
15991         * lib/stdlib.in.h (grantpt): New declaration.
15992         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15993         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15994         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15995         HAVE_GRANTPT.
15996         * doc/posix-functions/grantpt.texi: Mention the new module.
15997         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15998         * config/srclist.txt: Add grantpt.c (commented).
15999
16000 2010-03-21  Bruno Haible  <bruno@clisp.org>
16001
16002         New module 'pt_chown'.
16003         * lib/pt_chown.c: New file, from glibc with modifications.
16004         * lib/pty-private.h: New file, from glibc with modifications.
16005         * modules/pt_chown: New file.
16006         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16007
16008 2010-03-21  Bruno Haible  <bruno@clisp.org>
16009
16010         Tests for module 'ptsname'.
16011         * modules/ptsname-tests: New file.
16012         * tests/test-ptsname.c: New file.
16013
16014         New module 'ptsname'.
16015         * lib/ptsname.c: New file, from glibc with modifications.
16016         * m4/ptsname.m4: New file.
16017         * modules/ptsname: New file.
16018         * lib/stdlib.in.h (ptsname): New declaration.
16019         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16020         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16021         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16022         HAVE_PTSNAME.
16023         * doc/posix-functions/ptsname.texi: Mention the new module.
16024         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16025         * config/srclist.txt: Add ptsname.c (commented).
16026
16027 2010-03-21  Bruno Haible  <bruno@clisp.org>
16028
16029         Tests for module 'ttyname_r'.
16030         * modules/ttyname_r-tests: New file.
16031         * tests/test-ttyname_r.c: New file.
16032
16033         New module 'ttyname_r'.
16034         * lib/ttyname_r.c: New file.
16035         * m4/ttyname_r.m4: New file.
16036         * modules/ttyname_r: New file.
16037         * lib/unistd.in.h (ttyname_r): New declaration.
16038         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16039         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16040         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16041         HAVE_TTYNAME_R.
16042         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16043         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16044
16045 2010-03-20  Bruno Haible  <bruno@clisp.org>
16046
16047         signal: Undefine macro definitions in C++ mode.
16048         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16049         sigfillset): Undefine macro definitions from the system header in C++
16050         mode.
16051         Reported by John W. Eaton <jwe@gnu.org>.
16052
16053 2010-03-20  Bruno Haible  <bruno@clisp.org>
16054
16055         Ensure no #include statements inside extern "C" { ... }.
16056         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16057         contain #include statements.
16058         * lib/time.in.h: Likewise.
16059
16060 2010-03-20  Bruno Haible  <bruno@clisp.org>
16061
16062         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16063         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16064         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16065         Reported by John W. Eaton <jwe@gnu.org>.
16066
16067 2010-03-20  Bruno Haible  <bruno@clisp.org>
16068
16069         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16070         Reported by Jim Meyering.
16071
16072 2010-03-20  Bruno Haible  <bruno@clisp.org>
16073
16074         pipe: Set errno upon failure.
16075         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16076         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16077         errno value in error message.
16078
16079 2010-03-20  Bruno Haible  <bruno@clisp.org>
16080             Jim Meyering  <meyering@redhat.com>
16081
16082         lchown: Avoid "unused variable" warning.
16083         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16084
16085 2010-03-20  Bruno Haible  <bruno@clisp.org>
16086
16087         Work around unlink() bug on MacOS X 10.5.6.
16088         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16089         attempting to unlink a parent directory.
16090         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16091         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16092         activate for the replacement function.
16093         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16094
16095 2010-03-20  Bruno Haible  <bruno@clisp.org>
16096
16097         Fix link errors on Solaris 8.
16098         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16099         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16100
16101 2010-03-19  Jim Meyering  <meyering@redhat.com>
16102
16103         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16104         The _LIBC implementation of build_range_exp correctly honors the
16105         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16106         However, the non-_LIBC implementation would ignore that syntax-bit
16107         flag and return REG_ERANGE unconditionally.
16108         This change makes it honor that flag.
16109         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16110         Make two pointer parameters "const".
16111         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16112         (parse_bracket_exp): Update caller.
16113
16114         regex.m4: correct the reversed range endpoint ([b-a]) test
16115         * m4/regex.m4: When requiring that [b-a] evoke failure,
16116         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16117         test pass once again for x86-based systems.
16118
16119 2010-03-19  Bruno Haible  <bruno@clisp.org>
16120
16121         scandir: Fix link error on Solaris 8.
16122         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16123         macros.
16124
16125 2010-03-19  Bruno Haible  <bruno@clisp.org>
16126
16127         getusershell: Fix documentation.
16128         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16129         module.
16130         * doc/glibc-functions/setusershell.texi: Likewise.
16131
16132         getusershell: Provide declaration, missing on Solaris 9.
16133         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16134         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16135         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16136         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16138         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16139         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16140         HAVE_GETUSERSHELL.
16141         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16142
16143 2010-03-19  Bruno Haible  <bruno@clisp.org>
16144
16145         wctype: Provide iswblank function.
16146         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16147         exists and is fine.
16148         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16149         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16150         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16151         * doc/posix-functions/iswblank.texi: Update.
16152
16153 2010-03-19  Bruno Haible  <bruno@clisp.org>
16154
16155         Tests of module 'pty' in C++ mode.
16156         * modules/pty-tests: New file.
16157         * tests/test-pty-c++.cc: New file.
16158         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16159
16160 2010-03-19  Eric Blake  <eblake@redhat.com>
16161
16162         logb: fix documentation
16163         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16164         1.5 declaration bug.
16165
16166         forkpty, openpty: prefer glibc's const-safe prototype
16167         * lib/forkpty.c (rpl_forkpty): New file.
16168         * lib/openpty.c (rpl_openpty): Likewise.
16169         * modules/forkpty (Files): Distribute it.
16170         * modules/openpty (Files): Likewise.
16171         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16172         check...
16173         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16174         replacement for for non-const BSD signature.
16175         * modules/pty (Makefile.am): Substitute witnesses.
16176         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16177         * tests/test-forkpty.c: Update signature check.
16178         * tests/test-openpty.c: Likewise.
16179         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16180         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16181
16182         forkpty, openpty: split functions into new modules
16183         * modules/pty (Makefile.am): Substitute new witnesses.
16184         (Libraries): Move library detection...
16185         * modules/forkpty: ...into new module.
16186         * modules/openpty: Another new module.
16187         * modules/pty-tests: Rename and split...
16188         * modules/forkpty-tests: ...to this...
16189         * modules/openpty-tests: ...and this.
16190         * tests/test-pty.c: Rename and split...
16191         * tests/test-forkpty.c: ...to this...
16192         * tests/test-openpty.c: ...and this.
16193         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16194         (gl_PTY): Split library searching...
16195         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16196         (gl_FORKPTY, gl_OPENPTY): New macros.
16197         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16198         * NEWS: Mention the split.
16199         * MODULES.html.sh (Misc): Document the modules.
16200         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16201         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16202
16203         pty: improve replacement header
16204         * lib/pty.in.h: New file.
16205         * modules/pty (Files): Ship it.
16206         (Makefile.am): Always build replacement.
16207         * m4/pty.m4: Rename...
16208         * m4/pty_h.m4: ...to this.
16209         (gl_PTY): Modernize setting of witness macros; update check of
16210         forkpty to take proper advantage of cache.
16211         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16212
16213         getopt: avoid compiler warning
16214         * lib/getopt.c (attribute_hidden): Remove unused macro.
16215
16216 2010-03-18  Bruno Haible  <bruno@clisp.org>
16217
16218         Fix link errors on Solaris 8.
16219         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16220         * modules/search-tests (test_search_c___LDADD): Likewise.
16221         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16222         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16223         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16224         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16225         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16226         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16227         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16228
16229 2010-03-18  Bruno Haible  <bruno@clisp.org>
16230
16231         Fix bug introduced on 2010-03-14.
16232         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16233         (gl_SPAWN_H): Require it.
16234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16235         Reported by Simon Josefsson.
16236
16237 2010-03-18  Bruno Haible  <bruno@clisp.org>
16238
16239         Fix typo introduced on 2009-12-31.
16240         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16241         posix_spawn_file_actions_adddup2.
16242
16243 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16244         and Eric Blake  <eblake@redhat.com>
16245
16246         test-vc-list-files-git: make more robust
16247         * tests/test-vc-list-files-git.sh: Unset problematic environment
16248         variables.  Chain commands together.
16249
16250 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16251
16252         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16253         `AC_CHECK_DECL' invocation.
16254
16255 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16256
16257         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16258         appears before executable statements. Suggested by Petr Sumbera
16259         <Petr.Sumbera@Sun.COM>.
16260
16261 2010-03-14  Bruno Haible  <bruno@clisp.org>
16262
16263         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16264         portability problems. Instead use a simpler test.
16265         (main): Check that invalid arguments are rejected only on Linux.
16266
16267 2010-03-14  Bruno Haible  <bruno@clisp.org>
16268
16269         Fix bug introduced on 2009-12-31.
16270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16271         gl_PREREQ_SYS_H_WINSOCK2 always.
16272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16273         SYS_SOCKET_H variable.
16274         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16275         Update comments.
16276         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16277         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16278         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16279         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16280         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16281
16282 2010-03-14  Bruno Haible  <bruno@clisp.org>
16283
16284         Fix values returned by sinl, cosl.
16285         * lib/trigl.h: Add specification comments.
16286         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16287         that combines the values from the precomputed table with the values of
16288         the Chebyshev polynomials.
16289
16290 2010-03-14  Bruno Haible  <bruno@clisp.org>
16291
16292         Fix compilation error when modules 'posix_spawn[p]' are not used.
16293         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16294         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16295
16296 2010-03-14  Bruno Haible  <bruno@clisp.org>
16297
16298         Fix compilation error on mingw when module 'time_r' is not used.
16299         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16300         is 1.
16301         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16302         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16303         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16304         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16305
16306 2010-03-14  Bruno Haible  <bruno@clisp.org>
16307
16308         Fix compilation error with Sun C.
16309         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16310         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16311         instead of GCC specific ULONG_LONG_MAX.
16312         * lib/xstrtoll.c: Likewise.
16313         * lib/xstrtoull.c: Likewise.
16314
16315 2010-03-13  Bruno Haible  <bruno@clisp.org>
16316
16317         Allow the user to disable C++ code and tests.
16318         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16319         (gl_PROG_ANSI_CXX): Require it.
16320
16321 2010-03-13  Bruno Haible  <bruno@clisp.org>
16322
16323         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16324         cases.
16325
16326 2010-03-13  Bruno Haible  <bruno@clisp.org>
16327
16328         Test that gnulib does not break the standard C++ headers.
16329         * tests/test-locale-c++2.cc: New file.
16330         * modules/locale-tests (Files): Add it.
16331         (Makefile.am): Compile it for test-locale-c++.
16332         * tests/test-math-c++2.cc: New file.
16333         * modules/math-tests (Files): Add it.
16334         (Makefile.am): Compile it for test-math-c++.
16335         * tests/test-signal-c++2.cc: New file.
16336         * modules/signal-tests (Files): Add it.
16337         (Makefile.am): Compile it for test-signal-c++.
16338         * tests/test-stdio-c++2.cc: New file.
16339         * modules/stdio-tests (Files): Add it.
16340         (Makefile.am): Compile it for test-stdio-c++.
16341         * tests/test-stdlib-c++2.cc: New file.
16342         * modules/stdlib-tests (Files): Add it.
16343         (Makefile.am): Compile it for test-stdlib-c++.
16344         * tests/test-string-c++2.cc: New file.
16345         * modules/string-tests (Files): Add it.
16346         (Makefile.am): Compile it for test-string-c++.
16347         * tests/test-time-c++2.cc: New file.
16348         * modules/time-tests (Files): Add it.
16349         (Makefile.am): Compile it for test-time-c++.
16350         Reported by John W. Eaton <jwe@gnu.org>.
16351
16352 2010-03-13  Bruno Haible  <bruno@clisp.org>
16353
16354         * gnulib-tool (func_usage): Clarify which options are available for
16355         --create-testdir and --create-megatestdir.
16356
16357 2010-03-13  Bruno Haible  <bruno@clisp.org>
16358
16359         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16360         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16361         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16362         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16363         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16364         when appropriate.
16365         Reported by Jim Meyering.
16366
16367 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16368
16369         * gnulib-tool (func_import): Explain origin of code.
16370
16371 2010-03-12  Bruno Haible  <bruno@clisp.org>
16372
16373         Fix problem with automake's definition of CXXLINK.
16374         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16375         Reported by Simon Josefsson and Ludovic Courtès.
16376
16377 2010-03-12  Bruno Haible  <bruno@clisp.org>
16378
16379         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16380         stable releases.
16381
16382 2010-03-11  Bruno Haible  <bruno@clisp.org>
16383
16384         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16385         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16386         whether the system provides one variant or multiple variants of the
16387         function.
16388         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16389         C++ compilers.
16390         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16391         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16392         Reported by Jim Meyering.
16393
16394 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16395
16396         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16397
16398 2010-03-08  Bruno Haible  <bruno@clisp.org>
16399
16400         gnulib-tool: Add support for --libtool in --create-testdir.
16401         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16402         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16403
16404 2010-03-08  Eric Blake  <eblake@redhat.com>
16405
16406         gnulib-tool.texi: mention possibility of git submodule
16407         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16408         submodules.
16409         * doc/.gitignore: Ignore another generated file.
16410
16411 2010-03-08  Karl Berry  <karl@gnu.org>
16412
16413         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16414         of committing gnulib files while skipping others.
16415
16416 2010-03-07  Bruno Haible  <bruno@clisp.org>
16417
16418         Tests of module 'wctype' in C++ mode.
16419         * tests/test-wctype-c++.cc: New file.
16420         * modules/wctype-tests (Files): Add it and tests/signature.h.
16421         (Depends-on): Add ansi-c++-opt.
16422         (Makefile.am): Arrange to compile and run test-wctype-c++.
16423
16424         Tests of module 'wchar' in C++ mode.
16425         * tests/test-wchar-c++.cc: New file.
16426         * modules/wchar-tests (Files): Add it and tests/signature.h.
16427         (Depends-on): Add ansi-c++-opt.
16428         (Makefile.am): Arrange to compile and run test-wchar-c++.
16429         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16430         gl_MODULE_INDICATOR.
16431
16432         Tests of module 'unistd' in C++ mode.
16433         * tests/test-unistd-c++.cc: New file.
16434         * modules/unistd-tests (Files): Add it and tests/signature.h.
16435         (Depends-on): Add ansi-c++-opt.
16436         (Makefile.am): Arrange to compile and run test-unistd-c++.
16437         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16438         gl_MODULE_INDICATOR.
16439
16440         Tests of module 'time' in C++ mode.
16441         * tests/test-time-c++.cc: New file.
16442         * modules/time-tests (Files): Add it and tests/signature.h.
16443         (Depends-on): Add ansi-c++-opt.
16444         (Makefile.am): Arrange to compile and run test-time-c++.
16445         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16446
16447         Tests of module 'sys_time' in C++ mode.
16448         * tests/test-sys_time-c++.cc: New file.
16449         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16450         (Depends-on): Add ansi-c++-opt.
16451         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16452         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16453         gl_MODULE_INDICATOR.
16454
16455         Tests of module 'sys_stat' in C++ mode.
16456         * tests/test-sys_stat-c++.cc: New file.
16457         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16458         (Depends-on): Add ansi-c++-opt.
16459         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16460         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16461         gl_MODULE_INDICATOR.
16462
16463         Tests of module 'sys_socket' in C++ mode.
16464         * tests/test-sys_socket-c++.cc: New file.
16465         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16466         (Depends-on): Add ansi-c++-opt.
16467         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16468         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16469         gl_MODULE_INDICATOR.
16470
16471         Tests of module 'sys_select' in C++ mode.
16472         * tests/test-sys_select-c++.cc: New file.
16473         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16474         (Depends-on): Add ansi-c++-opt.
16475         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16476         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16477         gl_MODULE_INDICATOR.
16478
16479         Tests of module 'sys_ioctl' in C++ mode.
16480         * tests/test-sys_ioctl-c++.cc: New file.
16481         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16482         (Depends-on): Add ansi-c++-opt.
16483         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16484         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16485         gl_MODULE_INDICATOR.
16486
16487         Tests of module 'string' in C++ mode.
16488         * tests/test-string-c++.cc: New file.
16489         * modules/string-tests (Files): Add it and tests/signature.h.
16490         (Depends-on): Add ansi-c++-opt.
16491         (Makefile.am): Arrange to compile and run test-string-c++.
16492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16493         gl_MODULE_INDICATOR.
16494
16495         Tests of module 'stdlib' in C++ mode.
16496         * tests/test-stdlib-c++.cc: New file.
16497         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16498         (Depends-on): Add ansi-c++-opt.
16499         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16500         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16501         gl_MODULE_INDICATOR.
16502
16503         Tests of module 'stdio' in C++ mode.
16504         * tests/test-stdio-c++.cc: New file.
16505         * modules/stdio-tests (Files): Add it and tests/signature.h.
16506         (Depends-on): Add ansi-c++-opt.
16507         (Makefile.am): Arrange to compile and run test-stdio-c++.
16508         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16509         gl_MODULE_INDICATOR.
16510
16511         Tests of module 'spawn' in C++ mode.
16512         * tests/test-spawn-c++.cc: New file.
16513         * modules/spawn-tests (Files): Add it and tests/signature.h.
16514         (Depends-on): Add ansi-c++-opt.
16515         (Makefile.am): Arrange to compile and run test-spawn-c++.
16516         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16517         gl_MODULE_INDICATOR.
16518
16519         Tests of module 'signal' in C++ mode.
16520         * tests/test-signal-c++.cc: New file.
16521         * modules/signal-tests (Files): Add it and tests/signature.h.
16522         (Depends-on): Add ansi-c++-opt.
16523         (Makefile.am): Arrange to compile and run test-signal-c++.
16524         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16525         gl_MODULE_INDICATOR.
16526
16527         Tests of module 'search' in C++ mode.
16528         * tests/test-search-c++.cc: New file.
16529         * modules/search-tests (Files): Add it and tests/signature.h.
16530         (Depends-on): Add ansi-c++-opt.
16531         (Makefile.am): Arrange to compile and run test-search-c++.
16532         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16533         gl_MODULE_INDICATOR.
16534
16535         Tests of module 'math' in C++ mode.
16536         * tests/test-math-c++.cc: New file.
16537         * modules/math-tests (Files): Add it and tests/signature.h.
16538         (Depends-on): Add ansi-c++-opt.
16539         (Makefile.am): Arrange to compile and run test-math-c++.
16540         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16541
16542         Tests of module 'locale' in C++ mode.
16543         * tests/test-locale-c++.cc: New file.
16544         * modules/locale-tests (Files): Add it and tests/signature.h.
16545         (Depends-on): Add ansi-c++-opt.
16546         (Makefile.am): Arrange to compile and run test-locale-c++.
16547         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16548         gl_MODULE_INDICATOR.
16549
16550         Tests of module 'langinfo' in C++ mode.
16551         * tests/test-langinfo-c++.cc: New file.
16552         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16553         (Depends-on): Add ansi-c++-opt.
16554         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16555         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16556         gl_MODULE_INDICATOR.
16557
16558         Tests of module 'iconv-h' in C++ mode.
16559         * tests/test-iconv-h-c++.cc: New file.
16560         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16561         (Depends-on): Add ansi-c++-opt.
16562         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16563
16564         Tests of module 'glob' in C++ mode.
16565         * tests/test-glob-c++.cc: New file.
16566         * modules/glob-tests (Files): Add it.
16567         (Depends-on): Add ansi-c++-opt.
16568         (Makefile.am): Arrange to compile and run test-glob-c++.
16569
16570         Tests of module 'fcntl-h' in C++ mode.
16571         * tests/test-fcntl-h-c++.cc: New file.
16572         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16573         (Depends-on): Add ansi-c++-opt.
16574         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16575         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16576         gl_MODULE_INDICATOR.
16577
16578         Tests of module 'dirent' in C++ mode.
16579         * tests/test-dirent-c++.cc: New file.
16580         * modules/dirent-tests (Files): Add it and tests/signature.h.
16581         (Depends-on): Add ansi-c++-opt.
16582         (Makefile.am): Arrange to compile and run test-dirent-c++.
16583         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16584         gl_MODULE_INDICATOR.
16585
16586         New module 'ansi-c++-opt'.
16587         * modules/ansi-c++-opt: New file.
16588         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16589
16590         Document C++ namespace mode.
16591         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16592
16593         wctype: Avoid #define replacements in C++ mode.
16594         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16595         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16596         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16597         In C++, define a namespaced alias symbol.
16598         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16599         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16600         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16601         rule.
16602
16603         wchar: Avoid #define replacements in C++ mode.
16604         * lib/wchar.in.h: Include c++defs.h.
16605         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16606         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16607         symbol.
16608         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16609         * modules/wchar (Depends-on): Add c++defs.
16610         (Makefile.am): Update wchar.h rule.
16611
16612         unistd: Avoid #define replacements in C++ mode.
16613         * lib/unistd.in.h: Include c++defs.h.
16614         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16615         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16616         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16617         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16618         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16619         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16620         symbol.
16621         (environ): Update.
16622         * modules/unistd (Depends-on): Add c++defs.
16623         (Makefile.am): Update unistd.h rule.
16624
16625         time: Avoid #define replacements in C++ mode.
16626         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16627         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16628         define a namespaced alias symbol.
16629         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16630         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16631         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16632         * modules/time (Depends-on): Add c++defs, warn-on-use.
16633         (Makefile.am): Update time.h rule.
16634         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16635         * modules/nanosleep (configure.ac): Likewise.
16636         * modules/strptime (configure.ac): Likewise.
16637         * modules/timegm (configure.ac): Likewise.
16638
16639         sys_time: Avoid #define replacements in C++ mode.
16640         * lib/sys_time.in.h: Include c++defs.h.
16641         (gettimeofday): In C++, define a namespaced alias symbol.
16642         * modules/sys_time (Depends-on): Add c++defs.
16643         (Makefile.am): Update sys/time.h rule.
16644
16645         sys_stat: Avoid #define replacements in C++ mode.
16646         * lib/sys_stat.in.h: Include c++defs.h.
16647         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16648         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16649         namespaced alias symbol.
16650         In C++, define a namespaced alias symbol.
16651         * modules/sys_stat (Depends-on): Add c++defs.
16652         (Makefile.am): Update sys/stat.h rule.
16653
16654         sys_socket: Avoid #define replacements in C++ mode.
16655         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16656         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16657         definitions also when the system has a <sys/socket.h>.
16658         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16659         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16660         In C++, define a namespaced alias symbol.
16661         * modules/sys_socket (Depends-on): Add c++defs.
16662         (Makefile.am): Update sys/socket.h rule.
16663
16664         sys_select: Avoid #define replacements in C++ mode.
16665         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16666         definitions also when the system has a <sys/select.h>.
16667         (select): In C++, define a namespaced alias symbol.
16668         * modules/sys_select (Depends-on): Add c++defs.
16669         (Makefile.am): Update sys/select.h rule.
16670
16671         sys_ioctl: Avoid #define replacements in C++ mode.
16672         * lib/sys_ioctl.in.h: Include c++defs.h.
16673         (ioctl): In C++, define a namespaced alias symbol.
16674         * modules/sys_ioctl (Depends-on): Add c++defs.
16675         (Makefile.am): Update sys/ioctl.h rule.
16676
16677         string: Avoid #define replacements in C++ mode.
16678         * lib/string.in.h: Include c++defs.h.
16679         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16680         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16681         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16682         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16683         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16684         * modules/string (Depends-on): Add c++defs.
16685         (Makefile.am): Update string.h rule.
16686
16687         stdlib: Avoid #define replacements in C++ mode.
16688         * lib/stdlib.in.h: Include c++defs.h.
16689         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16690         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16691         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16692         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16693         symbol.
16694         * modules/stdlib (Depends-on): Add c++defs.
16695         (Makefile.am): Update stdlib.h rule.
16696
16697         stdio: Avoid #define replacements in C++ mode.
16698         * lib/stdio.in.h: Include c++defs.h.
16699         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16700         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16701         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16702         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16703         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16704         namespaced alias symbol.
16705         * modules/stdio (Depends-on): Add c++defs.
16706         (Makefile.am): Update stdio.h rule.
16707
16708         spawn: Avoid #define replacements in C++ mode.
16709         * lib/spawn.in.h: Include c++defs.h.
16710         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16711         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16712         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16713         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16714         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16715         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16716         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16717         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16718         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16719         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16720         In C++, define a namespaced alias symbol.
16721         * modules/spawn (Depends-on): Add c++defs.
16722         (Makefile.am): Update spawn.h rule.
16723
16724         signal: Avoid #define replacements in C++ mode.
16725         * lib/signal.in.h: Include c++defs.h.
16726         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16727         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16728         namespaced alias symbol.
16729         * modules/signal (Depends-on): Add c++defs.
16730         (Makefile.am): Update signal.h rule.
16731
16732         search: Avoid #define replacements in C++ mode.
16733         * lib/search.in.h: Include c++defs.h.
16734         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16735         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16736         symbol.
16737         * modules/search (Depends-on): Add c++defs.
16738         (Makefile.am): Update search.h rule.
16739
16740         math: Avoid #define replacements in C++ mode.
16741         * lib/math.in.h: Include c++defs.h.
16742         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16743         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16744         trunc, truncl): In C++, define a namespaced alias symbol.
16745         * modules/math (Depends-on): Add c++defs.
16746         (Makefile.am): Update math.h rule.
16747
16748         locale: Avoid #define replacements in C++ mode.
16749         * lib/locale.in.h: Include c++defs.h.
16750         (duplocale): In C++, define a namespaced alias symbol.
16751         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16752         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16753         * modules/locale (Depends-on): Add c++defs.
16754         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16755
16756         langinfo: Avoid #define replacements in C++ mode.
16757         * lib/langinfo.in.h: Include c++defs.h.
16758         (nl_langinfo): In C++, define a namespaced alias symbol.
16759         * modules/langinfo (Depends-on): Add c++defs.
16760         (Makefile.am): Update langinfo.h rule.
16761
16762         iconv-h: Avoid #define replacements in C++ mode.
16763         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16764         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16765         symbol.
16766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16767         whenever iconv is present.
16768         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16769         (Makefile.am): Update iconv.h rule.
16770
16771         glob: Avoid #define replacements in C++ mode.
16772         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16773         (_gl_glob_errfunc_fn): New type.
16774         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16775         symbol.
16776         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16777         (Makefile.am): Update glob.h rule.
16778
16779         fcntl-h: Avoid #define replacements in C++ mode.
16780         * lib/fcntl.in.h: Include c++defs.h.
16781         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16782         * modules/fcntl-h (Depends-on): Add c++defs.
16783         (Makefile.am): Update fcntl.h rule.
16784
16785         dirent: Avoid #define replacements in C++ mode.
16786         * lib/dirent.in.h: Include c++defs.h.
16787         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16788         namespaced alias symbol.
16789         (dirfd): Update declaration.
16790         * modules/dirent (Depends-on): Add c++defs.
16791         (Makefile.am): Update dirent.h rule.
16792
16793         ctype: Make it usable in C++ code.
16794         * lib/ctype.in.h: Include c++defs.h.
16795         (isblank): Declare as extern "C".
16796         * modules/ctype (Depends-on): Add c++defs.
16797         (Makefile.am): Update ctype.h rule.
16798
16799         New module 'c++defs'.
16800         * modules/c++defs: New file.
16801         * build-aux/c++defs.h: New file.
16802         Reported by John W. Eaton <jwe@gnu.org>.
16803
16804 2010-03-07  Bruno Haible  <bruno@clisp.org>
16805
16806         logb: Provide missing declaration for Cygwin.
16807         * lib/math.in.h (logb): New declaration.
16808         * m4/logb.m4: New file.
16809         * modules/logb (Files): Add m4/logb.m4.
16810         (Depends-on): Add math.
16811         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16812         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16814         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16815         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16816
16817 2010-03-07  Bruno Haible  <bruno@clisp.org>
16818
16819         Fix test-cond link error.
16820         * tests/test-cond.c: Include <stdio.h>.
16821
16822 2010-03-07  Bruno Haible  <bruno@clisp.org>
16823
16824         Fix test-dirent-safer link error.
16825         * modules/dirent-safer-tests (Makefile.am): Define
16826         test_dirent_safer_LDADD.
16827
16828 2010-03-07  Bruno Haible  <bruno@clisp.org>
16829
16830         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16831         among default module list.
16832
16833 2010-03-07  Bruno Haible  <bruno@clisp.org>
16834
16835         Fix link error on platforms with GNU libiconv.
16836         * modules/unistr/u8-strcoll-tests (Makefile): Define
16837         test_u8_strcoll_LDADD.
16838         * modules/unistr/u16-strcoll-tests (Makefile): Define
16839         test_u16_strcoll_LDADD.
16840         * modules/unistr/u32-strcoll-tests (Makefile): Define
16841         test_u32_strcoll_LDADD.
16842
16843 2010-03-07  Bruno Haible  <bruno@clisp.org>
16844
16845         Use POSIX declarations for socket functions.
16846         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16847         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16848         rpl_sendto): Change declaration to match POSIX.
16849         * lib/connect.c (rpl_connect): Likewise.
16850         * lib/accept.c (rpl_accept): Likewise.
16851         * lib/bind.c (rpl_bind): Likewise.
16852         * lib/getpeername.c (rpl_getpeername): Likewise.
16853         * lib/getsockname.c (rpl_getsockname): Likewise.
16854         * lib/recv.c (rpl_recv): Likewise.
16855         * lib/send.c (rpl_send): Likewise.
16856         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16857         * lib/sendto.c (rpl_sendto): Likewise.
16858
16859 2010-03-06  Bruno Haible  <bruno@clisp.org>
16860
16861         Clarify access, euidaccess, faccessat.
16862         * doc/posix-functions/faccessat.texi: Mention security problem under
16863         "Other problems", not "Portability problems".
16864         * doc/posix-functions/access.texi: Likewise. Mention a related security
16865         problem.
16866         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16867         * lib/euidaccess.c: Add comments about platforms.
16868         * lib/unistd.in.h (access, euidaccess): Add warnings.
16869
16870 2010-03-07  Bruno Haible  <bruno@clisp.org>
16871
16872         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16873         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16874         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16875         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16876         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16877         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16878         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16879         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16880         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16881         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16882         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16883         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16884         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16885         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16886         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16887         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16888         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16889         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16890         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16891         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16892         Likewise.
16893         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16894         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16895         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16896         Likewise.
16897         * tests/test-spawn.c (main): Make it work when
16898         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16899
16900 2010-03-07  Bruno Haible  <bruno@clisp.org>
16901
16902         Fix incorrect Makefile.am generation in German locale.
16903         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16904         Execute sed command with character range in C locale.
16905
16906 2010-03-06  Bruno Haible  <bruno@clisp.org>
16907
16908         Tests for module 'iconv-h'.
16909         * modules/iconv-h-tests: New file.
16910         * tests/test-iconv-h.c: New file.
16911
16912         New module 'iconv-h'.
16913         * modules/iconv-h: New file.
16914         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16915         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16916         (configure.ac): Remove gl_ICONV_H.
16917         (Makefile.am): Remove rule for iconv.h.
16918
16919 2010-03-06  Bruno Haible  <bruno@clisp.org>
16920
16921         More consistent naming of *.m4 files.
16922         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16923         * modules/wctype (Files): Update.
16924
16925         More consistent naming of *.m4 files.
16926         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16927         * modules/wchar (Files): Update.
16928
16929 2010-03-06  Jim Meyering  <meyering@redhat.com>
16930
16931         euidaccess: relax license to LGPLv2+
16932         * modules/euidaccess (License): Relax to LGPLv2+.
16933
16934 2010-03-06  Bruno Haible  <bruno@clisp.org>
16935
16936         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16937         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16938         (Makefile.am): Augment lib_SOURCES instead.
16939
16940 2010-03-04  Jim Meyering  <meyering@redhat.com>
16941
16942         utime: remove obsolete module
16943         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16944         unnecessary for years, and has been marked as obsolete for 10 months.
16945         * modules/utime: Remove file.
16946         * lib/utime.c: Remove file.
16947         * m4/utime.m4: Remove file.
16948         * m4/utimes-null.m4: Remove file.
16949         * doc/posix-functions/utime.texi (utime): Remove reference to
16950         the module.  Move the sole "fixed by gnulib" item into the
16951         "problems not fixed by Gnulib" list.
16952         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16953
16954 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16955
16956         * modules/exit (License): Relax license to LGPLv2+.
16957         (Status): Mark as obsolete.
16958         * NEWS: Mention deprecated 'exit' module.
16959         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16960         of now obsolete 'exit'.
16961
16962 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16963
16964         fts-lgpl: remove unused module
16965         * modules/fts-lgpl: Remove.
16966         * MODULES.html.sh (func_all_modules): Adjust.
16967         * check-module (find_included_lib_files): Adjust.
16968         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16969
16970 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16971
16972         copy-acl: enhance Solaris ACL error handling
16973         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16974         * lib/set-mode-acl.c (qset_acl): Likewise.
16975
16976 2010-03-02  Bruno Haible  <bruno@clisp.org>
16977
16978         spawn: Don't override the system defined values on FreeBSD 8.
16979         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16980         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16981         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16982         if HAVE_POSIX_SPAWN is 1.
16983         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16984
16985 2010-03-01  Bruno Haible  <bruno@clisp.org>
16986
16987         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16988         regarding Automake.
16989
16990 2010-02-25  Bruno Haible  <bruno@clisp.org>
16991
16992         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16993         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16994         setting, not afterwards.
16995         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16996
16997 2010-02-24  Eric Blake  <eblake@redhat.com>
16998
16999         bootstrap, git-version-gen: use timestamp
17000         * build-aux/git-version-gen (scriptversion): Force UTC.
17001         * build-aux/bootstrap (scriptversion): New variable.
17002
17003         bootstrap: allow older git
17004         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17005         older than 1.6.4.  Requested by the libvirt project.
17006
17007 2010-02-23  Eric Blake  <eblake@redhat.com>
17008
17009         warn-on-use: work with old autoconf
17010         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17011         AS_VAR semantics of autoconf 2.60.
17012         Reported by Bruno Haible.
17013
17014         bootstrap: improve some comments
17015         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17016         clarification comments.
17017
17018         gettimeofday: provide correct function
17019         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17020         when replacement is declared, otherwise provide gettimeofday.
17021         Reported by Michael Goffioul.
17022
17023 2010-02-23  Jim Meyering  <meyering@redhat.com>
17024
17025         lib-ignore: relax license to "unlimited", not LGPLv2+
17026         * modules/lib-ignore (License): Relax to "unlimited".
17027
17028 2010-02-23  Jim Meyering  <meyering@redhat.com>
17029
17030         lib-ignore: relax license to LGPLv2+
17031         * modules/lib-ignore (License): Relax to LGPLv2+.
17032
17033 2010-02-22  Eric Blake  <eblake@redhat.com>
17034
17035         lseek: avoid bash 3.2 broken pipe bug
17036         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17037         warning from bash 3.2.
17038         Reported by Ben Pfaff, with analysis from Bruno Haible.
17039
17040         bootstrap: support non-FSF copyright holder
17041         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17042         bootstrap.conf override of COPYRIGHT_HOLDER.
17043         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17044
17045         bootstrap: interoperate with gettext 0.14.1
17046         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17047
17048         bootstrap: allow for alternate submodule location
17049         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17050         hardcoding submodule location.
17051         (gnulib_mk): Allow direct use of Makefile.am.
17052
17053         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17054         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17055         rather than reconfiguring where the submodule points.
17056
17057         gettimeofday: restore support for platforms that lack function
17058         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17059         replacement if function is missing.
17060         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17061         * modules/sys_time (Makefile.am): Substitute it.
17062         * lib/sys_time.in.h (gettimeofday): Check it.
17063         Reported by Michael Goffioul.
17064
17065 2010-02-21  Bruno Haible  <bruno@clisp.org>
17066
17067         * lib/stdio.in.h (obstack_printf): Fix typo.
17068
17069 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17070
17071         vc-list-files: use bzr ls's -R option
17072         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17073         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17074
17075 2010-02-21  Jim Meyering  <meyering@redhat.com>
17076
17077         init.sh: fix EXEEXT shims to work also for names like test-prog
17078         * tests/init.sh: Re-exec a better shell, when needed.
17079         If the current shell lacks support for posix $(...), an init.sh-using
17080         test will now try to find a shell that supports that.  If EXEEXT is
17081         nonempty, we also require support for hyphen-in-alias-name and shell
17082         substitutions like ${var#glob}.  Failure to find such a shell results
17083         in a skipped test.
17084
17085 2010-02-21  Bruno Haible  <bruno@clisp.org>
17086
17087         Really work around around "broken pipe" error message from bash 3.2.
17088         * gnulib-tool (func_reset_sigpipe): Remove function.
17089         (echo): In bash 3.2, define to a function that uses printf.
17090         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17091
17092 2010-02-20  Bruno Haible  <bruno@clisp.org>
17093
17094         Restore support for automake 1.9.6 with autoconf 2.61.
17095         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17096         Reported by James Youngman <jay@gnu.org>.
17097
17098 2010-02-20  Bruno Haible  <bruno@clisp.org>
17099
17100         Improve *printf warning condition.
17101         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17102         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17103         and the function is overridden due to SIGPIPE emulation.
17104
17105 2010-02-20  Bruno Haible  <bruno@clisp.org>
17106
17107         * lib/stdio.in.h: Tweak comments.
17108
17109 2010-02-19  Bruno Haible  <bruno@clisp.org>
17110
17111         Make it easier to find modules. New gnulib-tool option '--find'.
17112         * gnulib-tool: New option --find.
17113         (func_usage): Document it.
17114         (func_sanitize_modulelist): New function, extracted from
17115         func_all_modules.
17116         (func_all_modules): Invoke it.
17117         * doc/gnulib-tool.texi (Which modules?): New node.
17118
17119 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17120
17121         * lib/sys_select.in.h: Provide select replacement even if
17122         sys/select.h exists on a system, for Interix.
17123
17124 2010-02-18  Jim Meyering  <meyering@redhat.com>
17125
17126         init.sh: don't use $(...) just yet
17127         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17128         to accommodate e.g., Solaris' /bin/sh.
17129
17130 2010-02-17  Bruno Haible  <bruno@clisp.org>
17131
17132         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17133         Reported by Ludovic Courtès <ludo@gnu.org>.
17134
17135 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17136
17137         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17138         linking with -lintl.
17139
17140 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17141
17142         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17143         if not provided by the system's netdb.h.  Reported by
17144         ludo@gnu.org (Ludovic Courtès).
17145
17146 2010-02-15  Jim Meyering  <meyering@redhat.com>
17147
17148         init.sh: improve portability and efficiency
17149         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17150         "dummy" in a for loop.
17151         Use '!', not '^' to select the complement of a character set used
17152         in a "case" statement.
17153         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17154         Suggestions from Eric Blake.
17155
17156         init.sh: automatically accommodate programs with the .exe suffix
17157         Automatically arrange for an invocation of "prog" to execute the
17158         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17159         may use the simpler "prog", yet still work when built on a system
17160         that requires specifying the added suffix.
17161         Do this by constructing a function named "prog" that invokes
17162         "prog.exe" for each .exe file in selected directories.
17163         * tests/init.sh (find_exe_basenames_): New function.
17164         (create_exe_shim_functions_): New function.
17165         (path_prepend_): Use it.
17166
17167         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17168         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17169         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17170
17171 2010-02-14  Jim Meyering  <meyering@redhat.com>
17172
17173         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17174         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17175         (sc_prohibit_hash_pjw_without_use): New rule.
17176
17177         maint.mk: allow the default upload destination dir to be overridden
17178         * top/maint.mk (upload_dest_dir_): Define with a default that
17179         preserves the status quo.
17180         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17181         Reported by Peter Simons.
17182
17183         maint.mk: prohibit inclusion of "hash.h" without_use
17184         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17185
17186 2010-02-10  Jim Meyering  <meyering@redhat.com>
17187
17188         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17189         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17190
17191 2010-02-09  Eric Blake  <ebb9@byu.net>
17192         and Bruno Haible  <bruno@clisp.org>
17193
17194         obstack-printf-posix: ensure declaration
17195         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17196         extracted from gl_FUNC_OBSTACK_PRINTF.
17197         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17198         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17199         Likewise.
17200         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17201         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17202         0.
17203
17204 2010-02-08  Bruno Haible  <bruno@clisp.org>
17205
17206         gnulib-tool: Fix typo in 2010-02-07 commit.
17207         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17208         Reported by Eric Blake.
17209
17210 2010-02-07  Bruno Haible  <bruno@clisp.org>
17211
17212         gnulib-tool: Fix up caching patches.
17213         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17214         option --no-cache. Use associative arrays when supported by the shell.
17215         (sed_comments): New variable.
17216         (modcache): Renamed from do_cache.
17217         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17218         abbreviate unnecessarily.
17219         (have_associative): New variable.
17220         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17221         way also for ksh and zsh.
17222         (func_init_sed_convert_to_cache_statements): New function, extracted
17223         from func_cache_lookup_module. Add support for associative arrays.
17224         Don't set the c_MODULE_cached variable here. Ignore all lines before
17225         the first field header. Remove only the final newline, not all trailing
17226         newlines. Support empty fields correctly. Limit the use of 'eval' to
17227         assignments.
17228         (func_get_description, func_get_status, func_get_notice,
17229         func_get_applicability, func_get_filelist, func_get_dependencies,
17230         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17231         func_get_automake_snippet, func_get_include_directive,
17232         func_get_link_directive, func_get_license, func_get_maintainer):
17233         Update documentation. List the unoptimized code first. Add support for
17234         associative arrays. Limit the use of 'eval' to assignments.
17235         (func_get_applicability): Undo stylistic pessimisations.
17236         (func_get_automake_snippet, func_get_include_directive): Reduce code
17237         duplication.
17238         (func_modules_transitive_closure, func_modules_add_dummy,
17239         func_modules_notice, func_modules_to_filelist, func_add_file,
17240         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17241         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17242         func_create_testdir, func_create_megatestdir): Update documentation.
17243
17244 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17245
17246         * gnulib-tool (func_cache_lookup_module): Store the module name
17247         belonging to the cache variable; error out if two different
17248         module names map to the same cache variable name.
17249
17250 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17251
17252         gnulib-tool: Make caching optional.
17253         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17254         Update matching short versions of --no-changelog.
17255         (func_usage): Update.
17256         (sed_extract_cache_prog): Renamed from ...
17257         (sed_extract_prog): ... this; revert to old extraction script.
17258         (func_get_description, func_get_status)
17259         (func_get_notice, func_get_applicability, func_get_filelist)
17260         (func_get_dependencies, func_get_autoconf_early_snippet)
17261         (func_get_autoconf_snippet, func_get_automake_snippet)
17262         (func_get_include_directive, func_get_link_directive)
17263         (func_get_license, func_get_maintainer): If $do_cache is false,
17264         use old, non-caching extraction scripts.
17265         Suggestion by Bruno Haible.
17266
17267 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17268
17269         gnulib-tool: cache module metainformation.
17270         * gnulib-tool (sed_extract_prog): Match newline before each
17271         header, and rewrite header to a shell variable suffix.
17272         (func_cache_var, func_cache_lookup_module): New functions,
17273         to turn a module name into a cache variable prefix, and to
17274         look up and cache module metainformation.
17275         (func_get_description, func_get_status)
17276         (func_get_notice, func_get_applicability, func_get_filelist)
17277         (func_get_dependencies, func_get_autoconf_early_snippet)
17278         (func_get_autoconf_snippet, func_get_automake_snippet)
17279         (func_get_include_directive, func_get_link_directive)
17280         (func_get_license, func_get_maintainer): Use
17281         func_cache_lookup_module.
17282
17283 2010-02-07  Bruno Haible  <bruno@clisp.org>
17284
17285         fnctl: Fix missing dependency.
17286         * modules/fcntl (Depends-on): Add getdtablesize.
17287         Reported by John W. Eaton <jwe@gnu.org>.
17288
17289 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17290
17291         Argp: fix recognition of short alias options.
17292
17293         * lib/argp-parse.c (convert_options): Fix improper use of
17294         `|' between character values.
17295         * tests/test-argp.c (group1_option): New alias option
17296         --read (-r).
17297         (group1_parser): Special handling for 'r'.
17298         (test15): New test case.
17299         (test_fun): Add test15.
17300         * tests/test-argp-2.sh: Update expected --help and --usage
17301         outputs.
17302
17303 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17304
17305         * tests/test-argp.c: Fix indentation.
17306
17307 2010-02-04  Eric Blake  <ebb9@byu.net>
17308
17309         gettimeofday: expose type of second argument
17310         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17311         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17312         * tests/test-gettimeofday.c: Use it to silence warning.
17313         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17314         the issue.
17315
17316 2010-02-03  Jim Meyering  <meyering@redhat.com>
17317
17318         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17319         * lib/regcomp.c (TYPE_SIGNED): Define.
17320         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17321
17322         regcomp.c: avoid a new -Wshadow warning
17323         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17324
17325 2010-02-01  Jim Meyering  <meyering@redhat.com>
17326
17327         removing useless parentheses in cpp #define directives
17328         For motivation, see commit c0221df4, "define STREQ(a,b)
17329         consistently, removing useless parentheses"
17330         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17331         * lib/mountlist.c (MNT_IGNORE): Likewise.
17332         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17333
17334 2010-02-01  Eric Blake  <ebb9@byu.net>
17335
17336         sys_time: use link-warning
17337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17338         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17339         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17340         * modules/sys_time (Depends-on): Add warn-on-use.
17341         (Makefile.am): Always build replacement.
17342         (configure.ac): Update substitutions.
17343         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17344         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17345         bother with SYS_TIME_H.
17346         * modules/gettimeofday (configure.ac): Declare indicator.
17347         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17348         in use.
17349
17350         closein-tests: silence compiler warning
17351         * tests/test-closein.c (main): Ignore fread result.
17352         * modules/closein-tests (Depends-on): Add ignore-value.
17353
17354         tests: silence warning about system return
17355         * tests/test-areadlink-with-size.c (main): Ignore system result.
17356         * tests/test-areadlink.c (main): Likewise.
17357         * tests/test-areadlinkat-with-size.c (main): Likewise.
17358         * tests/test-areadlinkat.c (main): Likewise.
17359         * tests/test-canonicalize-lgpl.c (main): Likewise.
17360         * tests/test-canonicalize.c (main): Likewise.
17361         * tests/test-chown.c (main): Likewise.
17362         * tests/test-fchownat.c (main): Likewise.
17363         * tests/test-fdutimensat.c (main): Likewise.
17364         * tests/test-fstatat.c (main): Likewise.
17365         * tests/test-futimens.c (main): Likewise.
17366         * tests/test-lchown.c (main): Likewise.
17367         * tests/test-link.c (main): Likewise.
17368         * tests/test-linkat.c (main): Likewise.
17369         * tests/test-lstat.c (main): Likewise.
17370         * tests/test-mkdir.c (main): Likewise.
17371         * tests/test-mkdirat.c (main): Likewise.
17372         * tests/test-mkfifo.c (main): Likewise.
17373         * tests/test-mkfifoat.c (main): Likewise.
17374         * tests/test-mknod.c (main): Likewise.
17375         * tests/test-readlink.c (main): Likewise.
17376         * tests/test-remove.c (main): Likewise.
17377         * tests/test-rename.c (main): Likewise.
17378         * tests/test-renameat.c (main): Likewise.
17379         * tests/test-rmdir.c (main): Likewise.
17380         * tests/test-symlink.c (main): Likewise.
17381         * tests/test-symlinkat.c (main): Likewise.
17382         * tests/test-unlink.c (main): Likewise.
17383         * tests/test-unlinkat.c (main): Likewise.
17384         * tests/test-utimens.c (main): Likewise.
17385         * tests/test-utimensat.c (main): Likewise.
17386         * modules/areadlink-tests (Depends-on): Add ignore-value.
17387         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17388         * modules/areadlinkat-tests (Depends-on): Likewise.
17389         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17390         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17391         * modules/canonicalize-tests (Depends-on): Likewise.
17392         * modules/chown-tests (Depends-on): Likewise.
17393         * modules/fdutimensat-tests (Depends-on): Likewise.
17394         * modules/futimens-tests (Depends-on): Likewise.
17395         * modules/lchown-tests (Depends-on): Likewise.
17396         * modules/link-tests (Depends-on): Likewise.
17397         * modules/linkat-tests (Depends-on): Likewise.
17398         * modules/lstat-tests (Depends-on): Likewise.
17399         * modules/mkdir-tests (Depends-on): Likewise.
17400         * modules/mkfifo-tests (Depends-on): Likewise.
17401         * modules/mkfifoat-tests (Depends-on): Likewise.
17402         * modules/mknod-tests (Depends-on): Likewise.
17403         * modules/openat-tests (Depends-on): Likewise.
17404         * modules/readlink-tests (Depends-on): Likewise.
17405         * modules/remove-tests (Depends-on): Likewise.
17406         * modules/rename-tests (Depends-on): Likewise.
17407         * modules/renameat-tests (Depends-on): Likewise.
17408         * modules/rmdir-tests (Depends-on): Likewise.
17409         * modules/symlink-tests (Depends-on): Likewise.
17410         * modules/symlinkat-tests (Depends-on): Likewise.
17411         * modules/unlink-tests (Depends-on): Likewise.
17412         * modules/utimens-tests (Depends-on): Likewise.
17413         * modules/utimensat-tests (Depends-on): Likewise.
17414
17415 2010-01-31  Bruno Haible  <bruno@clisp.org>
17416
17417         Perform the same test for many <math.h> functions.
17418         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17419         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17420         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17421         of gl_MATHFUNC.
17422         * modules/acos (configure.ac): Likewise.
17423         * modules/asin (configure.ac): Likewise.
17424         * modules/atan (configure.ac): Likewise.
17425         * modules/atan2 (configure.ac): Likewise.
17426         * modules/cbrt (configure.ac): Likewise.
17427         * modules/copysign (configure.ac): Likewise.
17428         * modules/cos (configure.ac): Likewise.
17429         * modules/cosh (configure.ac): Likewise.
17430         * modules/erf (configure.ac): Likewise.
17431         * modules/erfc (configure.ac): Likewise.
17432         * modules/exp (configure.ac): Likewise.
17433         * modules/fmod (configure.ac): Likewise.
17434         * modules/hypot (configure.ac): Likewise.
17435         * modules/j0 (configure.ac): Likewise.
17436         * modules/j1 (configure.ac): Likewise.
17437         * modules/jn (configure.ac): Likewise.
17438         * modules/lgamma (configure.ac): Likewise.
17439         * modules/log (configure.ac): Likewise.
17440         * modules/log10 (configure.ac): Likewise.
17441         * modules/log1p (configure.ac): Likewise.
17442         * modules/pow (configure.ac): Likewise.
17443         * modules/remainder (configure.ac): Likewise.
17444         * modules/sin (configure.ac): Likewise.
17445         * modules/sinh (configure.ac): Likewise.
17446         * modules/tan (configure.ac): Likewise.
17447         * modules/tanh (configure.ac): Likewise.
17448         * modules/y0 (configure.ac): Likewise.
17449         * modules/y1 (configure.ac): Likewise.
17450         * modules/yn (configure.ac): Likewise.
17451         Suggested by Paolo Bonzini.
17452
17453 2010-01-31  Bruno Haible  <bruno@clisp.org>
17454
17455         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17456
17457 2010-01-31  Bruno Haible  <bruno@clisp.org>
17458
17459         Work around getdelim() bug on FreeBSD 8.0.
17460         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17461         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17462         not work.
17463         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17464         is 1.
17465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17466         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17467         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17468         a non-zero size.
17469         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17470
17471 2010-01-31  Bruno Haible  <bruno@clisp.org>
17472
17473         Work around getline() bug on FreeBSD 8.0.
17474         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17475         and a non-zero size.
17476         * tests/test-getline.c (main): Likewise.
17477         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17478         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17479
17480 2010-01-28  Eric Blake  <ebb9@byu.net>
17481
17482         regex: fix build failure
17483         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17484         platforms.
17485
17486 2010-01-28  Jim Meyering  <meyering@redhat.com>
17487
17488         regex: do not ignore memory allocation failure
17489         * lib/regex_internal.c (create_cd_newstate): Detect
17490         re_node_set_init_copy failure.   Extracted from glibc commit
17491         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17492
17493         regex: sync more white-space changes from libc
17494         * lib/regex_internal.c: White-space only changes.
17495         * lib/regexec.c: Likewise.
17496
17497         regex: add many uses of __attribute_warn_unused_result__
17498         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17499         * lib/regexec.c: Likewise.
17500         Extracted from a messy glibc commit.
17501
17502         regcomp.c: spelling and merge-artifact from glibc
17503         * lib/regcomp.c: Merge remainder of glibc's
17504         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17505
17506         regcomp.c: sync white-space changes from glibc
17507         * lib/regcomp.c: Merge to accommodate white space
17508         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17509
17510         regcomp.c: do not ignore internal return values
17511         * lib/regcomp.c: Do not ignore internal return values.
17512         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17513         but without its white-space changes and spelling fixes.
17514
17515         regex_internal.h: define __attribute_warn_unused_result__
17516         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17517
17518         maint: add a syntax-check rule to check for vulnerable Makefile.in
17519         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17520
17521 2010-01-27  Jim Meyering  <meyering@redhat.com>
17522
17523         ncftpput-ftp: clean up spaces
17524         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17525         Remove trailing blanks.
17526
17527 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17528
17529         * build-aux/git-version-gen: Fix copyright statement.
17530         * build-aux/gnupload: Likewise.
17531         * tests/test-arcfour.c: Likewise.
17532         * tests/test-arctwo.c: Likewise.
17533         * tests/test-count-one-bits.c: Likewise.
17534         * tests/test-crc.c: Likewise.
17535         * tests/test-des.c: Likewise.
17536         * tests/test-gc-arcfour.c: Likewise.
17537         * tests/test-gc-arctwo.c: Likewise.
17538         * tests/test-gc-des.c: Likewise.
17539         * tests/test-gc-hmac-md5.c: Likewise.
17540         * tests/test-gc-hmac-sha1.c: Likewise.
17541         * tests/test-gc-md2.c: Likewise.
17542         * tests/test-gc-md4.c: Likewise.
17543         * tests/test-gc-md5.c: Likewise.
17544         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17545         * tests/test-gc-rijndael.c: Likewise.
17546         * tests/test-gc-sha1.c: Likewise.
17547         * tests/test-gc.c: Likewise.
17548         * tests/test-gethostname.c: Likewise.
17549         * tests/test-gettimeofday.c: Likewise.
17550         * tests/test-hash.c: Likewise.
17551         * tests/test-hmac-md5.c: Likewise.
17552         * tests/test-hmac-sha1.c: Likewise.
17553         * tests/test-md2.c: Likewise.
17554         * tests/test-md4.c: Likewise.
17555         * tests/test-md5.c: Likewise.
17556         * tests/test-memchr.c: Likewise.
17557         * tests/test-memchr2.c: Likewise.
17558         * tests/test-memcmp.c: Likewise.
17559         * tests/test-memmem.c: Likewise.
17560         * tests/test-memrchr.c: Likewise.
17561         * tests/test-rawmemchr.c: Likewise.
17562         * tests/test-read-file.c: Likewise.
17563         * tests/test-rijndael.c: Likewise.
17564         * tests/test-sockets.c: Likewise.
17565         * tests/test-strchrnul.c: Likewise.
17566         * tests/test-strstr.c: Likewise.
17567         * tests/test-strtod.c: Likewise.
17568         * build-aux/ncftpput-ftp: Likewise.
17569
17570 2010-01-26  Eric Blake  <ebb9@byu.net>
17571
17572         ignore-value: update recommended header name
17573         * modules/ignore-value (Include): Only use <> for headers that
17574         exist in glibc.
17575
17576 2010-01-26  Jim Meyering  <meyering@redhat.com>
17577
17578         test-userspec.c: avoid compiler warnings
17579         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17580         and "initialization discards qualifiers..." warnings.
17581         Put the first "uid" in its own scope, and make char* members "const".
17582
17583 2010-01-25  Bruno Haible  <bruno@clisp.org>
17584
17585         gnulib-tool: Make warning diagnostics consistent.
17586         * gnulib-tool (func_warning): New function.
17587         Use it everywhere where gnulib-tool produces output to stderr and it is
17588         not a fatal error.
17589
17590 2010-01-25  Bruno Haible  <bruno@clisp.org>
17591
17592         Fix test dependencies.
17593         * modules/xstrtol-tests (Depends-on): Add inttypes.
17594         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17595
17596 2010-01-25 Pádraig Brady <P@draigBrady.com>
17597
17598         syntax-check: detect incorrect boolean macro values in config.h
17599         * modules/maintainer-makefile (configure.ac): Parameterize the location
17600         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17601         The logic is from Eric Blake and the location indicated by Jim Meyering.
17602         Note the more natural CONFIG_HEADER name is prohibited by automake
17603         for backwards compatibility reasons.
17604         * top/maint.mk (sc_Wundef_boolean): New rule.
17605
17606 2010-01-25  Jim Meyering  <meyering@redhat.com>
17607
17608         bootstrap: detect MacOS 10.6's shasum, too
17609         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17610         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17611
17612 2010-01-23  Jim Meyering  <meyering@redhat.com>
17613
17614         xstrtoll: new module
17615         * modules/xstrtoll: New file.
17616         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17617         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17618         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17619         ./configure fails if you use this module and lack "long long".
17620         * modules/xstrtoll-tests: New module.
17621         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17622         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17623         new init.sh-based test framework.
17624
17625 2010-01-24  Bruno Haible  <bruno@clisp.org>
17626
17627         Tests for module 'yn'.
17628         * modules/yn-tests: New file.
17629         * tests/test-yn.c: New file.
17630
17631         Tests for module 'y1'.
17632         * modules/y1-tests: New file.
17633         * tests/test-y1.c: New file.
17634
17635         Tests for module 'y0'.
17636         * modules/y0-tests: New file.
17637         * tests/test-y0.c: New file.
17638
17639         Tests for module 'tanh'.
17640         * modules/tanh-tests: New file.
17641         * tests/test-tanh.c: New file.
17642
17643         Tests for module 'tan'.
17644         * modules/tan-tests: New file.
17645         * tests/test-tan.c: New file.
17646
17647         Tests for module 'sqrt'.
17648         * modules/sqrt-tests: New file.
17649         * tests/test-sqrt.c: New file.
17650
17651         Tests for module 'sinh'.
17652         * modules/sinh-tests: New file.
17653         * tests/test-sinh.c: New file.
17654
17655         Tests for module 'sin'.
17656         * modules/sin-tests: New file.
17657         * tests/test-sin.c: New file.
17658
17659         Tests for module 'rint'.
17660         * modules/rint-tests: New file.
17661         * tests/test-rint.c: New file.
17662
17663         Tests for module 'remainder'.
17664         * modules/remainder-tests: New file.
17665         * tests/test-remainder.c: New file.
17666
17667         Tests for module 'pow'.
17668         * modules/pow-tests: New file.
17669         * tests/test-pow.c: New file.
17670
17671         Tests for module 'nextafter'.
17672         * modules/nextafter-tests: New file.
17673         * tests/test-nextafter.c: New file.
17674
17675         Tests for module 'modf'.
17676         * modules/modf-tests: New file.
17677         * tests/test-modf.c: New file.
17678
17679         Tests for module 'logb'.
17680         * modules/logb-tests: New file.
17681         * tests/test-logb.c: New file.
17682
17683         Tests for module 'log1p'.
17684         * modules/log1p-tests: New file.
17685         * tests/test-log1p.c: New file.
17686
17687         Tests for module 'log10'.
17688         * modules/log10-tests: New file.
17689         * tests/test-log10.c: New file.
17690
17691         Tests for module 'log'.
17692         * modules/log-tests: New file.
17693         * tests/test-log.c: New file.
17694
17695         Tests for module 'lgamma'.
17696         * modules/lgamma-tests: New file.
17697         * tests/test-lgamma.c: New file.
17698
17699         Tests for module 'ldexp'.
17700         * modules/ldexp-tests: New file.
17701         * tests/test-ldexp.c: New file.
17702
17703         Tests for module 'jn'.
17704         * modules/jn-tests: New file.
17705         * tests/test-jn.c: New file.
17706
17707         Tests for module 'j1'.
17708         * modules/j1-tests: New file.
17709         * tests/test-j1.c: New file.
17710
17711         Tests for module 'j0'.
17712         * modules/j0-tests: New file.
17713         * tests/test-j0.c: New file.
17714
17715         Tests for module 'hypot'.
17716         * modules/hypot-tests: New file.
17717         * tests/test-hypot.c: New file.
17718
17719         Tests for module 'fmod'.
17720         * modules/fmod-tests: New file.
17721         * tests/test-fmod.c: New file.
17722
17723         Tests for module 'fabs'.
17724         * modules/fabs-tests: New file.
17725         * tests/test-fabs.c: New file.
17726
17727         Tests for module 'exp'.
17728         * modules/exp-tests: New file.
17729         * tests/test-exp.c: New file.
17730
17731         Tests for module 'erfc'.
17732         * modules/erfc-tests: New file.
17733         * tests/test-erfc.c: New file.
17734
17735         Tests for module 'erf'.
17736         * modules/erf-tests: New file.
17737         * tests/test-erf.c: New file.
17738
17739         Tests for module 'cosh'.
17740         * modules/cosh-tests: New file.
17741         * tests/test-cosh.c: New file.
17742
17743         Tests for module 'cos'.
17744         * modules/cos-tests: New file.
17745         * tests/test-cos.c: New file.
17746
17747         Tests for module 'copysign'.
17748         * modules/copysign-tests: New file.
17749         * tests/test-copysign.c: New file.
17750
17751         Tests for module 'cbrt'.
17752         * modules/cbrt-tests: New file.
17753         * tests/test-cbrt.c: New file.
17754
17755         Tests for module 'atan2'.
17756         * modules/atan2-tests: New file.
17757         * tests/test-atan2.c: New file.
17758
17759         Tests for module 'atan'.
17760         * modules/atan-tests: New file.
17761         * tests/test-atan.c: New file.
17762
17763         Tests for module 'asin'.
17764         * modules/asin-tests: New file.
17765         * tests/test-asin.c: New file.
17766
17767         Tests for module 'acos'.
17768         * modules/acos-tests: New file.
17769         * tests/test-acos.c: New file.
17770
17771 2010-01-24  Bruno Haible  <bruno@clisp.org>
17772
17773         Fix tests for common <math.h> functions.
17774         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17775         code snippet that references the function pointer, rather than merely
17776         calling the function. Substitute the FUNC_LIBM variable.
17777         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17778         * modules/acos (configure.ac): Likewise.
17779         * modules/asin (configure.ac): Likewise.
17780         * modules/atan (configure.ac): Likewise.
17781         * modules/atan2 (configure.ac): Likewise.
17782         * modules/cbrt (configure.ac): Likewise.
17783         * modules/copysign (configure.ac): Likewise.
17784         * modules/cos (configure.ac): Likewise.
17785         * modules/cosh (configure.ac): Likewise.
17786         * modules/erf (configure.ac): Likewise.
17787         * modules/erfc (configure.ac): Likewise.
17788         * modules/exp (configure.ac): Likewise.
17789         * modules/fabs (configure.ac): Likewise.
17790         * modules/fmod (configure.ac): Likewise.
17791         * modules/hypot (configure.ac): Likewise.
17792         * modules/j0 (configure.ac): Likewise.
17793         * modules/j1 (configure.ac): Likewise.
17794         * modules/jn (configure.ac): Likewise.
17795         * modules/ldexp (configure.ac): Likewise.
17796         * modules/lgamma (configure.ac): Likewise.
17797         * modules/log (configure.ac): Likewise.
17798         * modules/log10 (configure.ac): Likewise.
17799         * modules/log1p (configure.ac): Likewise.
17800         * modules/logb (configure.ac): Likewise.
17801         * modules/modf (configure.ac): Likewise.
17802         * modules/nextafter (configure.ac): Likewise.
17803         * modules/pow (configure.ac): Likewise.
17804         * modules/remainder (configure.ac): Likewise.
17805         * modules/rint (configure.ac): Likewise.
17806         * modules/sin (configure.ac): Likewise.
17807         * modules/sinh (configure.ac): Likewise.
17808         * modules/tan (configure.ac): Likewise.
17809         * modules/tanh (configure.ac): Likewise.
17810         * modules/y0 (configure.ac): Likewise.
17811         * modules/y1 (configure.ac): Likewise.
17812         * modules/yn (configure.ac): Likewise.
17813
17814 2010-01-24  Bruno Haible  <bruno@clisp.org>
17815
17816         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17817         * tests/test-acosl.c (x): New variable.
17818         (main): Store argument in x and fetch it from x.
17819         * tests/test-asinl.c (x): New variable.
17820         (main): Store argument in x and fetch it from x.
17821         * tests/test-atanl.c (x): New variable.
17822         (main): Store argument in x and fetch it from x.
17823         * tests/test-cosl.c (x): New variable.
17824         (main): Store argument in x and fetch it from x.
17825         * tests/test-expl.c (x): New variable.
17826         (main): Store argument in x and fetch it from x.
17827         * tests/test-logl.c (x): New variable.
17828         (main): Store argument in x and fetch it from x.
17829         * tests/test-sinl.c (x): New variable.
17830         (main): Store argument in x and fetch it from x.
17831         * tests/test-sqrtl.c (x): New variable.
17832         (main): Store argument in x and fetch it from x.
17833         * tests/test-tanl.c (x): New variable.
17834         (main): Store argument in x and fetch it from x.
17835
17836 2010-01-24  Bruno Haible  <bruno@clisp.org>
17837
17838         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17839         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17840         assignments to the initial TESTS_ENVIRONMENT.
17841         * doc/gnulib.texi (Unit test modules): Document it.
17842         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17843         TESTS_ENVIRONMENT.
17844         * modules/btowc-tests (Makefile.am): Likewise.
17845         * modules/c-stack-tests (Makefile.am): Likewise.
17846         * modules/c-strcase-tests (Makefile.am): Likewise.
17847         * modules/copy-file-tests (Makefile.am): Likewise.
17848         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17849         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17850         * modules/mbrtowc-tests (Makefile.am): Likewise.
17851         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17852         * modules/mbscasestr-tests (Makefile.am): Likewise.
17853         * modules/mbschr-tests (Makefile.am): Likewise.
17854         * modules/mbscspn-tests (Makefile.am): Likewise.
17855         * modules/mbsinit-tests (Makefile.am): Likewise.
17856         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17857         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17858         * modules/mbspbrk-tests (Makefile.am): Likewise.
17859         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17860         * modules/mbsrchr-tests (Makefile.am): Likewise.
17861         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17862         * modules/mbsspn-tests (Makefile.am): Likewise.
17863         * modules/mbsstr-tests (Makefile.am): Likewise.
17864         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17865         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17866         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17867         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17868         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17869         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17870         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17871         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17872         * modules/wcrtomb-tests (Makefile.am): Likewise.
17873         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17874         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17875         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17876         assignments from TESTS_ENVIRONMENT.
17877         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17878         augmentation.
17879         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17880         * modules/atexit-tests (Makefile.am): Likewise.
17881         * modules/binary-io-tests (Makefile.am): Likewise.
17882         * modules/closein-tests (Makefile.am): Likewise.
17883         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17884         * modules/exclude-tests (Makefile.am): Likewise.
17885         * modules/fflush-tests (Makefile.am): Likewise.
17886         * modules/fpending-tests (Makefile.am): Likewise.
17887         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17888         * modules/freadahead-tests (Makefile.am): Likewise.
17889         * modules/freadptr-tests (Makefile.am): Likewise.
17890         * modules/freadseek-tests (Makefile.am): Likewise.
17891         * modules/fseek-tests (Makefile.am): Likewise.
17892         * modules/fseeko-tests (Makefile.am): Likewise.
17893         * modules/ftell-tests (Makefile.am): Likewise.
17894         * modules/ftello-tests (Makefile.am): Likewise.
17895         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17896         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17897         * modules/lseek-tests (Makefile.am): Likewise.
17898         * modules/parse-duration-tests (Makefile.am): Likewise.
17899         * modules/perror-tests (Makefile.am): Likewise.
17900         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17901         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17902         * modules/pipe-tests (Makefile.am): Likewise.
17903         * modules/pread-tests (Makefile.am): Likewise.
17904         * modules/printf-posix-tests (Makefile.am): Likewise.
17905         * modules/select-tests (Makefile.am): Likewise.
17906         * modules/sigpipe-tests (Makefile.am): Likewise.
17907         * modules/tsearch-tests (Makefile.am): Likewise.
17908         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17909         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17910         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17911         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17912         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17913         * modules/version-etc-tests (Makefile.am): Likewise.
17914         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17915         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17916         * modules/xalloc-die-tests (Makefile.am): Likewise.
17917         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17918         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17919         * modules/xstrtol-tests (Makefile.am): Likewise.
17920         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17921         * modules/yesno-tests (Makefile.am): Likewise.
17922         Suggested by Jim Meyering.
17923
17924 2010-01-24  Bruno Haible  <bruno@clisp.org>
17925
17926         More documentation.
17927         * doc/gnulib.texi (Writing modules): New chapter.
17928         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17929         the new chapter.
17930
17931 2010-01-24  Jim Meyering  <meyering@redhat.com>
17932
17933         maint.mk: do not prepend "./" after filtering
17934         * top/maint.mk (_prepend_srcdir_prefix): New variable
17935         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17936         "./" when $(srcdir) is ".".
17937
17938         define STREQ(a,b) consistently, removing useless parentheses
17939         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17940         since the only risk is that "a" or "b" contains an unparenthesized
17941         comma, but if either did that, STREQ would have 3 or more arguments.
17942         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17943         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17944         * lib/hash-triple.c (STREQ): Likewise.
17945         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17946         * lib/getugroups.c (STREQ): Likewise.
17947
17948 2010-01-23  Jim Meyering  <meyering@redhat.com>
17949
17950         maint.mk: fix syntax-check in a non-srcdir build directory
17951         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17952         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17953
17954 2010-01-22  Jim Meyering  <meyering@redhat.com>
17955
17956         userspec: add unit tests
17957         * tests/test-userspec.c: New file.
17958         * modules/userspec-tests: Likewise.
17959
17960 2010-01-21  Jim Meyering  <meyering@redhat.com>
17961
17962         maint.mk: handle source file names containing "." robustly
17963         * top/maint.mk (_dot_escaped_srcdir): Define.
17964         (VC_LIST): Use it in LHS of sed substitution.
17965
17966 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17967
17968         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17969         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17970         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17971         from a non-srcdir build.
17972
17973 2010-01-20  Eric Blake  <ebb9@byu.net>
17974
17975         warn-on-use: use instead of link-warning
17976         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17977         * modules/unistd (Depends-on, Makefile.am): Likewise.
17978         * modules/arpa_inet (Depends-on): Replace link-warning with
17979         warn-on-use.
17980         (Makefile.am): Update rules accordingly.
17981         * modules/ctype (Depends-on, Makefile.am): Likewise.
17982         * modules/dirent (Depends-on, Makefile.am): Likewise.
17983         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17984         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17985         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17986         * modules/locale (Depends-on, Makefile.am): Likewise.
17987         * modules/math (Depends-on, Makefile.am): Likewise.
17988         * modules/search (Depends-on, Makefile.am): Likewise.
17989         * modules/signal (Depends-on, Makefile.am): Likewise.
17990         * modules/spawn (Depends-on, Makefile.am): Likewise.
17991         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17992         * modules/string (Depends-on, Makefile.am): Likewise.
17993         * modules/strings (Depends-on, Makefile.am): Likewise.
17994         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17995         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17996         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17997         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17998         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17999         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18000         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18001         * modules/wchar (Depends-on, Makefile.am): Likewise.
18002         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18003         should be poisoned.
18004         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18005         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18006         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18007         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18009         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18010         * m4/math_h.m4 (gl_MATH_H): Likewise.
18011         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18012         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18013         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18014         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18015         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18016         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18017         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18018         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18019         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18020         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18022         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18023         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18024         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18025         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18026         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18027         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18028         GL_LINK_WARNING.
18029         * lib/ctype.in.h: Likewise.
18030         * lib/dirent.in.h: Likewise.
18031         * lib/fcntl.in.h: Likewise.
18032         * lib/inttypes.in.h: Likewise.
18033         * lib/langinfo.in.h: Likewise.
18034         * lib/locale.in.h: Likewise.
18035         * lib/math.in.h: Likewise.
18036         * lib/search.in.h: Likewise.
18037         * lib/signal.in.h: Likewise.
18038         * lib/spawn.in.h: Likewise.
18039         * lib/stdio.in.h: Likewise.
18040         * lib/stdlib.in.h: Likewise.
18041         * lib/string.in.h: Likewise.
18042         * lib/strings.in.h: Likewise.
18043         * lib/sys_file.in.h: Likewise.
18044         * lib/sys_ioctl.in.h: Likewise.
18045         * lib/sys_select.in.h: Likewise.
18046         * lib/sys_socket.in.h: Likewise.
18047         * lib/sys_stat.in.h: Likewise.
18048         * lib/sys_times.in.h: Likewise.
18049         * lib/sys_utsname.in.h: Likewise.
18050         * lib/unistd.in.h: Likewise.
18051         * lib/wchar.in.h: Likewise.
18052
18053 2010-01-20  Bruno Haible  <bruno@clisp.org>
18054
18055         Avoid duplicate -lm.
18056         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18057         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18058         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18060         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18061         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18062         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18063         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18064         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18065         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18066         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18067         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18068         Reported by Paolo Bonzini.
18069
18070 2010-01-19  Bruno Haible  <bruno@clisp.org>
18071
18072         langinfo, nl_langinfo: Relicense under LGPLv2+.
18073         * modules/langinfo (License): Change to LGPLv2+.
18074         * modules/nl_langinfo (License): Likewise.
18075         Patch by David Lutterkort <lutter@redhat.com>.
18076
18077 2010-01-19  Bruno Haible  <bruno@clisp.org>
18078
18079         Avoid compilation error with cc on OSF/1 5.1.
18080         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18081         statement, not before.
18082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18083
18084 2010-01-18  Bruno Haible  <bruno@clisp.org>
18085
18086         Avoid a link error due to the __printf__ symbol.
18087         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18088         and 2.6.x.
18089         (__format__, __printf__): Remove definitions.
18090         * lib/argp-fmtstream.h: Likewise.
18091         * lib/argp.h: Likewise.
18092         * lib/error.h: Likewise.
18093         * lib/vasnprintf.h: Likewise.
18094         * lib/xprintf.h: Likewise.
18095         * lib/xvasprintf.h: Likewise.
18096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18097
18098 2010-01-18  Bruno Haible  <bruno@clisp.org>
18099
18100         Tests for module 'tanl'.
18101         * modules/tanl-tests: New file.
18102         * tests/test-tanl.c: New file.
18103
18104         Tests for module 'sqrtl'.
18105         * modules/sqrtl-tests: New file.
18106         * tests/test-sqrtl.c: New file.
18107
18108         Tests for module 'sinl'.
18109         * modules/sinl-tests: New file.
18110         * tests/test-sinl.c: New file.
18111
18112         Tests for module 'logl'.
18113         * modules/logl-tests: New file.
18114         * tests/test-logl.c: New file.
18115
18116         Tests for module 'expl'.
18117         * modules/expl-tests: New file.
18118         * tests/test-expl.c: New file.
18119
18120         Tests for module 'cosl'.
18121         * modules/cosl-tests: New file.
18122         * tests/test-cosl.c: New file.
18123
18124         Tests for module 'atanl'.
18125         * modules/atanl-tests: New file.
18126         * tests/test-atanl.c: New file.
18127
18128         Tests for module 'asinl'.
18129         * modules/asinl-tests: New file.
18130         * tests/test-asinl.c: New file.
18131
18132         Tests for module 'acosl'.
18133         * modules/acosl-tests: New file.
18134         * tests/test-acosl.c: New file.
18135
18136         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18137         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18138         tanl): Use the standard gnulib idiom.
18139         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18140         * lib/sinl.c: Likewise.
18141         * lib/tanl.c: Don't include trigl.c.
18142         (kernel_tanl): Make static.
18143         * lib/sincosl.c: Include trigl.h first.
18144         * lib/trigl.c: Likewise.
18145         * m4/acosl.m4: New file.
18146         * m4/asinl.m4: New file.
18147         * m4/atanl.m4: New file.
18148         * m4/cosl.m4: New file.
18149         * m4/expl.m4: New file.
18150         * m4/logl.m4: New file.
18151         * m4/sinl.m4: New file.
18152         * m4/sqrtl.m4: New file.
18153         * m4/tanl.m4: New file.
18154         * m4/mathl.m4: Remove file.
18155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18156         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18157         Don't initialize GNULIB_MATHL.
18158         * modules/acosl: New file.
18159         * modules/asinl: New file.
18160         * modules/atanl: New file.
18161         * modules/cosl: New file.
18162         * modules/expl: New file.
18163         * modules/logl: New file.
18164         * modules/sinl: New file.
18165         * modules/sqrtl: New file.
18166         * modules/tanl: New file.
18167         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18168         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18169         substitute GNULIB_MATHL.
18170         * modules/mathl: Rewritten.
18171         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18172         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18173         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18174         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18175         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18176         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18177         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18178         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18179         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18180
18181 2010-01-18  Bruno Haible  <bruno@clisp.org>
18182
18183         sqrt: Make gl_FUNC_SQRT requirable.
18184         * m4/sqrt.m4: New file.
18185         * modules/sqrt (Files): Add it.
18186         (configure.ac): Invoke gl_FUNC_SQRT.
18187
18188 2010-01-18  Bruno Haible  <bruno@clisp.org>
18189
18190         New modules for common <math.h> functions.
18191         * m4/mathfunc.m4: New file.
18192         * modules/acos: New file.
18193         * modules/asin: New file.
18194         * modules/atan: New file.
18195         * modules/atan2: New file.
18196         * modules/cbrt: New file.
18197         * modules/copysign: New file.
18198         * modules/cos: New file.
18199         * modules/cosh: New file.
18200         * modules/erf: New file.
18201         * modules/erfc: New file.
18202         * modules/exp: New file.
18203         * modules/fabs: New file.
18204         * modules/fmod: New file.
18205         * modules/hypot: New file.
18206         * modules/j0: New file.
18207         * modules/j1: New file.
18208         * modules/jn: New file.
18209         * modules/ldexp: New file.
18210         * modules/lgamma: New file.
18211         * modules/log: New file.
18212         * modules/log10: New file.
18213         * modules/log1p: New file.
18214         * modules/logb: New file.
18215         * modules/modf: New file.
18216         * modules/nextafter: New file.
18217         * modules/pow: New file.
18218         * modules/remainder: New file.
18219         * modules/rint: New file.
18220         * modules/sin: New file.
18221         * modules/sinh: New file.
18222         * modules/sqrt: New file.
18223         * modules/tan: New file.
18224         * modules/tanh: New file.
18225         * modules/y0: New file.
18226         * modules/y1: New file.
18227         * modules/yn: New file.
18228         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18229         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18230         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18231         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18232         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18233         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18234         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18235         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18236         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18237         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18238         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18239         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18240         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18241         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18242         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18243         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18244         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18245         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18246         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18247         * doc/posix-functions/log.texi: Mention the 'log' module.
18248         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18249         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18250         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18251         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18252         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18253         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18254         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18255         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18256         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18257         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18258         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18259         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18260         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18261         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18262         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18263         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18264
18265 2010-01-18  Jim Meyering  <meyering@redhat.com>
18266
18267         ignore-value: relax license to LGPLv2+
18268         * modules/ignore-value (License): Relax to LGPLv2+.
18269
18270         getdate: don't leak when TZ contains two or more '"'s
18271         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18272         double quote in TZ after the first one.
18273
18274         readtokens: do not leak internal token_lengths buffer
18275         * lib/readtokens.c (readtokens): Free the local, lengths,
18276         when the supplied "token_lengths" parameter is NULL.
18277
18278 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18279
18280         Fix a couple of missing LIBTHREAD link failures on AIX.
18281         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18282         $(LIBTHREAD).
18283         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18284
18285         Link test-poll against INET_PTON_LIB.
18286         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18287         for inet_pton on Solaris 10.
18288
18289 2010-01-17  Bruno Haible  <bruno@clisp.org>
18290
18291         unistdio/*-sprintf: Fix typo in module description.
18292         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18293         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18294         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18295         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18296         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18297         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18298         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18300
18301 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18302
18303         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18304         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18305         variables in shell case patterns, for AIX and HP-UX ksh.
18306
18307         Split large sed scripts, for HP-UX sed.
18308         * modules/stdio: Split sed scripts around 50 sed commands,
18309         to avoid HP-UX limit of 99 commands, in the near future.
18310         * modules/string: Likewise.
18311         * modules/unistd: Likewise.
18312
18313         gnulib-tool: avoid writing in the current directory.
18314         * gnulib-tool (func_emit_lib_Makefile_am)
18315         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18316         not in the current directory, so concurrent gnulib-tool
18317         instances do not interfere.
18318
18319 2010-01-16  Jim Meyering  <meyering@redhat.com>
18320
18321         doc: update users.txt
18322         * users.txt: Add grep.
18323         (diffutils, gzip): Update URLs.
18324
18325 2010-01-12  Bruno Haible  <bruno@clisp.org>
18326
18327         posix_spawn: Avoid test failure on Cygwin.
18328         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18329         characters.
18330         Reported by Simon Josefsson.
18331
18332 2010-01-12  Bruno Haible  <bruno@clisp.org>
18333
18334         * tests/test-cond.c (main): When skipping the test, show the reason.
18335
18336 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18337
18338         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18339
18340 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18341
18342         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18343         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18344
18345 2010-01-12  Eric Blake  <ebb9@byu.net>
18346
18347         build: guarantee AS_VAR_IF
18348         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18349         (gl_AS_VAR_IF): Move...
18350         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18351         Reported by Simon Josefsson.
18352
18353 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18354
18355         * lib/stdio.in.h: Fix typo.
18356
18357 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18358
18359         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18360         libgpg-error.
18361
18362 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18363
18364         * tests/test-xalloc-die.sh: Use $EXEEXT.
18365
18366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18367             Bruno Haible  <bruno@clisp.org>
18368
18369         getlogin, getlogin_r: Avoid test failure.
18370         * tests/test-getlogin.c: Include <stdio.h>.
18371         (main): Skip the test when the function fails because stdin is not a
18372         tty.
18373         * tests/test-getlogin_r.c: Include <stdio.h>.
18374         (main): Skip the test when the function fails because stdin is not a
18375         tty.
18376
18377 2010-01-11  Eric Blake  <ebb9@byu.net>
18378
18379         tests: avoid more large file warnings
18380         * tests/test-fflush.c: Avoid warning about ftell use.
18381         * tests/test-fseek.c: Avoid warning about fseek use.
18382
18383 2010-01-10  Bruno Haible  <bruno@clisp.org>
18384
18385         nproc: Work better on Linux when /proc and /sys are not mounted.
18386         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18387         as lower bound when, on glibc/Linux systems,
18388         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18389         Suggested by Pádraig Brady <P@draigbrady.com>.
18390         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18391
18392         nproc: Refactor.
18393         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18394         extracted from num_processors.
18395         (num_processors): Call it.
18396
18397 2010-01-11  Jim Meyering  <meyering@redhat.com>
18398
18399         utimecmp: avoid new warning from upcoming gcc-4.5.0
18400         * lib/utimecmp.c (BILLION): Define using #define rather than an
18401         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18402
18403 2010-01-11  Eric Blake  <ebb9@byu.net>
18404
18405         math: add portability warnings for classification macros
18406         * modules/math (Depends-on): Add warn-on-use.
18407         (Makefile.am): Provide new substitutions.
18408         * m4/math_h.m4 (gl_MATH_H): Require inline.
18409         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18410         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18411         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18412         implement warnings.
18413
18414         unistd: warn on use of environ without module
18415         * modules/unistd (Depends-on): Add warn-on-use.
18416         (Makefile.am): Provide new substitutions.
18417         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18418         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18419
18420         stdio: warn on suspicious uses
18421         * modules/stdio (Depends-on): Add warn-on-use.
18422         (Makefile.am): Provide new substitutions.
18423         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18424         fseeko.
18425         * lib/stdio.in.h (gets): Always warn on use.
18426         (fseek, ftell): Adjust when warnings are issued, and honor
18427         _GL_NO_LARGE_FILES as a way to silence the warning.
18428         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18429         any warning about large file offsets.
18430         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18431         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18432         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18433         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18434         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18435         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18436         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18437         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18438
18439         warn-on-use: new module
18440         * modules/warn-on-use: New file.
18441         * build-aux/warn-on-use.h: Likewise.
18442         * m4/warn-on-use.m4: Likewise.
18443         * MODULES.html.sh (Support for building): Mention it.
18444
18445 2010-01-10  Bruno Haible  <bruno@clisp.org>
18446
18447         Tests for module 'unistr/u32-strdup'.
18448         * modules/unistr/u32-strdup-tests: New file.
18449         * tests/unistr/test-u32-strdup.c: New file.
18450
18451         Tests for module 'unistr/u16-strdup'.
18452         * modules/unistr/u16-strdup-tests: New file.
18453         * tests/unistr/test-u16-strdup.c: New file.
18454
18455         Tests for module 'unistr/u8-strdup'.
18456         * modules/unistr/u8-strdup-tests: New file.
18457         * tests/unistr/test-u8-strdup.c: New file.
18458         * tests/unistr/test-strdup.h: New file.
18459
18460         Tests for module 'unistr/u32-strncmp'.
18461         * modules/unistr/u32-strncmp-tests: New file.
18462         * tests/unistr/test-u32-strncmp.c: New file.
18463
18464         Tests for module 'unistr/u16-strncmp'.
18465         * modules/unistr/u16-strncmp-tests: New file.
18466         * tests/unistr/test-u16-strncmp.c: New file.
18467
18468         Tests for module 'unistr/u8-strncmp'.
18469         * modules/unistr/u8-strncmp-tests: New file.
18470         * tests/unistr/test-u8-strncmp.c: New file.
18471         * tests/unistr/test-strncmp.h: New file.
18472
18473         Tests for module 'unistr/u32-strcoll'.
18474         * modules/unistr/u32-strcoll-tests: New file.
18475         * tests/unistr/test-u32-strcoll.c: New file.
18476
18477         Tests for module 'unistr/u16-strcoll'.
18478         * modules/unistr/u16-strcoll-tests: New file.
18479         * tests/unistr/test-u16-strcoll.c: New file.
18480
18481         Tests for module 'unistr/u8-strcoll'.
18482         * modules/unistr/u8-strcoll-tests: New file.
18483         * tests/unistr/test-u8-strcoll.c: New file.
18484
18485         Tests for module 'unistr/u32-strcmp'.
18486         * modules/unistr/u32-strcmp-tests: New file.
18487         * tests/unistr/test-u32-strcmp.c: New file.
18488         * tests/unistr/test-u32-strcmp.h: New file.
18489
18490         Tests for module 'unistr/u16-strcmp'.
18491         * modules/unistr/u16-strcmp-tests: New file.
18492         * tests/unistr/test-u16-strcmp.c: New file.
18493         * tests/unistr/test-u16-strcmp.h: New file.
18494
18495         Tests for module 'unistr/u8-strcmp'.
18496         * modules/unistr/u8-strcmp-tests: New file.
18497         * tests/unistr/test-u8-strcmp.c: New file.
18498         * tests/unistr/test-u8-strcmp.h: New file.
18499         * tests/unistr/test-strcmp.h: New file.
18500
18501         Tests for module 'unistr/u32-strncat'.
18502         * modules/unistr/u32-strncat-tests: New file.
18503         * tests/unistr/test-u32-strncat.c: New file.
18504
18505         Tests for module 'unistr/u16-strncat'.
18506         * modules/unistr/u16-strncat-tests: New file.
18507         * tests/unistr/test-u16-strncat.c: New file.
18508
18509         Tests for module 'unistr/u8-strncat'.
18510         * modules/unistr/u8-strncat-tests: New file.
18511         * tests/unistr/test-u8-strncat.c: New file.
18512         * tests/unistr/test-strncat.h: New file.
18513
18514         Tests for module 'unistr/u32-strcat'.
18515         * modules/unistr/u32-strcat-tests: New file.
18516         * tests/unistr/test-u32-strcat.c: New file.
18517
18518         Tests for module 'unistr/u16-strcat'.
18519         * modules/unistr/u16-strcat-tests: New file.
18520         * tests/unistr/test-u16-strcat.c: New file.
18521
18522         Tests for module 'unistr/u8-strcat'.
18523         * modules/unistr/u8-strcat-tests: New file.
18524         * tests/unistr/test-u8-strcat.c: New file.
18525         * tests/unistr/test-strcat.h: New file.
18526
18527         Tests for module 'unistr/u32-stpncpy'.
18528         * modules/unistr/u32-stpncpy-tests: New file.
18529         * tests/unistr/test-u32-stpncpy.c: New file.
18530
18531         Tests for module 'unistr/u16-stpncpy'.
18532         * modules/unistr/u16-stpncpy-tests: New file.
18533         * tests/unistr/test-u16-stpncpy.c: New file.
18534
18535         Tests for module 'unistr/u8-stpncpy'.
18536         * modules/unistr/u8-stpncpy-tests: New file.
18537         * tests/unistr/test-u8-stpncpy.c: New file.
18538         * tests/unistr/test-stpncpy.h: New file.
18539
18540         Tests for module 'unistr/u32-strncpy'.
18541         * modules/unistr/u32-strncpy-tests: New file.
18542         * tests/unistr/test-u32-strncpy.c: New file.
18543
18544         Tests for module 'unistr/u16-strncpy'.
18545         * modules/unistr/u16-strncpy-tests: New file.
18546         * tests/unistr/test-u16-strncpy.c: New file.
18547
18548         Tests for module 'unistr/u8-strncpy'.
18549         * modules/unistr/u8-strncpy-tests: New file.
18550         * tests/unistr/test-u8-strncpy.c: New file.
18551         * tests/unistr/test-strncpy.h: New file.
18552
18553         Tests for module 'unistr/u32-stpcpy'.
18554         * modules/unistr/u32-stpcpy-tests: New file.
18555         * tests/unistr/test-u32-stpcpy.c: New file.
18556
18557         Tests for module 'unistr/u16-stpcpy'.
18558         * modules/unistr/u16-stpcpy-tests: New file.
18559         * tests/unistr/test-u16-stpcpy.c: New file.
18560
18561         Tests for module 'unistr/u8-stpcpy'.
18562         * modules/unistr/u8-stpcpy-tests: New file.
18563         * tests/unistr/test-u8-stpcpy.c: New file.
18564         * tests/unistr/test-stpcpy.h: New file.
18565
18566         Tests for module 'unistr/u32-strcpy'.
18567         * modules/unistr/u32-strcpy-tests: New file.
18568         * tests/unistr/test-u32-strcpy.c: New file.
18569
18570         Tests for module 'unistr/u16-strcpy'.
18571         * modules/unistr/u16-strcpy-tests: New file.
18572         * tests/unistr/test-u16-strcpy.c: New file.
18573
18574         Tests for module 'unistr/u8-strcpy'.
18575         * modules/unistr/u8-strcpy-tests: New file.
18576         * tests/unistr/test-u8-strcpy.c: New file.
18577         * tests/unistr/test-strcpy.h: New file.
18578
18579         Tests for module 'unistr/u32-strnlen'.
18580         * modules/unistr/u32-strnlen-tests: New file.
18581         * tests/unistr/test-u32-strnlen.c: New file.
18582
18583         Tests for module 'unistr/u16-strnlen'.
18584         * modules/unistr/u16-strnlen-tests: New file.
18585         * tests/unistr/test-u16-strnlen.c: New file.
18586
18587         Tests for module 'unistr/u8-strnlen'.
18588         * modules/unistr/u8-strnlen-tests: New file.
18589         * tests/unistr/test-u8-strnlen.c: New file.
18590         * tests/unistr/test-strnlen.h: New file.
18591
18592         Tests for module 'unistr/u32-strlen'.
18593         * modules/unistr/u32-strlen-tests: New file.
18594         * tests/unistr/test-u32-strlen.c: New file.
18595
18596         Tests for module 'unistr/u16-strlen'.
18597         * modules/unistr/u16-strlen-tests: New file.
18598         * tests/unistr/test-u16-strlen.c: New file.
18599
18600         Tests for module 'unistr/u8-strlen'.
18601         * modules/unistr/u8-strlen-tests: New file.
18602         * tests/unistr/test-u8-strlen.c: New file.
18603
18604         Tests for module 'unistr/u32-prev'.
18605         * modules/unistr/u32-prev-tests: New file.
18606         * tests/unistr/test-u32-prev.c: New file.
18607
18608         Tests for module 'unistr/u16-prev'.
18609         * modules/unistr/u16-prev-tests: New file.
18610         * tests/unistr/test-u16-prev.c: New file.
18611
18612         Tests for module 'unistr/u8-prev'.
18613         * modules/unistr/u8-prev-tests: New file.
18614         * tests/unistr/test-u8-prev.c: New file.
18615
18616         Tests for module 'unistr/u32-next'.
18617         * modules/unistr/u32-next-tests: New file.
18618         * tests/unistr/test-u32-next.c: New file.
18619
18620         Tests for module 'unistr/u16-next'.
18621         * modules/unistr/u16-next-tests: New file.
18622         * tests/unistr/test-u16-next.c: New file.
18623
18624         Tests for module 'unistr/u8-next'.
18625         * modules/unistr/u8-next-tests: New file.
18626         * tests/unistr/test-u8-next.c: New file.
18627
18628         Tests for module 'unistr/u32-strmbtouc'.
18629         * modules/unistr/u32-strmbtouc-tests: New file.
18630         * tests/unistr/test-u32-strmbtouc.c: New file.
18631
18632         Tests for module 'unistr/u16-strmbtouc'.
18633         * modules/unistr/u16-strmbtouc-tests: New file.
18634         * tests/unistr/test-u16-strmbtouc.c: New file.
18635
18636         Tests for module 'unistr/u8-strmbtouc'.
18637         * modules/unistr/u8-strmbtouc-tests: New file.
18638         * tests/unistr/test-u8-strmbtouc.c: New file.
18639
18640         Tests for module 'unistr/u32-strmblen'.
18641         * modules/unistr/u32-strmblen-tests: New file.
18642         * tests/unistr/test-u32-strmblen.c: New file.
18643
18644         Tests for module 'unistr/u16-strmblen'.
18645         * modules/unistr/u16-strmblen-tests: New file.
18646         * tests/unistr/test-u16-strmblen.c: New file.
18647
18648         Tests for module 'unistr/u8-strmblen'.
18649         * modules/unistr/u8-strmblen-tests: New file.
18650         * tests/unistr/test-u8-strmblen.c: New file.
18651
18652         Tests for module 'unistr/u32-cpy-alloc'.
18653         * modules/unistr/u32-cpy-alloc-tests: New file.
18654         * tests/unistr/test-u32-cpy-alloc.c: New file.
18655
18656         Tests for module 'unistr/u16-cpy-alloc'.
18657         * modules/unistr/u16-cpy-alloc-tests: New file.
18658         * tests/unistr/test-u16-cpy-alloc.c: New file.
18659
18660         Tests for module 'unistr/u8-cpy-alloc'.
18661         * modules/unistr/u8-cpy-alloc-tests: New file.
18662         * tests/unistr/test-u8-cpy-alloc.c: New file.
18663         * tests/unistr/test-cpy-alloc.h: New file.
18664
18665         Tests for module 'unistr/u32-mbsnlen'.
18666         * modules/unistr/u32-mbsnlen-tests: New file.
18667         * tests/unistr/test-u32-mbsnlen.c: New file.
18668
18669         Tests for module 'unistr/u16-mbsnlen'.
18670         * modules/unistr/u16-mbsnlen-tests: New file.
18671         * tests/unistr/test-u16-mbsnlen.c: New file.
18672
18673         Tests for module 'unistr/u8-mbsnlen'.
18674         * modules/unistr/u8-mbsnlen-tests: New file.
18675         * tests/unistr/test-u8-mbsnlen.c: New file.
18676
18677         Tests for module 'unistr/u32-chr'.
18678         * modules/unistr/u32-chr-tests: New file.
18679         * tests/unistr/test-u32-chr.c: New file.
18680
18681         Tests for module 'unistr/u16-chr'.
18682         * modules/unistr/u16-chr-tests: New file.
18683         * tests/unistr/test-u16-chr.c: New file.
18684
18685         Tests for module 'unistr/u8-chr'.
18686         * modules/unistr/u8-chr-tests: New file.
18687         * tests/unistr/test-u8-chr.c: New file.
18688         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18689
18690         Tests for module 'unistr/u32-cmp2'.
18691         * modules/unistr/u32-cmp2-tests: New file.
18692         * tests/unistr/test-u32-cmp2.c: New file.
18693
18694         Tests for module 'unistr/u16-cmp2'.
18695         * modules/unistr/u16-cmp2-tests: New file.
18696         * tests/unistr/test-u16-cmp2.c: New file.
18697
18698         Tests for module 'unistr/u8-cmp2'.
18699         * modules/unistr/u8-cmp2-tests: New file.
18700         * tests/unistr/test-u8-cmp2.c: New file.
18701         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18702
18703         Tests for module 'unistr/u32-cmp'.
18704         * modules/unistr/u32-cmp-tests: New file.
18705         * tests/unistr/test-u32-cmp.c: New file.
18706
18707         Tests for module 'unistr/u16-cmp'.
18708         * modules/unistr/u16-cmp-tests: New file.
18709         * tests/unistr/test-u16-cmp.c: New file.
18710
18711         Tests for module 'unistr/u8-cmp'.
18712         * modules/unistr/u8-cmp-tests: New file.
18713         * tests/unistr/test-u8-cmp.c: New file.
18714         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18715
18716         Tests for module 'unistr/u32-set'.
18717         * modules/unistr/u32-set-tests: New file.
18718         * tests/unistr/test-u32-set.c: New file.
18719
18720         Tests for module 'unistr/u16-set'.
18721         * modules/unistr/u16-set-tests: New file.
18722         * tests/unistr/test-u16-set.c: New file.
18723
18724         Tests for module 'unistr/u8-set'.
18725         * modules/unistr/u8-set-tests: New file.
18726         * tests/unistr/test-u8-set.c: New file.
18727         * tests/unistr/test-set.h: New file.
18728
18729         Tests for module 'unistr/u32-move'.
18730         * modules/unistr/u32-move-tests: New file.
18731         * tests/unistr/test-u32-move.c: New file.
18732
18733         Tests for module 'unistr/u16-move'.
18734         * modules/unistr/u16-move-tests: New file.
18735         * tests/unistr/test-u16-move.c: New file.
18736
18737         Tests for module 'unistr/u8-move'.
18738         * modules/unistr/u8-move-tests: New file.
18739         * tests/unistr/test-u8-move.c: New file.
18740         * tests/unistr/test-move.h: New file.
18741
18742         Tests for module 'unistr/u32-cpy'.
18743         * modules/unistr/u32-cpy-tests: New file.
18744         * tests/unistr/test-u32-cpy.c: New file.
18745
18746         Tests for module 'unistr/u16-cpy'.
18747         * modules/unistr/u16-cpy-tests: New file.
18748         * tests/unistr/test-u16-cpy.c: New file.
18749
18750         Tests for module 'unistr/u8-cpy'.
18751         * modules/unistr/u8-cpy-tests: New file.
18752         * tests/unistr/test-u8-cpy.c: New file.
18753         * tests/unistr/test-cpy.h: New file.
18754
18755 2010-01-09  Bruno Haible  <bruno@clisp.org>
18756
18757         Tests for module 'unistr/u32-uctomb'.
18758         * modules/unistr/u32-uctomb-tests: New file.
18759         * tests/unistr/test-u32-uctomb.c: New file.
18760
18761         Tests for module 'unistr/u16-uctomb'.
18762         * modules/unistr/u16-uctomb-tests: New file.
18763         * tests/unistr/test-u16-uctomb.c: New file.
18764
18765         Tests for module 'unistr/u8-uctomb'.
18766         * modules/unistr/u8-uctomb-tests: New file.
18767         * tests/unistr/test-u8-uctomb.c: New file.
18768
18769         Tests for module 'unistr/u32-mbtoucr'.
18770         * modules/unistr/u32-mbtoucr-tests: New file.
18771         * tests/unistr/test-u32-mbtoucr.c: New file.
18772
18773         Tests for module 'unistr/u16-mbtoucr'.
18774         * modules/unistr/u16-mbtoucr-tests: New file.
18775         * tests/unistr/test-u16-mbtoucr.c: New file.
18776
18777         Tests for module 'unistr/u8-mbtoucr'.
18778         * modules/unistr/u8-mbtoucr-tests: New file.
18779         * tests/unistr/test-u8-mbtoucr.c: New file.
18780
18781         Tests for module 'unistr/u32-mbtouc'.
18782         * modules/unistr/u32-mbtouc-tests: New file.
18783         * tests/unistr/test-u32-mbtouc.c: New file.
18784
18785         Tests for module 'unistr/u16-mbtouc'.
18786         * modules/unistr/u16-mbtouc-tests: New file.
18787         * tests/unistr/test-u16-mbtouc.c: New file.
18788
18789         Tests for module 'unistr/u8-mbtouc'.
18790         * modules/unistr/u8-mbtouc-tests: New file.
18791         * tests/unistr/test-u8-mbtouc.c: New file.
18792
18793         Tests for module 'unistr/u32-mbtouc-unsafe'.
18794         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18795         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18796         * tests/unistr/test-u32-mbtouc.h: New file.
18797
18798         Tests for module 'unistr/u16-mbtouc-unsafe'.
18799         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18800         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18801         * tests/unistr/test-u16-mbtouc.h: New file.
18802
18803         Tests for module 'unistr/u8-mbtouc-unsafe'.
18804         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18805         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18806         * tests/unistr/test-u8-mbtouc.h: New file.
18807
18808         Tests for module 'unistr/u32-mblen'.
18809         * modules/unistr/u32-mblen-tests: New file.
18810         * tests/unistr/test-u32-mblen.c: New file.
18811
18812         Tests for module 'unistr/u16-mblen'.
18813         * modules/unistr/u16-mblen-tests: New file.
18814         * tests/unistr/test-u16-mblen.c: New file.
18815
18816         Tests for module 'unistr/u8-mblen'.
18817         * modules/unistr/u8-mblen-tests: New file.
18818         * tests/unistr/test-u8-mblen.c: New file.
18819
18820         Tests for module 'unistr/u32-to-u16'.
18821         * modules/unistr/u32-to-u16-tests: New file.
18822         * tests/unistr/test-u32-to-u16.c: New file.
18823
18824         Tests for module 'unistr/u32-to-u8'.
18825         * modules/unistr/u32-to-u8-tests: New file.
18826         * tests/unistr/test-u32-to-u8.c: New file.
18827
18828         Tests for module 'unistr/u16-to-u32'.
18829         * modules/unistr/u16-to-u32-tests: New file.
18830         * tests/unistr/test-u16-to-u32.c: New file.
18831
18832         Tests for module 'unistr/u16-to-u8'.
18833         * modules/unistr/u16-to-u8-tests: New file.
18834         * tests/unistr/test-u16-to-u8.c: New file.
18835
18836         Tests for module 'unistr/u8-to-u32'.
18837         * modules/unistr/u8-to-u32-tests: New file.
18838         * tests/unistr/test-u8-to-u32.c: New file.
18839
18840         Tests for module 'unistr/u8-to-u16'.
18841         * modules/unistr/u8-to-u16-tests: New file.
18842         * tests/unistr/test-u8-to-u16.c: New file.
18843
18844         Tests for module 'unistr/u32-check'.
18845         * modules/unistr/u32-check-tests: New file.
18846         * tests/unistr/test-u32-check.c: New file.
18847
18848         Tests for module 'unistr/u16-check'.
18849         * modules/unistr/u16-check-tests: New file.
18850         * tests/unistr/test-u16-check.c: New file.
18851
18852         Tests for module 'unistr/u8-check'.
18853         * modules/unistr/u8-check-tests: New file.
18854         * tests/unistr/test-u8-check.c: New file.
18855
18856         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18857         (category_equals): New function.
18858         (main): Add more tests.
18859         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18860
18861         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18862
18863 2010-01-10  Bruno Haible  <bruno@clisp.org>
18864
18865         unistr/u*-strcoll: Try harder to distinguish different strings.
18866         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18867         compare s1 and s2 to see if they are different.
18868
18869 2010-01-10  Bruno Haible  <bruno@clisp.org>
18870
18871         unistr/u*-stpncpy: Fix the return value.
18872         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18873         description of the return value consistent with stpncpy in glibc.
18874         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18875         written non-NUL unit.
18876
18877 2010-01-10  Bruno Haible  <bruno@clisp.org>
18878
18879         unistr/u*-next: Add missing dependencies.
18880         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18881         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18882         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18883
18884 2010-01-10  Bruno Haible  <bruno@clisp.org>
18885
18886         unistr/u8-mbsnlen: Fix return value for incomplete character.
18887         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18888         u8_mblen.
18889         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18890         Remove unistr/u8-mblen.
18891         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18892         u16_mblen.
18893         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18894         Remove unistr/u16-mblen.
18895
18896 2010-01-10  Bruno Haible  <bruno@clisp.org>
18897
18898         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18899         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18900         Reported by Brian Gough <bjg@gnu.org> and
18901         Chris Clayton <chris2553@googlemail.com> via
18902         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18903
18904 2010-01-09  Bruno Haible  <bruno@clisp.org>
18905
18906         unistr/u16-to-u32: Reject invalid input.
18907         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18908         u16_mbtouc.
18909         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18910         Remove unistr/u16-mbtouc.
18911
18912         unistr/u16-to-u8: Reject invalid input.
18913         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18914         u16_mbtouc.
18915         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18916         Remove unistr/u16-mbtouc.
18917
18918         unistr/u8-to-u32: Reject invalid input.
18919         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18920         u8_mbtouc.
18921         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18922         Remove unistr/u8-mbtouc.
18923
18924         unistr/u8-to-u16: Reject invalid input.
18925         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18926         u8_mbtouc.
18927         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18928         Remove unistr/u8-mbtouc.
18929
18930 2010-01-09  Bruno Haible  <bruno@clisp.org>
18931
18932         Tests for module 'getlogin'.
18933         * modules/getlogin-tests: New file.
18934         * tests/test-getlogin.c: New file.
18935
18936         New module 'getlogin'.
18937         * lib/unistd.in.h (getlogin): New declaration.
18938         * lib/getlogin.c: New file.
18939         * m4/getlogin.m4: New file.
18940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18941         HAVE_GETLOGIN.
18942         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18943         HAVE_GETLOGIN.
18944         * modules/getlogin: New file.
18945         * doc/posix-functions/getlogin.texi: Mention the new module.
18946         Reported by John W. Eaton <jwe@gnu.org>.
18947
18948 2010-01-09  Bruno Haible  <bruno@clisp.org>
18949
18950         getlogin_r: Support for native Windows.
18951         * lib/getlogin_r.c: Include <windows.h>
18952         (getlogin_r): Implement for native Windows.
18953         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18954         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18955         via John W. Eaton <jwe@gnu.org>.
18956
18957 2010-01-09  Bruno Haible  <bruno@clisp.org>
18958
18959         getlogin_r: Small fixes.
18960         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18961         succeeds.
18962         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18963         before testing whether getlogin_r is declared. No need to set
18964         HAVE_DECL_GETLOGIN_R to 1.
18965         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18966
18967 2010-01-09  Bruno Haible  <bruno@clisp.org>
18968
18969         * lib/unistd.in.h (getlogin_r): Add comment.
18970
18971 2010-01-09  Bruno Haible  <bruno@clisp.org>
18972
18973         Tests for module 'getlogin_r'.
18974         * modules/getlogin_r-tests: New file.
18975         * tests/test-getlogin_r.c: New file.
18976
18977 2010-01-09  Jim Meyering  <meyering@redhat.com>
18978
18979         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18980         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18981         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18982
18983 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18984
18985         * lib/dup2.c (rpl_dup2): Improve comment.
18986
18987 2010-01-08  Eric Blake  <ebb9@byu.net>
18988
18989         maint.mk: allow packages to add makefile @@ exceptions
18990         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18991         (sc_makefile_check): Rename...
18992         (sc_makefile_at_at_check): ...to this, and use hook.
18993
18994         dup2: work around mingw bug
18995         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18996         Reported by Simon Josefsson.
18997
18998 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18999
19000         glob: Fix C++ compilation.
19001         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19002         C++.
19003
19004 2010-01-07  Bruno Haible  <bruno@clisp.org>
19005
19006         Fix indentation of wctype.in.h, broken since 2007-01-06.
19007         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19008
19009 2010-01-07  Bruno Haible  <bruno@clisp.org>
19010
19011         mbslen: Avoid collision with system function.
19012         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19013         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19014         * m4/mbslen.m4: New file.
19015         * modules/mbslen (Files): Add it.
19016         (configure.ac): Invoke gl_MBSLEN.
19017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19018         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19019         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19020         via Ian Beckwith <ianb@erislabs.net>.
19021
19022 2010-01-07  Bruno Haible  <bruno@clisp.org>
19023
19024         dirent: Document the last fix.
19025         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19026
19027 2010-01-07  Bruno Haible  <bruno@clisp.org>
19028
19029         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19030         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19031         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19032         va_list are defined.
19033         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19034         Reported by Eric Blake.
19035
19036 2010-01-07  Bruno Haible  <bruno@clisp.org>
19037
19038         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19039         * modules/xlist (Depends-on): Add 'list',
19040         * modules/xoset (Depends-on): Add 'oset'.
19041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19042
19043 2010-01-07  Bruno Haible  <bruno@clisp.org>
19044
19045         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19046         * doc/posix-functions/strncasecmp.texi: Likewise.
19047
19048 2010-01-07  Bruno Haible  <bruno@clisp.org>
19049
19050         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19051
19052 2010-01-07  John W. Eaton  <jwe@octave.org>
19053
19054         wctype: allow C++ use
19055         * lib/wctype.in.h: Add extern "C" block for C++.
19056
19057 2010-01-06  Eric Blake  <ebb9@byu.net>
19058
19059         maint.mk: detect incorrect GFDL usage
19060         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19061
19062 2010-01-06  Jim Meyering  <meyering@redhat.com>
19063         and Eric Blake  <ebb9@byu.net>
19064
19065         maint.mk: ignore multi-line copyright in NEWS
19066         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19067
19068 2010-01-06  Eric Blake  <ebb9@byu.net>
19069
19070         select: add missing dependency
19071         * modules/select-tests (Depends-on): Move sockets dependency...
19072         * modules/select (Depends-on): ...here.
19073         Reported by Ian Beckwith.
19074
19075         doc: regenerate INSTALL
19076         * doc/INSTALL: Reflect recent autoconf update.
19077         * doc/INSTALL.ISO: Likewise.
19078         * doc/INSTALL.UTF-8: Likewise.
19079
19080         pread: fix compilation on glibc
19081         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19082         Reported by Ralf Wildenhues.
19083
19084         dirent: fix test failure
19085         * lib/dirent.in.h (includes): Guarantee ino_t.
19086         Reported by Ralf Wildenhues.
19087
19088 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19089
19090         linkat, renameat: avoid bad free
19091         * lib/at-func2.c (at_func2): Fix typo.
19092         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19093
19094 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19095
19096         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19097         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19098         to avoid failure of symlink test later.
19099
19100 2010-01-06  Eric Blake  <ebb9@byu.net>
19101
19102         stdio, unistd: guarantee ssize_t
19103         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19104         2008 are exposed when needed.
19105         * lib/stdio.in.h (includes): Likewise.
19106         Reported by Ralf Wildenhues.
19107
19108 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19109
19110         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19111         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19112         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19113
19114 2010-01-06  Jim Meyering  <meyering@redhat.com>
19115
19116         readtokens: this module *does* require xalloc.h
19117         It uses only functions that were omitted by the old syntax-check rule.
19118         * lib/readtokens.c: Include "xalloc.h" once again.
19119         * modules/readtokens (Depends-on): Add xalloc.
19120         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19121
19122 2010-01-05  Eric Blake  <ebb9@byu.net>
19123
19124         maint: support 'make announcement' from a VPATH build
19125         * top/maint.mk (announcement): Look for correct NEWS file.
19126
19127 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19128
19129         utimens (fdutimens): ignore a negative FD, per contract
19130         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19131         when we have a valid file descriptor.  Otherwise, using a brand
19132         new glibc (with just-patched futimens that now fails with EBADF)
19133         would cause this function to fail with ENOSYS.
19134         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19135         See also http://bugzilla.redhat.com/552320.
19136
19137 2010-01-05  Eric Blake  <ebb9@byu.net>
19138
19139         strcase: document what it provides
19140         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19141         gnulib module.
19142         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19143         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19144
19145 2010-01-05  Jim Meyering  <meyering@redhat.com>
19146
19147         maint: remove useless inclusions of "xalloc.h"
19148         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19149         * lib/readtokens.c: Likewise.
19150         * lib/same.c: Likewise.
19151         * modules/getloadavg (Depends-on): Remove xalloc.
19152         * modules/readtokens: Likewise.
19153         * modules/same: Likewise.
19154
19155         maint.mk: include 4 more function names in alloca.h-checking regexp
19156         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19157         regexp.  Before, we would give a false-positive (saying alloca.h
19158         is included unnecessarily) when the only uses involved omitted symbols.
19159
19160         xalloc.h: use consistent formatting
19161         * lib/xalloc.h: Move declarations to start in the first column.
19162
19163 2010-01-05  Eric Blake  <ebb9@byu.net>
19164
19165         mkdir: avoid xalloc
19166         * lib/mkdir.c (includes): Drop unused header.
19167         Reported by John W. Eaton.
19168
19169 2010-01-04  Jim Meyering  <meyering@redhat.com>
19170
19171         nl_langinfo: avoid configure-time syntax error
19172         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19173         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19174         the empty string.  Don't let that provoke a shell syntax error.
19175
19176         regcomp, regexec, fnmatch: avoid array bounds read error
19177         * lib/regcomp.c (build_equiv_class): From glibc:
19178         Use only the low 24 bits of a findidx return value as an index
19179         into the weights array.  Patch by Ulrich Drepper:
19180         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19181         * lib/regexec.c (check_node_accept_bytes): Likewise.
19182         * lib/fnmatch_loop.c (FCT): Likewise.
19183
19184         regcomp: skip collseq lookup when there are no rules
19185         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19186         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19187
19188         regcomp: recognize ill-formed { } expressions
19189         * lib/regcomp.c (parse_dup_op): From glibc:
19190         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19191
19192         regcomp: fix typo in comment
19193         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19194         s/satisfy/satisfies/.
19195
19196         regcomp: sync from glibc: remove dead store
19197         * lib/regcomp.c (duplicate_node_closure): Remove useless
19198         search_duplicated_node call and dead store.
19199
19200         regcomp: sync from glibc; always use nl_langinfo
19201         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19202         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19203         * modules/regex (Depends-on): Add nl_langinfo.
19204
19205 2010-01-04  Eric Blake  <ebb9@byu.net>
19206
19207         fdopendir: fix configure test
19208         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19209
19210 2010-01-01  Bruno Haible  <bruno@clisp.org>
19211
19212         wchar: Remove unused configure check.
19213         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19214
19215 2010-01-01  Eric Blake  <ebb9@byu.net>
19216
19217         headers: make check of system header explicit
19218         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19219         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19220         ourselves.
19221         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19223         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19224         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19225         internals.
19226         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19227         missing.
19228         Suggested by Bruno Haible.
19229
19230 2010-01-01  Jim Meyering  <meyering@redhat.com>
19231
19232         ChangeLog: tweak to eliminate unnecessary copyright line
19233         * ChangeLog: Remove a copyright line that was mistakenly updated
19234         by today's update-copyright run.  Reported by Eric Blake.
19235
19236         test-update-copyright: don't let envvar setting cause test failure
19237         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19238
19239 2010-01-01  Bruno Haible  <bruno@clisp.org>
19240
19241         localename: Avoid gcc warning.
19242         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19243         function if it is not used.
19244
19245 2010-01-01  Jim Meyering  <meyering@redhat.com>
19246
19247         update nearly all FSF copyright year lists to include 2010
19248         Use the same procedure as for 2009, outlined in
19249         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19250
19251         version-etc: set COPYRIGHT_YEAR to 2010
19252         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19253
19254 2009-12-31  Eric Blake  <ebb9@byu.net>
19255
19256         doc: correct availability of cygwin 1.5.x getopt
19257         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19258         variables.
19259         * doc/posix-functions/opterr.texi (opterr): Likewise.
19260         * doc/posix-functions/optind.texi (optind): Likewise.
19261         * doc/posix-functions/optopt.texi (optopt): Likewise.
19262         * doc/posix-functions/tzname.texi (tzname): Likewise.
19263
19264         openat: update maintainer
19265         * modules/openat (Maintainer): Add myself.
19266
19267         utimens: avoid shadowing warning
19268         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19269         buffers into one, to avoid shadowing, as well as avoiding a
19270         redundant stat.
19271         Reported by Jim Meyering.
19272
19273         test-dup2: avoid compiler warning
19274         * tests/test-dup2.c (is_inheritable): Only define if used.
19275
19276 2010-01-01  Bruno Haible  <bruno@clisp.org>
19277
19278         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19279         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19280         defined, use wctomb instead of wcrtomb.
19281
19282 2010-01-01  Bruno Haible  <bruno@clisp.org>
19283
19284         iconv: Reject native Solaris iconv.
19285         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19286         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19287
19288 2009-12-31  Bruno Haible  <bruno@clisp.org>
19289
19290         * tests/test-signal.c (main): Remove test of 'SIG'.
19291
19292 2009-12-31  Bruno Haible  <bruno@clisp.org>
19293
19294         spawn: Fix incomplete fix.
19295         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19296         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19297         warnings for GNULIB_POSIXCHECK again.
19298         Reported by Eric Blake.
19299
19300 2009-12-31  Bruno Haible  <bruno@clisp.org>
19301
19302         Avoid namespace pollution on glibc systems.
19303         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19304         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19305         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19306         glibc systems.
19307
19308 2009-12-31  Bruno Haible  <bruno@clisp.org>
19309
19310         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19311         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19312         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19313         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19314         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19315         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19316         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19317
19318 2009-12-31  Bruno Haible  <bruno@clisp.org>
19319
19320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19321         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19322         afterwards.
19323
19324 2009-12-31  Bruno Haible  <bruno@clisp.org>
19325
19326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19327         SYS_UTSNAME_H.
19328
19329 2009-12-31  Bruno Haible  <bruno@clisp.org>
19330
19331         spawn: Fix misapplied patch.
19332         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19333         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19334         warnings for GNULIB_POSIXCHECK.
19335
19336 2009-12-31  Bruno Haible  <bruno@clisp.org>
19337
19338         times: Update after sys_times changed.
19339         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19340         * modules/times (Files): Add it.
19341         (configure.ac): Invoke gl_FUNC_TIMES.
19342
19343 2009-12-31  Bruno Haible  <bruno@clisp.org>
19344
19345         Use AC_C_INLINE where necessary.
19346         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19347         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19349         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19350         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19351         * m4/mbiter.m4 (gl_MBITER): Likewise.
19352         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19353         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19354         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19355         * modules/u64 (configure.ac): Likewise.
19356
19357 2009-12-31  Bruno Haible  <bruno@clisp.org>
19358
19359         Use AC_C_INLINE instead of module 'inline' where possible.
19360         * modules/inline (Description): Clarify purpose.
19361         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19362         * modules/count-one-bits (Depends-on): Remove inline.
19363         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19364         * modules/openat (Depends-on): Remove inline.
19365         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19366         instead of depending on module 'inline'.
19367         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19368         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19369         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19370         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19371         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19372         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19373         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19374         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19375         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19376         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19377         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19378         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19379         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19380         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19381         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19382         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19383         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19384         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19385         Likewise.
19386         * modules/unictype/property-ascii-hex-digit (Depends-on,
19387         configure.ac): Likewise.
19388         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19389         configure.ac): Likewise.
19390         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19391         configure.ac): Likewise.
19392         * modules/unictype/property-bidi-block-separator (Depends-on,
19393         configure.ac): Likewise.
19394         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19395         configure.ac): Likewise.
19396         * modules/unictype/property-bidi-common-separator (Depends-on,
19397         configure.ac): Likewise.
19398         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19399         Likewise.
19400         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19401         configure.ac): Likewise.
19402         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19403         configure.ac): Likewise.
19404         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19405         configure.ac): Likewise.
19406         * modules/unictype/property-bidi-european-digit (Depends-on,
19407         configure.ac): Likewise.
19408         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19409         configure.ac): Likewise.
19410         * modules/unictype/property-bidi-left-to-right (Depends-on,
19411         configure.ac): Likewise.
19412         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19413         configure.ac): Likewise.
19414         * modules/unictype/property-bidi-other-neutral (Depends-on,
19415         configure.ac): Likewise.
19416         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19417         Likewise.
19418         * modules/unictype/property-bidi-segment-separator (Depends-on,
19419         configure.ac): Likewise.
19420         * modules/unictype/property-bidi-whitespace (Depends-on,
19421         configure.ac): Likewise.
19422         * modules/unictype/property-combining (Depends-on, configure.ac):
19423         Likewise.
19424         * modules/unictype/property-composite (Depends-on, configure.ac):
19425         Likewise.
19426         * modules/unictype/property-currency-symbol (Depends-on,
19427         configure.ac): Likewise.
19428         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19429         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19430         Likewise.
19431         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19432         configure.ac): Likewise.
19433         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19434         Likewise.
19435         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19436         Likewise.
19437         * modules/unictype/property-extender (Depends-on, configure.ac):
19438         Likewise.
19439         * modules/unictype/property-format-control (Depends-on, configure.ac):
19440         Likewise.
19441         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19442         Likewise.
19443         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19444         Likewise.
19445         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19446         Likewise.
19447         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19448         Likewise.
19449         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19450         Likewise.
19451         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19452         Likewise.
19453         * modules/unictype/property-id-start (Depends-on, configure.ac):
19454         Likewise.
19455         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19456         Likewise.
19457         * modules/unictype/property-ids-binary-operator (Depends-on,
19458         configure.ac): Likewise.
19459         * modules/unictype/property-ids-trinary-operator (Depends-on,
19460         configure.ac): Likewise.
19461         * modules/unictype/property-ignorable-control (Depends-on,
19462         configure.ac): Likewise.
19463         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19464         Likewise.
19465         * modules/unictype/property-join-control (Depends-on, configure.ac):
19466         Likewise.
19467         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19468         Likewise.
19469         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19470         Likewise.
19471         * modules/unictype/property-logical-order-exception (Depends-on,
19472         configure.ac): Likewise.
19473         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19474         Likewise.
19475         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19476         * modules/unictype/property-non-break (Depends-on, configure.ac):
19477         Likewise.
19478         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19479         Likewise.
19480         * modules/unictype/property-numeric (Depends-on, configure.ac):
19481         Likewise.
19482         * modules/unictype/property-other-alphabetic (Depends-on,
19483         configure.ac): Likewise.
19484         * modules/unictype/property-other-default-ignorable-code-point
19485         (Depends-on, configure.ac): Likewise.
19486         * modules/unictype/property-other-grapheme-extend (Depends-on,
19487         configure.ac): Likewise.
19488         * modules/unictype/property-other-id-continue (Depends-on,
19489         configure.ac): Likewise.
19490         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19491         Likewise.
19492         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19493         Likewise.
19494         * modules/unictype/property-other-math (Depends-on, configure.ac):
19495         Likewise.
19496         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19497         Likewise.
19498         * modules/unictype/property-paired-punctuation (Depends-on,
19499         configure.ac): Likewise.
19500         * modules/unictype/property-paragraph-separator (Depends-on,
19501         configure.ac): Likewise.
19502         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19503         Likewise.
19504         * modules/unictype/property-pattern-white-space (Depends-on,
19505         configure.ac): Likewise.
19506         * modules/unictype/property-private-use (Depends-on, configure.ac):
19507         Likewise.
19508         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19509         Likewise.
19510         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19511         Likewise.
19512         * modules/unictype/property-radical (Depends-on, configure.ac):
19513         Likewise.
19514         * modules/unictype/property-sentence-terminal (Depends-on,
19515         configure.ac): Likewise.
19516         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19517         Likewise.
19518         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19519         * modules/unictype/property-terminal-punctuation (Depends-on,
19520         configure.ac): Likewise.
19521         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19522         Likewise.
19523         * modules/unictype/property-unassigned-code-value (Depends-on,
19524         configure.ac): Likewise.
19525         * modules/unictype/property-unified-ideograph (Depends-on,
19526         configure.ac): Likewise.
19527         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19528         Likewise.
19529         * modules/unictype/property-variation-selector (Depends-on,
19530         configure.ac): Likewise.
19531         * modules/unictype/property-white-space (Depends-on, configure.ac):
19532         Likewise.
19533         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19534         Likewise.
19535         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19536         Likewise.
19537         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19538         Likewise.
19539         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19540         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19541         Likewise.
19542
19543 2009-12-31  Bruno Haible  <bruno@clisp.org>
19544
19545         Remove unnecessary AC_C_INLINE invocation.
19546         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19547         since 2009-08-21.
19548
19549 2009-12-31  Jim Meyering  <meyering@redhat.com>
19550
19551         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19552         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19553         With this change, we can all remove the gpg_key_ID = ... definition
19554         from our respective cfg.mk files.
19555
19556         maint.mk: create announcement template in ~/, not in /tmp
19557         * top/maint.mk (emit_upload_commands): Adjust.
19558         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19559         Remove temporary file, .ci-msg.
19560
19561 2009-12-31  Eric Blake  <ebb9@byu.net>
19562
19563         link-warning: always build headers with link warnings
19564         * modules/arpa_inet (Makefile.am): Always build replacement
19565         header.
19566         * modules/ctype (Makefile.am): Likewise.
19567         * modules/dirent (Makefile.am): Likewise.
19568         * modules/inttypes (Makefile.am): Likewise.
19569         * modules/langinfo (Makefile.am): Likewise.
19570         * modules/locale (Makefile.am): Likewise.
19571         * modules/spawn (Makefile.am): Likewise.
19572         * modules/sys_file (Makefile.am): Likewise.
19573         * modules/sys_ioctl (Makefile.am): Likewise.
19574         * modules/sys_select (Makefile.am): Likewise.
19575         * modules/sys_socket (Makefile.am): Likewise.
19576         * modules/sys_times (Makefile.am): Likewise.
19577         * modules/sys_utsname (Makefile.am): Likewise.
19578         * modules/sys_wait (Makefile.am): Likewise.
19579         * modules/wchar (Makefile.am): Likewise.
19580         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19581         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19582         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19583         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19584         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19585         Likewise.
19586         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19587         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19588         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19589         Likewise.
19590         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19591         Likewise.
19592         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19594         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19596         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19598         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19599         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19600         (gl_WCHAR_H_DEFAULTS): Likewise.
19601
19602 2009-12-31  Eric Blake  <ebb9@byu.net>
19603
19604         signal, spawn: use link warnings
19605         * lib/signal.in.h (sigset_t): Make unconditional.
19606         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19607         (sigpending, sigprocmask, sigaction): Add link warnings.
19608         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19609         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19610         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19611         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19612         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19613         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19614         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19615         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19616         (posix_spawn_file_actions_destroy)
19617         (posix_spawn_file_actions_addopen)
19618         (posix_spawn_file_actions_addclose)
19619         (posix_spawn_file_actions_adddup2): Likewise.
19620         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19621         * tests/test-signal.c (main): Enhance test.
19622
19623         spawn: improve wrapper support
19624         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19625         (gl_SPAWN_H_DEFAULTS): New defaults.
19626         * modules/spawn (Makefile.am): Substitute them.
19627         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19628         Only declare if missing or broken.
19629
19630         sys_times, sys_utsname: use include_next
19631         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19632         header.
19633         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19635         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19636         * modules/sys_times (Depends-on): Add include_next.
19637         (Makefile.am): Substitute additional values.
19638         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19639         * lib/sys_times.in.h (includes): Include native header, if
19640         available.
19641         * lib/sys_utsname.in.h (includes): Likewise.
19642         * tests/test-sys_times.c (main): Enhance test.
19643
19644         fdutimensat: revert prior patch
19645         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19646         utimens.h.
19647         Reported by Bruno Haible.
19648
19649 2009-12-30  Eric Blake  <ebb9@byu.net>
19650
19651         sys_wait: drop link-warning dependency
19652         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19653         link-warning efforts.
19654         * lib/sys_wait.in.h: Likewise.
19655
19656         fdutimensat: remove bogus dependency
19657         * modules/fdutimensat (Depends-on): Drop inline.
19658
19659         unistd: fix typo
19660         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19661
19662 2009-12-30  Bruno Haible  <bruno@clisp.org>
19663
19664         Fix compilation error with Solaris cc.
19665         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19666         * lib/unicase/u16-is-invariant.c: Likewise.
19667         * lib/unicase/u32-is-invariant.c: Likewise.
19668         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19669
19670 2009-12-30  Bruno Haible  <bruno@clisp.org>
19671
19672         Fix test crash.
19673         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19674         locales.
19675         Reported by Simon Josefsson <simon@josefsson.org>.
19676
19677 2009-12-30  Bruno Haible  <bruno@clisp.org>
19678
19679         Fix compilation error on most platforms.
19680         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19681         Reported by Simon Josefsson <simon@josefsson.org>
19682         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19683
19684 2009-12-30  Eric Blake  <ebb9@byu.net>
19685
19686         futimens, utimensat: work around ntfs-3g bug
19687         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19688         a ctime bug is present, and expand workaround to cover ntfs-3g.
19689         * lib/utimens.c (fdutimens, lutimens): Likewise.
19690         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19691         (validate_timespec): Adjust return value.
19692         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19693         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19694         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19695
19696 2009-12-29  Eric Blake  <ebb9@byu.net>
19697
19698         link-warning: make usage consistent
19699         * modules/ctype (Depends-on): Add link-warning.
19700         (Makefile.am): Update rules accordingly.
19701         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19702         * modules/locale (Depends-on, Makefile.am): Likewise.
19703         * modules/sys_file (Makefile.am): Likewise.
19704         * modules/getopt-posix (Makefile.am): Delete unused link warning
19705         efforts.
19706         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19707         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19708         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19709         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19710
19711         stdio: remove unused variables
19712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19713         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19714         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19715
19716         tests: test more substitute headers
19717         * modules/ctype-tests: New file.
19718         * modules/dirent-tests: Likewise.
19719         * modules/spawn-tests: Likewise.
19720         * modules/sys_file-tests: Likewise.
19721         * modules/sys_ioctl-tests: Likewise.
19722         * modules/sys_wait-tests: Likewise.
19723         * tests/test-ctype.c: Likewise.
19724         * tests/test-dirent.c: Likewise.
19725         * tests/test-spawn.c: Likewise.
19726         * tests/test-sys_file.c: Likewise.
19727         * tests/test-sys_ioctl.c: Likewise.
19728         * tests/test-sys_wait.c: Likewise.
19729         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19730         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19731         whether or not flock is in use.
19732
19733         tests: remove License section from module
19734         * modules/arpa_inet-tests: Remove unneeded section.
19735         * modules/byteswap-tests: Likewise.
19736         * modules/ceilf-tests: Likewise.
19737         * modules/ceill-tests: Likewise.
19738         * modules/crypto/des-tests: Likewise.
19739         * modules/crypto/gc-arcfour-tests: Likewise.
19740         * modules/crypto/gc-arctwo-tests: Likewise.
19741         * modules/crypto/gc-des-tests: Likewise.
19742         * modules/crypto/gc-hmac-md5-tests: Likewise.
19743         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19744         * modules/crypto/gc-md2-tests: Likewise.
19745         * modules/crypto/gc-md4-tests: Likewise.
19746         * modules/crypto/gc-md5-tests: Likewise.
19747         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19748         * modules/crypto/gc-rijndael-tests: Likewise.
19749         * modules/crypto/gc-sha1-tests: Likewise.
19750         * modules/crypto/gc-tests: Likewise.
19751         * modules/crypto/md2-tests: Likewise.
19752         * modules/crypto/md4-tests: Likewise.
19753         * modules/fcntl-h-tests: Likewise.
19754         * modules/floorf-tests: Likewise.
19755         * modules/floorl-tests: Likewise.
19756         * modules/frexp-nolibm-tests: Likewise.
19757         * modules/frexp-tests: Likewise.
19758         * modules/frexpl-nolibm-tests: Likewise.
19759         * modules/frexpl-tests: Likewise.
19760         * modules/getaddrinfo-tests: Likewise.
19761         * modules/inttypes-tests: Likewise.
19762         * modules/isfinite-tests: Likewise.
19763         * modules/isinf-tests: Likewise.
19764         * modules/ldexpl-tests: Likewise.
19765         * modules/locale-tests: Likewise.
19766         * modules/math-tests: Likewise.
19767         * modules/netdb-tests: Likewise.
19768         * modules/netinet_in-tests: Likewise.
19769         * modules/printf-frexp-tests: Likewise.
19770         * modules/printf-frexpl-tests: Likewise.
19771         * modules/priv-set-tests: Likewise.
19772         * modules/random_r-tests: Likewise.
19773         * modules/round-tests: Likewise.
19774         * modules/roundf-tests: Likewise.
19775         * modules/roundl-tests: Likewise.
19776         * modules/search-tests: Likewise.
19777         * modules/select-tests: Likewise.
19778         * modules/signal-tests: Likewise.
19779         * modules/stdbool-tests: Likewise.
19780         * modules/stddef-tests: Likewise.
19781         * modules/stdint-tests: Likewise.
19782         * modules/stdio-tests: Likewise.
19783         * modules/stdlib-tests: Likewise.
19784         * modules/string-tests: Likewise.
19785         * modules/strings-tests: Likewise.
19786         * modules/sys_select-tests: Likewise.
19787         * modules/sys_socket-tests: Likewise.
19788         * modules/sys_stat-tests: Likewise.
19789         * modules/sys_time-tests: Likewise.
19790         * modules/sys_utsname-tests: Likewise.
19791         * modules/sysexits-tests: Likewise.
19792         * modules/time-tests: Likewise.
19793         * modules/trunc-tests: Likewise.
19794         * modules/truncf-tests: Likewise.
19795         * modules/truncl-tests: Likewise.
19796         * modules/tsearch-tests: Likewise.
19797         * modules/unistd-tests: Likewise.
19798         * modules/wchar-tests: Likewise.
19799         * modules/wctype-tests: Likewise.
19800
19801         tests: fix license on several tests
19802         * tests/test-des.c: Update to GPLv3+.
19803         * tests/test-flock.c: Likewise.
19804         * tests/test-fsync.c: Likewise.
19805         * tests/test-futimens.h: Likewise.
19806         * tests/test-gc-arcfour.c: Likewise.
19807         * tests/test-gc-arctwo.c: Likewise.
19808         * tests/test-gc-des.c: Likewise.
19809         * tests/test-gc-hmac-md5.c: Likewise.
19810         * tests/test-gc-hmac-sha1.c: Likewise.
19811         * tests/test-gc-md2.c: Likewise.
19812         * tests/test-gc-md4.c: Likewise.
19813         * tests/test-gc-md5.c: Likewise.
19814         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19815         * tests/test-gc-rijndael.c: Likewise.
19816         * tests/test-gc-sha1.c: Likewise.
19817         * tests/test-gc.c: Likewise.
19818         * tests/test-getcwd.c: Likewise.
19819         * tests/test-link.c: Likewise.
19820         * tests/test-link.h: Likewise.
19821         * tests/test-lutimens.h: Likewise.
19822         * tests/test-md2.c: Likewise.
19823         * tests/test-md4.c: Likewise.
19824         * tests/test-mkdir.h: Likewise.
19825         * tests/test-rename.c: Likewise.
19826         * tests/test-rename.h: Likewise.
19827         * tests/test-safe-alloc.c: Likewise.
19828         * tests/test-utimens-common.h: Likewise.
19829         * tests/test-utimens.h: Likewise.
19830
19831         maint: sync license texts
19832         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19833         * doc/gpl-3.0.texi: Revert copyright year update.
19834         * doc/lgpl-3.0.texi: Likewise.
19835
19836 2009-12-29  Jim Meyering  <meyering@redhat.com>
19837
19838         update nearly all FSF copyright year lists to include 2009
19839         The files named by the following are exempted:
19840             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19841               test -f "$dst" && { echo "$dst"; continue; }
19842               test -d "$dst" || continue
19843               echo "$dst"/$(basename "$src")
19844             done > exempt
19845             git ls-files tests/unictype >> exempt
19846         In the remaining files, convert to all-interval notation if
19847         - there is already at least one year interval like 2000-2003
19848         - the file is maintained by me
19849         - the file is in lib/uni*/, where that style already prevails
19850         Otherwise, use update-copyright's default.
19851
19852 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19853         and Eric Blake  <ebb9@byu.net>
19854
19855         tests: don't require debug system() to pass
19856         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19857         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19858         * tests/test-unlink.h (test_unlink_func): Likewise.
19859         * tests/test-fstatat.c (main): ...into callers.
19860         * tests/test-lstat.c (main): Likewise.
19861         * tests/test-rmdir.c (main): Likewise.
19862         * tests/test-unlink.c (main): Likewise.
19863         * tests/test-unlinkat.c (main): Likewise.
19864         * tests/test-areadlink-with-size.c (main): Don't require a
19865         debug-only system call to pass, aiding cross-testing to mingw.
19866         * tests/test-areadlink.c (main): Likewise.
19867         * tests/test-areadlinkat-with-size.c (main): Likewise.
19868         * tests/test-areadlinkat.c (main): Likewise.
19869         * tests/test-canonicalize-lgpl.c (main): Likewise.
19870         * tests/test-canonicalize.c (main): Likewise.
19871         * tests/test-chown.c (main): Likewise.
19872         * tests/test-fchownat.c (main): Likewise.
19873         * tests/test-lchown.c (main): Likewise.
19874         * tests/test-fdutimensat.c (main): Likewise.
19875         * tests/test-futimens.c (main): Likewise.
19876         * tests/test-link.c (main): Likewise.
19877         * tests/test-linkat.c (main): Likewise.
19878         * tests/test-mkdir.c (main): Likewise.
19879         * tests/test-mkdirat.c (main): Likewise.
19880         * tests/test-mkfifo.c (main): Likewise.
19881         * tests/test-mkfifoat.c (main): Likewise.
19882         * tests/test-mknod.c (main): Likewise.
19883         * tests/test-readlink.c (main): Likewise.
19884         * tests/test-remove.c (main): Likewise.
19885         * tests/test-rename.c (main): Likewise.
19886         * tests/test-renameat.c (main): Likewise.
19887         * tests/test-symlink.c (main): Likewise.
19888         * tests/test-symlinkat.c (main): Likewise.
19889         * tests/test-utimens.c (main): Likewise.
19890         * tests/test-utimensat.c (main): Likewise.
19891
19892 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19893
19894         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19895         on $(UNUSED_PARAMETER_H) to avoid build failure.
19896
19897 2009-12-28  Jim Meyering  <meyering@redhat.com>
19898
19899         update-copyright: you may specify a max. line length other than 72
19900         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19901
19902         maint: use consistent FSF copyright line syntax
19903         * lib/posixtm.c: Add missing comma in FSF copyright line.
19904         * lib/posixtm.h: Likewise.
19905         * lib/getugroups.c: Add missing ", Inc.".
19906
19907         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19908         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19909         FSF copyright line.  Remove trailing blanks.
19910
19911 2009-12-28  Eric Blake  <ebb9@byu.net>
19912
19913         test-dup2: reduce dependencies
19914         * modules/cloexec (Configure.ac): Set witness.
19915         * modules/dup2-tests (Depends-on): Drop cloexec.
19916         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19917         not present.
19918         Suggested by Bruno Haible.
19919
19920 2009-12-26  Bruno Haible  <bruno@clisp.org>
19921
19922         Remove an unneeded dependency.
19923         * modules/fseterr (Depends-on): Remove dup2.
19924
19925 2009-12-26  Eric Blake  <ebb9@byu.net>
19926
19927         tests: use macros.h in more places
19928         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19929         (ASSERT_STREAM): Provide default of stderr.
19930         * tests/test-dirent-safer.c: Include macros.h, using alternate
19931         stream for assertions.
19932         * tests/test-dup-safer.c: Likewise.
19933         * tests/test-freopen-safer.c: Likewise.
19934         * tests/test-getopt.c: Likewise.
19935         * tests/test-openat-safer.c: Likewise.
19936         * tests/test-pipe.c: Likewise.
19937         * tests/test-popen-safer.c: Likewise.
19938         * modules/dirent-safer-tests (Files): Include macros.h.
19939         * modules/unistd-safer-tests (Files): Likewise.
19940         * modules/freopen-safer-tests (Files): Likewise.
19941         * modules/getopt-posix-tests (Files): Likewise.
19942         * modules/openat-safer-tests (Files): Likewise.
19943         * modules/pipe-tests (Files): Likewise.
19944
19945 2009-12-26  Bruno Haible  <bruno@clisp.org>
19946
19947         javacomp: Portability fix.
19948         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19949         that it also works on Solaris.
19950
19951 2009-12-26  Bruno Haible  <bruno@clisp.org>
19952
19953         localename: Fix storage allocation of gl_locale_name_thread's result.
19954         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19955         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19956         all platforms that have 'uselocale'.
19957         (gl_locale_name_thread_unsafe): New function, extracted from
19958         gl_locale_name_thread.
19959         (gl_locale_name_thread): Call struniq on all platforms that have
19960         'uselocale'.
19961         * tests/test-localename.c (test_locale_name_thread): Check that the
19962         resulting strings are permanently allocated.
19963         * modules/localename-tests (Depends-on): Add strdup.
19964
19965 2009-12-26  Bruno Haible  <bruno@clisp.org>
19966
19967         * tests/test-localename.c (categories): Fill in the strings.
19968
19969 2009-12-26  Jim Meyering  <meyering@redhat.com>
19970
19971         isdir: complete the removal of m4/isdir.m4
19972         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19973
19974         isdir: clean up, since at least grep still uses it
19975         * lib/isdir.c: Include "isdir.h".
19976         (S_ISDIR): Remove now-unneeded definition.
19977         * modules/isdir (Files): Add lib/isdir.h.
19978         * lib/isdir.h: New file, with declaration.
19979         * m4/isdir.m4: Remove file -- unneeded.
19980
19981 2009-12-25  Bruno Haible  <bruno@clisp.org>
19982
19983         selinux-h: Make generated .h files standalone.
19984         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19985         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19986         * lib/se-selinux.in.h: Likewise.
19987         * modules/selinux-h (Depends-on): Add unused-parameter.
19988         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19989         selinux/selinux.h and selinux/context.h.
19990         Suggested by Eric Blake.
19991
19992 2009-12-25  Bruno Haible  <bruno@clisp.org>
19993
19994         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19995         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19996         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19997         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19998         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19999
20000 2009-12-24  Bruno Haible  <bruno@clisp.org>
20001
20002         openat: Fix warning.
20003         * lib/openat-proc.c: Include <unistd.h>.
20004
20005 2009-12-24  Bruno Haible  <bruno@clisp.org>
20006
20007         New module 'unused-parameter'.
20008         * build-aux/unused-parameter.h: New file, extracted from earlier
20009         gnulib-common.m4.
20010         * modules/unused-parameter: New file.
20011         * lib/unistr.h: Include unused-parameter.h.
20012         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20013         _GL_UNUSED.
20014         * modules/unistr/base (Depends-on): Add unused-parameter.
20015
20016 2009-12-24  Bruno Haible  <bruno@clisp.org>
20017
20018         Add missing dependencies to 'extensions' module.
20019         * m4/extensions.m4: Add comment.
20020         * modules/accept4 (Depends-on): Add extensions.
20021         * modules/dup3 (Depends-on): Likewise.
20022         * modules/fcntl (Depends-on): Likewise.
20023         * modules/futimens (Depends-on): Likewise.
20024         * modules/mknod (Depends-on): Likewise.
20025         * modules/pipe2 (Depends-on): Likewise.
20026         * modules/stat-time (Depends-on): Likewise.
20027         * modules/strcasestr-simple (Depends-on): Likewise.
20028         * modules/strsignal (Depends-on): Likewise.
20029         * modules/utimensat (Depends-on): Likewise.
20030         * modules/localcharset (Depends-on): Likewise. Needed because of
20031         gl_FCNTL_O_FLAGS.
20032         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20033         AC_TYPE_MBSTATE_T.
20034         * modules/wcsnrtombs (Depends-on): Likewise.
20035         * modules/wcsrtombs (Depends-on): Likewise.
20036
20037 2009-12-24  Bruno Haible  <bruno@clisp.org>
20038
20039         binary-io: Avoid gcc warning due to SET_BINARY.
20040         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20041         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20042
20043 2009-12-24  Bruno Haible  <bruno@clisp.org>
20044
20045         Avoid future namespace pollution on glibc systems.
20046         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20047         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20048         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20049         glibc systems.
20050
20051 2009-12-24  Bruno Haible  <bruno@clisp.org>
20052
20053         Refactor common macros used in tests.
20054         * tests/macros.h: New file.
20055         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20056         and/or <stdlib.h>, if appropriate.
20057         (ASSERT, SIZEOF): Remove macros.
20058         * tests/test-areadlink-with-size.c: Likewise.
20059         * tests/test-areadlinkat.c: Likewise.
20060         * tests/test-areadlinkat-with-size.c: Likewise.
20061         * tests/test-argmatch.c: Likewise.
20062         * tests/test-argv-iter.c: Likewise.
20063         * tests/test-array-mergesort.c: Likewise.
20064         * tests/test-array_list.c: Likewise.
20065         * tests/test-array_oset.c: Likewise.
20066         * tests/test-avltree_list.c: Likewise.
20067         * tests/test-avltree_oset.c: Likewise.
20068         * tests/test-avltreehash_list.c: Likewise.
20069         * tests/test-base64.c: Likewise.
20070         * tests/test-binary-io.c: Likewise.
20071         * tests/test-bitrotate.c: Likewise.
20072         * tests/test-btowc.c: Likewise.
20073         * tests/test-byteswap.c: Likewise.
20074         * tests/test-c-ctype.c: Likewise.
20075         * tests/test-c-stack.c: Likewise.
20076         * tests/test-c-strcasecmp.c: Likewise.
20077         * tests/test-c-strcasestr.c: Likewise.
20078         * tests/test-c-strncasecmp.c: Likewise.
20079         * tests/test-c-strstr.c: Likewise.
20080         * tests/test-canonicalize-lgpl.c: Likewise.
20081         * tests/test-canonicalize.c: Likewise.
20082         * tests/test-carray_list.c: Likewise.
20083         * tests/test-ceilf1.c: Likewise.
20084         * tests/test-ceilf2.c: Likewise.
20085         * tests/test-ceill.c: Likewise.
20086         * tests/test-chown.c: Likewise.
20087         * tests/test-cloexec.c: Likewise.
20088         * tests/test-copy-acl.c: Likewise.
20089         * tests/test-copy-file.c: Likewise.
20090         * tests/test-count-one-bits.c: Likewise.
20091         * tests/test-dprintf-posix.c: Likewise.
20092         * tests/test-dup2.c: Likewise.
20093         * tests/test-dup3.c: Likewise.
20094         * tests/test-duplocale.c: Likewise.
20095         * tests/test-fbufmode.c: Likewise.
20096         * tests/test-fchdir.c: Likewise.
20097         * tests/test-fchownat.c: Likewise.
20098         * tests/test-fcntl-safer.c: Likewise.
20099         * tests/test-fcntl.c: Likewise.
20100         * tests/test-fdopendir.c: Likewise.
20101         * tests/test-fdutimensat.c: Likewise.
20102         * tests/test-fflush2.c: Likewise.
20103         * tests/test-file-has-acl.c: Likewise.
20104         * tests/test-filevercmp.c: Likewise.
20105         * tests/test-flock.c: Likewise.
20106         * tests/test-floorf1.c: Likewise.
20107         * tests/test-floorf2.c: Likewise.
20108         * tests/test-floorl.c: Likewise.
20109         * tests/test-fnmatch.c: Likewise.
20110         * tests/test-fopen.h: Likewise.
20111         * tests/test-fpending.c: Likewise.
20112         * tests/test-fprintf-posix.c: Likewise.
20113         * tests/test-fpurge.c: Likewise.
20114         * tests/test-freadable.c: Likewise.
20115         * tests/test-freadahead.c: Likewise.
20116         * tests/test-freading.c: Likewise.
20117         * tests/test-freadptr.c: Likewise.
20118         * tests/test-freadptr2.c: Likewise.
20119         * tests/test-freadseek.c: Likewise.
20120         * tests/test-freopen.c: Likewise.
20121         * tests/test-frexp.c: Likewise.
20122         * tests/test-frexpl.c: Likewise.
20123         * tests/test-fseek.c: Likewise.
20124         * tests/test-fseeko.c: Likewise.
20125         * tests/test-fstatat.c: Likewise.
20126         * tests/test-fstrcmp.c: Likewise.
20127         * tests/test-fsync.c: Likewise.
20128         * tests/test-ftell.c: Likewise.
20129         * tests/test-ftello.c: Likewise.
20130         * tests/test-func.c: Likewise.
20131         * tests/test-futimens.c: Likewise.
20132         * tests/test-fwritable.c: Likewise.
20133         * tests/test-fwriting.c: Likewise.
20134         * tests/test-getcwd.c: Likewise.
20135         * tests/test-getdate.c: Likewise.
20136         * tests/test-getdelim.c: Likewise.
20137         * tests/test-getdtablesize.c: Likewise.
20138         * tests/test-getgroups.c: Likewise.
20139         * tests/test-getline.c: Likewise.
20140         * tests/test-getndelim2.c: Likewise.
20141         * tests/test-glob.c: Likewise.
20142         * tests/test-hash.c: Likewise.
20143         * tests/test-i-ring.c: Likewise.
20144         * tests/test-iconv-utf.c: Likewise.
20145         * tests/test-iconv.c: Likewise.
20146         * tests/test-idpriv-drop.c: Likewise.
20147         * tests/test-idpriv-droptemp.c: Likewise.
20148         * tests/test-inet_ntop.c: Likewise.
20149         * tests/test-inet_pton.c: Likewise.
20150         * tests/test-isblank.c: Likewise.
20151         * tests/test-isfinite.c: Likewise.
20152         * tests/test-isinf.c: Likewise.
20153         * tests/test-isnan.c: Likewise.
20154         * tests/test-isnand.h: Likewise.
20155         * tests/test-isnanf.h: Likewise.
20156         * tests/test-isnanl.h: Likewise.
20157         * tests/test-lchown.c: Likewise.
20158         * tests/test-ldexpl.c: Likewise.
20159         * tests/test-link.c: Likewise.
20160         * tests/test-linkat.c: Likewise.
20161         * tests/test-linked_list.c: Likewise.
20162         * tests/test-linkedhash_list.c: Likewise.
20163         * tests/test-localename.c: Likewise.
20164         * tests/test-lseek.c: Likewise.
20165         * tests/test-lstat.c: Likewise.
20166         * tests/test-mbmemcasecmp.c: Likewise.
20167         * tests/test-mbmemcasecoll.c: Likewise.
20168         * tests/test-mbrtowc.c: Likewise.
20169         * tests/test-mbscasecmp.c: Likewise.
20170         * tests/test-mbscasestr1.c: Likewise.
20171         * tests/test-mbscasestr2.c: Likewise.
20172         * tests/test-mbscasestr3.c: Likewise.
20173         * tests/test-mbscasestr4.c: Likewise.
20174         * tests/test-mbschr.c: Likewise.
20175         * tests/test-mbscspn.c: Likewise.
20176         * tests/test-mbsinit.c: Likewise.
20177         * tests/test-mbsncasecmp.c: Likewise.
20178         * tests/test-mbsnrtowcs.c: Likewise.
20179         * tests/test-mbspbrk.c: Likewise.
20180         * tests/test-mbspcasecmp.c: Likewise.
20181         * tests/test-mbsrchr.c: Likewise.
20182         * tests/test-mbsrtowcs.c: Likewise.
20183         * tests/test-mbsspn.c: Likewise.
20184         * tests/test-mbsstr1.c: Likewise.
20185         * tests/test-mbsstr2.c: Likewise.
20186         * tests/test-mbsstr3.c: Likewise.
20187         * tests/test-memchr.c: Likewise.
20188         * tests/test-memchr2.c: Likewise.
20189         * tests/test-memcmp.c: Likewise.
20190         * tests/test-memmem.c: Likewise.
20191         * tests/test-memrchr.c: Likewise.
20192         * tests/test-mkdir.c: Likewise.
20193         * tests/test-mkdirat.c: Likewise.
20194         * tests/test-mkfifo.c: Likewise.
20195         * tests/test-mkfifoat.c: Likewise.
20196         * tests/test-mknod.c: Likewise.
20197         * tests/test-nanosleep.c: Likewise.
20198         * tests/test-nl_langinfo.c: Likewise.
20199         * tests/test-obstack-printf.c: Likewise.
20200         * tests/test-open.c: Likewise.
20201         * tests/test-openat.c: Likewise.
20202         * tests/test-pipe-filter-gi1.c: Likewise.
20203         * tests/test-pipe-filter-gi2-main.c: Likewise.
20204         * tests/test-pipe-filter-ii1.c: Likewise.
20205         * tests/test-pipe-filter-ii2-main.c: Likewise.
20206         * tests/test-pipe2.c: Likewise.
20207         * tests/test-popen.h: Likewise.
20208         * tests/test-posixtm.c: Likewise.
20209         * tests/test-pread.c: Likewise.
20210         * tests/test-printf-frexp.c: Likewise.
20211         * tests/test-printf-frexpl.c: Likewise.
20212         * tests/test-printf-posix.c: Likewise.
20213         * tests/test-priv-set.c: Likewise.
20214         * tests/test-quotearg.c: Likewise.
20215         * tests/test-random_r.c: Likewise.
20216         * tests/test-rawmemchr.c: Likewise.
20217         * tests/test-rbtree_list.c: Likewise.
20218         * tests/test-rbtree_oset.c: Likewise.
20219         * tests/test-rbtreehash_list.c: Likewise.
20220         * tests/test-readlink.c: Likewise.
20221         * tests/test-remove.c: Likewise.
20222         * tests/test-rename.c: Likewise.
20223         * tests/test-renameat.c: Likewise.
20224         * tests/test-rmdir.c: Likewise.
20225         * tests/test-round1.c: Likewise.
20226         * tests/test-roundf1.c: Likewise.
20227         * tests/test-roundl.c: Likewise.
20228         * tests/test-safe-alloc.c: Likewise.
20229         * tests/test-sameacls.c: Likewise.
20230         * tests/test-set-mode-acl.c: Likewise.
20231         * tests/test-setenv.c: Likewise.
20232         * tests/test-sigaction.c: Likewise.
20233         * tests/test-signbit.c: Likewise.
20234         * tests/test-sleep.c: Likewise.
20235         * tests/test-snprintf-posix.c: Likewise.
20236         * tests/test-snprintf.c: Likewise.
20237         * tests/test-sprintf-posix.c: Likewise.
20238         * tests/test-stat-time.c: Likewise.
20239         * tests/test-stat.c: Likewise.
20240         * tests/test-strcasestr.c: Likewise.
20241         * tests/test-strchrnul.c: Likewise.
20242         * tests/test-strerror.c: Likewise.
20243         * tests/test-striconv.c: Likewise.
20244         * tests/test-striconveh.c: Likewise.
20245         * tests/test-striconveha.c: Likewise.
20246         * tests/test-strsignal.c: Likewise.
20247         * tests/test-strstr.c: Likewise.
20248         * tests/test-strtod.c: Likewise.
20249         * tests/test-strverscmp.c: Likewise.
20250         * tests/test-symlink.c: Likewise.
20251         * tests/test-symlinkat.c: Likewise.
20252         * tests/test-trunc1.c: Likewise.
20253         * tests/test-trunc2.c: Likewise.
20254         * tests/test-truncf1.c: Likewise.
20255         * tests/test-truncf2.c: Likewise.
20256         * tests/test-truncl.c: Likewise.
20257         * tests/test-uname.c: Likewise.
20258         * tests/test-unlink.c: Likewise.
20259         * tests/test-unlinkat.c: Likewise.
20260         * tests/test-unsetenv.c: Likewise.
20261         * tests/test-usleep.c: Likewise.
20262         * tests/test-utimens.c: Likewise.
20263         * tests/test-utimensat.c: Likewise.
20264         * tests/test-vasnprintf-posix.c: Likewise.
20265         * tests/test-vasnprintf-posix2.c: Likewise.
20266         * tests/test-vasnprintf.c: Likewise.
20267         * tests/test-vasprintf-posix.c: Likewise.
20268         * tests/test-vasprintf.c: Likewise.
20269         * tests/test-vdprintf-posix.c: Likewise.
20270         * tests/test-vfprintf-posix.c: Likewise.
20271         * tests/test-vprintf-posix.c: Likewise.
20272         * tests/test-vsnprintf-posix.c: Likewise.
20273         * tests/test-vsnprintf.c: Likewise.
20274         * tests/test-vsprintf-posix.c: Likewise.
20275         * tests/test-wcrtomb.c: Likewise.
20276         * tests/test-wcsnrtombs.c: Likewise.
20277         * tests/test-wcsrtombs.c: Likewise.
20278         * tests/test-wctype.c: Likewise.
20279         * tests/test-wcwidth.c: Likewise.
20280         * tests/test-xfprintf-posix.c: Likewise.
20281         * tests/test-xmemdup0.c: Likewise.
20282         * tests/test-xprintf-posix.c: Likewise.
20283         * tests/test-xvasprintf.c: Likewise.
20284         * tests/unicase/test-locale-language.c: Likewise.
20285         * tests/unicase/test-mapping-part1.h: Likewise.
20286         * tests/unicase/test-predicate-part1.h: Likewise.
20287         * tests/unicase/test-u8-casecmp.c: Likewise.
20288         * tests/unicase/test-u8-casecoll.c: Likewise.
20289         * tests/unicase/test-u8-casefold.c: Likewise.
20290         * tests/unicase/test-u8-is-cased.c: Likewise.
20291         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20292         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20293         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20294         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20295         * tests/unicase/test-u8-tolower.c: Likewise.
20296         * tests/unicase/test-u8-totitle.c: Likewise.
20297         * tests/unicase/test-u8-toupper.c: Likewise.
20298         * tests/unicase/test-u16-casecmp.c: Likewise.
20299         * tests/unicase/test-u16-casecoll.c: Likewise.
20300         * tests/unicase/test-u16-casefold.c: Likewise.
20301         * tests/unicase/test-u16-is-cased.c: Likewise.
20302         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20303         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20304         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20305         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20306         * tests/unicase/test-u16-tolower.c: Likewise.
20307         * tests/unicase/test-u16-totitle.c: Likewise.
20308         * tests/unicase/test-u16-toupper.c: Likewise.
20309         * tests/unicase/test-u32-casecmp.c: Likewise.
20310         * tests/unicase/test-u32-casecoll.c: Likewise.
20311         * tests/unicase/test-u32-casefold.c: Likewise.
20312         * tests/unicase/test-u32-is-cased.c: Likewise.
20313         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20314         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20315         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20316         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20317         * tests/unicase/test-u32-tolower.c: Likewise.
20318         * tests/unicase/test-u32-totitle.c: Likewise.
20319         * tests/unicase/test-u32-toupper.c: Likewise.
20320         * tests/unicase/test-ulc-casecmp.c: Likewise.
20321         * tests/unicase/test-ulc-casecoll.c: Likewise.
20322         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20323         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20324         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20325         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20326         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20327         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20328         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20329         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20330         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20331         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20332         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20333         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20334         * tests/unictype/test-bidi_byname.c: Likewise.
20335         * tests/unictype/test-bidi_name.c: Likewise.
20336         * tests/unictype/test-bidi_of.c: Likewise.
20337         * tests/unictype/test-bidi_test.c: Likewise.
20338         * tests/unictype/test-block_list.c: Likewise.
20339         * tests/unictype/test-block_of.c: Likewise.
20340         * tests/unictype/test-block_test.c: Likewise.
20341         * tests/unictype/test-categ_and.c: Likewise.
20342         * tests/unictype/test-categ_and_not.c: Likewise.
20343         * tests/unictype/test-categ_byname.c: Likewise.
20344         * tests/unictype/test-categ_name.c: Likewise.
20345         * tests/unictype/test-categ_none.c: Likewise.
20346         * tests/unictype/test-categ_of.c: Likewise.
20347         * tests/unictype/test-categ_or.c: Likewise.
20348         * tests/unictype/test-categ_test_withtable.c: Likewise.
20349         * tests/unictype/test-combining.c: Likewise.
20350         * tests/unictype/test-decdigit.c: Likewise.
20351         * tests/unictype/test-digit.c: Likewise.
20352         * tests/unictype/test-mirror.c: Likewise.
20353         * tests/unictype/test-numeric.c: Likewise.
20354         * tests/unictype/test-pr_byname.c: Likewise.
20355         * tests/unictype/test-pr_test.c: Likewise.
20356         * tests/unictype/test-predicate-part1.h: Likewise.
20357         * tests/unictype/test-scripts.c: Likewise.
20358         * tests/unictype/test-sy_c_ident.c: Likewise.
20359         * tests/unictype/test-sy_java_ident.c: Likewise.
20360         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20361         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20362         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20363         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20364         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20365         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20366         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20367         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20368         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20369         * tests/uninorm/test-compat-decomposition.c: Likewise.
20370         * tests/uninorm/test-composition.c: Likewise.
20371         * tests/uninorm/test-decomposing-form.c: Likewise.
20372         * tests/uninorm/test-decomposition.c: Likewise.
20373         * tests/uninorm/test-u8-nfc.c: Likewise.
20374         * tests/uninorm/test-u8-nfd.c: Likewise.
20375         * tests/uninorm/test-u8-nfkc.c: Likewise.
20376         * tests/uninorm/test-u8-nfkd.c: Likewise.
20377         * tests/uninorm/test-u8-normcmp.c: Likewise.
20378         * tests/uninorm/test-u8-normcoll.c: Likewise.
20379         * tests/uninorm/test-u16-nfc.c: Likewise.
20380         * tests/uninorm/test-u16-nfd.c: Likewise.
20381         * tests/uninorm/test-u16-nfkc.c: Likewise.
20382         * tests/uninorm/test-u16-nfkd.c: Likewise.
20383         * tests/uninorm/test-u16-normcmp.c: Likewise.
20384         * tests/uninorm/test-u16-normcoll.c: Likewise.
20385         * tests/uninorm/test-u32-nfc.c: Likewise.
20386         * tests/uninorm/test-u32-nfd.c: Likewise.
20387         * tests/uninorm/test-u32-nfkc.c: Likewise.
20388         * tests/uninorm/test-u32-nfkd.c: Likewise.
20389         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20390         * tests/uninorm/test-u32-normcmp.c: Likewise.
20391         * tests/uninorm/test-u32-normcoll.c: Likewise.
20392         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20393         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20394         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20395         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20396         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20397         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20398         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20399         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20400         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20401         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20402         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20403         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20404         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20405         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20406         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20407         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20408         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20409         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20410         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20411         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20412         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20413         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20414         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20415         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20416         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20417         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20418         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20419         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20420         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20421         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20422         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20423         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20424         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20425         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20426         * tests/uniwidth/test-u8-width.c: Likewise.
20427         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20428         * tests/uniwidth/test-u16-width.c: Likewise.
20429         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20430         * tests/uniwidth/test-u32-width.c: Likewise.
20431         * tests/uniwidth/test-uc_width.c: Likewise.
20432         * tests/uniwidth/test-uc_width2.c: Likewise.
20433         * modules/acl-tests (Files): Add tests/macros.h.
20434         * modules/areadlink-tests (Files): Likewise.
20435         * modules/areadlink-with-size-tests (Files): Likewise.
20436         * modules/areadlinkat-tests (Files): Likewise.
20437         * modules/areadlinkat-with-size-tests (Files): Likewise.
20438         * modules/argmatch-tests (Files): Likewise.
20439         * modules/argv-iter-tests (Files): Likewise.
20440         * modules/array-list-tests (Files): Likewise.
20441         * modules/array-mergesort-tests (Files): Likewise.
20442         * modules/array-oset-tests (Files): Likewise.
20443         * modules/avltree-list-tests (Files): Likewise.
20444         * modules/avltree-oset-tests (Files): Likewise.
20445         * modules/avltreehash-list-tests (Files): Likewise.
20446         * modules/base64-tests (Files): Likewise.
20447         * modules/binary-io-tests (Files): Likewise.
20448         * modules/bitrotate-tests (Files): Likewise.
20449         * modules/btowc-tests (Files): Likewise.
20450         * modules/byteswap-tests (Files): Likewise.
20451         * modules/c-ctype-tests (Files): Likewise.
20452         * modules/c-stack-tests (Files): Likewise.
20453         * modules/c-strcase-tests (Files): Likewise.
20454         * modules/c-strcasestr-tests (Files): Likewise.
20455         * modules/c-strstr-tests (Files): Likewise.
20456         * modules/canonicalize-lgpl-tests (Files): Likewise.
20457         * modules/canonicalize-tests (Files): Likewise.
20458         * modules/carray-list-tests (Files): Likewise.
20459         * modules/ceilf-tests (Files): Likewise.
20460         * modules/ceill-tests (Files): Likewise.
20461         * modules/chown-tests (Files): Likewise.
20462         * modules/cloexec-tests (Files): Likewise.
20463         * modules/copy-file-tests (Files): Likewise.
20464         * modules/count-one-bits-tests (Files): Likewise.
20465         * modules/dprintf-posix-tests (Files): Likewise.
20466         * modules/dup2-tests (Files): Likewise.
20467         * modules/dup3-tests (Files): Likewise.
20468         * modules/duplocale-tests (Files): Likewise.
20469         * modules/fbufmode-tests (Files): Likewise.
20470         * modules/fchdir-tests (Files): Likewise.
20471         * modules/fcntl-safer-tests (Files): Likewise.
20472         * modules/fcntl-tests (Files): Likewise.
20473         * modules/fdopendir-tests (Files): Likewise.
20474         * modules/fdutimensat-tests (Files): Likewise.
20475         * modules/fflush-tests (Files): Likewise.
20476         * modules/filevercmp-tests (Files): Likewise.
20477         * modules/flock-tests (Files): Likewise.
20478         * modules/floorf-tests (Files): Likewise.
20479         * modules/floorl-tests (Files): Likewise.
20480         * modules/fnmatch-tests (Files): Likewise.
20481         * modules/fopen-safer-tests (Files): Likewise.
20482         * modules/fopen-tests (Files): Likewise.
20483         * modules/fpending-tests (Files): Likewise.
20484         * modules/fprintf-posix-tests (Files): Likewise.
20485         * modules/fpurge-tests (Files): Likewise.
20486         * modules/freadable-tests (Files): Likewise.
20487         * modules/freadahead-tests (Files): Likewise.
20488         * modules/freading-tests (Files): Likewise.
20489         * modules/freadptr-tests (Files): Likewise.
20490         * modules/freadseek-tests (Files): Likewise.
20491         * modules/freopen-tests (Files): Likewise.
20492         * modules/frexp-nolibm-tests (Files): Likewise.
20493         * modules/frexp-tests (Files): Likewise.
20494         * modules/frexpl-nolibm-tests (Files): Likewise.
20495         * modules/frexpl-tests (Files): Likewise.
20496         * modules/fseek-tests (Files): Likewise.
20497         * modules/fseeko-tests (Files): Likewise.
20498         * modules/fstrcmp-tests (Files): Likewise.
20499         * modules/fsync-tests (Files): Likewise.
20500         * modules/ftell-tests (Files): Likewise.
20501         * modules/ftello-tests (Files): Likewise.
20502         * modules/func-tests (Files): Likewise.
20503         * modules/futimens-tests (Files): Likewise.
20504         * modules/fwritable-tests (Files): Likewise.
20505         * modules/fwriting-tests (Files): Likewise.
20506         * modules/getcwd-tests (Files): Likewise.
20507         * modules/getdate-tests (Files): Likewise.
20508         * modules/getdelim-tests (Files): Likewise.
20509         * modules/getdtablesize-tests (Files): Likewise.
20510         * modules/getgroups-tests (Files): Likewise.
20511         * modules/getline-tests (Files): Likewise.
20512         * modules/getndelim2-tests (Files): Likewise.
20513         * modules/glob-tests (Files): Likewise.
20514         * modules/hash-tests (Files): Likewise.
20515         * modules/i-ring-tests (Files): Likewise.
20516         * modules/iconv-tests (Files): Likewise.
20517         * modules/iconv_open-utf-tests (Files): Likewise.
20518         * modules/idpriv-drop-tests (Files): Likewise.
20519         * modules/idpriv-droptemp-tests (Files): Likewise.
20520         * modules/inet_ntop-tests (Files): Likewise.
20521         * modules/inet_pton-tests (Files): Likewise.
20522         * modules/isblank-tests (Files): Likewise.
20523         * modules/isfinite-tests (Files): Likewise.
20524         * modules/isinf-tests (Files): Likewise.
20525         * modules/isnan-tests (Files): Likewise.
20526         * modules/isnand-nolibm-tests (Files): Likewise.
20527         * modules/isnand-tests (Files): Likewise.
20528         * modules/isnanf-nolibm-tests (Files): Likewise.
20529         * modules/isnanf-tests (Files): Likewise.
20530         * modules/isnanl-nolibm-tests (Files): Likewise.
20531         * modules/isnanl-tests (Files): Likewise.
20532         * modules/lchown-tests (Files): Likewise.
20533         * modules/ldexpl-tests (Files): Likewise.
20534         * modules/link-tests (Files): Likewise.
20535         * modules/linkat-tests (Files): Likewise.
20536         * modules/linked-list-tests (Files): Likewise.
20537         * modules/linkedhash-list-tests (Files): Likewise.
20538         * modules/localename-tests (Files): Likewise.
20539         * modules/lseek-tests (Files): Likewise.
20540         * modules/lstat-tests (Files): Likewise.
20541         * modules/mbmemcasecmp-tests (Files): Likewise.
20542         * modules/mbmemcasecoll-tests (Files): Likewise.
20543         * modules/mbrtowc-tests (Files): Likewise.
20544         * modules/mbscasecmp-tests (Files): Likewise.
20545         * modules/mbscasestr-tests (Files): Likewise.
20546         * modules/mbschr-tests (Files): Likewise.
20547         * modules/mbscspn-tests (Files): Likewise.
20548         * modules/mbsinit-tests (Files): Likewise.
20549         * modules/mbsncasecmp-tests (Files): Likewise.
20550         * modules/mbsnrtowcs-tests (Files): Likewise.
20551         * modules/mbspbrk-tests (Files): Likewise.
20552         * modules/mbspcasecmp-tests (Files): Likewise.
20553         * modules/mbsrchr-tests (Files): Likewise.
20554         * modules/mbsrtowcs-tests (Files): Likewise.
20555         * modules/mbsspn-tests (Files): Likewise.
20556         * modules/mbsstr-tests (Files): Likewise.
20557         * modules/memchr-tests (Files): Likewise.
20558         * modules/memchr2-tests (Files): Likewise.
20559         * modules/memcmp-tests (Files): Likewise.
20560         * modules/memmem-tests (Files): Likewise.
20561         * modules/memrchr-tests (Files): Likewise.
20562         * modules/mkdir-tests (Files): Likewise.
20563         * modules/mkfifo-tests (Files): Likewise.
20564         * modules/mkfifoat-tests (Files): Likewise.
20565         * modules/mknod-tests (Files): Likewise.
20566         * modules/nanosleep-tests (Files): Likewise.
20567         * modules/nl_langinfo-tests (Files): Likewise.
20568         * modules/obstack-printf-tests (Files): Likewise.
20569         * modules/open-tests (Files): Likewise.
20570         * modules/openat-tests (Files): Likewise.
20571         * modules/pipe-filter-gi-tests (Files): Likewise.
20572         * modules/pipe-filter-ii-tests (Files): Likewise.
20573         * modules/pipe2-tests (Files): Likewise.
20574         * modules/popen-safer-tests (Files): Likewise.
20575         * modules/popen-tests (Files): Likewise.
20576         * modules/posixtm-tests (Files): Likewise.
20577         * modules/pread-tests (Files): Likewise.
20578         * modules/printf-frexp-tests (Files): Likewise.
20579         * modules/printf-frexpl-tests (Files): Likewise.
20580         * modules/printf-posix-tests (Files): Likewise.
20581         * modules/priv-set-tests (Files): Likewise.
20582         * modules/quotearg-tests (Files): Likewise.
20583         * modules/random_r-tests (Files): Likewise.
20584         * modules/rawmemchr-tests (Files): Likewise.
20585         * modules/rbtree-list-tests (Files): Likewise.
20586         * modules/rbtree-oset-tests (Files): Likewise.
20587         * modules/rbtreehash-list-tests (Files): Likewise.
20588         * modules/readlink-tests (Files): Likewise.
20589         * modules/remove-tests (Files): Likewise.
20590         * modules/rename-tests (Files): Likewise.
20591         * modules/renameat-tests (Files): Likewise.
20592         * modules/rmdir-tests (Files): Likewise.
20593         * modules/round-tests (Files): Likewise.
20594         * modules/roundf-tests (Files): Likewise.
20595         * modules/roundl-tests (Files): Likewise.
20596         * modules/safe-alloc-tests (Files): Likewise.
20597         * modules/setenv-tests (Files): Likewise.
20598         * modules/sigaction-tests (Files): Likewise.
20599         * modules/signbit-tests (Files): Likewise.
20600         * modules/sleep-tests (Files): Likewise.
20601         * modules/snprintf-posix-tests (Files): Likewise.
20602         * modules/snprintf-tests (Files): Likewise.
20603         * modules/sprintf-posix-tests (Files): Likewise.
20604         * modules/stat-tests (Files): Likewise.
20605         * modules/stat-time-tests (Files): Likewise.
20606         * modules/strcasestr-tests (Files): Likewise.
20607         * modules/strchrnul-tests (Files): Likewise.
20608         * modules/strerror-tests (Files): Likewise.
20609         * modules/striconv-tests (Files): Likewise.
20610         * modules/striconveh-tests (Files): Likewise.
20611         * modules/striconveha-tests (Files): Likewise.
20612         * modules/strsignal-tests (Files): Likewise.
20613         * modules/strstr-tests (Files): Likewise.
20614         * modules/strtod-tests (Files): Likewise.
20615         * modules/strverscmp-tests (Files): Likewise.
20616         * modules/symlink-tests (Files): Likewise.
20617         * modules/symlinkat-tests (Files): Likewise.
20618         * modules/trunc-tests (Files): Likewise.
20619         * modules/truncf-tests (Files): Likewise.
20620         * modules/truncl-tests (Files): Likewise.
20621         * modules/uname-tests (Files): Likewise.
20622         * modules/unicase/cased-tests (Files): Likewise.
20623         * modules/unicase/ignorable-tests (Files): Likewise.
20624         * modules/unicase/locale-language-tests (Files): Likewise.
20625         * modules/unicase/tolower-tests (Files): Likewise.
20626         * modules/unicase/totitle-tests (Files): Likewise.
20627         * modules/unicase/toupper-tests (Files): Likewise.
20628         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20629         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20630         * modules/unicase/u8-casefold-tests (Files): Likewise.
20631         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20632         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20633         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20634         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20635         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20636         * modules/unicase/u8-tolower-tests (Files): Likewise.
20637         * modules/unicase/u8-totitle-tests (Files): Likewise.
20638         * modules/unicase/u8-toupper-tests (Files): Likewise.
20639         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20640         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20641         * modules/unicase/u16-casefold-tests (Files): Likewise.
20642         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20643         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20644         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20645         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20646         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20647         * modules/unicase/u16-tolower-tests (Files): Likewise.
20648         * modules/unicase/u16-totitle-tests (Files): Likewise.
20649         * modules/unicase/u16-toupper-tests (Files): Likewise.
20650         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20651         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20652         * modules/unicase/u32-casefold-tests (Files): Likewise.
20653         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20654         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20655         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20656         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20657         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20658         * modules/unicase/u32-tolower-tests (Files): Likewise.
20659         * modules/unicase/u32-totitle-tests (Files): Likewise.
20660         * modules/unicase/u32-toupper-tests (Files): Likewise.
20661         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20662         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20663         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20664         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20665         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20666         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20667         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20668         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20669         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20670         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20671         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20672         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20673         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20674         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20675         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20676         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20677         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20678         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20679         * modules/unictype/block-list-tests (Files): Likewise.
20680         * modules/unictype/block-of-tests (Files): Likewise.
20681         * modules/unictype/block-test-tests (Files): Likewise.
20682         * modules/unictype/category-C-tests (Files): Likewise.
20683         * modules/unictype/category-Cc-tests (Files): Likewise.
20684         * modules/unictype/category-Cf-tests (Files): Likewise.
20685         * modules/unictype/category-Cn-tests (Files): Likewise.
20686         * modules/unictype/category-Co-tests (Files): Likewise.
20687         * modules/unictype/category-Cs-tests (Files): Likewise.
20688         * modules/unictype/category-L-tests (Files): Likewise.
20689         * modules/unictype/category-Ll-tests (Files): Likewise.
20690         * modules/unictype/category-Lm-tests (Files): Likewise.
20691         * modules/unictype/category-Lo-tests (Files): Likewise.
20692         * modules/unictype/category-Lt-tests (Files): Likewise.
20693         * modules/unictype/category-Lu-tests (Files): Likewise.
20694         * modules/unictype/category-M-tests (Files): Likewise.
20695         * modules/unictype/category-Mc-tests (Files): Likewise.
20696         * modules/unictype/category-Me-tests (Files): Likewise.
20697         * modules/unictype/category-Mn-tests (Files): Likewise.
20698         * modules/unictype/category-N-tests (Files): Likewise.
20699         * modules/unictype/category-Nd-tests (Files): Likewise.
20700         * modules/unictype/category-Nl-tests (Files): Likewise.
20701         * modules/unictype/category-No-tests (Files): Likewise.
20702         * modules/unictype/category-P-tests (Files): Likewise.
20703         * modules/unictype/category-Pc-tests (Files): Likewise.
20704         * modules/unictype/category-Pd-tests (Files): Likewise.
20705         * modules/unictype/category-Pe-tests (Files): Likewise.
20706         * modules/unictype/category-Pf-tests (Files): Likewise.
20707         * modules/unictype/category-Pi-tests (Files): Likewise.
20708         * modules/unictype/category-Po-tests (Files): Likewise.
20709         * modules/unictype/category-Ps-tests (Files): Likewise.
20710         * modules/unictype/category-S-tests (Files): Likewise.
20711         * modules/unictype/category-Sc-tests (Files): Likewise.
20712         * modules/unictype/category-Sk-tests (Files): Likewise.
20713         * modules/unictype/category-Sm-tests (Files): Likewise.
20714         * modules/unictype/category-So-tests (Files): Likewise.
20715         * modules/unictype/category-Z-tests (Files): Likewise.
20716         * modules/unictype/category-Zl-tests (Files): Likewise.
20717         * modules/unictype/category-Zp-tests (Files): Likewise.
20718         * modules/unictype/category-Zs-tests (Files): Likewise.
20719         * modules/unictype/category-and-not-tests (Files): Likewise.
20720         * modules/unictype/category-and-tests (Files): Likewise.
20721         * modules/unictype/category-byname-tests (Files): Likewise.
20722         * modules/unictype/category-name-tests (Files): Likewise.
20723         * modules/unictype/category-none-tests (Files): Likewise.
20724         * modules/unictype/category-of-tests (Files): Likewise.
20725         * modules/unictype/category-or-tests (Files): Likewise.
20726         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20727         * modules/unictype/combining-class-tests (Files): Likewise.
20728         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20729         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20730         * modules/unictype/ctype-blank-tests (Files): Likewise.
20731         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20732         * modules/unictype/ctype-digit-tests (Files): Likewise.
20733         * modules/unictype/ctype-graph-tests (Files): Likewise.
20734         * modules/unictype/ctype-lower-tests (Files): Likewise.
20735         * modules/unictype/ctype-print-tests (Files): Likewise.
20736         * modules/unictype/ctype-punct-tests (Files): Likewise.
20737         * modules/unictype/ctype-space-tests (Files): Likewise.
20738         * modules/unictype/ctype-upper-tests (Files): Likewise.
20739         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20740         * modules/unictype/decimal-digit-tests (Files): Likewise.
20741         * modules/unictype/digit-tests (Files): Likewise.
20742         * modules/unictype/mirror-tests (Files): Likewise.
20743         * modules/unictype/numeric-tests (Files): Likewise.
20744         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20745         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20746         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20747         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20748         Likewise.
20749         * modules/unictype/property-bidi-block-separator-tests (Files):
20750         Likewise.
20751         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20752         Likewise.
20753         * modules/unictype/property-bidi-common-separator-tests (Files):
20754         Likewise.
20755         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20756         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20757         Likewise.
20758         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20759         Likewise.
20760         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20761         Likewise.
20762         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20763         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20764         Likewise.
20765         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20766         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20767         Likewise.
20768         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20769         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20770         * modules/unictype/property-bidi-segment-separator-tests (Files):
20771         Likewise.
20772         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20773         * modules/unictype/property-byname-tests (Files): Likewise.
20774         * modules/unictype/property-combining-tests (Files): Likewise.
20775         * modules/unictype/property-composite-tests (Files): Likewise.
20776         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20777         * modules/unictype/property-dash-tests (Files): Likewise.
20778         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20779         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20780         Likewise.
20781         * modules/unictype/property-deprecated-tests (Files): Likewise.
20782         * modules/unictype/property-diacritic-tests (Files): Likewise.
20783         * modules/unictype/property-extender-tests (Files): Likewise.
20784         * modules/unictype/property-format-control-tests (Files): Likewise.
20785         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20786         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20787         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20788         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20789         * modules/unictype/property-hyphen-tests (Files): Likewise.
20790         * modules/unictype/property-id-continue-tests (Files): Likewise.
20791         * modules/unictype/property-id-start-tests (Files): Likewise.
20792         * modules/unictype/property-ideographic-tests (Files): Likewise.
20793         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20794         * modules/unictype/property-ids-trinary-operator-tests (Files):
20795         Likewise.
20796         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20797         * modules/unictype/property-iso-control-tests (Files): Likewise.
20798         * modules/unictype/property-join-control-tests (Files): Likewise.
20799         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20800         * modules/unictype/property-line-separator-tests (Files): Likewise.
20801         * modules/unictype/property-logical-order-exception-tests (Files):
20802         Likewise.
20803         * modules/unictype/property-lowercase-tests (Files): Likewise.
20804         * modules/unictype/property-math-tests (Files): Likewise.
20805         * modules/unictype/property-non-break-tests (Files): Likewise.
20806         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20807         * modules/unictype/property-numeric-tests (Files): Likewise.
20808         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20809         * modules/unictype/property-other-default-ignorable-code-point-tests
20810         (Files): Likewise.
20811         * modules/unictype/property-other-grapheme-extend-tests (Files):
20812         Likewise.
20813         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20814         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20815         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20816         * modules/unictype/property-other-math-tests (Files): Likewise.
20817         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20818         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20819         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20820         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20821         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20822         * modules/unictype/property-private-use-tests (Files): Likewise.
20823         * modules/unictype/property-punctuation-tests (Files): Likewise.
20824         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20825         * modules/unictype/property-radical-tests (Files): Likewise.
20826         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20827         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20828         * modules/unictype/property-space-tests (Files): Likewise.
20829         * modules/unictype/property-terminal-punctuation-tests (Files):
20830         Likewise.
20831         * modules/unictype/property-test-tests (Files): Likewise.
20832         * modules/unictype/property-titlecase-tests (Files): Likewise.
20833         * modules/unictype/property-unassigned-code-value-tests (Files):
20834         Likewise.
20835         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20836         * modules/unictype/property-uppercase-tests (Files): Likewise.
20837         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20838         * modules/unictype/property-white-space-tests (Files): Likewise.
20839         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20840         * modules/unictype/property-xid-start-tests (Files): Likewise.
20841         * modules/unictype/property-zero-width-tests (Files): Likewise.
20842         * modules/unictype/scripts-tests (Files): Likewise.
20843         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20844         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20845         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20846         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20847         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20848         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20849         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20850         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20851         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20852         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20853         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20854         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20855         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20856         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20857         * modules/uninorm/composition-tests (Files): Likewise.
20858         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20859         * modules/uninorm/decomposition-tests (Files): Likewise.
20860         * modules/uninorm/filter-tests (Files): Likewise.
20861         * modules/uninorm/nfc-tests (Files): Likewise.
20862         * modules/uninorm/nfd-tests (Files): Likewise.
20863         * modules/uninorm/nfkc-tests (Files): Likewise.
20864         * modules/uninorm/nfkd-tests (Files): Likewise.
20865         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20866         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20867         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20868         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20869         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20870         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20871         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20872         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20873         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20874         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20875         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20876         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20877         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20878         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20879         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20880         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20881         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20882         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20883         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20884         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20885         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20886         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20887         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20888         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20889         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20890         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20891         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20892         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20893         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20894         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20895         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20896         * modules/uniwidth/u8-width-tests (Files): Likewise.
20897         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20898         * modules/uniwidth/u16-width-tests (Files): Likewise.
20899         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20900         * modules/uniwidth/u32-width-tests (Files): Likewise.
20901         * modules/uniwidth/width-tests (Files): Likewise.
20902         * modules/unlink-tests (Files): Likewise.
20903         * modules/unsetenv-tests (Files): Likewise.
20904         * modules/usleep-tests (Files): Likewise.
20905         * modules/utimens-tests (Files): Likewise.
20906         * modules/utimensat-tests (Files): Likewise.
20907         * modules/vasnprintf-posix-tests (Files): Likewise.
20908         * modules/vasnprintf-tests (Files): Likewise.
20909         * modules/vasprintf-posix-tests (Files): Likewise.
20910         * modules/vasprintf-tests (Files): Likewise.
20911         * modules/vdprintf-posix-tests (Files): Likewise.
20912         * modules/vfprintf-posix-tests (Files): Likewise.
20913         * modules/vprintf-posix-tests (Files): Likewise.
20914         * modules/vsnprintf-posix-tests (Files): Likewise.
20915         * modules/vsnprintf-tests (Files): Likewise.
20916         * modules/vsprintf-posix-tests (Files): Likewise.
20917         * modules/wcrtomb-tests (Files): Likewise.
20918         * modules/wcsnrtombs-tests (Files): Likewise.
20919         * modules/wcsrtombs-tests (Files): Likewise.
20920         * modules/wctype-tests (Files): Likewise.
20921         * modules/wcwidth-tests (Files): Likewise.
20922         * modules/xmemdup0-tests (Files): Likewise.
20923         * modules/xprintf-posix-tests (Files): Likewise.
20924         * modules/xvasprintf-tests (Files): Likewise.
20925
20926 2009-12-24  Eric Blake  <ebb9@byu.net>
20927
20928         test-nanosleep: fix typo
20929         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20930         patch.
20931         Reported by Bruno Haible.
20932
20933 2009-12-24  Bruno Haible  <bruno@clisp.org>
20934
20935         Reduce namespace pollution on glibc systems.
20936         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20937         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20938         systems.
20939         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20940         <getopt.h> on glibc systems.
20941         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20942         systems.
20943         * lib/fcntl.c: Include <unistd.h> here instead.
20944
20945 2009-12-24  Bruno Haible  <bruno@clisp.org>
20946
20947         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20948
20949 2009-12-24  Eric Blake  <ebb9@byu.net>
20950
20951         tests: add signature checks
20952         * tests/signature.h (SIGNATURE_CHECK): New file.
20953         * modules/atexit-tests (Files): Use it.
20954         * modules/btowc-tests (Files): Likewise.
20955         * modules/canonicalize-lgpl-tests (Files): Likewise.
20956         * modules/ceilf-tests (Files): Likewise.
20957         * modules/ceill-tests (Files): Likewise.
20958         * modules/chown-tests (Files): Likewise.
20959         * modules/dprintf-posix-tests (Files): Likewise.
20960         * modules/dup2-tests (Files): Likewise.
20961         * modules/dup3-tests (Files): Likewise.
20962         * modules/duplocale-tests (Files): Likewise.
20963         * modules/fchdir-tests (Files): Likewise.
20964         * modules/fcntl-tests (Files): Likewise.
20965         * modules/fdopendir-tests (Files): Likewise.
20966         * modules/fflush-tests (Files): Likewise.
20967         * modules/flock-tests (Files): Likewise.
20968         * modules/floorf-tests (Files): Likewise.
20969         * modules/floorl-tests (Files): Likewise.
20970         * modules/fnmatch-tests (Files): Likewise.
20971         * modules/fopen-tests (Files): Likewise.
20972         * modules/fprintf-posix-tests (Files): Likewise.
20973         * modules/freopen-tests (Files): Likewise.
20974         * modules/frexp-nolibm-tests (Files): Likewise.
20975         * modules/frexp-tests (Files): Likewise.
20976         * modules/frexpl-nolibm-tests (Files): Likewise.
20977         * modules/frexpl-tests (Files): Likewise.
20978         * modules/fseek-tests (Files): Likewise.
20979         * modules/fseeko-tests (Files): Likewise.
20980         * modules/fsync-tests (Files): Likewise.
20981         * modules/ftell-tests (Files): Likewise.
20982         * modules/ftello-tests (Files): Likewise.
20983         * modules/futimens-tests (Files): Likewise.
20984         * modules/getaddrinfo-tests (Files): Likewise.
20985         * modules/getcwd-tests (Files): Likewise.
20986         * modules/getdelim-tests (Files): Likewise.
20987         * modules/getdtablesize-tests (Files): Likewise.
20988         * modules/getgroups-tests (Files): Likewise.
20989         * modules/gethostname-tests (Files): Likewise.
20990         * modules/getline-tests (Files): Likewise.
20991         * modules/getopt-posix-tests (Files): Likewise.
20992         * modules/gettimeofday-tests (Files): Likewise.
20993         * modules/glob-tests (Files): Likewise.
20994         * modules/iconv-tests (Files): Likewise.
20995         * modules/inet_ntop-tests (Files): Likewise.
20996         * modules/inet_pton-tests (Files): Likewise.
20997         * modules/isblank-tests (Files): Likewise.
20998         * modules/lchown-tests (Files): Likewise.
20999         * modules/ldexpl-tests (Files): Likewise.
21000         * modules/link-tests (Files): Likewise.
21001         * modules/linkat-tests (Files): Likewise.
21002         * modules/lseek-tests (Files): Likewise.
21003         * modules/lstat-tests (Files): Likewise.
21004         * modules/mbrtowc-tests (Files): Likewise.
21005         * modules/mbsinit-tests (Files): Likewise.
21006         * modules/mbsnrtowcs-tests (Files): Likewise.
21007         * modules/mbsrtowcs-tests (Files): Likewise.
21008         * modules/memchr-tests (Files): Likewise.
21009         * modules/memcmp-tests (Files): Likewise.
21010         * modules/memmem-tests (Files): Likewise.
21011         * modules/memrchr-tests (Files): Likewise.
21012         * modules/mkdir-tests (Files): Likewise.
21013         * modules/mkfifo-tests (Files): Likewise.
21014         * modules/mkfifoat-tests (Files): Likewise.
21015         * modules/mknod-tests (Files): Likewise.
21016         * modules/nanosleep-tests (Files): Likewise.
21017         * modules/nl_langinfo-tests (Files): Likewise.
21018         * modules/obstack-printf-tests (Files): Likewise.
21019         * modules/open-tests (Files): Likewise.
21020         * modules/openat-tests (Files): Likewise.
21021         * modules/perror-tests (Files): Likewise.
21022         * modules/pipe2-tests (Files): Likewise.
21023         * modules/poll-tests (Files): Likewise.
21024         * modules/popen-tests (Files): Likewise.
21025         * modules/posix_spawn-tests (Files): Likewise.
21026         * modules/posix_spawnp-tests (Files): Likewise.
21027         * modules/pread-tests (Files): Likewise.
21028         * modules/printf-posix-tests (Files): Likewise.
21029         * modules/pty-tests (Files): Likewise.
21030         * modules/random_r-tests (Files): Likewise.
21031         * modules/rawmemchr-tests (Files): Likewise.
21032         * modules/readlink-tests (Files): Likewise.
21033         * modules/remove-tests (Files): Likewise.
21034         * modules/rename-tests (Files): Likewise.
21035         * modules/renameat-tests (Files): Likewise.
21036         * modules/rmdir-tests (Files): Likewise.
21037         * modules/round-tests (Files): Likewise.
21038         * modules/roundf-tests (Files): Likewise.
21039         * modules/roundl-tests (Files): Likewise.
21040         * modules/select-tests (Files): Likewise.
21041         * modules/setenv-tests (Files): Likewise.
21042         * modules/sigaction-tests (Files): Likewise.
21043         * modules/sleep-tests (Files): Likewise.
21044         * modules/snprintf-posix-tests (Files): Likewise.
21045         * modules/snprintf-tests (Files): Likewise.
21046         * modules/sprintf-posix-tests (Files): Likewise.
21047         * modules/stat-tests (Files): Likewise.
21048         * modules/strcasestr-tests (Files): Likewise.
21049         * modules/strchrnul-tests (Files): Likewise.
21050         * modules/strerror-tests (Files): Likewise.
21051         * modules/strsignal-tests (Files): Likewise.
21052         * modules/strstr-tests (Files): Likewise.
21053         * modules/strtod-tests (Files): Likewise.
21054         * modules/strverscmp-tests (Files): Likewise.
21055         * modules/symlink-tests (Files): Likewise.
21056         * modules/symlinkat-tests (Files): Likewise.
21057         * modules/times-tests (Files): Likewise.
21058         * modules/trunc-tests (Files): Likewise.
21059         * modules/truncf-tests (Files): Likewise.
21060         * modules/truncl-tests (Files): Likewise.
21061         * modules/tsearch-tests (Files): Likewise.
21062         * modules/uname-tests (Files): Likewise.
21063         * modules/unlink-tests (Files): Likewise.
21064         * modules/unsetenv-tests (Files): Likewise.
21065         * modules/usleep-tests (Files): Likewise.
21066         * modules/utimensat-tests (Files): Likewise.
21067         * modules/vasprintf-tests (Files): Likewise.
21068         * modules/vdprintf-posix-tests (Files): Likewise.
21069         * modules/vfprintf-posix-tests (Files): Likewise.
21070         * modules/vprintf-posix-tests (Files): Likewise.
21071         * modules/vsnprintf-posix-tests (Files): Likewise.
21072         * modules/vsnprintf-tests (Files): Likewise.
21073         * modules/vsprintf-posix-tests (Files): Likewise.
21074         * modules/wcrtomb-tests (Files): Likewise.
21075         * modules/wcsnrtombs-tests (Files): Likewise.
21076         * modules/wcsrtombs-tests (Files): Likewise.
21077         * modules/wcwidth-tests (Files): Likewise.
21078         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21079         * tests/test-isinf.c (isinf): Likewise.
21080         * tests/test-isnan.c (isnan): Likewise.
21081         * tests/test-signbit.c (signbit): Likewise.
21082         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21083         declaration, either as macro or with correct signature.
21084         (select): Ensure function under test is declared with correct
21085         signature in correct header.
21086         * tests/test-atexit.c (atexit): Likewise.
21087         * tests/test-btowc.c (btowc): Likewise.
21088         * tests/test-canonicalize-lgpl.c (realpath)
21089         (canonicalize_file_name): Likewise.
21090         * tests/test-ceilf1.c (ceilf): Likewise.
21091         * tests/test-ceill.c (ceill): Likewise.
21092         * tests/test-chown.c (chown): Likewise.
21093         * tests/test-dprintf-posix.c (dprintf): Likewise.
21094         * tests/test-dup2.c (dup2): Likewise.
21095         * tests/test-dup3.c (dup3): Likewise.
21096         * tests/test-duplocale.c (duplocale): Likewise.
21097         * tests/test-fchdir.c (fchdir): Likewise.
21098         * tests/test-fchownat.c (fchownat): Likewise.
21099         * tests/test-fcntl.c (fcntl): Likewise.
21100         * tests/test-fdopendir.c (fdopendir): Likewise.
21101         * tests/test-fflush.c (fflush): Likewise.
21102         * tests/test-flock.c (flock): Likewise.
21103         * tests/test-floorf1.c (floorf): Likewise.
21104         * tests/test-floorl.c (floorl): Likewise.
21105         * tests/test-fnmatch.c (fnmatch): Likewise.
21106         * tests/test-fopen.c (fopen): Likewise.
21107         * tests/test-fprintf-posix.c (fprintf): Likewise.
21108         * tests/test-freopen.c (freopen): Likewise.
21109         * tests/test-frexp.c (frexp): Likewise.
21110         * tests/test-frexpl.c (frexpl): Likewise.
21111         * tests/test-fseek.c (fseek): Likewise.
21112         * tests/test-fseeko.c (fseeko): Likewise.
21113         * tests/test-fstatat.c (fstatat): Likewise.
21114         * tests/test-fsync.c (fsync): Likewise.
21115         * tests/test-ftell.c (ftell): Likewise.
21116         * tests/test-ftello.c (ftello): Likewise.
21117         * tests/test-futimens.c (futimens): Likewise.
21118         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21119         (gai_strerror): Likewise.
21120         * tests/test-getcwd.c (getcwd): Likewise.
21121         * tests/test-getdelim.c (getdelim): Likewise.
21122         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21123         * tests/test-getgroups.c (getgroups): Likewise.
21124         * tests/test-gethostname.c (gethostname): Likewise.
21125         * tests/test-getline.c (getline): Likewise.
21126         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21127         Likewise.
21128         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21129         * tests/test-glob.c (glob, globfree): Likewise.
21130         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21131         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21132         * tests/test-inet_pton.c (inet_pton): Likewise.
21133         * tests/test-isblank.c (isblank): Likewise.
21134         * tests/test-lchown.c (lchown): Likewise.
21135         * tests/test-ldexpl.c (ldexpl): Likewise.
21136         * tests/test-link.c (link): Likewise.
21137         * tests/test-linkat.c (linkat): Likewise.
21138         * tests/test-lseek.c (lseek): Likewise.
21139         * tests/test-lstat.c (lstat): Likewise.
21140         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21141         * tests/test-mbsinit.c (mbsinit): Likewise.
21142         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21143         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21144         * tests/test-memchr.c (memchr): Likewise.
21145         * tests/test-memcmp.c (memcmp): Likewise.
21146         * tests/test-memmem.c (memmem): Likewise.
21147         * tests/test-memrchr.c (memrchr): Likewise.
21148         * tests/test-mkdir.c (mkdir): Likewise.
21149         * tests/test-mkdirat.c (mkdirat): Likewise.
21150         * tests/test-mkfifo.c (mkfifo): Likewise.
21151         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21152         * tests/test-mknod.c (mknod): Likewise.
21153         * tests/test-nanosleep.c (nanosleep): Likewise.
21154         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21155         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21156         Likewise.
21157         * tests/test-open.c (open): Likewise.
21158         * tests/test-openat.c (openat): Likewise.
21159         * tests/test-perror.c (perror): Likewise.
21160         * tests/test-pipe2.c (pipe2): Likewise.
21161         * tests/test-poll.c (poll): Likewise.
21162         * tests/test-popen.c (popen, pclose): Likewise.
21163         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21164         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21165         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21166         (posix_spawn_file_actions_destroy)
21167         (posix_spawn_file_actions_addclose)
21168         (posix_spawn_file_actions_addopen)
21169         (posix_spawn_file_actions_adddup2): Likewise.
21170         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21171         * tests/test-pread.c (pread): Likewise.
21172         * tests/test-printf-posix.c (printf): Likewise.
21173         * tests/test-pty.c (openpty, forkpty): Likewise.
21174         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21175         (random_r): Likewise.
21176         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21177         * tests/test-readlink.c (readlink): Likewise.
21178         * tests/test-remove.c (remove): Likewise.
21179         * tests/test-rename.c (rename): Likewise.
21180         * tests/test-renameat.c (renameat): Likewise.
21181         * tests/test-rmdir.c (rmdir): Likewise.
21182         * tests/test-round1.c (round): Likewise.
21183         * tests/test-roundf1.c (roundf): Likewise.
21184         * tests/test-roundl.c (roundl): Likewise.
21185         * tests/test-setenv.c (setenv): Likewise.
21186         * tests/test-sigaction.c (sigaction): Likewise.
21187         * tests/test-sleep.c (sleep): Likewise.
21188         * tests/test-snprintf.c (snprintf): Likewise.
21189         * tests/test-sprintf-posix.c (sprintf): Likewise.
21190         * tests/test-stat.c (stat): Likewise.
21191         * tests/test-stpncpy.c (stpncpy): Likewise.
21192         * tests/test-strcasestr.c (strcasestr): Likewise.
21193         * tests/test-strchrnul.c (strchrnul): Likewise.
21194         * tests/test-strerror.c (strerror): Likewise.
21195         * tests/test-strsignal.c (strsignal): Likewise.
21196         * tests/test-strstr.c (strstr): Likewise.
21197         * tests/test-strtod.c (strtod): Likewise.
21198         * tests/test-strverscmp.c (strverscmp): Likewise.
21199         * tests/test-symlink.c (symlink): Likewise.
21200         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21201         * tests/test-times.c (times): Likewise.
21202         * tests/test-trunc1.c (trunc): Likewise.
21203         * tests/test-truncf1.c (truncf): Likewise.
21204         * tests/test-truncl.c (truncl): Likewise.
21205         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21206         Likewise.
21207         * tests/test-uname.c (uname): Likewise.
21208         * tests/test-unlink.c (unlink): Likewise.
21209         * tests/test-unlinkat.c (unlinkat): Likewise.
21210         * tests/test-unsetenv.c (unsetenv): Likewise.
21211         * tests/test-usleep.c (usleep): Likewise.
21212         * tests/test-utimensat.c (utimensat): Likewise.
21213         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21214         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21215         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21216         * tests/test-vprintf-posix.c (vprintf): Likewise.
21217         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21218         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21219         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21220         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21221         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21222         * tests/test-wcwidth.c (wcwidth): Likewise.
21223
21224         build: pull in conditional headers during GNULIB_POSIXCHECK
21225         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21226         definitions from any conditionally-included headers.
21227         * lib/stdlib.in.h (includes): Likewise.
21228         * lib/unistd.in.h (includes): Likewise.
21229
21230 2009-12-24  Bruno Haible  <bruno@clisp.org>
21231
21232         * tests/test-argv-iter.c: Include header file being tested immediately
21233         after config.h.
21234         * tests/test-base64.c: Likewise.
21235         * tests/test-flock.c: Likewise.
21236         * tests/test-fsync.c: Likewise.
21237         * tests/test-getdate.c: Likewise.
21238         * tests/test-getndelim2.c: Likewise.
21239         * tests/test-isfinite.c: Likewise.
21240         * tests/test-isinf.c: Likewise.
21241         * tests/test-strerror.c: Likewise.
21242         * tests/test-strsignal.c: Likewise.
21243
21244 2009-12-23  Eric Blake  <ebb9@byu.net>
21245
21246         unistd: work around cygwin bug
21247         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21248         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21249         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21250
21251 2009-12-23  Bruno Haible  <bruno@clisp.org>
21252
21253         localename: More tests.
21254         * tests/test-localename.c (SIZEOF): New macro.
21255         (categories): New variable.
21256         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21257         test_locale_name_default): Add test w.r.t. thread locale.
21258         (test_locale_name_thread): New function.
21259         (main): Invoke it.
21260
21261         localename: Make aware of thread locale.
21262         * lib/localename.h (gl_locale_name_thread): New declaration.
21263         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21264         behaviour with respect to thread locale.
21265         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21266         <langinfo.h>, glthread/lock.h.
21267         (SIZE_BITS): New macro.
21268         (string_hash): New function.
21269         (struct hash_node): New type.
21270         (HASH_TABLE_SIZE): New macro.
21271         (struniq_hash_table, struniq_lock): New variables.
21272         (struniq): New function.
21273         (gl_locale_name_thread): New function.
21274         (gl_locale_name): Invoke it.
21275         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21276         * modules/localename (Depends-on): Add lock.
21277         Reported by Mike Gran <spk121@yahoo.com>.
21278
21279 2009-12-23  Eric Blake  <ebb9@byu.net>
21280
21281         va-args: new module
21282         * modules/va-args: New file.
21283         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21284         * MODULES.html.sh (Core language properties): Mention it.
21285
21286         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21287         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21288         named alias for __attribute__((__unused__)).
21289         * lib/chown.c: Update client.
21290         * lib/fchmodat.c: Likewise.
21291         * lib/fts.c: Likewise.
21292         * lib/getdate.y: Likewise.
21293         * lib/getgroups.c: Likewise.
21294         * lib/getopt.c: Likewise.
21295         * lib/getugroups.c: Likewise.
21296         * lib/mkdir.c: Likewise.
21297         * lib/mkfifo.c: Likewise.
21298         * lib/mkfifoat.c: Likewise.
21299         * lib/mknod.c: Likewise.
21300         * lib/mknodat.c: Likewise.
21301         * lib/readlink.c: Likewise.
21302         * lib/se-context.in.h: Likewise.
21303         * lib/se-selinux.in.h: Likewise.
21304         * lib/sockets.c: Likewise.
21305         * lib/symlink.c: Likewise.
21306         * lib/symlinkat.c: Likewise.
21307         * lib/unicodeio.c: Likewise.
21308         * lib/unistr.h: Likewise.
21309         * tests/test-areadlink.c: Likewise.
21310         * tests/test-areadlinkat.c: Likewise.
21311         * tests/test-filenamecat.c: Likewise.
21312         * tests/test-fseeko.c: Likewise.
21313         * tests/test-ftello.c: Likewise.
21314         * tests/test-getdate.c: Likewise.
21315         * tests/test-getgroups.c: Likewise.
21316         * tests/test-gethostname.c: Likewise.
21317         * tests/test-quotearg.c: Likewise.
21318         * tests/test-version-etc.c: Likewise.
21319         * tests/test-xalloc-die.c: Likewise.
21320         * tests/test-xfprintf-posix.c: Likewise.
21321         * tests/test-xprintf-posix.c: Likewise.
21322         * tests/test-xvasprintf.c: Likewise.
21323
21324         tests: avoid compiler warnings
21325         * tests/test-fcntl.c (main): Delete unused parameters.
21326         * tests/test-freopen-safer.c (main): Likewise.
21327         * tests/test-xalloc-die.c (main): Mark unused parameters.
21328         * tests/test-fseeko.c (main): Likewise.
21329         * tests/test-ftello.c (main): Likewise.
21330         * tests/test-nanosleep.c (main): Avoid declaration warning.
21331         * tests/test-sleep.c (main): Likewise.
21332         * tests/test-unsetenv.c (main): Silence warning about string
21333         literal.
21334         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21335
21336 2009-12-23  Bruno Haible  <bruno@clisp.org>
21337
21338         * tests/test-localename.c (test_locale_name): New function, extracted
21339         from main. Also test mixed situations.
21340         (test_locale_name_posix, test_locale_name_environ,
21341         test_locale_name_default): New functions.
21342         (main): Invoke them all.
21343         * modules/localename-tests (configure.ac): Test for newlocale.
21344
21345 2009-12-23  Bruno Haible  <bruno@clisp.org>
21346
21347         unistd: Ensure getcwd gets declared before being overridden.
21348         * lib/unistd.in.h: Conditionally include <io.h>.
21349
21350 2009-12-22  Bruno Haible  <bruno@clisp.org>
21351
21352         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21353         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21354         (gl_WCHAR_H): Invoke it.
21355         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21356         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21357         Reported by Karl Berry <karl@freefriends.org>.
21358
21359 2009-12-22  Eric Blake  <ebb9@byu.net>
21360
21361         math, unistd: avoid redundant includes
21362         * lib/math.in.h (isnan): No need to re-include <math.h>.
21363         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21364
21365         getsubopt: work around cygwin bug
21366         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21367         avoid conflicting with system getsubopt.
21368         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21369         bug.
21370
21371         getopt: synchronize from glibc
21372         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21373         parameter order.  Adjust all callers.
21374         (_getopt_internal_r, main): Adjust quoting in error messages.
21375         Drop considerations for outdated POSIX 1003.2 error message.
21376         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21377         callers.
21378         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21379
21380         test-getopt: test stderr behavior
21381         * modules/getopt-posix-tests (Depends-on): Add dup2.
21382         * tests/test-getopt.c (ASSERT): Avoid stderr.
21383         (main): Move stderr to a temporary file.
21384         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21385         Instead, add parameter to inform caller if output occurred.
21386         (test_getopt): Adjust all existing tests to expect silence, and
21387         add new tests of leading ":".
21388         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21389         glibc shortcomings with leading "-:" or "+:" in optstring.
21390         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21391         Likewise.
21392         * doc/posix-functions/getopt.texi (getopt): Likewise.
21393
21394         test-getopt: enhance test
21395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21396         supports optind=0.
21397         * tests/test-getopt.c (OPTIND_MIN): Move...
21398         * tests/test-getopt.h (OPTIND_MIN): ...here.
21399         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21400         Require that optind=0 works, since modern BSD supports it in
21401         addition to optreset, and since coreutils expects it.
21402         (test_getopt_long_only): New test.
21403         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21404         glibc shortcomings with 'W;', and enforcement of optind=0.
21405         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21406         Likewise.
21407
21408 2009-12-21  Bruno Haible  <bruno@clisp.org>
21409
21410         localename: Improvements for MacOS X and Cygwin.
21411         * lib/localename.h (gl_locale_name_environ): New declaration.
21412         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21413         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21414         (gl_locale_name_posix): Invoke it.
21415         (gl_locale_name_default): Add comments. Use Windows native API also on
21416         Cygwin.
21417
21418 2009-12-21  Bruno Haible  <bruno@clisp.org>
21419
21420         Update list of Win32 locale ids.
21421         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21422         (LANG_SAMI): Renamed from LANG_SAAMI.
21423         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21424         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21425         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21426         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21427         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21428         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21429         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21430         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21431         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21432         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21433         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21434         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21435         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21436         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21437         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21438         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21439         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21440         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21441         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21442         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21443         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21444         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21445         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21446         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21447         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21448         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21449         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21450         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21451         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21452         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21453         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21454         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21455         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21456         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21457         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21458         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21459         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21460         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21461         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21462         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21463         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21464         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21465         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21466         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21467         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21468         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21469         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21470         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21471         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21472         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21473         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21474         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21475         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21476         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21477         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21478         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21479         Add more languages and countries for Sami, Sorbian. Add more countries
21480         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21481         for Pashto. Change country for Syriac, Tswana.
21482
21483 2009-12-21  Eric Blake  <ebb9@byu.net>
21484
21485         test-utimens: avoid spurious failure
21486         * tests/test-chown.h (nap): Factor...
21487         * tests/nap.h: ...into new file.
21488         * tests/test-lchown.h (nap): Avoid duplication.
21489         * tests/test-utimens-common.h (nap): Use shared implementation,
21490         necessary on file systems with 1-second resolution.
21491         * modules/chown-tests (Files): Include new file.
21492         * modules/fdutimensat-tests (Files): Likewise.
21493         * modules/futimens-tests (Files): Likewise.
21494         * modules/lchown-tests (Files): Likewise.
21495         * modules/openat-tests (Files): Likewise.
21496         * modules/utimens-tests (Files): Likewise.
21497         * modules/utimensat-tests (Files): Likewise.
21498
21499 2009-12-19  Eric Blake  <ebb9@byu.net>
21500
21501         futimens, utimensat: work around Linux bug
21502         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21503         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21504         * lib/utimensat.c (rpl_utimensat): Work around it.
21505         * lib/futimens.c (rpl_futimens): Adjust comment.
21506
21507         utimens: work around Linux ctime bug
21508         * lib/utimens.c (detect_ctime_bug): New helper function.
21509         (update_timespec): Differentiate between workaround needed for
21510         this bug vs. what is needed for systems that lack utimensat.
21511         (fdutimens, lutimens): Work around bug.
21512
21513         utimens: check for ctime update
21514         * tests/test-utimens-common.h (check_ctime): Define.
21515         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21516         * tests/test-futimens.h (test_futimens): Likewise.
21517         * tests/test-lutimens.h (test_lutimens): Likewise.
21518         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21519         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21520
21521 2009-12-19  Bruno Haible  <bruno@clisp.org>
21522
21523         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21524         * tests/test-dprintf-posix2.sh: New file.
21525         * tests/test-dprintf-posix2.c: New file.
21526         * modules/dprintf-posix-tests (Files): Add them.
21527         (configure.ac): Check for getrlimit and setrlimit.
21528         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21529
21530 2009-12-19  Bruno Haible  <bruno@clisp.org>
21531
21532         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21533         * tests/test-fprintf-posix3.sh: New file.
21534         * tests/test-fprintf-posix3.c: New file.
21535         * modules/fprintf-posix-tests (Files): Add them.
21536         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21537
21538 2009-12-19  Eric Blake  <ebb9@byu.net>
21539
21540         dirfd: fix prototype
21541         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21542         * lib/dirfd.c (dirfd): Likewise.
21543
21544         canonicalize: reduce memory usage
21545         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21546         allocation to size.
21547         Reported by Solar Designer <solar@openwall.com>.
21548
21549 2009-12-19  Bruno Haible  <bruno@clisp.org>
21550
21551         New module attribute 'Applicability'.
21552         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21553         * gnulib-tool: New option --extract-applicability.
21554         (func_usage): Document it.
21555         (sed_extract_prog): Recognize it.
21556         (func_get_applicability): New function.
21557         (func_import): Generalize handling of 'link-warning' module.
21558         * modules/link-warning (Applicability): New section.
21559         * modules/arg-nonnull (Applicability): New section.
21560         Repoted by Simon Josefsson <simon@josefsson.org>.
21561
21562 2009-12-19  Bruno Haible  <bruno@clisp.org>
21563
21564         fflush: tweak
21565         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21566         * lib/fseeko.c (rpl_fseeko): Likewise.
21567
21568 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21569
21570         * lib/gl_list.h: Fix typo in comment.
21571
21572 2009-12-16  Eric Blake  <ebb9@byu.net>
21573
21574         fcntl: use to simplify other modules
21575         * modules/cloexec (Depends-on): Add fcntl.
21576         * modules/fchdir (Depends-on): Likewise.
21577         * modules/fd-safer-flag (Depends-on): Likewise.
21578         * modules/unistd-safer (Depends-on): Likewise.
21579         * modules/dup3 (configure.ac): Set module indicator.
21580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21581         missing.
21582         * lib/fchdir.c (_gl_register_dup): Fix comment.
21583         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21584         * lib/dup-safer.c (dup_safer): Likewise.
21585         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21586         * lib/dup3.c (dup3): Likewise.
21587         * tests/test-fchdir.c (main): Enhance test.
21588         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21589
21590         fcntl: port portions of fcntl to mingw
21591         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21592         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21593         replacement for mingw.
21594         * modules/fcntl (Description): Update.
21595         (Depends-on): Add dup2.
21596         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21597         * modules/fcntl-h (Makefile.am): Substitute it.
21598         * lib/fcntl.in.h (fcntl): Update declaration.
21599         (F_DUPFD, F_GETFD): New macros, when needed.
21600         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21601         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21602         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21603         we now guarantee.
21604
21605         fcntl: work around cygwin bug in F_DUPFD
21606         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21607         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21608         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21609         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21610         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21611
21612         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21613         * modules/fcntl (Files): List new files.
21614         (configure.ac): Run a test.
21615         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21616         * lib/fcntl.c (rpl_fcntl): Likewise.
21617         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21618         (gl_FCNTL_H): Always replace fcntl.h.
21619         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21620         * lib/fcntl.in.h (fcntl): Declare replacement.
21621         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21622         needed, plus a witness.
21623         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21624         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21625         * tests/test-fcntl.c: New file.
21626         * modules/fcntl-tests: Likewise.
21627
21628         binary-io: avoid potential compilation warning
21629         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21630         directives.
21631
21632         fflush: avoid compilation error on NetBSD
21633         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21634         between off_t and fpos_t, since the latter is sometimes a struct.
21635         * lib/fseeko.c (rpl_fseeko): Likewise.
21636         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21637
21638 2009-12-15  Eric Blake  <ebb9@byu.net>
21639
21640         fcntl-h, stdio, sys_ioctl: fix declarations
21641         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21642         function must not take arguments.
21643         * lib/sys_ioctl.in.h (ioctl): Likewise.
21644         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21645         (open): Add a link warning.
21646
21647 2009-12-15  Jim Meyering  <meyering@redhat.com>
21648
21649         areadlink, areadlink-with-size: relax license to LGPLv2+
21650         * modules/areadlink (License): Relax to LGPLv2+.
21651         * modules/areadlink-with-size (License): Likewise.
21652
21653 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21654             Bruno Haible  <bruno@clisp.org>
21655
21656         *printf: Fix memory leak.
21657         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21658         * lib/vfprintf.c (vfprintf): Likewise.
21659         * lib/dprintf.c (dprintf): Likewise.
21660         * lib/vdprintf.c (vdprintf): Likewise.
21661
21662 2009-12-14  Eric Blake  <ebb9@byu.net>
21663
21664         accept4: adjust module dependencies
21665         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21666
21667         utimens: one more try at avoiding compiler warning
21668         * lib/utimens.c (lutimens): Lower scope of result.
21669
21670 2009-12-13  Bruno Haible  <bruno@clisp.org>
21671
21672         Move the malloc checking from module 'list' to new module 'xlist'.
21673         * modules/xlist: New file.
21674         * lib/gl_xlist.h: New file.
21675         * lib/gl_xlist.c: New file.
21676         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21677         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21678         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21679         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21680         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21681         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21682         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21683         gl_sortedlist_nx_add): New declarations.
21684         (struct gl_list_implementation): Rename and change methods accordingly.
21685         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21686         (gl_list_nx_create): Renamed from gl_list_create.
21687         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21688         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21689         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21690         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21691         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21692         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21693         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21694         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21695         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21696         gl_list_create_empty.
21697         (gl_list_nx_create): Renamed from gl_list_create.
21698         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21699         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21700         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21701         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21702         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21703         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21704         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21705         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21706         * lib/gl_array_list.c: Don't include xalloc.h.
21707         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21708         NULL upon out-of-memory.
21709         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21710         out-of-memory.
21711         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21712         Change return type to 'int'.
21713         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21714         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21715         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21716         upon out-of-memory.
21717         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21718         upon out-of-memory.
21719         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21720         upon out-of-memory.
21721         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21722         upon out-of-memory.
21723         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21724         out-of-memory.
21725         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21726         Update.
21727         (gl_array_list_implementation): Update.
21728         * lib/gl_carray_list.c: Don't include xalloc.h.
21729         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21730         Return NULL upon out-of-memory.
21731         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21732         out-of-memory.
21733         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21734         Change return type to 'int'.
21735         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21736         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21737         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21738         upon out-of-memory.
21739         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21740         upon out-of-memory.
21741         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21742         out-of-memory.
21743         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21744         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21745         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21746         Update.
21747         (gl_carray_list_implementation): Update.
21748         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21749         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21750         gl_linked_create_empty. Return NULL upon out-of-memory.
21751         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21752         out-of-memory.
21753         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21754         Change return type to 'int'. Return -1 upon out-of-memory.
21755         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21756         out-of-memory.
21757         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21758         upon out-of-memory.
21759         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21760         upon out-of-memory.
21761         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21762         NULL upon out-of-memory.
21763         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21764         upon out-of-memory.
21765         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21766         out-of-memory.
21767         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21768         Update.
21769         * lib/gl_linked_list.c: Don't include xalloc.h.
21770         (gl_linked_list_implementation): Update.
21771         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21772         (add_to_bucket): Change return type to 'int'.
21773         (gl_linkedhash_list_implementation): Update.
21774         * lib/gl_anytree_list1.h (free_subtree): New function.
21775         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21776         gl_tree_create_empty. Return NULL upon out-of-memory.
21777         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21778         Change return type to 'int'. Return -1 upon out-of-memory.
21779         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21780         out-of-memory.
21781         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21782         (gl_tree_remove_node): New function, moved here from
21783         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21784         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21785         Update.
21786         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21787         malloc, not xmalloc. Return NULL upon out-of-memory.
21788         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21789         out-of-memory.
21790         (gl_tree_remove_node_from_tree): New function, extracted from
21791         gl_tree_remove_node.
21792         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21793         upon out-of-memory.
21794         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21795         out-of-memory.
21796         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21797         upon out-of-memory.
21798         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21799         upon out-of-memory.
21800         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21801         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21802         not xmalloc. Return NULL upon out-of-memory.
21803         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21804         out-of-memory.
21805         (gl_tree_remove_node_from_tree): New function, extracted from
21806         gl_tree_remove_node.
21807         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21808         upon out-of-memory.
21809         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21810         out-of-memory.
21811         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21812         upon out-of-memory.
21813         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21814         upon out-of-memory.
21815         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21816         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21817         gl_anytree_list1.h before gl_anyavltree_list2.h.
21818         (gl_avltree_list_implementation): Update.
21819         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21820         gl_anytree_list1.h before gl_anyavltree_list2.h.
21821         (gl_rbtree_list_implementation): Update.
21822         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21823         Change return type to 'int'. Return -1 upon out-of-memory. Use
21824         __builtin_expect.
21825         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21826         (gl_avltreehash_list_implementation): Update.
21827         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21828         (gl_rbtreehash_list_implementation): Update.
21829         * modules/array-list (Depends-on): Remove xalloc.
21830         * modules/carray-list (Depends-on): Likewise.
21831         * modules/linked-list (Depends-on): Likewise.
21832         * modules/linkedhash-list (Depends-on): Likewise.
21833         * modules/avltree-list (Depends-on): Likewise.
21834         * modules/rbtree-list (Depends-on): Likewise.
21835         * modules/avltreehash-list (Depends-on): Likewise.
21836         * modules/rbtreehash-list (Depends-on): Likewise.
21837
21838         * modules/xsublist: New file.
21839         * lib/gl_xsublist.h: New file.
21840         * lib/gl_xsublist.c: New file.
21841         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21842         (gl_sublist_nx_create): New declaration.
21843         * lib/gl_sublist.c: Don't include xalloc.h.
21844         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21845         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21846         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21847         Change return type to 'int'. Return -1 upon out-of-memory.
21848         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21849         upon out-of-memory.
21850         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21851         NULL upon out-of-memory.
21852         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21853         upon out-of-memory.
21854         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21855         NULL upon out-of-memory.
21856         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21857         NULL upon out-of-memory.
21858         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21859         upon out-of-memory.
21860         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21861         (gl_sublist_list_implementation): Update.
21862         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21863         upon out-of-memory.
21864         * modules/sublist (Depends-on): Remove xalloc.
21865
21866         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21867         * tests/test-carray_list.c: Likewise.
21868         * tests/test-linked_list.c: Likewise.
21869         * tests/test-linkedhash_list.c: Likewise.
21870         * tests/test-avltree_list.c: Likewise.
21871         * tests/test-rbtree_list.c: Likewise.
21872         * tests/test-avltreehash_list.c: Likewise.
21873         * tests/test-rbtreehash_list.c: Likewise.
21874         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21875         * modules/carray-list-tests (Makefile.am): Likewise.
21876         * modules/linked-list-tests (Makefile.am): Likewise.
21877         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21878         * modules/avltree-list-tests (Makefile.am): Likewise.
21879         * modules/rbtree-list-tests (Makefile.am): Likewise.
21880         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21881         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21882
21883         * NEWS: Mention the changes.
21884
21885         * lib/clean-temp.c: Include gl_xlist.h.
21886         * modules/clean-temp (Depends-on): Add xlist.
21887
21888         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21889         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21890
21891         * tests/test-array_oset.c: Include gl_xlist.h.
21892         * modules/array-oset-tests (Depends-on): Add xlist.
21893
21894         Reported by José E. Marchesi <jemarch@gnu.org>.
21895
21896 2009-12-13  Bruno Haible  <bruno@clisp.org>
21897
21898         Move the malloc checking from module 'oset' to new module 'xoset'.
21899         * modules/xoset: New file.
21900         * lib/gl_xoset.h: New file.
21901         * lib/gl_xoset.c: New file.
21902         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21903         declarations.
21904         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21905         (struct gl_oset_implementation): Rename and change methods accordingly.
21906         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21907         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21908         'int'. Mark as __warn_unused_result__.
21909         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21910         gl_oset_create_empty.
21911         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21912         'int'.
21913         * lib/gl_array_oset.c: Don't include xalloc.h.
21914         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21915         malloc, not xmalloc.
21916         (grow): Change return type to 'int'. Don't call xalloc_die.
21917         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21918         to 'int'.
21919         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21920         'int'.
21921         (gl_array_oset_implementation): Update.
21922         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21923         gl_tree_create_empty.
21924         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21925         'int'.
21926         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21927         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21928         xmalloc.
21929         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21930         not xmalloc.
21931         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21932         xmalloc.
21933         (gl_avltree_oset_implementation): Update.
21934         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21935         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21936         xmalloc.
21937         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21938         not xmalloc.
21939         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21940         xmalloc.
21941         (gl_rbtree_oset_implementation): Update.
21942         * modules/array-oset (Depends-on): Remove xalloc.
21943         * modules/avltree-oset (Depends-on): Likewise.
21944         * modules/rbtree-oset (Depends-on): Likewise.
21945         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21946         * tests/test-avltree_oset.c: Likewise.
21947         * tests/test-rbtree_oset.c: Likewise.
21948         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21949         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21950         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21951         * NEWS: Mention the change.
21952
21953 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21954
21955         maint.mk: allow a project to override release-prep commands
21956         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21957         commands into a new rule.
21958         (release-prep): New rule.
21959         (release-prep-hook): New overridable variable.
21960
21961 2009-12-13  Bruno Haible  <bruno@clisp.org>
21962
21963         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21964
21965 2009-12-13  Jim Meyering  <meyering@redhat.com>
21966
21967         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21968         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21969
21970 2009-12-12  Bruno Haible  <bruno@clisp.org>
21971
21972         duplocale: Tweak.
21973         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21974
21975 2009-12-12  Karl Berry  <karl@gnu.org>
21976
21977         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21978
21979 2009-12-12  Bruno Haible  <bruno@clisp.org>
21980
21981         * m4/po.m4: Undo incorrect untabification.
21982
21983 2009-12-12  Bruno Haible  <bruno@clisp.org>
21984
21985         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21986         * modules/c-strtod (Depends-on): Add locale.
21987         * modules/c-strtold (Depends-on): Likewise.
21988
21989 2009-12-12  Bruno Haible  <bruno@clisp.org>
21990
21991         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21992
21993 2009-12-11  Eric Blake  <ebb9@byu.net>
21994
21995         setenv: relax requirement in light of POSIX ruling
21996         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21997         not NULL.
21998         * tests/test-setenv.c (main): Relax test.
21999         * tests/test-unsetenv.c (main): Likewise.
22000         * doc/posix-functions/setenv.texi (setenv): Document this.
22001         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22002
22003 2009-12-11  Bruno Haible  <bruno@clisp.org>
22004
22005         New module 'fd-safer-flag'.
22006         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22007         * lib/dup-safer.c (dup_safer_flag): Remove function.
22008         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22009         * lib/fd-safer.c (fd_safer_flag): Remove function.
22010         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22011         * modules/cloexec (configure.ac): Drop indicator macro.
22012         * modules/fd-safer-flag: New file.
22013         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22014         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22015         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22016
22017 2009-12-11  Bruno Haible  <bruno@clisp.org>
22018
22019         Tests for module 'nl_langinfo'.
22020         * modules/nl_langinfo-tests: New file.
22021         * tests/test-nl_langinfo.sh: New file.
22022         * tests/test-nl_langinfo.c: New file.
22023
22024         New module 'nl_langinfo'.
22025         * lib/nl_langinfo.c: New file.
22026         * m4/nl_langinfo.m4: New file.
22027         * modules/nl_langinfo: New file.
22028         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22029
22030 2009-12-11  Bruno Haible  <bruno@clisp.org>
22031
22032         Tests for module 'langinfo'.
22033         * modules/langinfo-tests: New file.
22034         * tests/test-langinfo.c: New file.
22035
22036         New module 'langinfo'.
22037         * lib/langinfo.in.h: New file.
22038         * m4/langinfo_h.m4: New file.
22039         * modules/langinfo: New file.
22040         * doc/posix-headers/langinfo.texi: Mention the new module.
22041
22042 2009-12-11  Bruno Haible  <bruno@clisp.org>
22043
22044         * lib/config.charset: Untabify.
22045
22046 2009-12-11  Bruno Haible  <bruno@clisp.org>
22047
22048         * modules/unistd-safer (configure.ac): Drop indicator macro.
22049
22050 2009-12-11  Bruno Haible  <bruno@clisp.org>
22051
22052         Move pipe2-safer code to its own file.
22053         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22054         * lib/pipe-safer.c (pipe2_safer): Remove function.
22055         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22056         (Makefile.am): Add it to lib_SOURCES.
22057
22058 2009-12-10  Bruno Haible  <bruno@clisp.org>
22059
22060         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22061
22062 2009-12-10  Bruno Haible  <bruno@clisp.org>
22063
22064         Declare which arguments expect non-NULL values, for GCC and clang.
22065         * build-aux/arg-nonnull.h: New file.
22066         * modules/arg-nonnull: New file.
22067         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22068         (inet_ntop, inet_pton): Use it.
22069         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22070         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22071         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22072         (open, openat): Use it.
22073         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22074         (fnmatch): Use it.
22075         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22076         (getopt, getopt_long, getopt_long_only): Use it.
22077         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22078         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22079         Use it.
22080         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22081         (iconv_open): Use it.
22082         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22083         (strtoimax, strtoumax): Use it.
22084         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22085         (duplocale): Use it.
22086         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22087         (frexp, frexpl): Use it.
22088         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22089         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22090         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22091         (tsearch, tfind, tdelete, twalk): Use it.
22092         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22093         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22094         sigpending): Use it.
22095         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22096         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22097         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22098         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22099         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22100         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22101         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22102         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22103         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22104         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22105         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22106         Use it.
22107         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22108         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22109         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22110         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22111         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22112         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22113         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22114         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22115         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22116         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22117         strtoull, unsetenv): Use it.
22118         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22119         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22120         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22121         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22122         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22123         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22124         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22125         (strcasecmp, strncasecmp): Use it.
22126         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22127         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22128         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22129         rpl_setsockopt): Use it.
22130         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22131         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22132         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22133         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22134         (gettimeofday): Use it.
22135         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22136         (times): Use it.
22137         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22138         (uname): Use it.
22139         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22140         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22141         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22142         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22143         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22144         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22145         unlinkat, write): Use it.
22146         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22147         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22148         * lib/argv-iter.h: Include arg-nonnull.h.
22149         (_ATTRIBUTE_NONNULL_): Remove macro.
22150         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22151         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22152         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22153         optimization.
22154         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22155         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22156         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22157         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22158         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22159         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22160         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22161         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22162         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22163         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22164         * modules/dirent (Depends-on): Add arg-nonnull.
22165         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22166         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22167         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22168         * modules/fnmatch (Depends-on): Add arg-nonnull.
22169         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22170         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22171         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22172         * modules/glob (Depends-on): Add arg-nonnull.
22173         (Makefile.am): Insert arg-nonnull.h into glob.h.
22174         * modules/iconv_open (Depends-on): Add arg-nonnull.
22175         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22176         * modules/inttypes (Depends-on): Add arg-nonnull.
22177         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22178         * modules/locale (Depends-on): Add arg-nonnull.
22179         (Makefile.am): Insert arg-nonnull.h into locale.h.
22180         * modules/math (Depends-on): Add arg-nonnull.
22181         (Makefile.am): Insert arg-nonnull.h into math.h.
22182         * modules/netdb (Depends-on): Add arg-nonnull.
22183         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22184         * modules/search (Depends-on): Add arg-nonnull.
22185         (Makefile.am): Insert arg-nonnull.h into search.h.
22186         * modules/signal (Depends-on): Add arg-nonnull.
22187         (Makefile.am): Insert arg-nonnull.h into signal.h.
22188         * modules/spawn (Depends-on): Add arg-nonnull.
22189         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22190         * modules/stdio (Depends-on): Add arg-nonnull.
22191         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22192         * modules/stdlib (Depends-on): Add arg-nonnull.
22193         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22194         * modules/string (Depends-on): Add arg-nonnull.
22195         (Makefile.am): Insert arg-nonnull.h into string.h.
22196         * modules/strings (Depends-on): Add arg-nonnull.
22197         (Makefile.am): Insert arg-nonnull.h into strings.h.
22198         * modules/sys_socket (Depends-on): Add arg-nonnull.
22199         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22200         * modules/sys_stat (Depends-on): Add arg-nonnull.
22201         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22202         * modules/sys_time (Depends-on): Add arg-nonnull.
22203         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22204         * modules/sys_times (Depends-on): Add arg-nonnull.
22205         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22206         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22207         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22208         * modules/time (Depends-on): Add arg-nonnull.
22209         (Makefile.am): Insert arg-nonnull.h into time.h.
22210         * modules/unistd (Depends-on): Add arg-nonnull.
22211         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22212         * modules/wchar (Depends-on): Add arg-nonnull.
22213         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22214         * modules/argv-iter (Depends-on): Add arg-nonnull.
22215         * tests/test-canonicalize.c (null_ptr): New function.
22216         (main): Use it.
22217         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22218         (main): Use it.
22219         * tests/test-memmem.c (null_ptr): New function.
22220         (main): Use it.
22221         Reported by Jim Meyering.
22222
22223 2009-12-10  Bruno Haible  <bruno@clisp.org>
22224
22225         Use spaces for indentation, not tabs.
22226         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22227         * m4/*.m4: Untabify.
22228         * build-aux/*.h: Untabify.
22229         * tests/**/*.[hc]: Untabify.
22230         * README: New section "Indent with spaces, not TABs", based on
22231         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22232         * NEWS: Mention the change.
22233
22234 2009-12-10  Bruno Haible  <bruno@clisp.org>
22235
22236         pty test: Fix link error.
22237         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22238         test_pty_LDADD.
22239
22240 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22241
22242         * modules/pty: New file.
22243         * modules/pty-tests: New file.
22244         * m4/pty.m4: New file.
22245         * tests/test-pty.c: New file.
22246         * doc/glibc-headers/pty.texi: Modified.
22247         * doc/glibc-functions/forkpty.texi: Modified.
22248         * doc/glibc-functions/openpty.texi: Modified.
22249
22250 2009-12-10  Bruno Haible  <bruno@clisp.org>
22251
22252         Avoid syntax error in C++ mode.
22253         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22254
22255 2009-12-10  Bruno Haible  <bruno@clisp.org>
22256
22257         Use sed with option -e.
22258         * gnulib-tool (func_version, func_emit_copyright_notice,
22259         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22260         option -e to sed.
22261         * modules/link-warning (Makefile.am): Likewise.
22262
22263 2009-12-10  Jim Meyering  <meyering@redhat.com>
22264
22265         mgetgroups: do not write bytes beyond end of malloc'd buffer
22266         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22267         username, we call getgroups with a one-element-shorter buffer,
22268         but still told it the length was original, max_n_groups.
22269
22270 2009-12-09  Eric Blake  <ebb9@byu.net>
22271
22272         cloexec: relax license
22273         * modules/cloexec (Maintainer): Add myself.
22274         (License): Use LGPL, not GPL.
22275
22276         link-warning: optimize generation
22277         * modules/link-warning (Makefile.am): Reduce process usage.
22278
22279 2009-12-09  Bruno Haible  <bruno@clisp.org>
22280
22281         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22282         workaround was added on 2009-11-17.
22283
22284 2009-12-09  Jim Meyering  <meyering@redhat.com>
22285             Bruno Haible  <bruno@clisp.org>
22286
22287         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22288         * modules/link-warning (Makefile.am): Make the comment-removing sed
22289         command more robust in the face of bootstrap-prepended comment lines.
22290
22291 2009-12-09  Bruno Haible  <bruno@clisp.org>
22292
22293         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22294         most one group.
22295
22296 2009-12-09  Simon Josefsson <simon@josefsson.org>
22297             Bruno Haible  <bruno@clisp.org>
22298
22299         * build-aux/link-warning.h: Add copyright notice.
22300         * modules/link-warning (Makefile.am): Generate link-warning.h from
22301         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22302         * NEWS: Mention change in link-warning module.
22303         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22304         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22305         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22306         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22307         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22308         * modules/math (Makefile.am): Add dependency to math.h.
22309         * modules/search (Makefile.am): Add dependency to search.h.
22310         * modules/signal (Makefile.am): Add dependency to signal.h.
22311         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22312         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22313         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22314         * modules/string (Makefile.am): Add dependency to string.h.
22315         * modules/strings (Makefile.am): Add dependency to strings.h.
22316         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22317         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22318         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22319         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22320         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22321         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22322         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22323         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22324         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22325
22326 2009-12-09  Bruno Haible  <bruno@clisp.org>
22327
22328         fchdir: Optimize away rpl_fstat when possible.
22329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22330         REPLACE_OPEN_DIRECTORY.
22331         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22332
22333 2009-12-09  Bruno Haible  <bruno@clisp.org>
22334
22335         * lib/fchdir.c: Update comment.
22336
22337 2009-12-09  Bruno Haible  <bruno@clisp.org>
22338
22339         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22340
22341 2009-12-08  Eric Blake  <ebb9@byu.net>
22342
22343         fchdir: avoid memory leak on re-registration.
22344         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22345
22346 2009-12-08  Jim Meyering  <meyering@redhat.com>
22347
22348         init.sh: avoid Solaris 10 /bin/sh portability problem
22349         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22350         sourced script:
22351           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22352           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22353           bar
22354         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22355         and two tests used that idiom.
22356         * tests/init.sh: Update suggested usage comments.
22357         (path_prepend_): New function, to be used in place
22358         of the --src-path=DIR option.
22359         (setup_): Move PATH-prepending code into path_prepend_.
22360         * tests/test-pread.sh: Adapt to new usage.
22361         * tests/test-xalloc-die.sh: Likewise.
22362
22363 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22364
22365         * doc/gnulib.texi (Glibc pty.h): Add.
22366         * doc/glibc-functions/forkpty.texi: Add.
22367         * doc/glibc-functions/openpty.texi: Add.
22368         Suggested by Bruno Haible.
22369
22370 2009-12-08  Eric Blake  <ebb9@byu.net>
22371
22372         fchdir: fix logic bugs
22373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22374         * tests/test-fchdir.c (main): Enhance test.
22375         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22376         is in use.
22377
22378         dup2: fix logic bugs
22379         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22380         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22381         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22382         exists.
22383         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22384
22385 2009-12-07  Eric Blake  <ebb9@byu.net>
22386
22387         unlink: fix m4 detection
22388         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22389
22390         unistd-safer: add unit test
22391         * modules/unistd-safer-tests: New file.
22392         * tests/test-dup-safer.c: Likewise.
22393         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22394         * tests/test-dup2.c (setmode): Likewise.
22395         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22396
22397         cloexec: preserve text vs. binary across dup_cloexec
22398         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22399         mode.
22400         * modules/dup2-tests (Depends-on): Add binary-io.
22401         * modules/cloexec-tests (Depends-on): Likewise.
22402         * tests/test-dup2.c (setmode, is_mode): New helpers.
22403         (main): Add tests that translation mode is preserved.
22404         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22405         Reported by Bruno Haible.
22406
22407         mgetgroups: reduce duplicate listings
22408         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22409         resulting array.
22410         * tests/test-chown.h (test_chown): Simplify client.
22411         * tests/test-lchown.h (test_lchown): Likewise.
22412
22413 2009-12-06  Bruno Haible  <bruno@clisp.org>
22414
22415         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22416         value.
22417
22418 2009-12-06  Bruno Haible  <bruno@clisp.org>
22419
22420         * lib/progname.c: Include stdio.h, stdlib.h.
22421         (set_program_name): Reject a NULL argument.
22422
22423 2009-12-05  Eric Blake  <ebb9@byu.net>
22424
22425         pipe2-safer: new module
22426         * modules/pipe2-safer: New file.
22427         * lib/unistd-safer.h (pipe2_safer): New prototype.
22428         * lib/unistd--.h (pipe2): New wrapper.
22429         * lib/pipe-safer.c (pipe2_safer): New function.
22430         * modules/pipe (Depends-on): Add pipe2-safer.
22431         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22432
22433         stdlib-safer: preserve cloexec flag for mkostemp[s]
22434         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22435         fd_safer_flag.
22436
22437         unistd-safer: allow preservation of cloexec status via flag
22438         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22439         prototypes.
22440         * lib/dup-safer.c (dup_safer_flag): New function.
22441         * lib/fd-safer.c (fd_safer_flag): Likewise.
22442         * modules/cloexec (configure.ac): Set witness.
22443
22444         test-dup2: enhance test
22445         * modules/dup2-tests (Depends-on): Add cloexec.
22446         * tests/test-dup2.c (main): Enhance test.
22447
22448         cloexec: add dup_cloexec
22449         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22450         header and comments.
22451         * lib/cloexec.c (set_cloexec_flag): Add comments.
22452         (dup_cloexec): New function, with mingw implementation borrowed
22453         from...
22454         * lib/w32spawn.h (dup_noinherit): ...here.
22455         * modules/execute (Depends-on): Add cloexec.
22456         * modules/pipe (Depends-on): Likewise.
22457         * modules/cloexec (Depends-on): Add dup2.
22458         * modules/cloexec-tests (Files): New file.
22459         * tests/test-cloexec.c: Likewise.
22460
22461         test-xalloc-die: fix test for mingw
22462         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22463         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22464         directory and .exe suffix off argv[0] output.
22465
22466         test-fseeko: fix test for mingw
22467         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22468         than undefining fseek, so test will pass on mingw.
22469
22470 2009-12-05  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/progname.h (set_program_name): Clarify specification.
22473         * lib/progname.c (set_program_name): Likewise.
22474         Reported by Jim Meyering.
22475
22476 2009-12-05  Jim Meyering  <meyering@redhat.com>
22477
22478         maint.mk: backslash-escape parens in default regexp
22479         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22480         backslash-escape the literal parentheses.
22481
22482         maint.mk: news-date-check: use grep -E
22483         * top/maint.mk (today): Define a Make variable, not a...
22484         (news-date-check): ...shell variable.
22485         (news-date-regexp): Use the Make variable.
22486         Use grep's -E option.  Change the failing diagnostic to mention
22487         the variable, $(news-date-regexp).
22488
22489 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22490
22491         maintainer-makefile: allow customization of NEWS entry format
22492         * top/maint.mk (news-date-regexp): New overridable variable.
22493         (news-date-check): Use it.
22494
22495 2009-12-04  Eric Blake  <ebb9@byu.net>
22496
22497         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22498         * lib/mgetgroups.h (xgetgroups): New prototype.
22499         * lib/mgetgroups.c (xgetgroups): New wrapper.
22500         (mgetgroups): Handle ENOSYS.
22501         * modules/mgetgroups (Depends-on): Add realloc.
22502         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22503
22504         mgetgroups: avoid argument promotion issues with -1
22505         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22506         for invalid gid_t.
22507         * tests/test-chown.h (getegid, test_chown): Likewise.
22508         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22509
22510 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22511
22512         exclude: Fix header file problems.
22513         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22514
22515 2009-12-01  Jim Meyering  <meyering@redhat.com>
22516
22517         fts: fts_open: do not let an empty string cause immediate failure
22518         This is required in support of GNU rm, for which the command
22519         "rm A '' B" must process and remove both A and B, in spite of
22520         the empty string argument.
22521         * lib/fts.c (fts_open): Do not let the presence of an empty string
22522         cause fts_open to fail immediately.  Most fts-using tools must be
22523         able to process all arguments, in order, and can be expected to
22524         diagnose such arguments themselves.
22525
22526 2009-11-30  Eric Blake  <ebb9@byu.net>
22527
22528         utimens: fix compilation error
22529         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22530         Declare variable at right scope.
22531
22532 2009-11-29  Jim Meyering  <meyering@redhat.com>
22533
22534         bootstrap: handle perl-5.11's changed --version output
22535         * build-aux/bootstrap (get_version): Handle perl separately,
22536         since perl-5.11's --version output is different.
22537
22538 2009-11-28  Jim Meyering  <meyering@redhat.com>
22539
22540         userspec: depend on the inttostr module, too
22541         * modules/userspec (Depends-on): Add inttostr.
22542
22543         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22544         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22545         number of MAXUID when it evaluates to (uid_t) -1.
22546         Likewise for group ID.  Reported by Matt McCutchen in
22547         <http://savannah.gnu.org/bugs/?28113>
22548
22549         userspec: reformat to use spaces, not TABs
22550         * lib/userspec.c: Expand TABs to spaces.
22551         Add Emacs' "indent-tabs-mode: nil" hint.
22552
22553 2009-11-27  Eric Blake  <ebb9@byu.net>
22554
22555         getopt-gnu: flush out another BSD bug
22556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22557         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22558         flush out BSD bug.
22559         * tests/test-getopt.h (test_getopt): End lists with NULL.
22560         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22561         (test_getopt_long_posix): Enhance test.
22562         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22563         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22564         getopt-gnu.
22565         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22566         Likewise.
22567
22568 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22569
22570         * modules/idpriv-droptemp-tests (Notice): Fix text.
22571
22572 2009-11-27  Jim Meyering  <meyering@redhat.com>
22573
22574         test-xalloc-die: avoid spurious failure due to libtool argv difference
22575         In a libtool-enabled project, this test would fail due to a difference
22576         in the emitted program name, e.g.,
22577         -test-xalloc-die: memory exhausted
22578         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22579         Use program to avoid that.
22580         * modules/xalloc-die-tests (Depends-on): Add progname.
22581         * tests/test-xalloc-die.c: Include progname.h".
22582         (program_name): Remove decl.
22583         (main): Call set_program_name.
22584         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22585
22586 2009-11-26  Richard Jones  <rjones@redhat.com>
22587
22588         w32sock: leave win32 error in place.
22589         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22590
22591 2009-11-26  Eric Blake  <ebb9@byu.net>
22592
22593         init.sh: suggest to use skip_ and fail_ functions in comments
22594         * tests/init.sh: Add a sentence.
22595
22596 2009-11-25  Bruno Haible  <bruno@clisp.org>
22597
22598         init.sh: add documentation in comments
22599         * tests/init.sh: Add some developer and user documentation.
22600
22601 2009-11-26  Jim Meyering  <meyering@redhat.com>
22602
22603         init.sh: accommodate even those who specify bogus srcdir manually
22604         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22605         configure-time tests to be sanitized, so that there is no need to
22606         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22607         (with no double quotes) suffices.  However, since tests may be
22608         invoked manually, and since you may explicitly set srcdir to the
22609         name of a directory containing spaces, do quote its uses here.
22610         * tests/test-pread.sh: Likewise.
22611         Suggested by Bruno Haible.
22612
22613         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22614         * tests/test-pread.sh: Write no data into the pipe, because
22615         test-pread actually reads none.  This avoids a diagnostic,
22616         "bash: echo: write error: Broken pipe", that arises in the unusual
22617         event something is ignoring SIGPIPE, and might be interpreted
22618         as some sort of failure.  Reported by Bruno Haible.
22619
22620 2009-11-25  Jim Meyering  <meyering@redhat.com>
22621
22622         test-pread: cover failure with ESPIPE and EINVAL
22623         * tests/test-pread.c (main): Test for failure, too.
22624         * tests/test-pread.sh: Invoke with stdin on a pipe.
22625         Suggested by Eric Blake.
22626
22627         pread: improvement and fix
22628         * modules/pread (Depends-on): Depend on lseek, for portability to
22629         e.g., mingw.  Suggested by Eric Blake.
22630         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22631
22632         unistd.in.h: correct declaration of pread
22633         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22634         Reported by Richard W.M. Jones.
22635
22636         test-pread.sh: distribute the test script
22637         * modules/pread-tests (Files): Include test-pread.sh.
22638
22639         test-pread.sh: clean up
22640         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22641         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22642         That is unnecessary, since it's always ".".
22643         Suggestion from Eric Blake.
22644
22645         test-pread.sh: make executable
22646         * tests/test-pread.sh: Set executable bit.
22647         Reported by Eric Blake.
22648
22649         correct typo in test-pread.sh
22650         * tests/test-pread.sh: Add #! line.
22651
22652         test pread
22653         * tests/test-pread.c: New file.
22654         * tests/test-pread.sh: Likewise.
22655         * modules/pread-tests: Likewise.
22656
22657         pread: new module
22658         * modules/pread: New file.
22659         * lib/unistd.in.h (pread): Define/declare.
22660         * lib/pread.c (pread): New file.
22661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22662         * modules/unistd (Makefile.am): Substitute witnesses.
22663         * doc/posix-functions/pread.texi (pread): Update.
22664         * MODULES.html.sh: Add pread.
22665
22666 2009-11-25  Jim Meyering  <meyering@redhat.com>
22667
22668         tests/init.sh: new file to be used via most *.sh tests
22669         * tests/init.sh: New file.
22670
22671 2009-11-25  Eric Blake  <ebb9@byu.net>
22672
22673         utimens: work around older Linux failure with symlinks
22674         * lib/utimens.c (lutimensat_works_really): New variable.
22675         (fdutimens, lutimens): Use it to manage kernels that support
22676         nanosecond times on files, but not on symlinks.
22677         Reported by OndÅ™ej Vašík.
22678
22679         utimes: fix configure grammar
22680         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22681
22682 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22683
22684         regex: Fix fastmap for multibyte character ranges.
22685         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22686         characters when a multibyte character range is included.
22687
22688 2009-11-22  Andy Wingo  <wingo@pobox.com>
22689
22690         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22691         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22692
22693 2009-11-24  Bruno Haible  <bruno@clisp.org>
22694
22695         doc: Most *_l functions exist in MacOS X 10.5.
22696         * doc/posix-functions/duplocale.texi: Update platforms list.
22697         * doc/posix-functions/freelocale.texi: Likewise.
22698         * doc/posix-functions/newlocale.texi: Likewise.
22699         * doc/posix-functions/uselocale.texi: Likewise.
22700         * doc/posix-functions/isalnum_l.texi: Likewise.
22701         * doc/posix-functions/isalpha_l.texi: Likewise.
22702         * doc/posix-functions/isblank_l.texi: Likewise.
22703         * doc/posix-functions/iscntrl_l.texi: Likewise.
22704         * doc/posix-functions/isdigit_l.texi: Likewise.
22705         * doc/posix-functions/isgraph_l.texi: Likewise.
22706         * doc/posix-functions/islower_l.texi: Likewise.
22707         * doc/posix-functions/isprint_l.texi: Likewise.
22708         * doc/posix-functions/ispunct_l.texi: Likewise.
22709         * doc/posix-functions/isspace_l.texi: Likewise.
22710         * doc/posix-functions/isupper_l.texi: Likewise.
22711         * doc/posix-functions/iswalnum_l.texi: Likewise.
22712         * doc/posix-functions/iswalpha_l.texi: Likewise.
22713         * doc/posix-functions/iswblank_l.texi: Likewise.
22714         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22715         * doc/posix-functions/iswctype_l.texi: Likewise.
22716         * doc/posix-functions/iswdigit_l.texi: Likewise.
22717         * doc/posix-functions/iswgraph_l.texi: Likewise.
22718         * doc/posix-functions/iswlower_l.texi: Likewise.
22719         * doc/posix-functions/iswprint_l.texi: Likewise.
22720         * doc/posix-functions/iswpunct_l.texi: Likewise.
22721         * doc/posix-functions/iswspace_l.texi: Likewise.
22722         * doc/posix-functions/iswupper_l.texi: Likewise.
22723         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22724         * doc/posix-functions/isxdigit_l.texi: Likewise.
22725         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22726         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22727         * doc/posix-functions/strcoll_l.texi: Likewise.
22728         * doc/posix-functions/strfmon_l.texi: Likewise.
22729         * doc/posix-functions/strftime_l.texi: Likewise.
22730         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22731         * doc/posix-functions/strxfrm_l.texi: Likewise.
22732         * doc/posix-functions/tolower_l.texi: Likewise.
22733         * doc/posix-functions/toupper_l.texi: Likewise.
22734         * doc/posix-functions/towctrans_l.texi: Likewise.
22735         * doc/posix-functions/towlower_l.texi: Likewise.
22736         * doc/posix-functions/towupper_l.texi: Likewise.
22737         * doc/posix-functions/wcscoll_l.texi: Likewise.
22738         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22739         * doc/posix-functions/wctrans_l.texi: Likewise.
22740         * doc/posix-functions/wctype_l.texi: Likewise.
22741         * doc/glibc-functions/strptime_l.texi: Likewise.
22742         * doc/glibc-functions/strtod_l.texi: Likewise.
22743         * doc/glibc-functions/strtof_l.texi: Likewise.
22744         * doc/glibc-functions/strtol_l.texi: Likewise.
22745         * doc/glibc-functions/strtold_l.texi: Likewise.
22746         * doc/glibc-functions/strtoll_l.texi: Likewise.
22747         * doc/glibc-functions/strtoul_l.texi: Likewise.
22748         * doc/glibc-functions/strtoull_l.texi: Likewise.
22749         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22750         * doc/glibc-functions/wcstod_l.texi: Likewise.
22751         * doc/glibc-functions/wcstof_l.texi: Likewise.
22752         * doc/glibc-functions/wcstol_l.texi: Likewise.
22753         * doc/glibc-functions/wcstold_l.texi: Likewise.
22754         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22755         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22756         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22757
22758 2009-11-24  Bruno Haible  <bruno@clisp.org>
22759
22760         duplocale: Fix logic bug.
22761         * lib/duplocale.c: Don't include <langinfo.h>.
22762         (_NL_LOCALE_NAME): Remove macro.
22763         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22764         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22765
22766 2009-11-23  Jim Meyering  <meyering@redhat.com>
22767
22768         test-update-copyright: don't hard-code /usr/bin/perl
22769         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22770         perl to print the current year.  Gilles Espinasse reported that
22771         the replaced use of perl was hard-coded as /usr/bin/perl.
22772
22773 2009-11-23  Bruno Haible  <bruno@clisp.org>
22774
22775         duplocale: Add support for glibc 2.3.x.
22776         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22777
22778 2009-11-22  Bruno Haible  <bruno@clisp.org>
22779
22780         vasnprintf: Tiny optimization.
22781         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22782         MacOS X.
22783
22784 2009-11-22  Bruno Haible  <bruno@clisp.org>
22785
22786         Tests for module 'duplocale'.
22787         * modules/duplocale-tests: New file.
22788         * tests/test-duplocale.c: New file.
22789
22790         New module 'duplocale'.
22791         * m4/duplocale.m4: New file.
22792         * lib/locale.in.h (duplocale): New declaration.
22793         * lib/duplocale.c: New file.
22794         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22795         gl_LOCALE_H_DEFAULTS): New macros.
22796         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22797         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22798         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22799         REPLACE_DUPLOCALE.
22800         * modules/duplocale: New file.
22801         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22802
22803 2009-11-22  Bruno Haible  <bruno@clisp.org>
22804
22805         * modules/locale-tests (configure.ac): Test for newlocale function.
22806         * tests/test-locale.c: When the system has extended locale functions,
22807         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22808
22809         locale: Make locale_t available when possible.
22810         * lib/locale.in.h: Include <xlocale.h> when it exists.
22811         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22812         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22813         * modules/locale (Depends-on): Add extensions.
22814         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22815         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22816
22817 2009-11-22  Bruno Haible  <bruno@clisp.org>
22818
22819         Add comments.
22820         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22821         invocation.
22822         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22823         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22824         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22825
22826 2009-11-22  Bruno Haible  <bruno@clisp.org>
22827
22828         error: account for the possibility of freopen (stdout).
22829         * lib/error.c: Include <unistd.h>.
22830         (flush_stdout): New function, extracted from error and error_at_line.
22831         Determine stdout's fd dynamically.
22832         (error, error_at_line): Invoke flush_stdout.
22833         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22834         * modules/error (Depends-on): Add unistd.
22835
22836 2009-11-22  Bruno Haible  <bruno@clisp.org>
22837
22838         diffseq: Add comment.
22839         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22840
22841 2009-11-22  Jim Meyering  <meyering@redhat.com>
22842
22843         c-stack: avoid defining an unused static function
22844         * lib/c-stack.c (find_stack_direction): Do not define this function
22845         when it will not be used.
22846
22847         diffseq: avoid spurious gcc warnings
22848         * lib/diffseq.h (IF_LINT2): Define.
22849         (compareseq): Use it to initialize two members of "part".
22850         This avoids two used-uninitialized warnings.
22851
22852 2009-11-21  Jim Meyering  <meyering@redhat.com>
22853
22854         c-stack: avoid "ignoring return value of `write'" warning
22855         * lib/c-stack.c: Include "ignore-value.h".
22856         (die): Explicitly ignore each write return value.
22857         * modules/c-stack (Depends-on): Add ignore-value.
22858
22859 2009-11-21  Bruno Haible  <bruno@clisp.org>
22860
22861         diffseq: reduce scope of variable 'best'.
22862         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22863         variable, earlier used for two different purposes.
22864
22865 2009-11-21  Jim Meyering  <meyering@redhat.com>
22866
22867         diffseq: remove useless assignment to "best"
22868         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22869         assignment.  At that point "best" is already guaranteed to be zero.
22870
22871 2009-11-20  Eric Blake  <ebb9@byu.net>
22872
22873         build: mention ftp redirector in release announcements
22874         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22875         values that used to come from cfg.mk; mention FTP redirect URL.
22876         * build-aux/announce-gen: Mention the mirror list.
22877         Suggested by Karl Berry.
22878
22879         nanosleep: improve port to mingw
22880         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22882         LIB_NANOSLEEP, but only when needed.
22883         * modules/select (Link): Document LIBSOCKET.
22884         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22885         enough.
22886
22887         nanosleep: work around cygwin bug
22888         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22889         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22890         bug.
22891         (getnow): Delete, not needed.
22892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22893         LIB_CLOCK_GETTIME.
22894         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22895         clock-time, gettime.
22896         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22897         bug.
22898         * modules/nanosleep-tests: New test.
22899         * tests/test-nanosleep.c: New file.
22900
22901         sleep: work around cygwin bug
22902         * lib/sleep.c (rpl_sleep): Work around the bug.
22903         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22904         (gl_PREREQ_SLEEP): Delete unused macro.
22905         * modules/sleep (Depends-on): Add verify.
22906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22907         * modules/unistd (Makefile.am): Substitute witness.
22908         * lib/unistd.in.h (sleep): Update prototype.
22909         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22910         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22911         * modules/sleep-tests (Depends-on): Check for alarm.
22912
22913 2009-11-20  Jim Meyering  <meyering@redhat.com>
22914
22915         maint.mk: improve sc_prohibit_magic_number_exit
22916         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22917         so it does not match uses like System.exit(1).
22918         Add comments showing how to correct all offenders.
22919
22920 2009-11-19  Eric Blake  <ebb9@byu.net>
22921
22922         xalloc-die-tests: add missing library
22923         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22924
22925         test-xvasprintf: silence compiler warnings
22926         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22927         empty string from gcc.
22928
22929 2009-11-19  Jim Meyering  <meyering@redhat.com>
22930
22931         xfreopen: new module, from coreutils
22932         * modules/xfreopen: New module.
22933         * lib/xfreopen.c: New file.
22934         * lib/xfreopen.h: New file.
22935         * MODULES.html.sh (File stream based Input/Output"): Add it.
22936
22937 2009-11-19  Eric Blake  <ebb9@byu.net>
22938
22939         manywarnings: depend on warnings
22940         * modules/manywarnings (Depends-on): Add warnings.
22941
22942         build: avoid compiler warnings
22943         * lib/select.c (rpl_select): Delete unused variable.
22944         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22945
22946 2009-11-18  Eric Blake  <ebb9@byu.net>
22947
22948         tests: avoid false negative with --with-packager
22949         * tests/test-version-etc.sh: Discard packager information.
22950         * tests/test-argp-version-etc-1.sh: Likewise.
22951         Reported by Mike Frysinger.
22952
22953         utimens: fix regression on Solaris
22954         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22955         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22956         can only change fd timestamps via futimesat.  Instead, use an
22957         additional witness macro to avoid BSD bug.
22958         Reported by Jim Meyering.
22959
22960 2009-11-17  Eric Blake  <ebb9@byu.net>
22961
22962         usleep: use it to simplify tests
22963         * modules/stat-time-tests (Depends-on): Add usleep.
22964         (configure.ac): Drop usleep check.
22965         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22966         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22967         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22968         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22969         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22970         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22971         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22972         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22973         Likewise.
22974         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22975         * tests/test-lchown.h (nap): Likewise.
22976         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22977         * tests/test-stat-time.c (nap): Likewise.
22978         * tests/test-utimens-common.h (nap): Update comments.
22979
22980         usleep: new module
22981         * modules/usleep: New file.
22982         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22983         * lib/usleep.c (usleep): Likewise.
22984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22985         * modules/unistd (Makefile.am): Substitute witnesses.
22986         * lib/unistd.in.h (usleep): Add declaration.
22987         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22988         * MODULES.html.sh (Date and time): Likewise.
22989         * modules/usleep-tests (Depends-on): New test.
22990         * tests/test-usleep.c: New file.
22991
22992         chown: work around OpenBSD bug
22993         * lib/chown.c (rpl_chown): Work around the bug.
22994         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22995         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22996         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22997         * modules/chown (Depends-on): Add stdbool.
22998         * modules/lchown (Depends-on): Likewise.
22999         * doc/posix-functions/chown.texi (chown): Document the bug.
23000         * doc/posix-functions/lchown.texi (lchown): Likewise.
23001         * tests/test-lchown.h (test_chown): Relax test.
23002
23003         mkstemp: avoid conflict with C++ keyword template
23004         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23005         * lib/mkostemp.c (mkostemp): Likewise.
23006         * lib/mkostemps.c (mkostemps): Likewise.
23007         * lib/mkstemp.c (mkstemp): Likewise.
23008         * lib/mkstemps.c (mkstemps): Likewise.
23009
23010         xalloc-die-tests: optimize
23011         * tests/test-xalloc-die.sh: Reduce number of processes.
23012
23013 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23014
23015         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23016         patch from ludo@gnu.org (Ludovic Courtès).
23017
23018 2009-11-17  Jim Meyering  <meyering@redhat.com>
23019
23020         version-etc: use proper license string
23021         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23022         * modules/version-etc-fsf: Likewise.
23023
23024 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23025
23026         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23027         printed to stdout.  Deal with EOL differences.
23028
23029 2009-11-17  Eric Blake  <ebb9@byu.net>
23030
23031         unsetenv: work around Solaris bug
23032         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23033         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23034         Reported by Jim Meyering.
23035
23036         vasnprintf: avoid compiler warnings
23037         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23038         variables.
23039         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23040
23041 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23042
23043         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23044         settings since xalloc-die is no longer the self test,
23045         xalloc-die.sh is.
23046
23047 2009-11-17  Jim Meyering  <meyering@redhat.com>
23048
23049         test-xalloc-die.sh: make the code agree with the commit log
23050         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23051         at the end, just in case you happen to have a test-xalloc-die
23052         program in some other PATH directory.
23053
23054         test-xalloc-die.sh: fix a portability bug
23055         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23056         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23057         Otherwise, argv[0] (as often seen in diagnostics) would be too
23058         system-dependent, sometimes with, and sometimes without the leading "./".
23059
23060         version-etc-fsf: relax license to LGPLv3+
23061         * modules/version-etc-fsf (License): Relax license.
23062
23063 2009-11-16  Eric Blake  <ebb9@byu.net>
23064
23065         xalloc-die-tests: avoid printing null pointer
23066         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23067         shell script.
23068         * tests/test-xalloc-die.c (program_name): Declare.
23069         * tests/test-xalloc-die.sh (tmpfiles): New file.
23070
23071         setenv, unsetenv: work around various bugs
23072         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23073         (setenv) [HAVE_SETENV]: Work around bugs.
23074         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23075         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23076         for bugs.
23077         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23078         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23080         * modules/stdlib (Makefile.am): Update substitutions.
23081         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23082         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23083         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23084         * modules/setenv-tests: New test.
23085         * modules/unsetenv-tests: Likewise.
23086         * tests/test-setenv.c: New file.
23087         * tests/test-unsetenv.c: Likewise.
23088
23089 2009-11-16  Jim Meyering  <meyering@redhat.com>
23090
23091         version-etc: relax license to LGPLv3+
23092         * modules/version-etc (License): Relax license.
23093
23094         better AC_REQUIRE expanded-before-required-warning avoidance
23095         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23096         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23097         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23098         which is no longer needed.
23099
23100 2009-11-16  Eric Blake  <ebb9@byu.net>
23101
23102         test-freading: clean up temporary file
23103         * tests/test-freading.c (main): Remove file on success, and use
23104         ASSERT more liberally.
23105         Reported by Jim Meyering.
23106
23107 2009-11-16  Jim Meyering  <meyering@redhat.com>
23108
23109         avoid new AC_REQUIRE expanded-before-required warnings
23110         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23111         merely using it.
23112         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23113         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23114
23115 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23116
23117         * tests/test-xalloc-die.c: New file.
23118         * modules/xalloc-die-tests: New file.
23119         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23120         XFAIL_TESTS so it can be appended by modules.
23121
23122 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23123
23124         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23125         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23126
23127 2009-11-14  Eric Blake  <ebb9@byu.net>
23128
23129         fnmatch: avoid compiler warning
23130         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23131         to silence compiler warning about mismatch signedness in ?:.
23132         Reported by Robert Millan.
23133
23134         intprops: add double-inclusion guard
23135         * lib/intprops.h: Allow idempotent includes.
23136         Suggested by Bruce Korb.
23137
23138         openat: detect Solaris fchownat bug
23139         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23140         penalizing glibc chownat when only lchownat is broken.
23141         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23142         trailing slash bugs.
23143         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23144         * modules/openat-tests (Files): Include more files.
23145         (Depends-on): Add mgetgroups, sleep, stat-time.
23146         (configure.ac): Add additional checks.
23147         (Makefile.am): Build new test.
23148         * tests/test-fchownat.c: New file.
23149
23150         lchown: detect Solaris and FreeBSD bug
23151         * lib/lchown.c (rpl_lchown): Work around bug.
23152         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23154         * modules/unistd (Makefile.am): Populate it.
23155         * lib/unistd.in.h (lchown): Update declaration.
23156         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23157         * modules/lchown-tests: New file.
23158         * tests/test-lchown.h (test_lchown): Likewise.
23159         * tests/test-lchown.c (main): Likewise.
23160
23161         chown: detect Solaris and FreeBSD bug
23162         * lib/chown.c (rpl_chown): Work around bug.
23163         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23164         (gl_PREREQ_CHOWN): Delete.
23165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23166         * modules/unistd (Makefile.am): Populate it.
23167         * lib/unistd.in.h (chown): Update declaration.
23168         * lib/lchown.c (chown): Update client.
23169         * modules/lchown (Depends-on): Add lstat.
23170         * doc/posix-functions/chown.texi (chown): Document the bug.
23171         * doc/posix-functions/getgroups.texi (getgroups): Document
23172         getgroups pitfall.
23173         * modules/chown-tests: New file.
23174         * tests/test-chown.h (test_chown): Likewise.
23175         * tests/test-chown.c (main): Likewise.
23176
23177 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23178
23179         gnulib-tool: correctly detect absence of m4 directories
23180         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23181
23182 2009-11-14  Jim Meyering  <meyering@redhat.com>
23183
23184         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23185         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23186
23187 2009-11-14  John W. Eaton  <jwe@gnu.org>
23188
23189         strftime.h: wrap funtion declaration in extern "C" block
23190         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23191
23192 2009-11-13  Eric Blake  <ebb9@byu.net>
23193
23194         getgroups: avoid compiler warning
23195         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23196
23197         getgroups: work around FreeBSD bug
23198         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23199         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23200         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23201         * tests/test-getgroups.c (main): Fix buffer overrun.
23202
23203         getgroups: avoid compilation failure
23204         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23205         * modules/getgroups (Depends-on): Add stdint.
23206
23207 2009-11-13  Jim Meyering  <meyering@redhat.com>
23208
23209         test-getgroups: avoid compilation failure
23210         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23211
23212 2009-11-13  Eric Blake  <ebb9@byu.net>
23213
23214         mgetgroups: new module, taken from coreutils
23215         * modules/mgetgroups: New file.
23216         * lib/mgetgroups.h: Likewise.
23217         * lib/mgetgroups.c (mgetgroups): Likewise.
23218         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23219         * MODULES.html.sh (Users and groups): Mention it.
23220
23221         getgroups: don't expose GETGROUPS_T to user
23222         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23223         an element at a time if GETGROUPS_T is wrong size.
23224         * lib/getugroups.h (getugroups): Change signature.
23225         * lib/unistd.in.h (getgroups): Likewise.
23226         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23227         signature needs fixing.
23228         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23229         AC_TYPE_GETGROUPS.
23230         * modules/group-member (Depends-on): Add getgroups.
23231         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23232         (group_member): Rely on getgroups replacement.
23233         * lib/getugroups.c (getugroups): Use gid_t.
23234         * tests/test-getgroups.c (main): Likewise.
23235         * NEWS: Mention the signature change.
23236         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23237         problem with signature.
23238         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23239         GETGROUPS_T is still useful for setgroups.
23240
23241         getgroups, getugroups: provide stubs for mingw
23242         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23243         * lib/getugroups.c (getugroups): Likewise.
23244         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23245         function.  Modernize replacement scheme.
23246         (gl_PREREQ_GETGROUPS): Delete.
23247         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23248         * modules/getgroups (configure.ac): Declare witness.
23249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23250         * modules/unistd (Depends-on): Substitute witness.
23251         * lib/unistd.in.h (getgroups): Declare replacement.
23252
23253         getgroups: avoid calling exit
23254         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23255         drop xalloc.
23256         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23257         dependencies.
23258         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23259         exiting, in the rare case of malloc failure.
23260
23261         getgroups: fix logic error
23262         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23263         has more than 20 groups.
23264         * modules/getgroups-tests: New test.
23265         * tests/test-getgroups.c: New file.
23266
23267 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23268
23269         * tests/test-base64.c: Improve.
23270
23271 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23272
23273         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23274         Blake <ebb9@byu.net>.
23275
23276 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23277
23278         * tests/test-xvasprintf.c: Add %s%s related checks.
23279
23280 2009-11-12  Eric Blake  <ebb9@byu.net>
23281
23282         version-etc: match standards.texi style
23283         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23284         and use <> only for URLs.
23285
23286 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23287
23288         fts: do not fail on a submount during traversal
23289         * lib/fts.c (fts_build): Read the stat info again after opening
23290         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23291         Original report at http://bugzilla.redhat.com/501848.
23292
23293 2009-11-12  Jim Meyering  <meyering@redhat.com>
23294
23295         bootstrap: sync from coreutils
23296         * build-aux/bootstrap (bootstrap_epilogue): New function.
23297         Use git_modules_config in one more place.  This make bootstrap's
23298         --gnulib-srcdir option more useful for testing.
23299
23300         bootstrap: generalize autoheader check
23301         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23302         AC_CONFIG_HEADERS.
23303
23304 2009-11-11  Eric Blake  <ebb9@byu.net>
23305
23306         mkfifoat: use new modules for Solaris and BSD bugs
23307         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23308         * lib/mkfifoat.c (mknodat): Split...
23309         * lib/mknodat.c (mknodat): ...into new file.
23310         * modules/mkfifoat (Files): Ship new file.
23311         (Depends-on): Add mkfifo, mknod.
23312         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23313         (Depends-on): Add symlink.
23314         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23315         redundant with test_mkfifo.h.
23316         (do_mkfifoat, do_mknodat): New helpers.
23317
23318         mknod: new module
23319         * modules/mknod: New file.
23320         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23321         * lib/mknod.c (mknod): Likewise.
23322         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23323         defaults.
23324         * modules/sys_stat (Makefile.am): Substitute them.
23325         * lib/sys_stat.in.h (mknod): Declare replacement.
23326         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23327         Document it.
23328         * doc/posix-functions/mknod.texi (mknod): Likewise.
23329         * modules/mknod-tests: New test.
23330         * tests/test-mknod.c: Likewise.
23331
23332         mkfifo: new module
23333         * modules/mkfifo: New file.
23334         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23335         * lib/mkfifo.c (mkfifo): Likewise.
23336         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23337         defaults.
23338         * modules/sys_stat (Makefile.am): Substitute them.
23339         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23340         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23341         Document it.
23342         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23343         * modules/mkfifo-tests: New test.
23344         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23345         from test-mkfifoat.c.
23346         * tests/test-mkfifo.c: New file.
23347
23348         readlink: detect FreeBSD bug
23349         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23350         slash on symlink.
23351         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23352         * tests/test-readlink.h (test_readlink): Enhance test.
23353
23354         symlink: detect FreeBSD bug
23355         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23356         slash on symlink.
23357         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23358         * tests/test-symlink.h (test_symlink): Enhance test.
23359
23360 2009-11-10  Eric Blake  <ebb9@byu.net>
23361
23362         link: detect FreeBSD bug
23363         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23364         symlink.
23365         * doc/posix-functions/link.texi (link): Document the bug.
23366         * tests/test-link.h (test_link): Enhance test.
23367         * tests/test-linkat.c (main): Update caller.
23368
23369         unlink, remove: detect FreeBSD bug
23370         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23371         slash on symlink.
23372         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23373         * doc/posix-functions/remove.texi (remove): Likewise.
23374         * tests/test-unlink.h (test_unlink): Enhance test.
23375         * tests/test-remove.c (main): Likewise.
23376
23377 2009-11-09  Eric Blake  <ebb9@byu.net>
23378
23379         rename: detect FreeBSD bug
23380         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23381         slash on symlink.
23382         * modules/renameat-tests (Depends-on): Add filenamecat.
23383         * tests/test-rename.h (test_rename): Allow one more errno.
23384         * tests/test-renameat.c (main): Likewise.
23385         * doc/posix-functions/rename.texi (rename): Document the bug.
23386
23387         open: detect FreeBSD bug
23388         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23389         symlink.
23390         * doc/posix-functions/open.texi (open): Document the bug.
23391         * doc/posix-functions/utimes.texi (utimes): Likewise.
23392         * tests/test-open.h (test_open): Add parameters, and test symlink
23393         handling.
23394         * tests/test-open.c (main): Adjust caller.
23395         * tests/test-fcntl-safer.c (main): Likewise.
23396         * modules/open-tests (Depends-on): Add stdbool, symlink.
23397         * modules/fcntl-safer-tests (Depends-on): Likewise.
23398         * tests/test-openat.c (main): Add test-open tests.
23399
23400         stat: detect FreeBSD bug
23401         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23402         symlink.
23403         * doc/posix-functions/stat.texi (stat): Document the bug.
23404         * tests/test-stat.h (test_stat_func): Add argument.
23405         * tests/test-stat.c (main): Adjust caller.
23406         * tests/test-fstatat.c (main): Likewise.
23407         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23408         Reported by Jim Meyering.
23409
23410 2009-11-09  James Youngman  <jay@gnu.org>
23411
23412         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23413         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23414
23415 2009-11-08  Jim Meyering  <meyering@redhat.com>
23416
23417         utimens: remove invalid futimesat call
23418         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23419         It used the file descriptor of the target file as the DIR_FD
23420         parameter and NULL as the file name.  That caused failure with
23421         errno == EFAULT on FreeBSD-8.0-rc2
23422
23423 2009-11-07  Eric Blake  <ebb9@byu.net>
23424
23425         fflush, freadseek: use fseeko, not fseek
23426         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23427         (clear_ungetc_buffer): Avoid potential problems on large files.
23428         * lib/freadseek.c (freadseek): Likewise.
23429         * modules/freadseek (Depends-on): Add fseeko.
23430         * modules/fseek (configure.ac): Set a witness.
23431         * tests/test-fflush.c (main): Use fseeko.
23432         * tests/test-fpurge.c (fseek): Disable link warning.
23433         * tests/test-freadable.c (fseek): Likewise.
23434         * tests/test-freading.c (fseek): Likewise.
23435         * tests/test-fseeko.c (fseek): Likewise.
23436         * tests/test-ftell.c (fseek): Likewise.
23437         * tests/test-ftello.c (fseek): Likewise.
23438         * tests/test-fwritable.c (fseek): Likewise.
23439         * tests/test-fwriting.c (fseek): Likewise.
23440
23441 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23442
23443         * modules/memchr (Depends-on): Drop getpagesize dependency.
23444
23445 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23446
23447         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23448         Reported by Ludovic Courtès.
23449         * build-aux/pmccabe2html: Improve example usage.
23450         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23451
23452 2009-11-06  Jim Meyering  <meyering@redhat.com>
23453
23454         do-release-commit-and-tag: New module.
23455         Automate the release-commit and tag process.
23456         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23457         * modules/do-release-commit-and-tag: New file.
23458         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23459
23460 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23461
23462         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23463         because test-select.c uses inet_pton.
23464
23465 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23466
23467         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23468         GETADDRINFO_LIB.  Bump serial number.
23469         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23470         Suggested by Eric Blake <ebb9@byu.net>.
23471
23472 2009-11-05  Eric Blake  <ebb9@byu.net>
23473
23474         strtod: detect darwin bug
23475         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23476         Reported by Leo Davis.
23477
23478         freopen-safer: new module
23479         * modules/freopen-safer: New module.
23480         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23481         * lib/freopen-safer.c (freopen_safer): New file.
23482         * lib/stdio-safer.h (freopen_safer): New declaration.
23483         * lib/stdio--.h (freopen): New override.
23484         * MODULES.html.sh (File stream based Input/Output): Mention it.
23485         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23486         freopen-safer module.
23487         * doc/posix-functions/stderr.texi (stderr): Likewise.
23488         * doc/posix-functions/stdin.texi (stdin): Likewise.
23489         * doc/posix-functions/stdout.texi (stdout): Likewise.
23490         * modules/freopen-safer-tests: New test.
23491         * tests/test-reopen-safer.c: New file.
23492
23493 2009-11-05  Jim Meyering  <meyering@redhat.com>
23494
23495         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23496         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23497
23498 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23499
23500         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23501
23502 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23503
23504         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23505
23506 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23507
23508         Fix link error.
23509         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23510         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23511
23512 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23513
23514         * tests/test-func.c: Also test value of __func__.
23515
23516 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23517
23518         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23519         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23520
23521 2009-11-05  Bruno Haible  <bruno@clisp.org>
23522
23523         Fix link error.
23524         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23525         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23526         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23527
23528 2009-11-05  Bruno Haible  <bruno@clisp.org>
23529
23530         Tests for module 'inet_pton'.
23531         * modules/inet_pton-tests: New file.
23532         * tests/test-inet_pton.c: New file.
23533
23534 2009-11-05  Bruno Haible  <bruno@clisp.org>
23535
23536         Tests for module 'inet_ntop'.
23537         * modules/inet_ntop-tests: New file.
23538         * tests/test-inet_ntop.c: New file.
23539
23540 2009-11-04  Eric Blake  <ebb9@byu.net>
23541
23542         stdlib-safer: wrap all mkstemp variants
23543         * modules/mkostemp (configure.ac): Set witness.
23544         * modules/mkostemps (configure.ac): Likewise.
23545         * modules/mkstemps (configure.ac): Likewise.
23546         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23547         (mkstemps_safer): Wrap more functions.
23548         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23549         wrapping.
23550         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23551         (mkstemps_safer): Implement the wrappers.
23552
23553         mkstemps, mkostemps: new modules
23554         * modules/mkostemps: New module.
23555         * modules/mkstemps: Likewise.
23556         * lib/mkostemps.c (mkostemps): New file.
23557         * lib/mkstemps.c (mkstemps): Likewise.
23558         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23559         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23561         * modules/stdlib (Makefile.am): Substitute them.
23562         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23563         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23564         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23565         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23566         * MODULES.html.sh (File system functions): Mention them.
23567
23568         tempname: resync from glibc
23569         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23570         same values for __GT_FILE as glibc.  Abort even when assertions
23571         are disabled.
23572         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23573         match its value otherwise.  Allow idempotent inclusion.
23574         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23575         * lib/mkostemp.c (mkostemp): Likewise.
23576         * lib/mkstemp.c (mkstemp): Likewise.
23577         * lib/tmpfile.c (tmpfile): Likewise.
23578         * NEWS: Document this.
23579
23580         utimens: fix use of futimens on older Linux
23581         * lib/utimens.c (fdutimens): Use updated, rather than original,
23582         timespec to avoid bug in older Linux kernel.
23583         Reported by Simon Josefsson.
23584
23585 2009-11-04  Bruno Haible  <bruno@clisp.org>
23586
23587         Make num_processors more flexible and consistent.
23588         * lib/nproc.h (enum nproc_query): New type.
23589         (num_processors): Add a 'query' argument.
23590         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23591         (num_processors): Add a 'query' argument. Test the value of the
23592         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23593         mingw, count the number of CPUs available for the current process.
23594         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23595         Check for sched_getaffinity and sched_getaffinity_np.
23596         * modules/nproc (Depends-on): Add c-ctype, extensions.
23597         * NEWS: Mention the change.
23598
23599 2009-11-03  Bruno Haible  <bruno@clisp.org>
23600
23601         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23602
23603 2009-11-03  Jim Meyering  <meyering@redhat.com>
23604
23605         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23606         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23607         if it is defined.
23608
23609 2009-11-02  Eric Blake  <ebb9@byu.net>
23610
23611         mktime, timegm: share common declaration
23612         * lib/mktime-internal.h: New file.
23613         * lib/mktime.c: Use it rather than open-coding a declaration.
23614         * lib/timegm.c: Likewise.
23615         * modules/mktime (Files): Ship it.
23616         * modules/timegm (Files): Likewise.
23617         Suggested by Bruno Haible.
23618
23619         test-update-copyright: update test to match script changes
23620         * tests/test-update-copyright.sh: Avoid hard-coding perl
23621         location.  Don't update *.bak created by earlier runs.
23622
23623 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23624             Simon Josefsson  <simon@josefsson.org>
23625             Bruno Haible  <bruno@clisp.org>
23626
23627         Fix link error on Solaris 8.
23628         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23629         also in libnsl. Define also INET_PTON_LIB.
23630         * modules/inet_pton (Link): New section.
23631
23632 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23633             Bruno Haible  <bruno@clisp.org>
23634
23635         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23636         * modules/inet_ntop (Link): New section.
23637         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23638
23639 2009-11-02  Eric Blake  <ebb9@byu.net>
23640
23641         maint: avoid compiler warnings in m4 macros
23642         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23643         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23644
23645 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23646
23647         * m4/pmccabe2html.m4: Remove file.
23648         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23649         function.  Change maintainer.
23650         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23651         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23652         Courtès).
23653
23654 2009-10-31  Eric Blake  <ebb9@byu.net>
23655
23656         fseeko: fix m4 regression
23657         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23658         regression from 2009-10-27.
23659         Reported by Ralf Wildenhues.
23660
23661 2009-10-31  Jim Meyering  <meyering@redhat.com>
23662
23663         inttostr: aesthetics and improved (compile-time) safety
23664         Define inttype_is_signed rather than inttype_is_unsigned,
23665         since the sole use is via "#if inttype_is_signed".
23666         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23667         inttype_is_unsigned.
23668         * lib/offtostr.c (inttype_is_signed): Likewise.
23669         * lib/uinttostr.c (inttype_is_signed): Likewise.
23670         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23671         * lib/inttostr.c (inttostr): Use verify to cross-check the
23672         inttype_is_signed value and the signedness of the actual type.
23673         * modules/inttostr (Depends-on): Add verify.
23674
23675 2009-10-30  Eric Blake  <ebb9@byu.net>
23676
23677         build: avoid compiler warnings
23678         * lib/fchmodat.c (lchmod): Mark unused variables.
23679         * lib/getopt.c (_getopt_initialize): Likewise.
23680         * lib/mktime.c (__mktime_internal): Provide prototype.
23681         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23682         older gcc that do not understand #pragma GCC diagnostic.
23683         * lib/uinttostr.c (inttype_is_unsigned): Define.
23684         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23685
23686 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23687
23688         stat: fix compilation on AIX
23689         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23690         only see struct stat64.
23691
23692 2009-10-30  Eric Blake  <ebb9@byu.net>
23693
23694         exclude: make more robust
23695         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23696         rather than masking a coding bug.
23697         Suggested by Bruno Haible.
23698
23699 2009-10-30  Jim Meyering  <meyering@redhat.com>
23700
23701         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23702         Rather than putting #!/usr/bin/perl on the first line,
23703         start with a variant of what's recommended by "man perlrun" that
23704         invokes the first "perl" program from your shell's search path.
23705         * build-aux/gitlog-to-changelog: Replace #!... as above.
23706         Add a "Local Variables" perl mode setting.
23707         Prompted by a patch from Ludovic Courtès.
23708         Improved by Eric Blake.
23709         * build-aux/useless-if-before-free: Likewise.
23710         * build-aux/announce-gen: Likewise.
23711         * build-aux/update-copyright: Likewise.
23712
23713 2009-10-29  Eric Blake  <ebb9@byu.net>
23714
23715         filenamecat-lgpl: adjust clients
23716         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23717         filenamecat.
23718         * modules/renameat (Depends-on): Likewise.
23719
23720         filenamecat: split into filenamecat-lgpl
23721         * modules/filenamecat-lgpl: New module.
23722         * modules/filenamecat (Files): Move library-safe files into
23723         filenamecat-lgpl.
23724         (Depends-on): Add filenamecat-lgpl.
23725         (configure.ac): Declare witness.
23726         * lib/filenamecat.h (file_name_concat): Only declare when using
23727         GPL module.
23728         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23729         Move...
23730         * lib/filenamecat-lgpl.c: ...into new file.
23731         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23732         (gl_FILE_NAME_CONCAT): Use it.
23733         * MODULES.html.sh (File system functions): Mention new module.
23734
23735         argp: avoid memory leak
23736         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23737         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23738         base_name, since the latter malloc()s and can call exit().
23739         Leak introduced 2006-07-03.
23740
23741         dirname-lgpl: adjust clients that don't need full dirname
23742         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23743         * modules/filenamecat (Depends-on): Likewise.
23744         * modules/linkat (Depends-on): Likewise.
23745         * modules/mkancesdirs (Depends-on): Likewise.
23746         * modules/mkdir (Depends-on): Likewise.
23747         * modules/openat (Depends-on): Likewise.
23748         * modules/savewd (Depends-on): Likewise.
23749         * modules/rename (Depends-on): Likewise.
23750         (License): Relax license.
23751         * modules/mkdir-tests (Depends-on): Drop progname.
23752         (Makefile.am): Delete unneeded LDADD.
23753         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23754
23755         dirname: split into dirname-lgpl
23756         * modules/dirname-lgpl: New module.
23757         * modules/dirname (Files): Move library-safe files into
23758         dirname-lgpl.
23759         (Depends-on): Add dirname-lgpl.
23760         (configure.ac): Declare witness.
23761         * modules/double-slash-root (License): Relax license.
23762         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23763         module.
23764         * lib/dirname.c (dir_len, mdir_name): Move...
23765         * lib/dirname-lgpl.c: ...into new file.
23766         * lib/basename.c (last_component, base_len): Move...
23767         * lib/basename-lgpl.c: ...into new file.
23768         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23769         (gl_DIRNAME): Use it.
23770         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23771         Mention new module.
23772         * modules/dirname-tests (Depends-on): Add progname.
23773         * tests/test-dirname.c (program_name): Delete.
23774
23775         mkdir: make safe for libraries
23776         * modules/mkdir (Depends-on): Drop xalloc.
23777         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23778         exit.
23779
23780         tests: avoid some compiler warnings
23781         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23782         literals.
23783         * tests/test-memchr.c (main): Avoid type mismatch.
23784         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23785         * tests/test-base64.c (main): Likewise.
23786         * tests/test-getdelim.c (main): Likewise.
23787         * tests/test-gethostname.c (main): Likewise.
23788         * tests/test-getline.c (main): Likewise.
23789         * tests/test-netinet_in.c (main): Likewise.
23790         * tests/test-select.c (open_server_socket, main): Likewise.
23791         * tests/test-select-stdin.c (main): Likewise.
23792         * tests/test-sockets.c (main): Likewise.
23793         * tests/test-strsignal.c (main): Likewise.
23794         * tests/test-sys_select.c (main): Likewise.
23795         * tests/test-sys_socket.c (main): Likewise.
23796         * tests/test-u64.c (main): Likewise.
23797         * tests/test-xfprintf-posix.c (main): Likewise.
23798         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23799
23800         sockets: avoid compiler warning
23801         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23802
23803         maint: detect usage(1) and other suspicious exits
23804         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23805
23806 2009-10-29  Jim Meyering  <meyering@redhat.com>
23807
23808         timespec: long-to-int truncation could make timespec_cmp malfunction
23809         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23810         a multiple of 2^32 nanoseconds as no difference.
23811
23812 2009-10-28  Jim Meyering  <meyering@redhat.com>
23813
23814         fprintftime: wrap macro code argument in "do {...} while(0)"
23815         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23816         cpy macro must be a statement that can be followed by a semicolon.
23817         Now that the else clause contains a comment and is hence longer
23818         than one line, I require curly braces.  That in turn requires
23819         that we wrap this code block in the standard do...while(0).
23820
23821         fprintftime: remove stray semicolon from previous change
23822         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23823
23824         fprintftime: avoid a warning about ignored fwrite return value
23825         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23826         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23827         that is unsafe.
23828         * modules/fprintftime (Depends-on): Add ignore-value.
23829
23830         exclude: avoid an unwarranted warning
23831         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23832
23833 2009-10-27  Eric Blake  <ebb9@byu.net>
23834
23835         fseek: avoid compilation failure when fflush is replaced
23836         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23837         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23838         module is in use.
23839         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23840         module is not in use; since REPLACE_FSEEK worked otherwise.
23841         (GNULIB_FTELLO): Likewise for ftell.
23842         Reported by Ian Beckwith and others.
23843
23844 2009-10-27  Bruno Haible  <bruno@clisp.org>
23845
23846         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23847         Reported by Jim Meyering.
23848
23849 2009-10-27  Jim Meyering  <jim@meyering.net>
23850             Bruno Haible  <bruno@clisp.org>
23851
23852         Avoid warning despite dropping the return value of fwrite.
23853         * lib/unicodeio.c: Include ignore-value.h.
23854         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23855         * modules/unicodeio (Depends-on): Add ignore-value.
23856
23857 2009-10-26  Eric Blake  <ebb9@byu.net>
23858
23859         areadlinkat: fix fallback path
23860         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23861         pointer and zero.
23862
23863 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23864
23865         Use a better IO block size for modern systems
23866         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23867         * lib/md2.c: Likewise.
23868         * lib/md4.c: Likewise.
23869         * lib/md5.c: Likewise.
23870         * lib/sha1.c: Likewise.
23871         * lib/sha256.c: Likewise.
23872         * lib/sha512.c: Likewise.
23873
23874 2009-10-22  Eric Blake  <ebb9@byu.net>
23875
23876         tests: avoid several compiler warnings
23877         * tests/test-getcwd.c (main): Avoid buffer underflow.
23878         * tests/test-getdate.c (main): String literals are not safe with
23879         putenv, so use setenv.  Declare unused argument.
23880         * modules/getdate-tests (Depends-on): Add setenv.
23881         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23882         problems with string literals in char *.
23883         * tests/test-hash.c (main): Avoid shadowing declaration.
23884         (insert_new): Treat string literals as char const *.
23885         * tests/test-getopt.h (test_getopt): Likewise.
23886         (getopt_loop): Alter types to minimize casting elsewhere.
23887         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23888         (test_getopt_long_posix): Likewise.
23889         (do_getopt_long): Add wrapper to minimize casting.
23890         * tests/test-atexit.c (clear_temp_file): Use void.
23891         * tests/test-areadlink-with-size.c (main): Declare unused
23892         arguments.
23893         * tests/test-areadlink.c (main): Likewise.
23894         * tests/test-areadlinkat-with-size.c (main): Likewise.
23895         * tests/test-areadlinkat.c (main): Likewise.
23896         * tests/test-canonicalize-lgpl.c (main): Likewise.
23897         * tests/test-canonicalize.c (main): Likewise.
23898         * tests/test-dirent-safer.c (main): Likewise.
23899         * tests/test-dirname.c (main): Likewise.
23900         * tests/test-dup2.c (main): Likewise.
23901         * tests/test-fchdir.c (main): Likewise.
23902         * tests/test-fcntl-h.c (main): Likewise.
23903         * tests/test-fcntl-safer.c (main): Likewise.
23904         * tests/test-fdopendir.c (main): Likewise.
23905         * tests/test-fdutimensat.c (main): Likewise.
23906         * tests/test-fflush.c (main): Likewise.
23907         * tests/test-filenamecat.c (main): Likewise.
23908         * tests/test-filevercmp.c (main): Likewise.
23909         * tests/test-fopen-safer.c (main): Likewise.
23910         * tests/test-fopen.c (main): Likewise.
23911         * tests/test-fpending.c (main): Likewise.
23912         * tests/test-fpurge.c (main): Likewise.
23913         * tests/test-freading.c (main): Likewise.
23914         * tests/test-fstatat.c (main): Likewise.
23915         * tests/test-fsync.c (main): Likewise.
23916         * tests/test-futimens.c (main): Likewise.
23917         * tests/test-getndelim2.c (main): Likewise.
23918         * tests/test-gettimeofday.c (main): Likewise.
23919         * tests/test-getopt.c (main): Likewise.
23920         * tests/test-i-ring.c (main): Likewise.
23921         * tests/test-inttypes.c (main): Likewise.
23922         * tests/test-link.c (main): Likewise.
23923         * tests/test-lstat.c (main): Likewise.
23924         * tests/test-math.c (main): Likewise.
23925         * tests/test-md5.c (main): Likewise.
23926         * tests/test-memchr2.c (main): Likewise.
23927         * tests/test-memrchr.c (main): Likewise.
23928         * tests/test-mkdir.c (main): Likewise.
23929         * tests/test-mkdirat.c (main): Likewise.
23930         * tests/test-mkfifoat.c (main): Likewise.
23931         * tests/test-open.c (main): Likewise.
23932         * tests/test-openat-safer.c (main): Likewise.
23933         * tests/test-openat.c (main): Likewise.
23934         * tests/test-quotearg.c (main): Likewise.
23935         * tests/test-rawmemchr.c (main): Likewise.
23936         * tests/test-readlink.c (main): Likewise.
23937         * tests/test-remove.c (main): Likewise.
23938         * tests/test-rename.c (main): Likewise.
23939         * tests/test-renameat.c (main): Likewise.
23940         * tests/test-rmdir.c (main): Likewise.
23941         * tests/test-sha1.c (main): Likewise.
23942         * tests/test-signal.c (main): Likewise.
23943         * tests/test-sigaction.c (main): Likewise.
23944         * tests/test-stat.c (main): Likewise.
23945         * tests/test-stat-time.c (main): Likewise.
23946         * tests/test-stddef.c (main): Likewise.
23947         * tests/test-stdint.c (main): Likewise.
23948         * tests/test-stdio.c (main): Likewise.
23949         * tests/test-stdlib.c (main): Likewise.
23950         * tests/test-strchrnul.c (main): Likewise.
23951         * tests/test-strerror.c (main): Likewise.
23952         * tests/test-string.c (main): Likewise.
23953         * tests/test-strtod.c (main): Likewise.
23954         * tests/test-strverscmp.c (main): Likewise.
23955         * tests/test-symlink.c (main): Likewise.
23956         * tests/test-symlinkat.c (main): Likewise.
23957         * tests/test-sys_stat.c (main): Likewise.
23958         * tests/test-sys_time.c (main): Likewise.
23959         * tests/test-time.c (main): Likewise.
23960         * tests/test-unistd.c (main): Likewise.
23961         * tests/test-unlink.c (main): Likewise.
23962         * tests/test-unlinkat.c (main): Likewise.
23963         * tests/test-utimens.c (main): Likewise.
23964         * tests/test-utimensat.c (main): Likewise.
23965         * tests/test-version-etc.c (main): Likewise.
23966         * tests/test-wchar.c (main): Likewise.
23967         * tests/test-wctype.c (main): Likewise.
23968         * tests/test-xprintf-posix.c (main): Likewise.
23969         * tests/test-posixtm.c (main): Likewise.
23970         (STREQ): Delete unused macro.
23971         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23972         shadowed variables.
23973         * tests/test-memchr.c (main): Likewise.
23974
23975 2009-10-21  Eric Blake  <ebb9@byu.net>
23976
23977         areadlinkat: avoid failure on older glibc
23978         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23979         rather than mis-comparing 0 against FUNC_RESULT of char*.
23980
23981 2009-10-21  Bruno Haible  <bruno@clisp.org>
23982
23983         * modules/stpncpy (License): Relicense under LGPLv2+.
23984         Reported by David Lutterkort <lutter@redhat.com>.
23985
23986 2009-10-20  Eric Blake  <ebb9@byu.net>
23987
23988         utimensat: work around Solaris 9 bug
23989         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23990         has trailing slash bugs.
23991         * tests/test-lutimens.h (test_lutimens): Enhance test.
23992         * tests/test-utimens.h (test_utimens): Likewise.
23993         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23994         * doc/posix-functions/utimes.texi (utimes): Likewise.
23995         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23996         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23997         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23998         * doc/posix-functions/futimens.texi (futimens): Likewise.
23999
24000         fdutimensat: new module
24001         * modules/fdutimensat: New file.
24002         * lib/fdutimensat.c (fdutimensat): Likewise.
24003         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24004         * MODULES.html.sh (File system functions): Mention module.
24005         * modules/fdutimensat-tests: New test.
24006         * tests/test-fdutimensat.c: Likewise.
24007
24008         doc: regenerate INSTALL
24009         * doc/INSTALL: Reflect recent autoconf update.
24010         * doc/INSTALL.ISO: Likewise.
24011         * doc/INSTALL.UTF-8: Likewise.
24012
24013 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24014
24015         acl: warn if ACL support is not detected
24016         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24017
24018 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24019
24020         * lib/nproc.h: Add extern "C" block for C++.
24021
24022 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24023             Bruno Haible  <bruno@clisp.org>
24024
24025         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24026         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24027         * doc/posix-functions/isalpha.texi: Likewise.
24028         * doc/posix-functions/isblank.texi: Likewise.
24029         * doc/posix-functions/iscntrl.texi: Likewise.
24030         * doc/posix-functions/isdigit.texi: Likewise.
24031         * doc/posix-functions/isgraph.texi: Likewise.
24032         * doc/posix-functions/islower.texi: Likewise.
24033         * doc/posix-functions/isprint.texi: Likewise.
24034         * doc/posix-functions/ispunct.texi: Likewise.
24035         * doc/posix-functions/isspace.texi: Likewise.
24036         * doc/posix-functions/isupper.texi: Likewise.
24037         * doc/posix-functions/isxdigit.texi: Likewise.
24038
24039 2009-10-18  Bruno Haible  <bruno@clisp.org>
24040
24041         Tests for module 'isblank'.
24042         * modules/isblank-tests: New file.
24043         * tests/test-isblank.c: New file.
24044
24045         New module 'isblank'.
24046         * lib/isblank.c: New file.
24047         * m4/isblank.m4: New file.
24048         * modules/isblank: New file.
24049         * doc/posix-functions/isblank.texi: Mention the new module.
24050
24051 2009-10-18  Bruno Haible  <bruno@clisp.org>
24052
24053         New module 'ctype'.
24054         * lib/ctype.in.h: New file.
24055         * m4/ctype.m4: New file.
24056         * modules/ctype: New file.
24057         * doc/posix-headers/ctype.texi: Mention the new module.
24058
24059 2009-10-18  Jim Meyering  <meyering@redhat.com>
24060
24061         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24062         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24063         right after its initialization, rather than farther down.
24064         Keeping these in close proximity makes it easier to ensure
24065         that each such variable is initialized.  E.g.,
24066
24067             LIB_CLOCK_GETTIME=
24068             AC_SUBST([LIB_CLOCK_GETTIME])
24069
24070         This change also increments these serial numbers.
24071         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24072         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24074
24075 2009-10-18  Bruno Haible  <bruno@clisp.org>
24076
24077         Don't let environment variables perturb build.
24078         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24079         (gl_PREREQ_GETHRXTIME): ... not here.
24080
24081 2009-10-18  Bruno Haible  <bruno@clisp.org>
24082
24083         Avoid symlink attack in localcharset module.
24084         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24085         (O_NOFOLLOW): Define fallback.
24086         (get_charset_aliases): Don't open the file if it is a symbolic link.
24087         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24088         gl_FCNTL_H.
24089         (gl_FCNTL_H): Require it.
24090         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24091         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24092         Reported by Fergal Glynn <fglynn@veracode.com>.
24093
24094 2009-10-18  Bruno Haible  <bruno@clisp.org>
24095
24096         Implement nproc for mingw.
24097         * lib/nproc.c: Include <windows.h>
24098         (num_processors): On native Windows platforms, try GetSystemInfo.
24099
24100 2009-10-18  Bruno Haible  <bruno@clisp.org>
24101
24102         Implement nproc for IRIX.
24103         * lib/nproc.c: Include <sys/sysmp.h>.
24104         (num_processors): On IRIX systems, try sysmp.
24105         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24106
24107 2009-10-18  Bruno Haible  <bruno@clisp.org>
24108
24109         Implement nproc for HP-UX.
24110         * lib/nproc.c: Include <sys/pstat.h>
24111         (num_processors): On HP-UX systems, try pstat_getdynamic.
24112         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24113         pstat_getdynamic.
24114
24115 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24116             Bruno Haible  <bruno@clisp.org>
24117
24118         Implement nproc for NetBSD, OpenBSD.
24119         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24120         (ARRAY_SIZE): New macro.
24121         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24122         * m4/nproc.m4: New file.
24123         * modules/nproc (Files): Add m4/nproc.m4.
24124         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24125         (Makefile.am): Instead, augment lib_SOURCES.
24126
24127 2009-10-18  Bruno Haible  <bruno@clisp.org>
24128
24129         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24130         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24131         sys/param.h.
24132
24133 2009-10-16  Eric Blake  <ebb9@byu.net>
24134
24135         utimensat: new module
24136         * modules/utimensat: New file.
24137         * lib/utimensat.c (utimensat): Likewise.
24138         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24139         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24140         so we can work around Linux bugs.
24141         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24142         * modules/sys_stat (Makefile.am): Substitute them.
24143         * lib/sys_stat.in.h (utimensat): Declare it.
24144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24145         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24146         * modules/utimensat-tests: New test.
24147         * tests/test-utimensat.c: Likewise.
24148
24149         utimens: let lutimens work on non-symlinks
24150         * lib/utimens.c (lutimens): Fall back to utimens rather than
24151         failing with ENOSYS, when file is not a symlink.
24152         (utimens): Reduce redirection.
24153         * tests/test-lutimens.h (test_lutimens): Update test to cover
24154         non-symlinks.
24155         * tests/test-utimens.h (test_utimens): Update test to cover
24156         symlinks.
24157         * tests/test-utimens.c (main): Update caller.
24158
24159         utimens: cache whether utimensat syscall works
24160         * lib/utimens.c (utimensat_works_really): New cache variable.
24161         (fdutimens, lutimens): Use it to avoid failing syscall.
24162
24163         test-stat-time, test-utimens: improve portability
24164         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24165         ext4 on alpha, and for cygwin.
24166         * tests/test-utimens-common.h: New file.
24167         (nap): Factor delays into single function.
24168         * tests/test-lutimens.h (test_lutimens): Use new header.
24169         * tests/test-futimens.h (test_futimens): Likewise.
24170         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24171         timestamps to occur from same machine, as was done previously for
24172         test_utimens.
24173         * modules/utimens-tests (Files): Ship new file.
24174         * modules/futimens-tests (Files): Likewise.
24175         Reported in part by Jim Meyering.
24176
24177         sys_stat: sort replacement declarations
24178         * lib/sys_stat.in.h: Sort declarations.
24179         * lib/futimens.c (futimens): Fix typo.
24180
24181 2009-10-15  Jim Meyering  <meyering@redhat.com>
24182
24183         don't let environment settings perturb build
24184         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24185         could cause a configure-time and/or build-time malfunction.
24186         Typically, a configure-time function-in-library test is performed
24187         via code like this:
24188
24189           LIB_VAR=
24190           AC_SUBST([LIB_VAR])
24191           prefix_saved_LIBS=$LIBS
24192             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24193                        [test "$ac_cv_search_FUNC" = "none required" ||
24194                         LIB_VAR=$ac_cv_search_FUNC])
24195           LIBS=$prefix_saved_LIBS
24196
24197         However, in each of the files affected by this change, the LIB_VAR=
24198         initialization was omitted.  Thus, when set in the environment, its
24199         value would propagate into generated Makefiles when FUNC is not found
24200         in LIB_NAME.
24201         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24202         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24204
24205 2009-10-14  Eric Blake  <ebb9@byu.net>
24206
24207         fchdir: avoid infinite recursion in mingw
24208         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24209         recursing.
24210
24211         test-stat-time: port to mingw
24212         * tests/test-stat-time.c (force_unlink): Return a value.
24213         (test_ctime) [W32]: Fix compilation error.
24214         (nap): Don't call usleep with too large an argument.  Use
24215         force_unlink.
24216         * doc/pastposix-functions/usleep.texi (usleep): Document the
24217         portability issue.
24218
24219 2009-10-13  Jim Meyering  <meyering@redhat.com>
24220
24221         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24222         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24223         * modules/pipe-filter-ii: Likewise.
24224         * modules/sys_socket-tests: Likewise.
24225         * modules/tsearch-tests: Likewise.
24226         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24227         (check): Depend on it.
24228
24229 2009-10-12  Eric Blake  <ebb9@byu.net>
24230
24231         utimens-tests: port to NFS file systems
24232         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24233         comparisons to avoid spurious failures from timestamp drift
24234         between NFS machines.
24235
24236 2009-10-12  Eric Blake  <ebb9@byu.net>
24237
24238         stat-time-tests: minor cleanups
24239         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24240         * tests/test-stat-time.c (nap): Separate assignment from call.
24241         Suggested by Paolo Bonzini and Bruno Haible.
24242
24243         sys_stat: guarantee struct timespec
24244         * lib/sys_stat.in.h (includes): Always include <time.h>
24245         * modules/sys_stat (Depends-on): Add time.
24246         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24247         mode_t permission values.
24248         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24249         get at subsecond timestamps.
24250
24251 2009-10-10  Eric Blake  <ebb9@byu.net>
24252
24253         futimens: new module
24254         * modules/futimens: New file.
24255         * lib/futimens.c (futimens): Likewise.
24256         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24257         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24258         we can work around Linux bugs.
24259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24260         * modules/sys_stat (Makefile.am): Substitute them.
24261         * lib/sys_stat.in.h (futimens): Declare it.
24262         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24263         * doc/posix-functions/futimens.texi (futimens): Likewise.
24264         * modules/futimens-tests: New test.
24265         * tests/test-futimens.c: Likewise.
24266
24267         utimens: introduce fdutimens
24268         * lib/utimens.h (fdutimens): New prototype.
24269         * lib/utimens.c (gl_futimens): Move guts...
24270         (fdutimens): ...to new interface.
24271         * tests/test-utimens.c (do_fdutimens): Use it.
24272
24273         utimens: add UTIME_NOW and UTIME_OMIT support
24274         * lib/utimens.c (validate_timespec, update_timespec): New helper
24275         functions.
24276         (gl_futimens, lutimens): Use them.
24277         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24278         stdbool, sys_stat.
24279         (Link): Mention resulting library dependency.
24280         * modules/utimecmp (Link): Likewise.
24281         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24282         (Makefile.am): Pick up library dependency.
24283         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24284         definition.
24285         * tests/test-sys_stat.c: Test the definitions.
24286         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24287         * NEWS: Document library dependency.
24288
24289         utimecmp: support symlink timestamps
24290         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24291         hashing when possible.  Use pathconf when available.
24292         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24293         * modules/utimecmp (Depends-on): Add lstat.
24294
24295         utimens: add lutimens interface
24296         * lib/utimens.c (lutimens): New function.
24297         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24298         * lib/utimens.h (lutimens): Declare new interface.
24299         * tests/test-utimens.c (main): Enhance test.
24300         * tests/test-lutimens.h (test_lutimens): New file.
24301         * modules/utimens-tests (Files): Distribute it.
24302         (Depends-on): Add symlink.
24303         (configure.ac): Check for usleep.
24304
24305         utimens: validate futimens usage
24306         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24307         fewer syscalls on failure later on.  Avoid compiler warning on
24308         mingw.
24309         * modules/utimens (Depends-on): Add dup2.
24310
24311         utimens: add test
24312         * modules/utimens-tests: New test.
24313         * tests/test-utimens.h: New file.
24314         * tests/test-futimens.h: Likewise.
24315         * tests/test-utimens.c: Likewise.
24316
24317         doc: mention timestamp portability issues
24318         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24319         instead.
24320         * doc/posix-functions/utime.texi (utime): Likewise.
24321         * doc/posix-functions/utimes.texi (utimes): Likewise.
24322         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24323         instead.
24324         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24325         module.
24326         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24327         Mention weakness with symlink timestamps.
24328         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24329         to utimensat/futimens instead.
24330         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24331
24332         test-dup2: enhance test
24333         * tests/test-dup2.c (main): Also check AT_FDCWD.
24334
24335         test-stat-time: avoid more spurious failures
24336         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24337         xfs; and avoid race if the two timestamps cross quantization edge.
24338
24339         relocatable: prefer 'file system' over 'filesystem'
24340         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24341         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24342         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24343         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24344         * lib/relocatable.c (compute_curr_prefix): Likewise.
24345
24346 2009-10-10  Jim Meyering  <meyering@redhat.com>
24347
24348         stat-time-tests: check for the usleep function
24349         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24350
24351 2009-10-10  Bruno Haible  <bruno@clisp.org>
24352
24353         * modules/xnanosleep: Put the Link section after the Include section.
24354
24355 2009-10-09  Eric Blake  <ebb9@byu.net>
24356
24357         dup2: work around FreeBSD 6.1 bug
24358         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24359         * doc/posix-functions/dup2.texi (dup2): Document it.
24360         Reported by Nelson H. F. Beebe and Jim Meyering.
24361
24362         test-stat-time: port to buggy NFS clients
24363         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24364         (test_ctime): Also skip test if mtime and ctime are skewed.
24365
24366         maint: prefer 'file system' over 'filesystem'
24367         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24368         * doc/posix-functions/lstat.texi (lstat): Likewise.
24369         * lib/file-has-acl.c (file_has_acl): Likewise.
24370         * lib/fwriteerror.c [TEST]: Likewise.
24371         * tests/test-areadlink.h (test_areadlink): Likewise.
24372         * tests/test-areadlinkat-with-size.c (main): Likewise.
24373         * tests/test-areadlinkat.c (main): Likewise.
24374         * tests/test-canonicalize-lgpl.c (main): Likewise.
24375         * tests/test-canonicalize.c (main): Likewise.
24376         * tests/test-fstatat.c (main): Likewise.
24377         * tests/test-linkat.c (main): Likewise.
24378         * tests/test-lstat.h (test_lstat_func): Likewise.
24379         * tests/test-mkdir.h (test_mkdir): Likewise.
24380         * tests/test-readlink.h (test_readlink): Likewise.
24381         * tests/test-remove.c (main): Likewise.
24382         * tests/test-rename.h (test_rename): Likewise.
24383         * tests/test-renameat.c (main): Likewise.
24384         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24385         * tests/test-symlink.h (test_symlink): Likewise.
24386         * tests/test-symlinkat.c (main): Likewise.
24387         * tests/test-unlink.h (test_unlink_func): Likewise.
24388         * tests/test-unlinkat.c (main): Likewise.
24389
24390         maint: make realtime library usage explicit
24391         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24392         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24393         * modules/settime (Link): Likewise.
24394         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24395
24396         test-stat-time: speed up execution
24397         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24398         warning on mingw.
24399         (nap): New helper function.
24400         (prepare_test): Use it to reduce sleep time.
24401         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24402         execution.
24403         * modules/stat-time-tests (configure.ac): Check for usleep.
24404
24405 2009-10-09  Jim Meyering  <meyering@redhat.com>
24406
24407         selinux-h: always use getfilecon wrappers
24408         * lib/getfilecon.c: New file.
24409         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24410         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24411         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24412         (fgetfilecon): Provide a stub.
24413         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24414         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24415         file unconditionally.
24416         When <selinux/selinux.h> is found, arrange to use wrappers.
24417         * modules/selinux-h (Files): Add getfilecon.c.
24418         (Makefile.am): Substitute include-next-related bits
24419         into the now-always-generated selinux/selinux.h file.
24420         * doc/glibc-functions/lgetfilecon.texi: New file.
24421         * doc/glibc-functions/fgetfilecon.texi: New file.
24422         * doc/glibc-functions/getfilecon.texi: New file.
24423         * doc/glibc-functions/getfilecon-desc.texi: New file.
24424         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24425         which to pull in the new files.
24426         * MODULES.html.sh (Misc): Add selinux-h.
24427
24428 2009-10-08  Jim Meyering  <meyering@redhat.com>
24429
24430         unistd: fix comment typo
24431         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24432
24433 2009-10-08  Eric Blake  <ebb9@byu.net>
24434
24435         areadlink: use SIZE_MAX consistently
24436         * modules/areadlink (Depends-on): Add stdint.
24437         * modules/areadlink-with-size (Depends-on): Likewise.
24438         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24439         gives NULL; drop sys/types, since unistd gives size_t; and add
24440         stdint for SIZE_MAX.
24441         (SIZE_MAX): Rely on headers.
24442         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24443         and add stdint.
24444         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24445         (SIZE_MAX): Likewise.
24446         (INITIAL_BUF_SIZE): Turn into enum.
24447         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24448
24449 2009-10-08  Jim Meyering  <meyering@redhat.com>
24450
24451         areadlinkat: avoid compilation failure
24452         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24453         Fix typo in comment.
24454
24455 2009-10-07  Eric Blake  <ebb9@byu.net>
24456
24457         areadlinkat-with-size: new module
24458         * modules/areadlinkat-with-size: New module.
24459         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24460         * lib/areadlink.h (areadlinkat): Declare it.
24461         * MODULES.html.sh (File system functions): Mention it.
24462         * modules/areadlinkat-with-size-tests: New test.
24463         * tests/test-areadlinkat-with-size.c: New file.
24464
24465         xreadlinkat: new module
24466         * modules/xreadlinkat: New module.
24467         * lib/xreadlinkat.c (xreadlinkat): New file.
24468         * lib/xreadlink.h (xreadlinkat): Declare it.
24469         * MODULES.html.sh (File system functions): Mention it.
24470
24471         areadlinkat: new module
24472         * lib/at-func.c (FUNC_FAIL): New define.
24473         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24474         * modules/areadlinkat: New module.
24475         * lib/linkat.c (areadlinkat): Move...
24476         * lib/areadlinkat.c (areadlinkat): ...to new file.
24477         * lib/areadlink.h (areadlinkat): Declare it.
24478         * modules/linkat (Depends-on): Add areadlinkat.
24479         * MODULES.html.sh (File system functions): Mention it.
24480         * modules/areadlinkat-tests: New test.
24481         * tests/test-areadlinkat.c: New file.
24482
24483         areadlink, areadlink-with-size: add tests
24484         * modules/areadlink-tests: New test.
24485         * modules/areadlink-with-size-tests: Likewise.
24486         * tests/test-areadlink.h: New file.
24487         * tests/test-areadlink.c: Likewise.
24488         * tests/test-areadlink-with-size.c: Likewise.
24489
24490         maint: minor cleanups
24491         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24492         _UNUSED_PARAMETER_ instead.
24493         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24494         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24495         * modules/linkat-tests (Files): Distribute test-link.h.
24496
24497         openat, utimens: whitespace cleanup
24498         * lib/openat.c: Prefer space throughout, rather than mix of 8
24499         spaces vs. tabs.
24500         * lib/at-func.c: Likewise.
24501         * lib/utimens.c: Likewise.
24502
24503         openat: avoid using wrong fd
24504         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24505         working directory chooses same fd.
24506         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24507
24508         mkdir, mkdirat: fix cygwin 1.5.x bug
24509         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24510         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24511         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24512         bug.
24513         (gl_PREREQ_MKDIR): Delete unused macro.
24514         * modules/mkdir (Files): Track file rename.
24515         (configure.ac): Update macro name.
24516         * modules/openat (Depends-on): Add mkdir.
24517         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24518
24519         mkdir, mkdirat: add tests
24520         * modules/mkdir-tests: New test.
24521         * tests/test-mkdir.h: New file.
24522         * tests/test-mkdir.c: Likewise.
24523         * tests/test-mkdirat.c: Likewise.
24524         * modules/openat-tests (Files): Add new files.
24525         (Makefile.am): Run new test.
24526
24527 2009-10-06  Eric Blake  <ebb9@byu.net>
24528
24529         doc: tweak *at function documentation
24530         * doc/posix-functions/faccessat.texi (faccessat): Mention
24531         known issue with replacement.
24532         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24533         * doc/posix-functions/linkat.texi (linkat): Likewise.
24534         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24535         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24536         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24537         * doc/posix-functions/renameat.texi (renameat): Likewise.
24538         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24539
24540         openat: fix GNU/Hurd bug in unlinkat
24541         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24542         broken.
24543         * doc/posix-functions/unlink.texi (unlink): Document this.
24544         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24545
24546         fdopendir: fix GNU/Hurd bug
24547         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24548         allowing non-directory fds.
24549         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24550         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24551         * modules/dirent (Makefile.am): Substitute it.
24552         * lib/dirent.in.h (fdopendir): Declare replacement.
24553         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24554         * tests/test-fdopendir.c (main): Test something other than
24555         /dev/null, since on Hurd that behaves like a directory.
24556
24557         test-symlink: port to GNU/Hurd
24558         * tests/test-symlink.h (test_symlink): Relax expected errno.
24559
24560         doc: tweak more cygwin information
24561         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24562         now compatible with glibc.
24563         * doc/posix-functions/getopt.texi (getopt): Likewise.
24564
24565         getopt-gnu: add another test
24566         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24567         guarantee behavior relied on by m4.
24568         * tests/test-getopt.c (main): Use it.
24569         * modules/getopt-posix-tests (Depends-on): Add setenv.
24570         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24571
24572         getopt: fix compilation on darwin
24573         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24574         include.
24575         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24576         Reported by Ludovic Courtès.
24577
24578 2009-10-06  Bruno Haible  <bruno@clisp.org>
24579
24580         * modules/size_max (Description): Discourage its use.
24581         Reported by Simon Josefsson.
24582
24583 2009-10-06  Jim Meyering  <meyering@redhat.com>
24584
24585         linkat: avoid compilation failure
24586         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24587
24588 2009-10-05  Eric Blake  <ebb9@byu.net>
24589
24590         linkat: support Linux 2.6.17
24591         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24592         linkat on Linux, but allow cache variable override.
24593         * lib/linkat.c (rpl_linkat): Define override.
24594         * modules/linkat (Depends-on): Add symlinkat.
24595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24596         * modules/unistd (Makefile.am): Substitute it.
24597         * lib/unistd.in.h (linkat): Declare replacement.
24598         Reported by Pádraig Brady.
24599
24600         quotearg: port test to systems with C.UTF-8 locale
24601         * tests/test-quotearg.c (struct result_strings): Add another
24602         member, differentiating between C.ASCII and C.UTF-8 handling.
24603         (compare_strings): Add parameter.
24604         (main): Adjust all callers.
24605
24606         getopt: avoid clash with FreeBSD _getopt_internal
24607         * lib/getopt.in.h (_getopt_internal): Override the name.
24608         * lib/getopt_int.h (includes): Pick up any overrides.
24609         Reported by Reuben Thomas.
24610
24611         hash: allow C89 compilation
24612         * lib/hash.c (check_tuning): Move declaration before statement.
24613         Reported by Reuben Thomas.
24614
24615 2009-10-05  Karl Berry  <karl@gnu.org>
24616
24617         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24618
24619 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24620             Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/uname.c (uname): Use a table-driven algorithm to compute
24623         Windows NT versions.
24624
24625 2009-10-04  Bruno Haible  <bruno@clisp.org>
24626
24627         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24628         program_invocation_short_name.
24629         * modules/progname (configure.ac): Test for presence of
24630         program_invocation_short_name.
24631         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24632
24633 2009-10-04  Bruno Haible  <bruno@clisp.org>
24634
24635         * lib/progname.c (set_program_name): Fix comment.
24636         Reported by Jim Meyering.
24637
24638 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24639             Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/uname.c: Include <string.h>.
24642         (uname): Do only one call to GetVersionEx in the common case.
24643
24644 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24645             Bruno Haible  <bruno@clisp.org>
24646
24647         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24648         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24649         (uname): Add support for Windows CE and various non-x86 CPU types.
24650
24651 2009-10-03  Bruno Haible  <bruno@clisp.org>
24652
24653         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24654         invocation to tests/configure.ac.
24655         Reported by Ian Beckwith <ianb@erislabs.net>.
24656
24657 2009-10-02  Eric Blake  <ebb9@byu.net>
24658
24659         fchdir: avoid compiler warning
24660         * lib/fchdir.c (canonicalize_file_name)
24661         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24662
24663         test-open: support mingw errno values
24664         * tests/test-open.h (test_open): Relax test.
24665         * tests/test-fopen.h (test_fopen): Likewise.
24666         * tests/test-openat-safer.c (main): Likewise.
24667
24668         open: fix opening directory on mingw
24669         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24670
24671         test-open: on GNU/Hurd, /dev/null is a directory
24672         * tests/test-fopen.h (main): Rename...
24673         (test_fopen): ...to this.  Use a guaranteed non-directory when
24674         confirming open behavior on trailing slash.
24675         * tests/test-openat-safer.c (main): Likewise.
24676         * tests/test-open.h (main): Likewise....
24677         (test_open): ...to this.
24678         * tests/test-fopen.c (main): Adjust caller.
24679         * tests/test-fopen-safer.c (main): Likewise.
24680         * tests/test-open.c (main): Likewise.
24681         * tests/test-fcntl-safer.c (main): Likewise.
24682         Reported by Samuel Thibault.
24683
24684         rename, fchdir: don't ignore chdir failure
24685         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24686         * lib/rename.c (rpl_rename) [W32]: Likewise.
24687         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24688         an empty destination directory if source cannot be renamed,
24689         although there is still possibility for failure.
24690         * doc/posix-functions/rename.texi (rename): Document the race.
24691         Reported by Jim Meyering.
24692
24693         maint: cleanup whitespace in recent commits
24694         * lib/rename.c (rpl_rename): Remove tabs.
24695         * tests/test-link.h (test_link): Likewise.
24696         * lib/fchdir.c (get_name): Likewise.
24697         Reported by Jim Meyering.
24698
24699 2009-10-02  Ben Pfaff  <blp@gnu.org>
24700
24701         relocatable-prog-wrapper: Add missing dependency on
24702         double-slash-root.
24703         * modules/relocatable-prog-wrapper: Add dependency.
24704         Reported by Ian Beckwith <ianb@erislabs.net>.
24705
24706 2009-10-02  Eric Blake  <ebb9@byu.net>
24707
24708         renameat: fix Solaris bugs
24709         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24710         needed fixing.
24711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24712         * modules/stdio (Makefile.am): Substitute it.
24713         * lib/stdio.in.h (renameat): Declare replacement.
24714         * lib/renameat.c (rpl_renameat): Implement fix.
24715
24716         renameat: new module
24717         * modules/renameat: New file.
24718         * lib/renameat.c (renameat): Likewise.
24719         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24721         * modules/stdio (Makefile.am): Substitute them.
24722         * lib/stdio.in.h (renameat): Declare it.
24723         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24724         * doc/posix-functions/renameat.texi (renameat): Likewise.
24725         * modules/renameat-tests: New test.
24726         * tests/test-renameat.c: Likewise.
24727
24728         rename: fix mingw bugs
24729         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24730         directory overwrite bugs.
24731
24732         rename: fix another cygwin 1.5 bug
24733         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24734         checks.
24735         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24736         unnecessary cygwin workarounds.  Also work around bug with moving
24737         full directory onto an empty one.
24738         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24739
24740         rename-dest-slash: merge into rename module
24741         * modules/rename-dest-slash (Status): Mark obsolete.
24742         (Depends-on): Add rename.
24743         (Files): Let rename do it all.
24744         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24745         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24746         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24747         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24748         * lib/rename.c (rpl_rename): Update comments.
24749
24750         rename: fix cygwin 1.5.x bugs
24751         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24752         * lib/rename.c (rpl_rename): Work around them.
24753         * modules/rename (Depends-on): Add same-inode.
24754
24755         rename: fix Solaris 10 bug
24756         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24757         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24758         was the only bug.
24759
24760         rename: fix Solaris 9 bug
24761         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24762         on non-directory.  Avoid calling exit.
24763         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24764         strdup.
24765         * modules/rename-tests (Depends-on): Drop lstat.
24766         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24767         (gl_PREREQ_RENAME): Delete unused macro.
24768
24769         rename-dest-slash: fix NetBSD bug
24770         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24771         links.
24772         * modules/rename-dest-slash (Depends-on): Add same-inode.
24773
24774         rename-tests: new test, exposes several platform bugs
24775         * modules/rename-tests: New file.
24776         * tests/test-rename.h: Likewise.
24777         * tests/test-rename.c: Likewise.
24778         * doc/posix-functions/rename.texi (rename): Improve documentation,
24779         including bugs that will eventually be fixed in gnulib.
24780
24781 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24782
24783         * lib/uname.c: Include <stdlib.h>
24784         (uname): Assume version info is available.
24785
24786 2009-10-02  Jim Meyering  <meyering@redhat.com>
24787
24788         gnu-web-doc-update: correct --help output
24789         * build-aux/gnu-web-doc-update: Make --help output relevant.
24790
24791         gnu-web-doc-update: add standard options
24792         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24793
24794         gnu-web-doc-update: New module.
24795         Use this script to automatically update the on-line web documentation
24796         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24797         * modules/gnu-web-doc-update: New file, from coreutils.
24798         * build-aux/gnu-web-doc-update: New script.
24799
24800 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24801
24802         link: LoadLibrary is not needed.
24803         * lib/link.c: Use GetModuleHandle.
24804
24805 2009-10-01  Eric Blake  <ebb9@byu.net>
24806
24807         getopt: bump serial number
24808         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24809         change.
24810
24811         tests: tighten link, rmdir, and remove tests
24812         * tests/test-link.h (includes): No need to use <config.h> here.
24813         Clean up if directory hard link was created, otherwise test for
24814         trailing '.'.
24815         * tests/test-linkat.c (main): Simplify.
24816         * tests/test-remove.c (main): Enhance test for trailing '.'.
24817         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24818
24819 2009-10-01  Jim Meyering  <meyering@redhat.com>
24820
24821         maint.mk: requiring "make major" was annoying, for a "minor" release.
24822         What is intended is "stable", to contrast with alpha and beta,
24823         so require "make stable", not "make major".
24824         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24825         (get_tool_versions): Likewise.
24826         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24827
24828 2009-09-30  Ben Pfaff  <blp@gnu.org>
24829
24830         Fix broken build of replacement for Windows tmpfile().
24831         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24832         flags argument added along with the 'mkostemp' module.
24833
24834 2009-09-28  Bruno Haible  <bruno@clisp.org>
24835
24836         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24837         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24838         to 'remove_elt'.
24839         (gl_list_remove): Update.
24840         * lib/gl_list.c (gl_list_remove): Update.
24841         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24842         to 'remove_elt'.
24843         (gl_oset_remove): Update.
24844         * lib/gl_list.c (gl_oset_remove): Update.
24845         Reported by Eric Blake.
24846
24847 2009-09-28  Eric Blake  <ebb9@byu.net>
24848
24849         doc: mention yet more cygwin 1.7 status
24850         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24851         cygwin.
24852         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24853         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24854
24855         argp: fix test failure
24856         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24857         that are not upper-case.  Pass correct range to tolower.
24858
24859 2009-09-27  Jim Meyering  <meyering@redhat.com>
24860
24861         test-yesno: work around sparc-dash here-document infelicity
24862         Without this change, the literal \177 byte in a here document
24863         would make dash 0.5.5.1-3 access uninitialized memory.
24864         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24865         Instead, use a marker, "@", and filter through tr to create the desired
24866         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24867
24868 2009-09-27  Bruno Haible  <bruno@clisp.org>
24869
24870         Disable untested support for new flavours of ACLs on AIX.
24871         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24872         progress.
24873         * lib/set-mode-acl.c (qset_acl): Likewise.
24874
24875 2008-12-07  Bruno Haible  <bruno@clisp.org>
24876
24877         Add support for new flavours of ACLs on AIX. (Untested.)
24878         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24879         (file_has_acl): Add support for newer AIX.
24880         * lib/set-mode-acl.c (qset_acl): Likewise.
24881         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24882         Rainer Tammer <tammer@tammer.net>.
24883
24884 2009-09-26  Eric Blake  <ebb9@byu.net>
24885
24886         argp: fix compilation of getopt
24887         * lib/getopt.in.h (includes): Use different guard than glibc.
24888         Reported by Sergey Poznyakoff.
24889
24890         doc: mention more cygwin 1.7 status
24891         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24892         bug.
24893         * doc/posix-functions/execl.texi (execl): Likewise.
24894         * doc/posix-functions/execle.texi (execle): Likewise.
24895         * doc/posix-functions/execlp.texi (execlp): Likewise.
24896         * doc/posix-functions/execv.texi (execv): Likewise.
24897         * doc/posix-functions/execve.texi (execve): Likewise.
24898         * doc/posix-functions/execvp.texi (execvp): Likewise.
24899         * doc/glibc-functions/canonicalize_file_name.texi
24900         (canonicalize_file_name): Cygwin 1.7 now provides this.
24901         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24902         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24903         on AT_SYMLINK_NOFOLLOW.
24904
24905 2009-09-24  Eric Blake  <ebb9@byu.net>
24906
24907         test-linkat: make test more robust
24908         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24909
24910         getopt: fix inclusion guards for cygwin
24911         * modules/getopt-posix (Depends-on): Add include-next.
24912         (Makefile.am): Substitute more items in replacement header.
24913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24914         <getopt.h>.
24915         * lib/getopt.in.h (includes): Use split inclusion guard, and
24916         prefer <getopt.h> over include <unistd.h> when one is present.
24917         (option): Also override name of 'struct option'.
24918
24919         same-inode: revert prior change; it is not yet ready
24920         * NEWS: Undo mention of this change.
24921         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24922         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24923         * lib/cycle-check.c (cycle_check): Likewise.
24924         * lib/same.c (same_name): Likewise.
24925         * lib/at-func2.c (at_func2): Likewise.
24926
24927 2009-09-23  Eric Blake  <ebb9@byu.net>
24928
24929         linkat: new module
24930         * modules/linkat: New file.
24931         * lib/at-func2.c (at_func2): Likewise.
24932         * lib/linkat.c (linkat): Likewise.
24933         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24934         * lib/openat-priv.h (at_func2): Add declaration.
24935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24936         * modules/unistd (Makefile.am): Substitute them.
24937         * lib/unistd.in.h (linkat): Declare it.
24938         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24939         * doc/posix-functions/linkat.texi (linkat): Likewise.
24940         * doc/posix-functions/link.texi (link): Tweak wording.
24941         * tests/test-link.c (main): Move guts...
24942         * tests/test-link.h (test_link): ...into new file.
24943         * modules/linkat-tests: New test.
24944         * tests/test-linkat.c: Likewise.
24945         * modules/link-tests (Files): Ship new file.
24946         (Depends-on): Add stdbool.
24947
24948         dirname: add library-safe mdir_name
24949         * lib/dirname.h (mdir_name): New prototype.
24950         * lib/dirname.c (dir_name): Move guts...
24951         (mdir_name): ...to new function that avoids xalloc_die.
24952
24953         fchdir: another mingw fix
24954         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24955         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24956         on mingw (where it has not yet been ported), and make it optional
24957         elsewhere.
24958         (_gl_register_fd): Use it.
24959
24960         same-inode: make SAME_INODE tri-state, to port to mingw
24961         * NEWS: Mention this change.
24962         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24963         st_ino always being 0.
24964         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24965         * lib/cycle-check.c (cycle_check): Likewise.
24966         * lib/same.c (same_name): Likewise.
24967
24968         lstat: avoid mingw compilation error
24969         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24970         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24971         lstat ourselves.
24972         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24973         was adequate.
24974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24975         the checks for lstat.
24976         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24977
24978         link: fix test failure on Solaris 9
24979         * lib/link.c (rpl_link): Don't assume link will catch bogus
24980         trailing slash on source.
24981
24982         test-symlinkat: enhance test
24983         * tests/test-readlink.c (main): Move guts...
24984         * tests/test-readlink.h (test_readlink): ...into new file.
24985         * tests/test-symlink.c (main): Move guts...
24986         * tests/test-symlink.h (test_symlink): ...into new file.
24987         * tests/test-symlinkat.c (main): Use new files for further
24988         coverage.
24989         (do_symlink, do_readlink): New helper functions.
24990         * modules/symlink-tests (Files): Ship new file.
24991         (Depends-on): Add stdbool.
24992         * modules/readlink-tests (Files): Ship new file.
24993         (Depends-on): Add stdbool.
24994         * modules/symlinkat-tests (Files): Use new files.
24995
24996 2009-09-23  Eric Blake  <ebb9@byu.net>
24997
24998         readlink: document portability issue with symlink length
24999         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25000         systems have bogus st_size on symlinks, and mention the
25001         areadlink-with-size module.
25002         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25003         * doc/posix-functions/readlink.texi (readlink): Mention the
25004         areadlink module, and ERANGE failure.
25005         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25006         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25007
25008         readlink: fix Solaris 9 bug with trailing slash
25009         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25010         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25011         * doc/posix-functions/readlink.texi (readlink): Document this.
25012         * modules/readlink-tests: New test.
25013         * tests/test-readlink.c: Likewise.
25014
25015         readlink: fix cygwin 1.5.x bug with return type
25016         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25017         * lib/unistd.in.h (readlink): Use ssize_t.
25018         * lib/readlink.c (readlink): Likewise.
25019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25020         * modules/unistd (Makefile.am): Substitute it.
25021         * lib/unistd.in.h (readlink): Declare replacement.
25022         * doc/posix-functions/readlink.texi (readlink): Document this.
25023
25024         symlink: use throughout gnulib
25025         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25026         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25027         symlink is not used.
25028         * modules/symlinkat (Depends-on): Add symlink.
25029         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25030         * modules/canonicalize-tests (Depends-on): Likewise.
25031         * modules/lstat-tests (Depends-on): Likewise.
25032         * modules/openat-tests (Depends-on): Likewise.
25033         * modules/remove-tests (Depends-on): Likewise.
25034         * modules/rmdir-tests (Depends-on): Likewise.
25035         * modules/unlink-tests (Depends-on): Likewise.
25036         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25037         * tests/test-canonicalize.c (symlink): Likewise.
25038         * tests/test-fstatat.c (symlink): Likewise.
25039         * tests/test-lstat.c (symlink): Likewise.
25040         * tests/test-remove.c (symlink): Likewise.
25041         * tests/test-rmdir.c (symlink): Likewise.
25042         * tests/test-unlink.c (symlink): Likewise.
25043         * tests/test-unlinkat.c (symlink): Likewise.
25044
25045         symlink: new module, for Solaris 9 bug
25046         * modules/symlink: New file.
25047         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25048         * lib/symlink.c: Likewise.
25049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25050         * modules/unistd (Makefile.am): Substitute them.
25051         * lib/unistd.in.h (symlink): Declare replacement.
25052         * MODULES.html.sh (File system functions): Mention it.
25053         * doc/posix-functions/symlink.texi (symlink): Likewise.
25054         * modules/symlink-tests: New test.
25055         * tests/test-symlink.c: Likewise.
25056
25057 2009-09-23  Bruno Haible  <bruno@clisp.org>
25058
25059         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25060         when needed.
25061         Test case: gnulib-tool --import --with-tests atexit inttypes.
25062         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25063
25064 2009-09-23  Bruno Haible  <bruno@clisp.org>
25065
25066         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25067         subcommand, not in a subshell.
25068
25069 2009-09-22  Eric Blake  <ebb9@byu.net>
25070
25071         unistd: sort replacement declarations
25072         * lib/unistd.in.h: Sort declarations.
25073
25074         open, openat: minor optimization
25075         * lib/open.c (open): If open succeeded, len is non-zero.
25076         * lib/openat.c (rpl_openat): Likewise.
25077
25078         link-follow: ensure correct result
25079         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25080         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25081         distinguish between possible failures.
25082
25083 2009-09-21  Eric Blake  <ebb9@byu.net>
25084
25085         fts: avoid compiler warning
25086         * lib/fts.c (dirent_inode_sort_may_be_useful)
25087         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25088
25089 2009-09-19  Bruno Haible  <bruno@clisp.org>
25090
25091         * lib/progreloc.c (canonicalize_file_name): New declaration.
25092
25093 2009-09-19  Eric Blake  <ebb9@byu.net>
25094
25095         link: fix quoting
25096         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25097
25098         openat: fix openat bugs on Solaris 9
25099         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25100         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25101         * modules/openat (Depends-on): Add open.
25102         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25103         * modules/fcntl-h (Makefile.am): Substitute it.
25104         * lib/fcntl.in.h (openat): Declare replacement.
25105         * doc/posix-functions/openat.texi (openat): Document this.
25106
25107         openat: move fstatat and unlinkat into correct files
25108         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25109         compiled.
25110         * lib/openat.c (fstatat, unlinkat): Move...
25111         * lib/fstatat.c (fstatat): ...into correct files.
25112         * lib/unlinkat.c (unlinkat): Likewise.
25113
25114         openat: fix unlinkat bugs on Solaris 9
25115         * lib/unlinkat.c (unlinkat): New file.
25116         * modules/openat (Depends-on): Add unlink.
25117         (Files): Distribute it.
25118         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25119         trailing slash behavior is broken.
25120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25121         * modules/unistd (Makefile.am): Substitute it.
25122         * lib/unistd.in.h (unlinkat): Declare replacement.
25123         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25124
25125         openat: fix fstatat bugs on Solaris 9
25126         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25127         stat.
25128         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25129
25130         test-unlinkat: enhance test, to expose Solaris 9 bug
25131         * tests/test-unlink.c (main): Factor guts...
25132         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25133         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25134         * tests/test-rmdir.c (main): Adjust caller.
25135         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25136         (unlinker): New helper function.
25137         (rmdirat): Enhance check.
25138         * modules/rmdir-tests (Depends-on): Add stdbool.
25139         * modules/unlink-tests (Depends-on): Likewise.
25140         (Files): Add test-unlink.h.
25141         * modules/openat-tests (Files): Likewise.
25142         (Depends-on): Add unlinkdir.
25143
25144         test-fstatat: new test, to expose Solaris 9 bugs
25145         * tests/test-stat.c (main): Factor guts...
25146         * tests/test-stat.h (test_stat_func): ...into new file.
25147         * tests/test-lstat.c (main): Factor guts...
25148         * tests/test-lstat.h (test_lstat_func): ...into new file.
25149         * tests/test-fstatat.c: New file.
25150         * modules/stat-tests (Files): Add test-stat.h.
25151         * modules/lstat-tests (Files): Add test-lstat.h.
25152         (Depends-on): Add stdbool.
25153         * modules/openat-tests (Depends-on): Add pathmax.
25154         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25155         (Makefile.am): Run new test.
25156
25157         remove: new module, for mingw and Solaris 9 bugs
25158         * modules/remove: New file.
25159         * lib/remove.c: Likewise.
25160         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25162         * modules/stdio (Makefile.am): Use them.
25163         * lib/stdio.in.h (remove): Declare replacement.
25164         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25165         * doc/posix-functions/remove.texi (remove): Likewise.
25166         * modules/remove-tests: New test.
25167         * tests/test-remove.c: Likewise.
25168
25169         unlink: new module, for Solaris 9 bug
25170         * modules/unlink: New file.
25171         * lib/unlink.c: Likewise.
25172         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25174         * modules/unistd (Makefile.am): Use them.
25175         * lib/unistd.in.h (stat): Declare replacement.
25176         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25177         * doc/posix-functions/unlink.texi (unlink): Likewise.
25178         * modules/unlink-tests: New test.
25179         * tests/test-unlink.c: Likewise.
25180
25181         lstat: fix Solaris 9 bug
25182         * lib/lstat.c (lstat): Also check for trailing slash on
25183         non-symlink, non-directories.  Use stat module to simplify logic.
25184         * doc/posix-functions/lstat.texi (lstat): Document it.
25185         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25186         (configure.ac): Check for symlink.
25187         * tests/test-lstat.c (main): Add more tests.
25188
25189         stat: add as dependency to other modules
25190         * modules/chown (Depends-on): Add stat.
25191         * modules/euidaccess (Depends-on): Likewise.
25192         * modules/fchdir (Depends-on): Likewise.
25193         * modules/isdir (Depends-on): Likewise.
25194         * modules/link (Depends-on): Likewise.
25195         * modules/lstat (Depends-on): Likewise.
25196         * modules/mkdir-p (Depends-on): Likewise.
25197         * modules/modechange (Depends-on): Likewise.
25198         * modules/open (Depends-on): Likewise.
25199         * modules/readlink (Depends-on): Likewise.
25200         * modules/same (Depends-on): Likewise.
25201
25202         stat: fix Solaris 9 bug
25203         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25204         slash.
25205         * lib/stat.c (rpl_stat): Work around it.
25206         * doc/posix-functions/stat.texi (stat): Update documentation.
25207
25208         stat: new module, for mingw bug
25209         * modules/stat: New file.
25210         * lib/stat.c: Likewise.
25211         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25212         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25213         * modules/sys_stat (Makefile.am): Use them.
25214         * lib/sys_stat.in.h (stat): Declare replacement.
25215         * lib/openat.c (fstatat): Deal with lstat and stat being function
25216         macros.
25217         * modules/openat (Depends-on): Add inline.
25218         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25219         * doc/posix-functions/stat.texi (stat): Likewise.
25220         * modules/stat-tests: New test.
25221         * tests/test-stat.c: Likewise.
25222
25223 2009-09-19  Jim Meyering  <meyering@redhat.com>
25224
25225         syntax-check: detect unnecessary inclusion of canonicalize.h
25226         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25227
25228 2009-09-19  Eric Blake  <ebb9@byu.net>
25229
25230         canonicalize-lgpl: adjust clients to use correct header
25231         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25232         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25233         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25234         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25235         * lib/progreloc.c (includes): Likewise.
25236
25237 2009-09-19  Jim Meyering  <meyering@redhat.com>
25238
25239         test-posixtm.c: correct a comment
25240         * tests/test-posixtm.c: Correct first-line comment.
25241         Spotted by Eric Blake.
25242
25243 2009-09-16  Jim Meyering  <meyering@redhat.com>
25244
25245         posixtm-tests: make T const-correct; add a test case
25246         * tests/test-posixtm.c (T): Declare const.
25247         Add a test for -(2^31+1).
25248         Remove useless can-succeed-only-in-2002 test.
25249
25250         posixtm-tests: adjust the sole failing test
25251         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25252         expected output matches what mktime now produces.  Cross-checked via
25253         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25254
25255         posixtm: move #ifdef'd tests into a new module
25256         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25257         * tests/test-posixtm.c: ... this new file.
25258         * modules/posixtm-tests: New module.
25259
25260 2009-09-19  Eric Blake  <ebb9@byu.net>
25261
25262         openat: simplify use of at-func.c
25263         * lib/at-func.c (includes): Include prerequisites here, to
25264         simplify requirements on client files.
25265         * lib/openat-priv.h: Add double-inclusion guard.
25266         * lib/faccessat.c (includes): Simplify.
25267         * lib/fchmodat.c (includes): Likewise.
25268         * lib/fchownat.c (includes): Likewise.
25269         * lib/mkdirat.c (includes): Likewise.
25270         * lib/mkfifoat.c (includes): Likewise.
25271         * lib/symlinkat.c (includes): Likewise.
25272
25273         openat: allow return of fd 0
25274         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25275         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25276         unistd-safer.
25277         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25278         <fcntl.h>; this module does not leak fds.
25279         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25280         must be allowed to return 0, leaving openat_safer to add the
25281         safety.
25282         (openat_permissive): Avoid writing to just-opened fd 2 if
25283         restoring the current directory fails.
25284         * lib/openat-die.c (openat_restore_fail): Add comment.
25285         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25286         (save_cwd): Guarantee safe fd, but without use of open_safer.
25287         * tests/test-openat.c: New test.
25288         * modules/openat-tests (Files, Makefile.am): Distribute and build
25289         new file.
25290
25291         relocatable-prog-wrapper: fix build
25292         * modules/relocatable-prog-wrapper (Files): Update name of
25293         canonicalize m4 file, broken on 2009-09-17.
25294         Reported by emad hajjar <aleppos@hotmail.com>.
25295
25296 2009-09-19  Bruno Haible  <bruno@clisp.org>
25297
25298         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25299         * lib/safe-alloc.c: Likewise.
25300         Reported by Ian Beckwith <ianb@erislabs.net>.
25301
25302 2009-09-18  Bruno Haible  <bruno@clisp.org>
25303
25304         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25305         Reported by <erobles@sensacd.com.mx>.
25306
25307 2009-09-17  Eric Blake  <ebb9@byu.net>
25308
25309         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25310         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25311         slashes when checking if last component is missing.
25312         * tests/test-canonicalize.c (main): Test this.
25313
25314         canonicalize, canonicalize-lgpl: honor // if distinct from /
25315         * modules/canonicalize (Files): Add double-slash-root.m4.
25316         * modules/canonicalize-lgpl (Files): Likewise.
25317         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25318         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25319         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25320         fallback definition.
25321         (canonicalize_filename_mode): Use it to protect //.
25322         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25323         (__realpath): Likewise.
25324         * tests/test-canonicalize.c (main): Test this.
25325         * tests/test-canonicalize-lgpl.c (main): Likewise.
25326         * modules/canonicalize-tests (Depends-on): Add same-inode.
25327         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25328
25329         canonicalize-lgpl: fix glibc bug with trailing slash
25330         * m4/canonicalize-lgpl.m4: Move contents...
25331         * m4/canonicalize.m4: ...here.
25332         (gl_CANONICALIZE_LGPL): Factor realpath check...
25333         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25334         glibc 2.3.5 bug, fixed 2005-04-27.
25335         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25336         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25337         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25338         * modules/canonicalize-lgpl (Files): Manage file rename.
25339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25340         * modules/stdlib (Makefile.am): Substitute witness.
25341         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25342         is needed.
25343         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25344         replacement is required.
25345         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25346         * doc/glibc-functions/canonicalize_file_name.texi
25347         (canonicalize_file_name): Document this.
25348         * doc/posix-functions/realpath.texi (realpath): Likewise.
25349
25350         canonicalize-lgpl: reject non-directory with trailing slash
25351         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25352         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25353         catches failures in glibc 2.3.5.
25354         * tests/test-canonicalize.c (main): Likewise.
25355
25356         canonicalize-lgpl: use native realpath if it works
25357         * lib/canonicalize-lgpl.c (realpath): Guard with
25358         FUNC_REALPATH_WORKS.
25359         * lib/stdlib.in.h (realpath): Make declaration optional based on
25360         HAVE_REALPATH.
25361         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25362         native realpath works.
25363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25364         * modules/stdlib (Makefile.am): Substitute witness.
25365
25366         canonicalize, canonicalize-lgpl: use <stdlib.h>
25367         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25368         (Include): Mention <stdlib.h>.
25369         (configure.ac): Mention functions we provide.
25370         * modules/canonicalize (configure.ac): Likewise.
25371         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25372         realpath if canonicalize_file_name is missing.
25373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25374         * modules/stdlib (Makefile.am): Substitute witnesses.
25375         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25376         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25377         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25378         * NEWS: Document this.
25379         * doc/glibc-functions/canonicalize_file_name.texi
25380         (canonicalize_file_name): Likewise.
25381         * doc/posix-functions/realpath.texi (realpath): Likewise.
25382         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25383
25384         test-canonicalize: consolidate into single C program
25385         * tests/test-canonicalize.sh: Delete; move setup into...
25386         * tests/test-canonicalize.c (main): ...the program, making it
25387         easier to run in debugger.  Add some tests.
25388         * modules/canonicalize-tests (Files): Remove unused file.
25389         (Depends-on): Add progname.
25390         (configure.ac, Makefile.am): Simplify.
25391
25392         test-canonicalize-lgpl: consolidate into single C program
25393         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25394         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25395         easier to run in debugger.  Add some tests.
25396         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25397         (configure.ac, Makefile.am): Simplify.
25398
25399         canonicalize: avoid resolvepath
25400         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25401         unnecessary checks.
25402         * lib/canonicalize.c (includes): Simplify.
25403         (canonicalize_file_name): Drop resolvepath implementation.
25404         * modules/canonicalize (Depends-on): Drop filenamecat.
25405
25406         canonicalize: don't lose errno
25407         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25408         over calls to free.
25409
25410         canonicalize: simplify errno handling
25411         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25412         assignment.
25413
25414         canonicalize, canonicalize-lgpl: update module dependencies
25415         * modules/canonicalize (Depends-on): Add extensions, lstat,
25416         pathmax, stdlib.
25417         (Files): Drop pathmax.h.
25418         (configure.ac): Adjust macro name.
25419         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25420         lstat, stdlib, sys_stat.
25421         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25422         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25423         extensions.
25424         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25425         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25426         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25427         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25428         declaration, if available.
25429         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25430         we can rely on the readlink module.
25431         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25432         (includes): Use <unistd.h> unconditionally.
25433
25434 2009-09-17  Eric Blake  <ebb9@byu.net>
25435
25436         maint: make Include sections of modules consistent
25437         * modules/alloca: Use only header name; no need to list #include.
25438         * modules/alloca-opt: Likewise.
25439         * modules/arpa_inet: Likewise.
25440         * modules/canon-host: Likewise.
25441         * modules/configmake: Likewise.
25442         * modules/dirent: Likewise.
25443         * modules/eealloc: Likewise.
25444         * modules/environ: Likewise.
25445         * modules/fchdir: Likewise.
25446         * modules/fcntl: Likewise.
25447         * modules/fcntl-h: Likewise.
25448         * modules/gethrxtime: Likewise.
25449         * modules/gettime: Likewise.
25450         * modules/ignore-value: Likewise.
25451         * modules/inet_ntop: Likewise.
25452         * modules/inet_pton: Likewise.
25453         * modules/inttypes: Likewise.
25454         * modules/isnand-nolibm: Likewise.
25455         * modules/isnanf-nolibm: Likewise.
25456         * modules/mbchar: Likewise.
25457         * modules/mbfile: Likewise.
25458         * modules/mbiter: Likewise.
25459         * modules/mbuiter: Likewise.
25460         * modules/netdb: Likewise.
25461         * modules/netinet_in: Likewise.
25462         * modules/nproc: Likewise.
25463         * modules/pagealign_alloc: Likewise.
25464         * modules/poll: Likewise.
25465         * modules/printf-frexp: Likewise.
25466         * modules/pthread: Likewise.
25467         * modules/putenv: Likewise.
25468         * modules/random_r: Likewise.
25469         * modules/relocatable-prog: Likewise.
25470         * modules/search: Likewise.
25471         * modules/select: Likewise.
25472         * modules/selinux-h: Likewise.
25473         * modules/settime: Likewise.
25474         * modules/signal: Likewise.
25475         * modules/size_max: Likewise.
25476         * modules/socklen: Likewise.
25477         * modules/ssize_t: Likewise.
25478         * modules/stdarg: Likewise.
25479         * modules/stdbool: Likewise.
25480         * modules/stddef: Likewise.
25481         * modules/stdint: Likewise.
25482         * modules/stdio: Likewise.
25483         * modules/stdlib: Likewise.
25484         * modules/string: Likewise.
25485         * modules/strings: Likewise.
25486         * modules/sys_file: Likewise.
25487         * modules/sys_ioctl: Likewise.
25488         * modules/sys_select: Likewise.
25489         * modules/sys_socket: Likewise.
25490         * modules/sys_stat: Likewise.
25491         * modules/sys_time: Likewise.
25492         * modules/sys_times: Likewise.
25493         * modules/sys_utsname: Likewise.
25494         * modules/sys_wait: Likewise.
25495         * modules/sysexits: Likewise.
25496         * modules/time: Likewise.
25497         * modules/times: Likewise.
25498         * modules/tmpfile: Likewise.
25499         * modules/trim: Likewise.
25500         * modules/unistd: Likewise.
25501         * modules/wchar: Likewise.
25502         * modules/wctype: Likewise.
25503
25504 2009-09-17  Bruno Haible  <bruno@clisp.org>
25505
25506         Make getdate.y compile on QNX and NetBSD 5 / i386.
25507         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25508         TIME_T_FITS_IN_LONG_INT.
25509         * lib/getdate.y (long_time_t): New type.
25510         (relative_time): Change type of 'seconds' field to long_time_t.
25511         (get_date): Update types of local variables. Check against overflow
25512         during conversion from long_time_t to time_t.
25513         Reported by Matt Kraai <kraai@ftbfs.org>
25514         and Hasso Tepper <hasso@netbsd.org>.
25515
25516 2009-09-17  Bruno Haible  <bruno@clisp.org>
25517
25518         * modules/COPYING: Update copyright years.
25519         * modules/README: Likeiwse.
25520         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25521         Reported by Ian Beckwith <ianb@erislabs.net>.
25522
25523 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25524
25525         * users.txt: Update references for gnuit package.
25526
25527 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25528
25529         * m4/getdelim.m4: Fix typo in copyright line.
25530
25531 2009-09-17  Bruno Haible  <bruno@clisp.org>
25532
25533         * lib/atoll.c: Use the standard header with GPL copyright.
25534         * lib/argz.in.h: Likewise.
25535         * lib/glob.c: Likewise.
25536         * lib/glob-libc.h: Likewise.
25537         * lib/random_r.c: Likewise.
25538         * lib/siglist.h: Likewise.
25539         * lib/strsignal.c: Likewise.
25540         Reported by Ian Beckwith <ianb@erislabs.net>.
25541
25542 2009-09-17  Eric Blake  <ebb9@byu.net>
25543
25544         rmdir: ensure correct dependency order
25545         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25546
25547 2009-09-17  Bruno Haible  <bruno@clisp.org>
25548
25549         Disable assertion that fails on NetBSD 5 / i386.
25550         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25551         Reported by Sam Steingold <sds@gnu.org>
25552         and Hasso Tepper <hasso@netbsd.org>.
25553
25554 2009-09-16  Eric Blake  <ebb9@byu.net>
25555
25556         unlinkdir: port to mingw
25557         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25558         on which no one can unlink a directory.
25559
25560         stdlib: sort witness names
25561         * modules/stdlib (Makefile.am): Sort replacements.
25562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25563         * lib/stdlib.in.h: Likewise.
25564
25565         parse-duration-tests: avoid link failure
25566         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25567         LIBINTL.
25568         Reported by Tom G. Christensen.
25569
25570         openat-tests: ensure unlinkat behaves like rmdir
25571         * tests/test-rmdir.c (main): Factor guts...
25572         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25573         * modules/rmdir-tests (Files): Ship new file.
25574         * modules/openat-tests: New test.
25575         * tests/test-unlinkat.c: Likewise.
25576
25577         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25578         * modules/rmdir-errno (Status, Notice): Now obsolete.
25579
25580         rmdir: work around cygwin 1.5.x and mingw bugs
25581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25582         * lib/rmdir.c (rmdir): Work around it.
25583         * modules/rmdir (Status, Notice): No longer obsolete.
25584         (Files): Add dos.m4.
25585         (Depends-on): Add unistd.
25586         (configure.ac): Set witnesses.
25587         (License): Relax to LGPLv2+.
25588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25589         * modules/unistd (Makefile.am): Substitute witnesses.
25590         * lib/unistd.in.h (rmdir): Declare replacement.
25591         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25592         * modules/rmdir-tests: New tests.
25593         * tests/test-rmdir.c: Likewise.
25594
25595 2009-09-15  Eric Blake  <ebb9@byu.net>
25596
25597         fchdir: improve use of replacement functions
25598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25599         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25600         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25601         REPLACE_CLOSEDIR.
25602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25603         * modules/sys_stat (Makefile.am): Substitute correct witness.
25604         * modules/dirent (Makefile.am): Likewise.
25605         * modules/unistd (Makefile.am): Likewise.
25606         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25607         * lib/unistd.in.h (dup): Likewise.
25608         * lib/sys_stat.in.h (fstat): Likewise.
25609
25610         maint: ignore gnulib-tool temp files
25611         * .gitignore: Ignore files created during gnulib-tool --test.
25612
25613 2009-09-13  Jim Meyering  <meyering@redhat.com>
25614
25615         posixtm: don't reject a time that specify "60" as the number of seconds
25616         * lib/posixtm.c (posixtime): The code to reject invalid dates
25617         would also reject a time specified with the .60 suffix.
25618         But POSIX allows that, in order to accommodate leap seconds.
25619         So don't reject it.
25620         (main): Adjust tests accordingly.
25621         * modules/posixtm (Depends-on): Add stpcpy.
25622
25623 2009-09-11  Jim Meyering  <meyering@redhat.com>
25624
25625         announce-gen: include [$release_type] in emitted Subject:
25626         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25627         e.g., [stable] in the emitted Subject: line.
25628
25629 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25630
25631         Remove obsolete macros from several modules.
25632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25633         obsolete Autoconf macros with their modern counterparts.
25634         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25635         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25636         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25637         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25638         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25639         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25641         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25642         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25643         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25644         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25646         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25647         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25648         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25649         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25650         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25651         * m4/time_r.m4 (gl_TIME_R): Likewise.
25652         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25653         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25654         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25655
25656         Fix copyright header in build-aux scripts.
25657         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25658         recommendation.
25659         * build-aux/ncftpput-ftp: Likewise.
25660         * build-aux/update-copyright: Likewise.
25661
25662 2009-09-09  Eric Blake  <ebb9@byu.net>
25663
25664         test-link: allow Linux choice of errno
25665         * tests/test-link.c (main): Relax test for alternate error.
25666
25667         strndup: fix improper m4 caching
25668         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25669         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25670         (gl_PREREQ_STRNDUP): Delete.
25671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25672         * modules/string (Makefile.am): Substitute it.
25673         * lib/string.in.h (strndup): Modernize prototype.
25674
25675         getcwd: port to mingw
25676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25677         different from the POSIX assumptions made throughout the getcwd
25678         module; fortunately, the mingw getcwd does not need replacement.
25679         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25680         * modules/getcwd-tests: New test.
25681         * tests/test-getcwd.c: Likewise.
25682
25683         link: fix platform bugs
25684         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25685         * lib/link.c (link): Work around them.  Fix related mingw bug.
25686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25687         * modules/unistd (Makefile.am): Substitute it.
25688         * lib/unistd.in.h (link): Declare replacement.
25689         * doc/posix-functions/link.texi (link): Document this.
25690         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25691
25692         test-link: consolidate into single C program, test more cases
25693         * tests/test-link.sh: Delete.
25694         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25695         at least Cygwin and Solaris.
25696         * modules/link-tests (Files): Remove unused file.
25697         (Depends-on): Add errno, sys_stat.
25698         (Makefile.am): Simplify.
25699
25700 2009-09-08  Bruno Haible  <bruno@clisp.org>
25701
25702         Work around towlower, towupper bug on mingw.
25703         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25704         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25705         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25706         * doc/posix-functions/towupper.texi: Likewise.
25707         Reported by Eric Blake.
25708
25709 2009-09-08  Jim Meyering  <meyering@redhat.com>
25710
25711         build: don't try to run autoheader if we don't use it
25712         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25713         is not used in configure.ac.
25714
25715 2009-09-08  Eric Blake  <ebb9@byu.net>
25716
25717         euidaccess: fix compilation error
25718         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25719
25720         rawmemchr: relax license
25721         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25722         okay.
25723         Reported by Jim Meyering.
25724
25725         mkfifoat: new module
25726         * modules/mkfifoat: New file.
25727         * lib/mkfifoat.c: Likewise.
25728         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25730         * modules/sys_stat (Makefile.am): Use them.
25731         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25732         * MODULES.html.sh (File system functions): Mention module.
25733         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25734         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25735         * modules/mkfifoat-tests: New test.
25736         * tests/test-mkfifoat.c: Likewise.
25737
25738         strchrnul: relax license
25739         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25740         okay.
25741         Reported by Jim Meyering.
25742
25743 2009-09-08  Eric Blake  <ebb9@byu.net>
25744
25745         fstatat: fix compilation on Solaris
25746         * lib/fstatat.c (includes): Add fcntl.h.
25747         Reported by Pádraig Brady.
25748
25749 2009-09-07  Eric Blake  <ebb9@byu.net>
25750
25751         rename: modernize replacement
25752         * modules/rename (Depends-on): Add stdio.
25753         (configure.ac): Declare witness.
25754         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25755         stdio take care of replacement.
25756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25757         * modules/stdio (Makefile.am): Substitute them.
25758         * lib/stdio.in.h (rename): Declare replacement.
25759         * lib/rename.c (includes): Allow cross-compilation to non-windows
25760         machines.
25761         * doc/posix-functions/rename.texi (rename): Improve
25762         documentation.
25763
25764         stdio: sort witness names
25765         * modules/stdio (Makefile.am): Sort replacements.
25766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25767         * lib/stdio.in.h: Likewise.
25768
25769         getcwd: minor cleanups
25770         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25771         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25772
25773         openat: provide more convenience names
25774         * modules/faccessat (configure.ac): Add C witness.
25775         * lib/unistd.in.h (readlinkat): Fix typo.
25776         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25777         convenience wrappers.
25778         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25779         wrappers in syntax checks.
25780
25781 2009-09-06  Eric Blake  <ebb9@byu.net>
25782
25783         doc: fix comments in recent patches
25784         * lib/faccessat.c: Mention correct function.
25785         * lib/fchmodat.c: Likewise.
25786         * lib/fchownat.c: Likewise.
25787         * lib/symlinkat.c: Likewise.
25788         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25789         constants.
25790
25791         faccessat, symlinkat: continue cleanup of previous patch
25792         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25793         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25794         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25796         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25797         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25798         set.
25799
25800 2009-09-06  Bruno Haible  <bruno@clisp.org>
25801
25802         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25803         (fstatat): Declare if GNULIB_FSTATAT is set.
25804         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25805         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25806         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25807         * modules/fcntl-h (Files): Remove m4/openat.m4.
25808         * modules/sys_stat (Files): Remove m4/openat.m4.
25809         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25810         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25811         * modules/unistd (Files): Remove m4/openat.m4.
25812         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25813         GNULIB_OPENAT.
25814         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25815         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25817         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25818         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25819         gl_OPENAT_DEFAULTS.
25820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25821         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25822         Don't require gl_OPENAT_DEFAULTS.
25823         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25824         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25825         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25826         (gl_OPENAT_DEFAULTS): Remove macro.
25827
25828 2009-09-06  Bruno Haible  <bruno@clisp.org>
25829
25830         * modules/openat (configure.ac): Remove unneeded witness.
25831
25832 2009-09-06  Bruno Haible  <bruno@clisp.org>
25833
25834         Set errno to ENOSYS when a function is entirely unsupported.
25835         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25836         EOPNOTSUPP.
25837         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25838         * modules/chown (Depends-on): Remove errno.
25839
25840 2009-09-06  Bruno Haible  <bruno@clisp.org>
25841
25842         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25843
25844 2009-09-06  Bruno Haible  <bruno@clisp.org>
25845
25846         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25847
25848 2009-09-06  Ben Pfaff  <blp@gnu.org>
25849             Bruno Haible  <bruno@clisp.org>
25850
25851         Work around a glibc bug in strtok_r.
25852         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25853         Undefine if UNDEFINE_STRTOK_R is set.
25854         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25856         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25858         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25859         UNDEFINE_STRTOK_R.
25860         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25861
25862 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25863
25864         exclude: minor fix
25865         * lib/exclude.c: Include wctype.h
25866
25867 2009-09-06  Akim Demaille  <demaille@gostai.com>
25868
25869         bootstrap: improve error message
25870         * build-aux/bootstrap (find_tool): Upon failure, report the list
25871         of candidates.
25872         Honor the initial value of the envvar.
25873
25874 2009-09-05  Eric Blake  <ebb9@byu.net>
25875
25876         symlinkat: new module
25877         * modules/symlinkat: New file.
25878         * lib/symlinkat.c: Likewise.
25879         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25881         * modules/unistd (Makefile.am): Use them.
25882         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25883         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25884         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25885         * MODULES.html.sh (File system functions): Mention module.
25886         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25887         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25888         * modules/symlinkat-tests: New test.
25889         * tests/test-symlinkat.c: Likewise.
25890
25891         test-openat-safer: add more checks
25892         * tests/test-openat-safer.c (main): Check more code paths.
25893
25894 2009-09-05  Jim Meyering  <meyering@redhat.com>
25895
25896         syntax-check: detect unnecessary inclusion of openat.h
25897         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25898
25899 2009-09-05  Bruno Haible  <bruno@clisp.org>
25900
25901         Support towlower, towupper.
25902         * doc/posix-functions/towlower.texi: Mention module wctype.
25903         * doc/posix-functions/towupper.texi: Likewise.
25904         * lib/wctype.in.h (towlower, towupper): New functions.
25905         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25906         (ASSERT): New macro.
25907         (e): New variable.
25908         (main): Test also towlower, towupper. Test WEOF argument.
25909         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25910
25911 2009-09-05  Bruno Haible  <bruno@clisp.org>
25912
25913         Fix conversion behaviour when the input is invalid.
25914         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25915         mark occurring in first pass of indirect conversion.
25916         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25917         input.
25918         Found by clang's static analyzer.
25919
25920 2009-09-05  Bruno Haible  <bruno@clisp.org>
25921
25922         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25923         where direct conversion is possible.
25924
25925 2009-09-04  Eric Blake  <ebb9@byu.net>
25926
25927         openat: fail with ENOENT on empty name
25928         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25929         buffer.
25930
25931         link-follow: fix logic bug in prior patch
25932         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25933         reversed sense of yes and no in prior patch.  Avoid confusing
25934         compilation failure with desired semantics.
25935
25936         link-follow: accomodate mingw and cross-compilation
25937         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25938         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25939         cross-compilation results to -1, to make linkat easier to
25940         implement when cross-compiling.  Trivially support mingw.
25941         * modules/link-follow (configure.ac): Call new name.
25942         * NEWS: Mention this.
25943
25944 2009-09-03  Eric Blake  <ebb9@byu.net>
25945
25946         faccessat: compile replacement
25947         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25948         needed.
25949
25950         fts: fix compilation error
25951         * lib/fts.c (includes): Re-add "openat.h", for
25952         openat_needs_fchdir.
25953
25954         faccessat: new module
25955         * modules/faccessat: New file.
25956         * lib/faccessat.c: Likewise.
25957         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25959         * modules/unistd (Makefile.am): Use it.
25960         * lib/unistd.in.h (faccessat): Declare it.
25961         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25962         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25963         * MODULES.html.sh (File system functions): Mention it.
25964         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25965         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25966
25967         euidaccess: prefer POSIX over non-standard implementation
25968         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25969         * lib/euidaccess.c (euidaccess): Use it if available.
25970
25971         openat: make template easier to use
25972         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25973         AT_FUNC_F2 to be undefined.
25974         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25975         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25976         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25977         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25978         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25979         Likewise.
25980         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25981         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25982         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25983         Likewise.
25984
25985         openat: declare in POSIX headers
25986         * NEWS: Mention this.
25987         * modules/openat (configure.ac): Declare witnesses.
25988         (Depends-on): Add fcntl-h, sys_stat, unistd.
25989         (Include): Mention correct headers.
25990         * modules/fcntl-h (Depends-on): Add link-warning.
25991         (Files): Add openat.m4.
25992         (Makefile.am): Substitute witnesses.
25993         * modules/sys_stat (Files, Makefile.am): Likewise.
25994         * modules/unistd (Files, Makefile.am): Likewise.
25995         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25996         (gl_OPENAT_DEFAULTS): New macro.
25997         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25999         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26000         (SYS_STAT_H): Remove unused variable.
26001         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26002         * lib/fcntl--.h (includes): Remove unneeded header.
26003         * lib/openat-safer.c (includes): Likewise.
26004         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26005         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26006         appropriate headers.
26007         (__OPENAT_PREFIX): Delete.
26008         * lib/fcntl.in.h (openat): Provide declaration.
26009         (AT_FDCWD): Fix Solaris bug.
26010         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26011         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26012         * lib/fchmodat.c (includes):  Adjust to find declaration.
26013         * lib/fchownat.c (includes): Likewise.
26014         * lib/mkdirat.c (includes): Likewise.
26015         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26016         still visible.
26017
26018 2009-09-02  Eric Blake  <ebb9@byu.net>
26019
26020         errno: use consistently
26021         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26022         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26023         * lib/canonicalize.c (ELOOP): Likewise.
26024         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26025         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26026         * lib/lchown.c (EOPNOTSUPP): Likewise.
26027         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26028         * lib/savewd.c (ESTALE): Likewise.
26029         * lib/settime.c (ENOSYS): Likewise.
26030         * lib/utimens.c (ENOSYS): Likewise.
26031         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26032         * lib/chdir-safer.c (ELOOP): Likewise.
26033         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26034         * modules/c-stack (Depends-on): Add errno.
26035         * modules/canonicalize (Depends-on): Likewise.
26036         * modules/chdir-safer (Depends-on): Likewise.
26037         * modules/fdopendir (Depends-on): Likewise.
26038         * modules/inet_ntop (Depends-on): Likewise.
26039         * modules/inet_pton (Depends-on): Likewise.
26040         * modules/lchown (Depends-on): Likewise.
26041         * modules/openat (Depends-on): Likewise.
26042         * modules/savewd (Depends-on): Likewise.
26043         * modules/settime (Depends-on): Likewise.
26044         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26045
26046         fts: avoid leaking fds
26047         * modules/fts (Depends-on): Add cloexec.
26048         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26049         flag.
26050
26051         fts: make directory fds more robust
26052         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26053         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26054
26055         backupfile, chdir-long, fts, savedir: make safer
26056         * lib/backupfile.c (includes): Use "dirent--.h", since
26057         numbered_backup can write to stderr during readdir.
26058         * lib/savedir.c (includes): Likewise.
26059         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26060         emulation can write to stderr on failure.
26061         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26062         * lib/getcwd.c: Document why opendir_safer is unused.
26063         * lib/glob.c: Likewise.
26064         * lib/scandir.c: Likewise.
26065         * lib/openat-proc.c: Likewise, for open_safer.
26066         * modules/backupfile (Depends-on): Add dirent-safer.
26067         * modules/savedir (Depends-on): Likewise.
26068         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26069         * modules/chdir-long (Depends-on): Add openat-safer.
26070
26071         openat-safer: new module
26072         * modules/openat-safer: New file.
26073         * lib/openat-safer.c: Likewise.
26074         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26075         * lib/fcntl-safer.h (openat_safer): Declare.
26076         * lib/fcntl--.h (openat): Override.
26077         * MODULES.html.sh (File descriptor based I/O): Mention it.
26078         * lib/openat.h: Add double-inclusion guards.
26079         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26080         "fcntl--.h", so we can implement openat.
26081         * modules/openat-safer-tests: New test.
26082         * tests/test-openat-safer.c: New file.
26083
26084         dirent-safer: new module
26085         * modules/dirent-safer: New file.
26086         * lib/dirent--.h: Likewise.
26087         * lib/dirent-safer.h: Likewise.
26088         * lib/opendir-safer.c: Likewise.
26089         * m4/dirent-safer.m4: Likewise.
26090         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26091         * modules/dirent-safer-tests: New test.
26092         * tests/test-dirent-safer.c: New file.
26093         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26094
26095         fdopendir: optimize on mingw
26096         * lib/unistd.in.h (_gl_directory_name): New prototype.
26097         * lib/fchdir.c (_gl_directory_name): Implement it.
26098         (fchdir): Use it to simplify implementation.
26099         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26100         fchdir, when available, to avoid calling [f]chdir().
26101
26102         fdopendir: split into its own module
26103         * lib/openat.c (fdopendir): Move...
26104         * lib/fdopendir.c: ...into new file.
26105         * modules/fdopendir: New module.
26106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26107         * modules/openat (Depends-on): Add fdopendir.
26108         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26109         fdopendir here.
26110         * modules/savedir (Depends-on): Only need fdopendir, not full
26111         openat.
26112         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26113         * lib/openat.h (fdopendir): Drop prototype.
26114         * lib/dirent.in.h (fdopendir): Provide prototype.
26115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26116         * modules/dirent (Makefile.am): Substitute them.
26117         * MODULES.html.sh (File system functions): Mention it.
26118         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26119         * modules/fdopendir-tests: New file.
26120         * tests/test-fdopendir.c: Likewise.
26121
26122         fchdir: use more consistent macro convention
26123         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26124         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26125         REPLACE_FCHDIR, rather than relying on config.h macros.
26126         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26127         inside a single make-time REPLACE_FCHDIR block, rather than using
26128         the config.h FCHDIR_REPLACEMENT.
26129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26130         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26131         Manage fstat replacement.
26132         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26133         REPLACE_FCHDIR.
26134         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26135         (Makefile.am): Substitute REPLACE_FCHDIR.
26136         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26137         FCHDIR_REPLACEMENT.
26138         * lib/dup-safer.c (dup_safer): Likewise.
26139         * lib/dup2.c (rpl_dup2): Likewise.
26140         * lib/dup3.c (rpl_dup3): Likewise.
26141         * lib/open.c (rpl_open): Likewise.
26142
26143         fchdir: simplify error handling, and support dup3
26144         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26145         stdbool, malloc-posix, realloc-posix.
26146         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26147         (ensure_dirs_slot): Return false on allocation failure.
26148         (rpl_dup2): Delete.
26149         (_gl_register_dup): New function.
26150         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26151         (_gl_register_fd): Close fd on allocation failure.
26152         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26153         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26154         prototype.
26155         (rpl_dup2_fchdir): Delete prototype.
26156         * lib/open.c (open): Update caller.
26157         * lib/dup2.c (dup2): Track fchdir metadata.
26158         * lib/dup3.c (dup3): Likewise.
26159         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26161
26162 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26163
26164         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26165         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26166         don't pass arguments to AC_OUTPUT.
26167
26168 2009-09-02  Bruno Haible  <bruno@clisp.org>
26169
26170         * modules/mkdtemp (License): Relicense under LGPLv2+.
26171         Reported by Paolo Bonzini.
26172
26173 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26174
26175         Replace uses of obsolete autoconf macros in Jim's modules.
26176         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26177         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26178         can evoke a warning from autoconf when run with -Wobsolete
26179         enabled.  They were declared obsolete for good reasons (see
26180         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26181         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26182         should not continue using the deprecated macros.
26183         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26184         obsolete Autoconf macros with modern counterparts.
26185         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26186         * m4/dos.m4 (gl_AC_DOS): Likewise.
26187         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26188         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26189         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26190         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26191         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26192         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26193         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26194         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26195         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26196         Likewise.
26197         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26198         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26199         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26200         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26201         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26202         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26203
26204 2009-09-01  Eric Blake  <ebb9@byu.net>
26205
26206         fchdir: fix off-by-one bug in previous patch
26207         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26208         (_gl_unregister_fd): Delete useless if.
26209
26210 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26211
26212         maint.mk: sort the list of syntax-check rules
26213         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26214         easier to get a sense of progress when the rules are run sequentially
26215         and take a long time.
26216
26217 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26218
26219         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26220         * modules/netinet_in: Likewise.
26221         * modules/sys_file: Likewise.
26222         * modules/sys_ioctl: Likewise.
26223         * modules/sys_select: Likewise.
26224         * modules/sys_socket: Likewise.
26225         * modules/sys_stat: Likewise.
26226         * modules/sys_time: Likewise.
26227         * modules/sys_times: Likewise.
26228         * modules/sys_utsname: Likewise.
26229         * modules/sys_wait: Likewise.
26230
26231 2009-09-01  Jim Meyering  <meyering@redhat.com>
26232
26233         fts: help ensure that return values are not ignored
26234         * lib/fts_.h (__GNUC_PREREQ): Define.
26235         (__attribute_warn_unused_result__): Define.
26236         (fts_children, fts_close, fts_open, fts_read): Declare with
26237         __attribute_warn_unused_result__.
26238
26239         fts: fts_close now fails also when closing a dir file descriptor fails
26240         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26241         and propagate to caller, along with errno.
26242
26243         announce-gen: correct formatting in --help output
26244         * build-aux/announce-gen (usage): Move the one-line description in
26245         --help output "up", to where it belongs, just after Usage:.
26246
26247 2009-08-31  Eric Blake  <ebb9@byu.net>
26248
26249         fchdir: port to mingw
26250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26251         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26252         opened, then use a substitute.
26253         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26254         replacement.
26255         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26256         (_gl_register_fd): No need to check stat if open already filters
26257         all directories.
26258         (fchdir): Fix error condition to match POSIX.
26259         * modules/fchdir (Depends-on): Add sys_stat.
26260         * doc/posix-functions/open.texi (open): Document the limitation.
26261         * modules/fchdir-tests: New file.
26262         * tests/test-fchdir.c: Likewise.
26263
26264         canonicalize: allow cross-testing from cygwin to mingw
26265         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26266         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26267         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26268         Likewise.
26269         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26270         target does not support symlinks.
26271         * tests/test-canonicalize-lgpl.sh: Likewise.
26272
26273         chown: avoid compilation warning on mingw
26274         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26275         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26276         mingw.
26277         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26278         * modules/chown (Depends-on): Add errno.
26279
26280 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26281
26282         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26283         command.
26284
26285 2009-08-31  Jim Meyering  <meyering@redhat.com>
26286
26287         canonicalize: remove useless initialization
26288         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26289         initialization of local, "end".
26290
26291 2009-08-30  Bruno Haible  <bruno@clisp.org>
26292
26293         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26294         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26295         ENOSYS.
26296
26297 2009-08-30  Bruno Haible  <bruno@clisp.org>
26298
26299         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26300         /usr/xpg4/bin/tr when it exists.
26301         * tests/test-pipe-filter-gi1.sh: Likewise.
26302
26303 2009-08-30  Bruno Haible  <bruno@clisp.org>
26304
26305         Work around deficient /usr/bin/id program on Solaris.
26306         * tests/test-file-has-acl.sh (ID): New variable.
26307         * tests/test-set-mode-acl.sh (ID): Likewise.
26308         * tests/test-copy-acl.sh (ID): Likewise.
26309         * tests/test-copy-file.sh (ID): Likewise.
26310
26311 2009-08-30  Bruno Haible  <bruno@clisp.org>
26312
26313         New module 'xstriconveh'.
26314         * lib/xstriconveh.h: New file.
26315         * lib/xstriconveh.c: New file.
26316         * modules/xstriconveh: New file.
26317
26318 2009-08-30  Bruno Haible  <bruno@clisp.org>
26319
26320         Make it easier to use mem_cd_iconveh.
26321         * lib/striconveh.h (iconveh_t): New type.
26322         (iconveh_open, iconveh_close): New declarations.
26323         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26324         with a single 'const iconveh_t *' argument.
26325         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26326         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26327         with a single 'const iconveh_t *' argument.
26328         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26329         * tests/test-striconveh.c (main): Update.
26330         * NEWS: Mention the change.
26331
26332 2009-08-30  Bruno Haible  <bruno@clisp.org>
26333
26334         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26335         problem.
26336
26337 2009-08-30  Bruno Haible  <bruno@clisp.org>
26338
26339         Work around iconv_open problem on Solaris.
26340         * lib/iconv_open-solaris.gperf: New file.
26341         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26342         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26343         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26344         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26345         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26346         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26347
26348 2009-08-29  Jim Meyering  <meyering@redhat.com>
26349
26350         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26351         * top/maint.mk (cvs-check): Remove target; it was just an alias
26352         to the better-named vc-diff-check.
26353         (maintainer-distcheck): Remove rule.  It was used only from
26354         the (alpha/beta/major) target, and all of its commands but one
26355         were coreutils-specific.
26356         (vc-dist): Remove rule.
26357         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26358         Run vc-diff-check, not vc-dist.
26359         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26360
26361 2009-08-27  Bruno Haible  <bruno@clisp.org>
26362
26363         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26364         of 0.
26365
26366 2009-08-27  Bruno Haible  <bruno@clisp.org>
26367
26368         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26369         compilers.
26370         * doc/func.texi: Document the SunPRO C bug.
26371
26372 2009-08-27  Bruno Haible  <bruno@clisp.org>
26373
26374         Fix link error on Solaris.
26375         * tests/test-parse-duration.c (xstrdup): Remove function.
26376
26377 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26378
26379         ignore-value: handle pointer types, too
26380         * lib/ignore-value.h (__attribute__): Remove definition.
26381         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26382         of a more concise and more-often effective "(void) i" statement.
26383         (ignore_ptr): New function to suppress warnings from functions that
26384         return pointers, and to make it explicit that one function doesn't
26385         handle all cases.
26386
26387 2009-08-25  Bruno Haible  <bruno@clisp.org>
26388
26389         dup2: work around a Linux bug.
26390         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26391         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26392         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26393         Reported by Simon Josefsson.
26394
26395 2009-08-25  Jim Meyering  <meyering@redhat.com>
26396
26397         libguestfs uses gnulib
26398         * users.txt: Add libguestfs.
26399
26400 2009-08-24  Eric Blake  <ebb9@byu.net>
26401
26402         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26403         * lib/pipe2.c (includes): Add binary-io.h.
26404         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26405
26406 2009-08-24  Bruno Haible  <bruno@clisp.org>
26407
26408         Tolerate declared but missing accept4 syscall.
26409         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26410         available.
26411         * lib/sys_socket.in.h (accept4): If the function is already present,
26412         override it.
26413         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26414         * modules/accept4 (Makefile.am): Compile accept4.c always.
26415         Reported by Paolo Bonzini and Eric Blake.
26416
26417 2009-08-23  Bruno Haible  <bruno@clisp.org>
26418
26419         New module 'accept4'.
26420         * lib/sys_socket.in.h (accept4): New declaration.
26421         * lib/accept4.c: New file.
26422         * m4/accept4.m4: New file.
26423         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26424         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26425         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26426         HAVE_ACCEPT4.
26427         * modules/accept4: New file.
26428         * doc/glibc-functions/accept4.texi: Mention the new module.
26429
26430 2009-08-24  Jim Meyering  <meyering@redhat.com>
26431
26432         progname: also set global program_invocation_name, when possible
26433         Before this change, a libtool-enabled program that calls glibc's
26434         error function would report the program name as
26435         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26436         * modules/progname (configure.ac): Check for a declaration of
26437         program_invocation_name.
26438         * lib/progname.c:  Include <errno.h>.
26439         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26440         Set program_invocation_name.
26441
26442 2009-08-23  Bruno Haible  <bruno@clisp.org>
26443
26444         * lib/dup3.c: Include <string.h>.
26445
26446 2009-08-23  Bruno Haible  <bruno@clisp.org>
26447
26448         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26449         * lib/pipe2.c (pipe2): Likewise.
26450         Suggested by Eric Blake.
26451
26452 2009-08-23  Bruno Haible  <bruno@clisp.org>
26453
26454         Tolerate declared but missing dup3 syscall.
26455         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26456         * lib/unistd.in.h (dup3): If the function is already present,
26457         override it.
26458         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26459         * modules/dup3 (Makefile.am): Compile dup3.c always.
26460         Reported by Paolo Bonzini.
26461
26462 2009-08-23  Bruno Haible  <bruno@clisp.org>
26463
26464         Tolerate declared but missing pipe2 syscall.
26465         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26466         available.
26467         * lib/unistd.in.h (pipe2): If the function is already present,
26468         override it.
26469         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26470         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26471         Reported by Paolo Bonzini.
26472
26473 2009-08-23  Bruno Haible  <bruno@clisp.org>
26474
26475         * lib/pipe2.c (pipe2): Move #ifs inside function.
26476
26477 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26478
26479         quotearg: document limitations of quote_these_too
26480         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26481         those limitations are created.
26482         * lib/quotearg.h (set_char_quoting): Document that digits and
26483         letters that are special after backslash are not permitted.
26484         (quotearg_char): Cross-reference set_char_quoting documentation.
26485
26486 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26487
26488         quotearg: implement custom_quoting_style
26489         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26490         right_quote fields.
26491         (set_custom_quoting): New public function.
26492         (quotearg_buffer_restyled): Add left_quote and right_quote
26493         arguments, handle them very much like locale quoting, and update
26494         all uses.
26495         (quotearg_n_custom): New public function.
26496         (quotearg_n_custom_mem): New public function.
26497         (quotearg_custom): New public function.
26498         (quotearg_custom_mem): New public function.
26499         * lib/quotearg.h: Prototype and document new public functions.
26500         (enum quoting_style): For escape_quoting_style and
26501         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26502         ignored even though they're otherwise like c_quoting_style.
26503         Add custom_quoting_style member and document with comparison to
26504         clocale_quoting_style.
26505         * tests/test-quotearg.c (custom_quotes): New array.
26506         (custom_results): New array.
26507         (main): Extend to test custom quoting.
26508
26509 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26510
26511         quotearg: fix right quote escaping when it's in quote_these_too
26512         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26513         quote, be sure to prepend only one backslash.
26514         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26515         (main): Test it.
26516
26517 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26518
26519         quotearg-tests: test escaping of embedded locale quotes
26520         * tests/test-quotearg.c (struct result_strings): Add member for
26521         new input.
26522         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26523         (inputs): Add new input.
26524         (results_g): Add expected results.
26525         (flag_results): Likewise.
26526         (locale_results): Likewise.
26527         (compare_strings): Check those.
26528
26529 2009-08-23  Bruno Haible  <bruno@clisp.org>
26530
26531         Tests for module 'dup3'.
26532         * modules/dup3-tests: New file.
26533         * tests/test-dup3.c: New file.
26534
26535         New module 'dup3'.
26536         * lib/unistd.in.h (dup3): New declaration.
26537         * lib/dup3.c: New file.
26538         * m4/dup3.m4: New file.
26539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26540         HAVE_DUP3.
26541         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26542         * modules/dup3: New file.
26543         * doc/glibc-functions/dup3.texi: Mention the new module.
26544
26545 2009-08-23  Bruno Haible  <bruno@clisp.org>
26546
26547         Tweak the dup2 test.
26548         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26549         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26550         the test file is still empty. Fix argument order of lseek.
26551
26552 2009-08-23  Bruno Haible  <bruno@clisp.org>
26553
26554         Avoid test link errors when the modules getopt-gnu, gettext are used.
26555         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26557
26558 2009-08-23  Bruno Haible  <bruno@clisp.org>
26559
26560         Fix getdtablesize() on mingw.
26561         * lib/getdtablesize.c (getdtablesize): Implement differently.
26562         * lib/unistd.in.h (getdtablesize): Improve comment.
26563
26564 2009-08-23  Bruno Haible  <bruno@clisp.org>
26565
26566         New module 'mkostemp'.
26567         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26568         * lib/stdlib.in.h (mksotemp): New declaration.
26569         * lib/mkostemp.c: New file, from glibc with modifications.
26570         * lib/tempname.h (GT_FILE): Remove outdated comment.
26571         (gen_tempname): Add flags argument.
26572         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26573         (__GT_FILE): Map to 1.
26574         (small_open, large_open): Remove macros.
26575         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26576         * lib/mkstemp.c (mkstemp): Update.
26577         * lib/mkdtemp.c (mkdtemp): Likewise.
26578         * m4/mkostemp.m4: New file.
26579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26580         HAVE_MKOSTEMP.
26581         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26582         HAVE_MKOSTEMP.
26583         * modules/mkostemp: New file, based on modules/mkstemp.
26584         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26585         * NEWS: Mention the change.
26586
26587 2009-08-23  Bruno Haible  <bruno@clisp.org>
26588
26589         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26590         Reported by Eric Blake.
26591
26592 2009-08-23  Bruno Haible  <bruno@clisp.org>
26593
26594         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26595         Reported by Eric Blake.
26596
26597 2009-08-23  Bruno Haible  <bruno@clisp.org>
26598
26599         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26600         * modules/pipe2 (Depends-on): Likewise.
26601
26602 2009-08-23  Eric Blake  <ebb9@byu.net>
26603
26604         fcntl-h: add O_TTY_INIT support
26605         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26606         * tests/test-fcntl-h.c (o): Test it.
26607         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26608
26609         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26610         * modules/fcntl: Move <fcntl.h> header replacement...
26611         * modules/fcntl-h: ...to new name, so as not to collide with
26612         like-named function.
26613         * tests/test-fcntl.c: Rename...
26614         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26615         * modules/fcntl-tests: Rename...
26616         * modules/fcntl-h-tests: ...to this.  Update test file name.
26617         * modules/chdir-long (Depends-on): Update clients.
26618         * modules/chdir-safer (Depends-on): Likewise.
26619         * modules/fcntl-safer (Depends-on): Likewise.
26620         * modules/fts (Depends-on): Likewise.
26621         * modules/mkancesdirs (Depends-on): Likewise.
26622         * modules/mkdir-p (Depends-on): Likewise.
26623         * modules/open (Depends-on): Likewise.
26624         * modules/savewd (Depends-on): Likewise.
26625         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26626         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26627
26628 2009-08-22  Bruno Haible  <bruno@clisp.org>
26629
26630         * modules/binary-io (License): Relicense under LGPL.
26631         * modules/pipe2 (License): Likewise.
26632
26633 2009-08-22  Bruno Haible  <bruno@clisp.org>
26634
26635         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26636         return value.
26637         * lib/pipe-filter-gi.c (filter_init): Likewise.
26638         Reported by Eric Blake.
26639
26640 2009-08-22  Bruno Haible  <bruno@clisp.org>
26641
26642         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26643         * modules/pipe (Depends-on): Add pipe2.
26644
26645 2009-08-22  Bruno Haible  <bruno@clisp.org>
26646
26647         Tests for module 'pipe2'.
26648         * modules/pipe2-tests: New file.
26649         * tests/test-pipe2.c: New file.
26650
26651         New module 'pipe2'.
26652         * lib/unistd.in.h (pipe2): New declaration.
26653         * lib/pipe2.c: New file.
26654         * m4/pipe2.m4: New file.
26655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26656         HAVE_PIPE2.
26657         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26658         * modules/pipe2: New file.
26659         * doc/glibc-functions/pipe2.texi: Mention the new module.
26660
26661 2009-08-22  Bruno Haible  <bruno@clisp.org>
26662
26663         Reference some new glibc functions.
26664         * doc/glibc-functions/accept4.texi: New file.
26665         * doc/glibc-functions/dup3.texi: New file.
26666         * doc/glibc-functions/mkostemp.texi: New file.
26667         * doc/glibc-functions/pipe2.texi: New file.
26668         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26669         (Glibc sys/socket.h): Refer to accept4.
26670         (Glibc unistd.h): Refer to dup3, pipe2.
26671         Reported by Eric Blake.
26672
26673 2009-08-22  Jim Meyering  <meyering@redhat.com>
26674             Bruno Haible  <bruno@clisp.org>
26675
26676         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26677         This makes it so packages using automake-1.11's silent-rules option
26678         can print e.g., a single "GEN    configmake.h" line, rather than
26679         the 30+ statements that perform the job.  If you want to see the
26680         actual commands, you can still run "make V=1".
26681         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26682         so that make output is abbreviated when those variables are defined
26683         appropriately.
26684         * modules/argz: Likewise.
26685         * modules/arpa_inet: Likewise.
26686         * modules/byteswap: Likewise.
26687         * modules/configmake: Likewise.
26688         * modules/dirent: Likewise.
26689         * modules/errno: Likewise.
26690         * modules/fcntl: Likewise.
26691         * modules/float: Likewise.
26692         * modules/fnmatch: Likewise.
26693         * modules/getopt-posix: Likewise.
26694         * modules/glob: Likewise.
26695         * modules/iconv_open: Likewise.
26696         * modules/inttypes: Likewise.
26697         * modules/localcharset: Likewise.
26698         * modules/locale: Likewise.
26699         * modules/math: Likewise.
26700         * modules/netdb: Likewise.
26701         * modules/netinet_in: Likewise.
26702         * modules/poll: Likewise.
26703         * modules/posix_spawnp-tests: Likewise.
26704         * modules/sched: Likewise.
26705         * modules/search: Likewise.
26706         * modules/selinux-h: Likewise.
26707         * modules/signal: Likewise.
26708         * modules/spawn: Likewise.
26709         * modules/stdarg: Likewise.
26710         * modules/stdbool: Likewise.
26711         * modules/stddef: Likewise.
26712         * modules/stdint: Likewise.
26713         * modules/stdio: Likewise.
26714         * modules/stdlib: Likewise.
26715         * modules/string: Likewise.
26716         * modules/strings: Likewise.
26717         * modules/sys_file: Likewise.
26718         * modules/sys_ioctl: Likewise.
26719         * modules/sys_select: Likewise.
26720         * modules/sys_socket: Likewise.
26721         * modules/sys_stat: Likewise.
26722         * modules/sys_time: Likewise.
26723         * modules/sys_times: Likewise.
26724         * modules/sys_utsname: Likewise.
26725         * modules/sys_wait: Likewise.
26726         * modules/sysexits: Likewise.
26727         * modules/time: Likewise.
26728         * modules/unistd: Likewise.
26729         * modules/wchar: Likewise.
26730         * modules/wctype: Likewise.
26731
26732 2009-08-22  Jim Meyering  <meyering@redhat.com>
26733
26734         announce-gen: detect write failure
26735         * build-aux/announce-gen: Add Coda at end.
26736         Remove equivalent-but-more-verbose block at top.
26737
26738 2009-08-19  Akim Demaille  <demaille@gostai.com>
26739
26740         bootstrap: --help to stdout.
26741         * bootstrap (usage): Don't send --help to stderr.
26742         Use a here doc instead of a long string.
26743
26744 2009-08-21  Eric Blake  <ebb9@byu.net>
26745
26746         test-popen-safer: split from test-popen
26747         * tests/test-popen.c (main): Move...
26748         * tests/test-popen.h: ...into new file.
26749         * tests/test-popen-safer2.c: New file.
26750         * modules/popen-tests (Files): Add test-popen.h.
26751         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26752         Suggested by Bruno Haible.
26753
26754         test-fcntl-safer: split from test-open
26755         * tests/test-open.c (main): Move...
26756         * tests/test-open.h: ...into new file.
26757         * tests/test-fcntl-safer.c: New file.
26758         * modules/open-tests (Files): Add test-open.h.
26759         * modules/fcntl-safer-tests: New file.
26760         Suggested by Bruno Haible.
26761
26762         test-fopen-safer: split from test-fopen
26763         * tests/test-fopen.c (main): Move...
26764         * tests/test-fopen.h: ...into new file.
26765         * tests/test-fopen-safer.c: New file.
26766         * modules/fopen-tests (Files): Add test-fopen.h.
26767         * modules/fopen-safer-tests: New file.
26768         Suggested by Bruno Haible.
26769
26770 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26771
26772         popen-safer: test O_CLOEXEC at run-time.
26773         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26774
26775 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26776
26777         fcntl: move more flags to the header
26778         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26779         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26780         * lib/fcntl.in.h: Do both things here.
26781
26782 2009-08-21  Jim Meyering  <meyering@redhat.com>
26783
26784         consistently remove $@-t before redirecting to it
26785         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26786         * modules/alloca-opt: Likewise.
26787         * modules/byteswap: Likewise.
26788         * modules/fnmatch: Likewise.
26789         * modules/getopt-posix: Likewise.
26790         * modules/glob: Likewise.
26791         * modules/poll: Likewise.
26792         * modules/posix_spawnp-tests: Likewise.
26793         * modules/sys_socket: Likewise.
26794         * modules/sysexits: Likewise.
26795
26796 2009-08-21  Eric Blake  <ebb9@byu.net>
26797
26798         popen: simplify access to original popen
26799         * lib/popen.c (rpl_popen): No need to worry about popen being a
26800         macro.
26801         Reported by Bruno Haible.
26802
26803 2009-08-20  Eric Blake  <ebb9@byu.net>
26804
26805         build: avoid some compiler warnings
26806         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26807         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26808         type.
26809         (new_exclude_segment, excluded_file_pattern_p)
26810         (excluded_file_name_p): Reduce scope.
26811         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26812         old-style declaration.
26813
26814 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26815
26816         * tests/test-exclude1.sh: Handle Windows EOL.
26817         * tests/test-exclude2.sh: Likewise.
26818         * tests/test-exclude3.sh: Likewise.
26819         * tests/test-exclude4.sh: Likewise.
26820         * tests/test-exclude5.sh: Likewise.
26821         * tests/test-exclude6.sh: Likewise.
26822         * tests/test-exclude7.sh: Likewise.
26823
26824 2009-08-19  Akim Demaille  <demaille@gostai.com>
26825
26826         bootstrap: find sha1sum when named gsha1sum.
26827         * bootstrap (find_tool): New.
26828         ($SHA1SUM): New.
26829         Use it.
26830
26831 2009-08-20  Jim Meyering  <meyering@redhat.com>
26832
26833         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26834         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26835         expression that converts "." in a file name to "\." in the resulting
26836         regexp.  Start with a dummy statement, so that prior shell variable
26837         definitions are expanded portably.  Reported by Simon Josefsson.
26838
26839 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26840
26841         Fix polling for writeability of a screen buffer.
26842         * lib/poll.c: Distinguish input and screen buffers for the
26843         Win32 implementation.
26844         * lib/select.c: Likewise.
26845
26846 2009-08-19  Eric Blake  <ebb9@byu.net>
26847
26848         popen-safer: prevent popen from clobbering std descriptors
26849         * modules/popen-safer: New file.
26850         * lib/popen-safer.c: Likewise.
26851         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26852         * lib/stdio--.h (popen): Provide override.
26853         * lib/stdio-safer.h (popen_safer): Provide declaration.
26854         * tests/test-popen.c (includes): Partially test this.
26855         * modules/popen-safer-tests: New file, for more tests.
26856         * tests/test-popen-safer.c: Likewise.
26857         * MODULES.html.sh (file stream based Input/Output): Mention it.
26858
26859         tests: test some of the *-safer modules
26860         * modules/fopen-safer (Depends-on): Add fopen.
26861         * modules/fcntl-safer (Depends-on): Add fcntl.
26862         * modules/stdlib-safer (Depends-on): Add stdlib.
26863         (configure.ac): Set indicator.
26864         * modules/unistd-safer (configure.ac): Likewise.
26865         * modules/tmpfile-safer (configure.ac): Likewise.
26866         (Depends-on): Add tmpfile.
26867         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26868         active.
26869         * tests/test-fopen.c (includes): Test safer versions when they are
26870         in use.
26871         * tests/test-open.c (includes): Likewise.
26872
26873         popen: fix cygwin 1.5 bug when stdin closed
26874         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26875         * modules/popen: New file.
26876         * modules/popen-tests: Likewise.
26877         * tests/test-popen.c: Likewise.
26878         * m4/popen.m4: Likewise.
26879         * lib/popen.c: Likewise.
26880         * lib/stdio.in.h (popen): New declaration.
26881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26882         * modules/stdio (Makefile.am): Likewise.
26883         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26884
26885 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26886
26887         maint.mk: give full control over update-copyright exclusions
26888         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26889         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26890         (update-copyright): Don't force inclusion of top-level
26891         ChangeLog.  Don't force exclusion of all COPYING files, but make
26892         them the default exclusion instead.
26893
26894 2009-08-16  Bruno Haible  <bruno@clisp.org>
26895
26896         Fix test failures on Solaris 10.
26897         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26898         tests when Solaris iconv() is used.
26899         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26900         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26901         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26902         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26903         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26904
26905 2009-08-16  Bruno Haible  <bruno@clisp.org>
26906
26907         Fix test failures on Solaris 10.
26908         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26909         'tr' program and pass it as first argument.
26910         * tests/test-pipe-filter-gi1.sh: Likewise.
26911         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26912         program as first argument.
26913         * tests/test-pipe-filter-gi1.c (main): Likewise.
26914
26915 2009-08-16  Eric Blake  <ebb9@byu.net>
26916
26917         fpurge: fix previous commits
26918         * modules/fpurge (Makefile.am): Make replacement conditional,
26919         partially reverting 2007-04-29 change; missed in previous
26920         attempt.
26921         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26922         is missing.
26923
26924 2009-08-16  Bruno Haible  <bruno@clisp.org>
26925
26926         Clarify fpurge's effect on the file position.
26927         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26928         * tests/test-fpurge.c (main): Make a second pass for checking the file
26929         position.
26930
26931 2009-08-16  Bruno Haible  <bruno@clisp.org>
26932
26933         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26934         declaration of fpurge is missing.
26935         * tests/test-fpurge.c (main): Check that the file has not more contents
26936         than expected. Close the file before removing it.
26937
26938 2009-08-15  Eric Blake  <ebb9@byu.net>
26939
26940         fpurge: don't wrap working cygwin implementation
26941         * lib/fpurge.c (fpurge): Fix comment typo.
26942         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26943         1.7 to avoid replacement.
26944         * tests/test-fpurge.c (main): Enhance test.
26945
26946 2009-08-15  Eric Blake  <ebb9@byu.net>
26947         and Jim Meyering  <meyering@redhat.com>
26948
26949         test-update-copyright: skip if perl is insufficient
26950         * tests/test-update-copyright.sh: Failure to run maintainer tool
26951         should not cause testsuite failure on cygwin 1.5.
26952
26953 2009-08-14  Eric Blake  <ebb9@byu.net>
26954
26955         doc: mention more functions added in cygwin 1.7.0
26956         * doc/posix-headers/limits.texi (limits.h): Update for recent
26957         cygwin additions.
26958         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26959         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26960         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26961         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26962         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26963
26964 2009-08-14  Eric Blake  <ebb9@byu.net>
26965
26966         maint.mk: simplify update-copyright rule
26967         * top/maint.mk (update-copyright-local): Delete, and document how
26968         to do it in cfg.mk instead.
26969         (update-copyright-exclude-regexp): Delete, and document how to do
26970         it in .x-update-copyright instead.
26971         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26972         exclude ChangeLog.
26973
26974 2009-08-14  Bruno Haible  <bruno@clisp.org>
26975
26976         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26977
26978 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26979
26980         maint.mk: support update-copyright-env
26981         * top/maint.mk (update-copyright-env): Define place-holder.
26982         (update-copyright): Expand $(update-copyright-env) before
26983         invoking update-copyright.
26984
26985 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26986
26987         update-copyright: implement forced reformatting
26988         * build-aux/update-copyright: Implement and document
26989         UPDATE_COPYRIGHT_FORCE.
26990         * tests/test-update-copyright.sh: Test it.
26991
26992 2009-08-14  Eric Blake  <ebb9@byu.net>
26993         and Bruno Haible  <bruno@clisp.org>
26994
26995         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26996         * tests/test-locale.c: Revert previous patch related to NULL.
26997         * tests/test-stdio.c: Likewise.
26998         * tests/test-stdlib.c: Likewise.
26999         * tests/test-string.c: Likewise.
27000         * tests/test-unistd.c: Likewise.
27001         * modules/time-tests (Depends-on): Add verify.
27002         * modules/wchar-tests (Depends-on): Likewise.
27003         * tests/test-time.c: Test for NULL compliance.
27004         * tests/test-wchar.c: Likewise.
27005         * modules/locale (Depends-on): Add stddef.
27006         * modules/stdio (Depends-on): Likewise.
27007         * modules/stdlib (Depends-on): Likewise.
27008         * modules/string (Depends-on): Likewise.
27009         * modules/time (Depends-on): Likewise.
27010         * modules/unistd (Depends-on): Likewise.
27011         * modules/wchar (Depends-on): Likewise.
27012         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27013         * lib/stdlib.in.h (includes): Likewise.
27014         * lib/string.in.h (includes): Likewise.
27015         * lib/time.in.h (includes): Likewise.
27016         * lib/unistd.in.h (includes): Likewise.
27017         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27018         replaced.
27019         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27020         * m4/stddef_h.m4: New file.
27021         * modules/stddef: Likewise.
27022         * lib/stddef.in.h: Likewise.
27023         * modules/stddef-tests: Likewise.
27024         * tests/test-stddef.c: Likewise.
27025         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27026         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27027         * doc/posix-headers/locale.texi (locale.h): Likewise.
27028         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27029         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27030         * doc/posix-headers/string.texi (string.h): Likewise.
27031         * doc/posix-headers/time.texi (time.h): Likewise.
27032         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27033         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27034
27035 2009-08-14  Eric Blake  <ebb9@byu.net>
27036
27037         doc: improve git diff of texinfo files
27038         * .gitattributes: Add rule for *.texi files, with hint on how to
27039         use it.
27040         Copied from m4, and based on a report by Bruno Haible.
27041
27042 2009-08-14  Bruno Haible  <bruno@clisp.org>
27043
27044         Disable multithread support by default on Cygwin 1.5.x for real.
27045         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27046
27047 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27048
27049         update-copyright: much ado about intervals
27050         * build-aux/update-copyright: Implement and document
27051         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27052         of copyright year intervals.
27053         Also, document UPDATE_COPYRIGHT_YEAR.
27054         * tests/test-update-copyright.sh: Test it.
27055
27056         update-copyright: convert 2-digit to 4-digit years
27057         * build-aux/update-copyright: Implement and document.
27058         * tests/test-update-copyright.sh: Update.
27059
27060 2009-08-14  Jim Meyering  <meyering@redhat.com>
27061
27062         test-exclude: avoid coreutils "make check" failure
27063         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27064         just as in test-argmatch.c.
27065
27066 2009-08-13  Eric Blake  <ebb9@byu.net>
27067
27068         test-dup2: fix bad assumption
27069         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27070         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27071
27072         test-version-etc: fix CRLF portability issue
27073         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27074         recognize \r.
27075         * tests/test-argp-version-etc-1.sh: Likewise.
27076
27077         getopt: update client modules
27078         * modules/argp (Depends-on): Use getopt-gnu.
27079         * modules/git-merge-changelog (Depends-on): Likewise.
27080         * modules/long-options (Depends-on): Likewise.
27081         * modules/xstrtol (Depends-on): Likewise.
27082
27083 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27084
27085         * tests/test-version-etc.sh: Don't fail on different
27086         project/version.  Don't fail on CRLF differences.  Rewrite to use
27087         multiple -e instead of multiple sed forks, suggested by Eric Blake
27088         <ebb9@byu.net>.
27089         * tests/test-argp-version-etc-1.sh: Likewise.
27090
27091 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27092
27093         * tests/test-version-etc.sh: Don't fail on different
27094         project/version.
27095
27096 2009-08-12  Bruno Haible  <bruno@clisp.org>
27097
27098         Tests for modules 'getopt-posix', 'getopt-gnu'.
27099         * modules/getopt-posix-tests: New file.
27100         * tests/test-getopt.c: New file.
27101         * tests/test-getopt.h: New file.
27102         * tests/test-getopt_long.h: New file.
27103
27104         New modules 'getopt-posix', 'getopt-gnu'.
27105         * modules/getopt-gnu: New file, renamed from modules/getopt.
27106         * modules/getopt-posix: New file.
27107         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27108         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27109         (gl_GETOPT): Remove macro.
27110         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27111         Disable the test against BSD systems that declare optreset. Test
27112         against mingw bug. Test against lack of support of optional arguments
27113         on many platforms.
27114         * doc/glibc-headers/getopt.texi: Update module name and list of
27115         relevant platforms.
27116         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27117         'getopt-gnu' and more portability problems.
27118         * NEWS: Mention the changes.
27119
27120 2009-08-12  Bruno Haible  <bruno@clisp.org>
27121
27122         Ensure that optarg etc. get declared by <unistd.h>.
27123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27124         AC_USE_SYSTEM_EXTENSIONS.
27125         * modules/getopt (Depends-on): Add 'extensions'.
27126
27127 2009-08-12  Bruno Haible  <bruno@clisp.org>
27128
27129         Avoid test link errors.
27130         * modules/pipe-filter-ii-tests (Makefile.am): Define
27131         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27132         * modules/pipe-filter-gi-tests (Makefile.am): Define
27133         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27135
27136 2009-08-12  Bruno Haible  <bruno@clisp.org>
27137
27138         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27139         gl_GETOPT_SUBSTITUTE before.
27140         (gl_GETOPT): Use it.
27141         * m4/argp.m4 (gl_ARGP): Update.
27142         Reported by Sergey Poznyakoff.
27143
27144         * m4/getopt.m4: Reorder macros.
27145         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27146         (gl_GETOPT_SUBSTITUTE): Remove macro.
27147
27148 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27149
27150         Minor improvement in gitlog-to-changelog
27151
27152         * build-aux/gitlog-to-changelog: New option `--format' makes
27153         output format string configurable.
27154
27155 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27156
27157         Optimize exclude: use hash tables for non-wildcard patterns.
27158
27159         * lib/exclude.c: Include hash.h and mbuiter.h
27160         (struct exclude_pattern, exclude_segment): New data types.
27161         (struct exclude): Rewrite.
27162         (fnmatch_pattern_has_wildcards): New function.
27163         (new_exclude_segment, free_exclude_segment): New functions.
27164         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27165         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27166         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27167         * modules/exclude: Depend on hash and mbuiter.
27168
27169         * modules/exclude-tests: New file.
27170         * tests/test-exclude.c: New file.
27171         * tests/test-exclude1.sh: New file.
27172         * tests/test-exclude2.sh: New file.
27173         * tests/test-exclude3.sh: New file.
27174         * tests/test-exclude4.sh: New file.
27175         * tests/test-exclude5.sh: New file.
27176         * tests/test-exclude6.sh: New file.
27177         * tests/test-exclude7.sh: New file.
27178
27179 2009-08-12  Bruno Haible  <bruno@clisp.org>
27180
27181         Ensure that getopt() gets declared by <unistd.h>.
27182         * lib/unistd.in.h: Conditionally include getopt.h.
27183         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27184         Set GNULIB_UNISTD_H_GETOPT.
27185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27186         GNULIB_UNISTD_H_GETOPT.
27187         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27188
27189 2009-08-12  Bruno Haible  <bruno@clisp.org>
27190
27191         Clarify logic.
27192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27193         gl_replace_getopt instead of GETOPT_H.
27194
27195 2009-08-12  Bruno Haible  <bruno@clisp.org>
27196
27197         * m4/getopt.m4: Add comments.
27198
27199 2009-08-12  Bruno Haible  <bruno@clisp.org>
27200
27201         Disable multithread support by default on Cygwin 1.5.x.
27202         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27203         set gl_use_threads=no if not specified otherwise.
27204
27205 2009-08-11  Bruno Haible  <bruno@clisp.org>
27206
27207         Avoid compilation error on NetBSD 5.0.
27208         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27209         * tests/test-stdio.c: Likewise.
27210         * tests/test-stdlib.c: Likewise.
27211         * tests/test-string.c: Likewise.
27212         * tests/test-unistd.c: Likewise.
27213         Reported by Greg Troxel <gdt@ir.bbn.com>
27214         at <https://savannah.gnu.org/support/?106973>.
27215
27216 2009-08-11  Bruno Haible  <bruno@clisp.org>
27217
27218         * modules/dup2-tests (Depends-on): Remove close.
27219
27220         Undo 2009-07-19 commit.
27221         * modules/acl-tests (Depends-on): Remove close.
27222         * modules/binary-io-tests (Depends-on): Likewise.
27223         * modules/closein-tests (Depends-on): Likewise.
27224         * modules/flock-tests (Depends-on): Likewise.
27225         * modules/fsync-tests (Depends-on): Likewise.
27226         * modules/lseek-tests (Depends-on): Likewise.
27227         * modules/pipe-tests (Depends-on): Likewise.
27228         * modules/posix_spawn-tests (Depends-on): Likewise.
27229         * modules/posix_spawnp-tests (Depends-on): Likewise.
27230         * modules/stat-time-tests (Depends-on): Likewise.
27231         * modules/yesno-tests (Depends-on): Likewise.
27232
27233 2009-08-10  Bruno Haible  <bruno@clisp.org>
27234
27235         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27236
27237 2009-08-10  Bruno Haible  <bruno@clisp.org>
27238
27239         Fix a gcc warning.
27240         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27241
27242 2009-08-10  Bruno Haible  <bruno@clisp.org>
27243
27244         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27245         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27246         not only the first time.
27247         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27248         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27249         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27250         is 1, not only the the first time.
27251
27252 2009-08-10  Bruno Haible  <bruno@clisp.org>
27253
27254         Make it possible to use module 'gethostname' without module 'close'.
27255         * lib/unistd.in.h (close): Evoke a link error only if
27256         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27258         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27259         * modules/unistd (Makefile.am): Substitute
27260         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27261         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27262         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27264         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27265         * modules/sys_ioctl (Makefile.am): Substitute
27266         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27267         * modules/socket (configure.ac): On native Windows, set
27268         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27269         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27270         Reported by Sam Steingold <sds@gnu.org>.
27271
27272 2009-08-10  Bruno Haible  <bruno@clisp.org>
27273
27274         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27275         * modules/ioctl (configure.ac): Likewise.
27276
27277 2009-08-10  Bruno Haible  <bruno@clisp.org>
27278
27279         Avoid collision between gnulib wrapper and libintl wrapper.
27280         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27281         already defined in intl/printf.c.
27282         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27283         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27284
27285 2009-08-09  Bruno Haible  <bruno@clisp.org>
27286
27287         Make <sys/select.h> really self-contained, also on Solaris 10.
27288         * lib/sys_select.in.h: Include <string.h>.
27289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27290         Solaris 10 problem.
27291         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27292         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27293         Reported by Jim Meyering.
27294
27295 2009-08-09  Bruno Haible  <bruno@clisp.org>
27296
27297         Avoid warnings from 'aclocal' that are due to a use of macro name
27298         AM_XGETTEXT_OPTION that is not defined in automake.
27299         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27300         automake.
27301         * modules/error (configure.ac): Likewise.
27302         * modules/propername (configure.ac): Likewise.
27303         * modules/vasprintf (configure.ac): Likewise.
27304         * modules/verror (configure.ac): Likewise.
27305         * modules/xprintf (configure.ac): Likewise.
27306         * modules/xvasprintf (configure.ac): Likewise.
27307
27308 2009-08-08  Bruno Haible  <bruno@clisp.org>
27309
27310         Avoid compilation error in C++ mode.
27311         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27312         Reported by Sam Steingold <sds@gnu.org>.
27313
27314 2009-08-08  Bruno Haible  <bruno@clisp.org>
27315
27316         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27317         for the various Unix platforms.
27318         * doc/posix-headers/limits.texi: Update platforms list regarding
27319         HOST_NAME_MAX.
27320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27321
27322 2009-08-07  Jim Meyering  <meyering@redhat.com>
27323
27324         selinux-at: fix typo in a comment
27325         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27326         Spotted by Paolo Bonzini.
27327
27328         selinux-at: remove redundant m4 code, add documentation
27329         * modules/selinux-at (configure.ac): Remove redundant code.
27330         LIB_SELINUX is already set via the dependent module, selinux-h.
27331         (Include): Add quotes around selinux-at.h.
27332         * lib/selinux-at.h: Add documentation.
27333         Reported by Bruno Haible in
27334         http://marc.info/?l=gnulib-bug&m=124958988300749
27335
27336 2009-08-07  Bruno Haible  <bruno@clisp.org>
27337
27338         Avoid link error on MacOS X 10.3 and 10.4.
27339         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27340         on non-ELF systems.
27341         * lib/argp-pv.c (argp_program_version): Likewise.
27342         Reported by Simon Josefsson.
27343
27344 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27345
27346         * tests/test-version-etc.sh: Use $EXEEXT.
27347
27348 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27349
27350         update-copyright: update documentation to point to maint.mk
27351         * build-aux/update-copyright: Here.
27352
27353 2009-08-06  Jim Meyering  <meyering@redhat.com>
27354
27355         maint.mk: support update-copyright-local
27356         * top/maint.mk (update-copyright-local): Define place-holder.
27357         (update-copyright): Depend on $(update-copyright-local).
27358
27359 2009-08-06  Jim Meyering  <meyering@redhat.com>
27360
27361         selinux-at: new module
27362         Initially written for coreutils, this module will soon be
27363         used by findutils, too.
27364         * MODULES.html.sh [Misc]: Add selinux-at.
27365         * lib/selinux-at.h: New file, from coreutils.
27366         * lib/selinux-at.c: Likewise.
27367         * modules/selinux-at: Likewise.
27368         (License): Change from LGPL to GPL, since it depends
27369         on the GPL'd openat module.
27370
27371         doc: update README
27372         * README: Remove references to cogito.
27373         Remove cvs-repo-updating instructions from 2007.
27374         Don't imply that CVS is better if you have limited disk space.
27375
27376 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27377
27378         update-copyright: support C-style comments
27379         * build-aux/update-copyright: Implement and document.
27380         * tests/test-update-copyright.sh: Test.
27381
27382 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27383
27384         update-copyright: support omitted "(C)"
27385         * build-aux/update-copyright: Implement and document.  Also,
27386         allow variable whitespace before "(C)".
27387         * tests/test-update-copyright.sh: Test.
27388
27389 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27390
27391         update-copyright: don't trip on non-FSF copyright statements
27392         * build-aux/update-copyright: Fix so that the first correctly
27393         formatted FSF copyright statement is recognized no matter what
27394         appears before it.  Update documentation.
27395         * tests/test-update-copyright.sh: Test that.
27396
27397 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27398
27399         update-copyright: clean up code a little
27400         * build-aux/update-copyright: Append "_re" to the name of any
27401         variable holding a regular expression.
27402         Replace "old" and "new" with "stmt" in variable names.
27403         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27404         handled correctly.
27405         Format code more consistently.
27406
27407 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27408
27409         update-copyright-tests: improve portability
27410         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27411         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27412
27413 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27414
27415         update-copyright: support @copyright{} and &copy;
27416         * build-aux/update-copyright: Implement and document.
27417         * tests/test-update-copyright.sh: Test.
27418
27419 2009-08-04  Jim Meyering  <meyering@redhat.com>
27420
27421         update-copyright-tests: correctly test EOL=\r\n handling
27422         * tests/test-update-copyright.sh: Put \r at the end of some lines
27423         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27424
27425         maint.mk: make update-copyright exclusion list more configurable
27426         * top/maint.mk (update-copyright): Default to excluding COPYING,
27427         but allow an override, in case someone does want to update that file.
27428
27429         maint.mk: don't update copyright date in COPYING
27430         * top/maint.mk (update-copyright): Exclude COPYING.
27431
27432         maint.mk: add a copyright-updating rule
27433         * top/maint.mk (update-copyright): New rule.
27434         Derived from coreutils/Makefile.am.
27435
27436         update-copyright: rename some variables
27437         * build-aux/update-copyright: Rename a few variables for clarity.
27438         Tweak syntax.  List Joel E. Denny as coauthor.
27439
27440 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27441
27442         update-copyright: fix bug for 2-digit last year and add tests
27443         * build-aux/update-copyright: Fix bug.
27444         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27445         specified.
27446         * modules/update-copyright-tests: New
27447         * tests/test-update-copyright.sh: New.
27448
27449 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27450
27451         update-copyright: handle leading tabs in line prefix
27452         * build-aux/update-copyright: Count leading tabs as 8 spaces
27453         when computing margin.  This helps with the formatting of
27454         ChangeLogs, for example.
27455         Fix documentation a little.
27456
27457 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27458
27459         update-copyright: support EOL=\r\n
27460         * build-aux/update-copyright: Implement that.
27461
27462 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27463
27464         update-copyright: automatically format copyright statements
27465         * build-aux/update-copyright: Implement that.
27466         Also, be a little more predictable and safer by always failing
27467         when the full copyright format is not perfectly recognized as an
27468         unbroken whole.  Discussed at
27469         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27470         Rewrite documentation.
27471
27472 2009-08-03  Bruno Haible  <bruno@clisp.org>
27473
27474         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27475
27476 2009-08-02  Bruno Haible  <bruno@clisp.org>
27477
27478         Tests for module 'uname'.
27479         * modules/uname-tests: New file.
27480         * tests/test-uname.c: New file.
27481
27482         New module 'uname'.
27483         * lib/uname.c: New file.
27484         * m4/uname.m4: New file.
27485         * modules/uname: New file.
27486         * doc/posix-functions/uname.texi: Mention the new module.
27487
27488 2009-08-02  Bruno Haible  <bruno@clisp.org>
27489
27490         Tests for module 'sys_utsname'.
27491         * modules/sys_utsname-tests: New file.
27492         * tests/test-sys_utsname.c: New file.
27493
27494         New module 'sys_utsname'.
27495         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27496         * m4/sys_utsname_h.m4: New file.
27497         * modules/sys_utsname: New file.
27498         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27499
27500 2009-08-02  Bruno Haible  <bruno@clisp.org>
27501
27502         Implicitly initialize the sockets library.
27503         * lib/gethostname.c: Include sockets.h.
27504         (rpl_gethostname): Invoke gl_sockets_startup.
27505         * lib/socket.c: Include sockets.h.
27506         (rpl_socket): Invoke gl_sockets_startup.
27507         * modules/gethostname (Depends-on): Add sockets.
27508         * modules/socket (Depends-on): Likewise.
27509         * tests/test-poll.c: Don't include sockets.h.
27510         (main): Don't invoke gl_sockets_startup.
27511         * tests/test-select.c: Don't include sockets.h.
27512         (main): Don't invoke gl_sockets_startup.
27513
27514 2009-08-02  Bruno Haible  <bruno@clisp.org>
27515
27516         Allow multiple calls to gl_sockets_startup.
27517         * lib/sockets.c (initialized_sockets_version): New variable.
27518         (gl_sockets_startup): Do nothing if already called for this or a higher
27519         version.
27520         (gl_sockets_cleanup): Reset initialized_sockets_version.
27521
27522 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27523
27524         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27525         different project/version.
27526
27527 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27528             Bruno Haible  <bruno@clisp.org>
27529
27530         Tests for module 'pipe-filter-gi'.
27531         * modules/pipe-filter-gi-tests: New file.
27532         * tests/test-pipe-filter-gi1.sh: New file.
27533         * tests/test-pipe-filter-gi1.c: New file.
27534         * tests/test-pipe-filter-gi2.sh: New file.
27535         * tests/test-pipe-filter-gi2-main.c: New file.
27536         * tests/test-pipe-filter-gi2-child.c: New file.
27537
27538         New module 'pipe-filter-gi'.
27539         * lib/pipe-filter-gi.c: New file.
27540         * modules/pipe-filter-gi: New file.
27541
27542 2009-08-02  Bruno Haible  <bruno@clisp.org>
27543             Paolo Bonzini  <bonzini@gnu.org>
27544
27545         Tests for module 'pipe-filter-ii'.
27546         * modules/pipe-filter-ii-tests: New file.
27547         * tests/test-pipe-filter-ii1.sh: New file.
27548         * tests/test-pipe-filter-ii1.c: New file.
27549         * tests/test-pipe-filter-ii2.sh: New file.
27550         * tests/test-pipe-filter-ii2-main.c: New file.
27551         * tests/test-pipe-filter-ii2-child.c: New file.
27552
27553         New module 'pipe-filter-ii'.
27554         * lib/pipe-filter.h: New file.
27555         * lib/pipe-filter-ii.c: New file.
27556         * lib/pipe-filter-aux.h: New file.
27557         * modules/pipe-filter-ii: New file.
27558
27559 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27560
27561         * lib/gc-libgcrypt.c: Change copyright to FSF.
27562         * lib/gc-gnulib.c: Likewise.
27563
27564 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27565
27566         * lib/gethostname.c: Include limits.h.
27567
27568 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27569             Bruno Haible  <bruno@clisp.org>
27570
27571         Ensure HOST_NAME_MAX as part of the gethostname module.
27572         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27573         define also HOST_NAME_MAX.
27574         * tests/test-gethostname.c: Include <limits.h>.
27575         (main): Check also HOST_NAME_MAX.
27576         * doc/posix-headers/limits.texi: Document the mingw problem.
27577
27578 2009-08-02  Bruno Haible  <bruno@clisp.org>
27579
27580         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27581         Add comments.
27582
27583 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27584
27585         * lib/gethostname.c: Add Windows wrapper.
27586         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27587         * modules/gethostname: Depend on sys_socket & errno, for also
27588         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27589         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27590
27591 2009-07-31  Jim Meyering  <meyering@redhat.com>
27592
27593         getloadavg: fix symbol name in comment
27594         * lib/getloadavg.c: Correct a typo I introduced when adding
27595         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27596         Matt Kraai spotted the problem.
27597
27598 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27599
27600         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27601         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27602         code also if ! defined N_NAME_POINTER.
27603         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27604         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27605         but the n_name member is a 12-byte array.
27606
27607 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27608
27609         update-copyright: generalize comment handling
27610         * build-aux/update-copyright: Handle copyright statements
27611         within more comment styles.
27612         Document usage.
27613         Report any file with an external copyright holder or parse failure.
27614
27615 2009-07-29  Jim Meyering  <meyering@redhat.com>
27616
27617         mktime: correct setting of REPLACE_MKTIME
27618         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27619
27620         update-copyright: new module
27621         * modules/update-copyright: New file.
27622         * build-aux/update-copyright: New file.
27623         * MODULES.html.sh (maint+release support): Add update-copyright.
27624
27625 2009-07-27  Bruno Haible  <bruno@clisp.org>
27626
27627         Fix compilation error when <ctime> is used and mktime is replaced.
27628         * lib/time.in.h (mktime): New declaration.
27629         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27630         REPLACE_MKTIME instead of defining mktime in config.h.
27631         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27632         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27633         Reported by Ross McFarland <rwmcfa1@neces.com>.
27634
27635 2009-07-27  Bruno Haible  <bruno@clisp.org>
27636
27637         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27638         Reported by Matt Kraai <mkraai@beckman.com>.
27639
27640 2009-07-25  Jim Meyering  <meyering@redhat.com>
27641
27642         maint.mk: avoid warnings about missing files
27643         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27644         diagnostic when .prev-version does not exist.
27645         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27646         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27647         nonexistent cfg.mk.
27648         Suggestions from Simon Josefsson.
27649
27650 2009-07-25  Bruno Haible  <bruno@clisp.org>
27651
27652         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27653         defined as macros. Needed on QNX 6.4.1.
27654         Reported by Matt Kraai <mkraai@beckman.com>.
27655
27656 2009-07-23  Jim Meyering  <meyering@redhat.com>
27657
27658         maint.mk: invoke "make dist" with a working value of XZ_OPT
27659         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27660
27661 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27662
27663         Make fseeko.c compile on QNX.
27664         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27665
27666 2009-07-22  Peter Simons  <simons@cryp.to>
27667
27668         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27669         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27670         * lib/md4.h: Likewise.
27671         * lib/md5.h: Likewise.
27672         * lib/sha1.h: Likewise.
27673         * lib/sha256.h: Likewise.
27674         * lib/sha512.h: Likewise.
27675
27676         tests-sha1: don't assign literal string to 'char *' variable
27677         * tests/test-sha1.c (main): Declare locals with "const" to match
27678         attributes of the right hand side.
27679
27680 2009-07-21  Eric Blake  <ebb9@byu.net>
27681
27682         dup2: fix more mingw problems
27683         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27684         fd to itself.
27685         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27686         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27687         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27688         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27689         care of mingw bugs.
27690
27691 2009-07-21  Jim Meyering  <meyering@redhat.com>
27692
27693         vc-list-files: avoid failure when /bin/sh is dash
27694         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27695         On some Debian based systems, /bin/sh is a symlink to dash, and running
27696         this command would omit the "/" following each 'tests' prefix:
27697           dash -x build-aux/vc-list-files -C . tests
27698         That is because bash and dash work differently:
27699           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27700           bash ok
27701           dash odd
27702
27703 2009-07-21  Eric Blake  <ebb9@byu.net>
27704
27705         dup2-tests: test previous patch
27706         * modules/dup2-tests: New file.
27707         * tests/test-dup2.c: Likewise.
27708         * tests/test-open.c (main): Avoid unspecified behavior.
27709         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27710         test.
27711
27712         dup2: work around mingw and cygwin 1.5 bug
27713         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27715         * modules/unistd (Makefile.am): Substitute it.
27716         * lib/unistd.in.h (dup2): Declare the replacement.
27717         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27718         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27719         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27720         * modules/execute (Depends-on): Add dup2.
27721         * modules/fseterr (Depends-on): Likewise.
27722         * modules/pipe (Depends-on): Likewise.
27723         * modules/posix_spawn-internal (Depends-on): Likewise.
27724
27725 2009-07-21  Bruno Haible  <bruno@clisp.org>
27726
27727         * modules/.gitattributes: New file.
27728
27729 2009-07-20  Bruno Haible  <bruno@clisp.org>
27730
27731         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27732         (main): Use it.
27733
27734 2009-07-20  Eric Blake  <ebb9@byu.net>
27735
27736         test-pipe: make a bit more robust.
27737         * tests/test-pipe.c (myerr): Allow error messages regardless of
27738         what we do to stderr.
27739         (test_pipe): Rearrange to avoid deadlock.
27740         (child_main): Try a larger read, to ensure we avoided deadlock.
27741         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27742         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27743         if misused.
27744
27745 2009-07-19  Jim Meyering  <meyering@redhat.com>
27746
27747         fts: avoid false-positive cycle-detection
27748         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27749         for each new command line argument.
27750
27751 2009-07-19  Bruno Haible  <bruno@clisp.org>
27752
27753         Fix build error on mingw with the modules sys_select and unistd.
27754         * modules/acl-tests (Depends-on): Add close.
27755         * modules/binary-io-tests (Depends-on): Likewise.
27756         * modules/closein-tests (Depends-on): Likewise.
27757         * modules/flock-tests (Depends-on): Likewise.
27758         * modules/fsync-tests (Depends-on): Likewise.
27759         * modules/lseek-tests (Depends-on): Likewise.
27760         * modules/pipe-tests (Depends-on): Likewise.
27761         * modules/posix_spawn-tests (Depends-on): Likewise.
27762         * modules/posix_spawnp-tests (Depends-on): Likewise.
27763         * modules/stat-time-tests (Depends-on): Likewise.
27764         * modules/yesno-tests (Depends-on): Likewise.
27765
27766 2009-07-19  Bruno Haible  <bruno@clisp.org>
27767
27768         Unify conditionals.
27769         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27770         macros, not at the compiler macros.
27771         * lib/pipe.c: Likewise.
27772         * lib/execute.c: Likewise.
27773         * lib/spawni.c: Likewise.
27774
27775 2009-07-19  Bruno Haible  <bruno@clisp.org>
27776
27777         Fix handling of closed stdin/stdout/stderr on mingw.
27778         * lib/w32spawn.h: Include unistd.h.
27779         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27780         file descriptor with O_NOINHERIT flag.
27781         (fd_safer_noinherit): New function, based on fd-safer.c.
27782         (dup_safer_noinherit): New function, based on dup-safer.c.
27783         (undup_safer_noinherit): New function.
27784         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27785         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27786         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27787         instead of fd_safer.
27788         * tests/test-pipe.c: Include <windows.h>.
27789         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27790         result.
27791
27792         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27793         from main.
27794         (test_pipe): Pass an extra argument for disambiguation.
27795         (main): Invoke parent_main or child_main.
27796
27797         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27798         consistently.
27799
27800 2009-07-18  Eric Blake  <ebb9@byu.net>
27801
27802         test-pipe: fix mingw build
27803         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27804
27805 2009-07-18  Bruno Haible  <bruno@clisp.org>
27806
27807         * modules/pipe-tests (Makefile.am): Fix typo.
27808
27809 2009-07-18  Eric Blake  <ebb9@byu.net>
27810
27811         error: fix mingw build
27812         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27813         Reported by Bruno Haible.
27814
27815         error: avoid undefined use of stdout
27816         * lib/error.c (error, error_at_line): Check that fd 1 is open
27817         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27818         is handling faults and the close_stdout module wants to report the
27819         detection of closed stdout as an error.
27820
27821 2009-07-17  Eric Blake  <ebb9@byu.net>
27822
27823         pipe: be robust in face of closed fds
27824         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27825         should cause child to misbehave.
27826         * modules/pipe-tests: New module.
27827         * tests/test-pipe.c: New file.
27828         * tests/test-pipe.sh: New file.
27829         Reported by Akim Demaille.
27830
27831 2009-07-14  Bruno Haible  <bruno@clisp.org>
27832
27833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27834         Reported by anonymous kc.
27835
27836 2009-07-07  Jim Meyering  <meyering@redhat.com>
27837
27838         maint.mk: don't look for translatable strings in *.m4 or *.mk
27839         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27840         when searching for translatable strings.
27841
27842 2009-07-05  Jim Meyering  <meyering@redhat.com>
27843
27844         remove superfluous parentheses in STREQ definition
27845         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27846         * lib/getugroups.c (STREQ): Likewise.
27847         * lib/fnmatch.c (STREQ): Likewise.
27848         Spotted by Bruno Haible.
27849
27850 2009-07-04  Jim Meyering  <meyering@redhat.com>
27851
27852         argv-iter: new module
27853         * MODULES.html.sh: Add argv-iter.
27854         * lib/argv-iter.c, lib/argv-iter.h: New files.
27855         * modules/argv-iter: New file.
27856         * modules/argv-iter-tests: New file.
27857         * tests/test-argv-iter.c: Test it.
27858
27859 2009-07-04  Bruno Haible  <bruno@clisp.org>
27860
27861         Fix assertion.
27862         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27863         contains more exact copies of a given entry than file2, leave the extra
27864         copies unpaired rather than aborting.
27865         Reported by Eric Blake.
27866
27867 2009-07-02  Bruno Haible  <bruno@clisp.org>
27868
27869         Speedup git-merge-changelog for git cherry-pick.
27870         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27871         (entries_mapping_get): New function, extracted from compute_mapping.
27872         (entries_mapping_reverse_get): New function.
27873         (compute_mapping): Add a 'full' argument. Return the result in a
27874         'struct entries_mapping'.
27875         (main): Update. Access the mappings through entries_mapping_get.
27876         Reported by Eric Blake.
27877
27878 2009-07-02  Bruno Haible  <bruno@clisp.org>
27879
27880         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27881         best_i.
27882
27883 2009-07-02  Bruno Haible  <bruno@clisp.org>
27884
27885         Speed up approximate search for matching ChangeLog entries.
27886         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27887         argument. Call fstrcmp_bounded instead of fstrcmp.
27888         (compute_mapping, try_split_merged_entry, main): Update callers.
27889
27890 2009-07-02  Bruno Haible  <bruno@clisp.org>
27891
27892         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27893
27894 2009-06-30  Bruno Haible  <bruno@clisp.org>
27895
27896         Reduce the number of uc_is_cased calls.
27897         * lib/unicase.h (casing_suffix_context_t): Add
27898         'first_char_except_ignorable' field.
27899         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27900         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27901         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27902         Update initializer.
27903         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27904         case-ignorable characters.
27905         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27906         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27907         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27908         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27909         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27910
27911 2009-06-30  Bruno Haible  <bruno@clisp.org>
27912
27913         Tests for module 'unicase/ignorable'.
27914         * modules/unicase/ignorable-tests: New file.
27915         * tests/unicase/test-ignorable.c: New file, generated by
27916         gen-uni-tables.
27917
27918         Tests for module 'unicase/cased'.
27919         * modules/unicase/cased-tests: New file.
27920         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27921         * tests/unicase/test-predicate-part1.h: New file, derived from
27922         tests/unictype/test-predicate-part1.h.
27923         * tests/unicase/test-predicate-part2.h: New file, same as
27924         tests/unictype/test-predicate-part2.h.
27925
27926         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27927         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27928         (output_casing_properties): New function.
27929         (main): Call it.
27930         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27931         * lib/unicase/cased.c: Include unictype/bitmap.h.
27932         (uc_is_cased): Define through a bitmap lookup.
27933         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27934         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27935         (uc_is_case_ignorable): Define through a bitmap lookup.
27936         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27937         lib/unictype/bitmap.h.
27938         (Depends-on): Add inline. Clean up.
27939         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27940         lib/unictype/bitmap.h.
27941         (Depends-on): Add inline. Clean up.
27942         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27943         recognition.
27944         * tests/unicase/test-u16-tolower.c (main): Likewise.
27945         * tests/unicase/test-u32-tolower.c (main): Likewise.
27946
27947 2009-06-30  Bruno Haible  <bruno@clisp.org>
27948
27949         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27950         * lib/unicase/u16-casemap.c: Likewise.
27951         * lib/unicase/u32-casemap.c: Likewise.
27952
27953 2009-06-29  Bruno Haible  <bruno@clisp.org>
27954
27955         Define u32_casefold as a wrapper around u32_ct_casefold.
27956         * lib/unicase/u32-casefold.c: Update.
27957         * modules/unicase/u32-casefold (Depends-on): Add
27958         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27959         unicase/empty-suffix-context. Clean up.
27960
27961         Define u16_casefold as a wrapper around u16_ct_casefold.
27962         * lib/unicase/u16-casefold.c: Update.
27963         * modules/unicase/u16-casefold (Depends-on): Add
27964         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27965         unicase/empty-suffix-context. Clean up.
27966
27967         Define u8_casefold as a wrapper around u8_ct_casefold.
27968         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27969         * lib/unicase/u8-casefold.c: Update.
27970         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27971         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27972
27973         Define u32_totitle as a wrapper around u32_ct_totitle.
27974         * lib/unicase/u32-totitle.c: Update.
27975         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27976         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27977
27978         Define u16_totitle as a wrapper around u16_ct_totitle.
27979         * lib/unicase/u16-totitle.c: Update.
27980         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27981         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27982
27983         Define u8_totitle as a wrapper around u8_ct_totitle.
27984         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27985         functions.
27986         (FUNC): Delegate to U_CT_TOTITLE.
27987         * lib/unicase/u8-totitle.c: Update.
27988         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27989         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27990
27991         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27992         invocation.
27993         * modules/unicase/u32-tolower (Depends-on): Add
27994         unicase/empty-prefix-context, unicase/empty-suffix-context.
27995
27996         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27997         invocation.
27998         * modules/unicase/u16-tolower (Depends-on): Add
27999         unicase/empty-prefix-context, unicase/empty-suffix-context.
28000
28001         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28002         * modules/unicase/u8-tolower (Depends-on): Add
28003         unicase/empty-prefix-context, unicase/empty-suffix-context.
28004
28005         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28006         invocation.
28007         * modules/unicase/u32-toupper (Depends-on): Add
28008         unicase/empty-prefix-context, unicase/empty-suffix-context.
28009
28010         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28011         invocation.
28012         * modules/unicase/u16-toupper (Depends-on): Add
28013         unicase/empty-prefix-context, unicase/empty-suffix-context.
28014
28015         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28016         * modules/unicase/u8-toupper (Depends-on): Add
28017         unicase/empty-prefix-context, unicase/empty-suffix-context.
28018
28019         New module 'unicase/u32-ct-casefold'.
28020         * lib/unicase/u32-ct-casefold.c: New file.
28021         * modules/unicase/u32-ct-casefold: New file.
28022
28023         New module 'unicase/u16-ct-casefold'.
28024         * lib/unicase/u16-ct-casefold.c: New file.
28025         * modules/unicase/u16-ct-casefold: New file.
28026
28027         New module 'unicase/u8-ct-casefold'.
28028         * lib/unicase/u8-ct-casefold.c: New file.
28029         * lib/unicase/u-ct-casefold.h: New file, derived from
28030         lib/unicase/u-casefold.h.
28031         * modules/unicase/u8-ct-casefold: New file.
28032
28033         New module 'unicase/u32-ct-totitle'.
28034         * lib/unicase/u32-ct-totitle.c: New file.
28035         * modules/unicase/u32-ct-totitle: New file.
28036
28037         New module 'unicase/u16-ct-totitle'.
28038         * lib/unicase/u16-ct-totitle.c: New file.
28039         * modules/unicase/u16-ct-totitle: New file.
28040
28041         New module 'unicase/u8-ct-totitle'.
28042         * lib/unicase/u8-ct-totitle.c: New file.
28043         * lib/unicase/u-ct-totitle.h: New file, derived from
28044         lib/unicase/u-totitle.h.
28045         * modules/unicase/u8-ct-totitle: New file.
28046
28047         New module 'unicase/u32-ct-tolower'.
28048         * lib/unicase/u32-ct-tolower.c: New file.
28049         * modules/unicase/u32-ct-tolower: New file.
28050
28051         New module 'unicase/u16-ct-tolower'.
28052         * lib/unicase/u16-ct-tolower.c: New file.
28053         * modules/unicase/u16-ct-tolower: New file.
28054
28055         New module 'unicase/u8-ct-tolower'.
28056         * lib/unicase/u8-ct-tolower.c: New file.
28057         * modules/unicase/u8-ct-tolower: New file.
28058
28059         New module 'unicase/u32-ct-toupper'.
28060         * lib/unicase/u32-ct-toupper.c: New file.
28061         * modules/unicase/u32-ct-toupper: New file.
28062
28063         New module 'unicase/u16-ct-toupper'.
28064         * lib/unicase/u16-ct-toupper.c: New file.
28065         * modules/unicase/u16-ct-toupper: New file.
28066
28067         New module 'unicase/u8-ct-toupper'.
28068         * lib/unicase/u8-ct-toupper.c: New file.
28069         * modules/unicase/u8-ct-toupper: New file.
28070
28071         Add context arguments to u*_casemap functions.
28072         * lib/unicase/unicasemap.h: Include unicase.h.
28073         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28074         suffix_context arguments.
28075         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28076         functions.
28077         (FUNC): Add prefix_context and suffix_context arguments. Use
28078         uc_is_cased and uc_is_case_ignorable.
28079         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28080         * lib/unicase/u16-casemap.c: Likewise.
28081         * lib/unicase/u32-casemap.c: Likewise.
28082         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28083         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28084         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28085         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28086         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28087         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28088
28089         New module 'unicase/u32-suffix-context'.
28090         * lib/unicase/u32-suffix-context.c: New file.
28091         * modules/unicase/u32-suffix-context: New file.
28092
28093         New module 'unicase/u16-suffix-context'.
28094         * lib/unicase/u16-suffix-context.c: New file.
28095         * modules/unicase/u16-suffix-context: New file.
28096
28097         New module 'unicase/u8-suffix-context'.
28098         * lib/unicase/u8-suffix-context.c: New file.
28099         * lib/unicase/u-suffix-context.h: New file.
28100         * modules/unicase/u8-suffix-context: New file.
28101
28102         New module 'unicase/empty-suffix-context'.
28103         * lib/unicase/empty-suffix-context.c: New file.
28104         * modules/unicase/empty-suffix-context: New file.
28105
28106         New module 'unicase/u32-prefix-context'.
28107         * lib/unicase/u32-prefix-context.c: New file.
28108         * modules/unicase/u32-prefix-context: New file.
28109
28110         New module 'unicase/u16-prefix-context'.
28111         * lib/unicase/u16-prefix-context.c: New file.
28112         * modules/unicase/u16-prefix-context: New file.
28113
28114         New module 'unicase/u8-prefix-context'.
28115         * lib/unicase/u8-prefix-context.c: New file.
28116         * lib/unicase/u-prefix-context.h: New file.
28117         * lib/unicase/context.h: New file.
28118         * modules/unicase/u8-prefix-context: New file.
28119
28120         New module 'unicase/empty-prefix-context'.
28121         * lib/unicase/empty-prefix-context.c: New file.
28122         * modules/unicase/empty-prefix-context: New file.
28123
28124         New module 'unicase/ignorable'.
28125         * lib/unicase/ignorable.c: New file.
28126         * modules/unicase/ignorable: New file.
28127
28128         New module 'unicase/cased'.
28129         * lib/unicase/caseprop.h: New file.
28130         * lib/unicase/cased.c: New file.
28131         * modules/unicase/cased: New file.
28132
28133         New functions for case mapping of substrings.
28134         * lib/unicase.h (casing_prefix_context_t): New type.
28135         (unicase_empty_prefix_context): New variable.
28136         (u8_casing_prefix_context, u16_casing_prefix_context,
28137         u32_casing_prefix_context, u8_casing_prefixes_context,
28138         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28139         declarations.
28140         (casing_suffix_context_t): New type.
28141         (unicase_empty_suffix_context): New variable.
28142         (u8_casing_suffix_context, u16_casing_suffix_context,
28143         u32_casing_suffix_context, u8_casing_suffixes_context,
28144         u16_casing_suffixes_context, u32_casing_suffixes_context,
28145         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28146         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28147         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28148         declarations.
28149
28150 2009-06-28  Jim Meyering  <meyering@redhat.com>
28151
28152         boostrap: indent only with spaces
28153         * build-aux/bootstrap: Indent only with spaces, never TABs.
28154
28155         bootstrap: split long lines
28156         * build-aux/bootstrap: Keep line length < 80.
28157
28158         bootstrap: sync from coreutils
28159         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28160         just as autoreconf does.  Verify a list of prerequisite
28161         package-name,version-number pairs if defined in bootstrap.conf.
28162         Refer to README-prereq, if prerequisites are not satisfied.
28163
28164 2009-06-27  Eric Blake  <ebb9@byu.net>
28165
28166         tests: add test for bogus NULL definition
28167         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28168         * tests/test-stdlib.c: Likewise.
28169         * tests/test-string.c: Likewise.
28170         * tests/test-locale.c: Likewise.
28171         * tests/test-unistd.c: Likewise.
28172         * modules/stdio-tests (Depends-on): Add verify.
28173         * modules/stdlib-tests (Depends-on): Likewise.
28174         * modules/string-tests (Depends-on): Likewise.
28175         * modules/locale-tests (Depends-on): Likewise.
28176         * modules/unistd-tests (Depends-on): Likewise.
28177
28178 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28179
28180         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28181         self-explaining comment.
28182         * m4/selinux-selinux-h: Update serial.
28183         (gl_LIBSELINUX): New macro, adding a warning for missing development
28184         packages to code extracted from...
28185         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28186         Add warning for missing development packages here, too.
28187
28188 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28189
28190         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28191
28192 2009-06-25  Eric Blake  <ebb9@byu.net>
28193
28194         version-etc: fix regression
28195         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28196         gcc.
28197         (version_etc): Use it, to catch bugs with trailing NULL.
28198         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28199         (version_etc_va): Fix logic bug.
28200         * modules/version-etc-tests: Add test.
28201         * tests/test-version-etc.c: New file.
28202         * tests/test-version-etc.sh: Likewise.
28203
28204 2009-06-25  Sam Steingold  <sds@gnu.org>
28205
28206         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28207         mbtowc declaration.
28208
28209 2009-06-25  Eric Blake  <ebb9@byu.net>
28210
28211         fpurge: migrate into <stdio.h>
28212         * lib/fpurge.h: Delete...
28213         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28214         * lib/fpurge.c (fpurge): Change declaring header.
28215         * modules/fpurge (Files): Drop deleted file.
28216         (Depends-on): Add stdio.
28217         (configure.ac): Set witness.
28218         * modules/stdio (Makefile.am): Support fpurge macros.
28219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28220         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28221         * lib/fflush.c: Update client.
28222         * tests/test-fpurge.c: Likewise.
28223         * NEWS: Mention the change.
28224
28225 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28226
28227         * lib/argp-version-etc.c (program_authors): Add const
28228         qualifier.
28229         * lib/version-etc.c: Fix typos in the comments.
28230         * modules/argp-version-etc: Depends on version-etc.
28231
28232 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28233
28234         argp-version-etc: new module.
28235
28236         * lib/argp-version-etc.c: New file.
28237         * lib/argp-version-etc.h: New file.
28238         * modules/argp-version-etc: New file.
28239         * modules/argp-version-etc-tests: New file.
28240         * tests/test-argp-version-etc.c: New test.
28241         * tests/test-argp-version-etc-1.sh: New test.
28242
28243 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28244
28245         Provide additional interfaces and documentation for version-etc
28246         module.
28247
28248         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28249         interfaces.
28250         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28251         prototypes.
28252
28253 2009-06-24  Bruno Haible  <bruno@clisp.org>
28254
28255         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28256         HAVE_LIB${NAME} macro.
28257         Reported by Sam Steingold <sds@gnu.org>.
28258
28259 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28260
28261         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28262         needed.
28263
28264 2009-06-21  Bruno Haible  <bruno@clisp.org>
28265
28266         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28267         work.
28268         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28269         together with LIB${NAME}, LTLIB${NAME}.
28270         Reported by Sam Steingold <sds@gnu.org>.
28271
28272 2009-06-20  Jim Meyering  <meyering@redhat.com>
28273
28274         tests: make sc_require_test_exit_idiom more generic
28275         * top/maint.mk (Exit_witness_file): New overridable variable.
28276         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28277         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28278
28279 2009-06-19  Jim Meyering  <meyering@redhat.com>
28280
28281         hash: reverse order of src/dst parameters in an internal interface
28282         * lib/hash.c (transfer_entries): Reverse order of parameters to
28283         put DST before SRC.  Adjust callers.
28284
28285         tests: test-hash: avoid wholesale duplication
28286         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28287         Instead, use a loop and add a single conditional.
28288
28289         tests: test-hash: allow seed selection via a command line argument
28290         * tests/test-hash.c (get_seed): New function.
28291         (main): Use it.
28292
28293 2009-06-19  Eric Blake  <ebb9@byu.net>
28294
28295         hash: avoid memory leak on allocation failure
28296         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28297         failure.  Factor repeated algorithm...
28298         (transfer_entries): ...into new helper routine.
28299         (hash_delete): React to hash_rehash return value.
28300
28301         hash: reduce memory pressure in hash_rehash no-op case
28302         * lib/hash.c (next_prime): Avoid overflow.
28303         (hash_initialize): Factor bucket size computation...
28304         (compute_bucket_size): ...into new helper function.
28305         (hash_rehash): Use new function and open coding to reduce memory
28306         pressure, and avoid a memory leak in USE_OBSTACK code.
28307         Reported by Jim Meyering.
28308
28309 2009-06-18  Eric Blake  <ebb9@byu.net>
28310
28311         hash: make rotation more obvious
28312         * modules/hash (Depends-on): Add bitrotate and stdint.
28313         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28314         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28315         (SIZE_MAX): Rely on headers for definition.
28316         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28317         (raw_hasher): Use rotr_sz.
28318         Suggested by Jim Meyering.
28319
28320         hash: fix memory leak in last patch
28321         * lib/hash.c (hash_rehash): Avoid memory leak.
28322
28323         hash: avoid no-op rehashing
28324         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28325
28326         hash: provide default callback functions
28327         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28328         (hash_initialize): Use them as defaults.
28329         * tests/test-hash.c (main): Test this.
28330
28331         hash: minor optimization
28332         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28333         when possible.
28334         (hash_initialize): Document this promise.
28335         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28336         * tests/test-hash.c (hash_compare_strings): Test this.
28337
28338 2009-06-18  Bruno Haible  <bruno@clisp.org>
28339
28340         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28341         going to be replaced anyway.
28342
28343 2009-06-18  Bruno Haible  <bruno@clisp.org>
28344
28345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28346         in one place.
28347         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28348         be replaced anyway.
28349
28350 2009-06-18  Eric Blake  <ebb9@byu.net>
28351
28352         hash: check for resize before insertion
28353         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28354         threshold before insertion, so that a pathological hash_rehash
28355         that fills every bucket can still trigger another rehash.
28356
28357 2009-06-18  Jim Meyering  <meyering@redhat.com>
28358
28359         hash-tests: add a loop around the small tests
28360         * tests/test-hash.c (main): Repeat small tests with selected
28361         small initial table sizes.
28362
28363 2009-06-17  Eric Blake  <ebb9@byu.net>
28364
28365         hash: minor cleanups
28366         * lib/hash.h (hash_entry): Make opaque, by moving...
28367         * lib/hash.c (hash_entry): ...here.
28368         (hash_insert): Clarify restrictions on what can be inserted.
28369         (hash_get_next): Clarify when it is safe to remove an element
28370         during traversal.
28371         (check_tuning): Skip verification when tuning is known safe.
28372         (hash_initialize): Clarify restrictions on tuning.
28373
28374 2009-06-17  Jim Meyering  <jim@meyering.net>
28375         and Eric Blake  <ebb9@byu.net>
28376
28377         hash-tests: new module
28378         * modules/hash-tests: New file.
28379         * tests/test-hash.c: New file.
28380
28381 2009-06-17  Eric Blake  <ebb9@byu.net>
28382
28383         strstr-simple: document new module
28384         * MODULES.html.sh: Document new module.
28385
28386         strstr, strcasestr: replace on platforms with broken memchr
28387         * modules/strstr: Split into...
28388         * modules/strstr-simple: ...new module that does not care about
28389         performance, but does care about glibc bug.
28390         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28391         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28392         if platform memchr is broken, per Debian bug 521737.
28393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28394         memchr.
28395         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28396         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28397         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28398         * modules/mountlist (Depends-on): Add strstr-simple.
28399         * modules/gen-uni-tables (Depends-on): Likewise.
28400         * modules/argz (Depends-on): Add strstr.
28401
28402 2009-06-17  Bruno Haible  <bruno@clisp.org>
28403
28404         * modules/posix_spawn-internal (Depends-on): Add errno.
28405
28406 2009-06-17  Bruno Haible  <bruno@clisp.org>
28407
28408         Define missing ESTALE on Interix 3.5.
28409         * lib/errno.in.h (ESTALE): Assign a value if missing.
28410         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28412         missing.
28413         * doc/posix-headers/errno.texi: Mention the Interix bug.
28414         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28415
28416 2009-06-15  Eric Blake  <ebb9@byu.net>
28417
28418         memchr, memchr2: add valgrind exception
28419         * lib/memchr.valgrind: New file.
28420         * lib/memchr2.valgrind: New file.
28421         * modules/memchr (Files): Distribute valgrind file.
28422         * modules/memchr2 (Files): Likewise.
28423
28424         docs: memchr is no longer obsolete
28425         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28426         * lib/string.in.h (memchr): Simplify logic.
28427
28428 2009-06-14  Jim Meyering  <meyering@redhat.com>
28429
28430         link-follow: fix the "checking..." message to not mention trailing slash
28431         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28432         never considered trailing slashes.
28433
28434 2009-06-14  Bruno Haible  <bruno@clisp.org>
28435
28436         * m4/memchr.m4: Mention also the bug on IA-64.
28437         * doc/posix-functions/memchr.texi: Likewise.
28438
28439 2009-06-12  Eric Blake  <ebb9@byu.net>
28440
28441         memchr: detect broken x86_64 and alpha implementations
28442         * modules/memchr-tests (Depends-on): Move mmap detection...
28443         * modules/memchr (Depends-on): ...here.
28444         (configure.ac): Set indicator.
28445         * lib/string.in.h (memchr): Declare replacement.
28446         * modules/string (Makefile.am): Trigger replacement.
28447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28448         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28449         bugs.
28450         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28451         * modules/getpagesize (License): Relax license.
28452
28453 2009-06-11  Bruno Haible  <bruno@clisp.org>
28454
28455         * lib/idpriv.h: Add more references.
28456
28457 2009-06-08  Bruno Haible  <bruno@clisp.org>
28458
28459         Tests for module 'idpriv-droptemp'.
28460         * modules/idpriv-droptemp-tests: New file.
28461         * tests/test-idpriv-droptemp.sh: New file.
28462         * tests/test-idpriv-droptemp.su.sh: New file.
28463         * tests/test-idpriv-droptemp.c: New file.
28464
28465         New module 'idpriv-droptemp'.
28466         * lib/idpriv-droptemp.c: New file.
28467         * modules/idpriv-droptemp: New file.
28468
28469 2009-06-08  Bruno Haible  <bruno@clisp.org>
28470
28471         Tests for module 'idpriv-drop'.
28472         * modules/idpriv-drop-tests: New file.
28473         * tests/test-idpriv-drop.sh: New file.
28474         * tests/test-idpriv-drop.su.sh: New file.
28475         * tests/test-idpriv-drop.c: New file.
28476
28477         New module 'idpriv-drop'.
28478         * lib/idpriv.h: New file.
28479         * lib-idpriv-drop.c: New file.
28480         * m4/idpriv.m4: New file.
28481         * modules/idpriv-drop: New file.
28482
28483 2009-06-08  Bruno Haible  <bruno@clisp.org>
28484
28485         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28492
28493 2009-06-08  Eric Blake  <ebb9@byu.net>
28494
28495         test-strstr: use memory fence, when possible
28496         * tests/test-strstr.c (main): Use memory fence, in order to be
28497         more likely to trigger Debian bug 521737.
28498         * modules/strstr-tests (Files): Pull in additional files.
28499
28500         memchr: no longer obsolete, for wider field testing
28501         * modules/memchr (Status, Notice): Delete, this module is no
28502         longer obsolete.
28503         * modules/vasnprintf (Depends-on): Add memchr.
28504
28505 2009-06-07  Jim Meyering  <meyering@redhat.com>
28506
28507         hash: declare some functions with the warn_unused_result attribute
28508         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28509
28510 2009-06-07  Bruno Haible  <bruno@clisp.org>
28511
28512         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28513         Reported by Eric Blake.
28514
28515 2009-06-06  Eric Blake  <ebb9@byu.net>
28516
28517         test-alignof: fix typo with long double
28518         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28519         compiler error.
28520
28521 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28522
28523         Escape non-texinfo { and }s.
28524         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28525         markup error.
28526
28527 2009-06-04  Jim Meyering  <meyering@redhat.com>
28528
28529         gitlog-to-changelog: don't infloop on an empty commit log
28530         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28531         Reported by Boris Petersen <transacid@centerim.org>.
28532
28533 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28534
28535         version-etc: extend for packagers
28536         Add three new configure options, intended for packagers:
28537           --with-packager="packager name"
28538           --with-packager-version="packager-specific version"
28539           --with-packager-bug-reports="packager bug reporting"
28540         An example with coreutils:
28541           $ ./configure \
28542             --with-packager=Gentoo \
28543             --with-packager-bug-report=http://bugs.gentoo.org/ \
28544             --with-packager-version="patchset 1.6"
28545           $ ./src/ls --version | head -n2
28546           ls (GNU coreutils) 7.1-dirty
28547           Packaged by Gentoo (patchset 1.6)
28548         Note that the bug reporting info via --help doesn't show up because
28549         coreutils uses its own custom emit_bug_reporting_address() implementation
28550         in src/system.h.  If it didn't, it'd look like:
28551           $ ./src/ls --help | tail -n4
28552           Report bugs to <bug-coreutils@gnu.org>.
28553           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28554           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28555           General help using GNU software: <http://www.gnu.org/gethelp/>.
28556         * lib/version-etc.c: Print new information, if provided.
28557         * m4/version-etc.m4: New file.
28558         * modules/version-etc (Files): Add m4/version-etc.m4.
28559         (configure.ac): Add gl_VERSION_ETC.
28560
28561 2009-05-31  Bruno Haible  <bruno@clisp.org>
28562
28563         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28564         and 'int64_t'.
28565         * modules/alignof-tests (Dependencies): Add stdint.
28566         Reported by Eric Blake.
28567
28568 2009-05-31  Bruno Haible  <bruno@clisp.org>
28569
28570         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28571         restriction due to compiler bugs.
28572         Reported by Eric Blake.
28573
28574 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28575             Bruno Haible  <bruno@clisp.org>
28576
28577         Fix test-alignof failure.
28578         * lib/alignof.h (alignof_slot): New macro.
28579         (alignof_type): New macro, with the same semantics as the previous
28580         'alignof'.
28581         (alignof): Alias to alignof_slot.
28582         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28583         check that the results are usable as constant expressions.
28584
28585 2009-05-31  Bruno Haible  <bruno@clisp.org>
28586
28587         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28588         * tests/test-memchr.c (main): Check that memchr does not read past the
28589         first occurrence of the byte.
28590         * tests/test-strstr.c (main): Update comment.
28591         Suggested by Eric Blake.
28592
28593 2009-05-30  Bruno Haible  <bruno@clisp.org>
28594
28595         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28596         detail how to use dumpbin.
28597         Reported by David Byron <dbyron@dbyron.com>.
28598
28599 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28600
28601         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28602
28603 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28604
28605         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28606
28607 2009-05-28  Bruno Haible  <bruno@clisp.org>
28608
28609         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28610         build-aux/ files.
28611
28612 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28613
28614         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28615
28616 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28617
28618         * gnulib-tool (sed_transform_main_lib_file)
28619         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28620         regexps.
28621
28622 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28623
28624         * tests/test-strstr.c: Add another self-test.
28625         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28626         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28627
28628 2009-05-23  Bruno Haible  <bruno@clisp.org>
28629
28630         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28631         change.
28632
28633 2009-05-21  Bruno Haible  <bruno@clisp.org>
28634
28635         Simplify use of mode_t varargs.
28636         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28637         uses 'mode_t' or 'int'.
28638         * lib/openat.c (openat): Likewise.
28639         * lib/open-safer.c (open_safer): Likewise.
28640         * m4/mode_t.m4: New file.
28641         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28642         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28644         * modules/open (Files): Add m4/mode_t.m4.
28645         * modules/openat (Files): Likewise.
28646         * modules/fcntl-safer (Files): Likewise.
28647         Suggested by Eric Blake.
28648
28649 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28650
28651         * doc/glibc-functions/fallocate.texi: New file.
28652         * doc/gnulib.texi: Include it.
28653
28654 2009-05-21  Eric Blake  <ebb9@byu.net>
28655             Bruno Haible  <bruno@clisp.org>
28656
28657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28658         invocations.
28659         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28660
28661 2009-05-21  Eric Blake  <ebb9@byu.net>
28662             Bruno Haible  <bruno@clisp.org>
28663
28664         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28665         include_next. Fix of 2008-11-20 commit.
28666         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28667         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28668         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28669         NEXT_MATH_H.
28670         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28671         instead of NEXT_MATH_H.
28672
28673 2009-05-21  Bruno Haible  <bruno@clisp.org>
28674
28675         Avoid redefinition warnings for SIZE_MAX.
28676         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28677         Reported by Simon Josefsson.
28678
28679 2009-05-21  Bruno Haible  <bruno@clisp.org>
28680
28681         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28682         AC_CACHE_VAL.
28683
28684 2009-05-20  Bruno Haible  <bruno@clisp.org>
28685
28686         Make zeroptr.h work on mingw.
28687         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28688         mprotect.
28689         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28690         * modules/memchr2-tests (configure.ac): Likewise.
28691         * modules/memcmp-tests (configure.ac): Likewise.
28692         * modules/memmem-tests (configure.ac): Likewise.
28693         * modules/memrchr-tests (configure.ac): Likewise.
28694         Reported by Simon Josefsson.
28695
28696 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28697
28698         * tests/test-glob.c: Include string.h for strcmp prototype.
28699
28700 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28701
28702         * modules/getdelim (Depends-on): Add explicit stdint, although it
28703         was implicitly already pulled in via realloc-posix.
28704         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28705
28706 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28707
28708         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28709         G. Christensen" <tgc@jupiterrise.com>.
28710         * m4/sys_socket_h.m4: Check for sa_family_t.
28711         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28712         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28713         * tests/test-sys_socket.c: Check that sa_family_t works.
28714
28715 2009-05-18  Eric Blake  <ebb9@byu.net>
28716
28717         maint.mk: allow gnulib_dir in VPATH build
28718         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28719
28720 2009-05-15  Jim Meyering  <meyering@redhat.com>
28721
28722         maint.mk: Give gnulib_dir a default definition.
28723         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28724         Thus, most packages no longer need to specify this variable in cfg.mk
28725
28726 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28727
28728         rename.m4: fix typos that would make non-mingw cross-configure fail
28729         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28730
28731 2009-05-13  Eric Blake  <ebb9@byu.net>
28732
28733         mmap-anon: avoid out-of-order autoconf expansion
28734         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28735         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28736         * modules/memchr-tests (Depends-on): Add extensions.
28737         * modules/memchr2-tests (Depends-on): Add extensions.
28738         * modules/memcmp-tests (Depends-on): Add extensions.
28739         * modules/memmem-tests (Depends-on): Add extensions.
28740         * modules/memrchr-tests (Depends-on): Add extensions.
28741
28742 2009-05-13  Bruno Haible  <bruno@clisp.org>
28743
28744         Make some tests ISO C 99 compliant.
28745         * tests/zerosize-ptr.h: New file.
28746         * tests/test-memchr.c: Include zerosize-ptr.h.
28747         (main): Use a zero-size object pointer instead of NULL.
28748         * tests/test-memchr2.c: Include zerosize-ptr.h.
28749         (main): Use a zero-size object pointer instead of NULL.
28750         * tests/test-memcmp.c: Include zerosize-ptr.h.
28751         (main): Use a zero-size object pointer instead of NULL.
28752         * tests/test-memmem.c: Include zerosize-ptr.h.
28753         (main): Use a zero-size object pointer instead of NULL.
28754         * tests/test-memrchr.c: Include zerosize-ptr.h.
28755         (main): Use a zero-size object pointer instead of NULL.
28756         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28757         m4/mmap-anon.m4.
28758         (Depends-on): Add getpagesize.
28759         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28760         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28761         m4/mmap-anon.m4.
28762         (Depends-on): Add getpagesize.
28763         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28764         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28765         m4/mmap-anon.m4.
28766         (Depends-on): Add getpagesize.
28767         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28768         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28769         m4/mmap-anon.m4.
28770         (Depends-on): Add getpagesize.
28771         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28772         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28773         m4/mmap-anon.m4.
28774         (Depends-on): Add getpagesize.
28775         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28776
28777 2009-05-12  Bruno Haible  <bruno@clisp.org>
28778
28779         Tests for module 'alignof'.
28780         * modules/alignof-tests: New file.
28781         * tests/test-alignof.c: New file.
28782
28783 2009-05-12  Bruno Haible  <bruno@clisp.org>
28784
28785         Fix alignof macro.
28786         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28787         vendor compilers that are always correct.
28788
28789 2009-05-12  Bruno Haible  <bruno@clisp.org>
28790
28791         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28792         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28793         not whether its fully works.
28794
28795 2009-05-12  Bruno Haible  <bruno@clisp.org>
28796
28797         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28798
28799 2009-05-12  Jim Meyering  <meyering@redhat.com>
28800
28801         * top/maint.mk: Adjust backslash alignment.
28802
28803 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28804
28805         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28806
28807 2009-05-11  Eric Blake  <ebb9@byu.net>
28808
28809         argp: avoid undefined behavior
28810         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28811         macros.
28812
28813 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28814
28815         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28816         user.name to prevent git commit from complaining.
28817
28818 2009-05-10  Bruno Haible  <bruno@clisp.org>
28819
28820         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28821         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28822         it rewrites every file name only once.
28823         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28824
28825 2009-05-08  Bruno Haible  <bruno@clisp.org>
28826
28827         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28828         instead of 'max'.
28829
28830 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28831
28832         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28833         sockaddr_storage test.
28834
28835 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28836
28837         * modules/sys_socket (Makefile.am): Substitute
28838         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28839         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28840         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28841         * tests/test-sys_socket.c: Check sockaddr_storage.
28842
28843 2009-05-08  Bruno Haible  <bruno@clisp.org>
28844
28845         New module 'alignof'.
28846         * lib/alignof.h: New file.
28847         * modules/alignof: New file.
28848
28849 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28850             Bruno Haible  <bruno@clisp.org>
28851
28852         Fix test-file-has-acl on FreeBSD.
28853         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28854         mask is implicitly added.
28855         * tests/test-file-has-acl.c: Include <signal.h>.
28856         (main): Terminate the test after 5 seconds.
28857         * modules/acl-tests (configure.ac): Check for alarm function.
28858
28859 2009-05-04  Bruno Haible  <bruno@clisp.org>
28860
28861         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28862         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28863         * modules/errno (configure.ac): Drop AC_REQUIRE.
28864         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28865         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28866
28867 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28868
28869         * modules/glob-tests: New module.
28870         * tests/test-glob.c: Add.
28871
28872 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28873
28874         * modules/fnmatch-tests: New module.
28875         * tests/test-fnmatch.c: Add.
28876
28877 2009-05-04  Eric Blake  <ebb9@byu.net>
28878
28879         maint: make the new no-submodule-changes rule VPATH-safe
28880         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28881
28882 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28883             Bruno Haible  <bruno@clisp.org>
28884
28885         acl: Fix infinite loop on FreeBSD.
28886         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28887         of return value from acl_get_entry.
28888         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28889         Likewise.
28890
28891 2009-05-03  Bruno Haible  <bruno@clisp.org>
28892
28893         * lib/acl-internal.h (acl_entries): Clarify return value.
28894         * lib/acl_entries.c (acl_entries): Likewise.
28895
28896 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28897
28898         Bug fix in acl module.
28899         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28900
28901 2009-05-03  Bruno Haible  <bruno@clisp.org>
28902
28903         Create gperf-generated file in the source dir, not in the build dir.
28904         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28905         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28906         * modules/unicase/locale-language (unicase/locale-languages.h):
28907         Likewise.
28908         * modules/unicase/special-casing (unicase/special-casing-table.h):
28909         Likewise.
28910         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28911         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28912         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28913         Reported by Ralf Wildenhues.
28914
28915 2009-05-03  Bruno Haible  <bruno@clisp.org>
28916
28917         * modules/fnmatch (Description, configure.ac): Taken from
28918         fnmatch-posix.
28919         * modules/fnmatch-posix: Turn into a symbolic reference to the
28920         'fnmatch' module, and deprecate.
28921         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28922
28923 2009-05-03  Bruno Haible  <bruno@clisp.org>
28924
28925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28926         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28927         Reported by Ralf Wildenhues.
28928
28929 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28930
28931         * m4/fnmatch.m4: Fix fnmatch re-define.
28932
28933 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28934
28935         priv-set: new module and tests; adapt write-any-file
28936         * lib/priv-set.c: New file.
28937         * lib/priv-set.h: New file.
28938         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28939         * lib/write-any-file.c: Simplify by using priv-set module.
28940         * m4/priv-set.m4: New file.
28941         * modules/priv-set: New file.
28942         * modules/unlinkdir: Add dependency on priv-set module.
28943         * modules/write-any-file: Likewise.
28944
28945         Tests for module 'priv-set'.
28946         * modules/priv-set-tests: New file.
28947         * tests/test-priv-set.c: New file.
28948
28949 2009-05-03  Jim Meyering  <meyering@redhat.com>
28950             Bruno Haible  <bruno@clisp.org>
28951
28952         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28953         use the converted UTF-8 variant of the name instead.
28954
28955 2009-05-03  Jim Meyering  <meyering@redhat.com>
28956
28957         tests: tighten some getdate tests
28958         * tests/test-getdate.c (main): Tighten tests: require equality,
28959         not just greater than.  Set TZ envvar to UTC0.
28960
28961 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28962
28963         getdate: correctly interpret "next monday" when run on a Monday
28964         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28965         that e.g., "next tues" (when run on a tuesday) results in a date
28966         that is one week in the future, and not today's date.
28967         I.e., add a week when the wday is the same as the current one.
28968         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28969         and earlier by Martin Bernreuther and Jan Minář.
28970         * tests/test-getdate.c (main): Check that "next DAY" is always in
28971         the future and that "last DAY" is always in the past.
28972
28973 2009-05-02  Jim Meyering  <meyering@redhat.com>
28974
28975         build: ensure that a release build fails when a submodule is unclean
28976         * top/maint.mk (no-submodule-changes): New rule.
28977         (alpha beta major): Depend on it.
28978
28979 2009-05-02  Bruno Haible  <bruno@clisp.org>
28980
28981         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28982         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28983         shell variable gl_fnmatch_required to detect which variant is
28984         requested.
28985         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28986         gl_FUNC_FNMATCH_POSIX.
28987         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28988         exclude fnmatch-posix.
28989
28990 2009-05-02  Bruno Haible  <bruno@clisp.org>
28991
28992         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28993         * modules/mbsrtowcs (License): Change to LGPLv2+.
28994         * modules/strnlen1 (License): Likewise.
28995         Reported by Simon Josefsson.
28996
28997 2009-05-02  Bruno Haible  <bruno@clisp.org>
28998
28999         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29000         "cross".
29001         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29002         gnulib-tool was called with option --source-base=lib.
29003
29004 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29005
29006         Use automake *-local hooks without commands, for extensibility.
29007         * modules/localcharset (Makefile.am): Rename install-exec-local
29008         rule to install-exec-localcharset, and make it a prerequisite of
29009         install-exec-local.  Likewise, rename the uninstall-local rule to
29010         uninstall-localcharset, and make it a prerequisite of the former.
29011
29012 2009-05-01  Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29015         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29016         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29018         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29019         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29020         m4/locale-zh.m4, m4/codeset.m4.
29021
29022         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29023         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29024         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29025         m4/locale-zh.m4.
29026
29027         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29028         REPLACE_WCRTOMB if mbstate_t must be replaced.
29029         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29030         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29031
29032 2009-05-01  Bruno Haible  <bruno@clisp.org>
29033
29034         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29035         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29036         dngettext, dcngettext, textdomain, bindtextdomain,
29037         bind_textdomain_codeset): Undefine before redefining.
29038
29039 2009-04-30  Bruno Haible  <bruno@clisp.org>
29040
29041         Fix bug introduced on 2009-04-25.
29042         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29043         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29044         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29045         is defined.
29046         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29047         is defined.
29048         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29049         is defined.
29050         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29051
29052 2009-04-28  Bruno Haible  <bruno@clisp.org>
29053
29054         Comment tweaks.
29055         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29056         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29057         * lib/unicase.h (u*_casexfrm): Likewise.
29058         Reported by Paolo Bonzini.
29059
29060 2009-04-28  Bruno Haible  <bruno@clisp.org>
29061
29062         Fix a compilation error.
29063         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29064         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29065         Reported by Jim Meyering.
29066
29067 2009-04-27  Bruno Haible  <bruno@clisp.org>
29068
29069         New module 'libunistring'.
29070         * modules/libunistring: New file.
29071         * m4/libunistring.m4: New file.
29072         * MODULES.html.sh (Unicode string functions): Add it.
29073
29074 2009-04-27  Eric Blake  <ebb9@byu.net>
29075
29076         maint.mk: allow package-specific header to provide <config.h>
29077         * top/maint.mk (sc_require_config_h): New variable.
29078         (sc_require_config_h, sc_require_config_h_first): Use it.
29079
29080 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29081
29082         * top/maint.mk (sc_avoid_if_before_free): Except
29083         useless-if-before-free script.
29084
29085 2009-04-27  Eric Blake  <ebb9@byu.net>
29086
29087         maintainer-makefile: depend on all required helper scripts
29088         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29089         useless-if-before-free.
29090         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29091         version, rather than assuming gnulib checkout is available.
29092         Reported by Simen Josefsson.
29093
29094 2009-04-26  Bruno Haible  <bruno@clisp.org>
29095
29096         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29097         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29098         "../" or "..".
29099
29100 2009-04-26  Bruno Haible  <bruno@clisp.org>
29101
29102         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29103         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29104         AC_LIB_HAVE_LINKFLAGS.
29105
29106 2009-04-26  Bruno Haible  <bruno@clisp.org>
29107
29108         Simplify calling convention of u*_conv_from_encoding.
29109         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29110         u32_conv_from_encoding): Expect a resultbuf argument and return the
29111         result directly as a pointer.
29112         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29113         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29114         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29115         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29116         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29117         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29118         Update.
29119         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29120         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29121         * lib/vasnprintf.c (VASNPRINTF): Update.
29122         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29123         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29124         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29125         * NEWS: Mention the change.
29126
29127 2009-04-26  Bruno Haible  <bruno@clisp.org>
29128
29129         Simplify calling convention of u*_conv_to_encoding.
29130         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29131         u32_conv_to_encoding): Expect a resultbuf argument and return the
29132         result directly as a pointer.
29133         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29134         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29135         freeing scaled_offsets if mem_iconveha failed.
29136         * lib/unicase/u-casexfrm.h (FUNC): Update.
29137         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29138         * lib/vasnprintf.c (VASNPRINTF): Update.
29139         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29140         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29141         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29142         * NEWS: Mention the change.
29143
29144 2009-04-26  Bruno Haible  <bruno@clisp.org>
29145
29146         Avoid test failures on AIX and OSF/1.
29147         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29148         malloc(0).
29149         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29150         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29151         Likewise.
29152         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29153         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29154         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29155         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29156         * doc/posix-functions/malloc.texi: Document the portability problem
29157         related to malloc(0).
29158
29159 2009-04-26  Bruno Haible  <bruno@clisp.org>
29160
29161         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29162         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29163         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29164
29165 2009-04-25  Bruno Haible  <bruno@clisp.org>
29166
29167         Avoid link error when creating a namespace clean library.
29168         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29169         as macro with arguments if already defined as an alias.
29170         * lib/signbitf.c (gl_signbitf): Don't undefine.
29171         * lib/signbitd.c (gl_signbitd): Don't undefine.
29172         * lib/signbitl.c (gl_signbitl): Don't undefine.
29173
29174 2009-04-25  Jim Meyering  <meyering@redhat.com>
29175
29176         vc-list-files: fix another quoting bug
29177         * build-aux/vc-list-files: Avoid sed backslash expansion
29178         of pathological directory names.
29179
29180 2009-04-25  Eric Blake  <ebb9@byu.net>
29181
29182         vc-list-files: fix shell quoting error
29183         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29184         timestamp.
29185
29186 2009-04-25  Jim Meyering  <meyering@redhat.com>
29187
29188         vc-list-files: restore lost functionality with subdir argument
29189         * build-aux/vc-list-files: When given a non-"." sub-directory
29190         argument, substitute the $dir/ prefix back onto each resulting name.
29191         Otherwise, coreutils' root_tests check would fail.
29192
29193 2009-04-24  Eric Blake  <ebb9@byu.net>
29194
29195         vc-list-files: ignore git symlinks
29196         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29197         than ls-files, to ignore git symlinks.
29198
29199         maint.mk: import improvements from m4
29200         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29201         (move_if_change): Delete unused macro.
29202         (news-date-check, vc-diff-check): Support VPATH builds.
29203         (announcement): Likewise.  Split --bootstrap-tools list...
29204         (boostrap-tools): ...into separate list, which can be overridden
29205         in cfg.mk.
29206         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29207         requiring dependency on useless-if-before-free module.
29208         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29209         Support VPATH builds.
29210
29211 2009-04-24  Jim Meyering  <meyering@redhat.com>
29212
29213         maint.mk: remove coreutils-specific rules and variables
29214         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29215         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29216         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29217
29218         maint.mk: remove obsolete rule
29219         * top/maint.mk (rel-check): Remove rule.
29220         (WGET, WGETFLAGS): Remove now-unused variables.
29221
29222 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29223
29224         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29225         consistency.
29226
29227         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29228         '$(PATH_SEPARATOR)' instead of ':'.
29229
29230 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29231
29232         * lib/getopt1.c (main): Use 'const' for static array.
29233
29234 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29235
29236         * top/maint.mk: Sync with coreutils.
29237         * NEWS: Explain incompatibilities.
29238
29239 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29240             Bruno Haible  <bruno@clisp.org>
29241
29242         Fix cross-compilation results.
29243         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29244         statement, as third argument of AC_TRY_RUN.
29245         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29246         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29247         Likewise.
29248         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29249         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29250         Likewise.
29251         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29253         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29254
29255 2009-04-20  Bruno Haible  <bruno@clisp.org>
29256
29257         Avoid test failure on mingw.
29258         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29259
29260 2009-04-20  Bruno Haible  <bruno@clisp.org>
29261
29262         Avoid compilation error on mingw.
29263         * modules/localename-tests (Depends-on): Add locale.
29264
29265 2009-04-19  Bruno Haible  <bruno@clisp.org>
29266
29267         Support for building a shared library on Windows platforms.
29268         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29269         (main): Test the presence of UNINORM_NFC here.
29270         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29271         (main): Test the presence of UNINORM_NFD here.
29272         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29273         (main): Test the presence of UNINORM_NFKC here.
29274         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29275         (main): Test the presence of UNINORM_NFKD here.
29276
29277 2009-04-19  Bruno Haible  <bruno@clisp.org>
29278
29279         Avoid a compiler warning.
29280         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29281         Change type of variable 'sequence'.
29282
29283 2009-04-19  Bruno Haible  <bruno@clisp.org>
29284
29285         * modules/configmake (Makefile.am): When the contents of configmake.h
29286         does not change, arrange to preserve its modification time.
29287
29288 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29289
29290         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29291         gettext domain.
29292
29293 2009-04-16  Jim Meyering  <meyering@redhat.com>
29294
29295         useless-if-before-free: improve conversion code
29296         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29297         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29298
29299 2009-04-14  Bruno Haible  <bruno@clisp.org>
29300
29301         * modules/fcntl (Depends-on): Add extensions.
29302         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29303
29304 2009-04-12  Ben Pfaff  <blp@gnu.org>
29305
29306         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29307         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29308
29309 2009-03-20  Ben Pfaff  <blp@gnu.org>
29310
29311         Make rename replace existing destinations on Windows.
29312         * m4/rename.m4: Add test for Mingw.
29313         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29314         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29315         * doc/posix-functions/rename.texi: Document.
29316
29317 2009-04-10  Bruno Haible  <bruno@clisp.org>
29318
29319         New include file "iconveh.h".
29320         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29321         * lib/striconveh.h: Include it.
29322         (enum iconv_ilseq_handler): Remove definition.
29323         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29324         striconveh.h.
29325         * lib/striconveha.c: Include striconveh.h.
29326         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29327         * modules/striconveh (Files): Add lib/iconveh.h.
29328         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29329         lib/striconveh.h.
29330
29331 2009-04-10  Bruno Haible  <bruno@clisp.org>
29332
29333         * lib/uniconv.h: Update comment.
29334
29335 2009-04-10  Bruno Haible  <bruno@clisp.org>
29336
29337         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29338         always.
29339         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29340         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29341         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29342         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29343         "unistring-notinline.h", so that the function gets defined always.
29344         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29345         * lib/unistr/u8-uctomb.c: Likewise.
29346         * lib/unistr/u16-mbtouc.c: Likewise.
29347         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29348         * lib/unistr/u16-uctomb.c: Likewise.
29349         * lib/unistr/u32-mbtouc.c: Likewise.
29350         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29351         * lib/unistr/u32-uctomb.c: Likewise.
29352
29353 2009-04-10  Bruno Haible  <bruno@clisp.org>
29354
29355         Mark 'utime' obsolete.
29356         * modules/utime (Status, Notice): New sections.
29357         Suggested by Jim Meyering.
29358
29359         Fix cross-compile guess for utime test.
29360         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29361         autoconf.
29362         * doc/posix-functions/utime.texi: Give more precisions.
29363         Reported by Jan <ipif@ymail.com>.
29364
29365 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29366
29367         filevercmp: correct today's change
29368         * lib/filevercmp.c: Also handle coreutils' test inputs.
29369         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29370
29371         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29372         for reporting it.
29373         * lib/filevercmp.c: Special handle for "", "." and "..".
29374         * tests/test-filevercmp.c: Enlarge the set suite.
29375
29376 2009-04-07  Jim Meyering  <meyering@redhat.com>
29377
29378         useless-if-before-free: show how to remove braced useless free, too
29379         * build-aux/useless-if-before-free: still only in a comment, though.
29380
29381 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29382
29383         maint.mk: import changes to syntax-check macros from coreutils
29384         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29385         Use them in the relevant macros.
29386
29387 2009-04-06  Bruno Haible  <bruno@clisp.org>
29388
29389         Fix unportable use of bit-fields.
29390         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29391         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29392         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29393
29394 2009-04-06  Bruno Haible  <bruno@clisp.org>
29395
29396         Avoid test failures on AIX and OSF/1.
29397         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29398         that malloc(0) = NULL.
29399         * tests/unicase/test-u8-tolower.c (check): Likewise.
29400         * tests/unicase/test-u8-totitle.c (check): Likewise.
29401         * tests/unicase/test-u8-toupper.c (check): Likewise.
29402         * tests/unicase/test-u16-casefold.c (check): Likewise.
29403         * tests/unicase/test-u16-tolower.c (check): Likewise.
29404         * tests/unicase/test-u16-totitle.c (check): Likewise.
29405         * tests/unicase/test-u16-toupper.c (check): Likewise.
29406         * tests/unicase/test-u32-casefold.c (check): Likewise.
29407         * tests/unicase/test-u32-tolower.c (check): Likewise.
29408         * tests/unicase/test-u32-totitle.c (check): Likewise.
29409         * tests/unicase/test-u32-toupper.c (check): Likewise.
29410         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29411         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29412         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29413         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29414         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29415         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29416         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29417         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29418         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29419         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29420         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29421         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29422
29423 2009-04-05  Bruno Haible  <bruno@clisp.org>
29424
29425         Work around an autoconf limitation.
29426         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29427         comment line if it would be longer than 3 KB.
29428
29429 2009-04-05  Bruno Haible  <bruno@clisp.org>
29430
29431         Avoid test failure with libiconv-1.13.
29432         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29433         of the expected test results.
29434
29435 2009-04-05  Bruno Haible  <bruno@clisp.org>
29436
29437         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29438         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29439         that it should be installed.
29440
29441 2009-04-05  Bruno Haible  <bruno@clisp.org>
29442
29443         * gnulib-tool: New option --copy-file.
29444         (func_usage): Document it.
29445         (func_dest_tmpfilename): Moved out of func_import.
29446         (func_add_file, func_update_file): New functions, extracted from
29447         func_import.
29448         (func_import): Update.
29449
29450 2009-04-05  Karl Berry  <karl@gnu.org>
29451
29452         * README: prominently mention gnulib-tool.
29453         Rearrange sections so getting the code is near the top.
29454
29455 2009-04-05  Bruno Haible  <bruno@clisp.org>
29456
29457         * lib/unicase.h: Mention u*_cmp2.
29458         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29459         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29460         * lib/unicase/ulc-casecmp.c: Likewise.
29461         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29462         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29463         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29464         unistr/u8-cmp.
29465         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29466         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29467         unistr/u16-cmp.
29468         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29469         unistr/u32-cmp.
29470
29471         * lib/uninorm.h: Mention u*_cmp2.
29472         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29473         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29474         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29475         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29476         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29477         unistr/u8-cmp.
29478         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29479         unistr/u16-cmp.
29480         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29481         unistr/u32-cmp.
29482
29483         New module 'unistr/u32-cmp2'.
29484         * lib/unistr/u32-cmp2.c: New file.
29485         * modules/unistr/u32-cmp2: New file.
29486
29487         New module 'unistr/u16-cmp2'.
29488         * lib/unistr/u16-cmp2.c: New file.
29489         * modules/unistr/u16-cmp2: New file.
29490
29491         New module 'unistr/u8-cmp2'.
29492         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29493         * lib/unistr/u8-cmp2.c: New file.
29494         * lib/unistr/u-cmp2.h: New file.
29495         * modules/unistr/u8-cmp2: New file.
29496
29497 2009-04-05  Bruno Haible  <bruno@clisp.org>
29498
29499         * lib/unictype.h (uc_property_is_valid): New macro.
29500         * tests/unictype/test-pr_byname.c (main): Use it.
29501
29502         * lib/unistr.h: Doc fixes.
29503         * lib/uniconv.h: Doc fixes.
29504         * lib/unictype.h: Doc fixes.
29505
29506 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29507
29508         Port coreutils 7.2 to Solaris 8.
29509
29510         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29511         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29512         for Solaris 8.  This is a bit of a hack, as it means it's the
29513         caller's responsibility to add -lnsl if needed, but most likely it
29514         won't be needed since only getaddrinfo uses this and getaddrinfo
29515         isn't needed on Solaris 8.
29516
29517         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29518         problem to Solaris 8 encountered with coreutils 7.2, which
29519         resulted in a message "fnmatch.c:292: warning: passing argument 4
29520         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29521         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29522
29523 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29524
29525         * m4/ld-version-script.m4: Add FIXME comment.
29526
29527 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29528
29529         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29530         SOVERSION variable.
29531
29532 2009-04-02  Bruno Haible  <bruno@clisp.org>
29533
29534         * Makefile (info, html, dvi, pdf): Combine the rules.
29535         Suggested by Jim Meyering.
29536
29537 2009-04-01  Bruno Haible  <bruno@clisp.org>
29538
29539         * Makefile (info, html, dvi, pdf): New targets.
29540         Reported by Reuben Thomas <rrt@sc3d.org>.
29541
29542 2009-04-01  Bruno Haible  <bruno@clisp.org>
29543
29544         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29545         can be put into PATH.
29546         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29547
29548 2009-04-01  Bruno Haible  <bruno@clisp.org>
29549
29550         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29551
29552 2009-04-01  Bruno Haible  <bruno@clisp.org>
29553
29554         Rename module 'visibility'.
29555         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29556         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29557         * doc/gnulib.texi: Update.
29558         * MODULES.html.sh (Misc): Update.
29559         * NEWS: Mention the change.
29560
29561 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29562
29563         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29564         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29565         Eric Blake <ebb9@byu.net> for review.
29566         * MODULES.html.sh: Add lib-msvc-compat.
29567         * doc/gnulib.texi: Link to new section.
29568         * m4/ld-output-def.m4: New file.
29569         * doc/ld-output-def.texi: New file.
29570
29571 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29572
29573         Rename ld-version-script to lib-symbol-versions.  Suggested by
29574         Bruno Haible <bruno@clisp.org>.
29575         * modules/ld-version-script: Renamed to lib-symbol-versions.
29576         * doc/ld-version-script.texi: Fix module name.
29577         * MODULES.html.sh: Add lib-symbol-versions.
29578
29579 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29580
29581         * modules/u64-tests: New file.
29582         * tests/test-u64.c: New file.
29583
29584 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29585
29586         * MODULES.html.sh: Mention u64.
29587         * modules/u64: New module.
29588         * modules/crypto/sha512: Depend on u64 module instead of providing
29589         u64.h.
29590
29591 2009-03-27  Eric Blake  <ebb9@byu.net>
29592
29593         test-strerror: make debugging EAI_SYSTEM easier
29594         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29595         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29596         failure was EAI_SYSTEM.
29597
29598 2009-03-25  Bruno Haible  <bruno@clisp.org>
29599
29600         Fix a problem with --enable-relocatable on Solaris 7.
29601         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29602         since 2008-02-24.
29603
29604 2009-03-25  Eric Blake  <ebb9@byu.net>
29605
29606         test-sockets: avoid gcc warning
29607         * tests/test-sockets.c (main): Silence compiler warning.
29608
29609 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29610
29611         New modules nproc, pthread, contributed by Glen Lenker.
29612
29613         * MODULES.html.sh: Add pthread, nproc.
29614         * lib/nproc.c: New file.
29615         * lib/nproc.h: New file.
29616         * lib/pthread.in.h: New file.
29617         * m4/pthread.m4: New file.
29618         * modules/nproc: New file.
29619         * modules/pthread: New file.
29620
29621 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29622
29623         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29624         New variable.
29625
29626 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29627
29628         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29629         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29630         * tests/test-filevercmp.c: Add tests for backup suffixes.
29631
29632 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29633
29634         * modules/stdlib (Depends-on): Add stdint, needed when defining
29635         struct random_data on, for example, HP-UX 10.20.  Reported by
29636         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29637
29638 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29639
29640         * lib/readline.c (readline): Call fflush on stdout after printing
29641         prompt.
29642
29643 2009-03-20  Bruno Haible  <bruno@clisp.org>
29644
29645         Remove dependency from 'close' module to -lws2_32 on native Windows.
29646         * lib/close-hook.h: New file.
29647         * lib/close-hook.c: New file.
29648         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29649         w32sock.h.
29650         (_gl_close_fd_maybe_socket): Remove function.
29651         (rpl_close): Invoke execute_all_close_hooks instead of
29652         _gl_close_fd_maybe_socket.
29653         * lib/sockets.c: Include close-hook.h, w32sock.h.
29654         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29655         (close_sockets_hook): New variable.
29656         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29657         (gl_sockets_cleanup): Unregister it.
29658         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29659         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29660         * modules/close-hook: New file.
29661         * modules/close (Files): Remove lib/w32sock.h.
29662         (Depends-on): Add close-hook.
29663         (Link): Remove section.
29664         * modules/sockets (Files): Add lib/w32sock.h.
29665         (Depends-on): Add close-hook.
29666         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29667         invocation.
29668         * NEWS: Mention that LIB_CLOSE is gone.
29669
29670 2009-03-23  Eric Blake  <ebb9@byu.net>
29671
29672         signal-tests: test previous patch
29673         * tests/test-signal.c: New file.
29674         * modules/signal-tests: Likewise.
29675
29676         signal.h: always support 'volatile sig_atomic_t'
29677         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29678         (gl_SIGNAL_H_DEFAULTS): Add a default.
29679         * modules/signal (Makefile.am): Substitute if needed.
29680         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29681         users can blindly add volatile.
29682         * doc/posix-headers/signal.texi (signal.h): Document it.
29683         Reported by Matthew Woehlke.
29684
29685 2009-03-23  Jim Meyering  <meyering@redhat.com>
29686
29687         pathmax: PATH_MAX: use pathconf only when available
29688         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29689         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29690         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29691         This avoids a link failure in a PSP cross-compilation environment
29692         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29693
29694         * lib/vasnprintf.c (divide): Fix typo in comment.
29695
29696 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29697
29698         * gnulib-tool (func_filter_filelist): Fix comment.
29699
29700 2009-03-20  Bruno Haible  <bruno@clisp.org>
29701
29702         Make sockets.h self-contained.
29703         * lib/sockets.c: Include sockets.h first.
29704         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29705
29706 2009-03-19  Eric Blake  <ebb9@byu.net>
29707
29708         doc: mention more functions added in cygwin 1.7.0
29709         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29710         addition.
29711         * doc/posix-functions/log2f.texi: Likewise.
29712
29713 2009-03-19  Jim Meyering  <meyering@redhat.com>
29714
29715         fsusage: avoid syntax error due to statement-before-declaration
29716         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29717         after all declarations.  Reported by Matthew Woehlke in
29718         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29719
29720 2009-03-18  Eric Blake  <ebb9@byu.net>
29721
29722         build-aux/compile: sync from automake
29723         * build-aux/compile: New file, from automake.
29724         * config/srclist.txt: Mention build-aux/compile.
29725
29726 2009-03-17  Bruno Haible  <bruno@clisp.org>
29727
29728         * lib/git-merge-changelog.c: Fix typo in comment.
29729         Reported by Reuben Thomas <rrt@sc3d.org>.
29730
29731 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29732
29733         * m4/regex.m4: update and improve help for
29734         --without-included-regex.
29735
29736 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29737
29738         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29739         failure on missing include files.
29740
29741 2009-03-17  Eric Blake  <ebb9@byu.net>
29742
29743         doc: mention more functions added in cygwin 1.7.0
29744         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29745         addition.
29746         * doc/posix-functions/fwscanf.texi: Likewise.
29747         * doc/posix-functions/swprintf.texi: Likewise.
29748         * doc/posix-functions/swscanf.texi: Likewise.
29749         * doc/posix-functions/vfwprintf.texi: Likewise.
29750         * doc/posix-functions/vfwscanf.texi: Likewise.
29751         * doc/posix-functions/vswprintf.texi: Likewise.
29752         * doc/posix-functions/vswscanf.texi: Likewise.
29753         * doc/posix-functions/vwprintf.texi: Likewise.
29754         * doc/posix-functions/vwscanf.texi: Likewise.
29755         * doc/posix-functions/wcscasecmp.texi: Likewise.
29756         * doc/posix-functions/wcsdup.texi: Likewise.
29757         * doc/posix-functions/wcsftime.texi: Likewise.
29758         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29759         * doc/posix-functions/wprintf.texi: Likewise.
29760         * doc/posix-functions/wscanf.texi: Likewise.
29761         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29762
29763 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29764
29765         maint.mk: really add $(AM_MAKEFLAGS)
29766         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29767         was inadvertently omitted in the last commit.
29768         Spotted by Bruno Haible.
29769
29770         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29771         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29772         $(AM_MAKEFLAGS)' rather than plain `make'.
29773
29774         gnulib-tool: execute $MAKE not make
29775         * gnulib-tool: Default $MAKE to 'make'.
29776         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29777         than make.  Initialize $MAKE in the do-autobuild script.
29778
29779         gnulib-tool: use $MAKE not make in generated files
29780         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29781         make, in generated files.  Initialize $MAKE in the do-autobuild
29782         script.
29783
29784         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29785
29786         GNUmakefile: disable parallelism only for multiple, recursive targets
29787         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29788         additions in the Makefile.
29789         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29790         by Automake.
29791         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29792         are listed on the command line and at least one of them is
29793         listed in $(ALL_RECURSIVE_TARGETS).
29794
29795 2009-03-14  Bruno Haible  <bruno@clisp.org>
29796
29797         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29798         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29799         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29800         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29801         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29802         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29803         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29804         unistr/u8-uctomb.
29805         * modules/unistr/u8-strchr (Depends-on): Likewise.
29806         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29807         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29808         unistr/u16-uctomb.
29809         * modules/unistr/u16-strchr (Depends-on): Likewise.
29810         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29811
29812 2009-03-12  Bruno Haible  <bruno@clisp.org>
29813
29814         Work around select() bug on Interix 3.5.
29815         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29816         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29817         * m4/select.m4: New file.
29818         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29819         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29820         * modules/select (Files): Add m4/select.m4.
29821         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29822         * modules/nanosleep (Depends-on): Add select.
29823         * modules/poll (Depends-on): Likewise.
29824         * doc/posix-functions/select.texi: Mention the Interix bug.
29825         Reported by Markus Duft <mduft@gentoo.org>.
29826
29827         * lib/select.c: Renamed from lib/winsock-select.c.
29828         * modules/select (Files): Add lib/select.c, remove
29829         lib/winsock-select.c.
29830         (configure.ac): Update.
29831
29832 2009-03-12  Jim Meyering  <meyering@redhat.com>
29833
29834         avoid gcc warnings about unused macro definitions
29835         * lib/readtokens.c (STREQ): Remove unused definition.
29836         * lib/xmalloc.c (SIZE_MAX): Likewise.
29837         * lib/openat-die.c (N_): Likewise.
29838         * lib/mountlist.c (SIZE_MAX): Remove definition.
29839         Instead, include <stdint.h>.
29840         * lib/readutmp.c: Likewise.
29841         * modules/readutmp (Depends-on): Add stdint.
29842         * modules/mountlist (Depends-on): Add stdint.
29843         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29844
29845 2009-03-10  Bruno Haible  <bruno@clisp.org>
29846
29847         Tests for module 'mbmemcasecoll'.
29848         * modules/mbmemcasecoll-tests: New file.
29849         * tests/test-mbmemcasecoll1.sh: New file.
29850         * tests/test-mbmemcasecoll2.sh: New file.
29851         * tests/test-mbmemcasecoll3.sh: New file.
29852         * tests/test-mbmemcasecoll.c: New file.
29853
29854         New module 'mbmemcasecoll'.
29855         * lib/mbmemcasecoll.h: New file.
29856         * lib/mbmemcasecoll.c: New file.
29857         * modules/mbmemcasecoll: New file.
29858
29859         * tests/test-mbmemcasecmp.h: New file, extracted from
29860         tests/test-mbmemcasecmp.c.
29861         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29862         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29863         (main): Update.
29864         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29865
29866 2009-03-09  Bruno Haible  <bruno@clisp.org>
29867
29868         Tests for module 'mbmemcasecmp'.
29869         * modules/mbmemcasecmp-tests: New file.
29870         * tests/test-mbmemcasecmp1.sh: New file.
29871         * tests/test-mbmemcasecmp2.sh: New file.
29872         * tests/test-mbmemcasecmp3.sh: New file.
29873         * tests/test-mbmemcasecmp.c: New file.
29874
29875         New module 'mbmemcasecmp'.
29876         * lib/mbmemcasecmp.h: New file.
29877         * lib/mbmemcasecmp.c: New file.
29878         * modules/mbmemcasecmp: New file.
29879
29880 2009-03-09  Bruno Haible  <bruno@clisp.org>
29881
29882         Tests for module 'unicase/ulc-casecoll'.
29883         * modules/unicase/ulc-casecoll-tests: New file.
29884         * tests/unicase/test-ulc-casecoll1.sh: New file.
29885         * tests/unicase/test-ulc-casecoll2.sh: New file.
29886         * tests/unicase/test-ulc-casecoll.c: New file.
29887
29888         New module 'unicase/ulc-casecoll'.
29889         * lib/unicase.h (ulc_casecoll): New declaration.
29890         * lib/unicase/ulc-casecoll.c: New file.
29891         * modules/unicase/ulc-casecoll: New file.
29892
29893         New module 'unicase/ulc-casexfrm'.
29894         * lib/unicase.h (ulc_casexfrm): New declaration.
29895         * lib/unicase/ulc-casexfrm.c: New file.
29896         * modules/unicase/ulc-casexfrm: New file.
29897
29898 2009-03-09  Bruno Haible  <bruno@clisp.org>
29899
29900         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29901         invocations.
29902
29903         * m4/mbscasecmp.m4: Remove file.
29904         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29905         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29906
29907         * m4/mbscasestr.m4: Remove file.
29908         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29909         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29910
29911         * m4/mbschr.m4: Remove file.
29912         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29913         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29914
29915         * m4/mbscspn.m4: Remove file.
29916         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29917         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29918
29919         * m4/mbslen.m4: Remove file.
29920         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29921         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29922
29923         * m4/mbsncasecmp.m4: Remove file.
29924         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29925         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29926
29927         * m4/mbsnlen.m4: Remove file.
29928         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29929         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29930
29931         * m4/mbspbrk.m4: Remove file.
29932         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29933         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29934
29935         * m4/mbspcasecmp.m4: Remove file.
29936         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29937         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29938
29939         * m4/mbsrchr.m4: Remove file.
29940         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29941         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29942
29943         * m4/mbssep.m4: Remove file.
29944         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29945         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29946
29947         * m4/mbsspn.m4: Remove file.
29948         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29949         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29950
29951         * m4/mbsstr.m4: Remove file.
29952         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29953         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29954
29955         * m4/mbstok_r.m4: Remove file.
29956         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29957         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29958
29959         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29960
29961         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29962         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29963
29964         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29965
29966 2009-03-08  Bruno Haible  <bruno@clisp.org>
29967
29968         Tests for module 'unicase/ulc-casecmp'.
29969         * modules/unicase/ulc-casecmp-tests: New file.
29970         * tests/unicase/test-ulc-casecmp1.sh: New file.
29971         * tests/unicase/test-ulc-casecmp2.sh: New file.
29972         * tests/unicase/test-ulc-casecmp.c: New file.
29973
29974         New module 'unicase/ulc-casecmp'.
29975         * lib/unicase.h (ulc_casecmp): New declaration.
29976         * lib/unicase/ulc-casecmp.c: New file.
29977         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29978         'const SRC_UNIT *'.
29979         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29980         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29981         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29982         * modules/unicase/ulc-casecmp: New file.
29983
29984         Tests for module 'unicase/u32-is-cased'.
29985         * modules/unicase/u32-is-cased-tests: New file.
29986         * tests/unicase/test-u32-is-cased.c: New file.
29987
29988         Tests for module 'unicase/u16-is-cased'.
29989         * modules/unicase/u16-is-cased-tests: New file.
29990         * tests/unicase/test-u16-is-cased.c: New file.
29991
29992         Tests for module 'unicase/u8-is-cased'.
29993         * modules/unicase/u8-is-cased-tests: New file.
29994         * tests/unicase/test-u8-is-cased.c: New file.
29995         * tests/unicase/test-is-cased.h: New file.
29996
29997         New module 'unicase/u32-is-cased'.
29998         * lib/unicase/u32-is-cased.c: New file.
29999         * modules/unicase/u32-is-cased: New file.
30000
30001         New module 'unicase/u16-is-cased'.
30002         * lib/unicase/u16-is-cased.c: New file.
30003         * modules/unicase/u16-is-cased: New file.
30004
30005         New module 'unicase/u8-is-cased'.
30006         * lib/unicase/u8-is-cased.c: New file.
30007         * lib/unicase/u-is-cased.h: New file.
30008         * modules/unicase/u8-is-cased: New file.
30009
30010         Tests for module 'unicase/u32-is-casefolded'.
30011         * modules/unicase/u32-is-casefolded-tests: New file.
30012         * tests/unicase/test-u32-is-casefolded.c: New file.
30013
30014         Tests for module 'unicase/u16-is-casefolded'.
30015         * modules/unicase/u16-is-casefolded-tests: New file.
30016         * tests/unicase/test-u16-is-casefolded.c: New file.
30017
30018         Tests for module 'unicase/u8-is-casefolded'.
30019         * modules/unicase/u8-is-casefolded-tests: New file.
30020         * tests/unicase/test-u8-is-casefolded.c: New file.
30021         * tests/unicase/test-is-casefolded.h: New file.
30022
30023         New module 'unicase/u32-is-casefolded'.
30024         * lib/unicase/u32-is-casefolded.c: New file.
30025         * modules/unicase/u32-is-casefolded: New file.
30026
30027         New module 'unicase/u16-is-casefolded'.
30028         * lib/unicase/u16-is-casefolded.c: New file.
30029         * modules/unicase/u16-is-casefolded: New file.
30030
30031         New module 'unicase/u8-is-casefolded'.
30032         * lib/unicase/u8-is-casefolded.c: New file.
30033         * modules/unicase/u8-is-casefolded: New file.
30034
30035         Tests for module 'unicase/u32-is-titlecase'.
30036         * modules/unicase/u32-is-titlecase-tests: New file.
30037         * tests/unicase/test-u32-is-titlecase.c: New file.
30038
30039         Tests for module 'unicase/u16-is-titlecase'.
30040         * modules/unicase/u16-is-titlecase-tests: New file.
30041         * tests/unicase/test-u16-is-titlecase.c: New file.
30042
30043         Tests for module 'unicase/u8-is-titlecase'.
30044         * modules/unicase/u8-is-titlecase-tests: New file.
30045         * tests/unicase/test-u8-is-titlecase.c: New file.
30046         * tests/unicase/test-is-titlecase.h: New file.
30047
30048         New module 'unicase/u32-is-titlecase'.
30049         * lib/unicase/u32-is-titlecase.c: New file.
30050         * modules/unicase/u32-is-titlecase: New file.
30051
30052         New module 'unicase/u16-is-titlecase'.
30053         * lib/unicase/u16-is-titlecase.c: New file.
30054         * modules/unicase/u16-is-titlecase: New file.
30055
30056         New module 'unicase/u8-is-titlecase'.
30057         * lib/unicase/u8-is-titlecase.c: New file.
30058         * modules/unicase/u8-is-titlecase: New file.
30059
30060         Tests for module 'unicase/u32-is-lowercase'.
30061         * modules/unicase/u32-is-lowercase-tests: New file.
30062         * tests/unicase/test-u32-is-lowercase.c: New file.
30063
30064         Tests for module 'unicase/u16-is-lowercase'.
30065         * modules/unicase/u16-is-lowercase-tests: New file.
30066         * tests/unicase/test-u16-is-lowercase.c: New file.
30067
30068         Tests for module 'unicase/u8-is-lowercase'.
30069         * modules/unicase/u8-is-lowercase-tests: New file.
30070         * tests/unicase/test-u8-is-lowercase.c: New file.
30071         * tests/unicase/test-is-lowercase.h: New file.
30072
30073         New module 'unicase/u32-is-lowercase'.
30074         * lib/unicase/u32-is-lowercase.c: New file.
30075         * modules/unicase/u32-is-lowercase: New file.
30076
30077         New module 'unicase/u16-is-lowercase'.
30078         * lib/unicase/u16-is-lowercase.c: New file.
30079         * modules/unicase/u16-is-lowercase: New file.
30080
30081         New module 'unicase/u8-is-lowercase'.
30082         * lib/unicase/u8-is-lowercase.c: New file.
30083         * modules/unicase/u8-is-lowercase: New file.
30084
30085         Tests for module 'unicase/u32-is-uppercase'.
30086         * modules/unicase/u32-is-uppercase-tests: New file.
30087         * tests/unicase/test-u32-is-uppercase.c: New file.
30088
30089         Tests for module 'unicase/u16-is-uppercase'.
30090         * modules/unicase/u16-is-uppercase-tests: New file.
30091         * tests/unicase/test-u16-is-uppercase.c: New file.
30092
30093         Tests for module 'unicase/u8-is-uppercase'.
30094         * modules/unicase/u8-is-uppercase-tests: New file.
30095         * tests/unicase/test-u8-is-uppercase.c: New file.
30096         * tests/unicase/test-is-uppercase.h: New file.
30097
30098         New module 'unicase/u32-is-uppercase'.
30099         * lib/unicase/u32-is-uppercase.c: New file.
30100         * modules/unicase/u32-is-uppercase: New file.
30101
30102         New module 'unicase/u16-is-uppercase'.
30103         * lib/unicase/u16-is-uppercase.c: New file.
30104         * modules/unicase/u16-is-uppercase: New file.
30105
30106         New module 'unicase/u8-is-uppercase'.
30107         * lib/unicase/u8-is-uppercase.c: New file.
30108         * modules/unicase/u8-is-uppercase: New file.
30109
30110         New module 'unicase/u32-is-invariant'.
30111         * lib/unicase/u32-is-invariant.c: New file.
30112         * modules/unicase/u32-is-invariant: New file.
30113
30114         New module 'unicase/u16-is-invariant'.
30115         * lib/unicase/u16-is-invariant.c: New file.
30116         * modules/unicase/u16-is-invariant: New file.
30117
30118         New module 'unicase/u8-is-invariant'.
30119         * lib/unicase/u8-is-invariant.c: New file.
30120         * lib/unicase/invariant.h: New file.
30121         * lib/unicase/u-is-invariant.h: New file.
30122         * modules/unicase/u8-is-invariant: New file.
30123
30124         Tests for module 'unicase/u32-casecoll'.
30125         * modules/unicase/u32-casecoll-tests: New file.
30126         * tests/unicase/test-u32-casecoll.c: New file.
30127
30128         Tests for module 'unicase/u16-casecoll'.
30129         * modules/unicase/u16-casecoll-tests: New file.
30130         * tests/unicase/test-u16-casecoll.c: New file.
30131
30132         Tests for module 'unicase/u8-casecoll'.
30133         * modules/unicase/u8-casecoll-tests: New file.
30134         * tests/unicase/test-u8-casecoll.c: New file.
30135
30136         New module 'unicase/u32-casecoll'.
30137         * lib/unicase/u32-casecoll.c: New file.
30138         * modules/unicase/u32-casecoll: New file.
30139
30140         New module 'unicase/u16-casecoll'.
30141         * lib/unicase/u16-casecoll.c: New file.
30142         * modules/unicase/u16-casecoll: New file.
30143
30144         New module 'unicase/u8-casecoll'.
30145         * lib/unicase/u8-casecoll.c: New file.
30146         * lib/unicase/u-casecoll.h: New file.
30147         * modules/unicase/u8-casecoll: New file.
30148
30149         New module 'unicase/u32-casexfrm'.
30150         * lib/unicase/u32-casexfrm.c: New file.
30151         * modules/unicase/u32-casexfrm: New file.
30152
30153         New module 'unicase/u16-casexfrm'.
30154         * lib/unicase/u16-casexfrm.c: New file.
30155         * modules/unicase/u16-casexfrm: New file.
30156
30157         New module 'unicase/u8-casexfrm'.
30158         * lib/unicase/u8-casexfrm.c: New file.
30159         * lib/unicase/u-casexfrm.h: New file.
30160         * modules/unicase/u8-casexfrm: New file.
30161
30162         Tests for module 'unicase/u32-casecmp'.
30163         * modules/unicase/u32-casecmp-tests: New file.
30164         * tests/unicase/test-u32-casecmp.c: New file.
30165
30166         Tests for module 'unicase/u16-casecmp'.
30167         * modules/unicase/u16-casecmp-tests: New file.
30168         * tests/unicase/test-u16-casecmp.c: New file.
30169
30170         Tests for module 'unicase/u8-casecmp'.
30171         * modules/unicase/u8-casecmp-tests: New file.
30172         * tests/unicase/test-u8-casecmp.c: New file.
30173         * tests/unicase/test-casecmp.h: New file.
30174
30175         New module 'unicase/u32-casecmp'.
30176         * lib/unicase/u32-casecmp.c: New file.
30177         * modules/unicase/u32-casecmp: New file.
30178
30179         New module 'unicase/u16-casecmp'.
30180         * lib/unicase/u16-casecmp.c: New file.
30181         * modules/unicase/u16-casecmp: New file.
30182
30183         New module 'unicase/u8-casecmp'.
30184         * lib/unicase/u8-casecmp.c: New file.
30185         * lib/unicase/u-casecmp.h: New file.
30186         * modules/unicase/u8-casecmp: New file.
30187
30188         Tests for module 'unicase/u32-casefold'.
30189         * modules/unicase/u32-casefold-tests: New file.
30190         * tests/unicase/test-u32-casefold.c: New file.
30191
30192         Tests for module 'unicase/u16-casefold'.
30193         * modules/unicase/u16-casefold-tests: New file.
30194         * tests/unicase/test-u16-casefold.c: New file.
30195
30196         Tests for module 'unicase/u8-casefold'.
30197         * modules/unicase/u8-casefold-tests: New file.
30198         * tests/unicase/test-u8-casefold.c: New file.
30199
30200         New module 'unicase/u32-casefold'.
30201         * lib/unicase/u32-casefold.c: New file.
30202         * modules/unicase/u32-casefold: New file.
30203
30204         New module 'unicase/u16-casefold'.
30205         * lib/unicase/u16-casefold.c: New file.
30206         * modules/unicase/u16-casefold: New file.
30207
30208         New module 'unicase/u8-casefold'.
30209         * lib/unicase/u8-casefold.c: New file.
30210         * lib/unicase/u-casefold.h: New file.
30211         * modules/unicase/u8-casefold: New file.
30212
30213         New module 'unicase/tocasefold'.
30214         * lib/unicase/casefold.h: New file.
30215         * lib/unicase/tocasefold.c: New file.
30216         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30217         * modules/unicase/tocasefold: New file.
30218
30219         Tests for module 'unicase/u32-totitle'.
30220         * modules/unicase/u32-totitle-tests: New file.
30221         * tests/unicase/test-u32-totitle.c: New file.
30222
30223         Tests for module 'unicase/u16-totitle'.
30224         * modules/unicase/u16-totitle-tests: New file.
30225         * tests/unicase/test-u16-totitle.c: New file.
30226
30227         Tests for module 'unicase/u8-totitle'.
30228         * modules/unicase/u8-totitle-tests: New file.
30229         * tests/unicase/test-u8-totitle.c: New file.
30230
30231         New module 'unicase/u32-totitle'.
30232         * lib/unicase/u32-totitle.c: New file.
30233         * modules/unicase/u32-totitle: New file.
30234
30235         New module 'unicase/u16-totitle'.
30236         * lib/unicase/u16-totitle.c: New file.
30237         * modules/unicase/u16-totitle: New file.
30238
30239         New module 'unicase/u8-totitle'.
30240         * lib/unicase/u8-totitle.c: New file.
30241         * lib/unicase/u-totitle.h: New file.
30242         * modules/unicase/u8-totitle: New file.
30243
30244         Tests for module 'unicase/u32-tolower'.
30245         * modules/unicase/u32-tolower-tests: New file.
30246         * tests/unicase/test-u32-tolower.c: New file.
30247
30248         Tests for module 'unicase/u16-tolower'.
30249         * modules/unicase/u16-tolower-tests: New file.
30250         * tests/unicase/test-u16-tolower.c: New file.
30251
30252         Tests for module 'unicase/u8-tolower'.
30253         * modules/unicase/u8-tolower-tests: New file.
30254         * tests/unicase/test-u8-tolower.c: New file.
30255
30256         New module 'unicase/u32-tolower'.
30257         * lib/unicase/u32-tolower.c: New file.
30258         * modules/unicase/u32-tolower: New file.
30259
30260         New module 'unicase/u16-tolower'.
30261         * lib/unicase/u16-tolower.c: New file.
30262         * modules/unicase/u16-tolower: New file.
30263
30264         New module 'unicase/u8-tolower'.
30265         * lib/unicase/u8-tolower.c: New file.
30266         * modules/unicase/u8-tolower: New file.
30267
30268         Tests for module 'unicase/u32-toupper'.
30269         * modules/unicase/u32-toupper-tests: New file.
30270         * tests/unicase/test-u32-toupper.c: New file.
30271
30272         Tests for module 'unicase/u16-toupper'.
30273         * modules/unicase/u16-toupper-tests: New file.
30274         * tests/unicase/test-u16-toupper.c: New file.
30275
30276         Tests for module 'unicase/u8-toupper'.
30277         * modules/unicase/u8-toupper-tests: New file.
30278         * tests/unicase/test-u8-toupper.c: New file.
30279
30280         New module 'unicase/u32-toupper'.
30281         * lib/unicase/u32-toupper.c: New file.
30282         * modules/unicase/u32-toupper: New file.
30283
30284         New module 'unicase/u16-toupper'.
30285         * lib/unicase/u16-toupper.c: New file.
30286         * modules/unicase/u16-toupper: New file.
30287
30288         New module 'unicase/u8-toupper'.
30289         * lib/unicase/u8-toupper.c: New file.
30290         * modules/unicase/u8-toupper: New file.
30291
30292         New module 'unicase/u32-casemap'.
30293         * lib/unicase/u32-casemap.c: New file.
30294         * modules/unicase/u32-casemap: New file.
30295
30296         New module 'unicase/u16-casemap'.
30297         * lib/unicase/u16-casemap.c: New file.
30298         * modules/unicase/u16-casemap: New file.
30299
30300         New module 'unicase/u8-casemap'.
30301         * lib/unicase/unicasemap.h: New file.
30302         * lib/unicase/u8-casemap.c: New file.
30303         * lib/unicase/u-casemap.h: New file.
30304         * modules/unicase/u8-casemap: New file.
30305
30306         New module 'unicase/special-casing'.
30307         * lib/unicase/special-casing.h: New file.
30308         * lib/unicase/special-casing.c: New file.
30309         * lib/unicase/special-casing-table.gperf: New file, generated by
30310         gen-uni-tables.c.
30311         * modules/unicase/special-casing: New file.
30312
30313         Tests for module 'unicase/locale-language'.
30314         * modules/unicase/locale-language-tests: New file.
30315         * tests/unicase/test-locale-language.sh: New file.
30316         * tests/unicase/test-locale-language.c: New file.
30317
30318         New module 'unicase/locale-language'.
30319         * lib/unicase/locale-language.c: New file.
30320         * lib/unicase/locale-languages.gperf: New file.
30321         * modules/unicase/locale-language: New file.
30322
30323         Generate more tables for case conversion and case folding.
30324         * lib/gen-uni-tables.c (SCC_*): New enum items.
30325         (struct special_casing_rule): New type.
30326         (casing_rules, num_casing_rules, allocated_casing_rules): New
30327         variables.
30328         (add_casing_rule, fill_casing_rules): New functions.
30329         (struct casefold_rule): New type.
30330         (casefolding_rules, num_casefolding_rules,
30331         allocated_casefolding_rules): New variables.
30332         (fill_casefolding_rules): New function.
30333         (unicode_casefold): New variable.
30334         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30335         sort_casing_rules, output_casing_rules): New functions.
30336         (main): Accept to more arguments: SpecialCasing.txt and
30337         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30338         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30339         Output mapping for casefolding.
30340
30341         * lib/unicase.h: Include stdbool.h, uninorm.h.
30342         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30343         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30344         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30345         arguments.
30346         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30347         resultp arguments.
30348         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30349         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30350         resultp arguments.
30351         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30352         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30353         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30354         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30355         declarations.
30356         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30357
30358 2009-03-08  Bruno Haible  <bruno@clisp.org>
30359
30360         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30361         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30362         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30363         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30364
30365 2009-03-07  Bruno Haible  <bruno@clisp.org>
30366
30367         Adjust u*_normcmp, u*_normcoll API.
30368         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30369         u16_normcoll, u32_normcoll): Change failure conventions.
30370         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30371         errno and return -1.
30372         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30373
30374 2009-03-07  Bruno Haible  <bruno@clisp.org>
30375
30376         Tests for module 'uninorm/u32-normcoll'.
30377         * modules/uninorm/u32-normcoll-tests: New file.
30378         * tests/uninorm/test-u32-normcoll.c: New file.
30379
30380         Tests for module 'uninorm/u16-normcoll'.
30381         * modules/uninorm/u16-normcoll-tests: New file.
30382         * tests/uninorm/test-u16-normcoll.c: New file.
30383
30384         Tests for module 'uninorm/u8-normcoll'.
30385         * modules/uninorm/u8-normcoll-tests: New file.
30386         * tests/uninorm/test-u8-normcoll.c: New file.
30387
30388 2009-03-07  Bruno Haible  <bruno@clisp.org>
30389
30390         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30391         tests/uninorm/test-u32-normcmp.c.
30392         * tests/uninorm/test-u32-normcmp.c: Include it.
30393         (test_nonascii): New function, extracted from main. Add some more
30394         tests.
30395         (main): Invoke test_ascii and test_nonascii.
30396         * modules/uninorm/u32-normcmp-tests (Files): Add
30397         tests/uninorm/test-u32-normcmp.h.
30398         (Depends-on): Remove uninorm/u32-normcmp.
30399
30400         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30401         tests/uninorm/test-u16-normcmp.c.
30402         * tests/uninorm/test-u16-normcmp.c: Include it.
30403         (test_nonascii): New function, extracted from main. Add some more
30404         tests.
30405         (main): Invoke test_ascii and test_nonascii.
30406         * modules/uninorm/u16-normcmp-tests (Files): Add
30407         tests/uninorm/test-u16-normcmp.h.
30408         (Depends-on): Remove uninorm/u16-normcmp.
30409
30410         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30411         tests/uninorm/test-u8-normcmp.c.
30412         * tests/uninorm/test-u8-normcmp.c: Include it.
30413         (test_nonascii): New function, extracted from main. Add some more
30414         tests.
30415         (main): Invoke test_ascii and test_nonascii.
30416         * modules/uninorm/u8-normcmp-tests (Files): Add
30417         tests/uninorm/test-u8-normcmp.h.
30418         (Depends-on): Remove uninorm/u8-normcmp.
30419
30420 2009-03-07  Bruno Haible  <bruno@clisp.org>
30421
30422         New module 'uninorm/u32-normcoll'.
30423         * lib/uninorm/u32-normcoll.c: New file.
30424         * modules/uninorm/u32-normcoll: New file.
30425
30426         New module 'uninorm/u16-normcoll'.
30427         * lib/uninorm/u16-normcoll.c: New file.
30428         * modules/uninorm/u16-normcoll: New file.
30429
30430         New module 'uninorm/u8-normcoll'.
30431         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30432         declarations.
30433         * lib/uninorm/u8-normcoll.c: New file.
30434         * lib/uninorm/u-normcoll.h: New file.
30435         * modules/uninorm/u8-normcoll: New file.
30436
30437         New module 'uninorm/u32-normxfrm'.
30438         * lib/uninorm/u32-normxfrm.c: New file.
30439         * modules/uninorm/u32-normxfrm: New file.
30440
30441         New module 'uninorm/u16-normxfrm'.
30442         * lib/uninorm/u16-normxfrm.c: New file.
30443         * modules/uninorm/u16-normxfrm: New file.
30444
30445         New module 'uninorm/u8-normxfrm'.
30446         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30447         declarations.
30448         * lib/uninorm/u8-normxfrm.c: New file.
30449         * lib/uninorm/u-normxfrm.h: New file.
30450         * modules/uninorm/u8-normxfrm: New file.
30451
30452 2009-03-07  Bruno Haible  <bruno@clisp.org>
30453
30454         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30455         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30456         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30457
30458 2009-03-07  Bruno Haible  <bruno@clisp.org>
30459
30460         New module 'memxfrm'.
30461         * lib/memxfrm.h: New file.
30462         * lib/memxfrm.c: New file.
30463         * modules/memxfrm: New file.
30464
30465 2009-03-07  Bruno Haible  <bruno@clisp.org>
30466
30467         New module 'memcmp2'.
30468         * lib/memcmp2.h: New file.
30469         * lib/memcmp2.c: New file.
30470         * modules/memcmp2: New file.
30471
30472 2009-03-07  Bruno Haible  <bruno@clisp.org>
30473
30474         Tests for module 'uninorm/decomposing-form'.
30475         * modules/uninorm/decomposing-form-tests: New file.
30476         * tests/uninorm/test-decomposing-form.c: New file.
30477
30478         New module 'uninorm/decomposing-form'.
30479         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30480         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30481         Add 'decomposing_variant' field.
30482         * lib/uninorm/decomposing-form.c: New file.
30483         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30484         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30485         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30486         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30487         * modules/uninorm/decomposing-form: New file.
30488         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30489         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30490
30491 2009-03-07  Bruno Haible  <bruno@clisp.org>
30492
30493         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30494         strings.
30495
30496 2009-03-06  Bruno Haible  <bruno@clisp.org>
30497
30498         Tests for module 'uninorm/u32-normcmp'.
30499         * tests/uninorm/test-u32-normcmp.c: New file.
30500         * modules/uninorm/u32-normcmp-tests: New file.
30501
30502         Tests for module 'uninorm/u16-normcmp'.
30503         * tests/uninorm/test-u16-normcmp.c: New file.
30504         * modules/uninorm/u16-normcmp-tests: New file.
30505
30506         Tests for module 'uninorm/u8-normcmp'.
30507         * tests/uninorm/test-u8-normcmp.c: New file.
30508         * modules/uninorm/u8-normcmp-tests: New file.
30509
30510         New module 'uninorm/u32-normcmp'.
30511         * lib/uninorm/u32-normcmp.c: New file.
30512         * modules/uninorm/u32-normcmp: New file.
30513
30514         New module 'uninorm/u16-normcmp'.
30515         * lib/uninorm/u16-normcmp.c: New file.
30516         * modules/uninorm/u16-normcmp: New file.
30517
30518         New module 'uninorm/u8-normcmp'.
30519         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30520         declarations.
30521         * lib/uninorm/u8-normcmp.c: New file.
30522         * lib/uninorm/u-normcmp.h: New file.
30523         * modules/uninorm/u8-normcmp: New file.
30524
30525 2009-03-06  Bruno Haible  <bruno@clisp.org>
30526
30527         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30528         Reported by Eric Blake.
30529
30530 2009-03-06  Eric Blake  <ebb9@byu.net>
30531             Bruno Haible  <bruno@clisp.org>
30532
30533         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30534         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30535         condition.
30536         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30537         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30538         condition.
30539         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30540
30541 2009-03-06  Eric Blake  <ebb9@byu.net>
30542
30543         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30544         to avoid compiler warnings.
30545         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30546
30547 2009-03-05  Bruno Haible  <bruno@clisp.org>
30548
30549         * tests/test-ftell.c (main): Disable test beyond end of file on
30550         FreeMiNT.
30551         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30552
30553 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30554
30555         * lib/filevercmp.c: Move hidden files up in ordering.
30556         * tests/test-filevercmp.c: Add tests for hidden files.
30557
30558 2009-03-04  Bruno Haible  <bruno@clisp.org>
30559
30560         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30561         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30562         AM_CFLAGS.
30563         Reported by Simon Josefsson.
30564
30565 2009-03-03  Bruno Haible  <bruno@clisp.org>
30566
30567         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30568         Reported by Simon Josefsson.
30569
30570         * doc/ld-version-script.texi: Update node reference.
30571
30572 2009-03-03  Bruno Haible  <bruno@clisp.org>
30573
30574         * modules/visibility (License): Change to 'unlimited'.
30575         Suggested by Simon Josefsson.
30576
30577 2009-03-03  Jim Meyering  <meyering@redhat.com>
30578
30579         unlinkdir: cannot_unlink_dir may modify process state
30580         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30581         it's neither thread-safe nor appropriate for use in a library.
30582
30583 2009-03-03  Eric Blake  <ebb9@byu.net>
30584
30585         test-closein: silence test under Darwin
30586         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30587         care if it dies from EPIPE or EBADF.
30588
30589 2009-03-03  Bruno Haible  <bruno@clisp.org>
30590
30591         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30592         earlier.
30593         * doc/visibility.texi: Fix @node and @section.
30594
30595 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30596
30597         * doc/gnulib.texi: Link to sections for ld version script and
30598         visibility.
30599         * doc/visibility.texi: Add @node and @section.
30600         * modules/ld-version-script: New module.
30601         * m4/ld-version-script.m4: New file.
30602         * doc/ld-version-script.texi: New file.
30603
30604 2009-03-02  David Lutterkort  <lutter@redhat.com>
30605
30606         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30608
30609 2009-03-02  Bruno Haible  <bruno@clisp.org>
30610
30611         * doc/visibility.texi: Mention libtool's -export-symbols option.
30612
30613 2009-03-02  Jim Meyering  <meyering@redhat.com>
30614
30615         announce-gen: new option: --no-print-checksums
30616         * build-aux/announce-gen (usage): Describe it.
30617         (print_checksums): Print a newline here, not in the [*] footnote.
30618         (main): Honor it.
30619
30620 2009-03-01  Bruno Haible  <bruno@clisp.org>
30621
30622         Use socklen_t in the native Windows replacements prototypes.
30623         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30624         instead of 'int'.
30625         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30626         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30627         * modules/getsockopt (Depends-on): Add socklen.
30628         * modules/setsockopt (Depends-on): Add socklen.
30629
30630 2009-03-01  Bruno Haible  <bruno@clisp.org>
30631
30632         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30633         least 4.2.
30634
30635 2009-03-01  Eric Blake  <ebb9@byu.net>
30636             Bruno Haible  <bruno@clisp.org>
30637
30638         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30639         error messages.
30640         * lib/wait-process.c (wait_subprocess): Omit error message about
30641         deadly signal sent to the child of termsigp != NULL.
30642
30643 2009-03-01  Eric Blake  <ebb9@byu.net>
30644
30645         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30646
30647 2009-03-01  Bruno Haible  <bruno@clisp.org>
30648
30649         Avoid a gcc warning.
30650         * tests/test-sched.c (b): Make global.
30651         Reported by Eric Blake.
30652
30653 2009-01-19  Martin Lambers  <marlam@marlam.de>
30654
30655         Provide POSIX semantics for socket timeout options on W32.
30656         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30657         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30658         * modules/setsockopt: Depend on sys_time module for struct timeval.
30659         * modules/getsockopt: Depend on sys_time module for struct timeval.
30660
30661 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30662
30663         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30664         __USE_GNU, for consistency with netdb.in.h.
30665         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30666
30667 2009-03-01  Bruno Haible  <bruno@clisp.org>
30668
30669         More support for FreeMiNT.
30670         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30671         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30672
30673 2009-03-01  Bruno Haible  <bruno@clisp.org>
30674
30675         More support for FreeMiNT.
30676         * lib/fpurge.c (fpurge): Correct last commit.
30677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30678
30679 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30680
30681         Fix unportable awk script in vc-list-files.
30682         * build-aux/vc-list-files: In the replacement awk script, use
30683         substr with a second argument of 1, not zero.
30684         Report by Simon Josefsson.
30685
30686 2009-02-28  Bruno Haible  <bruno@clisp.org>
30687
30688         More support for FreeMiNT.
30689         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30690         to FreeMiNT today.
30691         * lib/fwriting.c (fwriting): Likewise.
30692         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30693
30694 2009-02-28  Bruno Haible  <bruno@clisp.org>
30695
30696         * tests/test-freadseek.c (main): Disable test beyond end of file on
30697         FreeMiNT.
30698         * tests/test-ftello.c (main): Likewise.
30699         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30700
30701 2009-02-28  Bruno Haible  <bruno@clisp.org>
30702
30703         Add tentative support for FreeMiNT.
30704         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30705         * lib/fpurge.c (fpurge): Likewise.
30706         * lib/freadable.c (freadable): Likewise.
30707         * lib/freading.c (freading): Likewise.
30708         * lib/freadptr.c (freadptr): Likewise.
30709         * lib/freadseek.c (freadptrinc): Likewise.
30710         * lib/fseeko.c (rpl_fseeko): Likewise.
30711         * lib/fseterr.c (fseterr): Likewise.
30712         * lib/fwritable.c (fwritable): Likewise.
30713         * lib/fwriting.c (fwriting): Likewise.
30714         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30715         Hourihane.
30716         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30717
30718 2009-02-28  Bruno Haible  <bruno@clisp.org>
30719
30720         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30721         SIGCHLD.
30722         Reported by Jim Meyering.
30723
30724 2009-02-28  Bruno Haible  <bruno@clisp.org>
30725
30726         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30727         Mention the results of these tests on various platforms.
30728         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30729         order.
30730         * doc/posix-functions/printf.texi: Likewise.
30731         * doc/posix-functions/snprintf.texi: Likewise.
30732         * doc/posix-functions/sprintf.texi: Likewise.
30733         * doc/posix-functions/vfprintf.texi: Likewise.
30734         * doc/posix-functions/vprintf.texi: Likewise.
30735         * doc/posix-functions/vsnprintf.texi: Likewise.
30736         * doc/posix-functions/vsprintf.texi: Likewise.
30737         * doc/glibc-functions/obstack_printf.texi: Likewise.
30738         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30739
30740 2009-02-28  Bruno Haible  <bruno@clisp.org>
30741
30742         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30743         Reported by Loïc Minier <lool@dooz.org>.
30744
30745 2009-02-27  Bruno Haible  <bruno@clisp.org>
30746
30747         * gnulib-tool (func_import): Make the sed expression used to create the
30748         sed script for updating the .gitignore file POSIX compliant.
30749         Reported by Eric Blake.
30750
30751 2009-02-27  Bruno Haible  <bruno@clisp.org>
30752
30753         * gnulib-tool (sed): Don't alias as "sed --posix".
30754         Reported by Eric Blake.
30755
30756 2009-02-27  Bruno Haible  <bruno@clisp.org>
30757
30758         Avoid test link errors.
30759         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30760         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30761         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30762         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30764
30765 2009-02-27  Bruno Haible  <bruno@clisp.org>
30766
30767         Avoid spurious "(cached)" in configure output.
30768         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30769         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30770         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30771         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30772         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30773         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30774         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30775         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30776         Reported by Eric Blake.
30777
30778 2009-02-27  Eric Blake  <ebb9@byu.net>
30779
30780         printf: fix regression in previous patch
30781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30782
30783 2009-02-27  Bruno Haible  <bruno@clisp.org>
30784
30785         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30786         value.
30787         * lib/stdint.in.h: Likewise.
30788         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30789
30790 2009-02-27  Eric Blake  <ebb9@byu.net>
30791
30792         doc: mention more functions added in cygwin 1.7.0
30793         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30794         addition.
30795         * doc/posix-functions/open_wmemstream.texi: Likewise.
30796         * doc/posix-functions/wcsnlen.texi: Likewise.
30797         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30798         * doc/posix-functions/wcstod.texi: Likewise.
30799         * doc/posix-functions/wcstof.texi: Likewise.
30800         * doc/posix-functions/wcstoimax.texi: Likewise.
30801         * doc/posix-functions/wcstok.texi: Likewise.
30802         * doc/posix-functions/wcstoumax.texi: Likewise.
30803
30804         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30806         * doc/posix-functions/fprintf.texi: Update.
30807         * doc/posix-functions/printf.texi: Update.
30808         * doc/posix-functions/snprintf.texi: Update.
30809         * doc/posix-functions/sprintf.texi: Update.
30810         * doc/posix-functions/vfprintf.texi: Update.
30811         * doc/posix-functions/vprintf.texi: Update.
30812         * doc/posix-functions/vsnprintf.texi: Update.
30813         * doc/posix-functions/vsprintf.texi: Update.
30814         * doc/glibc-functions/obstack_printf.texi: Update.
30815         * doc/glibc-functions/obstack_vprintf.texi: Update.
30816
30817 2009-02-26  Eric Blake  <ebb9@byu.net>
30818
30819         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30820         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30821         compilation bug by using runtime conversion.
30822         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30823         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30824         * modules/ceill-tests (Files): Use nan.h.
30825         * modules/floorl-tests (Files): Likewise.
30826         * modules/frexpl-tests (Files): Likewise.
30827         * modules/isnanl-tests (Files): Likewise.
30828         * modules/ldexpl-tests (Files): Likewise.
30829         * modules/roundl-tests (Files): Likewise.
30830         * modules/truncl-tests (Files): Likewise.
30831         * tests/test-ceill.c (main): Use a working NaN.
30832         * tests/test-floorl.c (main): Likewise.
30833         * tests/test-frexpl.c (main): Likewise.
30834         * tests/test-isnan.c (test_long_double): Likewise.
30835         * tests/test-isnanl.h (main): Likewise.
30836         * tests/test-ldexpl.h (main): Likewise.
30837         * tests/test-roundl.h (main): Likewise.
30838         * tests/test-truncl.h (main): Likewise.
30839         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30840
30841 2009-02-26  Eric Blake  <ebb9@byu.net>
30842             Bruno Haible  <bruno@clisp.org>
30843
30844         Work around a *printf bug with %ls on Solaris.
30845         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30846         precision is specified, sprintf stops converting the wide string
30847         argument when the number of bytes that have been produced by this
30848         conversion equals or exceeds the precision.
30849         * doc/posix-functions/fprintf.texi: Update.
30850         * doc/posix-functions/printf.texi: Update.
30851         * doc/posix-functions/snprintf.texi: Update.
30852         * doc/posix-functions/sprintf.texi: Update.
30853         * doc/posix-functions/vfprintf.texi: Update.
30854         * doc/posix-functions/vprintf.texi: Update.
30855         * doc/posix-functions/vsnprintf.texi: Update.
30856         * doc/posix-functions/vsprintf.texi: Update.
30857         * doc/glibc-functions/obstack_printf.texi: Update.
30858         * doc/glibc-functions/obstack_vprintf.texi: Update.
30859
30860 2009-02-26  Eric Blake  <ebb9@byu.net>
30861
30862         stdlib: favor compiler check of random.h
30863         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30864         to avoid an ObjC random.h installed by Swarm.
30865
30866 2009-02-26  Bruno Haible  <bruno@clisp.org>
30867
30868         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30869         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30870         Reported by Gary V. Vaughan <gary@gnu.org>.
30871
30872 2009-02-26  Bruno Haible  <bruno@clisp.org>
30873
30874         Fix *printf behaviour regarding the %ls directive.
30875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30876         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30877         NEED_PRINTF_DIRECTIVE_LS.
30878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30879         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30881         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30882         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30883         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30884         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30887         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30889         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30893         * doc/posix-functions/fprintf.texi: Update.
30894         * doc/posix-functions/printf.texi: Update.
30895         * doc/posix-functions/snprintf.texi: Update.
30896         * doc/posix-functions/sprintf.texi: Update.
30897         * doc/posix-functions/vfprintf.texi: Update.
30898         * doc/posix-functions/vprintf.texi: Update.
30899         * doc/posix-functions/vsnprintf.texi: Update.
30900         * doc/posix-functions/vsprintf.texi: Update.
30901         * doc/glibc-functions/obstack_printf.texi: Update.
30902         * doc/glibc-functions/obstack_vprintf.texi: Update.
30903         Reported by Eric Blake.
30904
30905 2009-02-25  Bruno Haible  <bruno@clisp.org>
30906
30907         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30908         with known value.
30909         Reported by Gary V. Vaughan <gary@gnu.org>.
30910
30911 2009-02-25  Bruno Haible  <bruno@clisp.org>
30912
30913         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30914         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30915         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30916         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30917         Reported by Gary V. Vaughan <gary@gnu.org>.
30918
30919 2009-02-25  Bruno Haible  <bruno@clisp.org>
30920
30921         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30922         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30923         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30924         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30925         Reported by Gary V. Vaughan <gary@gnu.org>.
30926
30927 2009-02-25  Eric Blake  <ebb9@byu.net>
30928
30929         tests: skip fseek/ftell tests if ungetc is broken
30930         * m4/ungetc.m4: New file.
30931         * modules/fseek-tests: Split test, so ungetc dependency is
30932         separate from rest of test.
30933         * modules/fseeko-tests: Likewise.
30934         * modules/ftell-tests: Likewise.
30935         * modules/ftello-tests: Likewise.
30936         * tests/test-fseek.c (main): Isolate ungetc dependency.
30937         * tests/test-fseeko.c (main): Likewise.
30938         * tests/test-ftell.c (main): Likewise.
30939         * tests/test-ftello.c (main): Likewise.
30940         * tests/test-fseek2.sh: New file.
30941         * tests/test-fseeko2.sh: Likewise.
30942         * tests/test-ftell2.sh: Likewise.
30943         * tests/test-ftello2.sh: Likewise.
30944
30945 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30946
30947         test-getaddrinfo: fix usage of skip return code 77
30948         * tests/test-gettaddrinfo.c: Return skip code 77 only
30949         for first occurance of skip (4x77 is not 77)
30950
30951 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30952
30953         strtod: avoid C99 decl-after-statement
30954         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30955
30956 2009-02-24  Eric Blake  <ebb9@byu.net>
30957
30958         strtod: detect HP-UX 11.31 bug
30959         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30960         Reported by Gary V. Vaughan.
30961
30962 2009-02-23  Bruno Haible  <bruno@clisp.org>
30963
30964         Fix invalid read past end of memory block.
30965         * lib/vasnprintf.c (DCHAR_SET): Define.
30966         (local_wcslen): Define only when needed.
30967         (local_strnlen, local_wcsnlen): New functions.
30968         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30969         directives that involve a conversion ourselves.
30970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30971         wcsnlen, mbrtowc, wcrtomb.
30972         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30973         * tests/test-vasprintf-posix.c (test_function): Likewise.
30974         * tests/test-snprintf-posix.h (test_function): Likewise.
30975         * tests/test-sprintf-posix.h (test_function): Likewise.
30976         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30977
30978 2009-02-22  Bruno Haible  <bruno@clisp.org>
30979
30980         Implement new clarified decomposition of Hangul syllables.
30981         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30982         of type LTV, return only a pairwise decomposition.
30983         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30984         Likewise.
30985         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30986         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30987         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30988
30989 2009-02-22  Bruno Haible  <bruno@clisp.org>
30990
30991         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30992         zero-length results and shrink excess allocated memory.
30993         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30994         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30995         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30996         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30997         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30998         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30999         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31000         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31001         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31002         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31003         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31004         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31005
31006 2009-02-21  Bruno Haible  <bruno@clisp.org>
31007
31008         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31009         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31010         spaces after a period. Put a space between a macro name and its
31011         argument list. Trivial rewordings.
31012         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31013         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31014         (main): Return 0 explicitly.
31015
31016 2009-02-21  Bruno Haible  <bruno@clisp.org>
31017
31018         Tests for module 'uninorm/filter'.
31019         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31020         * modules/uninorm/filter-tests: New file.
31021
31022         New module 'uninorm/filter'.
31023         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31024         uninorm_filter_flush, uninorm_filter_free): New declarations.
31025         * lib/uninorm/uninorm-filter.c: New file.
31026         * modules/uninorm/filter: New file.
31027
31028 2009-02-21  Bruno Haible  <bruno@clisp.org>
31029
31030         Tests for module 'uninorm/nfkc'.
31031         * tests/uninorm/test-nfkc.c: New file.
31032         * tests/uninorm/test-u8-nfkc.c: New file.
31033         * tests/uninorm/test-u16-nfkc.c: New file.
31034         * tests/uninorm/test-u32-nfkc.c: New file.
31035         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31036         * tests/uninorm/test-u32-nfkc-big.c: New file.
31037         * modules/uninorm/nfkc-tests: New file.
31038
31039         New module 'uninorm/nfkc'.
31040         * lib/uninorm/nfkc.c: New file.
31041         * modules/uninorm/nfkc: New file.
31042
31043         Tests for module 'uninorm/nfkd'.
31044         * tests/uninorm/test-nfkd.c: New file.
31045         * tests/uninorm/test-u8-nfkd.c: New file.
31046         * tests/uninorm/test-u16-nfkd.c: New file.
31047         * tests/uninorm/test-u32-nfkd.c: New file.
31048         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31049         * tests/uninorm/test-u32-nfkd-big.c: New file.
31050         * modules/uninorm/nfkd-tests: New file.
31051
31052         New module 'uninorm/nfkd'.
31053         * lib/uninorm/nfkd.c: New file.
31054         * modules/uninorm/nfkd: New file.
31055
31056         Tests for module 'uninorm/nfc'.
31057         * tests/uninorm/test-nfc.c: New file.
31058         * tests/uninorm/test-u8-nfc.c: New file.
31059         * tests/uninorm/test-u16-nfc.c: New file.
31060         * tests/uninorm/test-u32-nfc.c: New file.
31061         * tests/uninorm/test-u32-nfc-big.sh: New file.
31062         * tests/uninorm/test-u32-nfc-big.c: New file.
31063         * modules/uninorm/nfc-tests: New file.
31064
31065         New module 'uninorm/nfc'.
31066         * lib/uninorm/nfc.c: New file.
31067         * modules/uninorm/nfc: New file.
31068
31069         Tests for module 'uninorm/nfd'.
31070         * tests/uninorm/test-nfd.c: New file.
31071         * tests/uninorm/test-u8-nfd.c: New file.
31072         * tests/uninorm/test-u16-nfd.c: New file.
31073         * tests/uninorm/test-u32-nfd.c: New file.
31074         * tests/uninorm/test-u32-nfd-big.sh: New file.
31075         * tests/uninorm/test-u32-nfd-big.c: New file.
31076         * tests/uninorm/test-u32-normalize-big.h: New file.
31077         * tests/uninorm/test-u32-normalize-big.c: New file.
31078         * tests/uninorm/NormalizationTest.txt: New file, created from
31079         Unicode 5.1.0 NormalizationTest.txt.
31080         * modules/uninorm/nfd-tests: New file.
31081
31082         New module 'uninorm/nfd'.
31083         * lib/uninorm/nfd.c: New file.
31084         * modules/uninorm/nfd: New file.
31085
31086         New module 'uninorm/u32-normalize'.
31087         * lib/uninorm/u32-normalize.c: New file.
31088         * modules/uninorm/u32-normalize: New file.
31089
31090         New module 'uninorm/u16-normalize'.
31091         * lib/uninorm/u16-normalize.c: New file.
31092         * modules/uninorm/u16-normalize: New file.
31093
31094         New module 'uninorm/u8-normalize'.
31095         * lib/uninorm/u8-normalize.c: New file.
31096         * lib/uninorm/normalize-internal.h: New file.
31097         * lib/uninorm/u-normalize-internal.h: New file.
31098         * modules/uninorm/u8-normalize: New file.
31099
31100         New module 'uninorm/decompose-internal'.
31101         * lib/uninorm/decompose-internal.c: New file.
31102         * modules/uninorm/decompose-internal: New file.
31103
31104         Tests for module 'uninorm/composition'.
31105         * tests/uninorm/test-composition.c: New file.
31106         * modules/uninorm/composition-tests: New file.
31107
31108         New module 'uninorm/composition'.
31109         * lib/uninorm/composition.c: New file.
31110         * lib/uninorm/composition-table.gperf: New file, generated by
31111         gen-uni-tables.
31112         * modules/uninorm/composition: New file.
31113
31114         Tests for module 'uninorm/compat-decomposition'.
31115         * tests/uninorm/test-compat-decomposition.c: New file.
31116         * modules/uninorm/compat-decomposition-tests: New file.
31117
31118         New module 'uninorm/compat-decomposition'.
31119         * lib/uninorm/decompose-internal.h: New file.
31120         * lib/uninorm/compat-decomposition.c: New file.
31121         * modules/uninorm/compat-decomposition: New file.
31122
31123         Tests for module 'uninorm/canonical-decomposition'.
31124         * tests/uninorm/test-canonical-decomposition.c: New file.
31125         * modules/uninorm/canonical-decomposition-tests: New file.
31126
31127         New module 'uninorm/canonical-decomposition'.
31128         * lib/uninorm/canonical-decomposition.c: New file.
31129         * modules/uninorm/canonical-decomposition: New file.
31130
31131         Tests for module 'uninorm/decomposition'.
31132         * tests/uninorm/test-decomposition.c: New file.
31133         * modules/uninorm/decomposition-tests: New file.
31134
31135         New module 'uninorm/decomposition'.
31136         * lib/uninorm/decomposition.c: New file.
31137         * modules/uninorm/decomposition: New file.
31138
31139         New module 'uninorm/decomposition-table'.
31140         * lib/uninorm/decomposition-table.h: New file.
31141         * lib/uninorm/decomposition-table.c: New file.
31142         * lib/uninorm/decomposition-table1.h: New file, generated by
31143         gen-uni-tables.
31144         * lib/uninorm/decomposition-table2.h: New file, generated by
31145         gen-uni-tables.
31146         * modules/uninorm/decomposition-table: New file.
31147
31148         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31149         (UC_DECOMP_*): New enumeration items.
31150         (get_decomposition): New function.
31151         (struct decomp_table): New type.
31152         (output_decomposition, output_decomposition_tables): New functions.
31153         (unicode_composition_exclusions): New variable.
31154         (fill_composition_exclusions, debug_output_composition_tables): New
31155         functions.
31156         (main): Accept one more argument. Invoke fill_composition_exclusions.
31157         Output decomposition and composition tables.
31158
31159         New module 'uninorm/base'.
31160         * lib/uninorm.h: New file.
31161         * lib/unictype.h: Update comment.
31162         * modules/uninorm/base: New file.
31163
31164 2009-02-21  David Lutterkort  <lutter@redhat.com>
31165
31166         Tests for module 'safe-alloc'.
31167         * tests/test-safe-alloc.c: New file.
31168         * modules/safe-alloc-tests: New file.
31169
31170         New module 'safe-alloc'.
31171         * lib/safe-alloc.h: New file.
31172         * lib/safe-alloc.c: New file.
31173         * m4/safe-alloc.m4: New file.
31174         * modules/safe-alloc: New file.
31175         * doc/safe-alloc.texi: New file.
31176         * doc/gnulib.texi: Include it.
31177         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31178         safe-alloc.
31179
31180 2009-02-18  Bruno Haible  <bruno@clisp.org>
31181
31182         Fix link error on non-glibc systems.
31183         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31184         variable.
31185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31186
31187 2009-02-18  Jim Meyering  <meyering@redhat.com>
31188
31189         fts: avoid used-uninitialized error due to recent change
31190         * lib/fts.c (fts_read): Guard uses of the new member,
31191         parent->fts_n_dirs_remaining, since it's not relevant for
31192         the parent of a directory specified on the command-line.
31193
31194 2009-02-17  James Youngman  <jay@gnu.org>
31195             Bruno Haible  <bruno@clisp.org>
31196
31197         * m4/include_next.m4: Reformulate comment.
31198
31199 2009-02-16  Jim Meyering  <meyering@redhat.com>
31200
31201         fts: add #if guards so that the fts_lgpl module still builds
31202         * lib/fts.c: Guard just-added hash-table-using parts with
31203         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31204         Reported by Simon Josefsson.
31205
31206 2009-02-15  Bruno Haible  <bruno@clisp.org>
31207
31208         * modules/array-mergesort-tests: New file.
31209         * tests/test-array-mergesort.c: New file.
31210
31211         New module 'array-mergesort'.
31212         * modules/array-mergesort: New file.
31213         * lib/array-mergesort.h: New file.
31214
31215 2009-02-15  Bruno Haible  <bruno@clisp.org>
31216
31217         Fix 2009-02-07 commit.
31218         * lib/gen-uni-tables.c (output_predicate, output_category,
31219         output_combclass, output_bidi_category, output_decimal_digit,
31220         output_digit, output_numeric, output_mirror, output_scripts,
31221         output_ident_category, output_simple_mapping): Fix format directives.
31222         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31223
31224 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31225
31226         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31227         fixes are available from IBM.
31228
31229 2009-02-13  Jim Meyering  <meyering@redhat.com>
31230
31231         fts: arrange not to stat non-directories in more cases
31232         This makes GNU find (when it doesn't need to stat each file)
31233         *much* more efficient at traversing reiserfs file systems.
31234         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31235         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31236         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31237         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31238         (leaf_optimization_applies): New function.
31239         (LCO_hash, LCO_compare): New helper functions.
31240         (link_count_optimize_ok): New function.
31241         (fts_stat): Initialize new member (if dir).
31242         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31243         we've just stat'ed a directory.  Skip the stat call when possible.
31244         ---
31245         Note this AFS-related exchange:
31246         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31247         and note find's pioctl call in find/fstype.c.
31248         But that is necessary only if you want to enable the
31249         optimization for AFS, and for now, I don't.
31250
31251         fts: move a function definition "up" (no semantic change)
31252         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31253         "up" to precede upcoming use of a related function.
31254
31255 2009-02-11  Jim Meyering  <meyering@redhat.com>
31256
31257         fts: correct internal computation of nlinks (optimization-related)
31258         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31259         whether the current entry is a directory, so don't test it.
31260
31261 2009-02-10  Bruno Haible  <bruno@clisp.org>
31262
31263         Tests for module 'uniwbrk/ulc-wordbreaks'.
31264         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31265         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31266         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31267
31268         Tests for module 'uniwbrk/u32-wordbreaks'.
31269         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31270         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31271
31272         Tests for module 'uniwbrk/u16-wordbreaks'.
31273         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31274         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31275
31276         Tests for module 'uniwbrk/u8-wordbreaks'.
31277         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31278         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31279
31280 2009-02-10  Bruno Haible  <bruno@clisp.org>
31281
31282         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31283         property.
31284         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31285         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31286         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31287
31288 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31289
31290         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31291         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31292
31293 2009-02-10  Bruno Haible  <bruno@clisp.org>
31294
31295         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31296         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31297         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31298         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31299         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31300         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31301
31302 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31303
31304         * lib/sockets.h (gl_fd_to_handle): New function.
31305
31306         * tests/test-sockets.c: Call gl_fd_to_handle.
31307
31308 2009-02-09  Bruno Haible  <bruno@clisp.org>
31309
31310         * doc/havelib.texi: Document the conventions on bi-arch systems.
31311
31312 2009-02-08  Bruno Haible  <bruno@clisp.org>
31313
31314         Document the AC_LIB_LINKFLAGS macro.
31315         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31316         * doc/gnulib.texi: Include it.
31317
31318 2009-02-08  Bruno Haible  <bruno@clisp.org>
31319
31320         Fix wrong order of sections, compared to TOC.
31321         * doc/gnulib.texi: Include relocatable-maint.texi after the
31322         "Regular expressions" node, not before.
31323
31324 2009-02-08  Bruno Haible  <bruno@clisp.org>
31325
31326         Tests for module 'unicase/totitle'.
31327         * modules/unicase/totitle-tests: New file.
31328
31329         Tests for module 'unicase/tolower'.
31330         * modules/unicase/tolower-tests: New file.
31331
31332         Tests for module 'unicase/toupper'.
31333         * modules/unicase/toupper-tests: New file.
31334         * tests/unicase/test-mapping-part1.h: New file.
31335         * tests/unicase/test-mapping-part2.h: New file.
31336
31337         New module 'unicase/totitle'.
31338         * modules/unicase/totitle: New file.
31339         * lib/unicase/totitle.c: New file.
31340
31341         New module 'unicase/tolower'.
31342         * modules/unicase/tolower: New file.
31343         * lib/unicase/tolower.c: New file.
31344
31345         New module 'unicase/toupper'.
31346         * modules/unicase/toupper: New file.
31347         * lib/unicase/toupper.c: New file.
31348         * lib/unicase/simple-mapping.h: New file.
31349
31350         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31351         (mapping_table): New structure.
31352         (output_simple_mapping): New function.
31353         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31354         * modules/gen-uni-tables (Description): Update.
31355         * lib/unicase/toupper.h: New file, automatically generated by
31356         gen-uni-tables.
31357         * lib/unicase/tolower.h: New file, automatically generated by
31358         gen-uni-tables.
31359         * lib/unicase/totitle.h: New file, automatically generated by
31360         gen-uni-tables.
31361         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31362         gen-uni-tables.
31363         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31364         gen-uni-tables.
31365         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31366         gen-uni-tables.
31367
31368         New module 'unicase/base'.
31369         * modules/unicase/base: New file.
31370         * lib/unicase.h: New file.
31371
31372 2009-02-08  Bruno Haible  <bruno@clisp.org>
31373
31374         New module 'uniwbrk/ulc-wordbreaks'.
31375         * modules/uniwbrk/ulc-wordbreaks: New file.
31376         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31377
31378         New module 'uniwbrk/u32-wordbreaks'.
31379         * modules/uniwbrk/u32-wordbreaks: New file.
31380         * lib/uniwbrk/u32-wordbreaks.c: New file.
31381
31382         New module 'uniwbrk/u16-wordbreaks'.
31383         * modules/uniwbrk/u16-wordbreaks: New file.
31384         * lib/uniwbrk/u16-wordbreaks.c: New file.
31385
31386         New module 'uniwbrk/u8-wordbreaks'.
31387         * modules/uniwbrk/u8-wordbreaks: New file.
31388         * lib/uniwbrk/u8-wordbreaks.c: New file.
31389         * lib/uniwbrk/u-wordbreaks.h: New file.
31390
31391         New module 'uniwbrk/table'.
31392         * modules/uniwbrk/table: New file.
31393         * lib/uniwbrk/wbrktable.h: New file.
31394         * lib/uniwbrk/wbrktable.c: New file.
31395
31396         New module 'uniwbrk/wordbreak-property'.
31397         * modules/uniwbrk/wordbreak-property: New file.
31398         * lib/uniwbrk/wordbreak-property.c: New file.
31399
31400         * lib/gen-uni-tables.c (WBP_*): New enum items.
31401         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31402         (unicode_org_wbp): New variable.
31403         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31404         New functions.
31405         (wbp_table): New structure.
31406         (output_wbp, output_wbrk_tables): New functions.
31407         (main): Accept additional argument. Invoke fill_org_wbp,
31408         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31409         output_wbrk_tables.
31410         * modules/gen-uni-tables (Description): Update.
31411         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31412         gen-uni-tables.
31413
31414         New module 'uniwbrk/base'.
31415         * modules/uniwbrk/base: New file.
31416         * lib/uniwbrk.h: New file.
31417
31418 2009-02-08  Bruno Haible  <bruno@clisp.org>
31419
31420         Update to Unicode 5.1.0.
31421         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31422         U+2185..U+2188.
31423         (is_property_default_ignorable_code_point): Don't include characters
31424         of category Cc or Cs and not-a-characters.
31425         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31426         U+0D79, U+109E, U+109F, U+A60C.
31427         * lib/unictype/bidi_of.h: Regenerated.
31428         * lib/unictype/blocks.h: Regenerated.
31429         * lib/unictype/categ_C.h: Regenerated.
31430         * lib/unictype/categ_Cf.h: Regenerated.
31431         * lib/unictype/categ_Cn.h: Regenerated.
31432         * lib/unictype/categ_L.h: Regenerated.
31433         * lib/unictype/categ_Ll.h: Regenerated.
31434         * lib/unictype/categ_Lm.h: Regenerated.
31435         * lib/unictype/categ_Lo.h: Regenerated.
31436         * lib/unictype/categ_Lu.h: Regenerated.
31437         * lib/unictype/categ_M.h: Regenerated.
31438         * lib/unictype/categ_Mc.h: Regenerated.
31439         * lib/unictype/categ_Me.h: Regenerated.
31440         * lib/unictype/categ_Mn.h: Regenerated.
31441         * lib/unictype/categ_N.h: Regenerated.
31442         * lib/unictype/categ_Nd.h: Regenerated.
31443         * lib/unictype/categ_Nl.h: Regenerated.
31444         * lib/unictype/categ_No.h: Regenerated.
31445         * lib/unictype/categ_P.h: Regenerated.
31446         * lib/unictype/categ_Pd.h: Regenerated.
31447         * lib/unictype/categ_Pe.h: Regenerated.
31448         * lib/unictype/categ_Pf.h: Regenerated.
31449         * lib/unictype/categ_Pi.h: Regenerated.
31450         * lib/unictype/categ_Po.h: Regenerated.
31451         * lib/unictype/categ_Ps.h: Regenerated.
31452         * lib/unictype/categ_S.h: Regenerated.
31453         * lib/unictype/categ_Sk.h: Regenerated.
31454         * lib/unictype/categ_Sm.h: Regenerated.
31455         * lib/unictype/categ_So.h: Regenerated.
31456         * lib/unictype/categ_of.h: Regenerated.
31457         * lib/unictype/combining.h: Regenerated.
31458         * lib/unictype/ctype_alnum.h: Regenerated.
31459         * lib/unictype/ctype_alpha.h: Regenerated.
31460         * lib/unictype/ctype_graph.h: Regenerated.
31461         * lib/unictype/ctype_lower.h: Regenerated.
31462         * lib/unictype/ctype_print.h: Regenerated.
31463         * lib/unictype/ctype_punct.h: Regenerated.
31464         * lib/unictype/ctype_upper.h: Regenerated.
31465         * lib/unictype/decdigit.h: Regenerated.
31466         * lib/unictype/digit.h: Regenerated.
31467         * lib/unictype/mirror.h: Regenerated.
31468         * lib/unictype/numeric.h: Regenerated.
31469         * lib/unictype/pr_alphabetic.h: Regenerated.
31470         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31471         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31472         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31473         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31474         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31475         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31476         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31477         * lib/unictype/pr_combining.h: Regenerated.
31478         * lib/unictype/pr_dash.h: Regenerated.
31479         * lib/unictype/pr_decimal_digit.h: Regenerated.
31480         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31481         * lib/unictype/pr_deprecated.h: Regenerated.
31482         * lib/unictype/pr_diacritic.h: Regenerated.
31483         * lib/unictype/pr_extender.h: Regenerated.
31484         * lib/unictype/pr_format_control.h: Regenerated.
31485         * lib/unictype/pr_grapheme_base.h: Regenerated.
31486         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31487         * lib/unictype/pr_grapheme_link.h: Regenerated.
31488         * lib/unictype/pr_id_continue.h: Regenerated.
31489         * lib/unictype/pr_id_start.h: Regenerated.
31490         * lib/unictype/pr_ideographic.h: Regenerated.
31491         * lib/unictype/pr_ignorable_control.h: Regenerated.
31492         * lib/unictype/pr_lowercase.h: Regenerated.
31493         * lib/unictype/pr_math.h: Regenerated.
31494         * lib/unictype/pr_numeric.h: Regenerated.
31495         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31496         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31497         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31498         * lib/unictype/pr_other_id_continue.h: Regenerated.
31499         * lib/unictype/pr_other_lowercase.h: Regenerated.
31500         * lib/unictype/pr_other_math.h: Regenerated.
31501         * lib/unictype/pr_punctuation.h: Regenerated.
31502         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31503         * lib/unictype/pr_soft_dotted.h: Regenerated.
31504         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31505         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31506         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31507         * lib/unictype/pr_uppercase.h: Regenerated.
31508         * lib/unictype/pr_xid_continue.h: Regenerated.
31509         * lib/unictype/pr_xid_start.h: Regenerated.
31510         * lib/unictype/pr_zero_width.h: Regenerated.
31511         * lib/unictype/scripts.h: Regenerated.
31512         * lib/unictype/scripts_byname.gperf: Regenerated.
31513         * lib/unictype/sy_java_ident.h: Regenerated.
31514         * lib/unilbrk/lbrkprop1.h: Regenerated.
31515         * lib/unilbrk/lbrkprop2.h: Regenerated.
31516         * tests/unictype/test-categ_C.c: Regenerated.
31517         * tests/unictype/test-categ_Cf.c: Regenerated.
31518         * tests/unictype/test-categ_Cn.c: Regenerated.
31519         * tests/unictype/test-categ_L.c: Regenerated.
31520         * tests/unictype/test-categ_Ll.c: Regenerated.
31521         * tests/unictype/test-categ_Lm.c: Regenerated.
31522         * tests/unictype/test-categ_Lo.c: Regenerated.
31523         * tests/unictype/test-categ_Lu.c: Regenerated.
31524         * tests/unictype/test-categ_M.c: Regenerated.
31525         * tests/unictype/test-categ_Mc.c: Regenerated.
31526         * tests/unictype/test-categ_Me.c: Regenerated.
31527         * tests/unictype/test-categ_Mn.c: Regenerated.
31528         * tests/unictype/test-categ_N.c: Regenerated.
31529         * tests/unictype/test-categ_Nd.c: Regenerated.
31530         * tests/unictype/test-categ_Nl.c: Regenerated.
31531         * tests/unictype/test-categ_No.c: Regenerated.
31532         * tests/unictype/test-categ_P.c: Regenerated.
31533         * tests/unictype/test-categ_Pd.c: Regenerated.
31534         * tests/unictype/test-categ_Pe.c: Regenerated.
31535         * tests/unictype/test-categ_Pf.c: Regenerated.
31536         * tests/unictype/test-categ_Pi.c: Regenerated.
31537         * tests/unictype/test-categ_Po.c: Regenerated.
31538         * tests/unictype/test-categ_Ps.c: Regenerated.
31539         * tests/unictype/test-categ_S.c: Regenerated.
31540         * tests/unictype/test-categ_Sk.c: Regenerated.
31541         * tests/unictype/test-categ_Sm.c: Regenerated.
31542         * tests/unictype/test-categ_So.c: Regenerated.
31543         * tests/unictype/test-ctype_alnum.c: Regenerated.
31544         * tests/unictype/test-ctype_alpha.c: Regenerated.
31545         * tests/unictype/test-ctype_graph.c: Regenerated.
31546         * tests/unictype/test-ctype_lower.c: Regenerated.
31547         * tests/unictype/test-ctype_print.c: Regenerated.
31548         * tests/unictype/test-ctype_punct.c: Regenerated.
31549         * tests/unictype/test-ctype_upper.c: Regenerated.
31550         * tests/unictype/test-decdigit.h: Regenerated.
31551         * tests/unictype/test-digit.h: Regenerated.
31552         * tests/unictype/test-numeric.h: Regenerated.
31553         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31554         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31555         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31556         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31557         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31558         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31559         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31560         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31561         * tests/unictype/test-pr_combining.c: Regenerated.
31562         * tests/unictype/test-pr_dash.c: Regenerated.
31563         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31564         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31565         * tests/unictype/test-pr_deprecated.c: Regenerated.
31566         * tests/unictype/test-pr_diacritic.c: Regenerated.
31567         * tests/unictype/test-pr_extender.c: Regenerated.
31568         * tests/unictype/test-pr_format_control.c: Regenerated.
31569         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31570         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31571         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31572         * tests/unictype/test-pr_id_continue.c: Regenerated.
31573         * tests/unictype/test-pr_id_start.c: Regenerated.
31574         * tests/unictype/test-pr_ideographic.c: Regenerated.
31575         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31576         * tests/unictype/test-pr_lowercase.c: Regenerated.
31577         * tests/unictype/test-pr_math.c: Regenerated.
31578         * tests/unictype/test-pr_numeric.c: Regenerated.
31579         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31580         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31581         Regenerated.
31582         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31583         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31584         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31585         * tests/unictype/test-pr_other_math.c: Regenerated.
31586         * tests/unictype/test-pr_punctuation.c: Regenerated.
31587         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31588         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31589         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31590         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31591         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31592         * tests/unictype/test-pr_uppercase.c: Regenerated.
31593         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31594         * tests/unictype/test-pr_xid_start.c: Regenerated.
31595         * tests/unictype/test-pr_zero_width.c: Regenerated.
31596
31597         Update to Unicode 5.1.0.
31598         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31599         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31600         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31601         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31602         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31603         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31604         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31605         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31606         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31607         (nonspacing_table_ind): Update.
31608         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31609
31610         Update to Unicode 5.1.0.
31611         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31612         code transform.
31613         * lib/uniname/uniname.c (unicode_character_name,
31614         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31615         * lib/uniname/uninames.h: Regenerated.
31616         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31617
31618 2009-02-07  Bruno Haible  <bruno@clisp.org>
31619
31620         Merge gen-ctype and gen-lbrk into a single program.
31621         * lib/gen-uni-tables.c: New file, incorporating
31622         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31623         Add directory prefixes to the names of the generated files.
31624         * lib/unictype/gen-ctype.c: Remove file.
31625         * lib/unilbrk/gen-lbrk.c: Remove file.
31626         * modules/gen-uni-tables: New file.
31627         * modules/unictype/gen-ctype: Remove file.
31628         * modules/unilbrk/gen-lbrk: Remove file.
31629
31630 2009-02-07  Bruno Haible  <bruno@clisp.org>
31631
31632         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31633
31634         New module 'unistr/u32-strcoll'.
31635         * modules/unistr/u32-strcoll: New file.
31636         * lib/unistr/u32-strcoll.c: New file.
31637
31638         New module 'unistr/u16-strcoll'.
31639         * modules/unistr/u16-strcoll: New file.
31640         * lib/unistr/u16-strcoll.c: New file.
31641
31642         New module 'unistr/u8-strcoll'.
31643         * modules/unistr/u8-strcoll: New file.
31644         * lib/unistr/u8-strcoll.c: New file.
31645         * lib/unistr/u-strcoll.h: New file.
31646
31647 2009-02-07  Bruno Haible  <bruno@clisp.org>
31648
31649         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31650         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31651         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31652         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31653         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31654         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31655
31656 2009-02-07  Bruno Haible  <bruno@clisp.org>
31657
31658         Make 64-bit clean.
31659         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31660         output_combclass, output_bidi_category, output_decimal_digit,
31661         output_digit, output_numeric, output_mirror, output_scripts,
31662         output_ident_category): Use proper width specifier in format strings.
31663
31664 2009-02-07  Bruno Haible  <bruno@clisp.org>
31665
31666         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31667         failure behaviour.
31668
31669 2009-02-07  Jim Meyering  <meyering@redhat.com>
31670
31671         regex: avoid compilation failure with upcoming gcc-4.4
31672         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31673         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31674         "... error: integer overflow in preprocessor expression".
31675
31676 2009-02-05  Ben Pfaff  <blp@gnu.org>
31677
31678         Fix link errors on Windows when close module is used.
31679         * modules/close: Add $(LIB_CLOSE) to Link section.
31680         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31681         $(LIB_CLOSE) on Windows.
31682
31683 2009-02-05  Jim Meyering  <meyering@redhat.com>
31684
31685         still avoid unused-parameter warnings, but do it cleanly
31686         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31687         (get_fs_usage): Cast to void instead.
31688         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31689         (dev_from_mount_options, read_file_system_list): Cast to void.
31690         Prompted by Bruno Haible.
31691
31692 2009-02-04  Jim Meyering  <meyering@redhat.com>
31693
31694         fsusage.c: correct copyright year
31695         * lib/fsusage.c: Reflect year in which the change is pushed into
31696
31697         avoid misc. warnings
31698         * lib/fsusage.c (UNUSED_PARAM): Define.
31699         (get_fs_usage): Mark parameter "disk" as unused.
31700         * lib/getugroups.c (getgrent): Use "void" in prototype.
31701         * lib/mountlist.c: Mark unused parameters.
31702         (read_file_system_list): Declare a local with "const".
31703         * lib/nanosleep.c (getnow): Declare static.
31704         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31705
31706         dirfd: set errno upon failure
31707         * lib/dirfd.c: Include <errno.h>.
31708         Set errno to ENOTSUP when returning -1.
31709         * modules/dirfd (Depends-on): Add errno.
31710         Suggested by John Kodis <kodis@comcast.net>.
31711
31712 2009-02-01  Bruno Haible  <bruno@clisp.org>
31713
31714         Don't assume sizeof (long) >= sizeof (void *).
31715         * lib/memcmp.c: Include stdint.h.
31716         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31717         srcp2 to 'const byte *'.
31718         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31719         types to uintptr_t.
31720         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31721         * modules/memcmp (Depends-on): Add stdint.
31722         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31723
31724 2009-01-30  Eric Blake  <ebb9@byu.net>
31725
31726         fix more require-before-expand issues
31727         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31728         expand, AC_PROG_AWK.
31729         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31730
31731 2009-01-28  Eric Blake  <ebb9@byu.net>
31732
31733         version-etc: use consistent URL formatting
31734         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31735         Improve formatting.  Use fputs for string without %.
31736
31737 2009-01-28  Jim Meyering  <meyering@redhat.com>
31738
31739         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31740         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31741         "underquoted definition of NAME" from autoconf-2.59.
31742
31743 2009-01-28  Bruno Haible  <bruno@clisp.org>
31744
31745         * doc/gnulib.texi: Add "Obsolete modules" to index.
31746
31747 2009-01-28  Jim Meyering  <meyering@redhat.com>
31748
31749         useless-if-before-free: recognize more variants
31750         * build-aux/useless-if-before-free: Also recognize e.g.,
31751         if (NULL != p) free (p);
31752
31753 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31754
31755         test-getaddrinfo: skip (don't fail) this test when there's no network
31756         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31757         on the presumption that it means you lack network access.
31758
31759 2009-01-26  Jim Meyering  <meyering@redhat.com>
31760
31761         fflush: avoid warnings on modern systems
31762         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31763         pos and result, into scopes where they're used.
31764
31765 2009-01-26  Eric Blake  <ebb9@byu.net>
31766
31767         Silence warning reintroduced by recent extensions patch.
31768         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31769         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31770         autoconf.
31771
31772         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31773         * m4/00gnulib.m4: New file.
31774         * gnulib-tool (func_get_filelist): Always use it.
31775         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31776         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31777
31778 2009-01-25  Bruno Haible  <bruno@clisp.org>
31779
31780         Make test-quotearg work on MacOS X and AIX.
31781         * tests/test-quotearg.sh: New file.
31782         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31783         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31784         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31785         include <libintl.h>.
31786         (fake_locale): Remove variable.
31787         (gettext, dgettext, dcgettext): Remove functions.
31788         (main): Instead of setting a fake locale, set a real locale. Call
31789         textdomain and bindtextdomain.
31790         * modules/quotearg-tests (Files): Add the new files.
31791         (Depends-on): Add gettext, setenv, unsetenv.
31792         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31793         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31794         Augment TESTS_ENVIRONMENT.
31795
31796 2009-01-25  Bruno Haible  <bruno@clisp.org>
31797
31798         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31799         fr_FR.ISO8859-1 locale on MacOS X.
31800         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31801         ja_JP.eucJP locale on MacOS X.
31802         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31803         zh_CN.GB18030 locale on MacOS X.
31804
31805 2009-01-25  Bruno Haible  <bruno@clisp.org>
31806
31807         Avoid link errors on MacOS X 10.3.
31808         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31809         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31810
31811 2009-01-25  Bruno Haible  <bruno@clisp.org>
31812
31813         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31814         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31815         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31816         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31817         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31818         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31819         posix_spawnattr_init, posix_spawnattr_setsigmask,
31820         posix_spawnattr_setflags, posix_spawnattr_destroy.
31821
31822         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31823         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31824         * modules/execute (Files): Remove m4/posix_spawn.m4.
31825         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31826         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31827         posix_spawnattr_init, posix_spawnattr_setsigmask,
31828         posix_spawnattr_setflags, posix_spawnattr_destroy.
31829
31830 2009-01-25  Bruno Haible  <bruno@clisp.org>
31831
31832         * lib/glthread/threadlib.c: Include <stdlib.h>.
31833
31834 2009-01-25  Bruno Haible  <bruno@clisp.org>
31835
31836         * lib/glthread/threadlib.c (dummy): New declaration.
31837
31838 2009-01-25  Bruno Haible  <bruno@clisp.org>
31839
31840         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31841         multibyte characters also for the GB18030 encoding. Don't crash when
31842         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31843
31844 2009-01-25  Bruno Haible  <bruno@clisp.org>
31845
31846         Avoid redefining 'struct random_data' on OSF/1 5.1.
31847         * lib/stdlib.in.h: Include <random.h> if it exists.
31848         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31849         HAVE_RANDOM_H. Include <random.h> when testing whether
31850         'struct random_data' exists.
31851         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31852
31853 2009-01-25  Bruno Haible  <bruno@clisp.org>
31854
31855         Don't install charset.alias on MacOS X >= 10.3.
31856         * lib/localcharset.c (DARWIN7): New macro.
31857         (get_charset_aliases): Hardcode the result for Darwin7.
31858         * modules/localcharset (install-exec-local): Don't install
31859         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31860
31861 2009-01-25  Bruno Haible  <bruno@clisp.org>
31862
31863         Don't install charset.alias on mingw and Cygwin.
31864         * modules/localcharset (install-exec-local): Don't install
31865         charset.alias on mingw and Cygwin, if the file does not yet exist.
31866         The result for these platforms is hardcoded in localcharset.c.
31867
31868 2009-01-25  Bruno Haible  <bruno@clisp.org>
31869
31870         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31872         before requiring AC_USE_SYSTEM_EXTENSIONS.
31873
31874 2009-01-25  Jim Meyering  <meyering@redhat.com>
31875
31876         c-strtod: avoid warnings
31877         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31878         "assignment discards qualifiers from pointer target type" warnings.
31879
31880 2009-01-24  Bruno Haible  <bruno@clisp.org>
31881
31882         Add support for non-UTF-8 locales on MacOS X.
31883         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31884         canonical encodings. For Darwin 7 and newer, don't map traditional
31885         encodings to UTF-8.
31886         Reported by Vincent Lefevre <vincent@vinc17.org>
31887         at <http://savannah.gnu.org/bugs/?25235>.
31888
31889 2009-01-24  Bruno Haible  <bruno@clisp.org>
31890
31891         * doc/gnulib.texi (Obsolete modules): New section.
31892         Reported by Mike Frysinger <vapier@gentoo.org>.
31893
31894 2009-01-24  Bruno Haible  <bruno@clisp.org>
31895
31896         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31897         (%.dvi): New rule.
31898
31899 2009-01-24  Bruno Haible  <bruno@clisp.org>
31900
31901         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31902         Reported by Eric Blake.
31903
31904 2009-01-24  Bruno Haible  <bruno@clisp.org>
31905
31906         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31907         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31908         Reported by Gary V. Vaughan <gary@gnu.org>.
31909
31910 2009-01-24  Bruno Haible  <bruno@clisp.org>
31911
31912         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31913
31914 2009-01-23  Bruno Haible  <bruno@clisp.org>
31915
31916         Make c-strtod, c-strtold usable in libraries.
31917         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31918         (C_STRTOD): Call strdup instead of xstrdup.
31919         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31920         * modules/c-strtold (Depends-on): Likewise.
31921         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31922         * NEWS: Mention the change.
31923         Reported by Michael Gold <mgold@ncf.ca>.
31924
31925 2009-01-23  Jim Meyering  <meyering@redhat.com>
31926
31927         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31928         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31929         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31930
31931 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31932
31933         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31934         GNU CoreUtils.
31935         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31936         * modules/version-etc (Description): Update.
31937
31938 2009-01-22  Bruno Haible  <bruno@clisp.org>
31939
31940         Cache the C locale object.
31941         * lib/c-strtod.c (c_locale_cache): New variable.
31942         (c_locale): New function.
31943         (C_STRTOD): Use it, and don't call freelocale.
31944         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31945         Suggested by Paolo Bonzini.
31946
31947 2009-01-21  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31950         conditions other than overflow.
31951
31952 2009-01-21  Bruno Haible  <bruno@clisp.org>
31953
31954         * lib/c-strtod.c: Include errno.h.
31955         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31956         value from STRTOD_L and STRTOD.
31957
31958 2009-01-21  Bruno Haible  <bruno@clisp.org>
31959         and Jim Meyering  <meyering@redhat.com>
31960
31961         nanosleep: skip configure test (fail it) for apple universal builds
31962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31963         universal builds, assume that nanosleep does not work.
31964         * modules/nanosleep (Depends-on): Add multiarch.
31965
31966         mktime: skip configure test (fail it) for apple universal builds
31967         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31968         universal builds, assume that mktime does not work.
31969         * modules/mktime (Depends-on): Add multiarch.
31970
31971 2009-01-21  Eric Blake  <ebb9@byu.net>
31972
31973         multiarch: avoid expand-before-require warning
31974         * modules/multiarch (configure.ac): Require, rather than expand,
31975         gl_MULTIARCH.
31976         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31977         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31978         enforce that all clients require it.  Partial reversion of
31979         2008-12-29 patch.
31980
31981         error: avoid expand-before-require warning
31982         * modules/errno (configure.ac): Require, rather than expand,
31983         gl_HEADER_ERRNO_H.
31984         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31985         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31986         enforce that all clients require it.
31987
31988         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31989         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31990         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31991         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31992
31993 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31994
31995         Revert:
31996         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31997
31998         regex: do not depend on obsolete modules.
31999         * modules/regex: Remove memcmp and memmove.
32000
32001 2009-01-20  Bruno Haible  <bruno@clisp.org>
32002
32003         Make the 'link' module link on Windows NT 4.
32004         * lib/link.c (_WIN32_WINNT): Don't define.
32005         (CreateHardLinkFuncType): New type.
32006         (CreateHardLinkFunc, initialized): New variables.
32007         (initialize): New function.
32008         (link): Invoke CreateHardLink indirectly through the function pointer.
32009
32010 2009-01-20  Bruno Haible  <bruno@clisp.org>
32011
32012         Fix compilation failure on mingw.
32013         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32014
32015 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32016
32017         * doc/c-strtod.texi: Mention a couple of restrictions.
32018
32019 2009-01-20  Jim Meyering  <meyering@redhat.com>
32020
32021         gettimeofday: move more declarations out of functions
32022         * lib/gettimeofday.c: Move extern declarations of tzset and
32023         gmtime out of containing functions.  Prompted by Bruno Haible.
32024
32025 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32026
32027         regex: do not depend on obsolete modules.
32028         * modules/regex: Remove memcmp and memmove.
32029
32030 2009-01-19  Bruno Haible  <bruno@clisp.org>
32031
32032         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32033         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32034         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32035         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32036         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32037
32038 2009-01-19  Bruno Haible  <bruno@clisp.org>
32039
32040         * tests/test-link.c: Include <errno.h>.
32041         (main): Exit with code 77 when a hard link cannot be created due to
32042         the file system.
32043         * tests/test-link.sh: Skip test when a hard link cannot be created due
32044         to the file system.
32045         Suggested by Eric Blake.
32046
32047 2009-01-19  Martin Lambers  <marlam@marlam.de>
32048
32049         * modules/link-tests: New file.
32050         * tests/test-link.sh: New file.
32051         * tests/test-link.c: New file.
32052
32053 2009-01-19  Eric Blake  <ebb9@byu.net>
32054
32055         doc: mention another function added in cygwin 1.7.0
32056         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32057         Another new function in cygwin 1.7.
32058
32059 2009-01-19  Bruno Haible  <bruno@clisp.org>
32060
32061         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32062         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32063         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32064         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32065         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32066         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32067         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32068         * m4/md4.m4 (gl_MD4): Likewise.
32069         * m4/md5.m4 (gl_MD5): Likewise.
32070         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32071         * m4/sha1.m4 (gl_SHA1): Likewise.
32072         * m4/sha256.m4 (gl_SHA256): Likewise.
32073         * m4/sha512.m4 (gl_SHA512): Likewise.
32074
32075 2009-01-19  Bruno Haible  <bruno@clisp.org>
32076
32077         * modules/uniname/uniname-tests (Depends-on): Add progname.
32078         * tests/uniname/test-uninames.c: Include progname.h.
32079         (main): Call set_program_name.
32080
32081         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32082         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32083         (main): Call set_program_name.
32084
32085         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32086         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32087         (main): Call set_program_name.
32088
32089         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32090         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32091         (main): Call set_program_name.
32092
32093         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32094         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32095         (main): Call set_program_name.
32096
32097         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32098         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32099         (main): Call set_program_name.
32100
32101         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32102         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32103         (main): Call set_program_name.
32104
32105         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32106         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32107         (main): Call set_program_name.
32108
32109         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32110         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32111         (main): Call set_program_name.
32112
32113 2009-01-19  Eric Blake  <ebb9@byu.net>
32114
32115         test-unistd: test previous patch
32116         * tests/test-unistd.c: Test *_FILENO macros.
32117
32118         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32119         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32120         Guarantee a definition.
32121         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32122         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32123         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32124         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32125         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32126         Likewise.
32127         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32128         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32129         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32130         Likewise.
32131         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32132         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32133         (STDERR_FILENO): Likewise.
32134         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32135         (STDERR_FILENO): Likewise.
32136         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32137         (STDERR_FILENO): Likewise.
32138         Reported by Elbert Pol.
32139
32140 2009-01-19  Eric Blake  <ebb9@byu.net>
32141
32142         doc: mention more functions added in cygwin 1.7.0
32143         * doc/posix-functions/abort.texi (abort): Update wording related
32144         to cygwin.
32145         * doc/posix-functions/daylight.texi (daylight): Likewise.
32146         * doc/posix-functions/optarg.texi (optarg): Likewise.
32147         * doc/posix-functions/optarg.texi (opterr): Likewise.
32148         * doc/posix-functions/optarg.texi (optind): Likewise.
32149         * doc/posix-functions/optarg.texi (optopt): Likewise.
32150         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32151         worked in 1.5.x, and was withdrawn in 1.7.
32152         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32153         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32154         cygwin versions.
32155         * doc/posix-functions/perror.texi (perror): Likewise.
32156         * doc/posix-functions/printf.texi (printf): Likewise.
32157         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32158         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32159         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32160         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32161         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32162         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32163         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32164         Likewise.
32165         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32166         Likewise.
32167         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32168         this function.
32169         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32170         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32171         Likewise.
32172         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32173         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32174         * doc/posix-functions/confstr.texi (confstr): Likewise.
32175         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32176         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32177         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32178         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32179         * doc/posix-functions/fputws.texi (fputws): Likewise.
32180         * doc/posix-functions/fwide.texi (fwide): Likewise.
32181         * doc/posix-functions/getwc.texi (getwc): Likewise.
32182         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32183         * doc/posix-functions/putwc.texi (putwc): Likewise.
32184         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32185         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32186         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32187         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32188         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32189         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32190         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32191         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32192         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32193         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32194         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32195
32196 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32197
32198         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32199         * lib/ioctl.c: Include <sys/ioctl.h>.
32200
32201 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32202
32203         * modules/getdate-tests (Depends-on): Add progname.
32204         * tests/test-getdate.c: Use progname module, to avoid link errors
32205         on non-glibc systems.
32206
32207 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32208
32209         * modules/filenamecat-tests (Depends-on): Add progname.
32210         * modules/fstrcmp-tests (Depends-on): Likewise.
32211
32212         * tests/test-filenamecat.c: Use progname module, to avoid link
32213         errors on non-glibc systems.
32214         * tests/test-fstrcmp.c: Likewise.
32215
32216 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32217
32218         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32219         * lib/gettimeofday.c: Move extern declaration out of function.
32220
32221 2009-01-18  Bruno Haible  <bruno@clisp.org>
32222
32223         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32224         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32225         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32226
32227 2009-01-18  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/strftime.c (MEMPCPY): Remove unused macro.
32230         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32231
32232 2009-01-18  Martin Lambers  <marlam@marlam.de>
32233
32234         New module 'link'.
32235         * lib/unistd.in.h (link): New declaration.
32236         * lib/link.c: New file.
32237         * m4/link.m4: New file.
32238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32239         HAVE_LINK.
32240         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32241         * modules/link: New file.
32242         * doc/posix-functions/link.texi: Mention the new module.
32243
32244 2009-01-18  Bruno Haible  <bruno@clisp.org>
32245
32246         * tests/test-avltree_list.c (main): Call set_program_name.
32247         * tests/test-avltree_oset.c (main): Likewise.
32248         * tests/test-obstack-printf.c: Include progname.h.
32249         (main): Call set_program_name.
32250         * tests/test-quotearg.c: Include progname.h.
32251         (main): Call set_program_name.
32252         * tests/test-xmemdup0.c: Include progname.h.
32253         (main): Call set_program_name.
32254
32255 2009-01-18  Bruno Haible  <bruno@clisp.org>
32256
32257         New module 'alphasort'.
32258         * lib/dirent.in.h (alphasort): New declaration.
32259         * lib/alphasort.c: New file, from glibc with modifications.
32260         * m4/alphasort.m4: New file.
32261         * modules/alphasort: New file.
32262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32263         HAVE_ALPHASORT.
32264         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32265         HAVE_ALPHASORT.
32266         * doc/posix-functions/alphasort.texi: Mention the new module and the
32267         portability problems.
32268
32269 2009-01-18  Bruno Haible  <bruno@clisp.org>
32270
32271         New module 'scandir'.
32272         * lib/dirent.in.h (scandir): New declaration.
32273         * lib/scandir.c: New file, from glibc with modifications.
32274         * m4/scandir.m4: New file.
32275         * modules/scandir: New file.
32276         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32277         HAVE_SCANDIR.
32278         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32279         HAVE_SCANDIR.
32280         * doc/posix-functions/scandir.texi: Mention the new module and the
32281         portability problems.
32282
32283 2009-01-17  Bruno Haible  <bruno@clisp.org>
32284
32285         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32286         Update documentation.
32287         (func_remove_suffix): Escape all dots in the suffix. Update
32288         documentation.
32289         (func_filter_filelist): Update documentation.
32290         Reported by Ralf Wildenhues.
32291
32292 2009-01-17  Bruno Haible  <bruno@clisp.org>
32293
32294         * modules/dprintf-posix-tests: New file.
32295         * tests/test-dprintf-posix.sh: New file.
32296         * tests/test-dprintf-posix.c: New file.
32297
32298         New modules 'dprintf', 'dprintf-posix'.
32299         * lib/stdio.in.h (dprintf): New declaration.
32300         * lib/dprintf.c: New file.
32301         * m4/dprintf.m4: New file.
32302         * m4/dprintf-posix.m4: New file.
32303         * modules/dprintf: New file.
32304         * modules/dprintf-posix: New file.
32305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32306         HAVE_DPRINTF, REPLACE_DPRINTF.
32307         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32308         HAVE_DPRINTF, REPLACE_DPRINTF.
32309         * doc/posix-functions/dprintf.texi: Mention the new modules.
32310
32311 2009-01-17  Bruno Haible  <bruno@clisp.org>
32312
32313         * modules/vdprintf-posix-tests: New file.
32314         * tests/test-vdprintf-posix.sh: New file.
32315         * tests/test-vdprintf-posix.c: New file.
32316
32317         New modules 'vdprintf', 'vdprintf-posix'.
32318         * lib/stdio.in.h (vdprintf): New declaration.
32319         * lib/vdprintf.c: New file.
32320         * m4/vdprintf.m4: New file.
32321         * m4/vdprintf-posix.m4: New file.
32322         * modules/vdprintf: New file.
32323         * modules/vdprintf-posix: New file.
32324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32325         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32326         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32327         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32328         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32329
32330 2009-01-17  Bruno Haible  <bruno@clisp.org>
32331
32332         Fix replacement of fopen on mingw.
32333         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32334         mingw.
32335
32336 2009-01-17  Bruno Haible  <bruno@clisp.org>
32337
32338         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32339         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32340
32341 2009-01-17  Bruno Haible  <bruno@clisp.org>
32342
32343         Avoid test-fflush2.sh failure on mingw.
32344         * tests/test-fflush2.c: Include binary-io.h.
32345         (main): Put standard input into binary mode.
32346         * modules/fflush-tests (Depends-on): Add binary-io.
32347
32348 2009-01-17  Bruno Haible  <bruno@clisp.org>
32349
32350         * lib/wchar.in.h: In another particular situation, include only the
32351         system's <wchar.h> file.
32352         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32353         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32354         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32355
32356 2009-01-17  Bruno Haible  <bruno@clisp.org>
32357
32358         Support for stripping executables in --enable-relocatable.
32359         * build-aux/install-reloc: Expect one more argument, or an environment
32360         variable RELOC_STRIP_PROG. If set, strip the destination program and
32361         its wrapper.
32362         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32363         RELOC_STRIP_PROG.
32364         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32365         to set RELOCATABLE_STRIP.
32366         * NEWS: Mention the new Makefile requirement.
32367
32368 2009-01-17  Bruno Haible  <bruno@clisp.org>
32369
32370         * build-aux/install-reloc: Remove debugging information left over by
32371         C compiler on MacOS X.
32372
32373 2009-01-17  Bruno Haible  <bruno@clisp.org>
32374
32375         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32376         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32377         _NSGetExecutablePath.
32378
32379 2009-01-16  Jim Meyering  <meyering@redhat.com>
32380
32381         strerror: avoid warnings about discarding "const"
32382         * lib/strerror.c (rpl_strerror): Instead of returning a const
32383         string from each and every "case", use a variable, and add a single
32384         cast after the switch.
32385
32386 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32387
32388         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32389
32390 2009-01-16  Bruno Haible  <bruno@clisp.org>
32391
32392         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32393         array initializer syntax that also works in C++ mode.
32394         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32395
32396 2009-01-16  Jim Meyering  <meyering@redhat.com>
32397
32398         poll: suppress a warning
32399         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32400         to ignore "...unsigned expression < 0 is always false" warnings.
32401
32402 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32403
32404         poll: remove declarations of unused variables
32405         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32406         sockbuf and optlen.
32407
32408 2009-01-15  Bruno Haible  <bruno@clisp.org>
32409
32410         Make fflush-after-ungetc POSIX compliant on BSD systems.
32411         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32412         (clear_ungetc_buffer): Implement also for other systems.
32413         (rpl_fflush): On glibc systems, invoke
32414         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32415         clear_ungetc_buffer after fetching the stream's position, not before.
32416
32417 2009-01-15  Bruno Haible  <bruno@clisp.org>
32418
32419         Make fflush-after-ungetc POSIX compliant on glibc systems.
32420         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32421         after ungetc.
32422         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32423         (rpl_fflush): On glibc systems, simply call the system's fflush
32424         function after clearing the ungetc buffer.
32425         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32426         Instead, lseek only to the end of file, then use the system's fseeko
32427         for the rest. On glibc systems, reset the EOF indicator bit.
32428
32429 2009-01-15  Jim Meyering  <meyering@redhat.com>
32430
32431         openmp.m4: revert quote-adding change, for portability to older autoconf
32432         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32433         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32434         Simon Josefsson noticed the problem when using autoconf-2.61.
32435
32436 2009-01-15  Bruno Haible  <bruno@clisp.org>
32437
32438         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32439         * tests/test-fflush2.c (ASSERT): Always fail.
32440         (main): Add two tests for fflush() after ungetc(), taking into account
32441         the Austin Group's clarification.
32442         Suggested by Eric Blake.
32443
32444 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32445
32446         mktime.m4: remove K&R-style function prototypes
32447         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32448         for the Sun C++ compiler.
32449
32450 2009-01-14  Bruno Haible  <bruno@clisp.org>
32451
32452         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32453         while including <wchar.h>.
32454         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32455         the system's <wchar.h> file.
32456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32457
32458 2009-01-14  Bruno Haible  <bruno@clisp.org>
32459
32460         * m4/csharp.m4: Don't mention gettext on the serial number line.
32461         * m4/csharpexec.m4: Likewise.
32462         * m4/eaccess.m4: Likewise.
32463         * m4/javaexec.m4: Likewise.
32464         * m4/sig_atomic_t.m4: Likewise.
32465         * m4/tmpdir.m4: Likewise.
32466         * m4/intldir.m4: Bump gettext version.
32467         * m4/lib-ld.m4: Likewise.
32468
32469 2009-01-14  Bruno Haible  <bruno@clisp.org>
32470
32471         * lib/progname.c (set_program_name): Add more comments.
32472         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32473
32474 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32475
32476         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32477         were sys/stat.h does not define it.
32478
32479 2009-01-14  Jim Meyering  <meyering@redhat.com>
32480
32481         many *.m4 files: improve m4 quoting
32482         99% of this change was performed by running the following commands:
32483         git ls-files | grep '\.m4$' | xargs perl -pi \
32484           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32485           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32486           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32487           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32488         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32489         The remainder were to add Copyright dates, increment serial numbers,
32490         undo some changes in comments, exclude m4/intl.m4, and add quotes
32491         around the "1" in ",1" where the unusual spacing prohibited the
32492         above regexps from doing the job.  For more details, see
32493         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32494         * m4/acl.m4: Modified.
32495         * m4/afs.m4: Likewise.
32496         * m4/alloca.m4: Likewise.
32497         * m4/argp.m4: Likewise.
32498         * m4/argz.m4: Likewise.
32499         * m4/atexit.m4: Likewise.
32500         * m4/bison-i18n.m4: Likewise.
32501         * m4/bison.m4: Likewise.
32502         * m4/byteswap.m4: Likewise.
32503         * m4/c-stack.m4: Likewise.
32504         * m4/c-strtod.m4: Likewise.
32505         * m4/calloc.m4: Likewise.
32506         * m4/canonicalize-lgpl.m4: Likewise.
32507         * m4/chown.m4: Likewise.
32508         * m4/clock_time.m4: Likewise.
32509         * m4/codeset.m4: Likewise.
32510         * m4/copy-file.m4: Likewise.
32511         * m4/csharp.m4: Likewise.
32512         * m4/csharpcomp.m4: Likewise.
32513         * m4/csharpexec.m4: Likewise.
32514         * m4/d-ino.m4: Likewise.
32515         * m4/d-type.m4: Likewise.
32516         * m4/dirfd.m4: Likewise.
32517         * m4/double-slash-root.m4: Likewise.
32518         * m4/eaccess.m4: Likewise.
32519         * m4/eealloc.m4: Likewise.
32520         * m4/environ.m4: Likewise.
32521         * m4/errno_h.m4: Likewise.
32522         * m4/euidaccess.m4: Likewise.
32523         * m4/execute.m4: Likewise.
32524         * m4/fatal-signal.m4: Likewise.
32525         * m4/fchdir.m4: Likewise.
32526         * m4/fcntl_h.m4: Likewise.
32527         * m4/fileblocks.m4: Likewise.
32528         * m4/filenamecat.m4: Likewise.
32529         * m4/findprog.m4: Likewise.
32530         * m4/flexmember.m4: Likewise.
32531         * m4/fnmatch.m4: Likewise.
32532         * m4/fopen.m4: Likewise.
32533         * m4/fpending.m4: Likewise.
32534         * m4/fprintf-posix.m4: Likewise.
32535         * m4/free.m4: Likewise.
32536         * m4/frexp.m4: Likewise.
32537         * m4/frexpl.m4: Likewise.
32538         * m4/fsusage.m4: Likewise.
32539         * m4/ftruncate.m4: Likewise.
32540         * m4/gc-camellia.m4: Likewise.
32541         * m4/gc-random.m4: Likewise.
32542         * m4/gc.m4: Likewise.
32543         * m4/getaddrinfo.m4: Likewise.
32544         * m4/getcwd-abort-bug.m4: Likewise.
32545         * m4/getcwd-path-max.m4: Likewise.
32546         * m4/getdate.m4: Likewise.
32547         * m4/getdomainname.m4: Likewise.
32548         * m4/getgroups.m4: Likewise.
32549         * m4/gethostname.m4: Likewise.
32550         * m4/gethrxtime.m4: Likewise.
32551         * m4/getline.m4: Likewise.
32552         * m4/getloadavg.m4: Likewise.
32553         * m4/getndelim2.m4: Likewise.
32554         * m4/getpass.m4: Likewise.
32555         * m4/gettext.m4: Likewise.
32556         * m4/gettime.m4: Likewise.
32557         * m4/gettimeofday.m4: Likewise.
32558         * m4/gnulib-common.m4: Likewise.
32559         * m4/group-member.m4: Likewise.
32560         * m4/host-os.m4: Likewise.
32561         * m4/iconv.m4: Likewise.
32562         * m4/iconv_open.m4: Likewise.
32563         * m4/inet_ntop.m4: Likewise.
32564         * m4/inet_pton.m4: Likewise.
32565         * m4/inline.m4: Likewise.
32566         * m4/intldir.m4: Likewise.
32567         * m4/intlmacosx.m4: Likewise.
32568         * m4/intmax.m4: Likewise.
32569         * m4/intmax_t.m4: Likewise.
32570         * m4/inttypes.m4: Likewise.
32571         * m4/inttypes_h.m4: Likewise.
32572         * m4/inttypes-pri.m4: Likewise.
32573         * m4/isapipe.m4: Likewise.
32574         * m4/isnand.m4: Likewise.
32575         * m4/isnanf.m4: Likewise.
32576         * m4/isnanl.m4: Likewise.
32577         * m4/javacomp.m4: Likewise.
32578         * m4/javaexec.m4: Likewise.
32579         * m4/jm-winsz1.m4: Likewise.
32580         * m4/jm-winsz2.m4: Likewise.
32581         * m4/lchown.m4: Likewise.
32582         * m4/lcmessage.m4: Likewise.
32583         * m4/ldexpl.m4: Likewise.
32584         * m4/lib-ld.m4: Likewise.
32585         * m4/lib-link.m4: Likewise.
32586         * m4/libsigsegv.m4: Likewise.
32587         * m4/link-follow.m4: Likewise.
32588         * m4/localcharset.m4: Likewise.
32589         * m4/locale-fr.m4: Likewise.
32590         * m4/locale-ja.m4: Likewise.
32591         * m4/locale-tr.m4: Likewise.
32592         * m4/locale-zh.m4: Likewise.
32593         * m4/lock.m4: Likewise.
32594         * m4/longlong.m4: Likewise.
32595         * m4/ls-mntd-fs.m4: Likewise.
32596         * m4/lstat.m4: Likewise.
32597         * m4/malloc.m4: Likewise.
32598         * m4/mathl.m4: Likewise.
32599         * m4/mbrtowc.m4: Likewise.
32600         * m4/mbstate_t.m4: Likewise.
32601         * m4/mbswidth.m4: Likewise.
32602         * m4/memchr.m4: Likewise.
32603         * m4/memcmp.m4: Likewise.
32604         * m4/memcpy.m4: Likewise.
32605         * m4/memmem.m4: Likewise.
32606         * m4/memmove.m4: Likewise.
32607         * m4/mempcpy.m4: Likewise.
32608         * m4/memrchr.m4: Likewise.
32609         * m4/memset.m4: Likewise.
32610         * m4/minmax.m4: Likewise.
32611         * m4/mkdir-slash.m4: Likewise.
32612         * m4/mkdtemp.m4: Likewise.
32613         * m4/mktime.m4: Likewise.
32614         * m4/mmap-anon.m4: Likewise.
32615         * m4/mountlist.m4: Likewise.
32616         * m4/nanosleep.m4: Likewise.
32617         * m4/nls.m4: Likewise.
32618         * m4/nocrash.m4: Likewise.
32619         * m4/open.m4: Likewise.
32620         * m4/openat.m4: Likewise.
32621         * m4/openmp.m4: Likewise.
32622         * m4/pathmax.m4: Likewise.
32623         * m4/perl.m4: Likewise.
32624         * m4/physmem.m4: Likewise.
32625         * m4/pipe.m4: Likewise.
32626         * m4/po.m4: Likewise.
32627         * m4/poll.m4: Likewise.
32628         * m4/posixtm.m4: Likewise.
32629         * m4/posixver.m4: Likewise.
32630         * m4/printf-frexp.m4: Likewise.
32631         * m4/printf-frexpl.m4: Likewise.
32632         * m4/printf-posix.m4: Likewise.
32633         * m4/printf-posix-rpl.m4: Likewise.
32634         * m4/printf.m4: Likewise.
32635         * m4/progtest.m4: Likewise.
32636         * m4/putenv.m4: Likewise.
32637         * m4/readline.m4: Likewise.
32638         * m4/readlink.m4: Likewise.
32639         * m4/readutmp.m4: Likewise.
32640         * m4/realloc.m4: Likewise.
32641         * m4/regex.m4: Likewise.
32642         * m4/relocatable.m4: Likewise.
32643         * m4/relocatable-lib.m4: Likewise.
32644         * m4/rename-dest-slash.m4: Likewise.
32645         * m4/rename.m4: Likewise.
32646         * m4/rmdir-errno.m4: Likewise.
32647         * m4/rmdir.m4: Likewise.
32648         * m4/roundf.m4: Likewise.
32649         * m4/roundl.m4: Likewise.
32650         * m4/rpmatch.m4: Likewise.
32651         * m4/save-cwd.m4: Likewise.
32652         * m4/selinux-selinux-h.m4: Likewise.
32653         * m4/setenv.m4: Likewise.
32654         * m4/settime.m4: Likewise.
32655         * m4/sig2str.m4: Likewise.
32656         * m4/sig_atomic_t.m4: Likewise.
32657         * m4/signalblocking.m4: Likewise.
32658         * m4/signbit.m4: Likewise.
32659         * m4/sigpipe.m4: Likewise.
32660         * m4/sockets.m4: Likewise.
32661         * m4/sockpfaf.m4: Likewise.
32662         * m4/st_dm_mode.m4: Likewise.
32663         * m4/stat-time.m4: Likewise.
32664         * m4/stdbool.m4: Likewise.
32665         * m4/stdint.m4: Likewise.
32666         * m4/stdint_h.m4: Likewise.
32667         * m4/stpcpy.m4: Likewise.
32668         * m4/stpncpy.m4: Likewise.
32669         * m4/strcase.m4: Likewise.
32670         * m4/strchrnul.m4: Likewise.
32671         * m4/strcspn.m4: Likewise.
32672         * m4/strdup.m4: Likewise.
32673         * m4/strftime.m4: Likewise.
32674         * m4/strndup.m4: Likewise.
32675         * m4/strnlen.m4: Likewise.
32676         * m4/strpbrk.m4: Likewise.
32677         * m4/strptime.m4: Likewise.
32678         * m4/strsep.m4: Likewise.
32679         * m4/strtod.m4: Likewise.
32680         * m4/strtoimax.m4: Likewise.
32681         * m4/strtok_r.m4: Likewise.
32682         * m4/strtol.m4: Likewise.
32683         * m4/strtoll.m4: Likewise.
32684         * m4/strtoul.m4: Likewise.
32685         * m4/strtoull.m4: Likewise.
32686         * m4/strtoumax.m4: Likewise.
32687         * m4/strverscmp.m4: Likewise.
32688         * m4/threadlib.m4: Likewise.
32689         * m4/timegm.m4: Likewise.
32690         * m4/tm_gmtoff.m4: Likewise.
32691         * m4/tmpdir.m4: Likewise.
32692         * m4/tmpfile.m4: Likewise.
32693         * m4/tzset.m4: Likewise.
32694         * m4/uintmax_t.m4: Likewise.
32695         * m4/unlinkdir.m4: Likewise.
32696         * m4/unlocked-io.m4: Likewise.
32697         * m4/uptime.m4: Likewise.
32698         * m4/userspec.m4: Likewise.
32699         * m4/utimbuf.m4: Likewise.
32700         * m4/utime.m4: Likewise.
32701         * m4/utimes-null.m4: Likewise.
32702         * m4/utimes.m4: Likewise.
32703         * m4/vararrays.m4: Likewise.
32704         * m4/vasnprintf.m4: Likewise.
32705         * m4/vfprintf-posix.m4: Likewise.
32706         * m4/vprintf-posix.m4: Likewise.
32707         * m4/wait-process.m4: Likewise.
32708         * m4/wchar_t.m4: Likewise.
32709         * m4/wint_t.m4: Likewise.
32710         * m4/write-any-file.m4: Likewise.
32711         * m4/yield.m4: Likewise.
32712
32713 2009-01-13  Bruno Haible  <bruno@clisp.org>
32714
32715         Avoid test-copy-file.sh failures when ACL support insufficient.
32716         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32717         TESTS_ENVIRONMENT.
32718         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32719         Reported by Jim Meyering.
32720
32721 2009-01-13  Bruno Haible  <bruno@clisp.org>
32722
32723         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32724         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32725         * modules/unistdio/u8-printf-parse (Files): Likewise.
32726         * modules/unistdio/u32-printf-parse (Files): Likewise.
32727         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32728
32729 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32730
32731         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32732         and m4/inttypes_h.m4 too.
32733
32734 2009-01-12  Eric Blake  <ebb9@byu.net>
32735
32736         tests: IRIX 6.2 cc can't compile -0.0 into .data
32737         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32738         rather than at compile-time.
32739         * tests/test-floorl.c (minus_zero): Likewise.
32740         * tests/test-frexpl.c (minus_zero): Likewise.
32741         * tests/test-isnan.c (minus_zerol): Likewise.
32742         * tests/test-isnanl.h (minus_zero): Likewise.
32743         * tests/test-ldexpl.c (minus_zero): Likewise.
32744         * tests/test-roundl.c (minus_zero): Likewise.
32745         * tests/test-signbit.c (minus_zerol): Likewise.
32746         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32747         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32748         * tests/test-truncl.c (minus_zero): Likewise.
32749         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32750         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32751         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32752
32753 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32754
32755         regex: fix glibc bug 9697
32756         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32757         handling.
32758
32759 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32760
32761         regex: fix glibc bug 697
32762         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32763         being NULL also if there are no backreferences.
32764
32765 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32766
32767         regex: merge glibc changes
32768         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32769         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32770         re_string_skip_chars, re_string_reconstruct): Likewise.
32771         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32772
32773 2009-01-07  Jim Meyering  <meyering@redhat.com>
32774
32775         poll: filter through cppi
32776         * lib/poll.c: Indent cpp directives to reflect nesting.
32777
32778 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32779
32780         poll: don't return uninitialized
32781         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32782
32783 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32784
32785         avoid compile failure on AIX 6.1
32786         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32787         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32788
32789 2009-01-04  Jim Meyering  <meyering@redhat.com>
32790
32791         remove duplicate inclusion of <stdio.h>
32792         * tests/test-fprintf-posix.c: Likewise.
32793         * tests/test-printf-posix.c: Likewise.
32794         * tests/test-snprintf-posix.c: Likewise.
32795         * tests/test-sprintf-posix.c: Likewise.
32796         * tests/test-vasprintf-posix.c: Likewise.
32797         * tests/test-vfprintf-posix.c: Likewise.
32798         * tests/test-vprintf-posix.c: Likewise.
32799         * tests/test-vsnprintf-posix.c: Likewise.
32800         * tests/test-vsprintf-posix.c: Likewise.
32801
32802 2009-01-03  Jim Meyering  <meyering@redhat.com>
32803
32804         gnulib-tool: fix sed-based filtering
32805         * gnulib-tool (func_filter_filelist): Remove extra backslash
32806         in sed_fff_filter definition.
32807
32808 2009-01-02  Jim Meyering  <meyering@redhat.com>
32809
32810         strftime: avoid compilation failure on Solaris 2.6
32811         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32812         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32813         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32814         be available.  Reported by Tom G. Christensen.  Details in
32815         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32816
32817 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32818             Bruno Haible  <bruno@clisp.org>
32819
32820         Speed up gnulib-tool by doing more string processing through shell
32821         built-ins.
32822         * gnulib-tool (fast_func_append): New variable.
32823         (func_remove_prefix, func_remove_suffix): New functions.
32824         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32825         (func_filter_filelist): New function.
32826         (func_get_dependencies): Use func_remove_suffix instead of sed.
32827         (func_get_automake_snippet): Use func_filter_filelist instead of a
32828         subshell and sed invocation.
32829
32830 2009-01-01  Bruno Haible  <bruno@clisp.org>
32831
32832         Fix a security bug.
32833         * gnulib-tool (func_import, import, update): Don't allow the characters
32834         '"', '$', '`', '\' in macro arguments that become part of commands that
32835         are evaluated.
32836
32837 2009-01-01  Bruno Haible  <bruno@clisp.org>
32838
32839         * gnulib-tool (func_reset_sigpipe): Add more comments.
32840
32841 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32842
32843         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32844         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32845         already know the answer.
32846
32847 2009-01-01  Jim Meyering  <meyering@redhat.com>
32848
32849         * lib/version-etc.c (version_etc_va): Update copyright year.
32850
32851 2008-12-30  Bruno Haible  <bruno@clisp.org>
32852
32853         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32854         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32855         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32856
32857 2008-12-29  Eric Blake  <ebb9@byu.net>
32858
32859         multiarch: avoid autoconf AC_REQUIRE bug
32860         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32861         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32862         2.63 and older.
32863         Reported by Bruno Haible, and analyzed in
32864         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32865
32866 2008-12-29  Bruno Haible  <bruno@clisp.org>
32867
32868         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32869         files in subdirectories correctly.
32870         Reported by Ralf Wildenhues.
32871
32872 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32873
32874         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32875         rather than 'join FILE -', for Solaris join.
32876
32877 2008-12-29  Bruno Haible  <bruno@clisp.org>
32878
32879         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32880         quoting.
32881         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32882         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32883         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32884         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32885         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32886         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32887         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32888         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32889         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32890         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32891         * m4/nls.m4 (AM_NLS): Likewise.
32892         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32893         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32894         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32895         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32896         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32897         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32898         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32899         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32900         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32901         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32902         * m4/xsize.m4 (gl_XSIZE): Likewise.
32903         Suggested by Jim Meyering.
32904
32905 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32906
32907         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32908         * lib/parse-duration.c: use a switch instead of cascading if's.
32909
32910 2008-12-29  Eric Blake  <ebb9@byu.net>
32911
32912         wchar.h: supply WEOF on Irix 5.3
32913         * lib/wchar.in.h (wint_t): Also supply WEOF.
32914         * lib/wctype.in.h (wint_t): Likewise.
32915         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32916         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32917         Reported by Tom G. Christensen.
32918
32919 2008-12-26  Bruno Haible  <bruno@clisp.org>
32920
32921         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32922         i486, i586, i686.
32923
32924 2008-12-26  Bruno Haible  <bruno@clisp.org>
32925
32926         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32927
32928 2008-12-26  Bruno Haible  <bruno@clisp.org>
32929
32930         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32931         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32932         not __STDC_CONSTANT_MACROS.
32933         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32934
32935 2008-12-25  Bruno Haible  <bruno@clisp.org>
32936
32937         Add support for universal builds to vasnprintf.
32938         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32939         universal builds, guess no.
32940         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32941         * modules/vasprintf-posix (Depends-on): Likewise.
32942         * modules/fprintf-posix (Depends-on): Likewise.
32943         * modules/vfprintf-posix (Depends-on): Likewise.
32944         * modules/snprintf-posix (Depends-on): Likewise.
32945         * modules/vsnprintf-posix (Depends-on): Likewise.
32946         * modules/sprintf-posix (Depends-on): Likewise.
32947         * modules/vsprintf-posix (Depends-on): Likewise.
32948         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32950         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32951         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32952         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32953         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32954         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32955
32956         Add support for universal builds to <inttypes.h>.
32957         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32958         _SCNu64_PREFIX): In Apple
32959         universal builds, define directly, using _LP64.
32960         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32961         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32962         * modules/inttypes (Depends-on): Add multiarch.
32963         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32964
32965         Add support for universal builds to <stdint.h>.
32966         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32967         universal builds, define directly, using _LP64.
32968         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32969         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32970         and size_t.
32971         * modules/stdint (Depends-on): Add multiarch.
32972         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32973
32974         New module 'multiarch'.
32975         * modules/multiarch: New file.
32976         * m4/multiarch.m4: New file.
32977
32978 2008-12-25  Bruno Haible  <bruno@clisp.org>
32979
32980         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32981
32982 2008-12-25  Bruno Haible  <bruno@clisp.org>
32983
32984         * modules/btowc (License): Relicense under LGPLv2+.
32985         * modules/mbsinit (License): Likewise.
32986         * modules/mbrtowc (License): Likewise.
32987         * modules/wcrtomb (License): Likewise.
32988         * modules/streq (License): Likewise.
32989         Reported by David Lutterkort <lutter@redhat.com>.
32990
32991 2008-12-23  Bruno Haible  <bruno@clisp.org>
32992
32993         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32994
32995 2008-12-23  Bruno Haible  <bruno@clisp.org>
32996
32997         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32999         GETADDRINFO_LIB, not in LIBS.
33000         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33001         * modules/canon-host (Link): Likewise.
33002         * NEWS: Mention the change.
33003         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33004         GETADDRINFO_LIB.
33005
33006 2008-12-22  Bruno Haible  <bruno@clisp.org>
33007
33008         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33009         * doc/posix-functions/iswalpha_l.texi: Likewise.
33010         * doc/posix-functions/iswblank_l.texi: Likewise.
33011         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33012         * doc/posix-functions/iswctype_l.texi: Likewise.
33013         * doc/posix-functions/iswdigit_l.texi: Likewise.
33014         * doc/posix-functions/iswgraph_l.texi: Likewise.
33015         * doc/posix-functions/iswlower_l.texi: Likewise.
33016         * doc/posix-functions/iswprint_l.texi: Likewise.
33017         * doc/posix-functions/iswpunct_l.texi: Likewise.
33018         * doc/posix-functions/iswspace_l.texi: Likewise.
33019         * doc/posix-functions/iswupper_l.texi: Likewise.
33020         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33021         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33022         * doc/posix-functions/open_wmemstream.texi: Likewise.
33023         * doc/posix-functions/swscanf.texi: Likewise.
33024         * doc/posix-functions/towctrans_l.texi: Likewise.
33025         * doc/posix-functions/towlower.texi: Likewise.
33026         * doc/posix-functions/towlower_l.texi: Likewise.
33027         * doc/posix-functions/towupper.texi: Likewise.
33028         * doc/posix-functions/towupper_l.texi: Likewise.
33029         * doc/posix-functions/vfwprintf.texi: Likewise.
33030         * doc/posix-functions/vfwscanf.texi: Likewise.
33031         * doc/posix-functions/vswscanf.texi: Likewise.
33032         * doc/posix-functions/vwprintf.texi: Likewise.
33033         * doc/posix-functions/vwscanf.texi: Likewise.
33034         * doc/posix-functions/wcpcpy.texi: Likewise.
33035         * doc/posix-functions/wcpncpy.texi: Likewise.
33036         * doc/posix-functions/wcscasecmp.texi: Likewise.
33037         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33038         * doc/posix-functions/wcscoll_l.texi: Likewise.
33039         * doc/posix-functions/wcsdup.texi: Likewise.
33040         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33041         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33042         * doc/posix-functions/wcsnlen.texi: Likewise.
33043         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33044         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33045         * doc/posix-functions/wctrans_l.texi: Likewise.
33046         * doc/posix-functions/wctype_l.texi: Likewise.
33047         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33048         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33049         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33050         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33051         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33052         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33053         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33054         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33055         * doc/glibc-functions/wcschrnul.texi: Likewise.
33056         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33057         * doc/glibc-functions/wcstod_l.texi: Likewise.
33058         * doc/glibc-functions/wcstof_l.texi: Likewise.
33059         * doc/glibc-functions/wcstol_l.texi: Likewise.
33060         * doc/glibc-functions/wcstold_l.texi: Likewise.
33061         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33062         * doc/glibc-functions/wcstoq.texi: Likewise.
33063         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33064         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33065         * doc/glibc-functions/wcstouq.texi: Likewise.
33066         * doc/glibc-functions/wmempcpy.texi: Likewise.
33067
33068 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33069             Eric Blake  <ebb9@byu.net>
33070             Paolo Bonzini  <bonzini@gnu.org>
33071             Bruno Haible  <bruno@clisp.org>
33072
33073         Make c-stack work on Haiku.
33074         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33075         (c_stack_action): Use SA_ONSTACK flag.
33076
33077 2008-12-22  Bruno Haible  <bruno@clisp.org>
33078
33079         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33080
33081 2008-12-22  Bruno Haible  <bruno@clisp.org>
33082
33083         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33084         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33085         being overridden.
33086         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33087         New macros.
33088         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33090         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33091         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33092
33093 2008-12-22  Bruno Haible  <bruno@clisp.org>
33094
33095         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33096         from test code.
33097
33098 2008-12-22  Eric Blake  <ebb9@byu.net>
33099
33100         Avoid gcc warnings on cygwin.
33101         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33102         Avoid unused variable.
33103         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33104         Likewise.
33105
33106 2008-12-22  Bruno Haible  <bruno@clisp.org>
33107
33108         Remove HAVE_MBRTOWC conditionals.
33109         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33110         (mbscasecmp): Assume mbrtowc function.
33111         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33112         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33113         * lib/mbschr.c: Include mbuiter.h unconditionally.
33114         (mbschr): Assume mbrtowc function.
33115         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33116         (mbscspn): Assume mbrtowc function.
33117         * lib/mbslen.c: Include mbuiter.h unconditionally.
33118         (mbslen): Assume mbrtowc function.
33119         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33120         (mbsncasecmp): Assume mbrtowc function.
33121         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33122         (mbsnlen): Assume mbrtowc function.
33123         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33124         (mbspbrk): Assume mbrtowc function.
33125         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33126         (mbspcasecmp): Assume mbrtowc function.
33127         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33128         (mbsrchr): Assume mbrtowc function.
33129         * lib/mbssep.c: Include mbuiter.h unconditionally.
33130         (mbssep): Assume mbrtowc function.
33131         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33132         (mbsspn): Assume mbrtowc function.
33133         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33134         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33135         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33136         (mbstok_r): Assume mbrtowc function.
33137         * lib/propername.c: Include mbuiter.h unconditionally.
33138         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33139         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33140         (trim2): Assume mbrtowc function.
33141         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33142         (mbsnwidth): Assume mbrtowc function.
33143         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33144         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33145         fallback definitions.
33146         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33147
33148 2008-12-22  Bruno Haible  <bruno@clisp.org>
33149
33150         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33151
33152 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33153
33154         * modules/regex: Request emulations for the mb*/wc* functions we need.
33155         * m4/regex.m4: Don't look for those functions here.
33156         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33157
33158 2008-12-22  Bruno Haible  <bruno@clisp.org>
33159
33160         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33161
33162 2008-12-21  Bruno Haible  <bruno@clisp.org>
33163
33164         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33165         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33166         (Include): Remove conditionalization.
33167         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33168         (Include): Remove conditionalization.
33169         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33170         (Include): Remove conditionalization.
33171         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33172         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33173         * NEWS: Mention the change.
33174         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33175         via Sergey Poznyakoff <gray@gnu.org.ua>.
33176
33177 2008-12-21  Bruno Haible  <bruno@clisp.org>
33178
33179         * MODULES.html.sh (Extended multibyte and wide character utilities
33180         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33181         wcrtomb, wcsrtombs.
33182         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33183         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33184         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33185         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33186
33187 2008-12-21  Bruno Haible  <bruno@clisp.org>
33188
33189         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33190
33191 2008-12-21  Bruno Haible  <bruno@clisp.org>
33192
33193         * modules/wcsnrtombs-tests: New file.
33194         * tests/test-wcsnrtombs1.sh: New file.
33195         * tests/test-wcsnrtombs2.sh: New file.
33196         * tests/test-wcsnrtombs3.sh: New file.
33197         * tests/test-wcsnrtombs4.sh: New file.
33198         * tests/test-wcsnrtombs.c: New file.
33199
33200         New module 'wcsnrtombs'.
33201         * lib/wchar.in.h (wcsnrtombs): New declaration.
33202         * lib/wcsnrtombs.c: New file.
33203         * lib/wcsrtombs-state.c: New file.
33204         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33205         (internal_state): Remove variable.
33206         * m4/wcsnrtombs.m4: New file.
33207         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33208         compilation units.
33209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33210         HAVE_WCSNRTOMBS.
33211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33212         HAVE_WCSNRTOMBS.
33213         * modules/wcsnrtombs: New file.
33214         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33215         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33216
33217 2008-12-21  Bruno Haible  <bruno@clisp.org>
33218
33219         * modules/wcsrtombs-tests: New file.
33220         * tests/test-wcsrtombs1.sh: New file.
33221         * tests/test-wcsrtombs2.sh: New file.
33222         * tests/test-wcsrtombs3.sh: New file.
33223         * tests/test-wcsrtombs4.sh: New file.
33224         * tests/test-wcsrtombs.c: New file.
33225
33226         New module 'wcsrtombs'.
33227         * lib/wchar.in.h (wcsrtombs): New declaration.
33228         * lib/wcsrtombs.c: New file.
33229         * m4/wcsrtombs.m4: New file.
33230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33231         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33233         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33234         * modules/wcsrtombs: New file.
33235         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33236         bugs.
33237
33238 2008-12-21  Bruno Haible  <bruno@clisp.org>
33239
33240         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33241         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33242         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33243         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33244         if not correct.
33245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33246         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33247         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33248         m4/locale-zh.m4, m4/codeset.m4.
33249         * doc/posix-functions/wcrtomb.texi: Document the bug.
33250
33251 2008-12-21  Bruno Haible  <bruno@clisp.org>
33252
33253         Work around a btowc() bug on IRIX 6.5.
33254         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33255         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33256         REPLACE_WTOBC if not.
33257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33258         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33259         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33260
33261 2008-12-21  Bruno Haible  <bruno@clisp.org>
33262
33263         * modules/wcrtomb-tests: New file.
33264         * tests/test-wcrtomb.sh: New file.
33265         * tests/test-wcrtomb.c: New file.
33266
33267         New module 'wcrtomb'.
33268         * lib/wchar.in.h (wcrtomb): New declaration.
33269         * lib/wcrtomb.c: New file.
33270         * m4/wcrtomb.m4: New file.
33271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33272         HAVE_WCRTOMB.
33273         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33274         HAVE_WCRTOMB.
33275         * modules/wcrtomb: New file.
33276         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33277
33278 2008-12-21  Bruno Haible  <bruno@clisp.org>
33279
33280         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33281         * modules/mbsrtowcs (Files): Likewise.
33282         * modules/wctob (Files): Likewise.
33283         * modules/c-strcase-tests (Files): Likewise.
33284         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33285         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33286         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33287         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33288         * modules/vasnprintf-posix-tests (Files): Likewise.
33289
33290 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33291
33292         gitlog-to-changelog: pass all command-line arguments to git-log
33293         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33294         it is sometimes convenient to filter the commits in various ways.
33295         gitlog-to-changelog only allows --since to specify a start date,
33296         but git-log itself supports many other filtering mechanisms.
33297         At the moment, I want to filter by branch name.  Rather than
33298         adding a --branch option to gitlog-to-changelog, it seems more
33299         flexible to simply pass all options directly to git-log and let
33300         git do the work.  Notice that this effectively makes --since a
33301         redundant option for gitlog-to-changelog, but removing it would
33302         require current usage to change since calls would then require
33303         an additional '--'.
33304
33305 2008-12-21  Bruno Haible  <bruno@clisp.org>
33306
33307         * modules/mbsnrtowcs-tests: New file.
33308         * tests/test-mbsnrtowcs1.sh: New file.
33309         * tests/test-mbsnrtowcs2.sh: New file.
33310         * tests/test-mbsnrtowcs3.sh: New file.
33311         * tests/test-mbsnrtowcs4.sh: New file.
33312         * tests/test-mbsnrtowcs.c: New file.
33313
33314         New module 'mbsnrtowcs'.
33315         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33316         * lib/mbsnrtowcs.c: New file.
33317         * lib/mbsrtowcs-state.c: New file.
33318         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33319         (internal_state): Remove variable.
33320         * m4/mbsnrtowcs.m4: New file.
33321         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33322         compilation units.
33323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33324         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33325         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33326         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33327         * modules/mbsnrtowcs: New file.
33328         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33329         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33330         portability problem.
33331
33332 2008-12-21  Bruno Haible  <bruno@clisp.org>
33333
33334         Work around mbsrtowcs bug.
33335         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33336         (gl_FUNC_MBSRTOWCS): Invoke it.
33337         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33338         m4/locale-zh.m4.
33339         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33340
33341 2008-12-21  Bruno Haible  <bruno@clisp.org>
33342
33343         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33344
33345 2008-12-21  Bruno Haible  <bruno@clisp.org>
33346
33347         Update doc for AIX.
33348         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33349         16-bit wchar_t type.
33350         * doc/posix-functions/btowc.texi: Likewise.
33351         * doc/posix-functions/fgetwc.texi: Likewise.
33352         * doc/posix-functions/fgetws.texi: Likewise.
33353         * doc/posix-functions/fputwc.texi: Likewise.
33354         * doc/posix-functions/fputws.texi: Likewise.
33355         * doc/posix-functions/fwide.texi: Likewise.
33356         * doc/posix-functions/fwprintf.texi: Likewise.
33357         * doc/posix-functions/fwscanf.texi: Likewise.
33358         * doc/posix-functions/getwchar.texi: Likewise.
33359         * doc/posix-functions/getwc.texi: Likewise.
33360         * doc/posix-functions/iswalnum.texi: Likewise.
33361         * doc/posix-functions/iswalpha.texi: Likewise.
33362         * doc/posix-functions/iswblank.texi: Likewise.
33363         * doc/posix-functions/iswcntrl.texi: Likewise.
33364         * doc/posix-functions/iswctype.texi: Likewise.
33365         * doc/posix-functions/iswdigit.texi: Likewise.
33366         * doc/posix-functions/iswgraph.texi: Likewise.
33367         * doc/posix-functions/iswlower.texi: Likewise.
33368         * doc/posix-functions/iswprint.texi: Likewise.
33369         * doc/posix-functions/iswpunct.texi: Likewise.
33370         * doc/posix-functions/iswspace.texi: Likewise.
33371         * doc/posix-functions/iswupper.texi: Likewise.
33372         * doc/posix-functions/iswxdigit.texi: Likewise.
33373         * doc/posix-functions/mbrtowc.texi: Likewise.
33374         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33375         * doc/posix-functions/mbstowcs.texi: Likewise.
33376         * doc/posix-functions/mbtowc.texi: Likewise.
33377         * doc/posix-functions/putwchar.texi: Likewise.
33378         * doc/posix-functions/putwc.texi: Likewise.
33379         * doc/posix-functions/swprintf.texi: Likewise.
33380         * doc/posix-functions/tolower.texi: Likewise.
33381         * doc/posix-functions/toupper.texi: Likewise.
33382         * doc/posix-functions/towctrans.texi: Likewise.
33383         * doc/posix-functions/ungetwc.texi: Likewise.
33384         * doc/posix-functions/vswprintf.texi: Likewise.
33385         * doc/posix-functions/wcrtomb.texi: Likewise.
33386         * doc/posix-functions/wcscat.texi: Likewise.
33387         * doc/posix-functions/wcschr.texi: Likewise.
33388         * doc/posix-functions/wcscmp.texi: Likewise.
33389         * doc/posix-functions/wcscoll.texi: Likewise.
33390         * doc/posix-functions/wcscpy.texi: Likewise.
33391         * doc/posix-functions/wcscspn.texi: Likewise.
33392         * doc/posix-functions/wcsftime.texi: Likewise.
33393         * doc/posix-functions/wcslen.texi: Likewise.
33394         * doc/posix-functions/wcsncat.texi: Likewise.
33395         * doc/posix-functions/wcsncmp.texi: Likewise.
33396         * doc/posix-functions/wcsncpy.texi: Likewise.
33397         * doc/posix-functions/wcspbrk.texi: Likewise.
33398         * doc/posix-functions/wcsrchr.texi: Likewise.
33399         * doc/posix-functions/wcsrtombs.texi: Likewise.
33400         * doc/posix-functions/wcsspn.texi: Likewise.
33401         * doc/posix-functions/wcsstr.texi: Likewise.
33402         * doc/posix-functions/wcstod.texi: Likewise.
33403         * doc/posix-functions/wcstof.texi: Likewise.
33404         * doc/posix-functions/wcstoimax.texi: Likewise.
33405         * doc/posix-functions/wcstok.texi: Likewise.
33406         * doc/posix-functions/wcstold.texi: Likewise.
33407         * doc/posix-functions/wcstoll.texi: Likewise.
33408         * doc/posix-functions/wcstol.texi: Likewise.
33409         * doc/posix-functions/wcstombs.texi: Likewise.
33410         * doc/posix-functions/wcstoull.texi: Likewise.
33411         * doc/posix-functions/wcstoul.texi: Likewise.
33412         * doc/posix-functions/wcstoumax.texi: Likewise.
33413         * doc/posix-functions/wcswidth.texi: Likewise.
33414         * doc/posix-functions/wcsxfrm.texi: Likewise.
33415         * doc/posix-functions/wctob.texi: Likewise.
33416         * doc/posix-functions/wctomb.texi: Likewise.
33417         * doc/posix-functions/wctrans.texi: Likewise.
33418         * doc/posix-functions/wctype.texi: Likewise.
33419         * doc/posix-functions/wcwidth.texi: Likewise.
33420         * doc/posix-functions/wmemchr.texi: Likewise.
33421         * doc/posix-functions/wmemcmp.texi: Likewise.
33422         * doc/posix-functions/wmemcpy.texi: Likewise.
33423         * doc/posix-functions/wmemmove.texi: Likewise.
33424         * doc/posix-functions/wmemset.texi: Likewise.
33425         * doc/posix-functions/wprintf.texi: Likewise.
33426         * doc/posix-functions/wscanf.texi: Likewise.
33427
33428 2008-12-21  Bruno Haible  <bruno@clisp.org>
33429
33430         Update doc for HP-UX 11.11.
33431         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33432         in HP-UX version 11.00, not in all versions of HP-UX 11.
33433         * doc/posix-functions/fwide.texi: Likewise.
33434         * doc/posix-functions/fwprintf.texi: Likewise.
33435         * doc/posix-functions/fwscanf.texi: Likewise.
33436         * doc/posix-functions/inet_ntop.texi: Likewise.
33437         * doc/posix-functions/inet_pton.texi: Likewise.
33438         * doc/posix-functions/mbrlen.texi: Likewise.
33439         * doc/posix-functions/mbrtowc.texi: Likewise.
33440         * doc/posix-functions/mbsinit.texi: Likewise.
33441         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33442         * doc/posix-functions/swprintf.texi: Likewise.
33443         * doc/posix-functions/swscanf.texi: Likewise.
33444         * doc/posix-functions/towctrans.texi: Likewise.
33445         * doc/posix-functions/vfwprintf.texi: Likewise.
33446         * doc/posix-functions/vswprintf.texi: Likewise.
33447         * doc/posix-functions/vwprintf.texi: Likewise.
33448         * doc/posix-functions/wcrtomb.texi: Likewise.
33449         * doc/posix-functions/wcsrtombs.texi: Likewise.
33450         * doc/posix-functions/wcsstr.texi: Likewise.
33451         * doc/posix-functions/wctob.texi: Likewise.
33452         * doc/posix-functions/wctrans.texi: Likewise.
33453         * doc/posix-functions/wmemchr.texi: Likewise.
33454         * doc/posix-functions/wmemcmp.texi: Likewise.
33455         * doc/posix-functions/wmemcpy.texi: Likewise.
33456         * doc/posix-functions/wmemmove.texi: Likewise.
33457         * doc/posix-functions/wmemset.texi: Likewise.
33458         * doc/posix-functions/wprintf.texi: Likewise.
33459         * doc/posix-functions/wscanf.texi: Likewise.
33460
33461 2008-12-21  Bruno Haible  <bruno@clisp.org>
33462
33463         Work around a portability problem.
33464         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33465         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33466
33467 2008-12-20  Bruno Haible  <bruno@clisp.org>
33468
33469         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33470         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33471         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33473         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33474
33475         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33476         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33477         set.
33478         (GNULIB_defined_mbstate_t): New macro.
33479         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33480         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33481         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33482         reuses the system's mbrtowc function but works around the bugs.
33483         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33484         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33485         macros.
33486         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33487         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33488         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33489         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33490         REPLACE_MBSINIT if mbsinit needs to be overridden.
33491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33492         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33493         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33494         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33495         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33496         m4/locale-zh.m4.
33497         (Depends): Add mbsinit.
33498         * modules/mbsinit (Depends): Add mbrtowc.
33499         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33500
33501 2008-12-20  Bruno Haible  <bruno@clisp.org>
33502
33503         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33504         so that there are no conversion errors on AIX.
33505         * tests/test-mbsrtowcs.c (main): LIkewise.
33506
33507 2008-12-20  Bruno Haible  <bruno@clisp.org>
33508
33509         Work around wctob bug on Solaris <= 9.
33510         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33511         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33513         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33514         * modules/wctob (Files): Add m4/locale-fr.m4.
33515         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33516
33517 2008-12-20  Bruno Haible  <bruno@clisp.org>
33518
33519         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33520         /dev/null.
33521         * tests/test-select-in.sh: Likewise.
33522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33523
33524 2008-12-20  Bruno Haible  <bruno@clisp.org>
33525
33526         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33527         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33528         Cygwin 1.5.x.
33529
33530 2008-12-20  Bruno Haible  <bruno@clisp.org>
33531
33532         Ensure mbstate_t is defined on HP-UX 11.11.
33533         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33534         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33535         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33536         AC_USE_SYSTEM_EXTENSIONS.
33537         * modules/fnmatch (Depends-on): Add extensions.
33538         * modules/mbrlen (Depends-on): Likewise.
33539         * modules/mbrtowc (Depends-on): Likewise.
33540         * modules/mbsinit (Depends-on): Likewise.
33541         * modules/mbsrtowcs (Depends-on): Likewise.
33542         * modules/mbswidth (Depends-on): Likewise.
33543         * modules/quotearg (Depends-on): Likewise.
33544         * modules/strftime (Depends-on): Likewise.
33545
33546 2008-12-20  Bruno Haible  <bruno@clisp.org>
33547
33548         Ensure wctob is declared on IRIX 6.5.
33549         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33550         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33551         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33553         of HAVE_WCTOB.
33554         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33555         HAVE_WCTOB.
33556         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33557
33558 2008-12-19  Bruno Haible  <bruno@clisp.org>
33559
33560         * modules/mbsrtowcs-tests: New file.
33561         * tests/test-mbsrtowcs1.sh: New file.
33562         * tests/test-mbsrtowcs2.sh: New file.
33563         * tests/test-mbsrtowcs3.sh: New file.
33564         * tests/test-mbsrtowcs4.sh: New file.
33565         * tests/test-mbsrtowcs.c: New file.
33566
33567         New module 'mbsrtowcs'.
33568         * lib/wchar.in.h (mbsrtowcs): New declaration.
33569         * lib/mbsrtowcs.c: New file.
33570         * m4/mbsrtowcs.m4: New file.
33571         * modules/mbsrtowcs: New file.
33572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33573         HAVE_MBSRTOWCS.
33574         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33575         HAVE_MBSRTOWCS.
33576         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33577
33578 2008-12-19  Bruno Haible  <bruno@clisp.org>
33579
33580         New module 'mbrlen'.
33581         * lib/wchar.in.h (mbrlen): New declaration.
33582         * lib/mbrlen.c: New file.
33583         * m4/mbrlen.m4: New file.
33584         * modules/mbrlen: New file.
33585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33586         HAVE_MBRLEN.
33587         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33588         HAVE_MBRLEN.
33589         * doc/posix-functions/mbrlen.texi: Document the new module.
33590
33591 2008-12-19  Bruno Haible  <bruno@clisp.org>
33592
33593         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33594         * modules/mbrtowc (Depends-on): Add verify.
33595         Suggested by Paul Eggert.
33596
33597 2008-12-18  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/mbsinit-tests: New file.
33600         * tests/test-mbsinit.sh: New file.
33601         * tests/test-mbsinit.c: New file.
33602
33603 2008-12-18  Bruno Haible  <bruno@clisp.org>
33604
33605         * modules/mbrtowc-tests: New file.
33606         * tests/test-mbrtowc1.sh: New file.
33607         * tests/test-mbrtowc2.sh: New file.
33608         * tests/test-mbrtowc3.sh: New file.
33609         * tests/test-mbrtowc4.sh: New file.
33610         * tests/test-mbrtowc.c: New file.
33611
33612         New module 'mbrtowc'.
33613         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33614         mbsinit and mbrtowc.
33615         (mbrtowc): New declaration.
33616         * lib/mbrtowc.c: New file.
33617         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33618         * modules/mbrtowc: New file.
33619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33620         HAVE_MBRTOWC.
33621         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33622         HAVE_MBRTOWC.
33623         * doc/posix-functions/mbrtowc.texi: Document the new module.
33624
33625 2008-12-18  Bruno Haible  <bruno@clisp.org>
33626
33627         New module 'wctob'.
33628         * lib/wchar.in.h (wctob): New declaration.
33629         * lib/wctob.c: New file.
33630         * m4/wctob.m4: New file.
33631         * modules/wctob: New file.
33632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33633         HAVE_WCTOB.
33634         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33635         * doc/posix-functions/wctob.texi: Document the new module.
33636
33637 2008-12-18  Bruno Haible  <bruno@clisp.org>
33638
33639         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33640         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33641
33642 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33643
33644         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33645         G. Christensen" <tgc@jupiterrise.com>.
33646
33647         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33648         G. Christensen" <tgc@jupiterrise.com>.
33649
33650         * lib/flock.c: Need to include string.h.  Reported by "Tom
33651         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33652         <ebb9@byu.net>.
33653
33654 2008-12-18  Bruno Haible  <bruno@clisp.org>
33655
33656         * m4/locale-ja.m4: New file, from GNU gettext.
33657
33658 2008-12-17  Bruno Haible  <bruno@clisp.org>
33659
33660         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33661         Suggested by Eric Blake.
33662
33663 2008-12-17  Bruno Haible  <bruno@clisp.org>
33664
33665         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33666
33667 2008-12-17  Bruno Haible  <bruno@clisp.org>
33668
33669         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33670         * modules/mbsinit (Depends-on): Add verify.
33671         Suggested by Paul Eggert.
33672
33673 2008-12-17  Bruno Haible  <bruno@clisp.org>
33674
33675         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33676         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33677         gl_FUNC_MBRTOWC.
33678         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33679         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33680         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33681         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33682         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33683         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33684         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33685         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33686         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33687         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33688         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33689         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33690         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33691         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33692         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33693         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33694         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33695         * modules/trim (configure.ac): Likewise.
33696
33697 2008-12-17  Bruno Haible  <bruno@clisp.org>
33698
33699         * modules/btowc-tests: New file.
33700         * tests/test-btowc1.sh: New file.
33701         * tests/test-btowc2.sh: New file.
33702         * tests/test-btowc.c: New file.
33703
33704         New module 'btowc'.
33705         * lib/wchar.in.h (btowc): New declaration.
33706         * lib/btowc.c: New file.
33707         * m4/btowc.m4: New file.
33708         * modules/btowc: New file.
33709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33710         HAVE_BTOWC.
33711         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33712         * doc/posix-functions/btowc.texi: Document the new module.
33713
33714 2008-12-17  Bruno Haible  <bruno@clisp.org>
33715
33716         New module 'mbsinit'.
33717         * lib/wchar.in.h (mbsinit): New declaration.
33718         * lib/mbsinit.c: New file.
33719         * m4/mbsinit.m4: New file.
33720         * modules/mbsinit: New file.
33721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33722         HAVE_MBSINIT.
33723         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33724         HAVE_MBSINIT.
33725         * doc/posix-functions/mbsinit.texi: Document the new module.
33726
33727 2008-12-16  Bruno Haible  <bruno@clisp.org>
33728
33729         * lib/unistd.in.h: Add comment.
33730         * tests/test-environ.c: Don't include <stdlib.h>.
33731
33732 2008-12-16  Bruno Haible  <bruno@clisp.org>
33733
33734         * lib/parse-duration.h (parse_duration): Document return value
33735         convention.
33736         * lib/parse-duration.c: Include specification header first. Add
33737         comments.
33738         (_): Remove macro.
33739         (parse_year_month_day, parse_hour_minute_second): Move side effects
33740         outside of strchr call.
33741         (parse_non_iso8601): Move side effects outside of isspace call.
33742         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33743         call.
33744
33745 2008-12-16  Bruno Haible  <bruno@clisp.org>
33746
33747         * tests/test-parse-duration.sh: Produce no output when the test
33748         succeeds.
33749
33750 2008-12-16  Bruno Haible  <bruno@clisp.org>
33751
33752         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33753         expressions.
33754
33755 2008-12-15  Bruno Haible  <bruno@clisp.org>
33756
33757         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33758         * doc/glibc-functions/flistxattr.texi: Likewise.
33759         * doc/glibc-functions/fopencookie.texi: Likewise.
33760         * doc/glibc-functions/fremovexattr.texi: Likewise.
33761         * doc/glibc-functions/fsetxattr.texi: Likewise.
33762         * doc/glibc-functions/getxattr.texi: Likewise.
33763         * doc/glibc-functions/lgetxattr.texi: Likewise.
33764         * doc/glibc-functions/listxattr.texi: Likewise.
33765         * doc/glibc-functions/llistxattr.texi: Likewise.
33766         * doc/glibc-functions/lremovexattr.texi: Likewise.
33767         * doc/glibc-functions/lsetxattr.texi: Likewise.
33768         * doc/glibc-functions/removexattr.texi: Likewise.
33769         * doc/glibc-functions/setxattr.texi: Likewise.
33770         * doc/posix-functions/open_memstream.texi: Likewise.
33771
33772 2008-12-15  Eric Blake  <ebb9@byu.net>
33773
33774         Update doc for cygwin 1.7.
33775         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33776         functions.
33777         * doc/posix-functions/fchmodat.texi: Likewise.
33778         * doc/posix-functions/fchownat.texi: Likewise.
33779         * doc/posix-functions/fdopendir.texi: Likewise.
33780         * doc/posix-functions/fmemopen.texi: Likewise.
33781         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33782         * doc/posix-functions/fstatat.texi: Likewise.
33783         * doc/posix-functions/futimens.texi: Likewise.
33784         * doc/posix-functions/gai_strerror.texi: Likewise.
33785         * doc/posix-functions/getaddrinfo.texi: Likewise.
33786         * doc/posix-functions/getnameinfo.texi: Likewise.
33787         * doc/posix-functions/if_freenameindex.texi: Likewise.
33788         * doc/posix-functions/if_indextoname.texi: Likewise.
33789         * doc/posix-functions/if_nameindex.texi: Likewise.
33790         * doc/posix-functions/if_nametoindex.texi: Likewise.
33791         * doc/posix-functions/insque.texi: Likewise.
33792         * doc/posix-functions/linkat.texi: Likewise.
33793         * doc/posix-functions/llrint.texi: Likewise.
33794         * doc/posix-functions/llrintf.texi: Likewise.
33795         * doc/posix-functions/llrintl.texi: Likewise.
33796         * doc/posix-functions/lockf.texi: Likewise.
33797         * doc/posix-functions/lrintl.texi: Likewise.
33798         * doc/posix-functions/mkdirat.texi: Likewise.
33799         * doc/posix-functions/mkfifoat.texi: Likewise.
33800         * doc/posix-functions/mknodat.texi: Likewise.
33801         * doc/posix-functions/mq_close.texi: Likewise.
33802         * doc/posix-functions/mq_getattr.texi: Likewise.
33803         * doc/posix-functions/mq_notify.texi: Likewise.
33804         * doc/posix-functions/mq_open.texi: Likewise.
33805         * doc/posix-functions/mq_receive.texi: Likewise.
33806         * doc/posix-functions/mq_send.texi: Likewise.
33807         * doc/posix-functions/mq_setattr.texi: Likewise.
33808         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33809         * doc/posix-functions/mq_timedsend.texi: Likewise.
33810         * doc/posix-functions/mq_unlink.texi: Likewise.
33811         * doc/posix-functions/open_memstream.texi: Likewise.
33812         * doc/posix-functions/openat.texi: Likewise.
33813         * doc/posix-functions/posix_fadvise.texi: Likewise.
33814         * doc/posix-functions/posix_fallocate.texi: Likewise.
33815         * doc/posix-functions/posix_madvise.texi: Likewise.
33816         * doc/posix-functions/posix_memalign.texi: Likewise.
33817         * doc/posix-functions/posix_openpt.texi: Likewise.
33818         * doc/posix-functions/readlinkat.texi: Likewise.
33819         * doc/posix-functions/remque.texi: Likewise.
33820         * doc/posix-functions/renameat.texi: Likewise.
33821         * doc/posix-functions/rintl.texi: Likewise.
33822         * doc/posix-functions/sem_unlink.texi: Likewise.
33823         * doc/posix-functions/shm_open.texi: Likewise.
33824         * doc/posix-functions/shm_unlink.texi: Likewise.
33825         * doc/posix-functions/signgam.texi: Likewise.
33826         * doc/posix-functions/sigset.texi: Likewise.
33827         * doc/posix-functions/stpcpy.texi: Likewise.
33828         * doc/posix-functions/stpncpy.texi: Likewise.
33829         * doc/posix-functions/strerror.texi: Likewise.
33830         * doc/posix-functions/strtod.texi: Likewise.
33831         * doc/posix-functions/symlinkat.texi: Likewise.
33832         * doc/posix-functions/unlinkat.texi: Likewise.
33833         * doc/posix-functions/utimensat.texi: Likewise.
33834         * doc/glibc-functions/bindresvport.texi: Likewise.
33835         * doc/glibc-functions/dn_expand.texi: Likewise.
33836         * doc/glibc-functions/exp10.texi: Likewise.
33837         * doc/glibc-functions/exp10f.texi: Likewise.
33838         * doc/glibc-functions/fgetxattr.texi: Likewise.
33839         * doc/glibc-functions/flistxattr.texi: Likewise.
33840         * doc/glibc-functions/fopencookie.texi: Likewise.
33841         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33842         * doc/glibc-functions/fremovexattr.texi: Likewise.
33843         * doc/glibc-functions/fsetxattr.texi: Likewise.
33844         * doc/glibc-functions/getifaddrs.texi: Likewise.
33845         * doc/glibc-functions/getxattr.texi: Likewise.
33846         * doc/glibc-functions/lgetxattr.texi: Likewise.
33847         * doc/glibc-functions/listxattr.texi: Likewise.
33848         * doc/glibc-functions/llistxattr.texi: Likewise.
33849         * doc/glibc-functions/lremovexattr.texi: Likewise.
33850         * doc/glibc-functions/lsetxattr.texi: Likewise.
33851         * doc/glibc-functions/pow10.texi: Likewise.
33852         * doc/glibc-functions/pow10f.texi: Likewise.
33853         * doc/glibc-functions/rcmd_af.texi: Likewise.
33854         * doc/glibc-functions/removexattr.texi: Likewise.
33855         * doc/glibc-functions/res_init.texi: Likewise.
33856         * doc/glibc-functions/res_mkquery.texi: Likewise.
33857         * doc/glibc-functions/res_query.texi: Likewise.
33858         * doc/glibc-functions/res_querydomain.texi: Likewise.
33859         * doc/glibc-functions/res_send.texi: Likewise.
33860         * doc/glibc-functions/rresvport_af.texi: Likewise.
33861         * doc/glibc-functions/setxattr.texi: Likewise.
33862         * doc/glibc-functions/strcasestr.texi: Likewise.
33863
33864 2008-12-15  Bruno Haible  <bruno@clisp.org>
33865
33866         Fix compilation error on OSF/1 4.0.
33867         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33868         <sys/time.h>, simply delegate to the system header.
33869         Reported by Daniel Richard G. <oss@teragram.com>.
33870
33871 2008-12-15  Bruno Haible  <bruno@clisp.org>
33872
33873         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33874         * doc/posix-functions/fchmodat.texi: Likewise.
33875         * doc/posix-functions/fchownat.texi: Likewise.
33876         * doc/posix-functions/fdopendir.texi: Likewise.
33877         * doc/posix-functions/fstatat.texi: Likewise.
33878         * doc/posix-functions/mkdirat.texi: Likewise.
33879         * doc/posix-functions/unlinkat.texi: Likewise.
33880
33881 2008-12-14  Bruno Haible  <bruno@clisp.org>
33882
33883         Update doc for POSIX:2008.
33884         * doc/posix-functions/faccessat.texi: New file.
33885         * doc/posix-functions/fchmodat.texi: New file.
33886         * doc/posix-functions/fchownat.texi: New file.
33887         * doc/posix-functions/fdopendir.texi: New file.
33888         * doc/posix-functions/fstatat.texi: New file.
33889         * doc/posix-functions/futimens.texi: New file.
33890         * doc/posix-functions/linkat.texi: New file.
33891         * doc/posix-functions/mkdirat.texi: New file.
33892         * doc/posix-functions/mkfifoat.texi: New file.
33893         * doc/posix-functions/mknodat.texi: New file.
33894         * doc/posix-functions/open_wmemstream.texi: New file.
33895         * doc/posix-functions/openat.texi: New file.
33896         * doc/posix-functions/psiginfo.texi: New file.
33897         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33898         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33899         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33900         * doc/posix-functions/readlinkat.texi: New file.
33901         * doc/posix-functions/renameat.texi: New file.
33902         * doc/posix-functions/strerror_l.texi: New file.
33903         * doc/posix-functions/symlinkat.texi: New file.
33904         * doc/posix-functions/unlinkat.texi: New file.
33905         * doc/posix-functions/utimensat.texi: New file.
33906         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33907
33908 2008-12-14  Bruno Haible  <bruno@clisp.org>
33909
33910         Update doc for POSIX:2008.
33911         * doc/posix-functions/alphasort.texi: Renamed from
33912         doc/glibc-functions/alphasort.texi.
33913         * doc/posix-functions/dirfd.texi: Renamed from
33914         doc/glibc-functions/dirfd.texi.
33915         * doc/posix-functions/dprintf.texi: Renamed from
33916         doc/glibc-functions/dprintf.texi.
33917         * doc/posix-functions/duplocale.texi: Renamed from
33918         doc/glibc-functions/duplocale.texi.
33919         * doc/posix-functions/fexecve.texi: Renamed from
33920         doc/glibc-functions/fexecve.texi.
33921         * doc/posix-functions/fmemopen.texi: Renamed from
33922         doc/glibc-functions/fmemopen.texi.
33923         * doc/posix-functions/freelocale.texi: Renamed from
33924         doc/glibc-functions/freelocale.texi.
33925         * doc/posix-functions/getdate_err.texi: Renamed from
33926         doc/glibc-functions/getdate_err.texi.
33927         * doc/posix-functions/isalnum_l.texi: Renamed from
33928         doc/glibc-functions/isalnum_l.texi.
33929         * doc/posix-functions/isalpha_l.texi: Renamed from
33930         doc/glibc-functions/isalpha_l.texi.
33931         * doc/posix-functions/isblank_l.texi: Renamed from
33932         doc/glibc-functions/isblank_l.texi.
33933         * doc/posix-functions/iscntrl_l.texi: Renamed from
33934         doc/glibc-functions/iscntrl_l.texi.
33935         * doc/posix-functions/isdigit_l.texi: Renamed from
33936         doc/glibc-functions/isdigit_l.texi.
33937         * doc/posix-functions/isgraph_l.texi: Renamed from
33938         doc/glibc-functions/isgraph_l.texi.
33939         * doc/posix-functions/islower_l.texi: Renamed from
33940         doc/glibc-functions/islower_l.texi.
33941         * doc/posix-functions/isprint_l.texi: Renamed from
33942         doc/glibc-functions/isprint_l.texi.
33943         * doc/posix-functions/ispunct_l.texi: Renamed from
33944         doc/glibc-functions/ispunct_l.texi.
33945         * doc/posix-functions/isspace_l.texi: Renamed from
33946         doc/glibc-functions/isspace_l.texi.
33947         * doc/posix-functions/isupper_l.texi: Renamed from
33948         doc/glibc-functions/isupper_l.texi.
33949         * doc/posix-functions/iswalnum_l.texi: Renamed from
33950         doc/glibc-functions/iswalnum_l.texi.
33951         * doc/posix-functions/iswalpha_l.texi: Renamed from
33952         doc/glibc-functions/iswalpha_l.texi.
33953         * doc/posix-functions/iswblank_l.texi: Renamed from
33954         doc/glibc-functions/iswblank_l.texi.
33955         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33956         doc/glibc-functions/iswcntrl_l.texi.
33957         * doc/posix-functions/iswctype_l.texi: Renamed from
33958         doc/glibc-functions/iswctype_l.texi.
33959         * doc/posix-functions/iswdigit_l.texi: Renamed from
33960         doc/glibc-functions/iswdigit_l.texi.
33961         * doc/posix-functions/iswgraph_l.texi: Renamed from
33962         doc/glibc-functions/iswgraph_l.texi.
33963         * doc/posix-functions/iswlower_l.texi: Renamed from
33964         doc/glibc-functions/iswlower_l.texi.
33965         * doc/posix-functions/iswprint_l.texi: Renamed from
33966         doc/glibc-functions/iswprint_l.texi.
33967         * doc/posix-functions/iswpunct_l.texi: Renamed from
33968         doc/glibc-functions/iswpunct_l.texi.
33969         * doc/posix-functions/iswspace_l.texi: Renamed from
33970         doc/glibc-functions/iswspace_l.texi.
33971         * doc/posix-functions/iswupper_l.texi: Renamed from
33972         doc/glibc-functions/iswupper_l.texi.
33973         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33974         doc/glibc-functions/iswxdigit_l.texi.
33975         * doc/posix-functions/isxdigit_l.texi: Renamed from
33976         doc/glibc-functions/isxdigit_l.texi.
33977         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33978         doc/glibc-functions/mbsnrtowcs.texi.
33979         * doc/posix-functions/mkdtemp.texi: Renamed from
33980         doc/glibc-functions/mkdtemp.texi.
33981         * doc/posix-functions/newlocale.texi: Renamed from
33982         doc/glibc-functions/newlocale.texi.
33983         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33984         doc/glibc-functions/nl_langinfo_l.texi.
33985         * doc/posix-functions/open_memstream.texi: Renamed from
33986         doc/glibc-functions/open_memstream.texi.
33987         * doc/posix-functions/opterr.texi: Renamed from
33988         doc/glibc-functions/opterr.texi.
33989         * doc/posix-functions/optind.texi: Renamed from
33990         doc/glibc-functions/optind.texi.
33991         * doc/posix-functions/optopt.texi: Renamed from
33992         doc/glibc-functions/optopt.texi.
33993         * doc/posix-functions/psignal.texi: Renamed from
33994         doc/glibc-functions/psignal.texi.
33995         * doc/posix-functions/scandir.texi: Renamed from
33996         doc/glibc-functions/scandir.texi.
33997         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33998         doc/glibc-functions/sched_get_priority_min.texi.
33999         * doc/posix-functions/signgam.texi: Renamed from
34000         doc/glibc-functions/signgam.texi.
34001         * doc/posix-functions/stpcpy.texi: Renamed from
34002         doc/glibc-functions/stpcpy.texi.
34003         * doc/posix-functions/stpncpy.texi: Renamed from
34004         doc/glibc-functions/stpncpy.texi.
34005         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34006         doc/glibc-functions/strcasecmp_l.texi.
34007         * doc/posix-functions/strcoll_l.texi: Renamed from
34008         doc/glibc-functions/strcoll_l.texi.
34009         * doc/posix-functions/strfmon_l.texi: Renamed from
34010         doc/glibc-functions/strfmon_l.texi.
34011         * doc/posix-functions/strftime_l.texi: Renamed from
34012         doc/glibc-functions/strftime_l.texi.
34013         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34014         doc/glibc-functions/strncasecmp_l.texi.
34015         * doc/posix-functions/strndup.texi: Renamed from
34016         doc/glibc-functions/strndup.texi.
34017         * doc/posix-functions/strnlen.texi: Renamed from
34018         doc/glibc-functions/strnlen.texi.
34019         * doc/posix-functions/strsignal.texi: Renamed from
34020         doc/glibc-functions/strsignal.texi.
34021         * doc/posix-functions/strxfrm_l.texi: Renamed from
34022         doc/glibc-functions/strxfrm_l.texi.
34023         * doc/posix-functions/timer_gettime.texi: Renamed from
34024         doc/glibc-functions/timer_gettime.texi.
34025         * doc/posix-functions/tolower_l.texi: Renamed from
34026         doc/glibc-functions/tolower_l.texi.
34027         * doc/posix-functions/toupper_l.texi: Renamed from
34028         doc/glibc-functions/toupper_l.texi.
34029         * doc/posix-functions/towctrans_l.texi: Renamed from
34030         doc/glibc-functions/towctrans_l.texi.
34031         * doc/posix-functions/towlower_l.texi: Renamed from
34032         doc/glibc-functions/towlower_l.texi.
34033         * doc/posix-functions/towupper_l.texi: Renamed from
34034         doc/glibc-functions/towupper_l.texi.
34035         * doc/posix-functions/uselocale.texi: Renamed from
34036         doc/glibc-functions/uselocale.texi.
34037         * doc/posix-functions/vdprintf.texi: Renamed from
34038         doc/glibc-functions/vdprintf.texi.
34039         * doc/posix-functions/wcpcpy.texi:
34040         Renamed from doc/glibc-functions/wcpcpy.texi.
34041         * doc/posix-functions/wcpncpy.texi: Renamed from
34042         doc/glibc-functions/wcpncpy.texi.
34043         * doc/posix-functions/wcscasecmp.texi: Renamed from
34044         doc/glibc-functions/wcscasecmp.texi.
34045         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34046         doc/glibc-functions/wcscasecmp_l.texi.
34047         * doc/posix-functions/wcscoll_l.texi: Renamed from
34048         doc/glibc-functions/wcscoll_l.texi.
34049         * doc/posix-functions/wcsdup.texi: Renamed from
34050         doc/glibc-functions/wcsdup.texi.
34051         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34052         doc/glibc-functions/wcsncasecmp.texi.
34053         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34054         doc/glibc-functions/wcsncasecmp_l.texi.
34055         * doc/posix-functions/wcsnlen.texi: Renamed from
34056         doc/glibc-functions/wcsnlen.texi.
34057         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34058         doc/glibc-functions/wcsnrtombs.texi.
34059         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34060         doc/glibc-functions/wcsxfrm_l.texi.
34061         * doc/posix-functions/wctrans_l.texi: Renamed from
34062         doc/glibc-functions/wctrans_l.texi.
34063         * doc/posix-functions/wctype_l.texi: Renamed from
34064         doc/glibc-functions/wctype_l.texi.
34065         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34066         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34067         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34068         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34069         these subsections.
34070         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34071         Remove sections.
34072
34073 2008-12-14  Bruno Haible  <bruno@clisp.org>
34074
34075         Update doc for POSIX:2008.
34076         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34077
34078 2008-12-14  Bruno Haible  <bruno@clisp.org>
34079
34080         Update doc for POSIX:2008.
34081         * doc/pastposix-functions/bcmp.texi: Renamed from
34082         doc/posix-functions/bcmp.texi.
34083         * doc/pastposix-functions/bcopy.texi: Renamed from
34084         doc/posix-functions/bcopy.texi.
34085         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34086         doc/posix-functions/bsd_signal.texi.
34087         * doc/pastposix-functions/bzero.texi: Renamed from
34088         doc/posix-functions/bzero.texi.
34089         * doc/pastposix-functions/ecvt.texi: Renamed from
34090         doc/posix-functions/ecvt.texi.
34091         * doc/pastposix-functions/fcvt.texi: Renamed from
34092         doc/posix-functions/fcvt.texi.
34093         * doc/pastposix-functions/ftime.texi: Renamed from
34094         doc/posix-functions/ftime.texi.
34095         * doc/pastposix-functions/gcvt.texi: Renamed from
34096         doc/posix-functions/gcvt.texi.
34097         * doc/pastposix-functions/getcontext.texi: Renamed from
34098         doc/posix-functions/getcontext.texi.
34099         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34100         doc/posix-functions/gethostbyaddr.texi.
34101         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34102         doc/posix-functions/gethostbyname.texi.
34103         * doc/pastposix-functions/getwd.texi: Renamed from
34104         doc/posix-functions/getwd.texi.
34105         * doc/pastposix-functions/h_errno.texi: Renamed from
34106         doc/posix-functions/h_errno.texi.
34107         * doc/pastposix-functions/index.texi: Renamed from
34108         doc/posix-functions/index.texi.
34109         * doc/pastposix-functions/makecontext.texi: Renamed from
34110         doc/posix-functions/makecontext.texi.
34111         * doc/pastposix-functions/mktemp.texi: Renamed from
34112         doc/posix-functions/mktemp.texi.
34113         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34114         doc/posix-functions/pthread_attr_getstackaddr.texi.
34115         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34116         doc/posix-functions/pthread_attr_setstackaddr.texi.
34117         * doc/pastposix-functions/rindex.texi: Renamed from
34118         doc/posix-functions/rindex.texi.
34119         * doc/pastposix-functions/scalb.texi: Renamed from
34120         doc/posix-functions/scalb.texi.
34121         * doc/pastposix-functions/setcontext.texi: Renamed from
34122         doc/posix-functions/setcontext.texi.
34123         * doc/pastposix-functions/swapcontext.texi: Renamed from
34124         doc/posix-functions/swapcontext.texi.
34125         * doc/pastposix-functions/ualarm.texi: Renamed from
34126         doc/posix-functions/ualarm.texi.
34127         * doc/pastposix-functions/usleep.texi: Renamed from
34128         doc/posix-functions/usleep.texi.
34129         * doc/pastposix-functions/vfork.texi: Renamed from
34130         doc/posix-functions/vfork.texi.
34131         * doc/pastposix-functions/wcswcs.texi: Renamed from
34132         doc/posix-functions/wcswcs.texi.
34133         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34134         (Function Substitutes): Update.
34135
34136 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34137
34138         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34139         m4/strerror.m4.
34140
34141 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34142             Bruno Haible  <bruno@clisp.org>
34143
34144         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34145
34146 2008-12-13  Bruno Haible  <bruno@clisp.org>
34147
34148         * modules/strtoull (Depends-on): Remove unistd.
34149
34150 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34151
34152         * modules/strtoull (Depends-on): Add stdlib.
34153
34154 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34155
34156         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34157
34158 2008-12-10  Jim Meyering  <meyering@redhat.com>
34159
34160         gl_ASSERT: don't say assertions are disabled when they're not
34161         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34162         "checking whether to enable assertions... no", when they are in
34163         fact enabled.  This is solely a bug in the output of configure.
34164         In spite of saying "no", NDEBUG was not defined in that case.
34165         Also, as noted by Eric Blake, leave assertions enabled upon
34166         --enable-assert=INVALID.
34167
34168 2008-12-10  Bruno Haible  <bruno@clisp.org>
34169
34170         Change MODULES.html to refer to POSIX:2008 where possible.
34171         * MODULES.html.sh (POSIX2008_URL): New variable.
34172         (posix_headers): Remove sys/timeb, ucontext.
34173         (posix2001_headers): New variable.
34174         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34175         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34176         index, makecontext, mktemp, pthread_attr_getstackaddr,
34177         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34178         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34179         (posix2001_functions): New variable.
34180         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34181         otherwise.
34182
34183 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34184
34185         add missing include to parse-duration.c
34186         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34187         * modules/parse-duration (Depends-on): Add xalloc.
34188
34189         fix sed script reading maint.mk
34190         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34191         (syntax-check-rules): Use it.
34192
34193 2008-12-09  Bruno Haible  <bruno@clisp.org>
34194
34195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34196         MacOS X 10.4/PowerPC.
34197         Reported by Simon Josefsson.
34198
34199 2008-12-08  Jim Meyering  <meyering@redhat.com>
34200
34201         work around mingw's lack of some S_IF definitions
34202         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34203         Reported by Simon Josefsson.
34204
34205 2008-12-08  Bruno Haible  <bruno@clisp.org>
34206
34207         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34208         applied to variables. Needed on MacOS X 10.4/PowerPC.
34209         Reported by Simon Josefsson.
34210
34211 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34212         and Eric Blake  <ebb9@byu.net>
34213
34214         assert: honor --enable-assert
34215         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34216         order to honor --enable-assert, rather than treating it as a
34217         synonym for --disable-assert.
34218
34219 2008-12-08  Jim Meyering  <meyering@redhat.com>
34220
34221         * lib/posixtm.c: Remove now-useless declaration of mktime.
34222
34223         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34224
34225 2008-12-07  Bruno Haible  <bruno@clisp.org>
34226
34227         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34228         test_once): Mark functions as static.
34229         * tests/test-tls.c (test_tls): Likewise.
34230
34231 2008-12-07  Bruno Haible  <bruno@clisp.org>
34232
34233         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34234         iconv_register_autodetect.
34235
34236 2008-12-07  Jim Meyering  <meyering@redhat.com>
34237
34238         posixtm.c: avoid a warning
34239         * lib/posixtm.c (posixtime): Don't initialize tm0.
34240         It's no longer needed to placate gcc4's -Wuninitialized,
34241         and the attempt to placate would elicit a new warning.
34242
34243         unicodeio.c: mark unused parameters
34244         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34245         (fallback_failure_callback): Likewise.
34246
34247 2008-12-07  Bruno Haible  <bruno@clisp.org>
34248
34249         * gnulib-tool (func_create_testdir): When building the tests
34250         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34251         Reported by Simon Josefsson.
34252
34253 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34254
34255         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34256
34257 2008-12-06  Bruno Haible  <bruno@clisp.org>
34258
34259         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34260         Suggested by Eric Blake.
34261
34262 2008-12-06  Bruno Haible  <bruno@clisp.org>
34263
34264         Fix a c-stack test failure on MacOS X.
34265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34266         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34267         handler for SIGBUS as well.
34268         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34269         install a signal handler for SIGBUS as well.
34270         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34271
34272 2008-12-06  Bruno Haible  <bruno@clisp.org>
34273
34274         Advocacy documentation.
34275         * doc/gnulib-intro.texi (Benefits): New section.
34276         * doc/gnulib.texi: Update.
34277
34278 2008-12-06  Bruno Haible  <bruno@clisp.org>
34279
34280         Document the 'manywarnings' module.
34281         * doc/manywarnings.texi: New file.
34282         * doc/gnulib.texi: Include it.
34283
34284 2008-12-05  Eric Blake  <ebb9@byu.net>
34285
34286         tests: silence some gcc warnings
34287         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34288         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34289         type mismatches.
34290
34291 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34292             Bruno Haible  <bruno@clisp.org>
34293
34294         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34295
34296 2008-11-29  Jim Meyering  <meyering@redhat.com>
34297
34298         unicodeio.c: mark unused parameters
34299         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34300         (fallback_failure_callback): Likewise.
34301
34302         fts: fix a thinko
34303         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34304         (set_stat_type): Return S_IF*-valued "type" directly.
34305         Prompted by James Youngman's spotting a related bug.
34306         Confirmed by further testing through find.
34307
34308         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34309         * lib/fts.c (D_TYPE): Define.
34310         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34311         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34312         (s_ifmt_shift_bits): New function.
34313         (set_stat_type): New function.
34314         (fts_build): When not calling fts_stat, call set_stat_type
34315         to propagate dirent.d_type info to fts_read caller.
34316         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34317         fts_statp->st_mode type information may be valid.
34318
34319 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34320
34321         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34322         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34323         <sds@gnu.org>.
34324
34325 2008-11-20  Bruno Haible  <bruno@clisp.org>
34326
34327         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34328         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34329         INCLUDE_NEXT.
34330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34331         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34332         * modules/math (Makefile.am): Substitute
34333         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34334         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34335
34336 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34337             Bruno Haible  <bruno@clisp.org>
34338
34339         * lib/stdint.in.h: Define all type macros so that their expansion is
34340         a single typedef'ed token. Fixes a compilation failure in Boost which
34341         does "using ::int8_t;".
34342
34343 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34344
34345         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34346         gl_MANYWARN_ALL_GCC.
34347         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34348         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34349         * modules/manywarnings: New file.
34350         * MODULES.html.sh: Mention manywarnings module.
34351
34352 2008-11-18  Bruno Haible  <bruno@clisp.org>
34353
34354         * doc/gnulib-tool.texi (Unit tests): New section.
34355
34356 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34357
34358         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34359         paths like 'lib/po/foo.po'.
34360
34361 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34362
34363         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34364         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34365
34366 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34367
34368         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34369         parameter works.
34370
34371 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34372
34373         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34374
34375 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34376
34377         * modules/parse-duration-tests: New file.
34378         * tests/test-parse-duration.sh: New file.
34379         * tests/test-parse-duration.c: New file.
34380
34381         New module 'parse-duration'.
34382         * lib/parse-duration.h: New file.
34383         * lib/parse-duration.c: New file.
34384         * modules/parse-duration: New file.
34385
34386 2008-11-17  Bruno Haible  <bruno@clisp.org>
34387
34388         * tests/test-select-out.sh: Comment out the first pipe test.
34389         Reported by Simon Josefsson.
34390
34391 2008-11-17  Bruno Haible  <bruno@clisp.org>
34392
34393         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34394         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34395         gl_HOSTENT.
34396
34397 2008-11-17  Bruno Haible  <bruno@clisp.org>
34398
34399         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34400         -lnetwork and -lnet. Needed for Haiku and BeOS.
34401
34402 2008-11-16  Bruno Haible  <bruno@clisp.org>
34403
34404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34405
34406 2008-11-16  Bruno Haible  <bruno@clisp.org>
34407
34408         Avoid test failure on Haiku.
34409         * tests/test-fsync.c: Include <errno.h>.
34410         (main): Don't require that fsync (0) fails.
34411
34412 2008-11-15  Bruno Haible  <bruno@clisp.org>
34413
34414         New module 'hostent'.
34415         * modules/hostent: New file.
34416         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34417
34418 2008-11-15  Bruno Haible  <bruno@clisp.org>
34419
34420         New module 'servent'.
34421         * modules/servent: New file.
34422         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34423
34424 2008-11-15  Bruno Haible  <bruno@clisp.org>
34425
34426         Avoid generating same test program with two different rules.
34427         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34428         test-frexp to test-frexp-nolibm.
34429         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34430         test-frexpl to test-frexpl-nolibm.
34431
34432 2008-11-15  Bruno Haible  <bruno@clisp.org>
34433
34434         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34435         $(FREXPL_LIBM).
34436
34437 2008-11-15  Bruno Haible  <bruno@clisp.org>
34438
34439         * lib/netdb.in.h: Activate the definitions also when the system's
34440         <netdb.h> has 'struct addrinfo'.
34441         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34442         EAI_OVERFLOW or AI_NUMERICSERV.
34443         * doc/posix-headers/netdb.texi: Document the problem.
34444
34445 2008-11-15  Bruno Haible  <bruno@clisp.org>
34446
34447         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34448
34449         Make the 'sched' module work on platforms where <sched.h> exists but
34450         is incomplete (such as Haiku).
34451         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34452         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34453         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34454         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34455         HAVE_STRUCT_SCHED_PARAM.
34456         * modules/sched (Depends-on): Add include_next.
34457         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34458         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34459         * doc/posix-headers/sched.texi: Document the issue.
34460
34461 2008-11-13  Jim Meyering  <meyering@redhat.com>
34462
34463         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34464         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34465         test would fail due to the difference in the Report bugs to ...
34466         line.  The expected address is empty, "<>", while the actual
34467         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34468
34469 2008-11-12  Bruno Haible  <bruno@clisp.org>
34470
34471         lstat: don't compile lstat.c on systems lacking lstat
34472         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34473         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34474         Reported by Daniel P. Berrange via Jim Meyering.
34475
34476 2008-11-12  Jim Meyering  <meyering@redhat.com>
34477
34478         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34479
34480 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34481
34482         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34483         instead.
34484
34485 2008-11-12  Bruno Haible  <bruno@clisp.org>
34486
34487         * lib/unicodeio.c: Include unistr.h.
34488         (utf8_wctomb): Remove function.
34489         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34490
34491 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34492
34493         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34494         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34495         <bruno@clisp.org>.
34496         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34497
34498 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34499
34500         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34501         * doc/gnulib.texi: Add section for warnings.
34502
34503 2008-11-11  Bruno Haible  <bruno@clisp.org>
34504
34505         * lib/sockets.h: Add a comment.
34506
34507 2008-11-11  Karl Berry  <karl@gnu.org>
34508
34509         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34510
34511 2008-11-11  Eric Blake  <ebb9@byu.net>
34512
34513         fdl.texi: avoid git symlinks
34514         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34515
34516 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34517
34518         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34519
34520 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34521
34522         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34523         (gl_WARN_ADD): Substitute $2 if literal.
34524
34525 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34526
34527         * m4/warning.m4: Remove.
34528
34529 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34530
34531         * m4/warnings.m4: Almost complete rewrite. :-)
34532
34533 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34534
34535         * modules/warnings: New module.
34536         * m4/warnings.m4: New file.
34537         * MODULES.html.sh: Mention warnings module.
34538         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34539         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34540
34541 2008-11-10  Eric Blake  <ebb9@byu.net>
34542
34543         fdl.texi: make a symlink to the latest version
34544         * doc/standards.texi: Revert today's earlier change.
34545         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34546         * doc/fdl.texi: ...and replace this with a symlink to the newer
34547         fdl-1.3.texi.
34548
34549 2008-11-10  Bruno Haible  <bruno@clisp.org>
34550
34551         * tests/test-select-fd.c (main): Accept the result file name as fourth
34552         argument.
34553         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34554         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34555
34556 2008-11-10  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34559         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34560         as autoconf-substituted macros.
34561         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34563         gl_NETDB_H_DEFAULTS. Set these variables.
34564         * modules/netdb (Makefile.am): Substitute these variables.
34565
34566 2008-11-10  Eric Blake  <ebb9@byu.net>
34567
34568         standards.texi: include correct file for FDL 1.3
34569         * doc/standards.texi (GNU Free Documentation License): Change
34570         include file to pull in FDL 1.3, not 1.2.
34571
34572         fdl.texi: revert accidental change to license
34573         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34574
34575 2008-11-10  Bruno Haible  <bruno@clisp.org>
34576
34577         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34578         cross-compiling guesses also when the native compile gives no result.
34579
34580 2008-11-10  Bruno Haible  <bruno@clisp.org>
34581
34582         * lib/spawni.c (__spawni): Force variable into the stack.
34583
34584 2008-11-10  Bruno Haible  <bruno@clisp.org>
34585
34586         Add support for Haiku.
34587         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34588         glibc and BeOS, but also on Haiku.
34589         * lib/fpurge.c (fpurge): Likewise.
34590         * lib/freadable.c (freadable): Likewise.
34591         * lib/freadahead.c (freadahead): Likewise.
34592         * lib/freading.c (freading): Likewise.
34593         * lib/freadptr.c (freadptr): Likewise.
34594         * lib/freadseek.c (freadptrinc): Likewise.
34595         * lib/fseeko.c (rpl_fseeko): Likewise.
34596         * lib/fseterr.c (fseterr): Likewise.
34597         * lib/fwritable.c (fwritable): Likewise.
34598         * lib/fwriting.c (fwriting): Likewise.
34599         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34600
34601 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34602
34603         * lib/config.charset: Treat Haiku like BeOS.
34604
34605 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34606
34607         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34608         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34609
34610 2008-11-08  Bruno Haible  <bruno@clisp.org>
34611
34612         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34613         AC_CACHE_CHECK.
34614
34615 2008-11-08  Bruno Haible  <bruno@clisp.org>
34616
34617         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34618
34619 2008-11-08  Bruno Haible  <bruno@clisp.org>
34620
34621         * tests/test-select-fd.c: New file.
34622         * tests/test-select-in.sh: New file.
34623         * tests/test-select-out.sh: New file.
34624         * tests/test-select-stdin.c: New file.
34625         * modules/select-tests (Files): Add the new files.
34626         (Depends-on): Add gettimeofday.
34627         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34628         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34629         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34630
34631 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34632             Bruno Haible  <bruno@clisp.org>
34633
34634         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34635
34636 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34637
34638         * build-aux/pmccabe2html: Added support for C++ source files.
34639
34640 2008-11-05  Ben Pfaff  <blp@gnu.org>
34641
34642         Fix lib/close.c build on Windows.
34643         * modules/close (Files): Add lib/w32sock.h.
34644
34645 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34646
34647         Accept Bison's NEWS format.
34648         * build-aux/announce-gen (print_news_deltas): Tweak
34649         $re_prefix.
34650
34651 2008-11-04  Bruno Haible  <bruno@clisp.org>
34652
34653         * modules/random_r (Maintainer): Add glibc.
34654
34655 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34656
34657         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34658         by karl@freefriends.org (Karl Berry).
34659         * doc/alloca.texi: Likewise.
34660         * doc/c-ctype.texi: Likewise.
34661         * doc/c-strcase.texi: Likewise.
34662         * doc/c-strcaseeq.texi: Likewise.
34663         * doc/c-strcasestr.texi: Likewise.
34664         * doc/c-strstr.texi: Likewise.
34665         * doc/c-strtod.texi: Likewise.
34666         * doc/c-strtold.texi: Likewise.
34667         * doc/ctime.texi: Likewise.
34668         * doc/error.texi: Likewise.
34669         * doc/fdl.texi: Likewise.
34670         * doc/gcd.texi: Likewise.
34671         * doc/getdate.texi: Likewise.
34672         * doc/gnulib-intro.texi: Likewise.
34673         * doc/gnulib-tool.texi: Likewise.
34674         * doc/gnulib.texi: Likewise.
34675         * doc/inet_ntoa.texi: Likewise.
34676         * doc/maintain.texi: Likewise.
34677         * doc/make-stds.texi: Likewise.
34678         * doc/quote.texi: Likewise.
34679         * doc/regexprops-generic.texi: Likewise.
34680         * doc/standards.texi: Likewise.
34681         * doc/verify.texi: Likewise.
34682         * doc/visibility.texi: Likewise.
34683         * doc/gnulib.texi (GNU Free Documentation License): Include
34684         fdl-1.3.texi instead of fdl.texi.
34685
34686 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34687
34688         * doc/fdl-1.3.texi: New file, from
34689         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34690         * modules/fdl-1.3: Add.
34691         * MODULES.html.sh: Add fdl-1.3.
34692
34693 2008-11-03  Bruno Haible  <bruno@clisp.org>
34694
34695         Make determination of absolute name of header file work with AIX xlc.
34696         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34697         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34698         preprocessing.
34699         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34700         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34701
34702 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34703
34704         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34705         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34706         <ludo@gnu.org>.
34707
34708 2008-11-02  Bruno Haible  <bruno@clisp.org>
34709
34710         Mark 'strpbrk' obsolete.
34711         * modules/strpbrk (Status, Notice): New sections.
34712         * modules/strtok_r (Depends-on): Add strpbrk.
34713
34714 2008-11-02  Bruno Haible  <bruno@clisp.org>
34715
34716         Mark 'strdup' obsolete.
34717         * modules/strdup (Status, Notice): New sections.
34718         * modules/findprog (Depends-on): Add strdup.
34719         * modules/getaddrinfo (Depends-on): Likewise.
34720         * modules/localename (Depends-on): Likewise.
34721         * modules/relocatable-lib (Depends-on): Likewise.
34722         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34723         * modules/relocatable-prog (Depends-on): Likewise.
34724         * modules/trim (Depends-on): Likewise.
34725         * modules/unictype/gen-ctype (Depends-on): Likewise.
34726         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34727
34728 2008-11-02  Bruno Haible  <bruno@clisp.org>
34729
34730         Mark 'strcspn' obsolete.
34731         * modules/strcspn (Status, Notice): New sections.
34732
34733 2008-11-02  Bruno Haible  <bruno@clisp.org>
34734
34735         Mark 'rmdir' obsolete.
34736         * modules/rmdir (Status, Notice): New sections.
34737         * modules/clean-temp (Depends-on): Add rmdir.
34738         * modules/openat (Depends-on): Likewise.
34739
34740 2008-11-02  Bruno Haible  <bruno@clisp.org>
34741
34742         Mark 'raise' obsolete.
34743         * modules/raise (Status, Notice): New sections.
34744         (Include): Specify <signal.h>.
34745         * modules/stdio (Depends-on): Add raise.
34746         * modules/write (Depends-on): Likewise.
34747
34748 2008-11-02  Bruno Haible  <bruno@clisp.org>
34749
34750         Mark 'memset' obsolete.
34751         * modules/memset (Status, Notice): New sections.
34752
34753 2008-11-02  Bruno Haible  <bruno@clisp.org>
34754
34755         Mark 'memmove' obsolete.
34756         * modules/memmove (Status, Notice): New sections.
34757         * modules/argp (Depends-on): Add memmove.
34758         * modules/argz (Depends-on): Likewise.
34759         * modules/canonicalize (Depends-on): Likewise.
34760         * modules/canonicalize-lgpl (Depends-on): Likewise.
34761         * modules/fts (Depends-on): Likewise.
34762         * modules/getcwd (Depends-on): Likewise.
34763         * modules/human (Depends-on): Likewise.
34764         * modules/regex (Depends-on): Likewise.
34765         * modules/striconveh (Depends-on): Likewise.
34766         * modules/trim (Depends-on): Likewise.
34767         * modules/unistr/u8-move (Depends-on): Likewise.
34768         * modules/unistr/u16-move (Depends-on): Likewise.
34769         * modules/unistr/u32-move (Depends-on): Likewise.
34770
34771 2008-11-02  Bruno Haible  <bruno@clisp.org>
34772
34773         Mark 'memcpy' obsolete.
34774         * modules/memcpy (Status, Notice): New sections.
34775
34776 2008-11-02  Bruno Haible  <bruno@clisp.org>
34777
34778         Mark 'memcmp' obsolete.
34779         * modules/memcmp (Status, Notice): New sections.
34780         * modules/argmatch (Depends-on): Add memchr.
34781         * modules/backupfile (Depends-on): Likewise.
34782         * modules/c-strcasestr (Depends-on): Likewise.
34783         * modules/crypto/des (Depends-on): Likewise.
34784         * modules/csharpcomp (Depends-on): Likewise.
34785         * modules/fnmatch (Depends-on): Likewise.
34786         * modules/git-merge-changelog (Depends-on): Likewise.
34787         * modules/isnand (Depends-on): Likewise.
34788         * modules/isnand-nolibm (Depends-on): Likewise.
34789         * modules/isnanf (Depends-on): Likewise.
34790         * modules/isnanf-nolibm (Depends-on): Likewise.
34791         * modules/isnanl (Depends-on): Likewise.
34792         * modules/isnanl-nolibm (Depends-on): Likewise.
34793         * modules/mbchar (Depends-on): Likewise.
34794         * modules/memcoll (Depends-on): Likewise.
34795         * modules/quotearg (Depends-on): Likewise.
34796         * modules/regex (Depends-on): Likewise.
34797         * modules/relocatable-prog (Depends-on): Likewise.
34798         * modules/same (Depends-on): Likewise.
34799         * modules/signbit (Depends-on): Likewise.
34800         * modules/strcasestr-simple (Depends-on): Likewise.
34801         * modules/unictype/gen-ctype (Depends-on): Likewise.
34802         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34803         * modules/uniname/uniname (Depends-on): Likewise.
34804         * modules/unistr/u8-cmp (Depends-on): Likewise.
34805
34806 2008-11-02  Bruno Haible  <bruno@clisp.org>
34807
34808         Mark 'memchr' obsolete.
34809         * modules/memchr (Status, Notice): New sections.
34810         * modules/argp (Depends-on): Add memchr.
34811         * modules/base64 (Depends-on): Likewise.
34812         * modules/c-strcasestr (Depends-on): Likewise.
34813         * modules/chdir-long (Depends-on): Likewise.
34814         * modules/fnmatch (Depends-on): Likewise.
34815         * modules/getsubopt (Depends-on): Likewise.
34816         * modules/git-merge-changelog (Depends-on): Likewise.
34817         * modules/glob (Depends-on): Likewise.
34818         * modules/strcasestr-simple (Depends-on): Likewise.
34819         * modules/strnlen (Depends-on): Likewise.
34820
34821 2008-11-02  Bruno Haible  <bruno@clisp.org>
34822
34823         Mark 'atexit' obsolete.
34824         * modules/atexit (Status, Notice): New sections.
34825         * modules/chdir-long (Depends-on): Add atexit.
34826         * modules/wait-process (Depends-on): Likewise.
34827
34828 2008-11-02  Bruno Haible  <bruno@clisp.org>
34829
34830         * gnulib-tool: New option --with-obsolete.
34831         (func_usage): Document it.
34832         (func_modules_transitive_closure): Drop obsolete dependencies if
34833         incobsolete is not true.
34834         (func_import): Read and save the incobsolete variable to the cache.
34835
34836 2008-11-02  Bruno Haible  <bruno@clisp.org>
34837
34838         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34839         * gnulib-tool: New option --extract-status.
34840         (func_usage): Document it.
34841         (sed_extract_prog): Recognize it.
34842         (func_get_status): New function.
34843
34844 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34845
34846         * modules/sockets (License): Change from LGPL to LGPLv2+.
34847
34848 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34849
34850         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34851
34852 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34853
34854         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34855         Mention times and sys_times.
34856         * modules/sys_times, modules/sys_times-tests: New modules.
34857         * modules/times, modules/times-tests: Likewise
34858         * m4/sys_times_h.m4: New file.
34859         * lib/sys_times.in.h: Likewise
34860         * lib/times.c: Likewise.
34861         * tests/test-sys_times.c: Likewise.
34862         * tests/test-times.c: Likewise.
34863         * doc/posix-headers/sys_times.texi: Update.
34864         * doc/posix-functions/times.texi: Update.
34865
34866 2008-10-28  Jim Meyering  <meyering@redhat.com>
34867
34868         * modules/tempname (Depends-on): Add lstat.
34869
34870         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34871
34872 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34873
34874         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34875         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34876         using idiom used elsewhere in gnulib.
34877
34878 2008-10-27  Jim Meyering  <meyering@redhat.com>
34879
34880         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34881
34882 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34883
34884         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34885         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34886         programs.
34887         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34888
34889 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34890
34891         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34892
34893 2008-10-27  Bruno Haible  <bruno@clisp.org>
34894
34895         * tests/test-lstat.c: Include <stdio.h>.
34896
34897 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34898
34899         * modules/lstat-tests: New module.
34900         * tests/test-lstat.c: New file.
34901
34902 2008-10-26  Jim Meyering  <meyering@redhat.com>
34903
34904         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34905
34906 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34907             Bruno Haible  <bruno@clisp.org>
34908
34909         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34910         * modules/configmake (Include): Add a note that the include must come
34911         after all system headers.
34912         * lib/javaversion.c: Include configmake.h after all other includes.
34913
34914 2008-10-26  Bruno Haible  <bruno@clisp.org>
34915
34916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34917         HAVE_STRUCT_RANDOM_DATA to 1.
34918         (gl_STDLIB_H): Simplify.
34919
34920 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34921
34922         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34923         substitute HAVE_STRUCT_RANDOM_DATA.
34924         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34925         random_data.
34926         * modules/stdlib (Makefile.am): Substitute
34927         HAVE_STRUCT_RANDOM_DATA.
34928
34929 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34930
34931         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34932         * doc/gnulib-intro.texi (Copyright): Likewise.
34933
34934 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34935
34936         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34937         findings.
34938
34939 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34940             Bruno Haible  <bruno@clisp.org>
34941
34942         * lib/unistd.in.h: Include <winsock2.h>.
34943         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34944         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34945         Provide dummy declarations.
34946         (gethostname): Override.
34947         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34948         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34949         gl_PREREQ_SYS_H_WINSOCK2.
34950         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34951         * doc/posix-functions/gethostname.texi: More details.
34952
34953 2008-10-25  Bruno Haible  <bruno@clisp.org>
34954
34955         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34956         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34957         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34958
34959         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34960         here ...
34961         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34962         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34963         gl_UNISTD_H_DEFAULTS.
34964
34965 2008-10-25  Eric Blake  <ebb9@byu.net>
34966
34967         signbit: avoid spurious compiler failure
34968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34969         declarations inside function.
34970
34971 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34972             Bruno Haible  <bruno@clisp.org>
34973
34974         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34975         * modules/random_r (Depends-on): Add stdint.
34976
34977 2008-10-24  Bruno Haible  <bruno@clisp.org>
34978
34979         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34980         Eggert.
34981         * modules/strerror (License): Likewise.
34982
34983 2008-10-24  Jim Meyering  <meyering@redhat.com>
34984
34985         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34986         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34987
34988 2008-10-24  Eric Blake  <ebb9@byu.net>
34989
34990         getgroups: fix compilation when getgroups is available
34991         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34992         but with <config.h> override of getgroups disabled.
34993
34994 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34995
34996         * doc/gnulib.texi (Header files): Add note about C++ problems.
34997         Explained by Bruno Haible <bruno@clisp.org>.
34998
34999 2008-10-23  Bruno Haible  <bruno@clisp.org>
35000
35001         Define a dummy SA_NODEFER macro on Interix.
35002         * lib/signal.in.h (SA_NODEFER): Define fallback.
35003         Reported by Aleksey Cheusov <cheusov@tut.by> via
35004         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35005
35006 2008-10-23  Bruno Haible  <bruno@clisp.org>
35007
35008         * modules/freadahead (License): Change to LGPLv2+.
35009         Suggested by Simon Josefsson.
35010
35011 2008-10-23  Jim Meyering  <meyering@redhat.com>
35012
35013         random_r: new module
35014         * modules/random_r: New file.
35015         * m4/random_r.m4: New file.
35016         * lib/random_r.c: New file, from glibc.
35017         * modules/random_r-tests: New file.
35018         * tests/test-random_r.c: New file.
35019         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35020          Declare.
35021         (RAND_MAX): Define.
35022         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35023         * modules/stdlib: Substitute them, too.
35024         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35025         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35026         * doc/glibc-functions/random_r.texi: Likewise.
35027         * doc/glibc-functions/setstate_r.texi: Likewise.
35028         * doc/glibc-functions/srandom_r.texi: Likewise.
35029         * config/srclist.txt: Mention it.
35030
35031 2008-10-23  David Lutterkort  <lutter@redhat.com>
35032
35033         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35034         link requirement
35035
35036 2008-10-23  Jim Meyering  <meyering@redhat.com>
35037
35038         selinux-h: mark parameters of stub functions as intentionally unused
35039         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35040         * lib/se-context.in.h: Likewise.
35041
35042 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35043
35044         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35045
35046 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35047
35048         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35049
35050 2008-10-22  Eric Blake  <ebb9@byu.net>
35051
35052         glthread/thread: avoid compiler warning
35053         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35054         Add unreachable abort to silence compiler.
35055
35056 2008-10-22  Eric Blake  <ebb9@byu.net>
35057
35058         netdb: also supply struct addrinfo for cygwin 1.5.x
35059         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35060         older cygwin.
35061         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35062         cygwin.
35063         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35064
35065 2008-10-22  Bruno Haible  <bruno@clisp.org>
35066
35067         * users.txt: Update entry about pspp.
35068
35069 2008-10-21  Bruno Haible  <bruno@clisp.org>
35070
35071         Simplification.
35072         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35073         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35074
35075         Simplification.
35076         * lib/ioctl.c (ioctl): Don't undefine.
35077         * lib/socket.c (socket): Don't undefine.
35078
35079         Remove unused module indicator macros.
35080         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35081         GNULIB_$1 as a C macro.
35082
35083         * doc/posix-functions/close.texi: Undo last change.
35084         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35085         Windows platforms.
35086
35087 2008-10-21  Bruno Haible  <bruno@clisp.org>
35088
35089         Add gethostname() declaration to <unistd.h>.
35090         * lib/unistd.in.h (gethostname): New declaration.
35091         * lib/gethostname.c: Include <unistd.h>.
35092         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35093         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35095         and HAVE_GETHOSTNAME.
35096         * modules/gethostname (Depends-on): Add unistd.
35097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35098         (Include): Specify <unistd.h>.
35099         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35100         HAVE_GETHOSTNAME.
35101         * tests/test-gethostname.c: Include <unistd.h> first.
35102
35103 2008-10-21  Bruno Haible  <bruno@clisp.org>
35104
35105         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35106         * modules/select-tests (Depends-on): Likewise.
35107         Reported by Simon Josefsson.
35108
35109 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35110
35111         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35112         * lib/accept.c: New file, based on winsock.c.
35113         * lib/bind.c: New file, based on winsock.c.
35114         * lib/connect.c: New file, based on winsock.c.
35115         * lib/getpeername.c: New file, based on winsock.c.
35116         * lib/getsockname.c: New file, based on winsock.c.
35117         * lib/getsockopt.c: New file, based on winsock.c.
35118         * lib/ioctl.c: New file, based on winsock.c.
35119         * lib/listen.c: New file, based on winsock.c.
35120         * lib/recv.c: New file, based on winsock.c.
35121         * lib/recvfrom.c: New file, based on winsock.c.
35122         * lib/send.c: New file, based on winsock.c.
35123         * lib/sendto.c: New file, based on winsock.c.
35124         * lib/setsockopt.c: New file, based on winsock.c.
35125         * lib/shutdown.c: New file, based on winsock.c.
35126         * lib/socket.c: New file, based on winsock.c.
35127         * lib/w32sock.h: New file, based on winsock.c.
35128         * lib/winsock.c: Remove file.
35129         * modules/accept: Likewise.
35130         * modules/bind: Likewise.
35131         * modules/connect: Likewise.
35132         * modules/getpeername: Likewise.
35133         * modules/getsockname: Likewise.
35134         * modules/getsockopt: Likewise.
35135         * modules/ioctl: Likewise.
35136         * modules/listen: Likewise.
35137         * modules/recv: Likewise.
35138         * modules/recvfrom: Likewise.
35139         * modules/send: Likewise.
35140         * modules/sendto: Likewise.
35141         * modules/setsockopt: Likewise.
35142         * modules/shutdown: Likewise.
35143         * modules/socket: Use socket.c instead of winsock.c.
35144         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35145         * doc/posix-functions/accept.texi: Doc fix.
35146         * doc/posix-functions/bind.texi: Doc fix.
35147         * doc/posix-functions/close.texi: Doc fix.
35148         * doc/posix-functions/connect.texi: Doc fix.
35149         * doc/posix-functions/getpeername.texi: Doc fix.
35150         * doc/posix-functions/getsockname.texi: Doc fix.
35151         * doc/posix-functions/getsockopt.texi: Doc fix.
35152         * doc/posix-functions/ioctl.texi: Doc fix.
35153         * doc/posix-functions/listen.texi: Doc fix.
35154         * doc/posix-functions/recv.texi: Doc fix.
35155         * doc/posix-functions/recvfrom.texi: Doc fix.
35156         * doc/posix-functions/send.texi: Doc fix.
35157         * doc/posix-functions/sendto.texi: Doc fix.
35158         * doc/posix-functions/setsockopt.texi: Doc fix.
35159         * doc/posix-functions/shutdown.texi: Doc fix.
35160         * doc/posix-functions/socket.texi: Doc fix.
35161
35162 2008-10-20  Bruno Haible  <bruno@clisp.org>
35163
35164         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35165         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35166         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35167         as an alias for SIGABRT.
35168         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35169         (sigaction): Map it to SIGABRT.
35170         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35171
35172 2008-10-20  Bruno Haible  <bruno@clisp.org>
35173
35174         * lib/fts.c: Don't include lstat.h.
35175         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35176
35177         Move the lstat() declaration to <sys/stat.h>.
35178         * lib/lstat.h: Remove file.
35179         * lib/sys_stat.in.h: Add special invocation convention.
35180         (lstat): New declaration.
35181         * lib/lstat.c (orig_lstat): New function.
35182         (rpl_lstat): Use orig_lstat instead of lstat.
35183         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35184         AC_C_INLINE. Set REPLACE_LSTAT.
35185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35186         and REPLACE_LSTAT.
35187         * modules/lstat (Files): Remove lib/lstat.h.
35188         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35189         (Include): Specify <sys/stat.h> instead of lstat.h.
35190         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35191         REPLACE_LSTAT.
35192         * NEWS: Mention the change.
35193
35194 2008-10-20  Bruno Haible  <bruno@clisp.org>
35195
35196         * modules/posix_spawn-tests: New file.
35197         * tests/test-posix_spawn3.c: New file.
35198
35199 2008-10-20  Bruno Haible  <bruno@clisp.org>
35200
35201         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35202         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35203         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35204         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35205         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35206
35207 2008-10-20  Bruno Haible  <bruno@clisp.org>
35208
35209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35210         of posix_spawn on AIX 5.3.
35211
35212 2008-10-20  Bruno Haible  <bruno@clisp.org>
35213
35214         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35215
35216 2008-10-20  Bruno Haible  <bruno@clisp.org>
35217
35218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35219         of AC_LANG_PROGRAM.
35220
35221 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35222
35223         * lib/netdb.in.h: Don't define GNU specific constants until they
35224         are supported or needed.  Reported by Bruno Haible
35225         <bruno@clisp.org>.
35226
35227 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35228
35229         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35230
35231 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35232
35233         * lib/getaddrinfo.h: Remove file.
35234         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35235         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35236         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35237         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35238         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35239         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35240         * tests/test-getaddrinfo.c: Likewise.
35241         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35242         * NEWS: Mention change.
35243
35244 2008-10-19  Bruno Haible  <bruno@clisp.org>
35245
35246         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35247
35248 2008-10-19  Bruno Haible  <bruno@clisp.org>
35249
35250         * lib/wait-process.c: Include simply <sys/wait.h>.
35251         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35252         WIFSTOPPED): Remove fallback definitions.
35253         * modules/wait-process (Depends-on): Add sys_wait.
35254
35255         New module 'sys_wait'.
35256         * modules/sys_wait: New file.
35257         * lib/sys_wait.in.h: New file, partially copied from
35258         lib/wait-process.c.
35259         * m4/sys_wait_h.m4: New file.
35260         * doc/posix-headers/sys_wait.texi: Mention the new module.
35261
35262 2008-10-19  Bruno Haible  <bruno@clisp.org>
35263
35264         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35265
35266 2008-10-19  Bruno Haible  <bruno@clisp.org>
35267
35268         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35269         * lib/wait-process.c (WAIT_T): Remove type.
35270         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35271         (wait_subprocess): Update.
35272
35273 2008-10-19  Bruno Haible  <bruno@clisp.org>
35274
35275         New module 'atoll'.
35276         * modules/atoll: New file.
35277         * lib/stdlib.in.h (atoll): New declaration.
35278         * lib/atoll.c: New file, from glibc with modifications.
35279         * m4/atoll.m4: New file.
35280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35281         HAVE_ATOLL.
35282         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35283         * doc/posix-functions/atoll.texi: Mention the new module.
35284
35285 2008-10-19  Bruno Haible  <bruno@clisp.org>
35286
35287         Add strtoull() declaration to <stdlib.h>.
35288         * lib/stdlib.in.h (strtoull): New declaration.
35289         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35290         Set HAVE_STRTOULL.
35291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35292         HAVE_STRTOULL.
35293         * modules/strtoull (Depends-on): Add stdlib.
35294         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35295         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35296         HAVE_STRTOULL.
35297
35298 2008-10-19  Bruno Haible  <bruno@clisp.org>
35299
35300         Add strtoll() declaration to <stdlib.h>.
35301         * lib/stdlib.in.h (strtoll): New declaration.
35302         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35303         Set HAVE_STRTOLL.
35304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35305         HAVE_STRTOLL.
35306         * modules/strtoll (Depends-on): Add stdlib.
35307         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35308         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35309
35310 2008-10-19  Bruno Haible  <bruno@clisp.org>
35311
35312         * modules/bcopy (Depends-on): Add strings.
35313         (Include): Specify <strings.h>.
35314
35315 2008-10-19  Bruno Haible  <bruno@clisp.org>
35316
35317         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35318
35319 2008-10-19  Bruno Haible  <bruno@clisp.org>
35320
35321         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35322         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35323         mingw.
35324
35325 2008-10-19  Bruno Haible  <bruno@clisp.org>
35326
35327         * lib/atanl.c: Don't include isnanl.h.
35328         * lib/cosl.c: Likewise.
35329         * lib/ldexpl.c: Likewise.
35330         * lib/logl.c: Likewise.
35331         * lib/sinl.c: Likewise.
35332         * lib/sqrtl.c: Likewise.
35333         * lib/tanl.c: Likewise.
35334
35335         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35336         * lib/isnanf.h: Remove file.
35337         * lib/isnand.h: Remove file.
35338         * lib/isnanl.h: Remove file.
35339         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35340         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35341         macros.
35342         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35343         HAVE_ISNANF, don't define it as a C macro.
35344         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35345         HAVE_ISNAND, don't define it as a C macro.
35346         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35347         HAVE_ISNANL, don't define it as a C macro.
35348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35349         HAVE_ISNAN[FDL].
35350         * modules/isnanf (Files): Remove lib/isnanf.h.
35351         (Depends-on): Add math.
35352         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35353         (Include): Specify <math.h> instead of isnanf.h.
35354         * modules/isnand (Files): Remove lib/isnand.h.
35355         (Depends-on): Add math.
35356         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35357         (Include): Specify <math.h> instead of isnand.h.
35358         * modules/isnanl (Files): Remove lib/isnanl.h.
35359         (Depends-on): Add math.
35360         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35361         (Include): Specify <math.h> instead of isnanl.h.
35362         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35363         HAVE_ISNAN[FDL].
35364         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35365         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35366         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35367         * NEWS: Mention the change.
35368
35369 2008-10-18  Bruno Haible  <bruno@clisp.org>
35370
35371         Add getusershell(), setusershell(), endusershell() declarations to
35372         <unistd.h>.
35373         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35374         declarations.
35375         * lib/getusershell.c: Include unistd.h.
35376         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35377         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35378         HAVE_GETUSERSHELL.
35379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35380         and HAVE_GETUSERSHELL.
35381         * modules/getusershell (Depends-on): Add unistd, extensions.
35382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35383         (Include): Specify <unistd.h>.
35384         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35385         HAVE_GETUSERSHELL.
35386
35387 2008-10-18  Bruno Haible  <bruno@clisp.org>
35388
35389         Add a getloadavg() declaration to <stdlib.h>.
35390         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35391         getloadavg declaration.
35392         (getloadavg): New declaration.
35393         * lib/getloadavg.c: Include <stdlib.h> first.
35394         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35395         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35396         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35398         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35399         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35400         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35401         (Include): Specify <stdlib.h>.
35402         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35403         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35404
35405 2008-10-18  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/dirchownmod.c: Don't include lchmod.h.
35408
35409         Move the lchmod() declaration to <sys/stat.h>.
35410         * lib/lchmod.h: Remove file.
35411         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35412         (lchmod): New declaration, moved here from lib/lchown.h.
35413         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35414         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35416         and HAVE_LCHMOD.
35417         * modules/lchmod (Files): Remove lib/lchmod.h.
35418         (Depends-on): Add sys_stat, extensions.
35419         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35420         (Include): Specify <sys/stat.h> instead of lchmod.h.
35421         * modules/sys_stat (Depends-on): Add link-warning.
35422         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35423         definition of GL_LINK_WARNING.
35424         * NEWS: Mention the change.
35425
35426 2008-10-18  Bruno Haible  <bruno@clisp.org>
35427
35428         * lib/fchdir.c: Don't include dirfd.h.
35429         * lib/fts.c: Likewise.
35430         * lib/getcwd.c: Likewise.
35431         * lib/glob.c: Likewise.
35432
35433         Move the dirfd() declaration to <dirent.h>.
35434         * lib/dirfd.h: Remove file.
35435         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35436         (dirfd): New declaration.
35437         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35438         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35439         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35440         HAVE_DECL_DIRFD.
35441         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35442         HAVE_DECL_DIRFD.
35443         * modules/dirfd (Files): Remove lib/dirfd.h.
35444         (Depends-on): Add dirent, extensions.
35445         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35446         (Include): Specify <dirent.h> instead of dirfd.h.
35447         * modules/dirent (Depends-on): Add link-warning.
35448         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35449         definition of GL_LINK_WARNING.
35450         * NEWS: Mention the change.
35451
35452 2008-10-18  Bruno Haible  <bruno@clisp.org>
35453
35454         Move the euidaccess() declaration to <unistd.h>.
35455         * lib/euidaccess.h: Remove file.
35456         * lib/unistd.in.h (euidaccess): New declaration.
35457         * lib/euidaccess.c: Don't include euidaccess.h.
35458         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35459         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35461         and HAVE_EUIDACCESS.
35462         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35463         (Depends-on): Add unistd.
35464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35465         (Include): Specify <unistd.h> instead of euidaccess.h.
35466         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35467         HAVE_EUIDACCESS.
35468         * NEWS: Mention the change.
35469
35470 2008-10-18  Bruno Haible  <bruno@clisp.org>
35471
35472         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35473
35474         Move the getdomainname() declaration to <unistd.h>.
35475         * lib/getdomainname.h: Remove file.
35476         * lib/unistd.in.h (getdomainname): New declaration.
35477         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35478         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35479         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35480         HAVE_GETDOMAINNAME.
35481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35482         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35483         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35484         (Depends-on): Add unistd, extensions.
35485         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35486         (Includes): Specify <unistd.h> instead of getdomainname.h.
35487         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35488         HAVE_GETDOMAINNAME.
35489         * NEWS: Mention the change.
35490
35491 2008-10-18  Bruno Haible  <bruno@clisp.org>
35492
35493         * modules/dirent: New file.
35494         * m4/dirent_h.m4: New file.
35495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35496         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35497         * modules/fchdir (Files): Remove lib/dirent.in.h.
35498         (Depends-on): Add dirent.
35499         (Makefile.am): Move rules to modules/dirent.
35500         * doc/posix-headers/dirent.texi: Mention the new module.
35501
35502 2008-10-18  Bruno Haible  <bruno@clisp.org>
35503
35504         Avoid -Wunused-parameter warnings in public gnulib header files.
35505         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35506         macro.
35507         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35508
35509 2008-10-18  Bruno Haible  <bruno@clisp.org>
35510
35511         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35512         * doc/glibc-functions/error.texi: Mention the module 'error'.
35513         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35514         * doc/glibc-functions/getdomainname.texi: Mention the module
35515         'getdomainname'.
35516         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35517         * doc/glibc-functions/getpagesize.texi: Mention the module
35518         'getpagesize'.
35519         * doc/glibc-functions/getusershell.texi: Mention the module
35520         'getusershell'.
35521         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35522         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35523         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35524         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35525         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35526         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35527         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35528         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35529         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35530         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35531         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35532         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35533         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35534         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35535
35536 2008-10-17  Bruno Haible  <bruno@clisp.org>
35537
35538         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35539         HP-UX and IRIX, use -0.0L.
35540         * tests/test-ceill.c (minus_zero): Likewise.
35541         * tests/test-floorl.c (minus_zero): Likewise.
35542         * tests/test-frexpl.c (minus_zero): Likewise.
35543         * tests/test-isnan.c (minus_zerol): Likewise.
35544         * tests/test-isnanl.h (minus_zero): Likewise.
35545         * tests/test-ldexpl.c (minus_zero): Likewise.
35546         * tests/test-roundl.c (minus_zero): Likewise.
35547         * tests/test-signbit.c (minus_zerol): Likewise.
35548         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35549         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35550         * tests/test-truncl.c (minus_zero): Likewise.
35551         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35552         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35553         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35554         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35555
35556 2008-10-17  Bruno Haible  <bruno@clisp.org>
35557
35558         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35559         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35560         that it gets activated only for gcc >= 3.0.
35561         * lib/dirent.in.h: Likewise.
35562         * lib/errno.in.h: Likewise.
35563         * lib/fcntl.in.h: Likewise.
35564         * lib/float.in.h: Likewise.
35565         * lib/iconv.in.h: Likewise.
35566         * lib/inttypes.in.h: Likewise.
35567         * lib/locale.in.h: Likewise.
35568         * lib/math.in.h: Likewise.
35569         * lib/netdb.in.h: Likewise.
35570         * lib/netinet_in.in.h: Likewise.
35571         * lib/search.in.h: Likewise.
35572         * lib/signal.in.h: Likewise.
35573         * lib/spawn.in.h: Likewise.
35574         * lib/stdarg.in.h: Likewise.
35575         * lib/stdint.in.h: Likewise.
35576         * lib/stdio.in.h: Likewise.
35577         * lib/stdlib.in.h: Likewise.
35578         * lib/string.in.h: Likewise.
35579         * lib/strings.in.h: Likewise.
35580         * lib/sys_file.in.h: Likewise.
35581         * lib/sys_ioctl.in.h: Likewise.
35582         * lib/sys_select.in.h: Likewise.
35583         * lib/sys_socket.in.h: Likewise.
35584         * lib/sys_stat.in.h: Likewise.
35585         * lib/sys_time.in.h: Likewise.
35586         * lib/sysexits.in.h: Likewise.
35587         * lib/time.in.h: Likewise.
35588         * lib/unistd.in.h: Likewise.
35589         * lib/wchar.in.h: Likewise.
35590         * lib/wctype.in.h: Likewise.
35591         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35592
35593 2008-10-17  Jim Meyering  <meyering@redhat.com>
35594
35595         ignore-value: don't depend on inline module
35596         * modules/ignore-value (Depends-on): Remove 'inline'.
35597         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35598         Suggestion from Bruno Haible.
35599
35600 2008-10-17  Bruno Haible  <bruno@clisp.org>
35601
35602         New implementation of condition variables for Win32.
35603         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35604         (gl_linked_waitqueue_t): New type.
35605         (gl_cond_t): Use it.
35606         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35607         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35608         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35609         (glthread_cond_init_func, glthread_cond_wait_func,
35610         glthread_cond_timedwait_func, glthread_cond_signal_func,
35611         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35612         Reimplemented on the basis of gl_linked_waitqueue_t.
35613         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35614         gl_waitqueue_t.
35615         (gl_rwlock_t): Update.
35616         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35617
35618 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35619
35620         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35621         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35622
35623 2008-10-17  Jim Meyering  <meyering@redhat.com>
35624
35625         ignore-value: new module
35626         * modules/ignore-value: New file.
35627         * lib/ignore-value.h: New file.
35628         * MODULES.html.sh (Compiler warning management): New section,
35629         just for this module.  More to come.
35630
35631 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35632
35633         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35634         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35635         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35636
35637 2008-10-16  Jim Meyering  <meyering@redhat.com>
35638
35639         openat-die.c: avoid 'no previous prototype' warning
35640         * lib/openat-die.c: Include "openat.h".
35641         Reported by Reuben Thomas <rrt@sc3d.org>.
35642
35643 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35644
35645         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35646         * lib/netdb.in.h: Fix typo.
35647         Reported by Bruno Haible  <bruno@clisp.org>
35648
35649         * lib/netdb.in.h: Include sys/socket.h for platforms without
35650         netdb.h, to get structures like hostent on MinGW.
35651         * modules/netdb (Depends-on): Add sys_socket.
35652
35653 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35654
35655         * modules/netdb, modules/netdb-tests: New file.
35656         * m4/netdb_h.m4: New file.
35657         * lib/netdb.in.h: Add, currently just an empty file pending
35658         definitions.
35659         * tests/test-netdb.c: New file.
35660         * doc/posix-headers/netdb.texi: Mention that we replace it if
35661         needed.
35662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35663         netdb.
35664
35665 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35666
35667         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35668         with code.
35669
35670 2008-10-13  Bruno Haible  <bruno@clisp.org>
35671
35672         * lib/glthread/cond.c (glthread_cond_wait_func,
35673         glthread_cond_timedwait_func): Add a comment.
35674
35675 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35676
35677         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35678         * tests/test-select.c: Likewise,
35679
35680 2008-10-13  Bruno Haible  <bruno@clisp.org>
35681
35682         * lib/glthread/cond.c (glthread_cond_wait_func,
35683         glthread_cond_timedwait_func): Fix variable name.
35684         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35685
35686 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35687
35688         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35689         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35690         struct sockaddr.sa_len.
35691         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35692
35693 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35694
35695         * build-aux/pmccabe2html: Add css and css_url parameters.
35696
35697 2008-10-12  Bruno Haible  <bruno@clisp.org>
35698
35699         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35700         calling aclx_get.
35701         Reported by Rainer Tammer <tammer@tammer.net>.
35702
35703 2008-10-12  Bruno Haible  <bruno@clisp.org>
35704
35705         Use msvcrt aware primitives for creation/termination of Win32 threads.
35706         * lib/glthread/thread.c: Include <process.h>.
35707         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35708         (wrapper_func): Update signature.
35709         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35710
35711 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35712             Bruno Haible  <bruno@clisp.org>
35713
35714         Provide a Win32 implementation of the 'cond' module.
35715         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35716         * lib/glthread/cond.c (glthread_cond_init_func,
35717         glthread_cond_wait_func, glthread_cond_timedwait_func,
35718         glthread_cond_signal_func, glthread_cond_broadcast_func,
35719         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35720         * modules/cond (Dependencies): Add gettimeofday.
35721
35722 2008-10-11  Bruno Haible  <bruno@clisp.org>
35723
35724         Make sleep work on older versions of mingw.
35725         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35726         only whether it exists.
35727         * doc/posix-functions/sleep.texi: Mention the problem with older
35728         versions of mingw.
35729
35730 2008-10-11  Bruno Haible  <bruno@clisp.org>
35731
35732         New module 'shutdown'.
35733         * modules/shutdown: New file.
35734         * lib/sys_socket.in.h (shutdown): New declaration.
35735         * lib/winsock.c (shutdown): New function.
35736         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35737         GNULIB_SHUTDOWN.
35738         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35739         * doc/posix-functions/shutdown.texi: Document the new module.
35740
35741 2008-10-11  Jim Meyering  <meyering@redhat.com>
35742
35743         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35744
35745 2008-10-11  Bruno Haible  <bruno@clisp.org>
35746
35747         New module 'fclose'.
35748         * modules/fclose: New file.
35749         * lib/stdio.in.h (fclose): New declaration.
35750         * lib/fclose.c: New file.
35751         * m4/fclose.m4: New file.
35752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35753         REPLACE_FCLOSE.
35754         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35755         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35756         REPLACE_FCLOSE.
35757         * modules/close (Depends-on): fclose.
35758         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35759
35760 2008-10-11  Bruno Haible  <bruno@clisp.org>
35761
35762         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35763         set errno and don't call _close.
35764
35765 2008-10-10  Bruno Haible  <bruno@clisp.org>
35766
35767         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35768         ACL, not afterwards. Fixes test failure on Cygwin.
35769
35770 2008-10-09  Ben Pfaff  <blp@gnu.org>
35771
35772         * build-aux/announce-gen: Fix gnulib version related part of usage
35773         message.  Die with a useful error message if no tarballs are
35774         found.
35775
35776 2008-10-10  Jim Meyering  <meyering@redhat.com>
35777
35778         bootstrap: use git's --depth=N option only if it's supported
35779         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35780         recognize the --depth option.  Reported by Pádraig Brady.
35781
35782 2008-10-09  Bruno Haible  <bruno@clisp.org>
35783
35784         New module 'ioctl'.
35785         * modules/ioctl: New file.
35786         * lib/sys_socket.in.h (ioctl): Remove declaration.
35787         * lib/winsock.c: Include <sys/ioctl.h>.
35788         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35789         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35790         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35791         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35792         * doc/posix-functions/ioctl.texi: Mention the new module.
35793
35794 2008-10-09  Bruno Haible  <bruno@clisp.org>
35795
35796         New module 'sys_ioctl'.
35797         * lib/sys_ioctl.in.h: New file.
35798         * m4/sys_ioctl_h.m4: New file.
35799         * modules/sys_ioctl: New file.
35800         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35801
35802 2008-10-09  Bruno Haible  <bruno@clisp.org>
35803
35804         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35805         * lib/winsock.c: Include <stdarg.h>.
35806         (rpl_ioctl): Change to second argument 'int' and then varargs.
35807
35808 2008-10-09  Bruno Haible  <bruno@clisp.org>
35809
35810         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35811         when the sys_socket module is present and the system has <winsock2.h>.
35812
35813 2008-10-09  Bruno Haible  <bruno@clisp.org>
35814
35815         * doc/posix-functions/close.texi: Mention module 'close' instead of
35816         module 'sys_socket'.
35817
35818 2008-10-09  Bruno Haible  <bruno@clisp.org>
35819
35820         * doc/glibc-headers/sys_ioctl.texi: New file.
35821         * doc/gnulib.texi: Include it.
35822
35823 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35824             Bruno Haible  <bruno@clisp.org>
35825
35826         Combine the two replacements of 'close'.
35827         * lib/sys_socket.in.h (close): Define to a reminder to include
35828         <unistd.h>.
35829         (_gl_close_fd_maybe_socket): New declaration.
35830         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35831         * lib/winsock.c (close): Remove undefinition.
35832         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35833         needed for the gnulib module 'close'.
35834         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35835         define to an error symbol or to a warning, if suitable.
35836         * lib/close.c: Include <sys/socket.h>.
35837         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35838         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35839         UNISTD_H_HAVE_WINSOCK2_H.
35840         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35842         UNISTD_H_HAVE_WINSOCK2_H.
35843         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35844         (configure.ac): Set a module indicator.
35845         (Makefile.am): Substitute GNULIB_CLOSE.
35846         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35847         * modules/poll-tests (Depends-on): Add close.
35848         * modules/select-tests (Depends-on): Likewise.
35849
35850 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35851             Bruno Haible  <bruno@clisp.org>
35852
35853         New module 'close'.
35854         * modules/close: New file.
35855         * lib/unistd.in.h (close): Move declaration out of the
35856         FCHDIR_REPLACEMENT scope.
35857         (_gl_unregister_fd): New declaration.
35858         * lib/close.c: New file.
35859         * lib/fchdir.c (rpl_close): Remove function.
35860         * m4/close.m4: New file.
35861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35862         close.
35863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35864         REPLACE_CLOSE.
35865         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35866         REPLACE_CLOSE.
35867         * modules/fchdir (Depends-on): Add close.
35868
35869 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35870             Bruno Haible  <bruno@clisp.org>
35871
35872         * lib/fcntl.in.h (open): Simplify conditionals.
35873         (_gl_register_fd): New declaration.
35874         * lib/fchdir.c (rpl_open): Remove function.
35875         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35876         also.
35877         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35879         open.
35880
35881 2008-10-09  Jim Meyering  <meyering@redhat.com>
35882
35883         GNUmakefile: use the more name-space-friendly "_version"
35884         * top/GNUmakefile (_dummy): Update.
35885         (_version): Rename from "version".
35886
35887 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35888             Bruno Haible  <bruno@clisp.org>
35889
35890         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35891         rpl_close.
35892         (_gl_register_fd): New function, extracted from rpl_open.
35893         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35894         (rpl_open, rpl_opendir): Use _gl_register_fd.
35895
35896 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35897
35898         Fix organization of 'open' replacement.
35899         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35900         (gl_FUNC_OPEN): Use it.
35901         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35902
35903 2008-10-08  Bruno Haible  <bruno@clisp.org>
35904
35905         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35906
35907 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35908
35909         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35910         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35911         listen).
35912
35913 2008-10-08  Eric Blake  <ebb9@byu.net>
35914
35915         GNUmakefile: add 'make version' target
35916         * top/GNUmakefile (_curr-ver): Split version update rules...
35917         (version): ...into a target.
35918
35919 2008-10-07  Bruno Haible  <bruno@clisp.org>
35920
35921         Use a more portable replacement expression for -0.0L.
35922         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35923         instead of -0.0L. Fix m4 quotation.
35924
35925         * tests/test-signbit.c: Include <float.h>.
35926         (minus_zero): New variable.
35927         (test_signbitl): Use minus_zero instead of -zero.
35928         * modules/signbit-tests (Depends-on): Add float.
35929
35930         * tests/test-ceill.c: Include <float.h>.
35931         (zero): Remove variable.
35932         (minus_zero): New variable.
35933         (main): Use minus_zero instead of -zero.
35934         * modules/ceill-tests (Depends-on): Add float.
35935
35936         * tests/test-floorl.c: Include <float.h>.
35937         (zero): Remove variable.
35938         (minus_zero): New variable.
35939         (main): Use minus_zero instead of -zero.
35940         * modules/floorl-tests (Depends-on): Add float.
35941
35942         * tests/test-roundl.c: Include <float.h>.
35943         (zero): Remove variable.
35944         (minus_zero): New variable.
35945         (main): Use minus_zero instead of -zero.
35946         * modules/roundl-tests (Depends-on): Add float.
35947
35948         * tests/test-truncl.c: Include <float.h>.
35949         (zero): Remove variable.
35950         (minus_zero): New variable.
35951         (main): Use minus_zero instead of -zero.
35952         * modules/truncl-tests (Depends-on): Add float.
35953
35954         * tests/test-frexpl.c (zero): Remove variable.
35955         (minus_zero): New variable.
35956         (main): Use minus_zero instead of -zero.
35957         * modules/frexpl-tests (Depends-on): Add float.
35958
35959         * tests/test-isnan.c (zerol): Remove variable.
35960         (minus_zerol): New variable.
35961         (test_long_double): Use minus_zerol instead of -zerol.
35962         * modules/isnan-tests (Depends-on): Add float.
35963
35964         * tests/test-isnanl.h (zero): Remove variable.
35965         (minus_zero): New variable.
35966         (main): Use minus_zero instead of -zero.
35967         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35968         * modules/isnanl-tests (Depends-on): Add float.
35969
35970         * tests/test-ldexpl.c (zero): Remove variable.
35971         (minus_zero): New variable.
35972         (main): Use minus_zero instead of -zero.
35973         * modules/ldexpl-tests (Depends-on): Add float.
35974
35975         * tests/test-snprintf-posix.h (zerol): Remove variable.
35976         (minus_zerol): New variable.
35977         (test_function): Use minus_zerol instead of -zerol.
35978         * modules/snprintf-posix-tests (Depends-on): Add float.
35979         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35980
35981         * tests/test-sprintf-posix.h (zerol): Remove variable.
35982         (minus_zerol): New variable.
35983         (test_function): Use minus_zerol instead of -zerol.
35984         * modules/sprintf-posix-tests (Depends-on): Add float.
35985         * modules/vsprintf-posix-tests (Depends-on): Add float.
35986
35987         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35988         (minus_zerol): New variable.
35989         (test_function): Use minus_zerol instead of -zerol.
35990         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35991
35992         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35993         (minus_zerol): New variable.
35994         (test_function): Use minus_zerol instead of -zerol.
35995         * modules/vasprintf-posix-tests (Depends-on): Add float.
35996
35997 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35998
35999         * MODULES.html.sh (Support for building documentation): Mention
36000         pmccabe2html.  Sort entries.
36001
36002         Add pmccabe2html module, from gnupdf.
36003         * build-aux/pmccabe.css: New file.
36004         * build-aux/pmccabe2html: New file.
36005         * m4/pmccabe2html.m4: New file.
36006         * modules/pmccabe2html: New file.
36007
36008 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36009
36010         flock: new module
36011         * MODULES.html.sh: Add to list of modules.
36012         * lib/flock.c: flock implementation for Windows and Unix systems
36013         which have fcntl.
36014         * doc/glibc-functions/flock.texi: Update documentation.
36015         * lib/sys_file.in.h: <sys/file.h> header file.
36016         * m4/flock.m4: M4 macros.
36017         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36018         * modules/flock: flock module.
36019         * modules/flock-tests: flock tests module.
36020         * modules/sys_file: sys/file.h module.
36021         * tests/test-flock.c: test suite for flock.
36022
36023 2008-10-06  Jim Meyering  <meyering@redhat.com>
36024
36025         bootstrap: check for LT_INIT more portably still ;-)
36026         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36027         Spotted by Bruno Haible.
36028
36029 2008-10-06  Eric Blake  <ebb9@byu.net>
36030
36031         test-signbit: avoid tripping Irix cc bug on -0.0L
36032         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36033         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36034         entire testsuite consistent and avoids an Irix 6.2 bug.
36035
36036 2008-10-05  Bruno Haible  <bruno@clisp.org>
36037             Jim Meyering  <jim@meyering.net>
36038
36039         Add an option for ignoring EPIPE during close_stdout.
36040         * lib/closeout.h: Include <stdbool.h>.
36041         (close_stdout_set_ignore_EPIPE): New declaration.
36042         * lib/closeout.c: Include <stdbool.h>.
36043         (ignore_EPIPE): New variable.
36044         (close_stdout_set_ignore_EPIPE): New function.
36045         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36046         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36047         failure.
36048         * modules/closeout (Depends-on): Add stdbool.
36049
36050 2008-10-05  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/accept: New file.
36053         * modules/bind: New file.
36054         * modules/connect: New file.
36055         * modules/getpeername: New file.
36056         * modules/getsockname: New file.
36057         * modules/getsockopt: New file.
36058         * modules/listen: New file.
36059         * modules/recv: New file.
36060         * modules/recvfrom: New file.
36061         * modules/send: New file.
36062         * modules/sendto: New file.
36063         * modules/setsockopt: New file.
36064         * modules/socket: New file.
36065         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36066         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36067         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36068         the particular module is requested. Add a link warning when the
36069         particular module is not requested.
36070         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36071         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36072         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36073         the particular module is requested.
36074         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36075         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36076         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36077         * modules/sys_socket (Depends-on): Add link-warning.
36078         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36079         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36080         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36081         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36082         GL_LINK_WARNING.
36083         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36084         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36085         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36086         * doc/posix-functions/getpeername.texi: Mention the new module
36087         'getpeername'.
36088         * doc/posix-functions/getsockname.texi: Mention the new module
36089         'getsockname'.
36090         * doc/posix-functions/getsockopt.texi: Mention the new module
36091         'getsockopt'.
36092         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36093         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36094         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36095         * doc/posix-functions/send.texi: Mention the new module 'send'.
36096         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36097         * doc/posix-functions/setsockopt.texi: Mention the new module
36098         'setsockopt'.
36099         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36100         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36101         listen, connect, accept.
36102         * modules/select-tests (Depends-on): Likewise.
36103
36104 2008-10-05  Bruno Haible  <bruno@clisp.org>
36105
36106         * lib/winsock.c (strerror): Remove unused #undef.
36107         (rpl_close): Remove unused local variable.
36108
36109         * modules/sys_socket (Depends-on); Add errno.
36110
36111 2008-10-05  Bruno Haible  <bruno@clisp.org>
36112
36113         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36114         (select): Add a link warning when the 'select' module is not used.
36115         * modules/sys_select (Depends-on): Add link-warning.
36116         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36117         Suggested by Paolo Bonzini.
36118
36119 2008-10-05  Jim Meyering  <meyering@redhat.com>
36120
36121         bootstrap: check for LT_INIT more portably
36122         * build-aux/bootstrap: Avoid using grep -E, since it's not
36123         portable enough.  Suggestion from Bruno Haible.
36124
36125 2008-10-05  Bruno Haible  <bruno@clisp.org>
36126
36127         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36128         as being fixed by gnulib.
36129
36130 2008-10-05  Bruno Haible  <bruno@clisp.org>
36131
36132         * modules/select-tests: New file, mostly copied from
36133         modules/sys_select-tests.
36134         * tests/test-select.c: New file, mostly copied from
36135         tests/test-sys_select.c.
36136         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36137         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36138         (Makefile.am): Remove test_sys_select_LDADD.
36139
36140         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36141         to an undefined symbol, for an error message.
36142         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36143         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36144         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36145         winsock-select.c here.
36146         * modules/sys_select (Files): Remove lib/winsock-select.c.
36147         (Depends-on): Remove alloca.
36148         (Makefile.am): Substitute GNULIB_SELECT.
36149         * modules/select: New file.
36150         * doc/posix-functions/select.texi: Update.
36151
36152 2008-10-05  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36155         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36156         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36157         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36158         getdtablesize.
36159         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36160         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36161
36162 2008-10-05  Bruno Haible  <bruno@clisp.org>
36163
36164         * modules/getdtablesize-tests: New file.
36165         * tests/test-getdtablesize.c: New file.
36166
36167         New module 'getdtablesize'.
36168         * lib/unistd.in.h (getdtablesize): New declaration.
36169         * lib/getdtablesize.c: New file.
36170         * m4/getdtablesize.m4: New file.
36171         * modules/getdtablesize: New file.
36172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36173         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36174         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36175         HAVE_GETDTABLESIZE.
36176         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36177
36178 2008-10-05  Bruno Haible  <bruno@clisp.org>
36179
36180         * modules/sched (Makefile.am): Fix typo.
36181         Reported by Simon Josefsson.
36182
36183 2008-10-05  Jim Meyering  <meyering@redhat.com>
36184
36185         bootstrap: check for LT_INIT, too
36186         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36187         are deprecated.  Suggestion from Ralf Wildenhues.
36188
36189 2008-10-05  Bruno Haible  <bruno@clisp.org>
36190
36191         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36192         overriding them by ours.
36193         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36194
36195 2008-10-05  Jim Meyering  <meyering@redhat.com>
36196
36197         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36198         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36199         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36200
36201 2008-10-04  Bruno Haible  <bruno@clisp.org>
36202
36203         * modules/dup2 (License): Change to LGPLv2+.
36204         * modules/sleep (License): Likewise.
36205         * modules/perror (License): Likewise.
36206         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36207         Blake.
36208         * modules/signal (License): Likewise.
36209         * modules/sigprocmask (License): Likewise.
36210         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36211         Meyering.
36212
36213 2008-10-04  Bruno Haible  <bruno@clisp.org>
36214
36215         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36216         Reported by Rainer Tammer <tammer@tammer.net>.
36217
36218 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36219             Bruno Haible  <bruno@clisp.org>
36220
36221         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36222         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36223         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36224
36225 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36226
36227         filevercmp: new module
36228         * lib/filevercmp.h: New function filevercmp comparing version strings.
36229         * lib/filevercmp.c: Implementation of filevercmp function.
36230         * modules/filevercmp: Module metadata.
36231         * tests/test-filevercmp.c: Unit test for new module.
36232         * modules/filevercmp-tests: Unit test metadata.
36233         * MODULES.html.sh: Add filevercmp module.
36234
36235 2008-10-03  Bruno Haible  <bruno@clisp.org>
36236
36237         * lib/c-ctype.h: Add comment.
36238         Reported by Jim Meyering.
36239
36240 2008-10-02  Bruno Haible  <bruno@clisp.org>
36241
36242         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36243
36244 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36245
36246         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36247         name of bootstrap.conf accordingly.
36248
36249 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36250
36251         * build-aux/bootstrap: Install git-merge-changelog configuration
36252         items into .gitconfig if needed.
36253
36254 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36255
36256         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36257         git repository, and initialize/update it accordingly.
36258
36259 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36260
36261         * modules/fsync-tests: New file.
36262         * tests/test-fsync.c: New file.
36263
36264         New module 'fsync'.
36265         * lib/fsync.c: New file.
36266         * m4/fsync.m4: New file.
36267         * modules/fsync: New file.
36268         * lib/unistd.in.h (fsync): New declaration.
36269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36270         GNULIB_FSYNC and HAVE_FSYNC.
36271         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36272         * MODULES.html.sh (posix_functions): Add fsync.
36273         * doc/posix-functions/fsync.texi: Mention the new module.
36274
36275 2008-10-02  Jim Meyering  <meyering@redhat.com>
36276
36277         fts.c: sync with similar code from coreutils' remove.c
36278         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36279         Guard also with "#if defined __linux__", since for now at least,
36280         this code is Linux-kernel-specific.
36281
36282 2008-10-02  Jim Meyering  <meyering@redhat.com>
36283
36284         fts: bug fixes
36285         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36286         Include <sys/vfs.h>, not <sys/statfs.h>.
36287
36288         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36289         Include <sys/vfs.h>, not <sys/statfs.h>.
36290
36291 2008-10-01  Bruno Haible  <bruno@clisp.org>
36292
36293         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36294         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36295         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36296         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36297         * doc/posix-functions/posix_spawnp.texi: Likewise.
36298         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36299         whether posix_spawn actually works.
36300         * m4/pipe.m4 (gl_PIPE): Likewise.
36301         * modules/execute (Files): Add m4/posix_spawn.m4.
36302         * modules/pipe (Files): Add m4/posix_spawn.m4.
36303         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36304
36305 2008-10-01  Jim Meyering  <meyering@redhat.com>
36306
36307         remove trailing spaces
36308         * NEWS: Likewise.
36309         * lib/poll.c (poll): Likewise.
36310         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36311         * lib/winsock.c (rpl_close): Likewise.
36312         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36313         * modules/yield: Likewise.
36314         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36315         * tests/test-sys_select.c (connect_to_socket): Likewise.
36316
36317         fts.c: adjust a new interface to be more generally useful
36318         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36319         (fts_build): Adjust caller.
36320
36321 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36322
36323         * modules/cond-tests: New file.
36324         * tests/test-cond.c: New file.
36325
36326 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36327             Bruno Haible  <bruno@clisp.org>
36328
36329         * modules/cond (Dependencies): Add errno, time.
36330         * lib/glthread/cond.h: Include <time.h>.
36331         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36332         across platforms.
36333
36334 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36335             Bruno Haible  <bruno@clisp.org>
36336
36337         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36338
36339 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36340             Bruno Haible  <bruno@clisp.org>
36341
36342         * modules/tls-tests (Depends-on): Add thread, yield.
36343         (configure.ac): Remove all checks.
36344         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36345         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36346         gl_thread_self): Remove definitions. Include glthread/thread.h and
36347         glthread/yield.h instead.
36348         (test_tls): Pass an additional NULL argument to gl_thread_join.
36349
36350 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36351             Bruno Haible  <bruno@clisp.org>
36352
36353         * modules/lock-tests (Depends-on): Add thread, yield.
36354         (configure.ac): Remove all checks.
36355         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36356         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36357         gl_thread_self): Remove definitions. Include glthread/thread.h and
36358         glthread/yield.h instead.
36359         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36360         additional NULL argument to gl_thread_join.
36361
36362 2008-09-30  Bruno Haible  <bruno@clisp.org>
36363
36364         Fix the Win32 implementation of the 'thread' module.
36365         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36366         pointer type.
36367         (gl_thread_self): Invoke gl_thread_self_func.
36368         (gl_thread_self_func): New declaration.
36369         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36370         (do_init_self_key, init_self_key): New functions.
36371         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36372         Remove some fields.
36373         (running_threads, running_lock): Remove variables.
36374         (get_current_thread_handle): New function.
36375         (gl_thread_self_func, wrapper_func, glthread_create_func,
36376         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36377         simplified.
36378
36379 2008-09-30  Bruno Haible  <bruno@clisp.org>
36380
36381         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36382         files.
36383
36384 2008-09-30  Jim Meyering  <meyering@redhat.com>
36385
36386         fts.m4: correct the test for statfs.f_type
36387         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36388         when checking for statfs.f_type.
36389
36390 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36391
36392         tests: avoid some compiler warnings
36393         * tests/test-memchr.c (main): Pass NULL indirectly.
36394         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36395
36396 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36397
36398         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36399         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36400         exactly specified dayshifts.
36401         (dayshift): New rule.
36402         (rel): Add dayshift.
36403         (relative_time_table) [tomorrow, yesterday, today, now]:
36404         Use tDAY_SHIFT in place of tDAY_UNIT.
36405         * tests/test-getdate.c: Add tests for now-disallowed countable
36406         dayshifts, e.g., "4 yesterday ago".
36407
36408 2008-09-29  Bruno Haible  <bruno@clisp.org>
36409
36410         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36411         * tests/test-posix_spawn1.in.sh: Renamed from
36412         tests/test-posix_spawn.in.sh.
36413         * tests/test-posix_spawn2.c: New file.
36414         * tests/test-posix_spawn2.in.sh: New file.
36415         * modules/posix_spawnp-tests (Files): Update.
36416         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36417
36418 2008-09-29  Bruno Haible  <bruno@clisp.org>
36419
36420         Propagate effects of putenv/setenv/unsetenv to child processes.
36421         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36422         * lib/pipe.c (create_pipe): Likewise.
36423
36424 2008-09-29  Bruno Haible  <bruno@clisp.org>
36425
36426         Enable use of shell scripts as executables in mingw.
36427         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36428         run the program as a shell script.
36429         * lib/pipe.c (create_pipe): Likewise.
36430         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36431         resulting array.
36432
36433 2008-09-29  Eric Blake  <ebb9@byu.net>
36434
36435         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36436
36437 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36438
36439         * doc/posix-functions/accept.texi: Update mingw problems.
36440         * doc/posix-functions/bind.texi: Update mingw problems.
36441         * doc/posix-functions/close.texi: Update mingw problems.
36442         * doc/posix-functions/connect.texi: Update mingw problems.
36443         * doc/posix-functions/getpeername.texi: Update mingw problems.
36444         * doc/posix-functions/getsockname.texi: Update mingw problems.
36445         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36446         * doc/posix-functions/ioctl.texi: Update mingw problems.
36447         * doc/posix-functions/listen.texi: Update mingw problems.
36448         * doc/posix-functions/recv.texi: Update mingw problems.
36449         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36450         * doc/posix-functions/select.texi: Update mingw problems.
36451         * doc/posix-functions/send.texi: Update mingw problems.
36452         * doc/posix-functions/sendto.texi: Update mingw problems.
36453         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36454         * doc/posix-functions/socket.texi: Update mingw problems.
36455
36456 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36457             Bruno Haible  <bruno@clisp.org>
36458
36459         * lib/sys_select.in.h: Include sys/time.h.
36460         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36461         * modules/sys_select: Depend on sys_time.
36462         * tests/test-sys_select.c: Test that sys/select.h defines struct
36463         timeval fully.
36464
36465 2008-09-29  Bruno Haible  <bruno@clisp.org>
36466
36467         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36468         * lib/sys_select.in.h: Likewise.
36469
36470 2008-09-29  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36473
36474 2008-09-29  Bruno Haible  <bruno@clisp.org>
36475
36476         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36477         Set LIBSOCKET instead of augmenting LIBS.
36478         * modules/sockets (Link): New section.
36479         * modules/sockets-tests (test_sockets_LDADD): New variable.
36480         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36481         * modules/poll-tests (test_poll_LDADD): New variable.
36482         * NEWS: Document the change.
36483
36484 2008-09-29  Bruno Haible  <bruno@clisp.org>
36485
36486         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36487         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36488         ARPA_INET_H directly.
36489         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36490
36491 2008-09-28  Bruno Haible  <bruno@clisp.org>
36492
36493         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36494         from gl_HEADER_SYS_SOCKET.
36495         (gl_HEADER_SYS_SOCKET): Invoke it.
36496         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36497
36498 2008-09-28  Bruno Haible  <bruno@clisp.org>
36499
36500         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36501         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36502         Needed on OSF/1 4.0.
36503
36504 2008-09-28  Bruno Haible  <bruno@clisp.org>
36505
36506         Override open more carefully.
36507         * lib/open.c (orig_open): New function.
36508         (rpl_open): Use orig_open instead of open.
36509         * lib/fcntl.in.h: Add special invocation convention.
36510         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36511         (gl_FUNC_OPEN): Invoke it.
36512
36513         Override freopen more carefully.
36514         * lib/freopen.c (orig_freopen): New function.
36515         (rpl_freopen): Use orig_freopen instead of freopen.
36516         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36517         (gl_FUNC_FREOPEN): Invoke it.
36518
36519         Override fopen more carefully.
36520         * lib/fopen.c (orig_fopen): New function.
36521         (rpl_fopen): Use orig_fopen instead of fopen.
36522         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36523         (gl_FUNC_FOPEN): Invoke it.
36524         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36525
36526 2008-09-28  Bruno Haible  <bruno@clisp.org>
36527
36528         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36529         SIGPIPE.
36530
36531 2008-09-28  Bruno Haible  <bruno@clisp.org>
36532
36533         * tests/test-sigaction.c (handler, main): Disable the check whether
36534         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36535         glibc systems with LinuxThreads.
36536
36537 2008-09-28  Bruno Haible  <bruno@clisp.org>
36538
36539         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36540
36541         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36542         with AIX xlc.
36543         * lib/fcntl.in.h (open): Likewise.
36544         Reported by Rainer Tammer <tammer@tammer.net>.
36545
36546 2008-09-28  Bruno Haible  <bruno@clisp.org>
36547
36548         * modules/posix_spawnp-tests: New file.
36549         * tests/test-posix_spawn.c: New file.
36550         * tests/test-posix_spawn.in.sh: New file.
36551
36552         New module 'posix_spawnp'.
36553         * modules/posix_spawnp: New file.
36554         * lib/spawnp.c: New file, from GNU libc with modifications.
36555         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36556
36557         New module 'posix_spawn'.
36558         * modules/posix_spawn: New file.
36559         * lib/spawn.c: New file, from GNU libc with modifications.
36560         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36561
36562         New module 'posix_spawnattr_destroy'.
36563         * modules/posix_spawnattr_destroy: New file.
36564         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36565         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36566         module.
36567
36568         New module 'posix_spawnattr_setsigmask'.
36569         * modules/posix_spawnattr_setsigmask: New file.
36570         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36571         modifications.
36572         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36573         new module.
36574
36575         New module 'posix_spawnattr_getsigmask'.
36576         * modules/posix_spawnattr_getsigmask: New file.
36577         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36578         modifications.
36579         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36580         new module.
36581
36582         New module 'posix_spawnattr_setsigdefault'.
36583         * modules/posix_spawnattr_setsigdefault: New file.
36584         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36585         modifications.
36586         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36587         new module.
36588
36589         New module 'posix_spawnattr_getsigdefault'.
36590         * modules/posix_spawnattr_getsigdefault: New file.
36591         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36592         modifications.
36593         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36594         new module.
36595
36596         New module 'posix_spawnattr_setschedpolicy'.
36597         * modules/posix_spawnattr_setschedpolicy: New file.
36598         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36599         modifications.
36600         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36601         new module.
36602
36603         New module 'posix_spawnattr_getschedpolicy'.
36604         * modules/posix_spawnattr_getschedpolicy: New file.
36605         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36606         modifications.
36607         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36608         new module.
36609
36610         New module 'posix_spawnattr_setschedparam'.
36611         * modules/posix_spawnattr_setschedparam: New file.
36612         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36613         modifications.
36614         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36615         new module.
36616
36617         New module 'posix_spawnattr_getschedparam'.
36618         * modules/posix_spawnattr_getschedparam: New file.
36619         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36620         modifications.
36621         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36622         new module.
36623
36624         New module 'posix_spawnattr_setpgroup'.
36625         * modules/posix_spawnattr_setpgroup: New file.
36626         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36627         modifications.
36628         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36629         module.
36630
36631         New module 'posix_spawnattr_getpgroup'.
36632         * modules/posix_spawnattr_getpgroup: New file.
36633         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36634         modifications.
36635         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36636         module.
36637
36638         New module 'posix_spawnattr_setflags'.
36639         * modules/posix_spawnattr_setflags: New file.
36640         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36641         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36642         module.
36643
36644         New module 'posix_spawnattr_getflags'.
36645         * modules/posix_spawnattr_getflags: New file.
36646         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36647         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36648         module.
36649
36650         New module 'posix_spawnattr_init'.
36651         * modules/posix_spawnattr_init: New file.
36652         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36653         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36654         module.
36655
36656         New module 'posix_spawn_file_actions_destroy'.
36657         * modules/posix_spawn_file_actions_destroy: New file.
36658         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36659         modifications.
36660         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36661         the new module.
36662
36663         New module 'posix_spawn_file_actions_addopen'.
36664         * modules/posix_spawn_file_actions_addopen: New file.
36665         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36666         modifications.
36667         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36668         the new module.
36669
36670         New module 'posix_spawn_file_actions_adddup2'.
36671         * modules/posix_spawn_file_actions_adddup2: New file.
36672         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36673         modifications.
36674         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36675         the new module.
36676
36677         New module 'posix_spawn_file_actions_addclose'.
36678         * modules/posix_spawn_file_actions_addclose: New file.
36679         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36680         modifications.
36681         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36682         the new module.
36683
36684         New module 'posix_spawn_file_actions_init'.
36685         * modules/posix_spawn_file_actions_init: New file.
36686         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36687         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36688         new module.
36689
36690         New module 'posix_spawn-internal'.
36691         * modules/posix_spawn-internal: New file.
36692         * lib/spawn_int.h: New file, from GNU libc with modifications.
36693         * lib/spawni.c: New file, from GNU libc with modifications.
36694         * m4/posix_spawn.m4: New file.
36695
36696         New module 'spawn'.
36697         * modules/spawn: New file.
36698         * lib/spawn.in.h: New file, from GNU libc with modifications.
36699         * m4/spawn_h.m4: New file.
36700         * doc/posix-headers/spawn.texi: Mention the new module.
36701
36702 2008-09-28  Bruno Haible  <bruno@clisp.org>
36703
36704         * modules/sched-tests: New file.
36705         * tests/test-sched.c: New file.
36706
36707         New module 'sched'.
36708         * modules/sched: New file.
36709         * lib/sched.in.h: New file.
36710         * m4/sched_h.m4: New file.
36711         * doc/posix-headers/sched.texi: Mention the new module.
36712
36713 2008-09-27  Eric Blake  <ebb9@byu.net>
36714
36715         Fix previous patch, and tweak references to $0.
36716         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36717         (func_version, func_gnulib_dir): Don't call this program
36718         gnulib-tool.
36719         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36720         with using $0 in function.
36721         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36722         (func_fatal_error): Reuse the name the user invoked us with.
36723
36724 2008-09-27  Bruno Haible  <bruno@clisp.org>
36725
36726         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36727         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36728         (gl_ICONV_H): Not here.
36729         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36730         instead of assigning ICONV_H directly.
36731
36732         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36734         WCHAR_H directly.
36735
36736 2008-09-27  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36739         * modules/arpa_inet (Depends-on): Add link-warning.
36740         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36741         * modules/unistd (Makefile.am): Likewise.
36742
36743 2008-09-26  Bruno Haible  <bruno@clisp.org>
36744
36745         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36746         variables.
36747         (func_version): Essentially copied from gnulib-tool.
36748         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36749         func_readlink): Copied from gnulib-tool.
36750
36751 2008-09-26  Bruno Haible  <bruno@clisp.org>
36752
36753         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36754         invoking git-version-gen.
36755
36756 2008-09-26  Bruno Haible  <bruno@clisp.org>
36757
36758         * posix-modules: Update to directory names changed on 2008-01-19.
36759         Remove commas in output before splitting into words. No more need to
36760         avoid 'ftruncate' since 2007-02-19.
36761
36762 2008-09-26  Bruno Haible  <bruno@clisp.org>
36763
36764         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36765
36766 2008-09-26  Bruno Haible  <bruno@clisp.org>
36767
36768         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36769         * modules/fwriteerror (Depends-on): Add errno.
36770
36771 2008-09-26  Bruno Haible  <bruno@clisp.org>
36772
36773         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36774         * tests/test-vc-list-files-cvs.sh: Likewise.
36775
36776 2008-09-26  Bruno Haible  <bruno@clisp.org>
36777
36778         * doc/posix-headers/sys_resource.texi: Reorder items.
36779
36780 2008-09-26  Jim Meyering  <meyering@redhat.com>
36781
36782         fts: tweak inode comparison function
36783         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36784         inode numbers, as documented.
36785
36786         fts: sort dirent entries on inode number before traversing
36787         This avoids a quadratic, seek-related performance penalty when
36788         operating on a directory containing many entries (measurable at 10k;
36789         3.5 hours at 2 million entries with a cold cache) on certain types
36790         of file systems, including ext3 and ext4, but not tmpfs.
36791         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36792         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36793         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36794         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36795         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36796         (fts_build): Set the stat.st_ino member from D_INO.
36797         If it is likely to be useful, sort dirent entries on inode number.
36798
36799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36800         and the struct statfs.f_type member.
36801         * modules/fts (Depends-on): Add d-ino.
36802
36803 2008-09-26  Bruno Haible  <bruno@clisp.org>
36804
36805         * modules/sigpipe-die (Depends-on): Add sigpipe.
36806
36807         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36808         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36809         and GNULIB_STDIO_H_SIGPIPE are set.
36810         * lib/stdio-write.c: New file.
36811         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36812         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36813         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36814         REPLACE_STDIO_WRITE_FUNCS.
36815         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36816         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36817         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36818         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36819         * modules/stdio (Files): Add lib/stdio-write.c.
36820         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36821         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36822         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36823         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36824         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36825         REPLACE_FPRINTF_POSIX.
36826         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36827         REPLACE_PRINTF_POSIX.
36828         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36829         REPLACE_VFPRINTF_POSIX.
36830         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36831         REPLACE_VPRINTF_POSIX.
36832         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36833         SIGPIPE issue.
36834         * doc/posix-functions/fputc.texi: Likewise.
36835         * doc/posix-functions/fputs.texi: Likewise.
36836         * doc/posix-functions/fwrite.texi: Likewise.
36837         * doc/posix-functions/printf.texi: Likewise.
36838         * doc/posix-functions/putc.texi: Likewise.
36839         * doc/posix-functions/putchar.texi: Likewise.
36840         * doc/posix-functions/puts.texi: Likewise.
36841         * doc/posix-functions/vfprintf.texi: Likewise.
36842         * doc/posix-functions/vprintf.texi: Likewise.
36843
36844         * modules/safe-write (Depends-on): Add write.
36845
36846         * modules/sigpipe-tests: New file.
36847         * tests/test-sigpipe.c: New file.
36848         * tests/test-sigpipe.sh: New file.
36849
36850         * modules/write: New file.
36851         * lib/unistd.in.h: Include <sys/types.h>.
36852         (write): New declaration.
36853         * lib/write.c: New file.
36854         * m4/write.m4: New file.
36855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36856         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36857         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36858         GNULIB_WRITE, REPLACE_WRITE.
36859         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36860         and the SIGPIPE issue.
36861
36862         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36863         (raise): New declaration.
36864         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36865         (ext_signal): New function.
36866         (rpl_raise): New function.
36867         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36868         GNULIB_SIGNAL_H_SIGPIPE.
36869         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36870         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36871
36872         * modules/sigpipe: New file.
36873         * m4/sigpipe.m4: New file.
36874
36875 2008-09-25  Derek Price  <derek@ximbiot.com>
36876             Bruno Haible  <bruno@clisp.org>
36877
36878         * gnulib-tool (func_import): Report all license incompatibilities, not
36879         just the first one.
36880
36881 2008-09-25  Bruno Haible  <bruno@clisp.org>
36882
36883         * gnulib-tool (func_import): When computing the edits, consider not
36884         only the Makefile.ams that exist but also those that will be generated.
36885
36886 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36887
36888         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36889         fixes gnulib-tool --test warning about duplicate dependency.
36890
36891 2008-09-25  Bruno Haible  <bruno@clisp.org>
36892
36893         * gnulib-tool: Don't ask the user to perform edits in the generated
36894         Makefile.ams.
36895         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36896         apply to the Makefile.am being generated.
36897         (func_emit_tests_Makefile_am): Execute edits that apply to the
36898         Makefile.am being generated.
36899         (func_import): Setup list of Makefile.am edits before emitting the
36900         Makefile.ams, not at the end.
36901         (func_create_testdir): Update.
36902         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36903
36904 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36905
36906         * gnulib-tool (func_import): Store the --tests-base option in the
36907         comment in gnulib-cache.m4.
36908
36909 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36910
36911         * NEWS: Document increased portability that sys_select now provides.
36912
36913         * lib/sys_select.in.h: Install select wrapper.
36914         * lib/sys_socket.in.h: Use more descriptive name when there is no
36915         select wrapper.
36916         * lib/winsock-select.c: New.
36917         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36918         Require gl_HEADER_SYS_SOCKET.
36919         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36920         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36921         * tests/test-sys_select.c: Add functional tests.
36922
36923 2008-09-24  Eric Blake  <ebb9@byu.net>
36924
36925         open, fopen: close fd leak in last patch
36926         * lib/open.c (rpl_open): Close fd before returning error.
36927         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36928         * doc/posix-functions/open.texi (open): Document that Irix also
36929         has the bug.
36930         * doc/posix-functions/fopen.texi (fopen): Likewise.
36931         Reported by Paolo Bonzini.
36932
36933 2008-09-24  Bruno Haible  <bruno@clisp.org>
36934
36935         Ensure that a filename ending in a slash cannot be used to access a
36936         non-directory.
36937         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36938         to check whether it's really a directory.
36939         * lib/fopen.c: Include fcntl.h, unistd.h.
36940         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36941         and fdopen().
36942         * modules/fopen (Depends-on): Add unistd.
36943         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36944         * tests/test-fopen.c (main): Likewise.
36945         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36946         * doc/posix-functions/fopen.texi: Likewise.
36947         Reported by Eric Blake.
36948
36949 2008-09-23  Eric Blake  <ebb9@byu.net>
36950
36951         c-stack: avoid compiler optimizations when provoking overflow
36952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36953         recursion harder to optimize, to ensure a stack overflow occurs.
36954         * tests/test-c-stack.c (recurse): Likewise.
36955         Borrowed from libsigsegv.
36956
36957         c-stack: work around Irix sigaltstack bug
36958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36959         whether sigaltstack uses wrong end of stack_t (copied in part from
36960         libsigsegv).
36961         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36962         Irix bug, without requiring an over-allocation.
36963         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36964         bug.
36965
36966         fopen: document mingw bug on directories
36967         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36968         not allowing a stream visiting a directory, even though reading
36969         from such a stream is not portable.
36970
36971 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36972
36973         * lib/poll.c: Rewrite.
36974         * modules/poll: Depend on alloca.
36975
36976 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36977
36978         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36979         instead define prototypes for a full set of wrappers.  Ensure
36980         that Cygwin does not use the compatibility code, which is only
36981         for MinGW.
36982         * lib/winsock.c: New.
36983         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36984         * modules/sys_socket: Add lib/winsock.c.
36985
36986         * modules/poll-tests: Add errno and perror.
36987         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36988
36989 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36990
36991         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36992
36993 2008-09-23  Bruno Haible  <bruno@clisp.org>
36994
36995         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36996         * doc/glibc-functions/*: Likewise.
36997
36998 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36999
37000         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37001         success.
37002
37003 2008-09-22  Eric Blake  <ebb9@byu.net>
37004             Bruno Haible  <bruno@clisp.org>
37005
37006         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37007         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37008         supply %A but mishandle pseudo-NaN.
37009         Reported by Simon Josefsson.
37010
37011 2008-09-21  Bruno Haible  <bruno@clisp.org>
37012
37013         * tests/test-lock.c (main): Tweak skip message.
37014         * tests/test-tls.c (main): Likewise.
37015
37016 2008-09-21  Bruno Haible  <bruno@clisp.org>
37017
37018         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37019         whether 'struct sigaction' has sa_sigaction here...
37020         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37021         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37022
37023 2008-09-21  Bruno Haible  <bruno@clisp.org>
37024
37025         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37026         section.
37027         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37028         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37029         the new section.
37030         (Support for obsolete systems lacking POSIX:2001): New section.
37031         (String handling <string.h>): Move strdup to the new section.
37032         Suggested by Simon Josefsson and Paolo Bonzini.
37033
37034 2008-09-21  Bruno Haible  <bruno@clisp.org>
37035
37036         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37037         exponents in %e and %g results on 'long double'. Needed for mingw's
37038         improved *printf functions.
37039         * tests/test-vasprintf-posix.c (test_function): Likewise.
37040         * tests/test-snprintf-posix.h (test_function): Likewise.
37041         * tests/test-sprintf-posix.h (test_function): Likewise.
37042         Reported by Eric Blake.
37043
37044 2008-09-21  Bruno Haible  <bruno@clisp.org>
37045
37046         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37047         * tests/test-sprintf-posix.h (test_function): Likewise.
37048
37049 2008-09-21  Bruno Haible  <bruno@clisp.org>
37050
37051         * modules/getpass (Depends-on): Add strdup-posix.
37052
37053         New module 'strdup-posix'.
37054         * modules/strdup-posix: New file.
37055         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37056         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37058         REPLACE_STRDUP.
37059         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37060         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37062         strdup-posix.
37063
37064         * modules/strdup (Depends-on): Remove malloc-posix.
37065
37066 2008-09-20  Bruno Haible  <bruno@clisp.org>
37067
37068         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37069         Wildenhues.
37070
37071 2008-09-20  Bruno Haible  <bruno@clisp.org>
37072
37073         Ensure that wint_t gets defined on IRIX 5.3.
37074         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37075         * lib/wctype.in.h (wint_t): Likewise.
37076         (__wctype_wint_t): Remove type.
37077         (isw*): Use wint_t instead of __wctype_wint_t.
37078         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37079         * modules/wchar (Files): Add m4/wint_t.m4.
37080         (Makefile.am): Substitute HAVE_WINT_T.
37081         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37082         * tests/test-wctype.c: Check that wint_t is defined.
37083         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37084         * doc/posix-headers/wctype.texi: Likewise.
37085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37086
37087 2008-09-18  Bruno Haible  <bruno@clisp.org>
37088
37089         * gnulib-tool (func_exit): Update comment.
37090
37091 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37092
37093         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37094         assumes strdup exists and does not depend on strdup to return
37095         ENOMEM on out of memory conditions.
37096
37097 2008-09-18  Bruno Haible  <bruno@clisp.org>
37098
37099         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37100         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37101         digits for the exponent.
37102
37103 2008-09-18  Jim Meyering  <meyering@redhat.com>
37104             Bruno Haible  <bruno@clisp.org>
37105
37106         * lib/vasnprintf.c (decimal_point_char): Define also if
37107         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37108
37109 2008-09-16  Bruno Haible  <bruno@clisp.org>
37110         and Eric Blake  <ebb9@byu.net>
37111
37112         vasnprintf: support Irix 5.3
37113         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37114         that mishandle long double infinity.
37115         Reported by Tom G. Christensen.
37116
37117 2008-09-16  Bruno Haible  <bruno@clisp.org>
37118
37119         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37120         Solaris 9.
37121         * doc/glibc-functions/alphasort.texi: Likewise.
37122         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37123
37124 2008-09-16  Jim Meyering  <meyering@redhat.com>
37125
37126         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37127         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37128         a umask modification leak out of a subshell.  Otherwise, the
37129         opensolaris /bin/sh would be accepted and thus cause unwarranted
37130         failures in the coreutils test suite.
37131
37132 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37133
37134         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37135         to succeed.
37136
37137 2008-09-16  Jim Meyering  <meyering@redhat.com>
37138
37139         avoid spurious test failure when library is built without ACL support
37140         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37141         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37142         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37143         * tests/test-copy-acl.sh: Likewise.
37144
37145 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37146
37147         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37148         based on character occurrence counts.
37149
37150 2008-09-15  Eric Blake  <ebb9@byu.net>
37151
37152         tests: avoid some compiler warnings
37153         * tests/test-memchr.c (main): Pass NULL indirectly.
37154         * tests/test-closein.c (main): Avoid unused variable.
37155
37156 2008-09-15  Bruno Haible  <bruno@clisp.org>
37157
37158         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37159         are missing on OpenBSD 4.0 individually.
37160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37161
37162 2008-09-15  Bruno Haible  <bruno@clisp.org>
37163
37164         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37165         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37166         * doc/posix-functions/perror.texi: Likewise.
37167         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37168         is missing.
37169         Reported by Eric Blake.
37170
37171         * lib/errno.in.h: Use replacement values >= 2000.
37172         Reported by Eric Blake.
37173
37174 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37175
37176         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37177         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37178         limit.
37179         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37180         compareseq was aborted.
37181
37182 2008-09-14  Bruno Haible  <bruno@clisp.org>
37183
37184         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37185         yvec_edit_count.
37186         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37187         (fstrcmp_bounded): Simplify result computation accordingly.
37188
37189 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37190
37191         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37192         (fstrcmp): Define in terms of fstrcmp_bounded.
37193         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37194         lower_bound argument.
37195         Return quickly if the result is certainly < lower_bound.
37196         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37197
37198 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37199
37200         * lib/diffseq.h (EARLY_ABORT): New macro.
37201         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37202         evaluates to true.
37203
37204 2008-09-14  Bruno Haible  <bruno@clisp.org>
37205
37206         * modules/perror-tests: New file.
37207         * tests/test-perror.sh: New file.
37208         * tests/test-perror.c: New file.
37209
37210         New module 'perror'.
37211         * lib/stdio.in.h (perror): New declaration.
37212         * lib/perror.c: New file.
37213         * m4/perror.m4: New file.
37214         * modules/perror: New file.
37215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37216         * doc/posix-functions/perror.texi: Mention the perror module.
37217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37218         REPLACE_PERROR.
37219         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37220         REPLACE_PERROR.
37221
37222 2008-09-14  Bruno Haible  <bruno@clisp.org>
37223
37224         * modules/stdio (Makefile.am): Reorder to match the order in
37225         lib/stdio.in.h.
37226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37227
37228 2008-09-13  Bruno Haible  <bruno@clisp.org>
37229
37230         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37231
37232 2008-09-13  Bruno Haible  <bruno@clisp.org>
37233
37234         Extend strerror to cover the added errno values.
37235         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37236         (rpl_strerror): Provide error messages for the added errno values and
37237         for the WSA* values.
37238         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37239         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37240         strerror.
37241         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37242         * modules/strerror (Depends-on): Add errno.
37243         * doc/posix-functions/strerror.texi: Document the change.
37244         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37245         and EOVERFLOW.
37246
37247 2008-09-13  Bruno Haible  <bruno@clisp.org>
37248
37249         * modules/EOVERFLOW: Remove file.
37250         * m4/eoverflow.m4: Remove file.
37251         * modules/EOVERFLOW-tests: Remove file.
37252         * tests/test-EOVERFLOW.c: Remove file.
37253         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37254         * modules/ftell (Depends-on): Likewise.
37255         * modules/getdelim (Depends-on): Likewise.
37256         * modules/getugroups (Depends-on): Likewise.
37257         * modules/poll (Depends-on): Likewise.
37258         * modules/snprintf (Depends-on): Likewise.
37259         * modules/sprintf-posix (Depends-on): Likewise.
37260         * modules/vasnprintf (Depends-on): Likewise.
37261         * modules/vasprintf (Depends-on): Likewise.
37262         * modules/vfprintf-posix (Depends-on): Likewise.
37263         * modules/vsnprintf (Depends-on): Likewise.
37264         * modules/vsprintf-posix (Depends-on): Likewise.
37265         * modules/xvasprintf (Depends-on): Likewise.
37266         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37267         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37268         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37269         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37270         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37271         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37272         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37273         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37274         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37275         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37276         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37277         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37279         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37280         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37281         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37282         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37283         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37284         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37285         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37287         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37288         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37289         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37290         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37291         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37292         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37293         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37294         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37295         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37296         * MODULES.html.sh: Remove EOVERFLOW.
37297         * NEWS: Mention the change.
37298
37299 2008-09-13  Bruno Haible  <bruno@clisp.org>
37300
37301         * modules/errno-tests: New file.
37302         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37303
37304         * lib/errno.in.h: New file.
37305         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37306         * modules/errno: New file.
37307         * doc/posix-headers/errno.texi: Update documentation.
37308         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37309
37310 2008-09-13  Bruno Haible  <bruno@clisp.org>
37311
37312         * tests/test-poll.c: Use #if for native Windows, rather than testing
37313         __MSVCRT__.
37314
37315 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37316             Bruno Haible  <bruno@clisp.org>
37317
37318         * lib/glob.c: Don't include <pwd.h> on native Windows.
37319         (WINDOWS32): New macro.
37320         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37321
37322 2008-09-13  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37325         (ETIMEDOUT): Remove macro.
37326         (glthread_cond_timedwait_multithreaded): New declaration.
37327         (glthread_cond_timedwait): Use it.
37328         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37329         (glthread_cond_timedwait_multithreaded): New function.
37330
37331 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37332
37333         * modules/poll-tests: Do not check for io.h.
37334         * tests/test-poll.c: Check for __MSVCRT__ instead.
37335
37336 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37337
37338         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37339         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37340         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37341
37342 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37343
37344         * modules/poll-tests: New.
37345         * tests/test-poll.c: New.
37346
37347 2008-09-12  Eric Blake  <ebb9@byu.net>
37348
37349         frexp: test for NetBSD failure on -0.0
37350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37351         not all, bugs from NetBSD 3.0 have been fixed.
37352         * doc/posix-functions/frexp.texi (frexp): Document bug.
37353         Reported by Thomas Klausner.
37354
37355         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37356         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37357         literal -0.0.
37358         Reported by Jonathan C. Patschke <jp@centtech.com>.
37359
37360 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37361
37362         * lib/glthread/cond.h: Use dummy implementation also if
37363         USE_WIN32_THREADS.
37364
37365 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37366
37367         * modules/fnmatch-posix (License): Change to LGPLv2+.
37368         * modules/fnmatch-gnu (License): Likewise.
37369
37370 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37371
37372         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37373
37374 2008-09-11  Jim Meyering  <meyering@redhat.com>
37375
37376         * users.txt: Add gtk-vnc.
37377
37378 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37379
37380         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37381         rotate amounts.
37382
37383         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37384         required for 16-bit and 8-bit rotates.
37385         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37386         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37387         UINT8_MAX instead of hard-coded constants.
37388         Suggested by Paul Eggert.
37389
37390 2008-09-07  Bruno Haible  <bruno@clisp.org>
37391
37392         * tests/test-striconveh.c (main): Check behaviour when converting from
37393         UTF-7.
37394
37395         Make striconveh work better with stateful encodings.
37396         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37397         that iconv does not increment the inptr when returning -1/EINVAL.
37398
37399 2008-09-07  Bruno Haible  <bruno@clisp.org>
37400
37401         * build-aux/config.rpath: Update according to libtool-2.2.6.
37402         * build-aux/config.libpath: Likewise.
37403
37404 2008-09-06  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37407         * lib/freadptr.c (freadptr): Likewise.
37408         * lib/freadseek.c (freadptrinc): Likewise.
37409         Reported by Simon Josefsson.
37410
37411 2008-09-06  Bruno Haible  <bruno@clisp.org>
37412
37413         * modules/freadptr (License): Change to LGPLv2+.
37414         * modules/freadseek (License): Likewise.
37415         Suggested by Eric Blake.
37416
37417         * modules/memchr2 (License): Change to LGPLv2+.
37418         Approved by Eric Blake.
37419
37420 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37421             Bruno Haible  <bruno@clisp.org>
37422
37423         Make gnulib-tool work with native 'sed' on AIX.
37424         * gnulib-tool (sed_noop): New variable.
37425         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37426         func_add_or_update, func_create_testdir): Use it to initialize sed
37427         script variables.
37428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37429
37430 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37431             Bruno Haible  <bruno@clisp.org>
37432
37433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37434         also works after #include directives.
37435
37436 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37437
37438         getdate.y: reject an out-of-range timezone value
37439         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37440         the range [-24...+24].  When specified with only one or two digits,
37441         * tests/test-getdate.c: Tests for the fix.
37442         * doc/getdate.texi: Document this change.
37443
37444 2008-09-03  Bruno Haible  <bruno@clisp.org>
37445
37446         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37447
37448 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37449
37450         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37451         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37452         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37453         Blake <ebb9@byu.net>.
37454
37455         * tests/test-bitrotate.c: Add more test vectors.
37456
37457 2008-09-02  Eric Blake  <ebb9@byu.net>
37458
37459         vasnprintf-posix: handle large precision via %.*d
37460         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37461         when handling it ourselves.
37462         * tests/test-vasnprintf-posix.c (test_function): Add test.
37463         * tests/test-snprintf-posix.h (test_function): Likewise.
37464         * tests/test-sprintf-posix.h (test_function): Likewise.
37465         * tests/test-vasprintf-posix.c (test_function): Likewise.
37466         Reported by Alain Guibert.
37467
37468 2008-09-01  Eric Blake  <ebb9@byu.net>
37469
37470         c-stack: make configure-time check more robust
37471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37472         successful sigaction call.
37473         Reported by Tom G. Christensen.
37474
37475 2008-09-01  Bruno Haible  <bruno@clisp.org>
37476
37477         New module 'findprog-lgpl'.
37478         * modules/findprog-lgpl: New file.
37479         * lib/findprog-lgpl.c: New file.
37480         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37481         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37482         to decide whether to use strdup or xstrdup, concatenated_filename or
37483         xconcatenated_filename.
37484
37485 2008-09-01  Bruno Haible  <bruno@clisp.org>
37486
37487         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37488         'xconcat-filename' (GPL).
37489         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37490         (License): Change to LGPLv2+.
37491         * modules/xconcat-filename: New file.
37492         * lib/concat-filename.h (concatenated_filename): Change specification.
37493         (xconcatenated_filename): New declaration.
37494         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37495         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37496         memory situations.
37497         * lib/xconcat-filename.c: New file.
37498         * NEWS: Mention the change.
37499         * lib/findprog.c: Include concat-filename.h, not filename.h.
37500         (find_in_path): Use xconcatenated_filename instead of
37501         concatenated_filename.
37502         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37503         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37504         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37505         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37506         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37507         instead of concatenated_filename.
37508         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37509         (execute_java_class): Use xconcatenated_filename instead of
37510         concatenated_filename.
37511         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37512         * modules/javacomp (Depends-on): Likewise.
37513         * modules/javaexec (Depends-on): Likewise.
37514
37515 2008-09-01  Bruno Haible  <bruno@clisp.org>
37516
37517         Split module 'filename' into 'filename' and 'concat-filename'.
37518         * modules/filename: Keep only lib/filename.h.
37519         (License): Change to LGPLv2+.
37520         * modules/concat-filename: New file, extracted from modules/filename.
37521         * lib/filename.h (concatenated_filename): Remove declaration.
37522         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37523         * lib/concat-filename.c: Include concat-filename.h.
37524         * NEWS: Mention the change.
37525
37526 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37527
37528         * lib/bitrotate.h (rotl8, rotr8): Add.
37529
37530         * modules/bitrotate (configure.ac): Need
37531         AC_REQUIRE([AC_C_INLINE]).
37532         (Description): Mention stdint.h.  Reported by Bruno Haible
37533         <bruno@clisp.org>.
37534
37535         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37536         Paolo Bonzini <bonzini@gnu.org>.
37537
37538 2008-08-31  Bruno Haible  <bruno@clisp.org>
37539
37540         Assume Solaris specific bi-arch conventions on Solaris systems.
37541         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37542         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37544         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37545         like acl_libdirstem.
37546         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37547         acl_libdirstem.
37548         * NEWS: Mention the change.
37549         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37550
37551 2008-08-31  Jim Meyering  <meyering@redhat.com>
37552
37553         * lib/strftime.h: Add comments describing the two added arguments.
37554
37555         remove duplicate #include directives
37556         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37557         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37558
37559 2008-08-31  Bruno Haible  <bruno@clisp.org>
37560
37561         New module 'sigpipe-die'.
37562         * modules/sigpipe-die: New file.
37563         * lib/sigpipe-die.h: New file.
37564         * lib/sigpipe-die.c: New file.
37565         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37566
37567 2008-08-31  Bruno Haible  <bruno@clisp.org>
37568
37569         Don't override previously installed signal handlers.
37570         * lib/fatal-signal.c (saved_sigactions): New variable.
37571         (uninstall_handlers): Reset the signal to the saved handler, not
37572         to SIG_DFL (except when ignored).
37573         (install_handlers): Save the previous handlers.
37574
37575 2008-08-30  Bruno Haible  <bruno@clisp.org>
37576
37577         * gnulib-tool (func_reset_sigpipe): New function.
37578         (func_get_automake_snippet, func_modules_transitive_closure,
37579         func_import): Invoke it before a join command that reads from stdin,
37580         to avoid "echo: write error: Broken pipe" error messages on stderr.
37581         Reported by Sam Steingold <sds@gnu.org>.
37582
37583 2008-08-30  Bruno Haible  <bruno@clisp.org>
37584
37585         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37586         Code copied from m4/open.m4.
37587         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37588         access and the filename ends in a slash. Code copied from lib/open.c.
37589         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37590         * tests/test-fopen.c (main): Check against bug with trailing slash.
37591
37592 2008-08-29  Bruno Haible  <bruno@clisp.org>
37593
37594         Avoid some "gcc -pedantic" warnings.
37595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37596         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37597         * lib/dirent.in.h: Likewise.
37598         * lib/fcntl.in.h: Likewise.
37599         * lib/float.in.h: Likewise.
37600         * lib/iconv.in.h: Likewise.
37601         * lib/inttypes.in.h: Likewise.
37602         * lib/locale.in.h: Likewise.
37603         * lib/math.in.h: Likewise.
37604         * lib/netinet_in.in.h: Likewise.
37605         * lib/search.in.h: Likewise.
37606         * lib/signal.in.h: Likewise.
37607         * lib/stdarg.in.h: Likewise.
37608         * lib/stdint.in.h: Likewise.
37609         * lib/stdio.in.h: Likewise.
37610         * lib/stdlib.in.h: Likewise.
37611         * lib/string.in.h: Likewise.
37612         * lib/strings.in.h: Likewise.
37613         * lib/sys_select.in.h: Likewise.
37614         * lib/sys_socket.in.h: Likewise.
37615         * lib/sys_stat.in.h: Likewise.
37616         * lib/sys_time.in.h: Likewise.
37617         * lib/sysexits.in.h: Likewise.
37618         * lib/time.in.h: Likewise.
37619         * lib/unistd.in.h: Likewise.
37620         * lib/wchar.in.h: Likewise.
37621         * lib/wctype.in.h: Likewise.
37622         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37623         * modules/fchdir (Makefile.am): Likewise.
37624         * modules/fcntl (Makefile.am): Likewise.
37625         * modules/float (Makefile.am): Likewise.
37626         * modules/iconv_open (Makefile.am): Likewise.
37627         * modules/inttypes (Makefile.am): Likewise.
37628         * modules/locale (Makefile.am): Likewise.
37629         * modules/math (Makefile.am): Likewise.
37630         * modules/netinet_in (Makefile.am): Likewise.
37631         * modules/search (Makefile.am): Likewise.
37632         * modules/signal (Makefile.am): Likewise.
37633         * modules/stdarg (Makefile.am): Likewise.
37634         * modules/stdint (Makefile.am): Likewise.
37635         * modules/stdio (Makefile.am): Likewise.
37636         * modules/stdlib (Makefile.am): Likewise.
37637         * modules/string (Makefile.am): Likewise.
37638         * modules/strings (Makefile.am): Likewise.
37639         * modules/sys_select (Makefile.am): Likewise.
37640         * modules/sys_socket (Makefile.am): Likewise.
37641         * modules/sys_stat (Makefile.am): Likewise.
37642         * modules/sys_time (Makefile.am): Likewise.
37643         * modules/sysexits (Makefile.am): Likewise.
37644         * modules/time (Makefile.am): Likewise.
37645         * modules/unistd (Makefile.am): Likewise.
37646         * modules/wchar (Makefile.am): Likewise.
37647         * modules/wctype (Makefile.am): Likewise.
37648         Reported by Reuben Thomas <rrt@sc3d.org>.
37649
37650 2008-08-29  Bruno Haible  <bruno@clisp.org>
37651
37652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37653         any more.
37654
37655 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37656
37657         * MODULES.html.sh (Misc): Add bitrotate.
37658
37659         * modules/bitrotate: New file.
37660
37661         * lib/bitrotate.h: New file.
37662
37663         * modules/bitrotate-tests: New file.
37664
37665         * tests/test-bitrotate.c: New file.
37666
37667         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37668         on the bitrotate module.
37669
37670         * lib/arctwo.c: Use new bitrotate module.
37671
37672 2008-08-29  Jim Meyering  <meyering@redhat.com>
37673
37674         bootstrap: merge changes from coreutils
37675         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37676         of copied files.  Remove a kludge, now that this is fixed.
37677         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37678         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37679         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37680
37681 2008-08-29  Bruno Haible  <bruno@clisp.org>
37682
37683         * MODULES.html.sh: Remove --cvs-urls option.
37684
37685 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37686
37687         maint.mk: adjust to file name change
37688         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37689
37690 2008-08-28  Jim Meyering  <meyering@redhat.com>
37691
37692         * modules/getndelim2 (License): Relicense to LGPLv2+.
37693         Approved by Richard Stallman for the version of 1995, and by
37694         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37695
37696 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37697
37698         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37699         dummy if one is not available.  Do not touch them if
37700         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37701         (getc_maybe_unlocked): New.
37702         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37703
37704 2008-08-26  Eric Blake  <ebb9@byu.net>
37705
37706         doc/INSTALL: resync from autoconf
37707         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37708         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37709         moving...
37710         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37711         * INSTALL: Regenerate.
37712         * INSTALL.ISO: New file.
37713         * INSTALL.UTF-8: Likewise.
37714
37715 2008-08-26  Jim Meyering  <meyering@redhat.com>
37716
37717         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37718         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37719         these definitions conditional, so that they may be overridden, too.
37720
37721 2008-08-26  Bruno Haible  <bruno@clisp.org>
37722
37723         Generate INSTALL file variants with prettier quotes.
37724         * doc/Makefile (INSTALL_PRELUDE): New macro.
37725         (INSTALL): Use it.
37726         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37727
37728 2008-08-26  Bruno Haible  <bruno@clisp.org>
37729
37730         Run makeinfo in an English locale.
37731         * doc/Makefile (MAKEINFO): New variable.
37732
37733 2008-08-26  Bruno Haible  <bruno@clisp.org>
37734
37735         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37736         Suggested by Eric Blake.
37737
37738 2008-08-25  Bruno Haible  <bruno@clisp.org>
37739
37740         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37741
37742 2008-08-25  Eric Blake  <ebb9@byu.net>
37743
37744         c-stack: test that stack overflow can be caught
37745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37746         that platform allows handling stack overflow; at least OS/2 EMX
37747         has sigaltstack, but crashes before transferring control to
37748         handler on stack overflow.
37749         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37750         check for HAVE_STACK_OVERFLOW_HANDLING.
37751         Reported by Elbert Pol.
37752
37753 2008-08-25  Bruno Haible  <bruno@clisp.org>
37754
37755         * doc/posix-functions/strftime.texi: Fix description of strftime
37756         module.
37757
37758 2008-08-24  Bruno Haible  <bruno@clisp.org>
37759
37760         * tests/uniwidth/test-uc_width2.c: New file.
37761         * tests/uniwidth/test-uc_width2.sh: New file.
37762         * modules/uniwidth/width-tests (Files): Add the new files.
37763         (TESTS): Add uniwidth/test-uc_width2.sh.
37764         (TESTS_ENVIRONMENT): New variable.
37765         (check_PROGRAMS): Add test-uc_width2.
37766         (test_uc_width2_SOURCES): New variable.
37767
37768         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37769         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37770         not 0x00AB.
37771         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37772
37773 2008-08-22  Eric Blake  <ebb9@byu.net>
37774
37775         test-lock, test-tls: mention why a test is skipped
37776         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37777         skipped.
37778         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37779
37780         count-one-bits: relax license
37781         * modules/count-one-bits (License): Relicense to LGPLv2+.
37782         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37783
37784 2008-08-22  Andreas Schwab  <schwab@suse.de>
37785
37786         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37787         Remove spurious space in assignment.
37788
37789 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37790
37791         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37792         Paul Eggert <eggert@CS.UCLA.EDU>.
37793
37794 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37795
37796         * modules/gettext: Add m4/threadlib.m4.
37797
37798 2008-08-19  Eric Blake  <ebb9@byu.net>
37799
37800         test-c-stack: fix compilation failure on FreeBSD 5.0
37801         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37802         headers before <sys/resource.h>.
37803         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37804         the bug.
37805         Reported by Nelson H. F. Beebe.
37806
37807         strverscmp: migrate from "strverscmp.h" to <string.h>
37808         * modules/string (Makefile.am): Add new hooks.
37809         * modules/strverscmp (Files): Remove strverscmp.h.
37810         (Depends-on): Add string.
37811         (configure.ac): Add indicator.
37812         (Include): Mention new header.
37813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37814         defaults.
37815         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37816         results.
37817         * lib/strverscmp.h: Delete.
37818         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37819         * tests/test-strverscmp.c (includes): Adjust client.
37820         * lib/check-version.c (includes): Likewise.
37821         * NEWS: Document the change.
37822
37823         strverscmp: add unit test
37824         * modules/strverscmp-tests: New file.
37825         * tests/test-strverscmp.c: Likewise.
37826
37827 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37828
37829         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37830         regarding Windows crypto stuff, from Mono.
37831
37832 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37833
37834         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37835         if present, for intel RND.  Return error on failures.
37836
37837 2008-08-18  Ben Pfaff  <blp@gnu.org>
37838
37839         gitlog-to-changelog: give better diagnostic for failed pipe-open
37840         * build-aux/gitlog-to-changelog: Improve error message: suggest
37841         that the version of Git may be too old.
37842
37843 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37844
37845         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37846         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37847
37848 2008-08-18  Bruno Haible  <bruno@clisp.org>
37849
37850         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37851         pthread_in_use().
37852
37853 2008-08-18  Bruno Haible  <bruno@clisp.org>
37854
37855         * lib/glthread/threadlib.c: Include <pthread.h>.
37856
37857 2008-08-18  Bruno Haible  <bruno@clisp.org>
37858
37859         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37860         glthread_recursive_lock_* macros.
37861         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37862         Fix syntax error.
37863
37864 2008-08-18  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/glthread/thread.c: Avoid forcing a context switch right after
37867         thread creation.
37868
37869 2008-08-17  Bruno Haible  <bruno@clisp.org>
37870
37871         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37872         * lib/glthread/thread.h: Provide Win32 specific implementation.
37873         * modules/thread (Files): Add lib/glthread/thread.c.
37874         (Depends-on): Add lock.
37875         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37876
37877 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37878
37879         New module 'yield'.
37880         * modules/yield: New file.
37881         * lib/glthread/yield.h: New file.
37882         * m4/yield.m4: New file.
37883         * MODULES.html.sh (Multithreading): Add yield.
37884
37885 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37886
37887         New module 'thread'.
37888         * modules/thread: New file.
37889         * lib/glthread/thread.h: New file.
37890         * m4/thread.m4: New file.
37891         * MODULES.html.sh (Multithreading): Add thread.
37892
37893 2008-08-17  Bruno Haible  <bruno@clisp.org>
37894
37895         * lib/glthread/lock.h: Include <stdlib.h> always.
37896         * lib/glthread/tls.h: Likewise.
37897         * lib/glthread/cond.h: Likewise.
37898
37899 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37900
37901         New module 'cond'.
37902         * modules/cond: New file.
37903         * lib/glthread/cond.h: New file.
37904         * lib/glthread/cond.c: New file.
37905         * m4/cond.m4: New file.
37906         * MODULES.html.sh (Multithreading): Add cond.
37907
37908 2008-08-16  Eric Blake  <ebb9@byu.net>
37909
37910         c-stack: fix regression on Irix 5.3 from 2008-06-21
37911         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37912         sa_sigaction...
37913         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37914         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37915         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37916         * modules/signal (Makefile.am): Use the value.
37917         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37918         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37919         * doc/posix-headers/signal.texi (signal.h): Document this
37920         portability issue.
37921         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37922         Reported by Tom G. Christensen.
37923
37924 2008-08-17  Bruno Haible  <bruno@clisp.org>
37925
37926         New module 'threadlib'.
37927         * modules/threadlib: New file.
37928         * lib/glthread/threadlib.c: New file, extracted from
37929         lib/glthread/lock.c.
37930         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37931         functions.
37932         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37933         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37934         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37935         macros.
37936         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37937         (gl_DISABLE_THREADS): Remove macro.
37938         * modules/lock (Files): Remove build-aux/config.rpath.
37939         (Depends-on): Remove havelib. Add threadlib.
37940         (configure.ac-early): Remove section.
37941         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37942         * modules/tls (Depends-on): Remove lock. Add threadlib.
37943         (Link): New section, copied from threadlib.
37944         * MODULES.html.sh (Multithreading): Add threadlib.
37945
37946 2008-08-14  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37949         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37950         glthread_rwlock_unlock, glthread_rwlock_destroy,
37951         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37952         glthread_recursive_lock_destroy): Define as macros always.
37953         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37954         glthread_lock_lock.
37955         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37956         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37957         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37958         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37959         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37960         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37961         (glthread_recursive_lock_lock_func): Renamed from
37962         glthread_recursive_lock_lock.
37963         (glthread_recursive_lock_unlock_func): Renamed from
37964         glthread_recursive_lock_unlock.
37965         (glthread_recursive_lock_destroy_func): Renamed from
37966         glthread_recursive_lock_destroy.
37967
37968 2008-08-14  Bruno Haible  <bruno@clisp.org>
37969
37970         * lib/glthread/lock.h: Renamed from lib/lock.h.
37971         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37972         * lib/glthread/tls.h: Renamed from lib/tls.h.
37973         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37974         * lib/fstrcmp.c: Update includes.
37975         * lib/strsignal.c: Update includes.
37976         * modules/lock (Files, Makefile.am): Update.
37977         (Include): Change to "glthread/lock.h".
37978         * modules/tls (Files, Makefile.am): Update.
37979         (Include): Change to "glthread/tls.h".
37980         * tests/test-lock.c: Update includes.
37981         * tests/test-tls.c: Update includes.
37982         * NEWS: Mention the renamed header files.
37983
37984 2008-08-11  Jim Meyering  <meyering@redhat.com>
37985
37986         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37987
37988 2008-08-11  Eric Blake  <ebb9@byu.net>
37989
37990         test-c-stack: avoid C99-ism
37991         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37992         before statement.
37993         Reported by Alain Guibert.
37994
37995 2008-08-10  Jim Meyering  <meyering@redhat.com>
37996
37997         ensure that return value of uinttostr et al are not ignored
37998         * lib/inttostr.h (__GNUC_PREREQ): Define.
37999         (__attribute_warn_unused_result__): Define.
38000         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38001
38002 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38003
38004         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38005         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38006
38007 2008-08-07  Jim Meyering  <meyering@redhat.com>
38008
38009         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38010
38011         * modules/mkstemp (License): Relicense under LGPLv2+.
38012         * modules/tempname (License): Likewise.
38013
38014 2008-08-06  Bruno Haible  <bruno@clisp.org>
38015
38016         * lib/poll.c (poll): Further micro-optimization.
38017
38018 2008-08-06  Jim Meyering  <meyering@redhat.com>
38019
38020         inet_pton.c: use locale-independent tolower
38021         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38022         (inet_pton6): Use c_tolower rather than tolower.
38023         * modules/inet_pton (Depends-on): Add c-ctype.
38024
38025 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38026
38027         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38028         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38029
38030 2008-08-06  Jim Meyering  <meyering@redhat.com>
38031
38032         * modules/inet_pton (License): Relicense under LGPLv2+.
38033
38034 2008-08-03  Bruno Haible  <bruno@clisp.org>
38035
38036         Additional non-aborting API for lock and tls.
38037         * lib/lock.h: Include <errno.h>.
38038         (glthread_lock_init): New macro/function.
38039         (gl_lock_init): Define as wrapper around glthread_lock_init.
38040         (glthread_lock_lock): New macro/function.
38041         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38042         (glthread_lock_unlock): New macro/function.
38043         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38044         (glthread_lock_destroy): New macro/function.
38045         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38046         (glthread_rwlock_init): New macro/function.
38047         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38048         (glthread_rwlock_rdlock): New macro/function.
38049         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38050         (glthread_rwlock_wrlock): New macro/function.
38051         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38052         (glthread_rwlock_unlock): New macro/function.
38053         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38054         (glthread_rwlock_destroy): New macro/function.
38055         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38056         (glthread_recursive_lock_init): New macro/function.
38057         (gl_recursive_lock_init): Define as wrapper around
38058         glthread_recursive_lock_init.
38059         (glthread_recursive_lock_lock): New macro/function.
38060         (gl_recursive_lock_lock): Define as wrapper around
38061         glthread_recursive_lock_lock.
38062         (glthread_recursive_lock_unlock): New macro/function.
38063         (gl_recursive_lock_unlock): Define as wrapper around
38064         glthread_recursive_lock_unlock.
38065         (glthread_recursive_lock_destroy): New macro/function.
38066         (gl_recursive_lock_destroy): Define as wrapper around
38067         glthread_recursive_lock_destroy.
38068         (glthread_once): New macro/function.
38069         (gl_once): Define as wrapper around glthread_once.
38070         Update function declarations.
38071         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38072         glthread_rwlock_init. Return error code.
38073         (glthread_rwlock_rdlock_multithreaded): Renamed from
38074         glthread_rwlock_rdlock. Return error code.
38075         (glthread_rwlock_wrlock_multithreaded): Renamed from
38076         glthread_rwlock_wrlock. Return error code.
38077         (glthread_rwlock_unlock_multithreaded): Renamed from
38078         glthread_rwlock_unlock. Return error code.
38079         (glthread_rwlock_destroy_multithreaded): Renamed from
38080         glthread_rwlock_destroy. Return error code.
38081         (glthread_recursive_lock_init_multithreaded): Renamed from
38082         glthread_recursive_lock_init. Return error code.
38083         (glthread_recursive_lock_lock_multithreaded): Renamed from
38084         glthread_recursive_lock_lock. Return error code.
38085         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38086         glthread_recursive_lock_unlock. Return error code.
38087         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38088         glthread_recursive_lock_destroy. Return error code.
38089         (glthread_once_call): Make static.
38090         (glthread_once_multithreaded): Renamed from glthread_once.
38091         * lib/tls.h: Include <errno.h>.
38092         (glthread_tls_key_init): New macro/function.
38093         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38094         (glthread_tls_set): New macro/function.
38095         (gl_tls_set): Define as wrapper around glthread_tls_set.
38096         (glthread_tls_key_destroy): New macro/function.
38097         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38098         Update function declarations.
38099         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38100         glthread_tls_get.
38101         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38102
38103 2008-08-04  Eric Blake  <ebb9@byu.net>
38104
38105         gnumakefile: use space, not TAB, outside of targets
38106         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38107
38108 2008-08-02  Jim Meyering  <meyering@redhat.com>
38109
38110         getdate.y: avoid locale-dependent date parsing failure
38111         In Turkish locales, getdate would fail to recognize keywords
38112         containing a lowercase "i".  The solution is not to rely on
38113         locale-sensitive case-conversion.
38114         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38115         (lookup_word): Use c_toupper in place of toupper.
38116         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38117         Reported by Vefa Bicakci <bicave@superonline.com> in
38118         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38119         * modules/getdate (Depends-on): Add c-ctype.
38120
38121 2008-08-02  Bruno Haible  <bruno@clisp.org>
38122
38123         * gnulib-tool (func_import): When updating or creating a .gitignore
38124         file, prepend each added line with a slash, and ignore leading slashes
38125         from the existing lines.
38126         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38127
38128 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38129
38130         Portability fix for GNU make 3.79.1.
38131         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38132         versions do not understand.
38133
38134 2008-08-01  Bruno Haible  <bruno@clisp.org>
38135
38136         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38137         * tests/test-isnanf.h (zero): New variable.
38138         (main): Avoid literal -0.0f.
38139         * tests/test-isnand.h (zero): New variable.
38140         (main): Avoid literal -0.0.
38141         * tests/test-isnanl.h (zero): New variable.
38142         (main): Avoid literal -0.0L.
38143         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38144         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38145         -0.0, -0.0L.
38146         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38147         (test_signbitd): Avoid literal -0.0.
38148         (test_signbitl): Avoid literal -0.0L.
38149         * tests/test-ceilf1.c (zero): New variable.
38150         (main): Avoid literal -0.0f.
38151         * tests/test-ceill.c (zero): New variable.
38152         (main): Avoid literal -0.0L.
38153         * tests/test-floorf1.c (zero): New variable.
38154         (main): Avoid literal -0.0f.
38155         * tests/test-floorl.c (zero): New variable.
38156         (main): Avoid literal -0.0L.
38157         * tests/test-roundf1.c (zero): New variable.
38158         (main): Avoid literal -0.0f.
38159         * tests/test-round1.c (zero): New variable.
38160         (main): Avoid literal -0.0.
38161         * tests/test-roundl.c (zero): New variable.
38162         (main): Avoid literal -0.0L.
38163         * tests/test-truncf1.c (zero): New variable.
38164         (main): Avoid literal -0.0f.
38165         * tests/test-trunc1.c (zero): New variable.
38166         (main): Avoid literal -0.0.
38167         * tests/test-truncl.c (zero): New variable.
38168         (main): Avoid literal -0.0L.
38169         * tests/test-frexp.c (zero): New variable.
38170         (main): Avoid literal -0.0.
38171         * tests/test-frexpl.c (zero): New variable.
38172         (main): Avoid literal -0.0L.
38173         * tests/test-ldexpl.c (zero): New variable.
38174         (main): Avoid literal -0.0L.
38175         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38176         (zerod, zerol): New variables.
38177         (test_function): Avoid literals -0.0, -0.0L.
38178         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38179         (zerod, zerol): New variables.
38180         (test_function): Avoid literals -0.0, -0.0L.
38181         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38182         (zerod, zerol): New variables.
38183         (test_function): Avoid literals -0.0, -0.0L.
38184         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38185         (zerod, zerol): New variables.
38186         (test_function): Avoid literals -0.0, -0.0L.
38187         * tests/test-strtod.c (zero): New variable.
38188         (main): Avoid literal -0.0.
38189         Reported by Jonathan C. Patschke <jp@centtech.com>.
38190
38191 2008-07-31  Jim Meyering  <meyering@redhat.com>
38192
38193         sha256.h: correct definition of SHA224_DIGEST_SIZE
38194         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38195         Reported by Paulie Pena IV <paulie4@gmail.com>.
38196         Define as 224 / 8, rather than as a literal.
38197         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38198         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38199         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38200
38201 2008-07-31  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38204         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38205         Reported by Jonathan Patschke <jp@centtech.com>.
38206
38207 2008-07-31  Bruno Haible  <bruno@clisp.org>
38208
38209         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38210         Reported by Paolo Bonzini <bonzini@gnu.org>.
38211
38212 2008-07-30  Eric Blake  <ebb9@byu.net>
38213
38214         test-strtod: allow compilation without -lm
38215         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38216         Reported by Dennis Clarke <blastwave@gmail.com>.
38217
38218 2008-07-28  Jim Meyering  <meyering@redhat.com>
38219
38220         bootstrap: work also when there are no .po files in po/
38221         * build-aux/bootstrap (update_po_files): Complete the change
38222         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38223
38224 2008-07-27  Jim Meyering  <meyering@redhat.com>
38225
38226         * users.txt: Add zile.
38227
38228 2008-07-26  Ben Pfaff  <blp@gnu.org>
38229
38230         Add missing dependencies on new m4/exponent[fdl].m4 files.
38231         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38232         * modules/isnand-nolibm: Add m4/exponentd.m4.
38233         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38234         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38235         m4/isnan[fdl].m4, because the macros actually used moved.
38236         Reported by Jim Meyering.
38237
38238 2008-07-14  Ben Pfaff  <blp@gnu.org>
38239
38240         Add isinf module.
38241         * lib/isinf.c: New file.
38242         * lib/math.in.h: Define isinf macro if we have decided to replace
38243         it.
38244         * m4/isinf.m4: New file.
38245         * m4/math_h.m4: Initialize and substitute variables for isinf
38246         module.
38247         * modules/isinf: New file.
38248         * modules/isinf-tests: New file.
38249         * modules/math: Add substitutions for new module.
38250         * tests/test-isinf.c: New file.
38251         * doc/posix-functions/isinf.texi: Mention new module.
38252         * MODULES.html.sh: Mention new module.
38253
38254 2008-07-14  Ben Pfaff  <blp@gnu.org>
38255
38256         Factor out some macros for use by additional modules.
38257         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38258         exponentf.m4.
38259         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38260         exponentd.m4.
38261         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38262         file exponentl.m4.
38263         * m4/exponentf.m4: New file.
38264         * m4/exponentd.m4: New file.
38265         * m4/exponentl.m4: New file.
38266         * modules/isnanf: Use new file m4/exponentf.m4.
38267         * modules/isnand: Use new file m4/exponentd.m4.
38268         * modules/isnanl: Use new file m4/exponentl.m4.
38269
38270 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38271
38272         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38273         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38274         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38275         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38276
38277         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38278         readlink on platforms without PATH_MAX.
38279
38280 2008-07-21  Eric Blake  <ebb9@byu.net>
38281
38282         Warn, not fail, on stale version.
38283         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38284
38285         Don't allow installation with stale devel version number.
38286         * top/GNUmakefile (_is-install-target): New macro.
38287         (_curr-ver): Forbid installation with stale version number.
38288
38289 2008-07-20  Bruno Haible  <bruno@clisp.org>
38290
38291         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38292         TESTS_ENVIRONMENT.
38293         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38294
38295 2008-07-20  Bruno Haible  <bruno@clisp.org>
38296
38297         * lib/c-stack.h (c_stack_action): Add documentation.
38298         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38299
38300 2008-07-20  Bruno Haible  <bruno@clisp.org>
38301
38302         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38303         * modules/readlink (License): Likewise.
38304
38305 2008-07-17  Eric Blake  <ebb9@byu.net>
38306
38307         * modules/c-stack (Link): Fix typo.
38308
38309         Make c-stack use libsigsegv, when available.
38310         * modules/c-stack (Depends-on): Add libsigsegv.
38311         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38312         needed.
38313         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38314         (segv_handler, overflow_handler, c_stack_action)
38315         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38316         implementation when libsigsegv is available, but only when using
38317         the library is necessary.
38318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38319         comment, explaining why XSI check fails on Linux.
38320         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38321         * tests/test-c-stack2.sh: Tweak skip message.
38322         * NEWS: Document new link-time requirements.
38323
38324 2008-07-16  Eric Blake  <ebb9@byu.net>
38325
38326         c-stack: Expose false positives when not using libsigsegv.
38327         * modules/c-stack-tests (Files): Expand test.
38328         * tests/test-c-stack.c (main): Add means to conditionally trigger
38329         non-overflow SIGSEGV.
38330         * tests/test-c-stack2.sh: New file.
38331
38332 2008-07-14  Bruno Haible  <bruno@clisp.org>
38333
38334         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38335         Reported by Eric Blake.
38336
38337 2008-07-14  Sam Steingold  <sds@gnu.org>
38338             Bruno Haible  <bruno@clisp.org>
38339
38340         New module libsigsegv.
38341         * modules/libsigsegv: New file.
38342         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38343         modifications.
38344         * MODULES.html.sh (Signal handling): New section.
38345
38346 2008-07-14  Bruno Haible  <bruno@clisp.org>
38347
38348         * modules/unictype/ctype-* (Description): Add the word "function".
38349         Improves the resulting doc in MODULES.html.
38350
38351 2008-07-12  Ben Pfaff  <blp@gnu.org>
38352
38353         Add longlong module.
38354         * modules/longlong: New file.
38355
38356 2008-07-12  Bruno Haible  <bruno@clisp.org>
38357
38358         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38359         to empty.
38360
38361 2008-07-10  Ben Pfaff  <blp@gnu.org>
38362
38363         Add isnan module.
38364         * doc/posix-functions/isnan.texi: Mention new module.
38365         * lib/math.in.h: Define isnan macro if we have decided to replace
38366         it.
38367         * m4/isnan.m4: New file.
38368         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38369         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38370         also.
38371         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38372         redundancy.
38373         * m4/math_h.m4: Initialize and substitute variables for isnan
38374         module.
38375         * modules/isnan: New file.
38376         * modules/isnan-tests: New file.
38377         * modules/math: Add substitutions for new module.
38378         * tests/test-isnan.c: New file.
38379         * MODULES.html.sh: Mention new module.
38380
38381 2008-07-10  Ben Pfaff  <blp@gnu.org>
38382
38383         Add isnanf module.
38384         * lib/isnanf.m4: New file.
38385         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38386         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38387         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38388         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38389         * modules/isnanf: New file.
38390         * modules/isnanf-tests: New file.
38391         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38392         files.
38393         * tests/test-isnanf-nolibm.c: factored most of its contents into
38394         new file tests/test-isnanf.h.
38395         * tests/test-isnanf.h: New file.
38396         * tests/test-isnanf.c: New file.
38397         * MODULES.html.sh: Mention new module.
38398         * doc/glibc-functions/isnanf.texi: Mention new module.
38399
38400 2008-07-10  Ben Pfaff  <blp@gnu.org>
38401
38402         Add isnand module.
38403         * lib/isnand.h: New file.
38404         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38405         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38406         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38407         functionality also.
38408         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38409         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38410         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38411         * modules/isnand: New file.
38412         * modules/isnand-tests: New file.
38413         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38414         files.
38415         * tests/test-isnand-nolibm.c: factored most of its contents into
38416         new file tests/test-isnand.h.
38417         * tests/test-isnand.h: New file.
38418         * tests/test-isnand.c: New file.
38419         * MODULES.html.sh: Mention new module.
38420
38421 2008-07-10  Ben Pfaff  <blp@gnu.org>
38422
38423         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38424         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38425         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38426         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38427         * modules/isnanf-nolibm: Update references to renamed files.
38428         * modules/isnand-nolibm: Likewise.
38429         * modules/isnanf-nolibm-tests: Likewise.
38430         * modules/isnand-nolibm-tests: Likewise.
38431         * lib/frexp.c: Likewise.
38432         * lib/isfinite.c: Likewise.
38433         * lib/signbitd.c: Likewise.
38434         * lib/signbitf.c: Likewise.
38435         * lib/vasnprintf.c: Likewise.
38436         * tests/test-ceilf1.c: Likewise.
38437         * tests/test-ceilf2.c: Likewise.
38438         * tests/test-floorf1.c: Likewise.
38439         * tests/test-floorf2.c: Likewise.
38440         * tests/test-frexp.c: Likewise.
38441         * tests/test-round1.c: Likewise.
38442         * tests/test-round2.c: Likewise.
38443         * tests/test-roundf1.c: Likewise.
38444         * tests/test-strtod.c: Likewise.
38445         * tests/test-trunc1.c: Likewise.
38446         * tests/test-trunc2.c: Likewise.
38447         * tests/test-truncf1.c: Likewise.
38448         * tests/test-truncf2.c: Likewise.
38449         * NEWS: Mention the renamed header files.
38450
38451 2008-07-11  Jim Meyering  <meyering@redhat.com>
38452
38453         vc-list-files: make the last-resort awk code more portable
38454         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38455         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38456         does not support it.
38457
38458 2008-07-10  Eric Blake  <ebb9@byu.net>
38459
38460         Work with tar's bootstrap.
38461         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38462         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38463         an m4 comment.
38464
38465 2008-07-09  Jim Meyering  <meyering@redhat.com>
38466
38467         posix-shell.m4: fix typo that made this test malfunction
38468         * m4/posix-shell.m4: Remove capitalization in variable name.
38469
38470 2008-07-08  Bruno Haible  <bruno@clisp.org>
38471
38472         * m4/onceonly.m4: Update comments.
38473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38474
38475 2008-07-04  Jim Meyering  <meyering@redhat.com>
38476
38477         * users.txt: Add vc-dwim.
38478         (bison, coreutils): Use the gitweb URL.
38479
38480 2008-07-03  Jim Meyering  <meyering@redhat.com>
38481
38482         * users.txt: Add libffcall.  From Sam Steingold.
38483
38484 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38485
38486         getdate.y: do not ignore TZ with relative day, month or year offset
38487         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38488         relative-date-handling, since otherwise, the latter would clobber the
38489         sole output (an updated Start value) of the tz-handling block.
38490         * tests/test-getdate.c: Tests for the fix
38491
38492 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38493
38494         Recognize 'foo_LIBRARIES += libgnu.a'.
38495         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38496         makefile snippet has already specified an installation location,
38497         also using '+='.
38498
38499 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38500
38501         getdate.y: factor out common actions
38502         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38503         Use them in place of open-coded actions.
38504
38505 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38506
38507         Add self-test for getdate module.
38508         * modules/getdate-tests: New file.
38509         * tests/test-getdate.c: New file.
38510
38511 2008-06-29  Bruno Haible  <bruno@clisp.org>
38512
38513         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38514         .gitignore.
38515         Reported by Sylvain Beucler <beuc@beuc.net>.
38516
38517 2008-06-29  Bruno Haible  <bruno@clisp.org>
38518
38519         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38520         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38521
38522 2008-06-29  Bruno Haible  <bruno@clisp.org>
38523
38524         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38525         EXTRA_DIST.
38526         Reported by Sylvain Beucler <beuc@beuc.net>.
38527
38528 2008-06-26  Jim Meyering  <meyering@redhat.com>
38529
38530         make several modules depend on the "open" module
38531         This provides slightly increased consistency when opening-for-write
38532         the name of a non-directory spelled with a trailing slash.
38533         * modules/chdir-safer: Likewise.
38534         * modules/chown: Likewise.
38535         * modules/clean-temp: Likewise.
38536         * modules/copy-file: Likewise.
38537         * modules/fchdir: Likewise.
38538         * modules/fcntl-safer: Likewise.
38539         * modules/pipe: Likewise.
38540         * modules/utime: Likewise.
38541         Prompted by Eric Blake and Bruno Haible.
38542
38543 2008-06-24  Andreas Schwab  <schwab@suse.de>
38544
38545         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38546         literals can be used as initializers for global variables.
38547
38548 2008-06-23  Eric Blake  <ebb9@byu.net>
38549
38550         Make gnulib-cache.m4 easier to diff.
38551         * gnulib-tool (func_import): Allow newlines when reading cached
38552         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38553
38554 2008-06-23  Bruno Haible  <bruno@clisp.org>
38555
38556         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38557         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38558         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38559         m4/signalblocking.m4.
38560         (gl_PREREQ_SIGACTION): Don't invoke it.
38561         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38562         gl_PREREQ_SIG_HANDLER_H.
38563         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38564         Don't check for sigaction here.
38565
38566 2008-06-23  Bruno Haible  <bruno@clisp.org>
38567
38568         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38569         (install_handlers): Don't set the SA_RESETHAND flag.
38570
38571 2008-06-23  Bruno Haible  <bruno@clisp.org>
38572
38573         * m4/sigaction.m4: Comment fixes.
38574         * lib/signal.in.h: Likewise.
38575
38576 2008-06-23  Eric Blake  <ebb9@byu.net>
38577
38578         Fix typo.
38579         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38580
38581         Avoid SA_ namespace.
38582         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38583         Reported by Ralf Wildenhues.
38584
38585         Avoid test failure due to SA_RESTORER.
38586         * tests/test-sigaction.c (SA_MASK): New macro.
38587         (main): Avoid failing due to extension flags being set.
38588         Reported by Jim Meyering.
38589
38590         Revert use of sig-handler.h in sigprocmask.c.
38591         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38592         it requires the existence of struct sigaction.
38593         * lib/sigprocmask.c (handler_t): Restore typedef.
38594         (rpl_signal, old_handlers): Use local type.
38595
38596 2008-06-22  Bruno Haible  <bruno@clisp.org>
38597
38598         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38599         conditionally.
38600         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38601
38602 2008-06-22  Bruno Haible  <bruno@clisp.org>
38603
38604         * doc/posix-functions/siginterrupt.texi: Move note.
38605
38606         * lib/signal.in.h (SA_RESTART): New macro.
38607         * lib/sigaction.c: Update comment.
38608
38609         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38610
38611         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38612         (gl_PREREQ_SIGPROCMASK): Invoke it.
38613         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38614
38615         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38616
38617         * lib/sigprocmask.c: Update a comment.
38618
38619 2008-06-21  Eric Blake  <ebb9@byu.net>
38620
38621         Use sigaction module rather than signal().
38622         * modules/c-stack (Depends-on): Add sigaction.
38623         * modules/fatal-signal (Depends-on): Likewise.
38624         * modules/nanosleep (Depends-on): Likewise.
38625         * modules/sigprocmask (Files): Add sig-handler.h.
38626         * modules/sigaction (Files): Likewise.
38627         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38628         Eggert.
38629         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38630         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38631         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38632         (init_fatal_signals): Likewise.
38633         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38634         (siginterrupt): Delete fallback.
38635         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38636         instead.
38637         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38638         siginterrupt.
38639
38640         New module sigaction, for mingw.
38641         * modules/sigaction: New module...
38642         * modules/sigaction-tests: ...and its test.
38643         * m4/sigaction.m4: New file.
38644         * lib/sigaction.c: Likewise.
38645         * tests/test-sigaction.c: Likewise.
38646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38647         * modules/signal (Makefile.am): Likewise.
38648         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38649         needed.
38650         * doc/posix-headers/signal.texi (signal.h): Mention provided
38651         types.
38652         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38653         that sigaction is preferable.
38654         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38655         module.
38656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38657         sigaction.
38658
38659         Improve robustness of sigprocmask by overriding signal.
38660         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38661         is in use.
38662         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38663         (SIGKILL, SIGSTOP): Provide fallbacks.
38664         (rpl_signal): Implement.
38665         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38666         signal can be called inside handlers.
38667
38668         Fix nanosleep module on mingw.
38669         * modules/nanosleep (Depends-on): Add sys_select.
38670         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38671
38672         Fix licensing of sigprocmask.
38673         * modules/raise (License): Relicense as LGPL.
38674
38675 2008-06-21  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38678         result if it contains question marks.
38679         Reported by Michael Geng <linux@michaelgeng.de>.
38680
38681 2008-06-19  Bruno Haible  <bruno@clisp.org>
38682
38683         Fix CVS-ism.
38684         * doc/gnulib.texi: Include updated-stamp.texi.
38685         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38686         (updated-stamp.texi): New rule.
38687         (gnulib.info): Depend on it.
38688         * doc/.gitignore: Add updated-stamp.texi.
38689         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38690
38691 2008-06-19  Bruno Haible  <bruno@clisp.org>
38692
38693         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38694         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38695
38696 2008-06-19  Eric Blake  <ebb9@byu.net>
38697
38698         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38699         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38700         Reported by Stepan Kasal.
38701
38702 2008-06-18  Bruno Haible  <bruno@clisp.org>
38703
38704         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38705         Reported by Eric Blake.
38706
38707 2008-06-18  Eric Blake  <ebb9@byu.net>
38708
38709         Work around cygwin 1.5.25 strsignal bug.
38710         * tests/test-strsignal.c: Allow for const char *.
38711         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38712
38713 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38714
38715         * users.txt: Update URL to article and add author/date
38716         information.
38717
38718 2008-06-17  Bruno Haible  <bruno@clisp.org>
38719
38720         New macro gl_DISABLE_THREADS.
38721         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38722         if the user did not pass --enable-threads or --disable-threads option.
38723         (gl_DISABLE_THREADS): New macro.
38724         Reported by Eric Blake <ebb9@byu.net>.
38725
38726 2008-06-17  Bruno Haible  <bruno@clisp.org>
38727
38728         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38729         when the macro ignores it.
38730         Based on a patch by Eric Blake <ebb9@byu.net>.
38731
38732 2008-06-17  Bruno Haible  <bruno@clisp.org>
38733
38734         * modules/tls (License): Change to LGPLv2+.
38735         Reported by Eric Blake.
38736
38737 2008-06-17  Eric Blake  <ebb9@byu.net>
38738
38739         Simplify c-stack prerequisites.
38740         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38742         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38743         check.
38744         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38745         <sys/resource.h>.
38746
38747         Move c-stack test into testsuite.
38748         * modules/c-stack-tests: New file.
38749         * lib/c-stack.c [DEBUG]: Move test program...
38750         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38751         fail test if sigaltstack is lacking.
38752         * tests/test-c-stack.sh: New driver file.
38753
38754 2008-06-16  Eric Blake  <ebb9@byu.net>
38755
38756         Use raise module consistently.
38757         * modules/fatal-signal (Depends-on): Add raise.
38758         * modules/sigprocmask (Depends-on): Likewise.
38759         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38760         * lib/sigprocmask.c (sigprocmask): Likewise.
38761         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38762         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38763
38764         Fix compliance bug in sigpending.
38765         * lib/sigprocmask.c (sigpending): Return pending array via
38766         parameter, not return value.
38767
38768 2008-06-14  Eric Blake  <ebb9@byu.net>
38769
38770         Improve obstack-printf test code.
38771         * tests/test-obstack-printf.c (test_function): Fix comment, and
38772         simplify usage of obstack_* in macros.  Add a test for coverage.
38773         Reported by Bruno Haible.
38774
38775 2008-06-14  Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38778         array size as a constant, not as a const variable.
38779         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38780         AC_USE_SYSTEM_EXTENSIONS.
38781         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38782         Test whether the obstack_printf function actually exists.
38783         * modules/obstack-printf (Depends-on): Add extensions.
38784         (Include): Remove obstack.h.
38785         * modules/obstack-printf-posix (Depends-on): Add extensions.
38786         (Include): Remove obstack.h.
38787
38788 2008-06-13  Eric Blake  <ebb9@byu.net>
38789
38790         Add obstack-printf and obstack-printf-posix modules.
38791         * modules/obstack-printf: New file.
38792         * modules/obstack-printf-posix: Likewise.
38793         * MODULES.html.sh (Misc): Mention them.
38794         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38795         Likewise.
38796         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38797         Likewise.
38798         * modules/stdio (Makefile.am): Accomodate new modules.
38799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38800         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38801         Declare.
38802         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38803         functions.
38804         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38805         (gl_REPLACE_OBSTACK_PRINTF): New macros
38806         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38807         * tests/test-obstack-printf.c: New file.
38808         * modules/obstack-printf-tests: Likewise.
38809         * modules/obstack-printf-posix-tests: Likewise.
38810
38811 2008-06-11  Bruno Haible  <bruno@clisp.org>
38812
38813         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38814         * lib/open.c: Include errno.h.
38815         (open): Fail when attempting to write to a file that has a trailing
38816         slash.
38817         * tests/test-open.c (main): Test against trailing slash bug.
38818         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38819
38820 2008-06-10  Bruno Haible  <bruno@clisp.org>
38821
38822         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38823         for $? to work inside the trap command, with various /bin/sh-s.
38824         * tests/test-vc-list-files-cvs.sh: Likewise.
38825
38826 2008-06-10  Bruno Haible  <bruno@clisp.org>
38827
38828         * lib/acl-internal.h: Don't include gettext.h here.
38829         * lib/set-mode-acl.c: Include gettext.h here.
38830         * lib/copy-acl.c: Likewise.
38831
38832 2008-06-10  Bruno Haible  <bruno@clisp.org>
38833
38834         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38835         * lib/wait-process.c (wait_subprocess): Likewise.
38836         * lib/execute.h (execute): Add termsigp argument.
38837         * lib/execute.c (execute): Likewise.
38838         * lib/csharpcomp.c (compile_csharp_using_pnet,
38839         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38840         * lib/csharpexec.c (execute_csharp_using_pnet,
38841         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38842         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38843         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38844         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38845         is_jikes_present): Update.
38846         * lib/javaexec.c (execute_java_class): Update.
38847         * lib/javaversion.c (execute_and_read_line): Update.
38848         * NEWS: Document the changes.
38849         Reported by Eric Blake.
38850
38851 2008-06-10  Eric Blake  <ebb9@byu.net>
38852
38853         Add missing include.
38854         * tests/test-strstr.c (includes): Add <signal.h>.
38855         * tests/test-strcasestr.c (includes): Likewise.
38856         * tests/test-memmem.c (includes): Likewise.
38857
38858 2008-06-10  Bruno Haible  <bruno@clisp.org>
38859
38860         * lib/wait-process.c (wait_subprocess): Add an assertion.
38861
38862 2008-06-10  Bruno Haible  <bruno@clisp.org>
38863
38864         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38865
38866 2008-06-10  Bruno Haible  <bruno@clisp.org>
38867
38868         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38869         using alarm().
38870         * tests/test-strcasestr.c (main): Likewise.
38871         * tests/test-strstr.c (main): Likewise.
38872
38873 2008-06-09  Bruno Haible  <bruno@clisp.org>
38874
38875         Work around the Solaris 10 ACE ACLs ABI change.
38876         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38877         declare if ACL_NO_TRIVIAL is present.
38878         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38879         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38880         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38881         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38882         define if ACL_NO_TRIVIAL is present.
38883         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38884         and use the current ABI.
38885         (file_has_acl): Use same #if condition as elsewhere.
38886         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38887         in use, and use the current ABI.
38888         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38889         Reported by Jim Meyering.
38890
38891 2008-06-09  Eric Blake  <ebb9@byu.net>
38892
38893         Work around environments that (stupidly) ignore SIGALRM.
38894         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38895         before using alarm().
38896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38898         Reported by Ian Beckwith <ianb@erislabs.net>.
38899
38900         Produce autobuild blurb earlier in log.
38901         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38902
38903 2008-06-09  Jim Meyering  <meyering@redhat.com>
38904         and OndÅ™ej Vašík  <ovasik@redhat.com>
38905
38906         utimens.c: correct kernel bug work-around
38907         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38908         failure, not success, and the kernel bug we're trying to work
38909         around affects not just the utimensat call, but also the fallback
38910         futimens call.
38911         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38912         not success.
38913         [HAVE_FUTIMENS]: Use the same work-around, here.
38914
38915 2008-06-09  Jim Meyering  <meyering@redhat.com>
38916
38917         add more guards around definition of ACE_-related code
38918         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38919         ALLOW and ACE_OWNER are also defined.
38920
38921 2008-06-08  Bruno Haible  <bruno@clisp.org>
38922
38923         * lib/acl-internal.h: Add me as co-author.
38924         * lib/file-has-acl.c: Likewise.
38925         * lib/set-mode-acl.c: Likewise.
38926         * lib/copy-acl.c: Likewise.
38927
38928 2008-06-08  Bruno Haible  <bruno@clisp.org>
38929
38930         Add support for AIX ACLs.
38931         * lib/acl-internal.h (acl_nontrivial): New declaration.
38932         * lib/file-has-acl.c (acl_nontrivial): New function.
38933         (file_has_acl): Add implementation using AIX 4 ACL API.
38934         * lib/set-mode-acl.c (qset_acl): Likewise.
38935         * lib/copy-acl.c (qcopy_acl): Likewise.
38936
38937 2008-06-08  Bruno Haible  <bruno@clisp.org>
38938
38939         Add support for HP-UX ACLs.
38940         * lib/acl-internal.h (acl_nontrivial): New declaration.
38941         * lib/file-has-acl.c (acl_nontrivial): New function.
38942         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38943         * lib/set-mode-acl.c (qset_acl): Likewise.
38944         * lib/copy-acl.c (qcopy_acl): Likewise.
38945
38946 2008-06-08  Bruno Haible  <bruno@clisp.org>
38947
38948         Add support for Cygwin ACLs.
38949         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38950         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38951         the chmod_or_fchmod call.
38952         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38953
38954 2008-06-08  Bruno Haible  <bruno@clisp.org>
38955
38956         Fix bug with setuid modes in Solaris 10+ code.
38957         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38958         succeeded, when the mode contains some special bits.
38959
38960 2008-06-08  Bruno Haible  <bruno@clisp.org>
38961
38962         Add support for Solaris 7..10 ACLs.
38963         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38964         declarations.
38965         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38966         functions.
38967         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38968         * lib/set-mode-acl.c (qset_acl): Likewise.
38969         * lib/copy-acl.c (qcopy_acl): Likewise.
38970
38971 2008-06-08  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38974         declaration.
38975         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38976         (acl_access_nontrivial): Remove MacOS X case.
38977         (file_has_acl): Use acl_extended_nontrivial.
38978         * lib/copy-acl.c (qcopy_acl): Likewise.
38979
38980 2008-06-08  Bruno Haible  <bruno@clisp.org>
38981
38982         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38983
38984 2008-06-08  Jim Meyering  <meyering@redhat.com>
38985
38986         * modules/acl (Maintainer): Add Bruno Haible.
38987
38988 2008-06-07  Bruno Haible  <bruno@clisp.org>
38989
38990         Improve support for Tru64 ACLs.
38991         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38992         ACL on OSF/1.
38993
38994 2008-06-07  Bruno Haible  <bruno@clisp.org>
38995
38996         Add support for MacOS X ACLs.
38997         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38998         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38999         * lib/set-mode-acl.c (qset_acl): Likewise.
39000         * lib/copy-acl.c (qcopy_acl): Likewise.
39001
39002 2008-06-07  Bruno Haible  <bruno@clisp.org>
39003
39004         Fix memory leak introduced on 2008-05-22.
39005         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39006         use.
39007
39008 2008-06-07  Bruno Haible  <bruno@clisp.org>
39009
39010         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39011         to construct an empty ACL.
39012
39013 2008-06-07  Bruno Haible  <bruno@clisp.org>
39014
39015         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39016         precisely.
39017         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39018
39019 2008-06-07  Bruno Haible  <bruno@clisp.org>
39020
39021         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39022         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39023
39024 2008-06-07  Bruno Haible  <bruno@clisp.org>
39025
39026         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39027         regardless of POSIX.
39028         * doc/posix-functions/_longjmp.texi: Likewise.
39029         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39030         SystemV platform in this case.
39031
39032 2008-06-06  Eric Blake  <ebb9@byu.net>
39033
39034         Document abort() bugs.
39035         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39036
39037         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39038         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39039         sigsetjmp.
39040         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39041         siglongjmp, but only as a macro.
39042         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39043         is obsolete.
39044         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39045
39046         Tweak documentation to cover cygwin argz bugs.
39047         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39048         argz bug fix; no code change needed since no cygwin releases
39049         occurred between the last fix and the bug being tested.
39050         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39051         module and recently fixed cygwin bugs.
39052         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39053         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39054         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39055         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39056         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39057         Likewise.
39058         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39059         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39060         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39061         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39062         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39063         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39064         Likewise.
39065
39066         Avoid gcc warning on cygwin.
39067         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39068         !ACL_NO_TRIVIAL]: Avoid unused variable.
39069
39070 2008-06-05  Eric Blake  <ebb9@byu.net>
39071
39072         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39073         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39074         git-version-gen fails to come up with a version.
39075         Reported by Simon Josefsson.
39076
39077 2008-06-05  Jim Meyering  <meyering@redhat.com>
39078             Paul Eggert  <eggert@cs.ucla.edu>
39079
39080         utimens.c: work around a probable Linux kernel bug
39081         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39082         appears to be a kernel bug that causes utimensat to return 280
39083         instead of 0, indicating success.
39084
39085 2008-06-04  Bruno Haible  <bruno@clisp.org>
39086
39087         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39088         2008-06-01 commit.
39089
39090 2008-06-04  Bruno Haible  <bruno@clisp.org>
39091
39092         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39093         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39094         (file_has_acl): Use it. Save errno afterwards.
39095         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39096
39097 2008-06-03  Bruno Haible  <bruno@clisp.org>
39098
39099         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39100         draft code. Simplify #ifs.
39101         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39102         Put Solaris code after POSIX-draft code. Fix comments regarding
39103         Solaris 10, HP-UX. Mention Cygwin.
39104         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39105
39106 2008-06-03  Eric Blake  <ebb9@byu.net>
39107
39108         Provide fallback for older kernels.
39109         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39110         Provide runtime fallback if kernel lacks support.
39111         Reported by Mike Frysinger.
39112
39113 2008-06-02  Bruno Haible  <bruno@clisp.org>
39114
39115         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39116         it exists.
39117
39118 2008-06-02  Bruno Haible  <bruno@clisp.org>
39119
39120         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39121         * lib/copy-acl.c (qcopy_acl): Update comment.
39122
39123 2008-06-02  Bruno Haible  <bruno@clisp.org>
39124
39125         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39126         like ACL APIs.
39127
39128 2008-06-02  Bruno Haible  <bruno@clisp.org>
39129
39130         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39131         * tests/test-set-mode-acl.sh: Likewise.
39132         * tests/test-copy-acl.sh: Likewise.
39133         * tests/test-copy-file.sh: Likewise.
39134
39135 2008-06-02  Bruno Haible  <bruno@clisp.org>
39136
39137         * tests/test-file-has-acl.sh: Remove unused code.
39138
39139 2008-06-01  Bruno Haible  <bruno@clisp.org>
39140
39141         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39142         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39143         messages.
39144         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39145
39146 2008-06-01  Bruno Haible  <bruno@clisp.org>
39147
39148         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39149         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39150         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39151         APIs.
39152         * modules/acl-tests (configure.ac): Remove tests now contained in
39153         m4/acl.m4.
39154
39155 2008-06-02  Jim Meyering  <meyering@redhat.com>
39156
39157         announce-gen: use a better key-server host name
39158         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39159         it may be more consistently reliable.  Suggested by Werner Koch
39160         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39161
39162 2008-06-01  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39165         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39166
39167 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39168
39169         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39170
39171 2008-06-01  Bruno Haible  <bruno@clisp.org>
39172
39173         New ACL tests.
39174         * tests/test-file-has-acl.sh: New file.
39175         * tests/test-file-has-acl.c: New file.
39176         * tests/test-set-mode-acl.sh: New file.
39177         * tests/test-set-mode-acl.c: New file.
39178         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39179         * tests/test-copy-acl.c: New file.
39180         * modules/acl-tests: New file, based on modules/copy-file-tests.
39181         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39182         (Depends-on): Add acl-tests.
39183         (configure.ac): Remove checks.
39184         (Makefile.am): Don't create test-sameacls program here any more.
39185
39186 2008-06-01  Bruno Haible  <bruno@clisp.org>
39187
39188         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39189         * tests/test-sameacls.c: Include progname.h.
39190         (main): Invoke set_program_name. Portability fixes for MacOS X,
39191         Solaris, HP-UX.
39192
39193 2008-06-01  Bruno Haible  <bruno@clisp.org>
39194
39195         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39196         function.
39197         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39198
39199 2008-06-01  Bruno Haible  <bruno@clisp.org>
39200
39201         * modules/rpmatch (Depends-on): Add strdup.
39202
39203 2008-06-01  Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/pipe.c: Include unistd-safer.h.
39206         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39207         * modules/pipe (Depends-on): Add unistd-safer.
39208
39209 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39210
39211         * modules/autobuild (configure.ac): Call AB_INIT.
39212
39213 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39214
39215         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39216         Suggested by Bruno Haible <bruno@clisp.org>.
39217
39218 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39219
39220         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39221         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39222         <bruno@clisp.org>.
39223
39224 2008-05-29  Eric Blake  <ebb9@byu.net>
39225
39226         Prefer new POSIX 200x interfaces over futimesat.
39227         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39228         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39229         when available.
39230         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39231
39232 2008-05-28  Bruno Haible  <bruno@clisp.org>
39233
39234         * modules/stpcpy (License): Change to LGPLv2+.
39235         Requested by David Lutterkort <dlutter@redhat.com>.
39236
39237 2008-05-27  Bruno Haible  <bruno@clisp.org>
39238
39239         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39240         current mingw.
39241         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39242
39243 2008-05-27  Bruno Haible  <bruno@clisp.org>
39244
39245         * modules/iconv_open (Link): New section, from module 'iconv'.
39246         * modules/striconv (Link): Likewise.
39247         * modules/striconveh (Link): Likewise.
39248         * modules/xstriconv (Link): Likewise.
39249         * modules/unicodeio (Link): Likewise.
39250         * modules/propername (Link): Likewise.
39251         Reported by Jim Meyering.
39252
39253 2008-05-26  Jim Meyering  <meyering@redhat.com>
39254
39255         sha256: do not artificially restrict buffer length to be < 2^32
39256         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39257         uint32_t to size_t.
39258         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39259         to match.
39260
39261         avoid unaligned access errors, e.g., on sparc
39262         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39263         direct access through a possibly-unaligned uint64* pointer.
39264         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39265         direct access through a possibly-unaligned uint32* pointer.
39266         Prompted by this patch from Tom "spot" Callaway:
39267         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39268
39269         sha512.c: fix typo in comment
39270         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39271
39272 2008-05-25  Bruno Haible  <bruno@clisp.org>
39273
39274         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39275         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39276         (Makefile.am): Update lib_SOURCES.
39277
39278 2008-05-25  Bruno Haible  <bruno@clisp.org>
39279
39280         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39281
39282 2008-05-25  Jim Meyering  <meyering@redhat.com>
39283
39284         useless-if-before-free: freed expr may have white-space differences
39285         * build-aux/useless-if-before-free: Recognize cases in which the
39286         freed expression differs from the tested one in embedded white
39287         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39288         $1 was used, so we can't make any regexp shy.  Improved tests now
39289         detect this.
39290
39291         useless-if-before-free: accept white space in the expression.
39292         * build-aux/useless-if-before-free: For now, any white space
39293         in the expression must be identical in the free argument.
39294
39295         useless-if-before-free: efficiency tweak
39296         * build-aux/useless-if-before-free: Make the expression-matching
39297         regexp "shy".
39298         Make the *outer* regexp shy, not the expr-matching one.
39299
39300         update code-in-comment to accept cast of free arg
39301         * build-aux/useless-if-before-free: Update regexp.
39302
39303 2008-05-25  Bruno Haible  <bruno@clisp.org>
39304
39305         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39306         * modules/copy-file-tests (Files, Makefile.am): Update.
39307         * tests/test-copy-file.c (func_test_copy): Update.
39308
39309 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39310
39311         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39312
39313 2008-05-23  Bruno Haible  <bruno@clisp.org>
39314
39315         Improve support for ACLs on OSF/1.
39316         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39317         Remove fallback for unknown flavors of ACLs.
39318
39319 2008-05-22  Bruno Haible  <bruno@clisp.org>
39320
39321         Add support for ACLs on OSF/1.
39322         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39323         replacements.
39324         (acl_free_text): New macro fallback.
39325         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39326         acl_free.
39327         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39328         acl_free_text function. Require AC_C_INLINE.
39329
39330 2008-05-22  Bruno Haible  <bruno@clisp.org>
39331
39332         Make copy_acl work on MacOS X 10.5.
39333         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39334         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39335         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39336         If MODE_INSIDE_ACL, don't assume that every system has the same text
39337         representation for ACLs as FreeBSD.
39338         * lib/copy-acl.c (copy_acl): Add support for platforms with
39339         !MODE_INSIDE_ACL.
39340         * lib/file-has-acl.c (file_has_acl): Likewise.
39341         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39342         FreeBSD, MacOS X, or IRIX, respectively.
39343
39344 2008-05-22  Bruno Haible  <bruno@clisp.org>
39345
39346         * lib/acl.h: Don't include <sys/acl.h>.
39347         (GETACLCNT): Move fallback to lib/acl-internal.h.
39348         * lib/acl-internal.h: Include <sys/acl.h> here.
39349         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39350
39351 2008-05-22  Bruno Haible  <bruno@clisp.org>
39352
39353         Split off copy_acl function to separate file.
39354         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39355         * lib/acl.c (copy_acl): Moved function to separate file.
39356         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39357         * modules/acl (Files): Add lib/copy-acl.c.
39358         (Makefiles.am): Augment lib_SOURCES.
39359
39360 2008-05-22  Bruno Haible  <bruno@clisp.org>
39361
39362         * modules/copy-file-tests: New file.
39363         * tests/test-copy-file.sh: New file.
39364         * tests/test-copy-file.c: New file.
39365         * tests/test-copy-file-sameacls.c: New file.
39366
39367 2008-05-22  Eric Blake  <ebb9@byu.net>
39368
39369         Avoid gcc warning.
39370         * tests/test-memcmp.c (main): Pass NULL indirectly.
39371
39372 2008-05-21  Bruno Haible  <bruno@clisp.org>
39373
39374         Add reference doc about ACLs.
39375         * doc/acl-resources.txt: New file.
39376         * doc/acl-cygwin.txt: New file.
39377
39378 2008-05-21  Bruno Haible  <bruno@clisp.org>
39379
39380         Avoid one more warning from gcc.
39381         * lib/vasnprintf.c (IF_LINT): Update comments.
39382         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39383
39384 2008-05-21  Jim Meyering  <meyering@redhat.com>
39385
39386         avoid a warning from gcc
39387         * lib/vasnprintf.c (IF_LINT): Define.
39388         (scale10_round_decimal_long_double):
39389         Use it to avoid a "may be used uninitialized" warning.
39390         (scale10_round_decimal_double): Likewise.
39391
39392 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39393
39394         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39395         declared.
39396
39397 2008-05-20  Bruno Haible  <bruno@clisp.org>
39398
39399         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39400         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39401
39402 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39403
39404         * modules/memcmp-tests: New file.
39405         * tests/test-memcmp.c: New file.
39406
39407 2008-05-19  Bruno Haible  <bruno@clisp.org>
39408
39409         * modules/propername (Notice, configure.ac): Put quoted "..." into
39410         --keyword option.
39411         * lib/propername.h: Update comments accordingly.
39412         Reported by Eric Blake.
39413
39414 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39415
39416         * modules/getpass-gnu (Depends-on): Add fseeko.
39417
39418 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39419
39420         * modules/base64-tests: New file.
39421
39422 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39423
39424         * lib/base64.c (base64_decode_ctx): If a decode context structure
39425         was passed in use it to ignore newlines.  If a context structure
39426         was _not_ passed in, continue to treat newlines as garbage (this
39427         is the historical behavior).  Formerly base64_decode.
39428         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39429         takes a decode context structure.
39430         * lib/base64.h (base64_decode): Macro for four-argument calls.
39431         (base64_decode_alloc): Likewise.
39432         * lib/base64.c (base64_decode_ctx): If a decode context structure
39433         was passed in use it to ignore newlines.  If a context structure
39434         was _not_ passed in, continue to treat newlines as garbage (this
39435         is the historical behavior).  Formerly base64_decode.
39436         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39437         takes a decode context structure.
39438         * lib/base64.h (base64_decode): Macro for four-argument calls.
39439         (base64_decode_alloc): Likewise.
39440
39441 2008-05-19  Jim Meyering  <meyering@redhat.com>
39442
39443         avoid a warning from gcc
39444         * lib/trim.c (IF_LINT): Define.
39445         (trim2): Use it to avoid a "may be used uninitialized" warning.
39446
39447         Fix doc typo.
39448         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39449
39450 2008-05-19  Bruno Haible  <bruno@clisp.org>
39451
39452         * doc/glibc-functions/getpass.texi: Document limits of other
39453         implementations.
39454
39455 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39456             Bruno Haible <bruno@clisp.org>
39457
39458         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39459
39460 2008-05-18  Bruno Haible  <bruno@clisp.org>
39461
39462         * modules/propername: New file, from GNU gettext.
39463         * lib/propername.h: New file, from GNU gettext.
39464         * lib/propername.c: New file, from GNU gettext.
39465         * MODULES.html.sh (Internationalization functions): Add propername.
39466
39467 2008-05-16  Jim Meyering  <meyering@redhat.com>
39468             Bruno Haible  <bruno@clisp.org>
39469
39470         Avoid some warnings from "gcc -Wshadow".
39471         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39472
39473 2008-05-15  Eric Blake  <ebb9@byu.net>
39474
39475         Extend previous patch to cygwin 1.7.0.
39476         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39477         fast implementation in cygwin >= 1.7.0.
39478         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39480
39481 2008-05-15  Bruno Haible  <bruno@clisp.org>
39482
39483         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39484         implementation in glibc >= 2.9.
39485         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39487
39488 2008-05-15  Bruno Haible  <bruno@clisp.org>
39489
39490         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39491         (Unicode string functions): Add unilbrk/*.
39492         Reported by Karl Berry.
39493
39494 2008-05-15  Eric Blake  <ebb9@byu.net>
39495
39496         Fix violation of <stdbool.h> replacement in regex.
39497         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39498         * lib/regexec.c (re_search_internal): Likewise.
39499         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39500
39501 2008-05-15  Jim Meyering  <meyering@redhat.com>
39502
39503         avoid distracting test output when git or cvs is not found
39504         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39505         * tests/test-vc-list-files-git.sh: Likewise.
39506
39507 2008-05-15  Eric Blake  <ebb9@byu.net>
39508
39509         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39510         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39511         glibc version.
39512         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39513         * doc/posix-functions/strstr.texi (strstr): Likewise.
39514         * lib/str-two-way.h (MAX): Sychronize with glibc.
39515
39516 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39517
39518         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39519         opr.ctx_type.
39520         (calc_first): Initialize constraint field.
39521         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39522         Fix grammar.
39523         (duplicate_node): Merge constraint field for all node types.
39524         (calc_eclosure_iter): Look at constraint field for all node types.
39525         * lib/regex_internal.c (create_cd_newstate): Don't look at
39526         opr.ctx_type.
39527
39528 2008-05-14  Bruno Haible  <bruno@clisp.org>
39529
39530         Help GCC to do better code generation.
39531         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39532         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39533         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39534         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39535         Declare with attribute 'malloc' if supported.
39536
39537 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39538
39539         use "echo STR|wc -c" rather than unportable "expr length STR"
39540         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39541         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39542
39543 2008-05-14  Jim Meyering  <meyering@redhat.com>
39544
39545         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39546         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39547         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39548         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39549         via Collin Lasse.
39550
39551 2008-05-14  Eric Blake  <ebb9@byu.net>
39552
39553         Avoid quadratic growth in gl_LIBSOURCES.
39554         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39555         Suggested by Bruno Haible.
39556
39557         Test xmemdup0.
39558         * modules/xmemdup0-tests: New file.
39559         * tests/test-xmemdup0.c: Likewise.
39560
39561 2008-05-13  Eric Blake  <ebb9@byu.net>
39562
39563         Split xmemdup0 into its own module.
39564         * modules/xmemdup0: New file.
39565         * lib/xmemdup0.h: Likewise.
39566         * lib/xmemdup0.c: Likewise.
39567         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39568         * lib/xalloc.h (xmemdup0): Remove.
39569         * lib/xmalloc.c (xmemdup0): Likewise.
39570
39571 2008-05-13  Eric Blake  <ebb9@byu.net>
39572             Bruno Haible  <bruno@clisp.org>
39573
39574         Reduce number of forks required during autoconf.
39575         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39576         and gl_LIBSOURCES_DIR.
39577         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39578         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39579         m4_syscmd per file.
39580         <m4_foreach_w>: Move...
39581         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39582
39583 2008-05-13  Eric Blake  <ebb9@byu.net>
39584
39585         * gnulib-tool: Fix various comment typos.
39586
39587 2008-05-12  Bruno Haible  <bruno@clisp.org>
39588
39589         Tailor the linebreaking algorithm.
39590         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39591
39592 2008-05-12  Bruno Haible  <bruno@clisp.org>
39593
39594         Update to Unicode 5.0.0.
39595         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39596         LBP_JV, LBP_JT. Redistribute values.
39597         (unilbrk_table): Change size.
39598         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39599         Unicode TR#14 rev. 22.
39600         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39601         LBP_JV, LBP_JT. Redistribute values.
39602         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39603         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39604         Update.
39605         * lib/unilbrk/lbrkprop1.h: Regenerated.
39606         * lib/unilbrk/lbrkprop2.h: Regenerated.
39607         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39608         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39609         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39610         Likewise.
39611         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39612         Likewise.
39613         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39614         result.
39615         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39616         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39617         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39618         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39619         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39620         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39621
39622 2008-05-11  Bruno Haible  <bruno@clisp.org>
39623
39624         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39625
39626 2008-05-11  Bruno Haible  <bruno@clisp.org>
39627
39628         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39629         * modules/unilbrk/gen-lbrk: New file.
39630
39631 2008-05-11  Bruno Haible  <bruno@clisp.org>
39632
39633         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39634         * m4/sha512.m4 (gl_SHA512): Likewise.
39635
39636 2008-05-11  Jim Meyering  <meyering@redhat.com>
39637
39638         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39639         * modules/crypto/sha256: New file.
39640         * modules/crypto/sha512: Likewise.
39641         * lib/sha256.c: Likewise.
39642         * lib/sha256.h: Likewise.
39643         * lib/sha512.c: Likewise.
39644         * lib/sha512.h: Likewise.
39645         * lib/u64.h: Likewise.
39646         * m4/sha256.m4: Likewise.
39647         * m4/sha512.m4: Likewise.
39648         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39649
39650 2008-05-10  Bruno Haible  <bruno@clisp.org>
39651
39652         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39653         (Input/Output <stdio.h>): Add xprintf.
39654         (Signal handling <signal.h>): Add strsignal.
39655         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39656         (Core language properties): Add func.
39657         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39658         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39659         strings.
39660         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39661         (Input/output): New section.
39662         (File system functions): Add openat-die, stat-macros.
39663         (Networking functions): Add sockets.
39664         (Unicode string functions): Add unictype/*.
39665         (Support for building libraries and executables): Add gperf.
39666         (Support for building documentation): Add agpl-3.0.
39667         (Misc): Add nocrash.
39668
39669 2008-05-10  Bruno Haible  <bruno@clisp.org>
39670
39671         * modules/unictype/gen-ctype: New file.
39672
39673 2008-05-10  Jim Meyering  <meyering@redhat.com>
39674
39675         Make chdir-safer.c more efficient on a system with no symlinks.
39676         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39677         also if ELOOP is zero.  Suggested by Bruno Haible.
39678
39679         Make chdir-safer.c slightly safer.
39680         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39681         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39682
39683         Avoid compile failure on systems without ELOOP (like mingw).
39684         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39685         Reported by Bruno Haible.
39686
39687 2008-05-10  Bruno Haible  <bruno@clisp.org>
39688
39689         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39690         (is_utf8_encoding): Use a case-insensitive comparison.
39691         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39692         streq.
39693
39694 2008-05-10  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39697         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39698         * lib/unilbrk/ulc-common.h (iconv_string_length,
39699         iconv_string_keeping_offsets): Remove declarations.
39700         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39701         Don't include <iconv.h>, streq.h, xsize.h.
39702         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39703         conversion.
39704         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39705         <iconv.h>, streq.h, xsize.h.
39706         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39707         conversion.
39708         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39709         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39710         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39711         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39712
39713 2008-05-10  Bruno Haible  <bruno@clisp.org>
39714
39715         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39716         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39717
39718         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39719         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39720
39721         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39722         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39723
39724         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39725         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39726
39727         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39728         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39729
39730         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39731         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39732
39733         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39734         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39735
39736         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39737         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39738
39739 2008-05-10  Bruno Haible  <bruno@clisp.org>
39740
39741         Split up 'linebreak' module.
39742         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39743         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39744         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39745         modifications.
39746         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39747         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39748         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39749         lib/linebreak.c.
39750         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39751         lib/linebreak.c.
39752         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39753         lib/linebreak.c.
39754         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39755         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39756         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39757         lib/linebreak.c.
39758         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39759         lib/linebreak.c.
39760         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39761         lib/linebreak.c.
39762         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39763         lib/linebreak.c.
39764         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39765         lib/linebreak.c.
39766         * modules/unilbrk/base: New file.
39767         * modules/unilbrk/tables: New file.
39768         * modules/unilbrk/u8-possible-linebreaks: New file.
39769         * modules/unilbrk/u16-possible-linebreaks: New file.
39770         * modules/unilbrk/u32-possible-linebreaks: New file.
39771         * modules/unilbrk/ulc-common: New file.
39772         * modules/unilbrk/ulc-possible-linebreaks: New file.
39773         * modules/unilbrk/u8-width-linebreaks: New file.
39774         * modules/unilbrk/u16-width-linebreaks: New file.
39775         * modules/unilbrk/u32-width-linebreaks: New file.
39776         * modules/unilbrk/ulc-width-linebreaks: New file.
39777         * lib/linebreak.h: Remove file.
39778         * lib/linebreak.c: Remove file.
39779         * m4/linebreak.m4: Remove file.
39780         * modules/linebreak: Remove file.
39781         * NEWS: Mention the changes.
39782
39783 2008-05-09  Eric Blake  <ebb9@byu.net>
39784
39785         Add xmemdup0.
39786         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39787         implementation.
39788         * lib/xmalloc.c (xmemdup0): New C implementation.
39789
39790 2008-05-08  Bruno Haible  <bruno@clisp.org>
39791
39792         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39793
39794 2008-05-07  Eric Blake  <ebb9@byu.net>
39795
39796         Support cross-compilation of <wctype.h>.
39797         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39798         AC_CACHE_CHECK.
39799
39800 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39801
39802         * build-aux/vc-list-files: Add support for bzr.
39803
39804 2008-05-03  Jim Meyering  <meyering@redhat.com>
39805
39806         avoid failed assertion with tight malloc
39807         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39808
39809 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39810
39811         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39812         are needed from arpa/inet.h.
39813         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39814         Reported by Bruno Haible.
39815
39816 2008-05-02  Jim Meyering  <meyering@redhat.com>
39817
39818         avoid compilation error on FreeBSD 6
39819         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39820
39821 2008-05-01  Jim Meyering  <meyering@redhat.com>
39822
39823         useless-if-before-free: correct --help's exit status description
39824         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39825         for one or more matches, etc.  Reported by Bruno Haible.
39826
39827         vc-list-files: make the stand-alone gnulib test work
39828         * modules/vc-list-files-tests (configure.ac):
39829         Define and AC_SUBST abs_aux_dir.
39830         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39831         $(abs_top_srcdir) to each script and having each of them
39832         duplicate the work of setting PATH, set PATH here, using
39833         the new variable, abs_aux_dir instead.
39834         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39835         * tests/test-vc-list-files-git.sh: Likewise.
39836         Reported by Bruno Haible.
39837
39838 2008-05-01  Bruno Haible  <bruno@clisp.org>
39839
39840         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39841         reallocation. Rename 'done' to 'found_delimiter'.
39842
39843 2008-05-01  Jim Meyering  <meyering@redhat.com>
39844
39845         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39846         * build-aux/vc-list-files: Use `...`, not $(...).
39847
39848 2008-04-30  Jim Meyering  <meyering@redhat.com>
39849
39850         add tests for vc-list-files
39851         * modules/vc-list-files-tests: New module.
39852         * tests/test-vc-list-files-cvs.sh: New file.
39853         * tests/test-vc-list-files-git.sh: New file.
39854
39855         avoid a warning from gcc
39856         * lib/getndelim2.c (IF_LINT): Define.
39857         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39858
39859         vc-list-files: work properly with build-aux/cvsu, too
39860         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39861         to all cvs-based clauses.
39862
39863         vc-list-files: work properly in the CVS+awk case, too
39864         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39865
39866         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39867         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39868         take more than one file argument, so .  Add quotes, just in case $dir
39869         ever contains a shell meta-character.  Prompted by Soren Hansen in
39870         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39871
39872 2008-04-29  Eric Blake  <ebb9@byu.net>
39873
39874         Optimize getndelim2 to use block operations when possible.
39875         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39876         freadseek, and memchr2.
39877         * lib/getndelim2.c (getndelim2): Use them for block reads.
39878
39879 2008-04-29  Bruno Haible  <bruno@clisp.org>
39880
39881         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39882         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39883         * modules/inet_ntop (Depends-on): Add extensions.
39884         * modules/inet_pton (Depends-on): Likewise.
39885         Reported by Simon Josefsson.
39886
39887 2008-04-29  Jim Meyering  <meyering@redhat.com>
39888
39889         When the is more than one match in a block, match all of them.
39890         * build-aux/useless-if-before-free: Iterate through each block
39891         until there are no more matches.
39892
39893         Fix broken useless-if-before-free script.
39894         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39895         the expression to match cast of argument to free-like function.
39896
39897 2008-04-29  Eric Blake  <ebb9@byu.net>
39898
39899         Use new header.
39900         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39901
39902 2008-04-29  Jim Meyering  <meyering@redhat.com>
39903
39904         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39905         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39906         by gnulib to exist and to declare e.g., inet_ntop.
39907         Don't include "inet_ntop.h", now removed.
39908
39909         * m4/arpa_inet_h.m4: Remove trailing blanks.
39910
39911 2008-04-29  Eric Blake  <ebb9@byu.net>
39912
39913         Silence valgrind on safe reads beyond potential array bounds.
39914         * lib/rawmemchr.valgrind: New file.
39915         * lib/strchrnul.valgrind: Likewise.
39916         * modules/rawmemchr (Files): Distribute new file.
39917         * modules/strchrnul (Files): Likewise.
39918         Suggested by Bruno Haible.
39919
39920 2008-04-29  Bruno Haible  <bruno@clisp.org>
39921
39922         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39923         (inet_ntop, inet_pton): Change portability warning's wording.
39924         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39925         Invoke gl_CHECK_NEXT_HEADERS.
39926         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39927         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39928         set ARPA_INET_H.
39929         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39930         * modules/arpa_inet (Description): No longer only for systems that
39931         lack it.
39932         (Depends-on): Add include_next.
39933         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39934         HAVE_ARPA_INET_H.
39935
39936 2008-04-29  Jim Meyering  <meyering@redhat.com>
39937
39938         * modules/mkdir (License): Re-license as LGPLv2+.
39939
39940 2008-04-29  Bruno Haible  <bruno@clisp.org>
39941
39942         * modules/rawmemchr (Maintainer): Set to Eric.
39943         * modules/strchrnul (Maintainer): Likewise.
39944
39945 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39946
39947         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39948         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39949
39950         * modules/arpa_inet (arpa/inet.h): Use them.
39951
39952 2008-04-28  Eric Blake  <ebb9@byu.net>
39953
39954         Test getndelim2.
39955         * modules/getndelim2-tests: New file.
39956         * tests/test-getndelim2.c: Likewise.
39957         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39958         stream.
39959         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39960
39961         * MODULES.html.sh: Document new module.
39962
39963 2008-04-20  Bruno Haible  <bruno@clisp.org>
39964
39965         * lib/c-stack.c (die): Use raise.
39966         * modules/c-stack (Depends-on): Add raise.
39967
39968 2008-04-28  Bruno Haible  <bruno@clisp.org>
39969
39970         Expect rpmatch to be declared.
39971         * lib/yesno.c (rpmatch): Remove declaration.
39972
39973         Declare rpmatch.
39974         * lib/stdlib.in.h (rpmatch): New declaration.
39975         * lib/rpmatch.c: Include <stdlib.h> first.
39976         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39977         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39979         HAVE_RPMATCH.
39980         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39981         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39982         (Include): Set to <stdlib.h>.
39983         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39984         HAVE_RPMATCH.
39985         * NEWS: Document the change.
39986
39987 2008-04-28  Bruno Haible  <bruno@clisp.org>
39988
39989         Change rpmatch to use nl_langinfo when appropriate.
39990         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39991         (N_): New macro.
39992         (localized_pattern): New function/macro.
39993         (try): Remove match, nomatch arguments. Copy the pattern into safe
39994         memory before caching it.
39995         (rpmatch): Use localized_pattern. Add translator comments.
39996         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39997         Suggested by Eric Blake.
39998         * modules/rpmatch (Depends-on): Add stdbool.
39999
40000 2008-04-28  Eric Blake  <ebb9@byu.net>
40001
40002         Add rawmemchr module, matching glibc.
40003         * modules/string (Makefile.am): New indicator.
40004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40005         * lib/string.in.h (rawmemchr): Declare when appropriate.
40006         * modules/rawmemchr: New file.
40007         * m4/rawmemchr.m4: Likewise.
40008         * lib/rawmemchr.c: Likewise.
40009         * modules/rawmemchr-tests: Likewise.
40010         * tests/test-rawmemchr.c: Likewise.
40011         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40012         module.
40013         * modules/strchrnul (Depends-on): Add rawmemchr.
40014         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40015
40016         Whitespace cleanup.
40017         * tests/test-strchrnul.c: Reindent.
40018         * lib/strchrnul.c: Likewise.
40019
40020         Optimize and test strchrnul.
40021         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40022         * modules/strchrnul-tests: New file.
40023         * tests/test-strchrnul.c: Likewise.
40024
40025         Remove intprops dependency.
40026         * modules/memchr (Depends-on): Remove intprops.
40027         * modules/memrchr (Depends-on): Likewise.
40028         * modules/memchr2 (Depends-on): Likewise.
40029         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40030         * lib/memrchr.c (__memrchr): Likewise.
40031         * lib/memrchr2.c (memchr2): Likewise.
40032         Reported by Simon Josefsson.
40033
40034 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40035
40036         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40037         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40038
40039 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40040
40041         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40042
40043         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40044
40045         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40046
40047         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40048         declarations.
40049         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40050
40051         * m4/inet_pton.m4: Don't check for header files.
40052
40053         * m4/inet_ntop.m4: Don't check for header files.
40054
40055 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40056
40057         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40058         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40059         trigger for cygwin).
40060         Reported by Bruno Haible  <bruno@clisp.org>.
40061
40062 2008-04-28  Bruno Haible  <bruno@clisp.org>
40063
40064         * doc/posix-functions/strdup.texi: Mention mingw problem.
40065
40066 2008-04-27  Bruno Haible  <bruno@clisp.org>
40067
40068         * modules/stat-time-tests (Depends-on): Add sleep.
40069         * tests/test-stat-time.c (force_unlink): New function.
40070         (cleanup): Use it.
40071         (test_mtime): Remove the ctime related tests.
40072         (test_ctime): New function, containing the ctime related tests.
40073         (main): Call test_ctime, except on native Windows platforms.
40074
40075 2008-04-27  Bruno Haible  <bruno@clisp.org>
40076
40077         * lib/rpmatch.c (rpmatch): Add some comments.
40078         Reported by James Youngman <jay@gnu.org>.
40079
40080 2008-04-27  Bruno Haible  <bruno@clisp.org>
40081
40082         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40083         quiet NaNs.
40084
40085 2008-04-27  Bruno Haible  <bruno@clisp.org>
40086
40087         Make test-yesno.sh work on mingw.
40088         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40089         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40090         (main): Set stdin to binary mode.
40091         * modules/yesno-tests (Depends-on): Add binary-io.
40092
40093 2008-04-27  Bruno Haible  <bruno@clisp.org>
40094
40095         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40096         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40097         argument that lie outside the IEEE 854 domain.
40098         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40099         (gl_ISFINITE): Use it.
40100         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40101
40102 2008-04-27  Bruno Haible  <bruno@clisp.org>
40103
40104         Allow local renaming in config.h.
40105         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40106
40107 2008-04-27  Bruno Haible  <bruno@clisp.org>
40108
40109         * lib/memchr.c (__memchr): Change type of 'i'.
40110         * lib/memchr2.c (memchr2): Likewise.
40111
40112 2008-04-26  Eric Blake  <ebb9@byu.net>
40113         and Bruno Haible  <bruno@clisp.org>
40114
40115         Optimize and test memrchr.
40116         * modules/memrchr (Depends-on): Add intprops.
40117         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40118         * modules/memrchr-tests: New file.
40119         * tests/test-memrchr.c: New file.
40120
40121 2008-04-26  Bruno Haible  <bruno@clisp.org>
40122
40123         Add tentative support for DragonFly BSD.
40124         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40125         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40126         fp.
40127         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40128         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40129         * lib/fpurge.c (fpurge): Likewise.
40130         * lib/freadable.c (freaadable): Likewise.
40131         * lib/freadahead.c (freadahead): Likewise.
40132         * lib/freading.c (freading): Likewise.
40133         * lib/freadptr.c (freadptr): Likewise.
40134         * lib/freadseek.c (freadptrinc): Likewise.
40135         * lib/fseeko.c (fseeko): Likewise.
40136         * lib/fseterr.c (fseterr): Likewise.
40137         * lib/fwritable.c (fwritable): Likewise.
40138         * lib/fwriting.c (fwriting): Likewise.
40139
40140 2008-04-26  Bruno Haible  <bruno@clisp.org>
40141
40142         * lib/stdio-impl.h: New file.
40143         * lib/fbufmode.c: Include stdio-impl.h.
40144         (fbufmode): Use fp_, remove redundant #defines.
40145         * lib/fflush.c: Include stdio-impl.h.
40146         (clear_ungetc_buffer): Remove redundant #defines.
40147         * lib/fpurge.c: Include stdio-impl.h.
40148         (fpurge): Remove redundant #defines.
40149         * lib/freadable.c: Include stdio-impl.h.
40150         (freadable): Remove redundant #defines.
40151         * lib/freadahead.c: Include stdio-impl.h.
40152         (freadahead): Remove redundant #defines.
40153         * lib/freading.c: Include stdio-impl.h.
40154         (freading): Remove redundant #defines.
40155         * lib/freadptr.c: Include stdio-impl.h.
40156         (freadptr): Remove redundant #defines.
40157         * lib/freadseek.c: Include stdio-impl.h.
40158         (freadptrinc): Remove redundant #defines.
40159         * lib/fseeko.c: Include stdio-impl.h.
40160         (rpl_fseeko): Remove redundant #defines.
40161         * lib/fseterr.c: Include stdio-impl.h.
40162         (fseterr): Remove redundant #defines.
40163         * lib/fwritable.c: Include stdio-impl.h.
40164         (fwritable: Remove redundant #defines.
40165         * lib/fwriting.c: Include stdio-impl.h.
40166         (fwriting): Remove redundant #defines.
40167         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40168         * modules/fflush (Files): Likewise.
40169         * modules/fpurge (Files): Likewise.
40170         * modules/freadable (Files): Likewise.
40171         * modules/freadahead (Files): Likewise.
40172         * modules/freading (Files): Likewise.
40173         * modules/freadptr (Files): Likewise.
40174         * modules/freadseek (Files): Likewise.
40175         * modules/fseeko (Files): Likewise.
40176         * modules/fseterr (Files): Likewise.
40177         * modules/fwritable (Files): Likewise.
40178         * modules/fwriting (Files): Likewise.
40179
40180 2008-04-26  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40183         restore_seek_optimization, update_fpos_cache): New functions, extracted
40184         from rpl_fflush.
40185         (rpl_fflush): Use them.
40186         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40187         (gl_REPLACE_FFLUSH): Use it.
40188
40189 2008-04-26  Bruno Haible  <bruno@clisp.org>
40190
40191         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40192         on Solaris.
40193         * tests/test-xstrtoimax.sh: Likewise.
40194         * tests/test-xstrtoumax.sh: Likewise.
40195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40196
40197 2008-04-26  Bruno Haible  <bruno@clisp.org>
40198
40199         * modules/memchr-tests: New file.
40200         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40201
40202 2008-04-26  Eric Blake  <ebb9@byu.net>
40203             Bruno Haible  <bruno@clisp.org>
40204
40205         * lib/memchr.c: Include intprops.h.
40206         (__memchr): Optimize parallel detection of matching bytes. Rename local
40207         variables. Add explanatory comments.
40208
40209 2008-04-26  Bruno Haible  <bruno@clisp.org>
40210
40211         Fix module 'memchr', broken since 2000-10-28.
40212         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40213
40214 2008-04-26  Bruno Haible  <bruno@clisp.org>
40215
40216         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40217         comments.
40218
40219 2008-04-25  Eric Blake  <ebb9@byu.net>
40220
40221         Use native fstatat on cygwin 1.7.0.
40222         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40223         first.
40224
40225 2008-04-23  Eric Blake  <ebb9@byu.net>
40226
40227         Improve memchr2 performance.
40228         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40229         NUL bytes.
40230         * modules/memchr2 (Depends-on): Use intprops.h.
40231
40232 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40233
40234         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40235         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40236         <blp@cs.stanford.edu>.
40237
40238 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40239
40240         * lib/arpa_inet.in.h: New file.
40241
40242         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40243         (Makefile.am): Sed in substitute header file.
40244
40245         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40246         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40247
40248         * modules/inet_ntop (configure.ac): Use
40249         gl_ARPA_INET_MODULE_INDICATOR.
40250
40251         * modules/inet_pton (configure.ac): Use
40252         gl_ARPA_INET_MODULE_INDICATOR.
40253
40254 2008-04-22  Jim Meyering  <meyering@redhat.com>
40255
40256         * modules/verify (License): Re-license as LGPLv2+.
40257
40258 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40259
40260         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40261         parameter to void* as per POSIX standard (MinGW uses char*).
40262
40263 2008-04-21  Bruno Haible  <bruno@clisp.org>
40264
40265         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40266         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40267         Define to replacements if REPLACE_ISWCNTRL is 1.
40268         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40269         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40270         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40271         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40272         what it fixes.
40273         * doc/posix-functions/iswalpha.texi: Likewise.
40274         * doc/posix-functions/iswblank.texi: Likewise.
40275         * doc/posix-functions/iswcntrl.texi: Likewise.
40276         * doc/posix-functions/iswdigit.texi: Likewise.
40277         * doc/posix-functions/iswgraph.texi: Likewise.
40278         * doc/posix-functions/iswlower.texi: Likewise.
40279         * doc/posix-functions/iswprint.texi: Likewise.
40280         * doc/posix-functions/iswpunct.texi: Likewise.
40281         * doc/posix-functions/iswspace.texi: Likewise.
40282         * doc/posix-functions/iswupper.texi: Likewise.
40283         * doc/posix-functions/iswxdigit.texi: Likewise.
40284         Reported by Alain Guibert.
40285
40286 2008-04-21  Bruno Haible  <bruno@clisp.org>
40287
40288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40289         Patch by Alain Guibert.
40290
40291 2008-04-21  Bruno Haible  <bruno@clisp.org>
40292
40293         Fix test failures on mingw.
40294         * tests/test-xstrtol.c (print_no_progname): New function.
40295         (main): Install it in error_print_progname hook.
40296         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40297         * tests/test-xstrtoimax.sh: Likewise.
40298         * tests/test-xstrtoumax.sh: Likewise.
40299
40300 2008-04-21  Bruno Haible  <bruno@clisp.org>
40301
40302         Fix test failure on mingw.
40303         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40304
40305 2008-04-21  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40308         Actually assign a value.
40309
40310 2008-04-20  Bruno Haible  <bruno@clisp.org>
40311
40312         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40313         take 2.
40314         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40315         'canonicalize-lgpl' module is also used.
40316         * lib/canonicalize-lgpl.c: Undo last change.
40317         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40318
40319 2008-04-20  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40322         config.h. Provide _mkdir based fallback for mingw.
40323         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40324         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40325         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40326         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40327         rather than defining mkdir in config.h.
40328         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40329         (gl_SYS_STAT_H_DEFAULTS): New macro.
40330         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40331         HAVE_IO_H any more.
40332         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40333         HAVE_DECL_MKDIR and HAVE_IO_H.
40334
40335 2008-04-20  Bruno Haible  <bruno@clisp.org>
40336
40337         * lib/isapipe.c: Port to native Windows platforms.
40338
40339 2008-04-20  Bruno Haible  <bruno@clisp.org>
40340
40341         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40342
40343 2008-04-21  Eric Blake  <ebb9@byu.net>
40344
40345         Work around preprocessors that don't handle UINTMAX_MAX.
40346         * lib/memchr2.c (memchr2): Avoid embedded #if.
40347         Reported by Alain Guibert, fix suggested by Bruno Haible.
40348
40349 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40350
40351         * doc/posix-functions/strftime.texi (strftime): Explain better
40352         Windows incompatibility.  Suggested by Micah Cowan
40353         <micah@cowan.name>.
40354
40355 2008-04-20  Bruno Haible  <bruno@clisp.org>
40356
40357         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40358         unistr/u8-mblen.
40359
40360 2008-04-20  Bruno Haible  <bruno@clisp.org>
40361
40362         Fix test failure on platforms with non-GNU iconv.
40363         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40364         (U_TO_U8): Use it, rather than u16_to_u8.
40365         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40366         units at the end of the input string.
40367         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40368
40369 2008-04-20  Bruno Haible  <bruno@clisp.org>
40370
40371         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40372         when the resulting length is 0.
40373         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40374
40375 2008-04-20  Bruno Haible  <bruno@clisp.org>
40376
40377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40378         works.
40379         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40380
40381 2008-04-20  Bruno Haible  <bruno@clisp.org>
40382
40383         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40384         * modules/tsearch-tests (configure.ac): Test for initstate function.
40385
40386 2008-04-20  Bruno Haible  <bruno@clisp.org>
40387
40388         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40389         for nlink_t if missing.
40390         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40391
40392 2008-04-19  Bruno Haible  <bruno@clisp.org>
40393
40394         Work around snprintf bug on Linux libc5.
40395         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40397         gl_SNPRINTF_SIZE1.
40398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40399         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40400         that test failed.
40401         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40402         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40403         * modules/snprintf (Files): Add m4/printf.m4.
40404         * modules/vsnprintf (Files): Likewise.
40405         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40406         * doc/posix-functions/vsnprintf.texi: Likewise.
40407
40408 2008-04-19  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40411         from 0.0058 to less than 10^-7.
40412
40413 2008-04-19  Bruno Haible  <bruno@clisp.org>
40414
40415         Fix rounding when a precision is given.
40416         * lib/vasnprintf.c (is_borderline): New function.
40417         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40418         9...9x.
40419         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40420         %e, %g.
40421         * tests/test-vasprintf-posix.c (test_function): Likewise.
40422         * tests/test-snprintf-posix.h (test_function): Likewise.
40423         * tests/test-sprintf-posix.h (test_function): Likewise.
40424         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40425         * tests/test-printf-posix.h (test_function): Likewise.
40426         * tests/test-printf-posix.output: Update.
40427         Reported by John Darrington <john@darrington.wattle.id.au> via
40428         Ben Pfaff <blp@cs.stanford.edu>.
40429
40430 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40431
40432         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40433         Suggested by Bruno Haible <bruno@clisp.org>.
40434
40435 2008-04-17  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40438         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40439         implementation.
40440         Patch by Bruce Merry <bmerry@gmail.com>.
40441
40442 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40443
40444         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40445         doesn't work under Windows.
40446
40447 2008-04-16  Bruno Haible  <bruno@clisp.org>
40448
40449         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40450         New macros.
40451         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40452         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40453         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40454         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40455         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40456         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40457         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40458         macros.
40459         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40460         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40461         Northern Sotho, Uighur.
40462
40463 2008-04-16  Bruno Haible  <bruno@clisp.org>
40464
40465         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40466         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40467         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40468         Reported by Daniel Bergström <daniel@octocode.com>.
40469
40470 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40471             Bruno Haible  <bruno@clisp.org>
40472
40473         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40474         function.
40475         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40476         New functions, mostly extracted from gl_locale_name_default.
40477         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40478
40479 2008-04-16  Eric Blake  <ebb9@byu.net>
40480
40481         Adjust strtod detection to catch glibc 2.7 bug.
40482         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40483         Reported by John Gatewood Ham.
40484
40485 2008-04-16  Bruno Haible  <bruno@clisp.org>
40486
40487         Add tentative support for Linux libc5.
40488         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40489         * lib/fpurge.c (fpurge): Likewise.
40490         * lib/freadable.c (freadable): Likewise.
40491         * lib/freadahead.c (freadahead): Likewise.
40492         * lib/freading.c (freading): Likewise.
40493         * lib/freadptr.c (freadptr): Likewise.
40494         * lib/freadseek.c (freadptrinc): Likewise.
40495         * lib/fseeko.c (rpl_fseeko): Likewise.
40496         * lib/fseterr.c (fseterr): Likewise.
40497         * lib/fwritable.c (fwritable): Likewise.
40498         * lib/fwriting.c (fwriting): Likewise.
40499         Reported by Alain Guibert <alguibert+bts@free.fr>.
40500
40501 2008-04-15  Bruno Haible  <bruno@clisp.org>
40502
40503         * modules/mathl (configure.ac): Define module indicator.
40504
40505 2008-04-15  Bruno Haible  <bruno@clisp.org>
40506
40507         * lib/logl.c (logl): Remove unused variables.
40508
40509 2008-04-15  Bruno Haible  <bruno@clisp.org>
40510
40511         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40512         fails.
40513
40514 2008-04-15  Bruno Haible  <bruno@clisp.org>
40515
40516         * lib/trim.c (trim2): Fix argument of isspace() macro.
40517
40518 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40519
40520         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40521         to 0.
40522         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40523
40524 2008-04-14  Bruno Haible  <bruno@clisp.org>
40525
40526         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40527         AC_LANG_PROGRAM argument.
40528         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40529         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40531         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40532         * m4/math_h.m4 (gl_MATH_H): Likewise.
40533         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40534         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40535         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40536         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40537         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40538         * m4/regex.m4 (gl_REGEX): Likewise.
40539         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40540         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40541         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40542         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40543         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40544         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40546         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40547
40548 2008-04-14  Jim Meyering  <meyering@redhat.com>
40549
40550         test-strtod: fix typos: s/abs/fabs/
40551         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40552
40553 2008-04-13  Bruno Haible  <bruno@clisp.org>
40554
40555         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40556         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40557         module is also used and while not building the reloc-wrapper.
40558
40559 2008-04-13  Bruno Haible  <bruno@clisp.org>
40560
40561         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40562
40563 2008-04-13  Bruno Haible  <bruno@clisp.org>
40564
40565         Fix AIX compilation failure introduced on 2008-04-02.
40566         * tests/test-frexp.c (exp): Undefine before redefining.
40567         * tests/test-frexpl.c (exp): Likewise.
40568
40569 2008-04-13  Bruno Haible  <bruno@clisp.org>
40570
40571         Work around a HP-UX stdio bug.
40572         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40573         * tests/test-ftello.c (main): Likewise.
40574         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40575         * doc/posix-functions/ftello.texi: Likewise.
40576
40577 2008-04-13  Bruno Haible  <bruno@clisp.org>
40578
40579         Make test-signbit pass on HP-UX/hppa.
40580         * tests/test-signbit.c (minus_zerol): New variable.
40581         (test_signbitl): Use it.
40582
40583 2008-04-13  Bruno Haible  <bruno@clisp.org>
40584
40585         Make truncl work on OSF/1 4.0.
40586         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40587         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40588         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40590         HAVE_DECL_TRUNCL.
40591         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40592         HAVE_DECL_TRUNCL.
40593         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40594
40595 2008-04-13  Bruno Haible  <bruno@clisp.org>
40596
40597         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40598
40599 2008-04-13  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40602         expression, so as to avoid HP-UX 11 cc compiler bug.
40603
40604 2008-04-13  Bruno Haible  <bruno@clisp.org>
40605
40606         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40607
40608 2008-04-13  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/git-merge-changelog.c: Remove empty declaration outside of
40611         functions.
40612
40613 2008-04-13  Bruno Haible  <bruno@clisp.org>
40614
40615         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40616
40617 2008-04-13  Bruno Haible  <bruno@clisp.org>
40618
40619         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40620         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40621         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40622         also if it exists but lacks definitions of the SHUT_* macros.
40623         * modules/sys_socket (Description): Update.
40624         Reported by Elbert Pol <e.pol@chello.nl>.
40625
40626 2008-04-13  Bruno Haible  <bruno@clisp.org>
40627
40628         * lib/localcharset.c (OS2): Don't redefine if already defined.
40629         Reported by Elbert Pol <e.pol@chello.nl>.
40630
40631 2008-04-13  Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/binary-io.h [__EMX__]: Include <io.h>.
40634         Reported by Elbert Pol <e.pol@chello.nl>.
40635
40636 2008-04-12  Bruno Haible  <bruno@clisp.org>
40637
40638         * lib/fpucw.h: Enable the definitions also for x86_64.
40639         Needed for NetBSD/x86_64.
40640         Reported by Thomas Klausner <tk@giga.or.at>.
40641
40642 2008-04-12  Bruno Haible  <bruno@clisp.org>
40643
40644         * tests/test-strtod.c: Include isnand.h.
40645         (main): Use isnand instead of isnan.
40646         Reported by Jim Meyering.
40647
40648 2008-04-12  Bruno Haible  <bruno@clisp.org>
40649
40650         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40651         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40652
40653 2008-04-12  Jim Meyering  <meyering@redhat.com>
40654
40655         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40656
40657 2008-04-12  Bruno Haible  <bruno@clisp.org>
40658
40659         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40660         Reported by Elbert Pol <e.pol@chello.nl>.
40661
40662 2008-04-12  Eric Blake  <ebb9@byu.net>
40663
40664         Work around Solaris 10 math.h bug.
40665         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40666         (gl_MATH_H_DEFAULTS): Set up default.
40667         * modules/math (Makefile.am): Replace new indicators.
40668         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40669         * tests/test-math.c (main): Test this.
40670         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40671         * doc/posix-headers/math.texi (math.h): Mention bug.
40672         Reported by Nelson H. F. Beebe and Jim Meyering.
40673
40674 2008-04-11  Bruno Haible  <bruno@clisp.org>
40675
40676         Adapt to future versions of Apple GCC.
40677         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40678         Reported by Peter O'Gorman <peter@pogma.com>.
40679
40680 2008-04-11  Bruno Haible  <bruno@clisp.org>
40681
40682         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40683
40684 2008-04-11  Bruno Haible  <bruno@clisp.org>
40685
40686         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40687
40688         * modules/getaddrinfo-tests (Makefile.am): Define
40689         test_getaddrinfo_LDADD.
40690
40691 2008-04-11  Bruno Haible  <bruno@clisp.org>
40692
40693         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40694         (init): Fix syntax error.
40695         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40696         is declared.
40697
40698 2008-04-11  Bruno Haible  <bruno@clisp.org>
40699
40700         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40701         * modules/glob (Depends-on): Add stdbool.
40702
40703 2008-04-11  Bruno Haible  <bruno@clisp.org>
40704
40705         * lib/trim.c: Include <string.h>.
40706
40707 2008-04-11  Eric Blake  <ebb9@byu.net>
40708
40709         Avoid compile failure on OS/2.
40710         * lib/regex_internal.h (internal_function): Disable optimization
40711         on OS/2 (__EMX__), where it caused compiler error.
40712         Reported by Elbert Pol.
40713
40714 2008-04-11  Bruno Haible  <bruno@clisp.org>
40715
40716         Flush the standard error stream before aborting. Needed on mingw.
40717         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40718         * tests/test-array_list.c (ASSERT): Likewise.
40719         * tests/test-array_oset.c (ASSERT): Likewise.
40720         * tests/test-avltree_list.c (ASSERT): Likewise.
40721         * tests/test-avltree_oset.c (ASSERT): Likewise.
40722         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40723         * tests/test-binary-io.c (ASSERT): Likewise.
40724         * tests/test-byteswap.c (ASSERT): Likewise.
40725         * tests/test-c-ctype.c (ASSERT): Likewise.
40726         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40727         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40728         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40729         * tests/test-c-strstr.c (ASSERT): Likewise.
40730         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40731         * tests/test-canonicalize.c (ASSERT): Likewise.
40732         * tests/test-carray_list.c (ASSERT): Likewise.
40733         * tests/test-ceilf1.c (ASSERT): Likewise.
40734         * tests/test-ceilf2.c (ASSERT): Likewise.
40735         * tests/test-ceill.c (ASSERT): Likewise.
40736         * tests/test-count-one-bits.c (ASSERT): Likewise.
40737         * tests/test-fbufmode.c (ASSERT): Likewise.
40738         * tests/test-fflush2.c (ASSERT): Likewise.
40739         * tests/test-floorf1.c (ASSERT): Likewise.
40740         * tests/test-floorf2.c (ASSERT): Likewise.
40741         * tests/test-floorl.c (ASSERT): Likewise.
40742         * tests/test-fopen.c (ASSERT): Likewise.
40743         * tests/test-fpending.c (ASSERT): Likewise.
40744         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40745         * tests/test-fpurge.c (ASSERT): Likewise.
40746         * tests/test-freadable.c (ASSERT): Likewise.
40747         * tests/test-freadahead.c (ASSERT): Likewise.
40748         * tests/test-freading.c (ASSERT): Likewise.
40749         * tests/test-freadptr.c (ASSERT): Likewise.
40750         * tests/test-freadptr2.c (ASSERT): Likewise.
40751         * tests/test-freadseek.c (ASSERT): Likewise.
40752         * tests/test-freopen.c (ASSERT): Likewise.
40753         * tests/test-frexp.c (ASSERT): Likewise.
40754         * tests/test-frexpl.c (ASSERT): Likewise.
40755         * tests/test-fseek.c (ASSERT): Likewise.
40756         * tests/test-fseeko.c (ASSERT): Likewise.
40757         * tests/test-fstrcmp.c (ASSERT): Likewise.
40758         * tests/test-ftell.c (ASSERT): Likewise.
40759         * tests/test-ftello.c (ASSERT): Likewise.
40760         * tests/test-func.c (ASSERT): Likewise.
40761         * tests/test-fwritable.c (ASSERT): Likewise.
40762         * tests/test-fwriting.c (ASSERT): Likewise.
40763         * tests/test-getdelim.c (ASSERT): Likewise.
40764         * tests/test-getline.c (ASSERT): Likewise.
40765         * tests/test-i-ring.c (ASSERT): Likewise.
40766         * tests/test-iconv-utf.c (ASSERT): Likewise.
40767         * tests/test-iconv.c (ASSERT): Likewise.
40768         * tests/test-isfinite.c (ASSERT): Likewise.
40769         * tests/test-isnand.c (ASSERT): Likewise.
40770         * tests/test-isnanf.c (ASSERT): Likewise.
40771         * tests/test-isnanl.h (ASSERT): Likewise.
40772         * tests/test-ldexpl.c (ASSERT): Likewise.
40773         * tests/test-linked_list.c (ASSERT): Likewise.
40774         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40775         * tests/test-localename.c (ASSERT): Likewise.
40776         * tests/test-lseek.c (ASSERT): Likewise.
40777         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40778         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40779         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40780         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40781         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40782         * tests/test-mbschr.c (ASSERT): Likewise.
40783         * tests/test-mbscspn.c (ASSERT): Likewise.
40784         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40785         * tests/test-mbspbrk.c (ASSERT): Likewise.
40786         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40787         * tests/test-mbsrchr.c (ASSERT): Likewise.
40788         * tests/test-mbsspn.c (ASSERT): Likewise.
40789         * tests/test-mbsstr1.c (ASSERT): Likewise.
40790         * tests/test-mbsstr2.c (ASSERT): Likewise.
40791         * tests/test-mbsstr3.c (ASSERT): Likewise.
40792         * tests/test-memchr2.c (ASSERT): Likewise.
40793         * tests/test-memmem.c (ASSERT): Likewise.
40794         * tests/test-open.c (ASSERT): Likewise.
40795         * tests/test-printf-frexp.c (ASSERT): Likewise.
40796         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40797         * tests/test-printf-posix.c (ASSERT): Likewise.
40798         * tests/test-quotearg.c (ASSERT): Likewise.
40799         * tests/test-rbtree_list.c (ASSERT): Likewise.
40800         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40801         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40802         * tests/test-round1.c (ASSERT): Likewise.
40803         * tests/test-roundf1.c (ASSERT): Likewise.
40804         * tests/test-roundl.c (ASSERT): Likewise.
40805         * tests/test-signbit.c (ASSERT): Likewise.
40806         * tests/test-sleep.c (ASSERT): Likewise.
40807         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40808         * tests/test-snprintf.c (ASSERT): Likewise.
40809         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40810         * tests/test-stat-time.c (ASSERT): Likewise.
40811         * tests/test-strcasestr.c (ASSERT): Likewise.
40812         * tests/test-strerror.c (ASSERT): Likewise.
40813         * tests/test-striconv.c (ASSERT): Likewise.
40814         * tests/test-striconveh.c (ASSERT): Likewise.
40815         * tests/test-striconveha.c (ASSERT): Likewise.
40816         * tests/test-strsignal.c (ASSERT): Likewise.
40817         * tests/test-strstr.c (ASSERT): Likewise.
40818         * tests/test-strtod.c (ASSERT): Likewise.
40819         * tests/test-trunc1.c (ASSERT): Likewise.
40820         * tests/test-trunc2.c (ASSERT): Likewise.
40821         * tests/test-truncf1.c (ASSERT): Likewise.
40822         * tests/test-truncf2.c (ASSERT): Likewise.
40823         * tests/test-truncl.c (ASSERT): Likewise.
40824         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40825         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40826         * tests/test-vasnprintf.c (ASSERT): Likewise.
40827         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40828         * tests/test-vasprintf.c (ASSERT): Likewise.
40829         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40830         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40831         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40832         * tests/test-vsnprintf.c (ASSERT): Likewise.
40833         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40834         * tests/test-wcwidth.c (ASSERT): Likewise.
40835         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40836         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40837         * tests/test-xvasprintf.c (ASSERT): Likewise.
40838         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40839         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40840         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40841         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40842         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40843         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40844         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40845         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40846         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40847         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40848         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40849         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40850         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40851         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40852         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40853         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40854         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40855         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40856         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40857         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40858         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40859         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40860         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40861         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40862         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40863         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40864         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40865         * tests/unictype/test-combining.c (ASSERT): Likewise.
40866         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40867         * tests/unictype/test-digit.c (ASSERT): Likewise.
40868         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40869         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40870         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40871         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40872         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40873         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40874         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40875         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40876         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40877         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40878         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40879         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40880         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40881         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40882         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40883         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40884         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40885         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40886         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40887         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40888         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40889         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40890         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40891         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40892         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40893         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40894         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40895         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40896         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40897         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40898         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40899         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40900         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40901         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40902         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40903         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40904         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40905         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40906         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40907         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40908         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40909         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40910         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40911         Reported by Eric Blake.
40912
40913 2008-04-11  Bruno Haible  <bruno@clisp.org>
40914
40915         * lib/wchar.in.h: Tweak comment.
40916
40917 2008-04-11  Bruno Haible  <bruno@clisp.org>
40918
40919         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40920         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40921         gl_COMMON.
40922         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40923
40924 2008-04-11  Bruno Haible  <bruno@clisp.org>
40925
40926         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40927
40928 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40929
40930         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40931         of attempting to use non-existing /dev/*random.  Based on patch
40932         from Adam Strzelecki <ono@java.pl> in
40933         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40934
40935 2008-04-08  Bruno Haible  <bruno@clisp.org>
40936
40937         Add tentative support for emx+gcc.
40938         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40939         * lib/fpurge.c (fpurge): Likewise.
40940         * lib/freadable.c (freadable): Likewise.
40941         * lib/freadahead.c (freadahead): Likewise.
40942         * lib/freading.c (freading): Likewise.
40943         * lib/freadptr.c (freadptr): Likewise.
40944         * lib/freadseek.c (freadptrinc): Likewise.
40945         * lib/fseeko.c (rpl_fseeko): Likewise.
40946         * lib/fseterr.c (fseterr): Likewise.
40947         * lib/fwritable.c (fwritable): Likewise.
40948         * lib/fwriting.c (fwriting): Likewise.
40949         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40950
40951 2008-04-09  Eric Blake  <ebb9@byu.net>
40952
40953         Avoid some autoconf warnings.
40954         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40955         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40956         * m4/afs.m4 (gl_AFS): Likewise.
40957         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40958         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40959         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40960         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40961         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40962         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40963         (AC_CHECK_DECLS_ONCE): Likewise.
40964         Rename file...
40965         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40966         gnulib-tool requires autoconf 2.59 or better.
40967         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40968
40969 2008-04-08  Eric Blake  <ebb9@byu.net>
40970
40971         Use 'git describe --match' if present (added in git 1.5.5).
40972         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40973         if possible.
40974
40975 2008-04-08  Bruno Haible  <bruno@clisp.org>
40976
40977         Add tentative support for OpenServer.
40978         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40979         _ptr, _cnt.
40980         * lib/fpurge.c (fpurge): Likewise.
40981         * lib/freadable.c (freadable): Likewise.
40982         * lib/freadahead.c (freadahead): Likewise.
40983         * lib/freading.c (freading): Likewise.
40984         * lib/freadptr.c (freadptr): Likewise.
40985         * lib/freadseek.c (freadptrinc): Likewise.
40986         * lib/fseeko.c (rpl_fseeko): Likewise.
40987         * lib/fseterr.c (fseterr): Likewise.
40988         * lib/fwritable.c (fwritable): Likewise.
40989         * lib/fwriting.c (fwriting): Likewise.
40990         Reported by Roger Cornelius <rac@tenzing.org> and
40991         Brian K. White <brian@aljex.com>.
40992
40993 2008-04-06  Jim Meyering  <meyering@redhat.com>
40994
40995         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40996
40997 2008-04-06  Bruno Haible  <bruno@clisp.org>
40998
40999         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41000         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41001         * tests/test-printf-posix.sh: Likewise.
41002         * tests/test-vfprintf-posix.sh: Likewise.
41003         * tests/test-vprintf-posix.sh: Likewise.
41004         * tests/test-xprintf-posix.sh: Likewise.
41005
41006 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41007
41008         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41009         hide error from 'ls', needed on OS/2.
41010         Report by Elbert Pol <elbert.pol@gmail.com>.
41011
41012 2008-04-04  Eric Blake  <ebb9@byu.net>
41013
41014         Make test-fseeko.c failures meaningful.
41015         * tests/test-fseeko.c: Print line number on failure.
41016         * tests/test-fseek.c: Likewise.
41017         Reported by Nelson H. F. Beebe.
41018
41019         Improve strtod bug detection check.
41020         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41021         required for Solaris 10.
41022         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41023
41024 2008-04-04  Bruno Haible  <bruno@clisp.org>
41025
41026         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41027         by m4/setenv.m4.
41028
41029 2008-04-03  Eric Blake  <ebb9@byu.net>
41030
41031         Ensure sane .version contents.
41032         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41033         version string.
41034         * build-aux/git-version-gen: Improve documentation.
41035
41036         Make GNU make output nicer.
41037         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41038         MAKECMDGOALS to enforce message for all command line targets.  Set
41039         srcdir for use in maint.mk.
41040
41041         Another maintainer tweak.
41042         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41043         a target that regenerates version.
41044
41045 2008-04-03  Jim Meyering  <meyering@redhat.com>
41046
41047         vc-list-files: don't cause coreutils "make po-check" failure
41048         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41049
41050 2008-04-03  Eric Blake  <ebb9@byu.net>
41051
41052         Allow VPATH usage of vc-list-files.
41053         * build-aux/vc-list-files (scriptversion): Add timestamp.
41054         (options): Add --help, --version, -C.
41055         (CVS): Support installed cvsu.
41056
41057 2008-04-02  Bruno Haible  <bruno@clisp.org>
41058
41059         Avoid some "statement with no effect" warnings from gcc.
41060         * tests/test-wctype.c (main): Explicitly ignore unused values.
41061         Reported by Jim Meyering.
41062
41063 2008-04-02  Jim Meyering  <meyering@redhat.com>
41064
41065         Avoid some warnings from "gcc -Wshadow".
41066         * tests/test-frexp.c (exp): Define to a different identifier.
41067         * tests/test-frexpl.c (exp): Likewise.
41068
41069 2008-04-03  Jim Meyering  <meyering@redhat.com>
41070
41071         bootstrap: remove dangling *.[ch] symlinks from lib
41072         * build-aux/bootstrap [dangling symlink removal]: Move find's
41073         -depth option to precede all others, to avoid a warning.
41074         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41075
41076 2008-04-02  Bruno Haible  <bruno@clisp.org>
41077
41078         Avoid some warnings from "gcc -Wshadow".
41079         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41080         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41081         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41082         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41083         Reported by Jim Meyering.
41084
41085 2008-04-01  Bruno Haible  <bruno@clisp.org>
41086
41087         Fix test to work on IRIX 6.5 with cc.
41088         * tests/test-math.c (numeric_equal): New function.
41089         (main): Use it.
41090
41091 2008-04-01  Bruno Haible  <bruno@clisp.org>
41092
41093         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41094
41095 2008-04-01  Bruno Haible  <bruno@clisp.org>
41096
41097         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41098         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41099         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41100         (Depends-on): Remove math.
41101
41102         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41103         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41104         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41105         (Depends-on): Remove math.
41106
41107         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41108         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41109         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41110         (Depends-on): Remove math.
41111         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41112         (Depends-on): Remove math.
41113
41114         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41115         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41116         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41117         (Depends-on): Remove math.
41118         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41119         (Depends-on): Remove math.
41120
41121         * tests/test-round1.c: Include nan.h.
41122         (main): Use NaNd instead of NAN.
41123         * modules/round-tests (Files): Add tests/nan.h.
41124
41125         * tests/test-trunc1.c: Include nan.h.
41126         (main): Use NaNd instead of NAN.
41127         * modules/trunc-tests (Files): Add tests/nan.h.
41128
41129         * tests/test-roundf1.c: Include nan.h.
41130         (main): Use NaNf instead of NAN.
41131         * modules/roundf-tests (Files): Add tests/nan.h.
41132
41133         * tests/test-truncf1.c: Include nan.h.
41134         (main): Use NaNf instead of NAN.
41135         * modules/truncf-tests (Files): Add tests/nan.h.
41136
41137         * tests/test-ceilf1.c: Include nan.h.
41138         (main): Use NaNf instead of NAN.
41139         * modules/ceilf-tests (Files): Add tests/nan.h.
41140
41141         * tests/test-floorf1.c: Include nan.h.
41142         (main): Use NaNf instead of NAN.
41143         * modules/floorf-tests (Files): Add tests/nan.h.
41144
41145         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41146         (main): Use NaNf instead of NAN.
41147         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41148
41149         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41150         (main): Use NaNd instead of NAN.
41151         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41152
41153         * tests/test-frexp.c: Include nan.h.
41154         (main): Use NaNd instead of NAN.
41155         * modules/frexp-tests (Files): Add tests/nan.h.
41156
41157         * lib/isnan.c: Don't include <math.h>.
41158         (FUNC): Don't use NAN macro.
41159         * modules/isnand-nolibm (Depends-on): Remove math.
41160         * modules/isnanf-nolibm (Depends-on): Remove math.
41161         * modules/isnanl (Depends-on): Remove math.
41162         * modules/isnanl-nolibm (Depends-on): Remove math.
41163
41164         * tests/nan.h: New file.
41165
41166 2008-04-01  Eric Blake  <ebb9@byu.net>
41167
41168         Fix typos.
41169         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41170         values to be the right type.
41171
41172         For now, cater to gnulib strtod inaccuracies.
41173         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41174         fractional results.  While not as nice from a QoI perspective, it
41175         is a quicker patch than correctly implementing decimal to binary
41176         rounding.
41177
41178 2008-03-31  Eric Blake  <ebb9@byu.net>
41179
41180         Guarantee a definition of NAN.
41181         * lib/math.in.h (NAN): Define if missing.
41182         * tests/test-math.c (main): Test it.
41183         * doc/posix-headers/math.texi (math.h): Document this.
41184         * lib/isnan.c (rpl_isnand): Use it.
41185         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41186         * tests/test-floorf1.c (NaN): Likewise.
41187         * tests/test-frexp.c (NaN): Likewise.
41188         * tests/test-isnand.c (NaN): Likewise.
41189         * tests/test-isnanf.c (NaN): Likewise.
41190         * tests/test-round1.c (NaN): Likewise.
41191         * tests/test-roundf1.c (NaN): Likewise.
41192         * tests/test-snprintf-posix.h (NaN): Likewise.
41193         * tests/test-sprintf-posix.h (NaN): Likewise.
41194         * tests/test-trunc1.c (NaN): Likewise.
41195         * tests/test-truncf1.c (NaN): Likewise.
41196         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41197         * tests/test-vasprintf-posix.c (NaN): Likewise.
41198         * modules/isnand-nolibm (Depends-on): Add math.
41199         * modules/isnanf-nolibm (Depends-on): Likewise.
41200         * modules/isnanl (Depends-on): Likewise.
41201         * modules/isnanl-nolibm (Depends-on): Likewise.
41202         * modules/snprintf-posix-tests (Depends-on): Likewise.
41203         * modules/sprintf-posix-tests (Depends-on): Likewise.
41204         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41205         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41206         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41207         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41208
41209 2008-03-31  Bruno Haible  <bruno@clisp.org>
41210
41211         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41212         * doc/posix-functions/strtod.texi: Likewise.
41213
41214 2008-03-31  Bruno Haible  <bruno@clisp.org>
41215
41216         * tests/test-strtod.c (main): Don't use C99 syntax.
41217
41218 2008-03-31  Bruno Haible  <bruno@clisp.org>
41219
41220         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41221         Reported by Eric Blake.
41222
41223 2008-03-31  Jim Meyering  <meyering@redhat.com>
41224
41225         Don't compare actual signbit return values.
41226         * tests/test-strtod.c (main): Rather, compare only their
41227         zero/non-zero nature.
41228
41229 2008-03-31  Eric Blake  <ebb9@byu.net>
41230
41231         More strtod documentation.
41232         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41233         failures as distinct bugs.
41234
41235 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41238         Problem reported by Erik Benada in
41239         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41240
41241 2008-03-30  Bruno Haible  <bruno@clisp.org>
41242
41243         * tests/test-strtod.c: Add comments about which assertion fails on which
41244         platform.
41245         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41246
41247 2008-03-30  Eric Blake  <ebb9@byu.net>
41248
41249         Test signbit behavior on zeros.
41250         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41251         (test_signbitd, test_signbitl): Likewise.
41252
41253         More strtod touchups.
41254         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41255         sign of negative underflow, for now.  Use .5, not .1.
41256         * doc/posix-functions/strtod.texi (strtod): Mention these
41257         limitations.
41258         Reported by Jim Meyering.
41259
41260 2008-03-30  Bruno Haible  <bruno@clisp.org>
41261
41262         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41263         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41264
41265 2008-03-30  Bruno Haible  <bruno@clisp.org>
41266
41267         Avoid failure when attempting to return empty iconv results on some
41268         platforms.
41269         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41270         allocation, don't report ENOMEM when the resulting string is empty.
41271
41272 2008-03-30  Bruno Haible  <bruno@clisp.org>
41273
41274         Fix buffer overrun.
41275         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41276         Don't consider the width for tmp_length. Check count against tmp_length
41277         before doing the padding. Ensure enough allocation during padding.
41278
41279 2008-03-30  Eric Blake  <ebb9@byu.net>
41280
41281         strtod touchups.
41282         * lib/strtod.c (strtod): Avoid compiler warnings.
41283         Reported by Jim Meyering.
41284
41285 2008-03-30  Bruno Haible  <bruno@clisp.org>
41286
41287         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41288         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41289         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41290         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41291         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41292         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41293         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41294         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41295
41296         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41297         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41298         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41299         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41300         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41301         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41302         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41303         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41304
41305         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41306         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41307         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41308         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41309         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41310         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41311         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41312         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41313
41314         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41315         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41316
41317         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41318         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41319
41320         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41321         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41322
41323         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41325         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41326
41327         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41329         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41330
41331         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41333         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41334
41335         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41337         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41338
41339         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41340         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41342         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41343         (Depends-on): Add EOVERFLOW.
41344         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41345         (Depends-on): Add EOVERFLOW.
41346         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41347         (Depends-on): Add EOVERFLOW.
41348         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41349         (Depends-on): Add EOVERFLOW.
41350         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41351         (Depends-on): Add EOVERFLOW.
41352         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41353         (Depends-on): Add EOVERFLOW.
41354         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41355         (Depends-on): Add EOVERFLOW.
41356         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41357         (Depends-on): Add EOVERFLOW.
41358
41359         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41361         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41362
41363         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41365         * modules/snprintf (Depends-on): Add EOVERFLOW.
41366
41367         * lib/poll.c (EOVERFLOW): Remove fallback.
41368         * modules/poll (Depends-on): Add EOVERFLOW.
41369
41370         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41371         * modules/getugroups (Depends-on): Add EOVERFLOW.
41372
41373         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41374         * modules/getdelim (Depends-on): Add EOVERFLOW.
41375
41376         * lib/ftell.c (EOVERFLOW): Remove fallback.
41377         * modules/ftell (Depends-on): Add EOVERFLOW.
41378
41379         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41380         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41381         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41382
41383         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41384
41385         * modules/EOVERFLOW-tests: New file.
41386         * tests/test-EOVERFLOW.c: New file.
41387
41388         * modules/EOVERFLOW: New file.
41389         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41390
41391 2008-03-30  Bruno Haible  <bruno@clisp.org>
41392
41393         Fix bug introduced on 2007-06-10.
41394         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41395         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41396
41397 2008-03-30  Bruno Haible  <bruno@clisp.org>
41398
41399         Improve freadseek's efficiency after ungetc.
41400         * lib/freadseek.c: Include freadahead.h.
41401         (freadptrinc): New function, extracted from freadseek.
41402         (freadseek): Use it in a loop. Use freadahead to determine the number
41403         of loop iterations.
41404         * modules/freadseek (Depends-on): Add freadahead.
41405         (configure.ac): Require AC_C_INLINE.
41406
41407 2008-03-30  Bruno Haible  <bruno@clisp.org>
41408
41409         * lib/freadseek.c (freadseek): Don't ignore the return value of
41410         freadptr.
41411
41412 2008-03-29  Eric Blake  <ebb9@byu.net>
41413
41414         Add hex float support.
41415         * modules/strtod (Depends-on): Add c-ctype.
41416         (Link): Mention POW_LIB.
41417         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41418         whitespace between 'e' and exponent.
41419         * tests/test-strtod.c (main): Enable hex float tests.
41420         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41421         now provides.
41422
41423         Document various strtod bugs, with some fixes.
41424         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41425         "-0x", "inf", "nan", and hex constants.
41426         * doc/posix-functions/atof.texi (atof): Likewise.
41427         * modules/stdlib (Makefile.am): Support strtod.
41428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41429         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41430         detect additional strtod bugs.
41431         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41432         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41433         bool where appropriate.  Parse 'inf' and 'nan'.
41434         * tests/test-strtod.c: New file.
41435         * modules/strtod (Depends-on): Add stdbool, stdlib.
41436         (configure.ac): Turn on module indicator.
41437         * modules/strtod-tests: New module.
41438
41439 2008-03-29  Eric Blake  <ebb9@byu.net>
41440
41441         Fix ftell on mingw.
41442         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41443         * modules/ftell-tests (Depends-on): Add binary-io.
41444         * modules/ftello-tests (Depends-on): Likewise.
41445         * tests/test-ftell.c (main): Enhance test to cover behavior after
41446         ungetc.  Enforce binary mode.
41447         * tests/test-ftello.c (main): Likewise.
41448
41449         Pass test-freadseek on cygwin.
41450         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41451         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41452         ungetc buffer.
41453
41454         * tests/test-fflush2.c (main): Fix typo.
41455
41456 2008-03-29  Bruno Haible  <bruno@clisp.org>
41457
41458         * tests/test-fflush2.c (main): Temporarily disable the contents of
41459         this test.
41460         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41461         Reported by Eric Blake.
41462
41463 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41464
41465         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41466         (GC_SHA224_DIGEST_SIZE): Add.
41467
41468         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41469         (gc_hash_digest_length): Likewise.
41470         (gc_hash_buffer): Likewise.
41471
41472 2008-03-25  Bruno Haible  <bruno@clisp.org>
41473
41474         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41475         detail which gettext release to use.
41476         Reported by Simon Josefsson.
41477
41478 2008-03-26  Jim Meyering  <meyering@redhat.com>
41479
41480         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41481         * modules/gnumakefile (clean-GNUmakefile): Also, use
41482         test ... && ... || : syntax rather than if-then ... fi.
41483
41484         gnumakefile: Don't double-quote-expand $(VPATH) value.
41485         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41486
41487 2008-03-24  Eric Blake  <ebb9@byu.net>
41488
41489         Alter GNUmakefile to install into top directory.
41490         * modules/maintainer-makefile: Split, and add dependency...
41491         * modules/gnumakefile: to this new module.
41492         * build-aux/GNUmakefile: Move...
41493         * top/GNUmakefile: ...here.
41494         * build-aux/maint.mk: Move...
41495         * top/maint.mk: ...here.
41496         * MODULES.html.sh (Support for maintaining...): Document new
41497         module.
41498
41499 2008-03-23  Bruno Haible  <bruno@clisp.org>
41500
41501         * gnulib-tool: New options --vc-files, --no-vc-files.
41502         (func_usage): Document them.
41503         (vc_files): New variable.
41504         (func_import): Consider vc_files.
41505         (func_create_testdir): Set vc_files to empty.
41506         Suggested by Jim Meyering and Karl Berry.
41507
41508 2008-03-23  Bruno Haible  <bruno@clisp.org>
41509
41510         Fix regex compilation error on HP-UX 11.
41511         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41512         * modules/regex (Files): Add m4/mbstate_t.m4.
41513         Reported by Ton Voon <ton.voon@altinity.com>.
41514
41515 2008-03-23  Bruno Haible  <bruno@clisp.org>
41516
41517         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41518
41519 2008-03-23  Eric Blake  <ebb9@byu.net>
41520             Bruno Haible  <bruno@clisp.org>
41521
41522         Install files from top/ in the destination directory.
41523         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41524         augmentation also for the files from top/.
41525         (func_import, func_create_testdir): Rewrite file names:
41526         top/filename -> filename.
41527
41528 2008-03-23  Bruno Haible  <bruno@clisp.org>
41529
41530         Tweak "gnulib --version" output.
41531         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41532
41533 2008-03-23  Bruno Haible  <bruno@clisp.org>
41534
41535         Tweak "gnulib --version" output.
41536         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41537         rather than contents of ChangeLog, when possible.
41538
41539 2008-03-21  Eric Blake  <ebb9@byu.net>
41540
41541         More --version tweaks.
41542         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41543         date of last ChangeLog entry.
41544
41545 2008-03-21  Jim Meyering  <meyering@redhat.com>
41546
41547         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41548
41549 2008-03-20  Eric Blake  <ebb9@byu.net>
41550
41551         VPATH fix.
41552         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41553
41554 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41555
41556         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41557         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41558
41559 2008-03-20  Eric Blake  <ebb9@byu.net>
41560
41561         Sync GNUmakefile with coreutils.
41562         * build-aux/GNUmakefile (have-Makefile): Rename...
41563         (_have-Makefile): ...to this, for namespace consideration.
41564         (GNUmakefile.cfg): Include, if present.
41565         (_autoreconf): Define a default.
41566         (_is-dist-target): New rule for rebuilds to pick up intra-release
41567         version.
41568         (maint-cfg.mk): Rename...
41569         (cfg.mk): ...to this.
41570
41571 2008-03-18  Jim Meyering  <meyering@redhat.com>
41572
41573         New script and module: mktempd
41574         * MODULES.html.sh (maint+release support): Add mktempd.
41575         * build-aux/mktempd: New file.
41576         * modules/mktempd: New file.
41577
41578 2008-03-15  Jim Meyering  <meyering@redhat.com>
41579
41580         Undo last change.
41581         * lib/sha1.c, lib/md5.c: 63 != ~63.
41582         Reported by Andreas Schwab.
41583
41584         sha1.c, md5.c: Hoist a redundant expression.
41585         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41586         "ctx->buflen" only once, before calling *_process_block.
41587         * lib/md5.c (md5_process_bytes): Likewise.
41588
41589 2008-03-14  Eric Blake  <ebb9@byu.net>
41590
41591         Bump copyright year in files generated by gnulib-tool.
41592         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41593         gnulib-tool, rather than hard-coding it.
41594
41595         Fix 'gnulib-tool --version' output to work with git.
41596         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41597         (startup): ...here.
41598         (func_version): Use it to invoke git-version-gen, rather than
41599         relying on CVS keyword expansion.  Modernize wording.
41600         (cvsdatestamp, last_checkin_date, version): Kill unused
41601         variables.
41602
41603 2008-03-12  Jim Meyering  <meyering@redhat.com>
41604
41605         Recognize optional cast of the argument to free.
41606         * build-aux/useless-if-before-free: Update regexps.
41607
41608         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41609
41610 2008-03-11  Bruno Haible  <bruno@clisp.org>
41611
41612         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41613         by a single package.
41614         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41615         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41616         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41617         Reported by Sam Steingold <sds@gnu.org>.
41618
41619 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41620
41621         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41622         repositories.
41623
41624 2008-03-11  Bruno Haible  <bruno@clisp.org>
41625
41626         Avoid conflicts between local macro definitions.
41627         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41628         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41629
41630 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41631             Bruno Haible  <bruno@clisp.org>
41632
41633         Make va_copy work with some version of xlc on AIX 5.1.
41634         * lib/stdarg.in.h: New file.
41635         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41636         On AIX, use a <stdarg.h> file substitute.
41637         * modules/stdarg (Files): Add lib/stdarg.in.h.
41638         (Depends-on): Add include_next.
41639         (Makefile.am): Build a stdarg.h substitute if requested.
41640         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41641
41642 2008-03-10  Bruno Haible  <bruno@clisp.org>
41643
41644         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41646         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41647
41648 2008-03-10  Bruno Haible  <bruno@clisp.org>
41649
41650         * modules/stdlib (Depends-on): Add include_next, remove
41651         absolute-header.
41652
41653 2008-03-09  Bruno Haible  <bruno@clisp.org>
41654
41655         * lib/freadahead.h (freadahead): Document more precisely.
41656         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41657         the sum of both buffer sizes.
41658         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41659         * NEWS: Document the change.
41660
41661 2008-03-09  Bruno Haible  <bruno@clisp.org>
41662
41663         Extend freadptr to return also the buffer size.
41664         * lib/freadptr.h (freadptr): Add sizep argument.
41665         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41666         (freadptr): Add sizep argument. Determine buffer size like freadahead
41667         does.
41668         * tests/test-freadptr.c: Don't include freadahead.h.
41669         (main): Adapt for new calling convention of freadptr.
41670         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41671         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41672         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41673         tests/test-freadptr2.sh.
41674         (Depends): Remove freadahead.
41675         (TESTS): Add test-freadptr2.sh.
41676         (check_PROGRAMS): Add test-freadptr2.
41677
41678 2008-03-09  Bruno Haible  <bruno@clisp.org>
41679
41680         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41681         Report and solution by Simon Josefsson.
41682
41683 2008-03-06  Bruno Haible  <bruno@clisp.org>
41684
41685         Make fflush after ungetc work on BSD platforms.
41686         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41687         * tests/test-fflush2.c: New file.
41688         * tests/test-fflush2.sh: New file.
41689         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41690         tests/test-fflush2.c.
41691         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41692         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41693
41694 2008-03-06  Eric Blake  <ebb9@byu.net>
41695
41696         Likewise for ftello.
41697         * modules/ftello (Dependencies): Add extensions.
41698         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41699
41700 2008-03-06  Bruno Haible  <bruno@clisp.org>
41701
41702         * modules/fseeko (Dependencies): Add extensions.
41703         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41704         Needed on glibc systems.
41705
41706 2008-03-06  Bruno Haible  <bruno@clisp.org>
41707
41708         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41709         email address.
41710         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41711
41712 2008-03-06  Bruno Haible  <bruno@clisp.org>
41713
41714         * users.txt: Add libgnupdf.
41715
41716 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41717
41718         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41719         (Header File Substitutes, Function Substitutes,
41720         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41721         (Build robot for gnulib): Fix typo.
41722
41723 2008-03-06  Bruno Haible  <bruno@clisp.org>
41724
41725         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41726         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41727
41728 2008-03-06  Bruno Haible  <bruno@clisp.org>
41729
41730         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41731         * doc/gnulib.texi: Include it.
41732
41733 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41734
41735         * modules/func (License): Change license to unlimited; there was
41736         no LGPL parts in the module anyway.
41737
41738 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41739
41740         * modules/__func__: Renamed to modules/func.
41741         * modules/__func__-tests: Renamed to modules/func-tests.
41742         * tests/test-__func__.c: Renamed to tests/test-func.c.
41743         * m4/__func__.m4: Renamed to m4/func.m4.
41744         * doc/gnulib.texi (__func__): Section renamed to func.
41745         Suggested by Eric Blake <ebb9@byu.net>.
41746
41747 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41748
41749         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41750         about __func__.  Make example self-contained.  Suggested by Eric
41751         Blake <ebb9@byu.net>.
41752
41753         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41754         Suggested by Eric Blake <ebb9@byu.net>.
41755
41756 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41757
41758         * modules/__func__: New file.
41759         * modules/__func__-tests: New file.
41760         * tests/test-__func__.c: New file.
41761         * m4/__func__.m4: New file.
41762         * doc/gnulib.texi (__func__): Document __func__ module.
41763
41764 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41765
41766         * modules/byteswap (License): Re-license as LGPLv2+.
41767
41768 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41769
41770         * doc/Makefile: Add pdf target.
41771
41772 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41773
41774         * modules/inline (License): Use 'unlimited', since there are only
41775         *.m4 files in this module.
41776
41777 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41778             Bruno Haible  <bruno@clisp.org>
41779
41780         Add support for HP C 7.1 on OpenVMS 8.3.
41781         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41782
41783 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41784
41785         Update VMS specifics.
41786         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41787
41788 2008-03-02  Jim Meyering  <meyering@redhat.com>
41789
41790         Remove the last dependency on the "free" module.
41791         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41792         Reported by Bob Proulx.
41793
41794         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41795
41796         Remove useless "if" tests before free.  Deprecate "free" module.
41797         * doc/posix-functions/free.texi: Mention that this
41798         module is no longer useful.
41799         * modules/free (Notice): Say this module is obsolete.
41800         * modules/readutmp (Depends-on): Remove free.
41801         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41802         * lib/putenv.c (putenv): Likewise.
41803         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41804         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41805         * tests/test-c-strcasestr.c (main): Likewise.
41806         * tests/test-c-strstr.c (main): Likewise.
41807         * tests/test-mbscasestr1.c (main): Likewise.
41808         * tests/test-mbscasestr2.c (main): Likewise.
41809         * tests/test-mbsstr1.c (main): Likewise.
41810         * tests/test-mbsstr2.c (main): Likewise.
41811         * tests/test-memmem.c (main): Likewise.
41812         * tests/test-strcasestr.c (main): Likewise.
41813         * tests/test-striconv.c (main): Likewise.
41814         * tests/test-striconveh.c (main): Likewise.
41815         * tests/test-striconveha.c (main): Likewise.
41816         * tests/test-strstr.c (main): Likewise.
41817
41818         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41819
41820         bootstrap: sync from coreutils again
41821         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41822
41823 2008-03-01  Jim Meyering  <meyering@redhat.com>
41824
41825         bootstrap: sync from coreutils
41826         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41827         also when the target doesn't exist.
41828
41829 2008-03-01  Eric Blake  <ebb9@byu.net>
41830
41831         Fix bugs in last patch.
41832         * lib/memchr2.c (memchr2): Fix typo.
41833         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41834         extension.
41835         Reported by Bruce Korb.
41836
41837         New module 'memchr2'.
41838         * modules/memchr2: New file.
41839         * modules/memchr2-tests: Likewise.
41840         * lib/memchr2.h: Likewise.
41841         * lib/memchr2.c: Likewise, based on memchr.c.
41842         * tests/test-memchr2.c: New test.
41843         * MODULES.html.sh (String handling): Add memchr2.
41844
41845 2008-02-29  Bruno Haible  <bruno@clisp.org>
41846
41847         * modules/freadseek-tests: New file.
41848         * tests/test-freadseek.sh: New file.
41849         * tests/test-freadseek.c: New file.
41850
41851         New module 'freadseek'.
41852         * modules/freadseek: New file.
41853         * lib/freadseek.h: New file.
41854         * lib/freadseek.c: New file.
41855         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41856
41857 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41858
41859         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41860         wydawca.
41861
41862         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41863         program_invocation_name and program_invocation_short_name are
41864         present.
41865
41866 2008-02-28  Bruno Haible  <bruno@clisp.org>
41867
41868         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41869         * tests/test-freadptr.sh: Also test non-seekable stdin.
41870
41871 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41872
41873         * build-aux/bootstrap (source_base, m4_base)
41874         (doc_base, tests_base): New variables.
41875         (gnulib_tool_options): Do not hardcode base directories, use
41876         the above variables instead.
41877
41878 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41879
41880         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41881
41882 2008-02-28  Bruno Haible  <bruno@clisp.org>
41883
41884         * modules/freadptr-tests: New file.
41885         * tests/test-freadptr.sh: New file.
41886         * tests/test-freadptr.c: New file.
41887
41888         New module 'freadptr'.
41889         * modules/freadptr: New file.
41890         * lib/freadptr.h: New file.
41891         * lib/freadptr.c: New file.
41892         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41893
41894 2008-02-26  Karl Berry  <karl@freefriends.org>
41895
41896         Sync from Libtool:
41897         * libltdl/argz.c (argz_add, argz_count): New functions.
41898         * libltdl/argz.in.h: Declare them.
41899         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41900
41901 2008-02-22  Bruno Haible  <bruno@clisp.org>
41902
41903         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41904         is a pointer type.  Needed for HP-UX 10.
41905         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41906         * doc/posix-functions/gmtime_r.texi: Likewise.
41907         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41908
41909 2008-02-24  Bruno Haible  <bruno@clisp.org>
41910
41911         * modules/environ-tests: New file.
41912         * tests/test-environ.c: New file.
41913
41914         New module 'environ'.
41915         * modules/environ: New file.
41916         * lib/unistd.in.h (environ): New declaration.
41917         * m4/environ.m4: New file.
41918         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41919         after use.
41920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41921         HAVE_DECL_ENVIRON.
41922         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41923         HAVE_DECL_ENVIRON.
41924         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41925         wrong claim that 'environ' is missing on some systems.
41926         * modules/execute (Depends-on): Add environ.
41927         * lib/execute.c (environ): Remove fallback declaration.
41928         * modules/pipe (Depends-on): Add environ.
41929         * lib/pipe.c (environ): Remove fallback declaration.
41930         * modules/setenv (Depends-on): Add environ.
41931         * lib/setenv.c (environ): Remove fallback declaration.
41932         * modules/unsetenv (Depends-on): Add environ.
41933         * lib/unsetenv.c (environ): Remove fallback declaration.
41934         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41935         m4/environ.m4.
41936         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41937         (gl_PREREQ_UNSETENV): Likewise.
41938
41939 2008-02-24  Bruno Haible  <bruno@clisp.org>
41940
41941         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41942
41943 2008-02-20  Bob Proulx  <bob@proulx.com>
41944
41945         Enable use of older two part flavor 'git describe'.
41946         * build-aux/git-version-gen: If using the older two part flavor of
41947         git version then recreate the third part now present in the
41948         newer three part flavor of git describe.
41949
41950 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41951
41952         * lib/fts.c (fts_build): Typo correction to comment.
41953
41954 2008-02-17  Bruno Haible  <bruno@clisp.org>
41955
41956         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41957         generating no-op conflicts.
41958
41959 2008-02-17  Bruno Haible  <bruno@clisp.org>
41960
41961         Speed up by 10%.
41962         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41963         result_entries, rather than an index-based loop.
41964
41965 2008-02-17  Bruno Haible  <bruno@clisp.org>
41966
41967         Speed up by 25%.
41968         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41969         'hashcode_cached'.
41970         (entry_create): New function.
41971         (entry_hashcode): Use the cached hashcode if possible.
41972         (read_changelog_file, try_split_merged_entry): Use entry_create.
41973
41974 2008-02-17  Bruno Haible  <bruno@clisp.org>
41975
41976         Speed up from O(n^2) to O(n) for long ChangeLog files.
41977         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41978         (read_changelog_file): Change implementation of entries_reversed list
41979         to rbtreehash.
41980         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41981
41982 2008-02-17  Bruno Haible  <bruno@clisp.org>
41983
41984         New option --split-merged-entry.
41985         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41986         (find_paragraph_end, try_split_merged_entry): New functions.
41987         (long_options): Add option --split-merged-entry.
41988         (usage): Document option --split-merged-entry.
41989         (main): Implement option --split-merged-entry.
41990         Reported by Eric Blake.
41991
41992 2008-02-17  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/git-merge-changelog.c: Include c-strstr.h.
41995         (main): Support the "git pull --rebase" situation.
41996         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41997         Reported by Eric Blake.
41998
41999 2008-02-16  Eric Blake  <ebb9@byu.net>
42000
42001         Avoid doubling \ in common case of "c-maybe" quoting style.
42002         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42003         eliding outer quotes.
42004         * lib/quotearg.h: Document this.
42005         * tests/test-quotearg.c (result_strings, inputs, results_g)
42006         (flag_results, locale_results): Test it by adding a new string to
42007         each test group.
42008         (compare_strings): Test new string.
42009
42010 2008-02-13  Eric Blake  <ebb9@byu.net>
42011
42012         Avoid trigraph quoting in default output.
42013         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42014         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42015         unless explicitly requested.
42016         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42017
42018 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42019
42020         Don't rely on signed integer overflowing to negative value.
42021         * lib/getugroups.c (getugroups): Include <limits.h>.
42022         Instead, compare against INT_MAX, and increment only if the test passes.
42023
42024 2008-02-13  Jim Meyering  <meyering@redhat.com>
42025         and Eric Blake  <ebb9@byu.net>
42026
42027         Avoid shadowing warning and compile errors on Linux.
42028         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42029         forwarding macros on Linux.
42030         (dcgettext): Define a stub, for Linux.
42031         (results_g, main): Avoid warnings.
42032
42033 2008-02-12  Eric Blake  <ebb9@byu.net>
42034
42035         Silence warning in last patch.
42036         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42037
42038         Quotearg part 4: add tests, fix c-maybe colon quoting.
42039         * lib/quotearg.h: Improve documentation.
42040         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42041         escapes when adding outer quotes.  When quoting trigraphs, use
42042         valid C notation.  When quoting NUL, omit extra characters if next
42043         character is not digit.  Alter prototype.
42044         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42045         callers.
42046         * modules/quotearg-tests: New module.
42047         * tests/test-quotearg.c: New test.
42048
42049 2008-02-07  Eric Blake  <ebb9@byu.net>
42050
42051         Quotearg part 3: add flag to control outer quote elision.
42052         * lib/quotearg.h (c_maybe_quoting_style): New style.
42053         (enum quoting_flags): Better documentation of flags.
42054         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42055         c-maybe style.
42056         (quotearg_buffer_restyled): Handle new flag to elide outer
42057         quotes.
42058
42059         Quotearg part 2: add flag that can control NUL elision.
42060         * lib/quotearg.h (set_quoting_flags): New prototype.
42061         * lib/quotearg.c (struct quoting_options): Add flag field.
42062         (set_quoting_flags): New function.
42063         (quotearg_buffer_restyled): Add flags parameter.
42064         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42065         (quotearg_n_options): Set the flag, since length cannot be
42066         returned.
42067         (quoting_options_from_style): Default flags correctly.
42068
42069         Quotearg part 1: more wrappers, restore quotearg_char state.
42070         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42071         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42072         (quotearg_colon_mem): New wrappers.
42073         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42074         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42075         functions.
42076         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42077         (quotearg_colon_mem): New functions.
42078
42079 2008-02-11  Bruno Haible  <bruno@clisp.org>
42080
42081         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42082         library in the current directory: it does not work with parallel make.
42083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42084
42085 2008-02-11  Bruno Haible  <bruno@clisp.org>
42086
42087         * .gitattributes: New file.
42088
42089 2008-02-11  Jim Meyering  <meyering@redhat.com>
42090
42091         useless-if-before-free: Fix reversed exit values.
42092         * build-aux/useless-if-before-free: Use correct values
42093         for EXIT_MATCH and EXIT_NO_MATCH.
42094
42095         * build-aux/useless-if-before-free: Close stdout carefully.
42096
42097 2008-02-10  Bruno Haible  <bruno@clisp.org>
42098
42099         New module 'git-merge-changelog'.
42100         * modules/git-merge-changelog: New file.
42101         * lib/git-merge-changelog.c: New file.
42102
42103 2008-02-10  Jim Meyering  <meyering@redhat.com>
42104
42105         useless-if-before-free: New option: --list (-l).
42106
42107         useless-if-before-free: Don't exit immediately upon open failure.
42108         * build-aux/useless-if-before-free: Exit 2 for errors.
42109         Upon failure to open a file, don't exit immediately.
42110         Rather, just warn and continue with any remaining files.
42111
42112 2008-02-10  Bruno Haible  <bruno@clisp.org>
42113
42114         New abstract list operation 'node_set_value'.
42115         * lib/gl_list.h (gl_list_node_set_value): New function.
42116         (struct gl_list_implementation): New field node_set_value.
42117         * lib/gl_list.c (gl_list_node_set_value): New function.
42118         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42119         (gl_array_list_implementation): Update.
42120         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42121         (gl_carray_list_implementation): Update.
42122         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42123         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42124         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42125         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42126         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42127         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42128         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42129         Update.
42130         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42131         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42132         (gl_sublist_list_implementation): Update.
42133
42134 2008-02-10  Bruno Haible  <bruno@clisp.org>
42135
42136         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42137         Needed when ELEMENT is #defined to 'some_type *'.
42138
42139 2008-02-10  Jim Meyering  <meyering@redhat.com>
42140
42141         New script and module: useless-if-before-free
42142         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42143         * build-aux/useless-if-before-free: New file.
42144         * modules/useless-if-before-free: New file.
42145
42146         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42147
42148         xstrtol_error: Fix typo.
42149         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42150         s/exit_failure/exit_status/.
42151
42152 2008-02-09  Jim Meyering  <meyering@redhat.com>
42153
42154         New script and module: gitlog-to-changelog
42155         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42156         * modules/gitlog-to-changelog: New file.
42157         * build-aux/gitlog-to-changelog: New file.
42158
42159 2008-02-08  Jim Meyering  <meyering@redhat.com>
42160
42161         Avoid two "parameter unused" warnings.
42162         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42163         Mark "st" as used.
42164
42165         Use "git COMMAND", not "git-COMMAND".
42166         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42167         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42168         * build-aux/git-version-gen: Use "git status", not "git-status".
42169
42170 2008-02-07  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42173         Avoids a crash on Windows Vista.
42174         Reported by Adam Strzelecki <ono@java.pl> via
42175         Simon Josefsson <simon@josefsson.org>.
42176
42177 2008-02-06  Bruno Haible  <bruno@clisp.org>
42178
42179         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42180         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42181         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42183         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42185         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42186         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42194         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42195         left-adjust flag.
42196         * tests/test-snprintf-posix.h (test_function): Likewise.
42197         * tests/test-sprintf-posix.h (test_function): Likewise.
42198         * tests/test-vasprintf-posix.c (test_function): Likewise.
42199         * doc/posix-functions/fprintf.texi: Update.
42200         * doc/posix-functions/printf.texi: Update.
42201         * doc/posix-functions/snprintf.texi: Update.
42202         * doc/posix-functions/sprintf.texi: Update.
42203         * doc/posix-functions/vfprintf.texi: Update.
42204         * doc/posix-functions/vprintf.texi: Update.
42205         * doc/posix-functions/vsnprintf.texi: Update.
42206         * doc/posix-functions/vsprintf.texi: Update.
42207         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42208
42209 2008-02-06  Bruno Haible  <bruno@clisp.org>
42210
42211         Fix bug introduced on 2008-01-26.
42212         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42213
42214 2008-02-06  Bruno Haible  <bruno@clisp.org>
42215
42216         Fix bug introduced on 2007-06-10.
42217         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42218         !NEED_PRINTF_FLAG_ZERO.
42219
42220 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42221
42222         getloadavg: use libperfstat on AIX5
42223         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42224
42225 2008-02-03  Bruno Haible  <bruno@clisp.org>
42226
42227         * lib/diffseq.h: Add comments about required #includes.
42228         Reported by Michael Biggs <gnulib@doubleplum.net>.
42229
42230 2008-02-01  Bruno Haible  <bruno@clisp.org>
42231
42232         * users.txt: Add gnuit.
42233
42234 2008-01-31  Bruno Haible  <bruno@clisp.org>
42235
42236         * lib/md4.c (set_uint32): Mark as inline.
42237         * lib/md5.c (set_uint32): Likewise.
42238         * lib/sha1.c (set_uint32): Likewise.
42239         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42240         * m4/md5.m4 (gl_MD5): Likewise.
42241         * m4/sha1.m4 (gl_SHA1): Likewise.
42242
42243 2008-01-31  Jim Meyering  <meyering@redhat.com>
42244
42245         Use "sizeof VAR", rather than a literal "4".
42246         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42247         * lib/md4.c (md4_read_ctx): Likewise.
42248         * lib/sha1.c (sha1_read_ctx): Likewise.
42249
42250 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42251
42252         * tests/test-sha1.c: New file, based on test-md5.c.
42253
42254         * modules/crypto/sha1-tests: New file.
42255
42256 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42257
42258         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42259
42260 2008-01-31  Jim Meyering  <meyering@redhat.com>
42261
42262         Prefer "sizeof v" over the equivalent "4".
42263         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42264         * lib/md5.c (set_uint32): Likewise.
42265         * lib/sha1.c (set_uint32): Likewise.
42266
42267 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42268
42269         * lib/sha1.c (set_uint32): Mark function as static.
42270
42271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42272
42273         md2: clarify comments to say that alignment is not required.
42274         * lib/md2.h: Remove warning about alignment in comment.
42275         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42276         never been required.
42277
42278 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42279
42280         md4: adapt alignment constraint fix from sha1.
42281         * lib/md4.c (set_uint32): New function, from sha1.c
42282         (md4_read_ctx): Use it.
42283         (md4_finish_ctx): Doc fix.
42284         * lib/md4.h: Doc fix.
42285
42286 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42287
42288         md5: adapt alignment constraint fix from sha1.
42289         * lib/md5.c (set_uint32): New function, from sha1.c
42290         (md5_read_ctx): Use it.
42291         (md5_finish_ctx): Doc fix.
42292         * lib/md5.h: Doc fix.
42293
42294 2008-01-30  Peter Palfrader  <weasel@debian.org>
42295
42296         sha1: remove the result buffer alignment constraint
42297         * lib/sha1.c (set_uint32): New function.
42298         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42299         constraint.
42300         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42301         * lib/sha1.h: Likewise.
42302
42303 2008-01-30  Andreas Schwab  <schwab@suse.de>
42304             Bruno Haible  <bruno@clisp.org>
42305
42306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42307         correct definition of LDBL_MIN_EXP.
42308
42309 2008-01-30  Karl Berry  <karl@gnu.org>
42310
42311         * config/srclist-update: try to preserve x bit on updates.
42312         * config/srclistvars.sh: update for karl.
42313
42314 2008-01-29  Jim Meyering  <meyering@redhat.com>
42315
42316         vasnprintf.c: Avoid warning about unused label
42317         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42318         "overflow" label definition and associated code with the
42319         same cpp condition that guards the sole use of that label.
42320
42321 2008-01-26  Bruno Haible  <bruno@clisp.org>
42322
42323         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42324         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42325         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42326         * lib/isnanl-nolibm.h (isnanl): Likewise.
42327         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42328
42329 2008-01-26  Bruno Haible  <bruno@clisp.org>
42330
42331         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42332         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42333
42334 2008-01-26  Bruno Haible  <bruno@clisp.org>
42335
42336         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42337         GCC >= 4.0 built-in.
42338         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42339
42340 2008-01-26  Bruno Haible  <bruno@clisp.org>
42341
42342         Rename isnan, applicable to 'double' only, to isnand.
42343         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42344         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42345         (configure.ac): Update.
42346         (Include): Replace "isnan.h" with "isnand.h".
42347         * m4/isnand.m4: Renamed from m4/isnan.m4.
42348         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42349         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42350         instead of isnan.c.
42351         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42352         instead of HAVE_ISNAN_IN_LIBC.
42353         (isnand): Renamed from isnan.
42354         * lib/isnand.c: New file.
42355         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42356         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42357         (Makefile.am): Update.
42358         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42359         Include isnand.h instead of isnan.h.
42360         (main): Test isnand instead of isnan.
42361         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42362         isnan-nolibm.
42363         * modules/frexp (Depends-on): Likewise.
42364         * modules/frexp-tests (Depends-on): Likewise.
42365         * modules/frexp-nolibm (Depends-on): Likewise.
42366         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42367         * modules/isfinite (Depends-on): Likewise.
42368         * modules/round-tests (Depends-on): Likewise.
42369         * modules/signbit (Depends-on): Likewise.
42370         * modules/signbit-tests (Depends-on): Likewise.
42371         * modules/snprintf-posix (Depends-on): Likewise.
42372         * modules/sprintf-posix (Depends-on): Likewise.
42373         * modules/trunc-tests (Depends-on): Likewise.
42374         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42375         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42376         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42377         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42378         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42379         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42380         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42381         * modules/vasnprintf-posix (Depends-on): Likewise.
42382         * modules/vasprintf-posix (Depends-on): Likewise.
42383         * modules/vfprintf-posix (Depends-on): Likewise.
42384         * modules/vsnprintf-posix (Depends-on): Likewise.
42385         * modules/vsprintf-posix (Depends-on): Likewise.
42386         * lib/frexp.c: Include isnand.h instead of isnan.h.
42387         (ISNAN): Set to isnand instead of isnan.
42388         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42389         (gl_isfinited): Use isnand instead of isnan.
42390         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42391         (gl_signbitd): Use isnand instead of isnan.
42392         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42393         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42394         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42395         (main): Use isnand instead of isnan.
42396         * tests/test-round1.c: Include isnand.h.
42397         (main): Use isnand instead of isnan.
42398         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42399         (ISNAN): Set to isnand instead of isnan.
42400         * tests/test-trunc1.c: Include isnand.h.
42401         (main): Use isnand instead of isnan.
42402         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42403         (equal): Use isnand instead of isnan.
42404         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42405         isnand-nolibm.
42406         * NEWS: Mention the change.
42407
42408 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42409             Bruno Haible  <bruno@clisp.org>
42410
42411         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42412         the GCC builtins for signbits are present and set
42413         REPLACE_SIGNBIT_USING_GCC if so.
42414         * lib/math.in.h (signbit): Define using GCC builtins if
42415         REPLACE_SIGNBIT_USING_GCC is set.
42416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42417         REPLACE_SIGNBIT_USING_GCC.
42418         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42419
42420 2008-01-25  Jim Meyering  <meyering@redhat.com>
42421
42422         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42423         * lib/poll.c: Include <config.h>, not "config.h".
42424         * tests/test-getaddrinfo.c: Likewise.
42425
42426 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42427
42428         * modules/sockets-tests: New file.
42429
42430 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42431
42432         * modules/sockets: New module, can be used to call WSA_Startup and
42433         WSA_Cleanup when needed.
42434
42435         * lib/sockets.h, lib/sockets.c: New files.
42436
42437         * m4/sockets.m4: New file.
42438
42439         * tests/test-sockets.c: New file.
42440
42441 2008-01-19  Bruno Haible  <bruno@clisp.org>
42442
42443         * doc/posix-headers: Renamed from doc/headers.
42444         * doc/posix-functions: Renamed from doc/functions.
42445         * doc/gnulib.texi: Update.
42446
42447 2008-01-19  Bruno Haible  <bruno@clisp.org>
42448
42449         * doc/glibc-functions/strcasestr.texi: Include contents of
42450         doc/functions/strcasestr.texi, fixing the list of platforms.
42451         * doc/functions/strcasestr.texi: Remove file.
42452
42453 2008-01-19  Bruno Haible  <bruno@clisp.org>
42454
42455         * doc/glibc-functions/memmem.texi: Include contents of
42456         doc/functions/memmem.texi.
42457         * doc/functions/memmem.texi: Remove file.
42458
42459 2008-01-18  Bruno Haible  <bruno@clisp.org>
42460
42461         * doc/glibc-functions/*.texi: New files.
42462         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42463         to use the new files.
42464
42465 2008-01-17  Bruno Haible  <bruno@clisp.org>
42466
42467         * tests/test-gethostname.c (main): Fix printf statement.
42468
42469 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42470
42471         * modules/gethostname-tests: New file.
42472
42473         * tests/test-gethostname.c: New file.
42474
42475 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42476
42477         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42478         used by the UNAME case.  Reported by Bruno Haible
42479         <bruno@clisp.org>.
42480
42481 2008-01-17  Eric Blake  <ebb9@byu.net>
42482
42483         Convert c-strcasestr to be more efficient.
42484         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42485         (Depends-on): Add c-strcase, remove malloca, strnlen.
42486         * tests/test-c-strcasestr.c (main): Enhance test.
42487         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42488
42489 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42490
42491         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42492         Use it in creating po/Makevars.
42493
42494 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42495
42496         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42497         Applications that requires it should initialize libgcrypt
42498         manually.
42499
42500 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42501
42502         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42503
42504 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42505
42506         Fix problem with getdate on mingw32 reported by Simon Josefsson
42507         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42508         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42509         tzname", when deciding whether to declare tzname.
42510         * lib/strftime.c (tzname): Likewise.
42511
42512 2008-01-15  Bruno Haible  <bruno@clisp.org>
42513
42514         Work around a MacOS X 10.5 bug in frexpl().
42515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42516         * doc/functions/frexpl.texi: Document the bug.
42517         Reported by Elias Pipping <pipping@gentoo.org>.
42518
42519 2008-01-14  Eric Blake  <ebb9@byu.net>
42520
42521         Touch up previous patch.
42522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42523         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42524
42525         Convert strcasestr module to use Two-Way algorithm.
42526         * modules/strcasestr-simple: New module, based on the old
42527         strcasestr, but with Two-Way rather than KMP.
42528         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42529         * lib/string.in.h (rpl_strcasestr): Declare.
42530         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42531         performance.
42532         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42533         * modules/string (Makefile.am): Support strcasestr.
42534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42535         * modules/strcasestr-tests (Depends-on): Check for alarm.
42536         * tests/test-strcasestr.c: Augment test.
42537         * lib/str-two-way.h: Clean up stray macro.
42538         * NEWS: Document new module.
42539         * MODULES.html.sh (string handling): Likewise.
42540         * doc/functions/strcasestr.texi: New file.
42541         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42542         here, since it is not a POSIX function.
42543
42544 2008-01-14  Colin Watson  <cjwatson@debian.org>
42545             Bruno Haible  <bruno@clisp.org>
42546
42547         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42548         works fine; if not, set REPLACE_STRSIGNAL.
42549         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42551         REPLACE_STRSIGNAL.
42552         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42553         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42554         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42555
42556 2008-01-14  Bruno Haible  <bruno@clisp.org>
42557
42558         * modules/strsignal (Include): Change to <string.h>.
42559
42560 2008-01-14  Colin Watson  <cjwatson@debian.org>
42561
42562         * modules/argp (Notice): Add a notice recommending to change
42563         XGETTEXT_OPTIONS.
42564         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42565
42566 2008-01-13  Colin Watson  <cjwatson@debian.org>
42567
42568         * modules/strsignal-tests: New file.
42569         * tests/test-strsignal.c: New file.
42570
42571         * lib/strsignal.c: New file, from glibc with modifications.
42572         * lib/siglist.h: New file, from glibc with modifications.
42573         * lib/string.in.h (strsignal): New declaration.
42574         * m4/strsignal.m4: New file.
42575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42576         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42577         * modules/strsignal: New file.
42578         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42579         HAVE_DECL_STRSIGNAL.
42580
42581 2008-01-13  Bruno Haible  <bruno@clisp.org>
42582
42583         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42584         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42585         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42586         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42587
42588 2008-01-13  Bruno Haible  <bruno@clisp.org>
42589
42590         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42591         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42592         * lib/argp.h (__attribute__): Likewise.
42593         * lib/c-stack.c (__attribute__): Likewise.
42594         * lib/error.h (__attribute__): Likewise.
42595         * lib/fts.c (__attribute__): Likewise.
42596         * lib/openat.h (__attribute__): Likewise.
42597         * lib/stdio.in.h (__attribute__): Likewise.
42598         * lib/string.in.h (__attribute__): Likewise.
42599         * lib/utimens.c (__attribute__): Likewise.
42600         * lib/vasnprintf.h (__attribute__): Likewise.
42601         * lib/xalloc.h (__attribute__): Likewise.
42602         * lib/xprintf.h (__attribute__): Likewise.
42603         * lib/xstrtol.h (__attribute__): Likewise.
42604         * lib/xvasprintf.h (__attribute__): Likewise.
42605
42606 2008-01-12  Bruno Haible  <bruno@clisp.org>
42607
42608         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42609         * doc/glibc-headers/a.out.texi: New file.
42610         * doc/glibc-headers/aliases.texi: New file.
42611         * doc/glibc-headers/alloca.texi: New file.
42612         * doc/glibc-headers/ar.texi: New file.
42613         * doc/glibc-headers/argp.texi: New file.
42614         * doc/glibc-headers/argz.texi: New file.
42615         * doc/glibc-headers/byteswap.texi: New file.
42616         * doc/glibc-headers/crypt.texi: New file.
42617         * doc/glibc-headers/endian.texi: New file.
42618         * doc/glibc-headers/envz.texi: New file.
42619         * doc/glibc-headers/err.texi: New file.
42620         * doc/glibc-headers/error.texi: New file.
42621         * doc/glibc-headers/execinfo.texi: New file.
42622         * doc/glibc-headers/fpu_control.texi: New file.
42623         * doc/glibc-headers/fstab.texi: New file.
42624         * doc/glibc-headers/fts.texi: New file.
42625         * doc/glibc-headers/getopt.texi: New file.
42626         * doc/glibc-headers/ieee754.texi: New file.
42627         * doc/glibc-headers/ifaddrs.texi: New file.
42628         * doc/glibc-headers/libintl.texi: New file.
42629         * doc/glibc-headers/mcheck.texi: New file.
42630         * doc/glibc-headers/mntent.texi: New file.
42631         * doc/glibc-headers/obstack.texi: New file.
42632         * doc/glibc-headers/paths.texi: New file.
42633         * doc/glibc-headers/printf.texi: New file.
42634         * doc/glibc-headers/pty.texi: New file.
42635         * doc/glibc-headers/resolv.texi: New file.
42636         * doc/glibc-headers/shadow.texi: New file.
42637         * doc/glibc-headers/sysexits.texi: New file.
42638         * doc/glibc-headers/ttyent.texi: New file.
42639
42640 2008-01-12  Jim Meyering  <meyering@redhat.com>
42641
42642         announce-gen: emit Gnulib's git-based version string.
42643         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42644         New option --gnulib-version=V, where V is expected to be
42645         the output of running git describe in the gnulib directory.
42646         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42647         not useful, and plan to stop publishing an xdelta file with each
42648         coreutils release.
42649
42650         * build-aux/announce-gen: Also check for lzma-compressed files.
42651
42652 2008-01-11  Bruno Haible  <bruno@clisp.org>
42653
42654         * tests/test-memmem.c (main): Increase maximum allowed time.
42655         * tests/test-strstr.c (main): Likewise.
42656
42657 2008-01-11  Bruno Haible  <bruno@clisp.org>
42658
42659         * doc/functions/memmem.texi: Add more precisions about platforms.
42660         * doc/functions/strstr.texi: Likewise.
42661
42662 2008-01-10  Eric Blake  <ebb9@byu.net>
42663
42664         * m4/strstr.m4: Delete cruft from copy-n-paste.
42665         Reported by Bruno Haible.
42666
42667 2008-01-10  Bruno Haible  <bruno@clisp.org>
42668
42669         Make c-strstr rely on strstr.
42670         * lib/c-strstr.c: Don't include str-kmp.h.
42671         (c_strstr): Define in terms of strstr.
42672         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42673         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42674
42675 2008-01-10  Bruno Haible  <bruno@clisp.org>
42676
42677         * doc/gnulib.texi (String Functions in C Locale): New section.
42678         * doc/c-ctype.texi: New file.
42679         * doc/c-strcase.texi: New file.
42680         * doc/c-strcaseeq.texi: New file.
42681         * doc/c-strcasestr.texi: New file.
42682         * doc/c-strstr.texi: New file.
42683         * doc/c-strtod.texi: New file.
42684         * doc/c-strtold.texi: New file.
42685
42686 2008-01-10  Eric Blake  <ebb9@byu.net>
42687
42688         * lib/relocatable.h: Fix a comment.
42689
42690 2008-01-10  Eric Blake  <ebb9@byu.net>
42691
42692         Share two-way algorithm.
42693         * lib/str-two-way.h: New file, merged from...
42694         * lib/memmem.c: ...here...
42695         * lib/strstr.c: ...and here.
42696         * modules/memmem (Files): Use it.
42697         * modules/strstr (Files): Likewise.
42698
42699         Avoid quadratic strstr implementations.
42700         * lib/strstr.c: New file.
42701         * m4/strstr.m4: Likewise.
42702         * modules/strstr: Likewise.
42703         * modules/strstr-tests: Likewise.
42704         * tests/test-strstr.c: Likewise.
42705         * lib/string.in.h (rpl_strstr): Declare.
42706         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42708         * modules/string (Makefile.am): Likewise.
42709         * MODULES.html.sh (string handling): Mention new module.
42710         * doc/functions/strstr.texi (strstr): Document the bug.
42711
42712 2008-01-10  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/relocatable.h (relocate): State whether result is freshly
42715         allocated or not.
42716         * lib/relocatable.c (relocate): Return a freshly allocated string
42717         instead of a pointer to a privately held string.
42718         Reported by Sylvain Beucler <beuc@gnu.org>.
42719
42720 2008-01-10  Colin Watson  <cjwatson@debian.org>
42721
42722         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42723         s/S_ISNLK/S_ISLNK/.
42724
42725 2008-01-09  Bruno Haible  <bruno@clisp.org>
42726
42727         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42728         and other files.
42729         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42730         if it's only a guess.
42731         * modules/memmem: Simplify by depending on memmem-simple.
42732
42733 2008-01-09  Bruno Haible  <bruno@clisp.org>
42734
42735         Work around OpenBSD 4.0 tdelete() bug.
42736         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42737         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42738         macros and don't redefine the enum values.
42739         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42740         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42741         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42742
42743 2008-01-09  Bruno Haible  <bruno@clisp.org>
42744
42745         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42746         (main): Don't perform the tests if setlocale did not install a UTF-8
42747         locale. Needed on OpenBSD 4.0.
42748         * modules/wcwidth-tests (Depends-on): Add localcharset.
42749
42750 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42751
42752         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42753         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42754         * NEWS: announce this.
42755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42756
42757 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42758         and Eric Blake  <ebb9@byu.net>
42759
42760         Add memmem-simple module.
42761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42762         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42763         * modules/memmem-simple: New file.
42764         * modules/memmem (Description): Tweak.
42765         * MODULES.html.sh (string handling): Mention new module.
42766         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42767         addressed by memmem-simple.
42768         * NEWS: Document the difference.
42769
42770 2008-01-09  Eric Blake  <ebb9@byu.net>
42771
42772         Give gcc some memmem optimization hints.
42773         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42774         (strcasestr): Declare as pure.
42775         * modules/memmem (Maintainer): Claim my implementation.
42776
42777 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42778
42779         Support AIX 6.1 and higher.
42780         * build-aux/config.libpath: Likewise.
42781         * build-aux/config.rpath: Likewise.
42782
42783 2008-01-08  Jim Meyering  <meyering@redhat.com>
42784             Bruno Haible  <bruno@clisp.org>
42785
42786         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42787         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42788         Reported by Peter Fales in
42789         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42790
42791 2008-01-08  Bruno Haible  <bruno@clisp.org>
42792
42793         * modules/unictype/category-of (Depends-on): Add
42794         unictype/category-none.
42795         * modules/unictype/category-and-tests (Depends-on): Add
42796         unictype/category-{L,N,Lu,Nd}.
42797         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42798         * modules/unictype/category-or-tests (Depends-on): Add
42799         unictype/category-{L,N}.
42800         * modules/unictype/category-name-tests (Depends-on): Add
42801         unictype/category-{Z,Nl}.
42802         Reported by Simon Josefsson.
42803
42804 2008-01-08  Bruno Haible  <bruno@clisp.org>
42805
42806         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42807         convention better.
42808         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42809         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42810         Reported by Peter Miller <millerp@canb.auug.org.au>.
42811
42812 2008-01-08  Eric Blake  <ebb9@byu.net>
42813
42814         Rewrite memmem to guarantee linear complexity without malloc.
42815         * lib/memmem.c (memmem): Use Two-Way rather than
42816         Knuth-Morris-Pratt, to allow O(1) space usage.
42817         (critical_factorization, two_way_short_needle)
42818         (two_way_long_needle): New functions.
42819         (knuth_morris_pratt): Delete.
42820         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42821         Add stdint.
42822         * tests/test-memmem.c (main): Add tests for periodic needle and
42823         sublinear performance.
42824         * doc/functions/memmem.texi (memmem): Document other deficiencies
42825         in cygwin and older glibc.
42826
42827 2008-01-08  Bruno Haible  <bruno@clisp.org>
42828
42829         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42830         augmentation.
42831
42832 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42833
42834         Add a configure time option: --disable-acl.
42835         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42836         AC_ARG_ENABLE(acl).
42837
42838 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42839
42840         * tests/test-localename.c: Don't include obsolete "setenv.h".
42841
42842         * modules/localename-tests (Depends-on): Need unsetenv.
42843
42844 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42845
42846         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42847
42848 2008-01-06  Colin Watson  <cjwatson@debian.org>
42849
42850         * users.txt: Add man-db.
42851
42852 2008-01-07  Bruno Haible  <bruno@clisp.org>
42853
42854         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42855         previous section name.
42856
42857 2008-01-07  Bruno Haible  <bruno@clisp.org>
42858
42859         * lib/progname.c (set_program_name): Don't strip off a leading
42860         "lt-" prefix outside a .libs directory.
42861         Suggested by Paul Eggert.
42862
42863 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42864             Bruno Haible  <bruno@clisp.org>
42865
42866         Improve memory cleanup in 'relocatable' module.
42867         * lib/relocatable.h (compute_curr_prefix): Change return type to
42868         'char *'.
42869         * lib/relocatable.c (compute_curr_prefix): Change return type to
42870         'char *'. Free curr_installdir after use.
42871         (relocate): Free curr_prefix_better after use.
42872         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42873
42874 2008-01-01  Bruno Haible  <bruno@clisp.org>
42875
42876         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42877         failure on older glibc systems.
42878         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42879
42880 2008-01-05  Eric Blake  <ebb9@byu.net>
42881
42882         Avoid quadratic system memmem.
42883         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42884         Reported by Ralf Wildenhues.
42885
42886         Fix memmem test for mingw.
42887         * modules/memmem-tests (configure.ac): Check for alarm.
42888         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42889         it.
42890         * doc/functions/memmem.texi: New file.
42891         * doc/gnulib.texi (Function Substitutes): Add memmem.
42892         Reported by Bruno Haible.
42893
42894 2008-01-04  Bruno Haible  <bruno@clisp.org>
42895
42896         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42897         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42898         gl_HEADER_STRING_H_DEFAULTS.
42899
42900 2008-01-04  Eric Blake  <ebb9@byu.net>
42901
42902         Shorten duration of memmem test.
42903         * tests/test-memmem.c (main): Use alarm to declare failure if test
42904         is taking too long.
42905         Reported by Ralf Wildenhues.
42906
42907 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42908
42909         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42910         string, needed by strerror.
42911
42912 2008-01-03  Colin Watson  <cjwatson@debian.org>
42913             Bruno Haible  <bruno@clisp.org>
42914
42915         * doc/gnulib-tool.texi (Localization): New section.
42916
42917 2008-01-02  Bruno Haible  <bruno@clisp.org>
42918
42919         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42920         variables to 'unsigned char *' type.
42921         Reported by Paul Eggert.
42922
42923 2008-01-02  Jim Meyering  <jim@meyering.net>
42924
42925         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42926
42927 2007-12-31  Jim Meyering  <jim@meyering.net>
42928
42929         Avoid use of private FTS type name.
42930         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42931
42932 2007-12-30  Karl Berry  <karl@gnu.org>
42933
42934         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42935         work around defect in Texinfo and/or the standalone Info browser.
42936
42937 2007-12-30  Bruno Haible  <bruno@clisp.org>
42938
42939         Unify 5 copies of the KMP code.
42940         * lib/str-kmp.h: New file.
42941         * lib/c-strcasestr.c: Include str-kmp.h.
42942         (knuth_morris_pratt): Remove function.
42943         (c_strcasestr): Update.
42944         * lib/c-strstr.c: Include str-kmp.h.
42945         (knuth_morris_pratt): Remove function.
42946         (c_strcasestr): Update.
42947         * lib/mbscasestr.c: Include str-kmp.h.
42948         (knuth_morris_pratt_unibyte): Remove function.
42949         * lib/mbsstr.c: Include str-kmp.h.
42950         (knuth_morris_pratt_unibyte): Remove function.
42951         * lib/strcasestr.c: Include str-kmp.h.
42952         (knuth_morris_pratt): Remove function.
42953         (strcasestr): Update.
42954         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42955         * modules/c-strstr (Files): Likewise.
42956         * modules/mbscasestr (Files): Likewise.
42957         * modules/mbsstr (Files): Likewise.
42958         * modules/strcasestr (Files): Likewise.
42959         Suggested by Paul Eggert.
42960
42961 2007-12-30  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42964         defined.
42965
42966 2007-12-30  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/xmalloca.h: Include xalloc.h.
42969         (xnmalloca): New macro.
42970
42971 2007-12-30  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/malloca.h (nmalloca): New macro.
42974         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42975         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42976         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42977         knuth_morris_pratt_multibyte): Likewise.
42978         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42979         knuth_morris_pratt_multibyte): Likewise.
42980         * lib/memmem.c (knuth_morris_pratt): Likewise.
42981         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42982
42983 2007-12-25  Bruno Haible  <bruno@clisp.org>
42984
42985         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42986         * lib/glob.c: Don't include openat.h.
42987         (link_exists2_p): Add back the code that deals with the
42988         !GLOB_ALTDIRFUNC case.
42989         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42990         let it do the filename concatenation.
42991         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42992         * modules/glob (Depends-on): Remove openat.
42993
42994 2007-12-31  Bruno Haible  <bruno@clisp.org>
42995
42996         * modules/dirfd (License): Change to LGPLv2+.
42997         Approved by Jim Meyering.
42998
42999 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43000
43001         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43002         when multiplying M by sizeof (size_t).
43003
43004 2007-12-10  Martin Lambers  <marlam@marlam.de>
43005
43006         Override getpagesize on mingw.
43007         * lib/getpagesize.c: New file.
43008         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43009         * modules/getpagesize (Files): Add lib/getpagesize.c.
43010         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43012         REPLACE_GETPAGESIZE.
43013         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43014
43015 2007-12-25  Bruno Haible  <bruno@clisp.org>
43016
43017         * modules/localcharset (Notice): New field.
43018         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43019         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43020
43021 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43022             Bruno Haible  <bruno@clisp.org>
43023
43024         Avoid using the syntax symbol() in formatted documentation.
43025         * MODULES.html.sh (func_module): When replacing symbol() with a
43026         hyperlink, remove the parentheses. Show an error if some remain.
43027         Recognize and render the '...' syntax.
43028         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43029         Rework. Add paragraph about GCC's inlining.
43030         * doc/alloca.texi: Likewise.
43031         * doc/error.texi: Remove parentheses from symbol reference.
43032         * doc/gnulib-intro.texi: Likewise.
43033         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43034         * modules/fnmatch (Description): Reword to say "the ... function".
43035         * modules/full-read (Description): Likewise.
43036         * modules/full-write (Description): Likewise.
43037         * modules/safe-read (Description): Likewise.
43038         * modules/safe-write (Description): Likewise.
43039         * modules/strchrnul (Description): Likewise.
43040         * modules/trim (Description): Likewise.
43041         * modules/error (Description): Remove parentheses from symbol
43042         references.
43043         * modules/verror (Description): Likewise.
43044         Reported by Karl Berry.
43045
43046 2007-12-25  Bruno Haible  <bruno@clisp.org>
43047
43048         Fixup after 2007-10-16 commit.
43049         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43050
43051 2007-12-24  Bruno Haible  <bruno@clisp.org>
43052
43053         Make --enable-relocatable work with DESTDIR.
43054         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43055         to compute installdir from destprog.
43056         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43057         also set the RELOC_DESTDIR variable.
43058         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43059
43060 2007-12-24  Bruno Haible  <bruno@clisp.org>
43061
43062         Fix link error due to xalloc_die().
43063         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43064         of xreadlink.
43065         * lib/relocwrapper.c: Update comments.
43066         * build-aux/install-reloc: Remove xreadlink.c from file list.
43067         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43068         xreadlink.c.
43069         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43070
43071 2007-12-24  Bruno Haible  <bruno@clisp.org>
43072
43073         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43074         * lib/setenv.h: Remove file.
43075         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43076         lib/setenv.h.
43077         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43078         (Depends-on): Add stdlib.
43079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43080         gl_FUNC_UNSETENV.
43081         (Include): Replace setenv.h with <stdlib.h>.
43082         * modules/unsetenv: New file.
43083         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43084         * lib/unsetenv.c: Include <stdlib.h> first.
43085         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43086         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43087         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43088         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43089         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43090         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43092         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43093         * doc/functions/unsetenv.texi: Update.
43094         * modules/xsetenv (Depends-on): Add unsetenv.
43095         * modules/getdate (Depends-on): Likewise.
43096         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43097         * lib/xsetenv.c: Don't include setenv.h.
43098         * lib/getdate.y: Likewise.
43099         * lib/relocwrapper.c: Likewise.
43100         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43101         (Depends-on): Add stdlib.
43102         * NEWS: Mention the changes.
43103         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43104
43105 2007-12-23  Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43108         indentation.
43109
43110 2007-12-23  Bruno Haible  <bruno@clisp.org>
43111
43112         * lib/c-strcasestr.c: Add more comments.
43113         * lib/c-strstr.c: Likewise.
43114         * lib/mbscasestr.c: Likewise.
43115         * lib/mbsstr.c: Likewise.
43116         * lib/strcasestr.c: Likewise.
43117         * lib/memmem.c: Likewise.
43118
43119 2007-12-23  Bruno Haible  <bruno@clisp.org>
43120
43121         * tests/test-memmem.c: Include <string.h> first.
43122
43123 2007-12-22  Bruno Haible  <bruno@clisp.org>
43124
43125         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43126         the contents of $testsbase.
43127         Reported by Ralf Wildenhues.
43128
43129 2007-12-22  Bruno Haible  <bruno@clisp.org>
43130
43131         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43132         two variables local_ldadd_before, local_ldadd_last.
43133
43134 2007-12-20  Eric Blake  <ebb9@byu.net>
43135
43136         Work around circular library issue when cross-compiling.
43137         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43138         that progname.o does not need to pull in rpl_memcmp.
43139
43140 2007-12-19  Eric Blake  <ebb9@byu.net>
43141
43142         Fix memmem to avoid O(n^2) worst-case complexity.
43143         * lib/memmem.c (knuth_morris_pratt): New function.
43144         (memmem): Use it if first few naive iterations fail.
43145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43146         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43147         * modules/memchr (License): Likewise.
43148         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43149         malloca.
43150         * tests/test-memmem.c: Rewrite, borrowing ideas from
43151         test-mbsstr1.c; the old version wouldn't even compile!
43152         * modules/memmem-tests: New file.
43153         * lib/string.in.h (rpl_memmem): Add declaration.
43154         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43156         REPLACE_MEMMEM.
43157
43158 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43159
43160         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43161         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43162         before any system include files, and undef after them all.  This
43163         should fix a problem on VMS reported by John E. Malmberg in
43164         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43165
43166 2007-12-17  Eric Blake  <ebb9@byu.net>
43167
43168         Revert addition of verify, for BSD/OS.
43169         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43170         can't handle large files, for the sake of obsolete platforms.
43171         * modules/fseeko (Depends-on): Remove verify.
43172         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43173         * doc/functions/ftello.texi (ftello): Likewise.
43174         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43175         Reported by Larry Jones.
43176
43177 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43178
43179         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43180         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43181
43182 2007-12-17  Jim Meyering  <meyering@redhat.com>
43183
43184         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43185         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43186         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43187         * modules/getcwd (Depends-on): Add openat.
43188         Reported by Petr Salinger.
43189
43190 2007-12-17  Bruno Haible  <bruno@clisp.org>
43191
43192         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43193         avoid a segmentation fault of the configure test on x86_64 systems.
43194
43195 2007-12-15  Jim Meyering  <meyering@redhat.com>
43196
43197         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43198
43199 2007-12-13  Eric Blake  <ebb9@byu.net>
43200
43201         Another fseek test.
43202         * tests/test-fseek.c (main): Also test ungetc handling.
43203         * tests/test-fseeko.c (main): Likewise.
43204         * modules/fseeko (Depends-on): Add verify.
43205         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43206         large.
43207         Reported by Larry Jones.
43208
43209         Fix fseeko on mingw.
43210         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43211         seek.
43212
43213         Beef up fseek tests.
43214         * tests/test-fseek.c (main): Also test eof handling.
43215         * tests/test-fseeko.c (main): Likewise.
43216         Reported by Larry Jones.
43217
43218 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43219
43220         Fix fseeko on BSD-based platforms.
43221         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43222         successful seek.
43223
43224 2007-12-12  Eric Blake  <ebb9@byu.net>
43225
43226         Allow circular dependency of separate libtests.a
43227         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43228         when use_libtests.
43229
43230 2007-12-11  Eric Blake  <ebb9@byu.net>
43231
43232         Fix bug with -0.0L in previous patch.
43233         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43234         * tests/test-isnan.c (main): Also test on zeroes.
43235         * tests/test-isnanf.c (main): Likewise.
43236         * tests/test-isnanl.h (main): Likewise.
43237
43238         Detect pseudo-denormals on x86 even when cross-compiling.
43239         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43240         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43241         invalid bit patterns that happen to satisfy ==.
43242
43243         Avoid link failures with separate libtests.a.
43244         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43245         last, to satisfy circular dependencies.
43246
43247 2007-12-11  Eric Blake  <ebb9@byu.net>
43248         and Bruno Haible  <bruno@clisp.org>
43249
43250         Fix OpenBSD 4.0 <float.h> handling of long double.
43251         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43252         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43253         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43254
43255 2007-12-11  Jim Meyering  <meyering@redhat.com>
43256
43257         * users.txt: Add libvirt.
43258
43259         Support versions of autoconf prior to 2.59c.
43260         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43261         if it is not already defined.
43262
43263 2007-12-09  Bruno Haible  <bruno@clisp.org>
43264
43265         Let 'gnulib-tool --import' collect sources needed for the tests in
43266         tests/ rather than in lib/.
43267         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43268         argument. If true, add rules to generate libtests.a, and put libtests.a
43269         into $(LDADD). Consider source files in subdirectories and set
43270         uses_subdirs.
43271         (func_emit_initmacro_start, func_emit_initmacro_end,
43272         func_emit_initmacro_done): Pass all arguments explicitly.
43273         (func_import): Determine two module lists main_modules,
43274         testsrelated_modules. Determine use_libtests. Determine two variables
43275         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43276         instead of just sed_transform_lib_file. Determine two variables
43277         main_files and testsrelated_files. Compute 'files' as the union of
43278         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43279         func_add_or_update. In the generated gnulib-comp.m4, collect the
43280         object files for tests/ in different variables than those for lib/.
43281         Substitute LIBTESTS_LIBDEPS.
43282         (func_create_testdir): Combine the uses_subdirs results from
43283         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43284
43285 2007-12-09  Bruno Haible  <bruno@clisp.org>
43286
43287         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43288         the build-aux directory.
43289
43290 2007-12-09  Bruno Haible  <bruno@clisp.org>
43291
43292         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43293         introduced on 2006-09-09.
43294
43295 2007-12-07  Jim Meyering  <meyering@redhat.com>
43296
43297         Let these macros work also with autoconf-2.59.
43298         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43299         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43300         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43301
43302 2007-12-06  Jim Meyering  <meyering@redhat.com>
43303
43304         Avoid a configure-time syntax error in gl_FUNC_ACL.
43305         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43306         function in each branch, before testing the cache variable.
43307
43308 2007-12-04  Eric Blake  <ebb9@byu.net>
43309
43310         Make scripts executable.
43311         * build-aux/config.guess: Add execute permissions.
43312         * build-aux/config.sub: Likewise.
43313         * build-aux/gendocs.sh: Likewise.
43314
43315         Fix frexp on mingw.
43316         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43317         cross-compiling.
43318         * doc/functions/frexp.texi (frexp): Document the bug.
43319
43320         Make cygwin fseeko check more reliable.
43321         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43322         version numbers, rather than unrelated feature check.
43323         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43324         * doc/functions/ftello.texi (ftello): Likewise.
43325         Reported by Bruno Haible.
43326
43327         * m4/strerror.m4: Bump version number.
43328
43329 2007-12-03  Bruno Haible  <bruno@clisp.org>
43330
43331         * doc/functions/mprotect.texi: Mention the mingw problem.
43332
43333 2007-12-03  Eric Blake  <ebb9@byu.net>
43334
43335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43336         REPLACE_STRERROR is initialized before this macro.
43337
43338 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43339
43340         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43341         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43342         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43343         put -lsec in even for programs other than 'ls'.  This fixes a problem
43344         for gettext reported by Bruno Haible in
43345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43346         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43347         Add support for Solaris 10.  This isn't efficient, but should get the
43348         job done for now.
43349
43350 2007-12-03  James Youngman  <jay@gnu.org>
43351
43352         * doc/regexprops-generic.texi: change "an close-group" to "a
43353         close-group" and "illegal" to "not allowed".
43354
43355 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43356
43357         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43358         pr_byname.h. Needed for the rare case when the maintainer has done
43359         "make maintainer-clean" in the source directory and then attempts a
43360         build outside the source directory.
43361         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43362         scripts_byname.h.
43363
43364 2007-12-02  Martin Lambers <marlam@marlam.de>
43365             Bruno Haible  <bruno@clisp.org>
43366
43367         * lib/getpagesize.h: Remove file.
43368         * lib/unistd.in.h: Include declaration of getpagesize here.
43369         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43370         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43371         HAVE_SYS_PARAM_H.
43372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43373         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43374         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43375         (Depends-on): Add unistd.
43376         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43377         (Include): Use <unistd.h> instead of getpagesize.h.
43378         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43379         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43380         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43381         gl_GETPAGESIZE invocation, already handled by module dependency.
43382         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43383
43384 2007-12-02  Bruno Haible  <bruno@clisp.org>
43385
43386         * modules/strings-tests: New file.
43387         * tests/test-strings.c: New file.
43388
43389         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43390         * lib/strings.in.h: New file.
43391         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43392         * m4/strings_h.m4: New file.
43393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43394         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43395         * modules/strings: New file.
43396         * modules/string (Makefile.am): Update.
43397         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43398         Reported by Karl Berry.
43399
43400 2007-12-01  Eric Blake  <ebb9@byu.net>
43401
43402         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43403         accomodate fix in cygwin 1.5.25.
43404
43405 2007-12-01  Jim Meyering  <meyering@redhat.com>
43406
43407         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43408         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43409         that would inhibit utf8-optimization of a regexp containing line-
43410         or buffer-anchors, e.g., `^', `$'.
43411
43412 2007-11-30  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43415         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43416         glthread_recursive_lock_init.
43417         * lib/lock.c (glthread_recursive_lock_init)
43418         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43419         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43420
43421 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43422
43423         New function qset_acl, like set_acl but with syscall semantics.
43424         * lib/acl.h (qset_acl): New decl.
43425         * lib/acl.c (qset_acl): New function.
43426         (set_acl): Use new function.  Use more-consistent diagnostics.
43427
43428 2007-11-28  Jim Meyering  <meyering@redhat.com>
43429
43430         * modules/physmem (License): Change from GPL to LGPLv2+.
43431
43432 2007-11-26  Bruno Haible  <bruno@clisp.org>
43433
43434         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43435         'long double' type has excess precision.
43436         Reported by Jim Meyering in
43437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43438
43439 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43440
43441         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43442         Sync from <http://gnu.org/licenses>.
43443         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43444         with license text from same location.
43445         * doc/maintain.texi, doc/standards.texi:  Sync from
43446         <http://savannah.gnu.org/projects/gnustandards>.
43447
43448 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43449         and Jim Meyering  <meyering@redhat.com>
43450
43451         Adjust getdate' grammar to accept a slightly more regular language.
43452         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43453         Before, the former was rejected.
43454         * lib/getdate.y (digits_to_date_time): New function, factored
43455         out of ...
43456         (number): ...here.  Just call digits_to_date_time.
43457         (hybrid): New non-terminal to handle an <unsigned number,
43458         signed relative offset> sequence consistently.
43459
43460 2007-11-18  Jim Meyering  <meyering@redhat.com>
43461
43462         Pull my changes from coreutils:
43463         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43464         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43465         use of $gnulib_tool_option_extras, so that it's separated from the
43466         preceding argument.
43467
43468         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43469         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43470         parent destination directories before copying a file into place.
43471
43472 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43473
43474         bootstrap: work also with 4-argument variant of AC_INIT
43475         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43476
43477 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43478
43479         Port test-getaddrinfo to Solaris.
43480         Problem reported by Bruno Haible in
43481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43482         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43483         explanation of setting 'hints'.
43484         Don't reject an implementation merely because it returns EAI_SERVICE.
43485         (EAI_SERVICE): Define to 0 if not defined.
43486
43487 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43488
43489         The license of gnu-make and posix-shell is now "GPLed build tool".
43490         * modules/gnu-make (License): Likewise.
43491         * modules/posix-shell (License): Likewise.
43492
43493         New module posix-shell, for determining a POSIX shell
43494         or perhaps something that is close enough to a POSIX shell.
43495         * m4/posix-shell.m4: New file.
43496         * modules/posix-shell: New file.
43497
43498         * MODULES.html.sh: Mention new module.
43499
43500         New module gnu-make, for determining whether we're using GNU Make.
43501         * m4/gnu-make.m4: New file.
43502         * modules/gnu-make: New file.
43503         * MODULES.html.sh: Mention new module.
43504
43505 2007-11-14  Jim Meyering  <meyering@redhat.com>
43506
43507         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43508         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43509         use this macro to create a function _definition_.
43510         Remove useless "#undef ARGMATCH_DIE".
43511
43512 2007-11-14  Bruno Haible  <bruno@clisp.org>
43513
43514         * lib/config.charset: Update for OpenBSD 4.1.
43515         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43516
43517 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43518
43519         Document 64-bit #if problems in stdint.texi.
43520         * doc/headers/stdint.texi (stdint.h): Mention problems with
43521         64-bit-#if, and how to work around them.
43522
43523         Don't insist on 'long long int' support in the preprocessor.  It
43524         breaks too many things.  For example, PRIdMAX still uses a 'long
43525         long int' format with the latest Sun compiler, even though
43526         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43527         preprocessor problem.  This causes the latest coreutils to dump
43528         core on Solaris 10 sparc with the Sun C compiler.
43529         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43530         the troublesome expressions at configure-time, not at #if-time.
43531         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43532         preprocessor.
43533         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43534         compile-time C checks, done at 'configure'-time.
43535         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43536         * modules/inttypes (Makefile): Substitute the new symbols that
43537         gl_INTTYPES_H now generates.
43538         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43539
43540 2007-11-12  Bruno Haible  <bruno@clisp.org>
43541
43542         Tests for Unicode character classification functions.
43543
43544         * modules/unictype/bidicategory-byname-tests: New file.
43545         * modules/unictype/bidicategory-name-tests: New file.
43546         * modules/unictype/bidicategory-of-tests: New file.
43547         * modules/unictype/bidicategory-test-tests: New file.
43548         * modules/unictype/block-list-tests: New file.
43549         * modules/unictype/block-of-tests: New file.
43550         * modules/unictype/block-test-tests: New file.
43551         * modules/unictype/category-C-tests: New file.
43552         * modules/unictype/category-Cc-tests: New file.
43553         * modules/unictype/category-Cf-tests: New file.
43554         * modules/unictype/category-Cn-tests: New file.
43555         * modules/unictype/category-Co-tests: New file.
43556         * modules/unictype/category-Cs-tests: New file.
43557         * modules/unictype/category-L-tests: New file.
43558         * modules/unictype/category-Ll-tests: New file.
43559         * modules/unictype/category-Lm-tests: New file.
43560         * modules/unictype/category-Lo-tests: New file.
43561         * modules/unictype/category-Lt-tests: New file.
43562         * modules/unictype/category-Lu-tests: New file.
43563         * modules/unictype/category-M-tests: New file.
43564         * modules/unictype/category-Mc-tests: New file.
43565         * modules/unictype/category-Me-tests: New file.
43566         * modules/unictype/category-Mn-tests: New file.
43567         * modules/unictype/category-N-tests: New file.
43568         * modules/unictype/category-Nd-tests: New file.
43569         * modules/unictype/category-Nl-tests: New file.
43570         * modules/unictype/category-No-tests: New file.
43571         * modules/unictype/category-P-tests: New file.
43572         * modules/unictype/category-Pc-tests: New file.
43573         * modules/unictype/category-Pd-tests: New file.
43574         * modules/unictype/category-Pe-tests: New file.
43575         * modules/unictype/category-Pf-tests: New file.
43576         * modules/unictype/category-Pi-tests: New file.
43577         * modules/unictype/category-Po-tests: New file.
43578         * modules/unictype/category-Ps-tests: New file.
43579         * modules/unictype/category-S-tests: New file.
43580         * modules/unictype/category-Sc-tests: New file.
43581         * modules/unictype/category-Sk-tests: New file.
43582         * modules/unictype/category-Sm-tests: New file.
43583         * modules/unictype/category-So-tests: New file.
43584         * modules/unictype/category-Z-tests: New file.
43585         * modules/unictype/category-Zl-tests: New file.
43586         * modules/unictype/category-Zp-tests: New file.
43587         * modules/unictype/category-Zs-tests: New file.
43588         * modules/unictype/category-and-not-tests: New file.
43589         * modules/unictype/category-and-tests: New file.
43590         * modules/unictype/category-byname-tests: New file.
43591         * modules/unictype/category-name-tests: New file.
43592         * modules/unictype/category-none-tests: New file.
43593         * modules/unictype/category-of-tests: New file.
43594         * modules/unictype/category-or-tests: New file.
43595         * modules/unictype/category-test-withtable-tests: New file.
43596         * modules/unictype/combining-class-tests: New file.
43597         * modules/unictype/ctype-alnum-tests: New file.
43598         * modules/unictype/ctype-alpha-tests: New file.
43599         * modules/unictype/ctype-blank-tests: New file.
43600         * modules/unictype/ctype-cntrl-tests: New file.
43601         * modules/unictype/ctype-digit-tests: New file.
43602         * modules/unictype/ctype-graph-tests: New file.
43603         * modules/unictype/ctype-lower-tests: New file.
43604         * modules/unictype/ctype-print-tests: New file.
43605         * modules/unictype/ctype-punct-tests: New file.
43606         * modules/unictype/ctype-space-tests: New file.
43607         * modules/unictype/ctype-upper-tests: New file.
43608         * modules/unictype/ctype-xdigit-tests: New file.
43609         * modules/unictype/decimal-digit-tests: New file.
43610         * modules/unictype/digit-tests: New file.
43611         * modules/unictype/mirror-tests: New file.
43612         * modules/unictype/numeric-tests: New file.
43613         * modules/unictype/property-alphabetic-tests: New file.
43614         * modules/unictype/property-ascii-hex-digit-tests: New file.
43615         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43616         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43617         * modules/unictype/property-bidi-block-separator-tests: New file.
43618         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43619         * modules/unictype/property-bidi-common-separator-tests: New file.
43620         * modules/unictype/property-bidi-control-tests: New file.
43621         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43622         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43623         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43624         * modules/unictype/property-bidi-european-digit-tests: New file.
43625         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43626         * modules/unictype/property-bidi-left-to-right-tests: New file.
43627         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43628         * modules/unictype/property-bidi-other-neutral-tests: New file.
43629         * modules/unictype/property-bidi-pdf-tests: New file.
43630         * modules/unictype/property-bidi-segment-separator-tests: New file.
43631         * modules/unictype/property-bidi-whitespace-tests: New file.
43632         * modules/unictype/property-byname-tests: New file.
43633         * modules/unictype/property-combining-tests: New file.
43634         * modules/unictype/property-composite-tests: New file.
43635         * modules/unictype/property-currency-symbol-tests: New file.
43636         * modules/unictype/property-dash-tests: New file.
43637         * modules/unictype/property-decimal-digit-tests: New file.
43638         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43639         * modules/unictype/property-deprecated-tests: New file.
43640         * modules/unictype/property-diacritic-tests: New file.
43641         * modules/unictype/property-extender-tests: New file.
43642         * modules/unictype/property-format-control-tests: New file.
43643         * modules/unictype/property-grapheme-base-tests: New file.
43644         * modules/unictype/property-grapheme-extend-tests: New file.
43645         * modules/unictype/property-grapheme-link-tests: New file.
43646         * modules/unictype/property-hex-digit-tests: New file.
43647         * modules/unictype/property-hyphen-tests: New file.
43648         * modules/unictype/property-id-continue-tests: New file.
43649         * modules/unictype/property-id-start-tests: New file.
43650         * modules/unictype/property-ideographic-tests: New file.
43651         * modules/unictype/property-ids-binary-operator-tests: New file.
43652         * modules/unictype/property-ids-trinary-operator-tests: New file.
43653         * modules/unictype/property-ignorable-control-tests: New file.
43654         * modules/unictype/property-iso-control-tests: New file.
43655         * modules/unictype/property-join-control-tests: New file.
43656         * modules/unictype/property-left-of-pair-tests: New file.
43657         * modules/unictype/property-line-separator-tests: New file.
43658         * modules/unictype/property-logical-order-exception-tests: New file.
43659         * modules/unictype/property-lowercase-tests: New file.
43660         * modules/unictype/property-math-tests: New file.
43661         * modules/unictype/property-non-break-tests: New file.
43662         * modules/unictype/property-not-a-character-tests: New file.
43663         * modules/unictype/property-numeric-tests: New file.
43664         * modules/unictype/property-other-alphabetic-tests: New file.
43665         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43666         * modules/unictype/property-other-grapheme-extend-tests: New file.
43667         * modules/unictype/property-other-id-continue-tests: New file.
43668         * modules/unictype/property-other-id-start-tests: New file.
43669         * modules/unictype/property-other-lowercase-tests: New file.
43670         * modules/unictype/property-other-math-tests: New file.
43671         * modules/unictype/property-other-uppercase-tests: New file.
43672         * modules/unictype/property-paired-punctuation-tests: New file.
43673         * modules/unictype/property-paragraph-separator-tests: New file.
43674         * modules/unictype/property-pattern-syntax-tests: New file.
43675         * modules/unictype/property-pattern-white-space-tests: New file.
43676         * modules/unictype/property-private-use-tests: New file.
43677         * modules/unictype/property-punctuation-tests: New file.
43678         * modules/unictype/property-quotation-mark-tests: New file.
43679         * modules/unictype/property-radical-tests: New file.
43680         * modules/unictype/property-sentence-terminal-tests: New file.
43681         * modules/unictype/property-soft-dotted-tests: New file.
43682         * modules/unictype/property-space-tests: New file.
43683         * modules/unictype/property-terminal-punctuation-tests: New file.
43684         * modules/unictype/property-test-tests: New file.
43685         * modules/unictype/property-titlecase-tests: New file.
43686         * modules/unictype/property-unassigned-code-value-tests: New file.
43687         * modules/unictype/property-unified-ideograph-tests: New file.
43688         * modules/unictype/property-uppercase-tests: New file.
43689         * modules/unictype/property-variation-selector-tests: New file.
43690         * modules/unictype/property-white-space-tests: New file.
43691         * modules/unictype/property-xid-continue-tests: New file.
43692         * modules/unictype/property-xid-start-tests: New file.
43693         * modules/unictype/property-zero-width-tests: New file.
43694         * modules/unictype/scripts-tests: New file.
43695         * modules/unictype/syntax-c-ident-tests: New file.
43696         * modules/unictype/syntax-c-whitespace-tests: New file.
43697         * modules/unictype/syntax-java-ident-tests: New file.
43698         * modules/unictype/syntax-java-whitespace-tests: New file.
43699         * tests/unictype/test-bidi_byname.c: New file.
43700         * tests/unictype/test-bidi_name.c: New file.
43701         * tests/unictype/test-bidi_of.c: New file.
43702         * tests/unictype/test-bidi_test.c: New file.
43703         * tests/unictype/test-block_list.c: New file.
43704         * tests/unictype/test-block_of.c: New file.
43705         * tests/unictype/test-block_test.c: New file.
43706         * tests/unictype/test-categ_and.c: New file.
43707         * tests/unictype/test-categ_and_not.c: New file.
43708         * tests/unictype/test-categ_byname.c: New file.
43709         * tests/unictype/test-categ_name.c: New file.
43710         * tests/unictype/test-categ_none.c: New file.
43711         * tests/unictype/test-categ_of.c: New file.
43712         * tests/unictype/test-categ_or.c: New file.
43713         * tests/unictype/test-categ_test_withtable.c: New file.
43714         * tests/unictype/test-combining.c: New file.
43715         * tests/unictype/test-decdigit.c: New file.
43716         * tests/unictype/test-digit.c: New file.
43717         * tests/unictype/test-mirror.c: New file.
43718         * tests/unictype/test-numeric.c: New file.
43719         * tests/unictype/test-pr_byname.c: New file.
43720         * tests/unictype/test-pr_test.c: New file.
43721         * tests/unictype/test-predicate-part1.h: New file.
43722         * tests/unictype/test-predicate-part2.h: New file.
43723         * tests/unictype/test-scripts.c: New file.
43724         * tests/unictype/test-sy_c_ident.c: New file.
43725         * tests/unictype/test-sy_java_ident.c: New file.
43726
43727         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43728         for Unicode 5.0.0.
43729         * tests/unictype/test-categ_Cc.c: Likewise.
43730         * tests/unictype/test-categ_Cf.c: Likewise.
43731         * tests/unictype/test-categ_Cn.c: Likewise.
43732         * tests/unictype/test-categ_Co.c: Likewise.
43733         * tests/unictype/test-categ_Cs.c: Likewise.
43734         * tests/unictype/test-categ_L.c: Likewise.
43735         * tests/unictype/test-categ_Ll.c: Likewise.
43736         * tests/unictype/test-categ_Lm.c: Likewise.
43737         * tests/unictype/test-categ_Lo.c: Likewise.
43738         * tests/unictype/test-categ_Lt.c: Likewise.
43739         * tests/unictype/test-categ_Lu.c: Likewise.
43740         * tests/unictype/test-categ_M.c: Likewise.
43741         * tests/unictype/test-categ_Mc.c: Likewise.
43742         * tests/unictype/test-categ_Me.c: Likewise.
43743         * tests/unictype/test-categ_Mn.c: Likewise.
43744         * tests/unictype/test-categ_N.c: Likewise.
43745         * tests/unictype/test-categ_Nd.c: Likewise.
43746         * tests/unictype/test-categ_Nl.c: Likewise.
43747         * tests/unictype/test-categ_No.c: Likewise.
43748         * tests/unictype/test-categ_P.c: Likewise.
43749         * tests/unictype/test-categ_Pc.c: Likewise.
43750         * tests/unictype/test-categ_Pd.c: Likewise.
43751         * tests/unictype/test-categ_Pe.c: Likewise.
43752         * tests/unictype/test-categ_Pf.c: Likewise.
43753         * tests/unictype/test-categ_Pi.c: Likewise.
43754         * tests/unictype/test-categ_Po.c: Likewise.
43755         * tests/unictype/test-categ_Ps.c: Likewise.
43756         * tests/unictype/test-categ_S.c: Likewise.
43757         * tests/unictype/test-categ_Sc.c: Likewise.
43758         * tests/unictype/test-categ_Sk.c: Likewise.
43759         * tests/unictype/test-categ_Sm.c: Likewise.
43760         * tests/unictype/test-categ_So.c: Likewise.
43761         * tests/unictype/test-categ_Z.c: Likewise.
43762         * tests/unictype/test-categ_Zl.c: Likewise.
43763         * tests/unictype/test-categ_Zp.c: Likewise.
43764         * tests/unictype/test-categ_Zs.c: Likewise.
43765         * tests/unictype/test-ctype_alnum.c: Likewise.
43766         * tests/unictype/test-ctype_alpha.c: Likewise.
43767         * tests/unictype/test-ctype_blank.c: Likewise.
43768         * tests/unictype/test-ctype_cntrl.c: Likewise.
43769         * tests/unictype/test-ctype_digit.c: Likewise.
43770         * tests/unictype/test-ctype_graph.c: Likewise.
43771         * tests/unictype/test-ctype_lower.c: Likewise.
43772         * tests/unictype/test-ctype_print.c: Likewise.
43773         * tests/unictype/test-ctype_punct.c: Likewise.
43774         * tests/unictype/test-ctype_space.c: Likewise.
43775         * tests/unictype/test-ctype_upper.c: Likewise.
43776         * tests/unictype/test-ctype_xdigit.c: Likewise.
43777         * tests/unictype/test-decdigit.h: Likewise.
43778         * tests/unictype/test-digit.h: Likewise.
43779         * tests/unictype/test-numeric.h: Likewise.
43780         * tests/unictype/test-pr_alphabetic.c: Likewise.
43781         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43782         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43783         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43784         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43785         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43786         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43787         * tests/unictype/test-pr_bidi_control.c: Likewise.
43788         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43789         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43790         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43791         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43792         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43793         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43794         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43795         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43796         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43797         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43798         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43799         * tests/unictype/test-pr_combining.c: Likewise.
43800         * tests/unictype/test-pr_composite.c: Likewise.
43801         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43802         * tests/unictype/test-pr_dash.c: Likewise.
43803         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43804         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43805         * tests/unictype/test-pr_deprecated.c: Likewise.
43806         * tests/unictype/test-pr_diacritic.c: Likewise.
43807         * tests/unictype/test-pr_extender.c: Likewise.
43808         * tests/unictype/test-pr_format_control.c: Likewise.
43809         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43810         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43811         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43812         * tests/unictype/test-pr_hex_digit.c: Likewise.
43813         * tests/unictype/test-pr_hyphen.c: Likewise.
43814         * tests/unictype/test-pr_id_continue.c: Likewise.
43815         * tests/unictype/test-pr_id_start.c: Likewise.
43816         * tests/unictype/test-pr_ideographic.c: Likewise.
43817         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43818         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43819         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43820         * tests/unictype/test-pr_iso_control.c: Likewise.
43821         * tests/unictype/test-pr_join_control.c: Likewise.
43822         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43823         * tests/unictype/test-pr_line_separator.c: Likewise.
43824         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43825         * tests/unictype/test-pr_lowercase.c: Likewise.
43826         * tests/unictype/test-pr_math.c: Likewise.
43827         * tests/unictype/test-pr_non_break.c: Likewise.
43828         * tests/unictype/test-pr_not_a_character.c: Likewise.
43829         * tests/unictype/test-pr_numeric.c: Likewise.
43830         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43831         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43832         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43833         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43834         * tests/unictype/test-pr_other_id_start.c: Likewise.
43835         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43836         * tests/unictype/test-pr_other_math.c: Likewise.
43837         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43838         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43839         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43840         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43841         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43842         * tests/unictype/test-pr_private_use.c: Likewise.
43843         * tests/unictype/test-pr_punctuation.c: Likewise.
43844         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43845         * tests/unictype/test-pr_radical.c: Likewise.
43846         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43847         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43848         * tests/unictype/test-pr_space.c: Likewise.
43849         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43850         * tests/unictype/test-pr_titlecase.c: Likewise.
43851         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43852         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43853         * tests/unictype/test-pr_uppercase.c: Likewise.
43854         * tests/unictype/test-pr_variation_selector.c: Likewise.
43855         * tests/unictype/test-pr_white_space.c: Likewise.
43856         * tests/unictype/test-pr_xid_continue.c: Likewise.
43857         * tests/unictype/test-pr_xid_start.c: Likewise.
43858         * tests/unictype/test-pr_zero_width.c: Likewise.
43859         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43860         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43861
43862 2007-11-12  Bruno Haible  <bruno@clisp.org>
43863
43864         Unicode character classification functions.
43865         * lib/unictype.h: New file.
43866         * modules/unictype/base: New file.
43867         * modules/unictype/category-L: New file.
43868         * modules/unictype/category-Lu: New file.
43869         * modules/unictype/category-Ll: New file.
43870         * modules/unictype/category-Lt: New file.
43871         * modules/unictype/category-Lm: New file.
43872         * modules/unictype/category-Lo: New file.
43873         * modules/unictype/category-M: New file.
43874         * modules/unictype/category-Mn: New file.
43875         * modules/unictype/category-Mc: New file.
43876         * modules/unictype/category-Me: New file.
43877         * modules/unictype/category-N: New file.
43878         * modules/unictype/category-Nd: New file.
43879         * modules/unictype/category-Nl: New file.
43880         * modules/unictype/category-No: New file.
43881         * modules/unictype/category-P: New file.
43882         * modules/unictype/category-Pc: New file.
43883         * modules/unictype/category-Pd: New file.
43884         * modules/unictype/category-Ps: New file.
43885         * modules/unictype/category-Pe: New file.
43886         * modules/unictype/category-Pi: New file.
43887         * modules/unictype/category-Pf: New file.
43888         * modules/unictype/category-Po: New file.
43889         * modules/unictype/category-S: New file.
43890         * modules/unictype/category-Sm: New file.
43891         * modules/unictype/category-Sc: New file.
43892         * modules/unictype/category-Sk: New file.
43893         * modules/unictype/category-So: New file.
43894         * modules/unictype/category-Z: New file.
43895         * modules/unictype/category-Zs: New file.
43896         * modules/unictype/category-Zl: New file.
43897         * modules/unictype/category-Zp: New file.
43898         * modules/unictype/category-C: New file.
43899         * modules/unictype/category-Cc: New file.
43900         * modules/unictype/category-Cf: New file.
43901         * modules/unictype/category-Cs: New file.
43902         * modules/unictype/category-Co: New file.
43903         * modules/unictype/category-Cn: New file.
43904         * modules/unictype/category-or: New file.
43905         * modules/unictype/category-of: New file.
43906         * modules/unictype/category-test: New file.
43907         * modules/unictype/category-test-withtable: New file.
43908         * modules/unictype/category-byname: New file.
43909         * modules/unictype/category-none: New file.
43910         * modules/unictype/category-and: New file.
43911         * modules/unictype/category-and-not: New file.
43912         * modules/unictype/category-name: New file.
43913         * modules/unictype/combining-class: New file.
43914         * modules/unictype/category-all: New file.
43915         * modules/unictype/bidicategory-all: New file.
43916         * modules/unictype/bidicategory-byname: New file.
43917         * modules/unictype/bidicategory-name: New file.
43918         * modules/unictype/bidicategory-of: New file.
43919         * modules/unictype/bidicategory-test: New file.
43920         * modules/unictype/decimal-digit: New file.
43921         * modules/unictype/digit: New file.
43922         * modules/unictype/numeric: New file.
43923         * modules/unictype/mirror: New file.
43924         * modules/unictype/property-white-space: New file.
43925         * modules/unictype/property-alphabetic: New file.
43926         * modules/unictype/property-other-alphabetic: New file.
43927         * modules/unictype/property-not-a-character: New file.
43928         * modules/unictype/property-default-ignorable-code-point: New file.
43929         * modules/unictype/property-other-default-ignorable-code-point: New
43930         file.
43931         * modules/unictype/property-deprecated: New file.
43932         * modules/unictype/property-logical-order-exception: New file.
43933         * modules/unictype/property-variation-selector: New file.
43934         * modules/unictype/property-private-use: New file.
43935         * modules/unictype/property-unassigned-code-value: New file.
43936         * modules/unictype/property-uppercase: New file.
43937         * modules/unictype/property-other-uppercase: New file.
43938         * modules/unictype/property-lowercase: New file.
43939         * modules/unictype/property-other-lowercase: New file.
43940         * modules/unictype/property-titlecase: New file.
43941         * modules/unictype/property-soft-dotted: New file.
43942         * modules/unictype/property-id-start: New file.
43943         * modules/unictype/property-other-id-start: New file.
43944         * modules/unictype/property-id-continue: New file.
43945         * modules/unictype/property-other-id-continue: New file.
43946         * modules/unictype/property-xid-start: New file.
43947         * modules/unictype/property-xid-continue: New file.
43948         * modules/unictype/property-pattern-white-space: New file.
43949         * modules/unictype/property-pattern-syntax: New file.
43950         * modules/unictype/property-join-control: New file.
43951         * modules/unictype/property-grapheme-base: New file.
43952         * modules/unictype/property-grapheme-extend: New file.
43953         * modules/unictype/property-other-grapheme-extend: New file.
43954         * modules/unictype/property-grapheme-link: New file.
43955         * modules/unictype/property-bidi-control: New file.
43956         * modules/unictype/property-bidi-left-to-right: New file.
43957         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43958         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43959         * modules/unictype/property-bidi-european-digit: New file.
43960         * modules/unictype/property-bidi-eur-num-separator: New file.
43961         * modules/unictype/property-bidi-eur-num-terminator: New file.
43962         * modules/unictype/property-bidi-arabic-digit: New file.
43963         * modules/unictype/property-bidi-common-separator: New file.
43964         * modules/unictype/property-bidi-block-separator: New file.
43965         * modules/unictype/property-bidi-segment-separator: New file.
43966         * modules/unictype/property-bidi-whitespace: New file.
43967         * modules/unictype/property-bidi-non-spacing-mark: New file.
43968         * modules/unictype/property-bidi-boundary-neutral: New file.
43969         * modules/unictype/property-bidi-pdf: New file.
43970         * modules/unictype/property-bidi-embedding-or-override: New file.
43971         * modules/unictype/property-bidi-other-neutral: New file.
43972         * modules/unictype/property-hex-digit: New file.
43973         * modules/unictype/property-ascii-hex-digit: New file.
43974         * modules/unictype/property-ideographic: New file.
43975         * modules/unictype/property-unified-ideograph: New file.
43976         * modules/unictype/property-radical: New file.
43977         * modules/unictype/property-ids-binary-operator: New file.
43978         * modules/unictype/property-ids-trinary-operator: New file.
43979         * modules/unictype/property-zero-width: New file.
43980         * modules/unictype/property-space: New file.
43981         * modules/unictype/property-non-break: New file.
43982         * modules/unictype/property-iso-control: New file.
43983         * modules/unictype/property-format-control: New file.
43984         * modules/unictype/property-dash: New file.
43985         * modules/unictype/property-hyphen: New file.
43986         * modules/unictype/property-punctuation: New file.
43987         * modules/unictype/property-line-separator: New file.
43988         * modules/unictype/property-paragraph-separator: New file.
43989         * modules/unictype/property-quotation-mark: New file.
43990         * modules/unictype/property-sentence-terminal: New file.
43991         * modules/unictype/property-terminal-punctuation: New file.
43992         * modules/unictype/property-currency-symbol: New file.
43993         * modules/unictype/property-math: New file.
43994         * modules/unictype/property-other-math: New file.
43995         * modules/unictype/property-paired-punctuation: New file.
43996         * modules/unictype/property-left-of-pair: New file.
43997         * modules/unictype/property-combining: New file.
43998         * modules/unictype/property-composite: New file.
43999         * modules/unictype/property-decimal-digit: New file.
44000         * modules/unictype/property-numeric: New file.
44001         * modules/unictype/property-diacritic: New file.
44002         * modules/unictype/property-extender: New file.
44003         * modules/unictype/property-ignorable-control: New file.
44004         * modules/unictype/property-test: New file.
44005         * modules/unictype/property-byname: New file.
44006         * modules/unictype/property-all: New file.
44007         * modules/unictype/scripts: New file.
44008         * modules/unictype/scripts-all: New file.
44009         * modules/unictype/block-of: New file.
44010         * modules/unictype/block-test: New file.
44011         * modules/unictype/block-list: New file.
44012         * modules/unictype/block-all: New file.
44013         * modules/unictype/syntax-c-whitespace: New file.
44014         * modules/unictype/syntax-java-whitespace: New file.
44015         * modules/unictype/syntax-c-ident: New file.
44016         * modules/unictype/syntax-java-ident: New file.
44017         * modules/unictype/ctype-alnum: New file.
44018         * modules/unictype/ctype-alpha: New file.
44019         * modules/unictype/ctype-cntrl: New file.
44020         * modules/unictype/ctype-digit: New file.
44021         * modules/unictype/ctype-graph: New file.
44022         * modules/unictype/ctype-lower: New file.
44023         * modules/unictype/ctype-print: New file.
44024         * modules/unictype/ctype-punct: New file.
44025         * modules/unictype/ctype-space: New file.
44026         * modules/unictype/ctype-upper: New file.
44027         * modules/unictype/ctype-xdigit: New file.
44028         * modules/unictype/ctype-blank: New file.
44029         * lib/unictype/bidi_byname.c: New file.
44030         * lib/unictype/bidi_name.c: New file.
44031         * lib/unictype/bidi_of.c: New file.
44032         * lib/unictype/bidi_test.c: New file.
44033         * lib/unictype/bitmap.h: New file.
44034         * lib/unictype/block_test.c: New file.
44035         * lib/unictype/blocks.c: New file.
44036         * lib/unictype/categ_C.c: New file.
44037         * lib/unictype/categ_Cc.c: New file.
44038         * lib/unictype/categ_Cf.c: New file.
44039         * lib/unictype/categ_Cn.c: New file.
44040         * lib/unictype/categ_Co.c: New file.
44041         * lib/unictype/categ_Cs.c: New file.
44042         * lib/unictype/categ_L.c: New file.
44043         * lib/unictype/categ_Ll.c: New file.
44044         * lib/unictype/categ_Lm.c: New file.
44045         * lib/unictype/categ_Lo.c: New file.
44046         * lib/unictype/categ_Lt.c: New file.
44047         * lib/unictype/categ_Lu.c: New file.
44048         * lib/unictype/categ_M.c: New file.
44049         * lib/unictype/categ_Mc.c: New file.
44050         * lib/unictype/categ_Me.c: New file.
44051         * lib/unictype/categ_Mn.c: New file.
44052         * lib/unictype/categ_N.c: New file.
44053         * lib/unictype/categ_Nd.c: New file.
44054         * lib/unictype/categ_Nl.c: New file.
44055         * lib/unictype/categ_No.c: New file.
44056         * lib/unictype/categ_P.c: New file.
44057         * lib/unictype/categ_Pc.c: New file.
44058         * lib/unictype/categ_Pd.c: New file.
44059         * lib/unictype/categ_Pe.c: New file.
44060         * lib/unictype/categ_Pf.c: New file.
44061         * lib/unictype/categ_Pi.c: New file.
44062         * lib/unictype/categ_Po.c: New file.
44063         * lib/unictype/categ_Ps.c: New file.
44064         * lib/unictype/categ_S.c: New file.
44065         * lib/unictype/categ_Sc.c: New file.
44066         * lib/unictype/categ_Sk.c: New file.
44067         * lib/unictype/categ_Sm.c: New file.
44068         * lib/unictype/categ_So.c: New file.
44069         * lib/unictype/categ_Z.c: New file.
44070         * lib/unictype/categ_Zl.c: New file.
44071         * lib/unictype/categ_Zp.c: New file.
44072         * lib/unictype/categ_Zs.c: New file.
44073         * lib/unictype/categ_and.c: New file.
44074         * lib/unictype/categ_and_not.c: New file.
44075         * lib/unictype/categ_byname.c: New file.
44076         * lib/unictype/categ_name.c: New file.
44077         * lib/unictype/categ_none.c: New file.
44078         * lib/unictype/categ_of.c: New file.
44079         * lib/unictype/categ_or.c: New file.
44080         * lib/unictype/categ_test.c: New file.
44081         * lib/unictype/combining.c: New file.
44082         * lib/unictype/ctype_alnum.c: New file.
44083         * lib/unictype/ctype_alpha.c: New file.
44084         * lib/unictype/ctype_blank.c: New file.
44085         * lib/unictype/ctype_cntrl.c: New file.
44086         * lib/unictype/ctype_digit.c: New file.
44087         * lib/unictype/ctype_graph.c: New file.
44088         * lib/unictype/ctype_lower.c: New file.
44089         * lib/unictype/ctype_print.c: New file.
44090         * lib/unictype/ctype_punct.c: New file.
44091         * lib/unictype/ctype_space.c: New file.
44092         * lib/unictype/ctype_upper.c: New file.
44093         * lib/unictype/ctype_xdigit.c: New file.
44094         * lib/unictype/decdigit.c: New file.
44095         * lib/unictype/digit.c: New file.
44096         * lib/unictype/identsyntaxmap.h: New file.
44097         * lib/unictype/mirror.c: New file.
44098         * lib/unictype/numeric.c: New file.
44099         * lib/unictype/pr_alphabetic.c: New file.
44100         * lib/unictype/pr_ascii_hex_digit.c: New file.
44101         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44102         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44103         * lib/unictype/pr_bidi_block_separator.c: New file.
44104         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44105         * lib/unictype/pr_bidi_common_separator.c: New file.
44106         * lib/unictype/pr_bidi_control.c: New file.
44107         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44108         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44109         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44110         * lib/unictype/pr_bidi_european_digit.c: New file.
44111         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44112         * lib/unictype/pr_bidi_left_to_right.c: New file.
44113         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44114         * lib/unictype/pr_bidi_other_neutral.c: New file.
44115         * lib/unictype/pr_bidi_pdf.c: New file.
44116         * lib/unictype/pr_bidi_segment_separator.c: New file.
44117         * lib/unictype/pr_bidi_whitespace.c: New file.
44118         * lib/unictype/pr_byname.c: New file.
44119         * lib/unictype/pr_byname.gperf: New file.
44120         * lib/unictype/pr_combining.c: New file.
44121         * lib/unictype/pr_composite.c: New file.
44122         * lib/unictype/pr_currency_symbol.c: New file.
44123         * lib/unictype/pr_dash.c: New file.
44124         * lib/unictype/pr_decimal_digit.c: New file.
44125         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44126         * lib/unictype/pr_deprecated.c: New file.
44127         * lib/unictype/pr_diacritic.c: New file.
44128         * lib/unictype/pr_extender.c: New file.
44129         * lib/unictype/pr_format_control.c: New file.
44130         * lib/unictype/pr_grapheme_base.c: New file.
44131         * lib/unictype/pr_grapheme_extend.c: New file.
44132         * lib/unictype/pr_grapheme_link.c: New file.
44133         * lib/unictype/pr_hex_digit.c: New file.
44134         * lib/unictype/pr_hyphen.c: New file.
44135         * lib/unictype/pr_id_continue.c: New file.
44136         * lib/unictype/pr_id_start.c: New file.
44137         * lib/unictype/pr_ideographic.c: New file.
44138         * lib/unictype/pr_ids_binary_operator.c: New file.
44139         * lib/unictype/pr_ids_trinary_operator.c: New file.
44140         * lib/unictype/pr_ignorable_control.c: New file.
44141         * lib/unictype/pr_iso_control.c: New file.
44142         * lib/unictype/pr_join_control.c: New file.
44143         * lib/unictype/pr_left_of_pair.c: New file.
44144         * lib/unictype/pr_line_separator.c: New file.
44145         * lib/unictype/pr_logical_order_exception.c: New file.
44146         * lib/unictype/pr_lowercase.c: New file.
44147         * lib/unictype/pr_math.c: New file.
44148         * lib/unictype/pr_non_break.c: New file.
44149         * lib/unictype/pr_not_a_character.c: New file.
44150         * lib/unictype/pr_numeric.c: New file.
44151         * lib/unictype/pr_other_alphabetic.c: New file.
44152         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44153         * lib/unictype/pr_other_grapheme_extend.c: New file.
44154         * lib/unictype/pr_other_id_continue.c: New file.
44155         * lib/unictype/pr_other_id_start.c: New file.
44156         * lib/unictype/pr_other_lowercase.c: New file.
44157         * lib/unictype/pr_other_math.c: New file.
44158         * lib/unictype/pr_other_uppercase.c: New file.
44159         * lib/unictype/pr_paired_punctuation.c: New file.
44160         * lib/unictype/pr_paragraph_separator.c: New file.
44161         * lib/unictype/pr_pattern_syntax.c: New file.
44162         * lib/unictype/pr_pattern_white_space.c: New file.
44163         * lib/unictype/pr_private_use.c: New file.
44164         * lib/unictype/pr_punctuation.c: New file.
44165         * lib/unictype/pr_quotation_mark.c: New file.
44166         * lib/unictype/pr_radical.c: New file.
44167         * lib/unictype/pr_sentence_terminal.c: New file.
44168         * lib/unictype/pr_soft_dotted.c: New file.
44169         * lib/unictype/pr_space.c: New file.
44170         * lib/unictype/pr_terminal_punctuation.c: New file.
44171         * lib/unictype/pr_test.c: New file.
44172         * lib/unictype/pr_titlecase.c: New file.
44173         * lib/unictype/pr_unassigned_code_value.c: New file.
44174         * lib/unictype/pr_unified_ideograph.c: New file.
44175         * lib/unictype/pr_uppercase.c: New file.
44176         * lib/unictype/pr_variation_selector.c: New file.
44177         * lib/unictype/pr_white_space.c: New file.
44178         * lib/unictype/pr_xid_continue.c: New file.
44179         * lib/unictype/pr_xid_start.c: New file.
44180         * lib/unictype/pr_zero_width.c: New file.
44181         * lib/unictype/scripts.c: New file.
44182         * lib/unictype/sy_c_ident.c: New file.
44183         * lib/unictype/sy_c_whitespace.c: New file.
44184         * lib/unictype/sy_java_ident.c: New file.
44185         * lib/unictype/sy_java_whitespace.c: New file.
44186
44187         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44188         Unicode 5.0.0.
44189         * lib/unictype/blocks.h: Likewise.
44190         * lib/unictype/categ_C.h: Likewise.
44191         * lib/unictype/categ_Cc.h: Likewise.
44192         * lib/unictype/categ_Cf.h: Likewise.
44193         * lib/unictype/categ_Cn.h: Likewise.
44194         * lib/unictype/categ_Co.h: Likewise.
44195         * lib/unictype/categ_Cs.h: Likewise.
44196         * lib/unictype/categ_L.h: Likewise.
44197         * lib/unictype/categ_Ll.h: Likewise.
44198         * lib/unictype/categ_Lm.h: Likewise.
44199         * lib/unictype/categ_Lo.h: Likewise.
44200         * lib/unictype/categ_Lt.h: Likewise.
44201         * lib/unictype/categ_Lu.h: Likewise.
44202         * lib/unictype/categ_M.h: Likewise.
44203         * lib/unictype/categ_Mc.h: Likewise.
44204         * lib/unictype/categ_Me.h: Likewise.
44205         * lib/unictype/categ_Mn.h: Likewise.
44206         * lib/unictype/categ_N.h: Likewise.
44207         * lib/unictype/categ_Nd.h: Likewise.
44208         * lib/unictype/categ_Nl.h: Likewise.
44209         * lib/unictype/categ_No.h: Likewise.
44210         * lib/unictype/categ_P.h: Likewise.
44211         * lib/unictype/categ_Pc.h: Likewise.
44212         * lib/unictype/categ_Pd.h: Likewise.
44213         * lib/unictype/categ_Pe.h: Likewise.
44214         * lib/unictype/categ_Pf.h: Likewise.
44215         * lib/unictype/categ_Pi.h: Likewise.
44216         * lib/unictype/categ_Po.h: Likewise.
44217         * lib/unictype/categ_Ps.h: Likewise.
44218         * lib/unictype/categ_S.h: Likewise.
44219         * lib/unictype/categ_Sc.h: Likewise.
44220         * lib/unictype/categ_Sk.h: Likewise.
44221         * lib/unictype/categ_Sm.h: Likewise.
44222         * lib/unictype/categ_So.h: Likewise.
44223         * lib/unictype/categ_Z.h: Likewise.
44224         * lib/unictype/categ_Zl.h: Likewise.
44225         * lib/unictype/categ_Zp.h: Likewise.
44226         * lib/unictype/categ_Zs.h: Likewise.
44227         * lib/unictype/categ_of.h: Likewise.
44228         * lib/unictype/combining.h: Likewise.
44229         * lib/unictype/ctype_alnum.h: Likewise.
44230         * lib/unictype/ctype_alpha.h: Likewise.
44231         * lib/unictype/ctype_blank.h: Likewise.
44232         * lib/unictype/ctype_cntrl.h: Likewise.
44233         * lib/unictype/ctype_digit.h: Likewise.
44234         * lib/unictype/ctype_graph.h: Likewise.
44235         * lib/unictype/ctype_lower.h: Likewise.
44236         * lib/unictype/ctype_print.h: Likewise.
44237         * lib/unictype/ctype_punct.h: Likewise.
44238         * lib/unictype/ctype_space.h: Likewise.
44239         * lib/unictype/ctype_upper.h: Likewise.
44240         * lib/unictype/ctype_xdigit.h: Likewise.
44241         * lib/unictype/decdigit.h: Likewise.
44242         * lib/unictype/digit.h: Likewise.
44243         * lib/unictype/mirror.h: Likewise.
44244         * lib/unictype/numeric.h: Likewise.
44245         * lib/unictype/pr_alphabetic.h: Likewise.
44246         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44247         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44248         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44249         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44250         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44251         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44252         * lib/unictype/pr_bidi_control.h: Likewise.
44253         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44254         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44255         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44256         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44257         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44258         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44259         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44260         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44261         * lib/unictype/pr_bidi_pdf.h: Likewise.
44262         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44263         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44264         * lib/unictype/pr_combining.h: Likewise.
44265         * lib/unictype/pr_composite.h: Likewise.
44266         * lib/unictype/pr_currency_symbol.h: Likewise.
44267         * lib/unictype/pr_dash.h: Likewise.
44268         * lib/unictype/pr_decimal_digit.h: Likewise.
44269         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44270         * lib/unictype/pr_deprecated.h: Likewise.
44271         * lib/unictype/pr_diacritic.h: Likewise.
44272         * lib/unictype/pr_extender.h: Likewise.
44273         * lib/unictype/pr_format_control.h: Likewise.
44274         * lib/unictype/pr_grapheme_base.h: Likewise.
44275         * lib/unictype/pr_grapheme_extend.h: Likewise.
44276         * lib/unictype/pr_grapheme_link.h: Likewise.
44277         * lib/unictype/pr_hex_digit.h: Likewise.
44278         * lib/unictype/pr_hyphen.h: Likewise.
44279         * lib/unictype/pr_id_continue.h: Likewise.
44280         * lib/unictype/pr_id_start.h: Likewise.
44281         * lib/unictype/pr_ideographic.h: Likewise.
44282         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44283         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44284         * lib/unictype/pr_ignorable_control.h: Likewise.
44285         * lib/unictype/pr_iso_control.h: Likewise.
44286         * lib/unictype/pr_join_control.h: Likewise.
44287         * lib/unictype/pr_left_of_pair.h: Likewise.
44288         * lib/unictype/pr_line_separator.h: Likewise.
44289         * lib/unictype/pr_logical_order_exception.h: Likewise.
44290         * lib/unictype/pr_lowercase.h: Likewise.
44291         * lib/unictype/pr_math.h: Likewise.
44292         * lib/unictype/pr_non_break.h: Likewise.
44293         * lib/unictype/pr_not_a_character.h: Likewise.
44294         * lib/unictype/pr_numeric.h: Likewise.
44295         * lib/unictype/pr_other_alphabetic.h: Likewise.
44296         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44297         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44298         * lib/unictype/pr_other_id_continue.h: Likewise.
44299         * lib/unictype/pr_other_id_start.h: Likewise.
44300         * lib/unictype/pr_other_lowercase.h: Likewise.
44301         * lib/unictype/pr_other_math.h: Likewise.
44302         * lib/unictype/pr_other_uppercase.h: Likewise.
44303         * lib/unictype/pr_paired_punctuation.h: Likewise.
44304         * lib/unictype/pr_paragraph_separator.h: Likewise.
44305         * lib/unictype/pr_pattern_syntax.h: Likewise.
44306         * lib/unictype/pr_pattern_white_space.h: Likewise.
44307         * lib/unictype/pr_private_use.h: Likewise.
44308         * lib/unictype/pr_punctuation.h: Likewise.
44309         * lib/unictype/pr_quotation_mark.h: Likewise.
44310         * lib/unictype/pr_radical.h: Likewise.
44311         * lib/unictype/pr_sentence_terminal.h: Likewise.
44312         * lib/unictype/pr_soft_dotted.h: Likewise.
44313         * lib/unictype/pr_space.h: Likewise.
44314         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44315         * lib/unictype/pr_titlecase.h: Likewise.
44316         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44317         * lib/unictype/pr_unified_ideograph.h: Likewise.
44318         * lib/unictype/pr_uppercase.h: Likewise.
44319         * lib/unictype/pr_variation_selector.h: Likewise.
44320         * lib/unictype/pr_white_space.h: Likewise.
44321         * lib/unictype/pr_xid_continue.h: Likewise.
44322         * lib/unictype/pr_xid_start.h: Likewise.
44323         * lib/unictype/pr_zero_width.h: Likewise.
44324         * lib/unictype/scripts.h: Likewise.
44325         * lib/unictype/scripts_byname.gperf: Likewise.
44326         * lib/unictype/sy_c_ident.h: Likewise.
44327         * lib/unictype/sy_c_whitespace.h: Likewise.
44328         * lib/unictype/sy_java_ident.h: Likewise.
44329         * lib/unictype/sy_java_whitespace.h: Likewise.
44330
44331         * lib/unictype/Makefile: New file.
44332         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44333         glibc.
44334         * lib/unictype/3level.h: New file, copied from glibc.
44335         * lib/unictype/3levelbit.h: New file.
44336
44337 2007-11-11  Bruno Haible  <bruno@clisp.org>
44338
44339         * modules/gperf: New file.
44340         * modules/iconv_open (Depends-on): Add it.
44341         (Makefile.am): Remove the GPERF definition.
44342
44343 2007-11-11  Bruno Haible  <bruno@clisp.org>
44344
44345         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44346         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44347
44348 2007-11-11  Bruno Haible  <bruno@clisp.org>
44349
44350         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44351         (usage): Remove function.
44352
44353 2007-11-11  Bruno Haible  <bruno@clisp.org>
44354
44355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44356         gl_FUNC_CEILF_LIBS.
44357         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44358         gl_FUNC_CEIL_LIBS.
44359         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44360         gl_FUNC_CEILL_LIBS.
44361         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44362         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44363         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44364
44365 2007-11-11  Bruno Haible  <bruno@clisp.org>
44366
44367         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44368         roundf were declared but do not exist on functions.
44369         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44370         roundl were declared but do not exist on functions.
44371         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44372         HAVE_FLOORL_AND_CEILL, respectively.
44373         Needed for Sun C on Solaris 10.
44374
44375 2007-11-11  Bruno Haible  <bruno@clisp.org>
44376
44377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44378         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44379         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44380         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44381         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44382         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44383         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44384         HAVE_DECL_ROUNDF.
44385         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44386         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44388         of HAVE_DECL_ROUND*.
44389         * modules/math (Makefile.am): Update.
44390
44391 2007-11-10  Bruno Haible  <bruno@clisp.org>
44392
44393         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44394         ptrdiff_t as m4/intl.m4.
44395
44396 2007-11-10  Jim Meyering  <meyering@redhat.com>
44397
44398         Avoid link failure for the argmatch test.
44399         * tests/test-argmatch.c (usage): Define function to avoid a link
44400         failure: argmatch_die requires a usage function.
44401
44402 2007-11-09  Bruno Haible  <bruno@clisp.org>
44403
44404         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44405         * doc/functions/vsnprintf.texi: Likewise.
44406         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44407         with a size argument < 2.
44408
44409 2007-11-09  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44412         buffer. Fixes an inefficiency introduced on 2007-11-03.
44413
44414 2007-11-09  Bruno Haible  <bruno@clisp.org>
44415
44416         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44417         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44418
44419 2007-11-08  Jim Meyering  <meyering@redhat.com>
44420
44421         Change cache variable name prefix "jm_" to "gl_" everywhere.
44422         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44423         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44424         * m4/uptime.m4: s/gl_/jm_/
44425
44426 2007-11-07  Bruno Haible  <bruno@clisp.org>
44427
44428         Update to GNU gettext 0.17.
44429         * m4/intl.m4: Update to GNU gettext 0.17.
44430         * m4/po.m4: Likewise.
44431         * modules/gettext (Files): Remove m4/ulonglong.m4.
44432         (configure.ac): Require gettext infrastructure from version 0.17.
44433
44434 2007-11-06  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44437         symbolic values are not defined in a public header.
44438         * lib/freadable.c (freadable) [QNX]: Likewise.
44439         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44440         * lib/freading.c (freading) [QNX]: Likewise.
44441         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44442         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44443         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44444         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44445         Reported by Alain Magloire.
44446
44447         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44448
44449 2007-11-05  Bruno Haible  <bruno@clisp.org>
44450
44451         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44452         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44453         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44454         Reported by Eric Blake.
44455
44456 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44457             Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44460         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44461         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44462         (malloc): Undefine also before including <stdlib.h>.
44463         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44464         Needed on OSF/1 4.0.
44465
44466 2007-11-05  Jim Meyering  <meyering@redhat.com>
44467
44468         git-version-gen: sync from coreutils.
44469         * build-aux/git-version-gen: Add comments.
44470         Change the first '-' to '.' in the snapshot version string,
44471         e.g., 6.9-377-08144 -> 6.9.377-08144
44472         Remove first parameter.
44473         Don't declare a version "-dirty" merely because a time
44474         stamp has changed.
44475
44476 2007-11-04  Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/lock.h: Protect all macro definitions containing an 'if'
44479         statement through a "do { ... } while (0)".
44480         * lib/tls.h: Likewise.
44481
44482 2007-11-04  Bruno Haible  <bruno@clisp.org>
44483
44484         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44485
44486 2007-11-04  Bruno Haible  <bruno@clisp.org>
44487
44488         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44489         * modules/fprintf-posix (Depends-on): Add nocrash.
44490         * modules/snprintf-posix (Depends-on): Likewise.
44491         * modules/sprintf-posix (Depends-on): Likewise.
44492         * modules/vasnprintf-posix (Depends-on): Likewise.
44493         * modules/vasprintf-posix (Depends-on): Likewise.
44494         * modules/vfprintf-posix (Depends-on): Likewise.
44495         * modules/vsnprintf-posix (Depends-on): Likewise.
44496         * modules/vsprintf-posix (Depends-on): Likewise.
44497         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44498         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44499         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44500         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44501         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44502         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44503         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44504
44505 2007-11-04  Bruno Haible  <bruno@clisp.org>
44506
44507         * modules/nocrash: New file.
44508         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44509         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44510
44511 2007-11-04  Bruno Haible  <bruno@clisp.org>
44512
44513         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44514         precision handling.
44515         * tests/test-vasprintf-posix.c (test_function): Likewise.
44516         * tests/test-snprintf-posix.h (test_function): Likewise.
44517         * tests/test-sprintf-posix.h (test_function): Likewise.
44518
44519         Fix *printf behaviour for large precisions on mingw and BeOS.
44520         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44521         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44523         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44524         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44525         gl_PRINTF_PRECISION and test its result. Invoke
44526         gl_PREREQ_VASNPRINTF_PRECISION.
44527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44528         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44529         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44531         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44533         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44534         * doc/functions/fprintf.texi: Update.
44535         * doc/functions/printf.texi: Update.
44536         * doc/functions/snprintf.texi: Update.
44537         * doc/functions/sprintf.texi: Update.
44538         * doc/functions/vfprintf.texi: Update.
44539         * doc/functions/vprintf.texi: Update.
44540         * doc/functions/vsnprintf.texi: Update.
44541         * doc/functions/vsprintf.texi: Update.
44542
44543 2007-11-04  Bruno Haible  <bruno@clisp.org>
44544
44545         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44546
44547 2007-11-04  Bruno Haible  <bruno@clisp.org>
44548
44549         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44550         Reported by Sylvain Beucler <beuc@gnu.org>.
44551
44552 2007-11-03  Bruno Haible  <bruno@clisp.org>
44553
44554         * tests/test-fprintf-posix2.sh: New file.
44555         * tests/test-fprintf-posix2.c: New file.
44556         * modules/fprintf-posix-tests (Files): Add them.
44557         (TESTS): Add test-fprintf-posix2.sh.
44558         (configure.ac): Check for getrlimit and setrlimit.
44559         (check_PROGRAMS): Add test-fprintf-posix2.
44560
44561         * tests/test-printf-posix2.sh: New file.
44562         * tests/test-printf-posix2.c: New file.
44563         * modules/printf-posix-tests (Files): Add them.
44564         (TESTS): Add test-printf-posix2.sh.
44565         (configure.ac): Check for getrlimit and setrlimit.
44566         (check_PROGRAMS): Add test-printf-posix2.
44567
44568         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44569         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44570         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44571         (decode_double): New function, copied from decode_long_double.
44572         (scale10_round_decimal_decoded): New function, extracted from
44573         scale10_round_decimal_long_double.
44574         (scale10_round_decimal_long_double): Use it.
44575         (scale10_round_decimal_double): New function.
44576         (floorlog10): New function.
44577         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44579         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44581         gl_PRINTF_ENOMEM and test its result. Invoke
44582         gl_PREREQ_VASNPRINTF_ENOMEM.
44583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44585         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44590         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44591         * modules/snprintf-posix (Depends-on): Likewise.
44592         * modules/sprintf-posix (Depends-on): Likewise.
44593         * modules/vasnprintf-posix (Depends-on): Likewise.
44594         * modules/vasprintf-posix (Depends-on): Likewise.
44595         * modules/vfprintf-posix (Depends-on): Likewise.
44596         * modules/vsnprintf-posix (Depends-on): Likewise.
44597         * modules/vsprintf-posix (Depends-on): Likewise.
44598         * doc/functions/fprintf.texi: Update.
44599         * doc/functions/printf.texi: Update.
44600         * doc/functions/snprintf.texi: Update.
44601         * doc/functions/sprintf.texi: Update.
44602         * doc/functions/vfprintf.texi: Update.
44603         * doc/functions/vprintf.texi: Update.
44604         * doc/functions/vsnprintf.texi: Update.
44605         * doc/functions/vsprintf.texi: Update.
44606
44607 2007-11-03  Bruno Haible  <bruno@clisp.org>
44608
44609         * modules/frexp-nolibm-tests: New file.
44610
44611         * modules/frexp-nolibm: New file.
44612         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44613
44614 2007-11-03  Bruno Haible  <bruno@clisp.org>
44615
44616         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44617         value is C99 compliant.
44618         Needed for OSF/1 5.1.
44619
44620 2007-11-03  Bruno Haible  <bruno@clisp.org>
44621
44622         Fix out-of-memory handling of vasnprintf.
44623         * lib/printf-parse.c: Include <errno.h>.
44624         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44625         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44626         is already set.
44627
44628 2007-11-02  Eric Blake  <ebb9@byu.net>
44629
44630         Fix tests on cygwin.
44631         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44632
44633 2007-11-01  Bruno Haible  <bruno@clisp.org>
44634
44635         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44636         warning.
44637         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44638         needed for POSIX compatibility.
44639
44640 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44641
44642         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44643         for compatibility with GNU.
44644
44645 2007-11-01  Bruno Haible  <bruno@clisp.org>
44646
44647         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44648         (putenv): Renamed from rpl_putenv. Change argument type from
44649         'const char *' to 'char *'.
44650         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44651         of defining putenv in config.h, just set REPLACE_PUTENV.
44652         * modules/putenv (Depends-on): Add stdlib.
44653         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44654         (Include): Use <stdlib.h>.
44655         * lib/stdlib.in.h (putenv): New declaration.
44656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44657         REPLACE_PUTENV.
44658         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44659         REPLACE_PUTENV.
44660         Needed for MacOS X 10.5.0.
44661         Reported by Peter O'Gorman <peter@pogma.com>.
44662
44663 2007-11-01  Jim Meyering  <meyering@redhat.com>
44664
44665         Treat an empty date string exactly like "0".
44666         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44667         if the remaining date string (to be parsed) is empty, use "0".
44668         Reported by Mischa Molhoek and discussed in this thread:
44669         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44670
44671 2007-10-31  Bruno Haible  <bruno@clisp.org>
44672
44673         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44674         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44675         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44676         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44677         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44678         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44679
44680 2007-10-31  Bruno Haible  <bruno@clisp.org>
44681
44682         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44683         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44684         (AC_TYPE_LONG_LONG_INT): Use it.
44685         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44686         it as well.
44687         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44688         to m4/longlong.m4.
44689         * modules/stdint (Files): Remove m4/ulonglong.m4.
44690         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44691         m4/ulonglong.m4.
44692         * modules/strtoumax (Files): Likewise.
44693
44694 2007-10-30  Bruno Haible  <bruno@clisp.org>
44695
44696         * modules/xvasprintf-posix: New file.
44697         Suggested by Eric Blake.
44698
44699 2007-10-30  Bruno Haible  <bruno@clisp.org>
44700
44701         * modules/xprintf-posix-tests: New file.
44702         * tests/test-xprintf-posix.sh: New file.
44703         * tests/test-xprintf-posix.c: New file.
44704         * tests/test-xfprintf-posix.c: New file.
44705
44706         * modules/xprintf-posix: New file.
44707
44708 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44709
44710         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44711         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44712         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44713
44714 2007-10-29  Bruno Haible  <bruno@clisp.org>
44715
44716         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44717         contain the special marker '_cv_'.
44718         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44719         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44720         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44721         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44722         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44723         Reported by Ralf Wildenhues.
44724
44725 2007-10-29  Bruno Haible  <bruno@clisp.org>
44726
44727         * gnulib-tool (func_import): When --lgpl is not specified, set
44728         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44729         GPLv3.
44730         Reported by Simon Josefsson.
44731
44732 2007-10-28  Bruno Haible  <bruno@clisp.org>
44733
44734         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44735         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44736         HAVE_DECL_ISFINITE.
44737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44738         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44739         HAVE_DECL_ISFINITE.
44740
44741 2007-10-28  Bruno Haible  <bruno@clisp.org>
44742
44743         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44744         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44745
44746 2007-10-28  Bruno Haible  <bruno@clisp.org>
44747
44748         Fix link errors with Sun C 5.0 on Solaris 10.
44749         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44750         function is declared but not present in the compiler's libm.
44751         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44752         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44753         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44754         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44755         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44756         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44757         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44759         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44760         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44761         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44762         HAVE_DECL_FLOORL.
44763
44764 2007-10-28  Bruno Haible  <bruno@clisp.org>
44765
44766         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44767         gl_FUNC_FLOORL. Cache the result.
44768         (gl_FUNC_FLOORL): Use it.
44769         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44770         gl_FUNC_CEILL. Cache the result.
44771         (gl_FUNC_CEILL): Use it.
44772
44773         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44774         gl_FUNC_FLOOR. Cache the result.
44775         (gl_FUNC_FLOOR): Use it.
44776         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44777         gl_FUNC_CEIL. Cache the result.
44778         (gl_FUNC_CEIL): Use it.
44779
44780         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44781         gl_FUNC_FLOORF. Cache the result.
44782         (gl_FUNC_FLOORF): Use it.
44783         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44784         gl_FUNC_CEILF. Cache the result.
44785         (gl_FUNC_CEILF): Use it.
44786
44787 2007-10-28  Bruno Haible  <bruno@clisp.org>
44788
44789         * gnulib-tool: Allow specifying the LGPL version number through
44790         --lgpl=2 or --lgpl=3.
44791         (func_usage): Document --lgpl with argument.
44792         Handle --lgpl=... arguments.
44793         (func_import): Recognize also gl_LGPL calls with an argument. When
44794         --lgpl=2 is used and the module's license is just LGPL, report an
44795         error. Set sed_transform_lib_file according to the lgpl variable. In
44796         the generated files, use --lgpl or gl_LGPL invocations with argument,
44797         if necessary.
44798         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44799         an LGPv2+ license.
44800         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44801         gl_LGPL macro.
44802
44803 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44804             Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44807         (u16_uctomb_aux): Likewise.
44808         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44809         !HAVE_INLINE.
44810         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44811
44812 2007-10-28  Bruno Haible  <bruno@clisp.org>
44813
44814         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44815         Invoke AM_GETTEXT_OPTION if it exists.
44816         * modules/vasprintf: Likewise.
44817         * modules/verror: Likewise.
44818         * modules/xprintf: Likewise.
44819         * modules/xvasprintf: Likewise.
44820
44821 2007-10-27  Ben Pfaff  <blp@gnu.org>
44822
44823         * lib/math.in.h: Define isfinite macro and prototypes for
44824         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44825         implementations.
44826         * m4/math_h.m4: New substitutions for isfinite module.
44827         * lib/isfinite.c: New file.
44828         * m4/isfinite.m4: New file.
44829         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44830         * modules/isfinite: New file.
44831         * modules/isfinite-tests: New file.
44832         * tests/tests-isfinite.c: New file.
44833         * doc/functions/isfinite.texi: Mention isfinite module.
44834         * MODULES.html.sh: Mention new module.
44835
44836 2007-10-27  Ben Pfaff  <blp@gnu.org>
44837
44838         Ralf Wildenhues reported that Tru64 4.0D declares the round
44839         functions but does not have definitions.
44840         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44841         cannot be found in any library, set the output variable to
44842         "missing" instead of "".
44843         * m4/round.m4: Also use our substitute if we cannot find round in
44844         any library, even if it is declared.
44845         * m4/roundf.m4: Likewise for roundf.
44846         * m4/roundl.m4: Likewise for roundl.
44847         * lib/math.in.h: Undefine roundf, round, roundl before defining
44848         their replacements, to allow for hypothetical systems where these
44849         may be defined as macros but not available in libraries.
44850
44851 2007-10-27  Bruno Haible  <bruno@clisp.org>
44852
44853         * doc/gnulib.texi: Invoke @firstparagraphindent.
44854         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44855         changes in gnulib.
44856         (Source changes): New section.
44857
44858 2007-10-26  Bruno Haible  <bruno@clisp.org>
44859
44860         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44861         borrowed from autoconf.
44862
44863 2007-10-26  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44866         strerror returned the empty string. Needed on HP-UX 11.00.
44867
44868 2007-10-24  Micah Cowan  <micah@cowan.name>
44869
44870         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44871         * build-aux/bootstrap: Remove support for now-unnecessary option,
44872         --cvs-user, and envvars CVS_USER, CVS_RSH.
44873
44874 2007-10-24  Jim Meyering  <meyering@redhat.com>
44875
44876         Avoid diagnostics from sha1sum when there is no cached checksum.
44877         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44878         if the po.s1 file hasn't been created yet.
44879
44880         * build-aux/bootstrap: Sync from coreutils:
44881         2007-10-24  Jim Meyering  <meyering@redhat.com>
44882         Get gnulib from the git repository, not from an obsolete cvs one.
44883         * build-aux/bootstrap: Suggestion from Micah Cowan.
44884         2007-10-04  Jim Meyering  <jim@meyering.net>
44885         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44886         (update_po_files): Work also when there are no .po files in po/.
44887
44888 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44889
44890         * README: Append ".git" to git and cg examples.
44891         Problem reported by Benoit Sigoure.
44892
44893 2007-10-23  Micah Cowan  <micah@cowan.name>
44894
44895         * users.txt: Add wget.
44896
44897 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44898
44899         Fix linking of some unistdio tests on FreeBSD.
44900         * modules/unistdio/u16-vsnprintf-tests
44901         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44902         * modules/unistdio/u16-vsprintf-tests
44903         (test_u16_vsnprintf1_LDADD): Likewise.
44904         * modules/unistdio/u32-vsnprintf-tests
44905         (test_u32_vsnprintf1_LDADD): Likewise.
44906         * modules/unistdio/u32-vsprintf-tests
44907         (test_u32_vsprintf1_LDADD): Likewise.
44908         * modules/unistdio/u8-vsnprintf-tests
44909         (test_u8_vsnprintf1_LDADD): Likewise.
44910         * modules/unistdio/u8-vsprintf-tests
44911         (test_u8_vsprintf1_LDADD): Likewise.
44912         * modules/unistdio/ulc-vsnprintf-tests
44913         (test_ulc_vsnprintf1_LDADD): Likewise.
44914         * modules/unistdio/ulc-vsprintf-tests
44915         (test_ulc_vsprintf1_LDADD): Likewise.
44916
44917         Fix linking of some uniconv tests on FreeBSD.
44918         * modules/uniconv/u16-conv-from-enc-tests
44919         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44920         * modules/uniconv/u16-conv-to-enc-tests
44921         (test_u16_conv_to_enc_LDADD): Likewise.
44922         * modules/uniconv/u16-strconv-from-enc-tests
44923         (test_u16_strconv_from_enc_LDADD): Likewise.
44924         * modules/uniconv/u16-strconv-to-enc-tests
44925         (test_u16_strconv_to_enc_LDADD): Likewise.
44926         * modules/uniconv/u32-conv-from-enc-tests
44927         (test_u32_conv_from_enc_LDADD): Likewise.
44928         * modules/uniconv/u32-conv-to-enc-tests
44929         (test_u32_conv_to_enc_LDADD): Likewise.
44930         * modules/uniconv/u32-strconv-from-enc-tests
44931         (test_u32_strconv_from_enc_LDADD): Likewise.
44932         * modules/uniconv/u32-strconv-to-enc-tests
44933         (test_u32_strconv_to_enc_LDADD): Likewise.
44934         * modules/uniconv/u8-conv-from-enc-tests
44935         (test_u8_conv_from_enc_LDADD): Likewise.
44936         * modules/uniconv/u8-conv-to-enc-tests
44937         (test_u8_conv_to_enc_LDADD): Likewise.
44938         * modules/uniconv/u8-strconv-from-enc-tests
44939         (test_u8_strconv_from_enc_LDADD): Likewise.
44940         * modules/uniconv/u8-strconv-to-enc-tests
44941         (test_u8_strconv_to_enc_LDADD): Likewise.
44942
44943 2007-10-22  Bruno Haible  <bruno@clisp.org>
44944
44945         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44946         size.
44947
44948 2007-10-22  Eric Blake  <ebb9@byu.net>
44949
44950         Tweak x*printf documentation.
44951         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44952         variable name and comments.
44953         Suggested by Bruno Haible.
44954
44955 2007-10-22  Bruno Haible  <bruno@clisp.org>
44956
44957         * lib/acl.c (copy_acl): Fix file name in comment.
44958
44959 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44960
44961         Fix Tru64 problem with stdbool.h.
44962         * lib/stdbool.in.h (false, true):
44963         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44964         Don't declare as an enum in this situation; it runs afoul of Tru64.
44965         Problem reported by Steven M. Schweda in
44966         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44967
44968 2007-10-22  Eric Blake  <ebb9@byu.net>
44969
44970         Also wrap vf?printf.
44971         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44972         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44973         (xvprintf, xvfprintf): New functions.
44974
44975 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44976
44977         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44978         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44979
44980         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44981         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44982
44983 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44984
44985         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44986         by Bruno Haible.
44987
44988 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44989
44990         * lib/getloadavg.c
44991         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44992         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44993
44994         * tests/test-i-ring.c: Work for C89.
44995
44996 2007-10-22  Bruno Haible  <bruno@clisp.org>
44997
44998         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44999         -1u, in preprocessor expression, so that we don't test for the bug
45000         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45002
45003 2007-10-22  Eric Blake  <ebb9@byu.net>
45004
45005         * tests/test-yesno.sh: Silence stderr during test.
45006
45007 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45008
45009         * modules/crypto/gc-camellia: New file.
45010
45011         * m4/gc-camellia.m4: New file.
45012
45013         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45014
45015         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45016
45017 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45018
45019         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45020         --help to stdout.  Reported by sms@antinode.org (Steven
45021         M. Schweda).
45022
45023 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45024
45025         * users.txt: Fix link to libksba.
45026
45027 2007-10-21  Ben Pfaff  <blp@gnu.org>
45028
45029         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45030         round.c roundf implementation that depends on floorf and ceilf to
45031         be tested unconditionally.
45032
45033 2007-10-21  Ben Pfaff  <blp@gnu.org>
45034
45035         * m4/check-libm-func.m4: Removed.
45036         * m4/check-math-lib.m4: New file.
45037         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45038         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45039         definition and lack of AC_LIBOBJ([roundf]).
45040         * m4/roundl.m4: Ditto, and similarly for roundl.
45041         * modules/round: Reference new m4 file.
45042         * modules/roundf: Ditto.
45043         * modules/roundl: Ditto.
45044         * tests/test-round2.c (main): Use ROUND instead of round.
45045         Bug report from Bruno Haible.
45046
45047 2007-10-21  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45050         context.
45051
45052 2007-10-21  Bruno Haible  <bruno@clisp.org>
45053
45054         * tests/test-wcwidth.c (main): Allow negative result for some control
45055         characters.
45056
45057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45058         Needed on OSF/1 5.1.
45059
45060 2007-10-21  Bruno Haible  <bruno@clisp.org>
45061
45062         * tests/test-floorf1.c: Include isnanf.h.
45063         (main): Use isnanf() instead of isnan().
45064         * tests/test-ceilf1.c: Include isnanf.h.
45065         (main): Use isnanf() instead of isnan().
45066         * tests/test-truncf1.c: Include isnanf.h.
45067         (main): Use isnanf() instead of isnan().
45068         * tests/test-roundf1.c: Include isnanf.h.
45069         (main): Use isnanf() instead of isnan().
45070
45071 2007-10-21  Eric Blake  <ebb9@byu.net>
45072
45073         * users.txt: Update URL for m4.
45074
45075 2007-10-21  Bruno Haible  <bruno@clisp.org>
45076
45077         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45078
45079 2007-10-21  Bruno Haible  <bruno@clisp.org>
45080
45081         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45082         Git's management files if the CVS files are not present.
45083
45084 2007-10-20  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45087         gcc-3.4.x.
45088
45089 2007-10-20  Ben Pfaff  <blp@gnu.org>
45090
45091         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45092         implementations.
45093         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45094         * lib/round.c: New file.
45095         * lib/roundf.c: New file.
45096         * lib/roundl.c: New file.
45097         * m4/round.m4: New file.
45098         * m4/roundf.m4: New file.
45099         * m4/roundl.m4: New file.
45100         * m4/check-libm-func-m4: New file.
45101         * modules/math: Replace round, roundf, roundl related @VARS@ in
45102         math.in.h.
45103         * modules/round: New file.
45104         * modules/round-tests: New file.
45105         * modules/roundf: New file.
45106         * modules/roundf-tests: New file.
45107         * modules/roundl: New file.
45108         * modules/roundl-tests: New file.
45109         * tests/test-round1.c: New file.
45110         * tests/test-round2.c: New file.
45111         * tests/test-roundf1.c: New file.
45112         * tests/test-roundf2.c: New file.
45113         * tests/test-roundl.c: New file.
45114         * doc/functions/round.texi: Mention round module.
45115         * doc/functions/roundf.texi: Mention roundf module.
45116         * doc/functions/roundl.texi: Mention roundl module.
45117         * MODULES.html.sh: Mention new modules.
45118         Thanks to Bruno Haible for suggestions.
45119
45120 2007-10-20  Jim Meyering  <meyering@redhat.com>
45121
45122         * lib/xprintf.c: Include <config.h> unconditionally.
45123
45124         Change xprintf's license to GPL.
45125         * modules/xprintf (License): s/LGPL/GPL/, since this module
45126         depends on modules (exit and exitfail) which are GPL.
45127         Suggestion from Bruno Haible.
45128
45129         xprintf fixes.
45130         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45131         Use a clearer diagnostic.
45132         Patch from Bruno Haible.
45133
45134 2007-10-20  Bruno Haible  <bruno@clisp.org>
45135
45136         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45137         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45139
45140 2007-10-20  Bruno Haible  <bruno@clisp.org>
45141
45142         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45143         precision in the comparison result > x - 1 or similar.
45144         * tests/test-ceilf2.c (correct_result_p): Likewise.
45145         * tests/test-truncf2.c (correct_result_p): Likewise.
45146         * tests/test-trunc2.c (correct_result_p): Likewise.
45147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45148
45149 2007-10-20  Bruno Haible  <bruno@clisp.org>
45150
45151         * modules/ceil: New file.
45152         * m4/ceil.m4: New file.
45153         * doc/functions/ceil.texi: Mention the 'ceil' module.
45154
45155 2007-10-20  Bruno Haible  <bruno@clisp.org>
45156
45157         * modules/floor: New file.
45158         * m4/floor.m4: New file.
45159         * doc/functions/floor.texi: Mention the 'floor' module.
45160
45161 2007-10-20  Bruno Haible  <bruno@clisp.org>
45162
45163         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45164         of %a.
45165         * modules/floorf-tests (Depends-on): Likewise.
45166         * modules/truncf-tests (Depends-on): Likewise.
45167         * modules/trunc-tests (Depends-on): Likewise.
45168         Reported by Ben Pfaff.
45169
45170 2007-10-19  Jim Meyering  <meyering@redhat.com>
45171
45172         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45173         Don't bother testing specific errno values.  Just test ferror.
45174
45175         New module: xprintf
45176         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45177
45178 2007-10-19  Bruno Haible  <bruno@clisp.org>
45179
45180         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45181         syntax.
45182         * modules/javaexec (Makefile.am): Likewise.
45183         * modules/relocatable-prog (Makefile.am): Likewise.
45184         Suggested by Jim Meyering.
45185
45186 2007-10-18  Bruno Haible  <bruno@clisp.org>
45187
45188         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45189         Reported by Jim Meyering.
45190
45191 2007-10-18  Eric Blake  <ebb9@byu.net>
45192
45193         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45194
45195 2007-10-18  Bruno Haible  <bruno@clisp.org>
45196
45197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45198         the format string into writable memory. Needed in Fortify conditions.
45199
45200 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45201             Bruno Haible  <bruno@clisp.org>
45202
45203         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45204         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45205         * modules/trim (Depends-on): Add mbchar.
45206         (configure.ac): Add gl_FUNC_MBRTOWC.
45207         (Makefile.am): Augment lib_SOURCES.
45208
45209 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45210
45211         Modify glob.c to use fstatat and dirfd, to simplify it.
45212         Suggested by Eric Blake.
45213         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45214         Don't include <stdbool.h>; not used.
45215         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45216         (link_exists_p): Simplify implementation, since we can now assume
45217         dirfd and fstatat.
45218         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45219
45220 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45221
45222         * gnulib-tool (func_get_dependencies): Fix sed script to
45223         match only tests.
45224
45225 2007-10-17  Bruno Haible  <bruno@clisp.org>
45226
45227         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45228         allow locale names without encoding suffix.
45229         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45230         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45231
45232 2007-10-16  Bruno Haible  <bruno@clisp.org>
45233
45234         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45235         * lib/getgroups.c (getgroups): Likewise.
45236         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45237
45238 2007-10-16  Bruno Haible  <bruno@clisp.org>
45239
45240         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45241         * modules/malloc-posix (License): Likewise.
45242         * modules/realloc-posix (License): Likewise.
45243         * modules/calloc-posix (License): Likewise.
45244         * modules/intprops (License): Change from GPL to LGPL, with
45245         Paul Eggert's approval.
45246
45247 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45248
45249         Merge glibc changes into lib/glob.c.
45250
45251         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45252         2007-10-15 04:59:03 UTC.  Here are the changes:
45253
45254         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45255
45256         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45257
45258         * lib/glob.c: Add some branch prediction throughout.
45259
45260         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45261
45262         [BZ #5103]
45263         * lib/glob.c (glob): Recognize patterns starting \/.
45264
45265         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45266
45267         [BZ #3996]
45268         * lib/glob.c (attribute_hidden): Define if not defined.
45269         (glob): Unescape dirname, filename or username when needed and not
45270         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45271         is NULL.  Handle unescaped [ in pattern without closing ].
45272         Don't pass GLOB_CHECK down to recursive glob for directories.
45273         (__glob_pattern_type): New function.
45274         (__glob_pattern_p): Implement using __glob_pattern_type.
45275         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45276         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45277         Remove unreachable code.
45278
45279         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45280
45281         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45282         explain why there are no leaks.
45283
45284         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45285
45286         [BZ #3253]
45287         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45288         time, rather allocate increasingly bigger arrays of pointers, if
45289         possible with alloca, if too large with malloc.
45290
45291 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45292
45293         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45294         Problem reported by H.Merijn Brand in
45295         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45296         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45297         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45298
45299 2007-10-15  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45302         with explicit rpl_ prefix.
45303         * lib/fopen.c (fopen): Likewise.
45304         * lib/freopen.c (freopen): Likewise.
45305         * lib/iconv.c (iconv): Likewise.
45306         * lib/iconv_close.c (iconv_close): Likewise.
45307
45308 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45309
45310         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45311
45312 2007-10-15  Bruno Haible  <bruno@clisp.org>
45313
45314         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45315         <stddef.h> instead of <stdlib.h> since we only need NULL.
45316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45317
45318 2007-10-15  Bruno Haible  <bruno@clisp.org>
45319
45320         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45321         Replace paragraph talking about LIBOBJS.
45322         Reported by Colin Watson <cjwatson@debian.org>.
45323
45324 2007-10-15  Bruno Haible  <bruno@clisp.org>
45325
45326         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45327         <stdlib.h> before using NULL.
45328
45329 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45330
45331         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45332         Reported by Albert Chin <china@thewrittenword.com>.
45333
45334 2007-10-14  Bruno Haible  <bruno@clisp.org>
45335
45336         * modules/iconv_open-utf-tests: New file.
45337         * tests/test-iconv-utf.c: New file.
45338
45339         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45340         * modules/iconv_open-utf: New file.
45341         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45342         (iconv, iconv_close): New declarations.
45343         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45344         be defined.
45345         (iconv_open): Add special handling of conversion between UTF-8 and
45346         UTF-{16,32}{BE,LE}.
45347         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45348         * lib/iconv_close.c: New file.
45349         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45350         gl_FUNC_ICONV_OPEN.
45351         (gl_FUNC_ICONV_OPEN): Use it.
45352         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45353         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45354         and REPLACE_ICONV_UTF.
45355         * modules/iconv_open (Depends-on): Add c-strcase.
45356         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45357         ICONV_CONST.
45358         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45359
45360 2007-10-13  Albert Chin  <china@thewrittenword.com>
45361             Bruno Haible  <bruno@clisp.org>
45362
45363         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45364         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45365
45366 2007-10-13  Bruno Haible  <bruno@clisp.org>
45367
45368         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45369         defined, use the ISO C99 inline semantics.
45370         * lib/argp.h (ARGP_EI): Likewise.
45371
45372 2007-10-13  Bruno Haible  <bruno@clisp.org>
45373
45374         Handle 'inline' change in gcc 4.3.0.
45375         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45376         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45377         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45378         argp_fmtstream_point): Disable 'extern' declaration if the function
45379         definition is going to be provided inline.
45380         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45381         semantics, not the ISO C99 inline semantics.
45382         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45383         'extern' declaration if the function definition is going to be provided
45384         inline.
45385         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45386         the GNU C inline semantics, not the ISO C99 inline semantics. With
45387         GCC 4.2, avoid a warning.
45388
45389 2007-10-13  Bruno Haible  <bruno@clisp.org>
45390
45391         * lib/freading.h (freading): Enable the use of __freading for
45392         glibc >= 2.7.
45393         * lib/freading.c (freading): Likewise.
45394
45395 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45396
45397         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45398         "warning: C99 inline functions are not supported; using GNU89".
45399
45400 2007-10-12  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45403         of 2.
45404         * tests/test-ceilf2.c: New file.
45405         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45406
45407         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45408         * modules/ceilf-tests: Update.
45409
45410 2007-10-12  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45413         of 2.
45414         * tests/test-floorf2.c: New file.
45415         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45416
45417         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45418         * modules/floorf-tests: Update.
45419
45420 2007-10-12  Bruno Haible  <bruno@clisp.org>
45421
45422         * tests/test-trunc2.c: New file.
45423         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45424
45425         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45426         * modules/trunc-tests: Update.
45427
45428 2007-10-12  Bruno Haible  <bruno@clisp.org>
45429
45430         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45431         of 2.
45432         * tests/test-truncf2.c: New file.
45433         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45434
45435         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45436         * modules/truncf-tests: Update.
45437
45438 2007-10-11  Eric Blake  <ebb9@byu.net>
45439
45440         Don't claim strerror is broken on Interix.
45441         * doc/functions/strerror.texi (strerror): Known broken systems are
45442         now Solaris 8, and not Interix.
45443         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45444         Interix on cross-compile.
45445         Reported by Martin Koeppe in
45446         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45447
45448 2007-10-11  Bruno Haible  <bruno@clisp.org>
45449
45450         * modules/i-ring-tests: New file.
45451         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45452         instead of assert.
45453
45454 2007-10-11  Bruno Haible  <bruno@clisp.org>
45455
45456         * modules/filenamecat-tests: New file.
45457         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45458         * lib/filenamecat.c: Remove test code.
45459
45460 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45461
45462         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45463
45464         * lib/strerror.c: Include <string.h> always, to test interface,
45465         and to remove the need for the dummy.
45466         Include intprops.h to compute width instead of doing it ourselves
45467         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45468         (strerror): Define it to return NULL if there's no system strerror.
45469         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45470         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45471         ancient pre-strerror Unix systems well any more.  Saying "unknown
45472         system error" is enough.
45473         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45474         simpler strerror.c implementation.
45475         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45476         Simplify the tests to reflect the simpler strerror implementation.
45477         * modules/strerror (Depends-on): Add intprops.
45478
45479 2007-10-09  Eric Blake  <ebb9@byu.net>
45480
45481         Silence test-fpending.
45482         * modules/fpending-tests (Files): Add wrapper script.
45483         * tests/test-fpending.sh: New file.
45484
45485 2007-10-09  Bruno Haible  <bruno@clisp.org>
45486
45487         * MODULES.html.sh (func_module): Don't create a hyperlink for
45488         function names like 'printf_frexp'.
45489         (Misc): Add crc, memxor.
45490         (Characteristics of floating types): New section.
45491         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45492         isnanf-nolibm, signbit, trunc, truncf, truncl.
45493         (Enhancements for ISO C 99 functions): New subsection Input/output.
45494         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45495         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45496         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45497         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45498         (Enhancements for POSIX:2001 functions): Add chdir-long.
45499         (File system functions): Add areadlink, chdir-safer, read-file.
45500         Remove cycle-check.
45501         (File system as inode set): New section.
45502         (Date and time): Add gethrxtime.
45503         (Multithreading): Add openmp.
45504         (Internationalization functions): Add localename.
45505         (Unicode string functions): Add unistr/u*-mbsnlen.
45506         (Support for maintaining and releasing projects): Add git-version-gen.
45507         (Lone files): Remove directories.
45508
45509 2007-10-08  Ben Pfaff  <blp@gnu.org>
45510
45511         * lib/xmalloca.h: Fix typo in comment.
45512
45513 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45514
45515         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45516         when avoiding problems with integer overflow.  Use a portable test
45517         instead.
45518
45519 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45520
45521         * modules/dummy (License): Change to LGPLv2+.
45522         * modules/float (License): Likewise
45523         * modules/realloc (License): Likewise
45524         * modules/stdlib (License): Likewise
45525
45526 2007-10-07  Bruno Haible  <bruno@clisp.org>
45527
45528         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45529         * floor.c (TWO_MANT_DIG): Likewise.
45530         * ceil.c (TWO_MANT_DIG): Likewise.
45531         Reported by Ben Pfaff.
45532
45533 2007-10-07  Bruno Haible  <bruno@clisp.org>
45534
45535         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45536         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45537         * lib/frexp.c (FUNC): Likewise.
45538         * lib/printf-frexp.h (printf_frexp): Likewise.
45539         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45540         * lib/printf-frexp.c (FUNC): Likewise.
45541         Suggested by Jim Meyering.
45542
45543 2007-10-07  Jim Meyering  <meyering@redhat.com>
45544
45545         Make xnanosleep's integer overflow test more robust.
45546         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45547         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45548
45549 2007-10-07  Bruno Haible  <bruno@clisp.org>
45550
45551         * NEWS: Mention the license change.
45552
45553         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45554         abbreviations in the modules files.
45555
45556         Change copyright notice from GPLv2+ to GPLv3+.
45557         * README: Change copyright notice.
45558         * MODULES.html.sh: Likewise.
45559         * build-aux/bootstrap.conf: Likewise.
45560         * build-aux/config.libpath: Likewise.
45561         * build-aux/csharpcomp.sh.in: Likewise.
45562         * build-aux/csharpexec.sh.in: Likewise.
45563         * build-aux/install-reloc: Likewise.
45564         * build-aux/javacomp.sh.in: Likewise.
45565         * build-aux/javaexec.sh.in: Likewise.
45566         * build-aux/ldd.sh.in: Likewise.
45567         * build-aux/reloc-ldflags: Likewise.
45568         * build-aux/relocatable.sh.in: Likewise.
45569         * build-aux/x-to-1.in: Likewise.
45570         * check-module: Likewise.
45571         * config/srclistvars.sh: Likewise.
45572         * gnulib-tool: Likewise.
45573         * lib/acl-internal.h: Likewise.
45574         * lib/acl.c: Likewise.
45575         * lib/acl.h: Likewise.
45576         * lib/acl_entries.c: Likewise.
45577         * lib/areadlink-with-size.c: Likewise.
45578         * lib/areadlink.c: Likewise.
45579         * lib/areadlink.h: Likewise.
45580         * lib/argmatch.c: Likewise.
45581         * lib/argmatch.h: Likewise.
45582         * lib/argp-ba.c: Likewise.
45583         * lib/argp-eexst.c: Likewise.
45584         * lib/argp-fmtstream.c: Likewise.
45585         * lib/argp-fmtstream.h: Likewise.
45586         * lib/argp-fs-xinl.c: Likewise.
45587         * lib/argp-help.c: Likewise.
45588         * lib/argp-namefrob.h: Likewise.
45589         * lib/argp-parse.c: Likewise.
45590         * lib/argp-pin.c: Likewise.
45591         * lib/argp-pv.c: Likewise.
45592         * lib/argp-pvh.c: Likewise.
45593         * lib/argp-xinl.c: Likewise.
45594         * lib/argp.h: Likewise.
45595         * lib/at-func.c: Likewise.
45596         * lib/atanl.c: Likewise.
45597         * lib/backupfile.c: Likewise.
45598         * lib/backupfile.h: Likewise.
45599         * lib/basename.c: Likewise.
45600         * lib/binary-io.h: Likewise.
45601         * lib/byteswap.in.h: Likewise.
45602         * lib/c-stack.c: Likewise.
45603         * lib/c-stack.h: Likewise.
45604         * lib/c-strcasestr.c: Likewise.
45605         * lib/c-strcasestr.h: Likewise.
45606         * lib/c-strstr.c: Likewise.
45607         * lib/c-strstr.h: Likewise.
45608         * lib/c-strtod.c: Likewise.
45609         * lib/calloc.c: Likewise.
45610         * lib/canon-host.c: Likewise.
45611         * lib/canon-host.h: Likewise.
45612         * lib/canonicalize-lgpl.c: Likewise.
45613         * lib/canonicalize.c: Likewise.
45614         * lib/canonicalize.h: Likewise.
45615         * lib/ceil.c: Likewise.
45616         * lib/ceilf.c: Likewise.
45617         * lib/ceill.c: Likewise.
45618         * lib/chdir-long.c: Likewise.
45619         * lib/chdir-long.h: Likewise.
45620         * lib/chdir-safer.c: Likewise.
45621         * lib/chdir-safer.h: Likewise.
45622         * lib/chown.c: Likewise.
45623         * lib/classpath.c: Likewise.
45624         * lib/classpath.h: Likewise.
45625         * lib/clean-temp.c: Likewise.
45626         * lib/clean-temp.h: Likewise.
45627         * lib/cloexec.c: Likewise.
45628         * lib/close-stream.c: Likewise.
45629         * lib/closein.c: Likewise.
45630         * lib/closein.h: Likewise.
45631         * lib/closeout.c: Likewise.
45632         * lib/closeout.h: Likewise.
45633         * lib/concat-filename.c: Likewise.
45634         * lib/copy-file.c: Likewise.
45635         * lib/copy-file.h: Likewise.
45636         * lib/count-one-bits.h: Likewise.
45637         * lib/crc.c: Likewise.
45638         * lib/crc.h: Likewise.
45639         * lib/creat-safer.c: Likewise.
45640         * lib/csharpcomp.c: Likewise.
45641         * lib/csharpcomp.h: Likewise.
45642         * lib/csharpexec.c: Likewise.
45643         * lib/csharpexec.h: Likewise.
45644         * lib/cycle-check.c: Likewise.
45645         * lib/cycle-check.h: Likewise.
45646         * lib/diacrit.c: Likewise.
45647         * lib/diacrit.h: Likewise.
45648         * lib/diffseq.h: Likewise.
45649         * lib/dirchownmod.c: Likewise.
45650         * lib/dirent.in.h: Likewise.
45651         * lib/dirfd.c: Likewise.
45652         * lib/dirfd.h: Likewise.
45653         * lib/dirname.c: Likewise.
45654         * lib/dirname.h: Likewise.
45655         * lib/dummy.c: Likewise.
45656         * lib/dup-safer.c: Likewise.
45657         * lib/dup2.c: Likewise.
45658         * lib/eealloc.h: Likewise.
45659         * lib/error.c: Likewise.
45660         * lib/error.h: Likewise.
45661         * lib/euidaccess.c: Likewise.
45662         * lib/exclude.c: Likewise.
45663         * lib/exclude.h: Likewise.
45664         * lib/execute.c: Likewise.
45665         * lib/execute.h: Likewise.
45666         * lib/exitfail.c: Likewise.
45667         * lib/exitfail.h: Likewise.
45668         * lib/expl.c: Likewise.
45669         * lib/fatal-signal.c: Likewise.
45670         * lib/fatal-signal.h: Likewise.
45671         * lib/fbufmode.c: Likewise.
45672         * lib/fbufmode.h: Likewise.
45673         * lib/fchdir.c: Likewise.
45674         * lib/fchmodat.c: Likewise.
45675         * lib/fchownat.c: Likewise.
45676         * lib/fcntl--.h: Likewise.
45677         * lib/fcntl-safer.h: Likewise.
45678         * lib/fcntl.in.h: Likewise.
45679         * lib/fd-safer.c: Likewise.
45680         * lib/fflush.c: Likewise.
45681         * lib/file-has-acl.c: Likewise.
45682         * lib/file-set.c: Likewise.
45683         * lib/file-type.c: Likewise.
45684         * lib/file-type.h: Likewise.
45685         * lib/fileblocks.c: Likewise.
45686         * lib/filemode.c: Likewise.
45687         * lib/filemode.h: Likewise.
45688         * lib/filename.h: Likewise.
45689         * lib/filenamecat.c: Likewise.
45690         * lib/filenamecat.h: Likewise.
45691         * lib/findprog.c: Likewise.
45692         * lib/findprog.h: Likewise.
45693         * lib/float.in.h: Likewise.
45694         * lib/floor.c: Likewise.
45695         * lib/floorf.c: Likewise.
45696         * lib/floorl.c: Likewise.
45697         * lib/fopen-safer.c: Likewise.
45698         * lib/fopen.c: Likewise.
45699         * lib/fpending.c: Likewise.
45700         * lib/fpending.h: Likewise.
45701         * lib/fprintf.c: Likewise.
45702         * lib/fprintftime.h: Likewise.
45703         * lib/fpucw.h: Likewise.
45704         * lib/fpurge.c: Likewise.
45705         * lib/fpurge.h: Likewise.
45706         * lib/freadable.c: Likewise.
45707         * lib/freadable.h: Likewise.
45708         * lib/freadahead.c: Likewise.
45709         * lib/freadahead.h: Likewise.
45710         * lib/freading.c: Likewise.
45711         * lib/freading.h: Likewise.
45712         * lib/free.c: Likewise.
45713         * lib/freopen.c: Likewise.
45714         * lib/frexp.c: Likewise.
45715         * lib/frexpl.c: Likewise.
45716         * lib/fseek.c: Likewise.
45717         * lib/fseterr.c: Likewise.
45718         * lib/fseterr.h: Likewise.
45719         * lib/fstatat.c: Likewise.
45720         * lib/fstrcmp.c: Likewise.
45721         * lib/fstrcmp.h: Likewise.
45722         * lib/fsusage.c: Likewise.
45723         * lib/fsusage.h: Likewise.
45724         * lib/ftell.c: Likewise.
45725         * lib/ftello.c: Likewise.
45726         * lib/fts-cycle.c: Likewise.
45727         * lib/fts.c: Likewise.
45728         * lib/fts_.h: Likewise.
45729         * lib/full-read.c: Likewise.
45730         * lib/full-read.h: Likewise.
45731         * lib/full-write.c: Likewise.
45732         * lib/full-write.h: Likewise.
45733         * lib/fwritable.c: Likewise.
45734         * lib/fwritable.h: Likewise.
45735         * lib/fwriteerror.c: Likewise.
45736         * lib/fwriteerror.h: Likewise.
45737         * lib/fwriting.c: Likewise.
45738         * lib/fwriting.h: Likewise.
45739         * lib/gcd.c: Likewise.
45740         * lib/gcd.h: Likewise.
45741         * lib/getcwd.c: Likewise.
45742         * lib/getdate.h: Likewise.
45743         * lib/getdate.y: Likewise.
45744         * lib/getdomainname.c: Likewise.
45745         * lib/getdomainname.h: Likewise.
45746         * lib/getgroups.c: Likewise.
45747         * lib/gethostname.c: Likewise.
45748         * lib/gethrxtime.c: Likewise.
45749         * lib/gethrxtime.h: Likewise.
45750         * lib/getloadavg.c: Likewise.
45751         * lib/getndelim2.c: Likewise.
45752         * lib/getndelim2.h: Likewise.
45753         * lib/getnline.c: Likewise.
45754         * lib/getnline.h: Likewise.
45755         * lib/getopt.c: Likewise.
45756         * lib/getopt.in.h: Likewise.
45757         * lib/getopt1.c: Likewise.
45758         * lib/getopt_int.h: Likewise.
45759         * lib/getpagesize.h: Likewise.
45760         * lib/getsubopt.c: Likewise.
45761         * lib/gettime.c: Likewise.
45762         * lib/getugroups.c: Likewise.
45763         * lib/getugroups.h: Likewise.
45764         * lib/getusershell.c: Likewise.
45765         * lib/gl_anyavltree_list1.h: Likewise.
45766         * lib/gl_anyavltree_list2.h: Likewise.
45767         * lib/gl_anyhash_list1.h: Likewise.
45768         * lib/gl_anyhash_list2.h: Likewise.
45769         * lib/gl_anylinked_list1.h: Likewise.
45770         * lib/gl_anylinked_list2.h: Likewise.
45771         * lib/gl_anyrbtree_list1.h: Likewise.
45772         * lib/gl_anyrbtree_list2.h: Likewise.
45773         * lib/gl_anytree_list1.h: Likewise.
45774         * lib/gl_anytree_list2.h: Likewise.
45775         * lib/gl_anytree_oset.h: Likewise.
45776         * lib/gl_anytreehash_list1.h: Likewise.
45777         * lib/gl_anytreehash_list2.h: Likewise.
45778         * lib/gl_array_list.c: Likewise.
45779         * lib/gl_array_list.h: Likewise.
45780         * lib/gl_array_oset.c: Likewise.
45781         * lib/gl_array_oset.h: Likewise.
45782         * lib/gl_avltree_list.c: Likewise.
45783         * lib/gl_avltree_list.h: Likewise.
45784         * lib/gl_avltree_oset.c: Likewise.
45785         * lib/gl_avltree_oset.h: Likewise.
45786         * lib/gl_avltreehash_list.c: Likewise.
45787         * lib/gl_avltreehash_list.h: Likewise.
45788         * lib/gl_carray_list.c: Likewise.
45789         * lib/gl_carray_list.h: Likewise.
45790         * lib/gl_linked_list.c: Likewise.
45791         * lib/gl_linked_list.h: Likewise.
45792         * lib/gl_linkedhash_list.c: Likewise.
45793         * lib/gl_linkedhash_list.h: Likewise.
45794         * lib/gl_list.c: Likewise.
45795         * lib/gl_list.h: Likewise.
45796         * lib/gl_oset.c: Likewise.
45797         * lib/gl_oset.h: Likewise.
45798         * lib/gl_rbtree_list.c: Likewise.
45799         * lib/gl_rbtree_list.h: Likewise.
45800         * lib/gl_rbtree_oset.c: Likewise.
45801         * lib/gl_rbtree_oset.h: Likewise.
45802         * lib/gl_rbtreehash_list.c: Likewise.
45803         * lib/gl_rbtreehash_list.h: Likewise.
45804         * lib/gl_sublist.c: Likewise.
45805         * lib/gl_sublist.h: Likewise.
45806         * lib/group-member.c: Likewise.
45807         * lib/group-member.h: Likewise.
45808         * lib/hard-locale.c: Likewise.
45809         * lib/hard-locale.h: Likewise.
45810         * lib/hash-pjw.c: Likewise.
45811         * lib/hash-pjw.h: Likewise.
45812         * lib/hash-triple.c: Likewise.
45813         * lib/hash.c: Likewise.
45814         * lib/hash.h: Likewise.
45815         * lib/human.c: Likewise.
45816         * lib/human.h: Likewise.
45817         * lib/i-ring.c: Likewise.
45818         * lib/i-ring.h: Likewise.
45819         * lib/idcache.c: Likewise.
45820         * lib/imaxabs.c: Likewise.
45821         * lib/imaxdiv.c: Likewise.
45822         * lib/inet_pton.c: Likewise.
45823         * lib/inet_pton.h: Likewise.
45824         * lib/intprops.h: Likewise.
45825         * lib/inttostr.c: Likewise.
45826         * lib/inttostr.h: Likewise.
45827         * lib/inttypes.in.h: Likewise.
45828         * lib/isapipe.c: Likewise.
45829         * lib/isdir.c: Likewise.
45830         * lib/isnan.c: Likewise.
45831         * lib/isnan.h: Likewise.
45832         * lib/isnanf.c: Likewise.
45833         * lib/isnanf.h: Likewise.
45834         * lib/isnanl-nolibm.h: Likewise.
45835         * lib/isnanl.c: Likewise.
45836         * lib/isnanl.h: Likewise.
45837         * lib/javacomp.c: Likewise.
45838         * lib/javacomp.h: Likewise.
45839         * lib/javaexec.c: Likewise.
45840         * lib/javaexec.h: Likewise.
45841         * lib/javaversion.c: Likewise.
45842         * lib/javaversion.h: Likewise.
45843         * lib/javaversion.java: Likewise.
45844         * lib/lbrkprop.h: Likewise.
45845         * lib/lchmod.h: Likewise.
45846         * lib/lchown.c: Likewise.
45847         * lib/ldexpl.c: Likewise.
45848         * lib/linebreak.c: Likewise.
45849         * lib/linebreak.h: Likewise.
45850         * lib/linebuffer.c: Likewise.
45851         * lib/linebuffer.h: Likewise.
45852         * lib/locale.in.h: Likewise.
45853         * lib/logl.c: Likewise.
45854         * lib/long-options.c: Likewise.
45855         * lib/long-options.h: Likewise.
45856         * lib/lstat.c: Likewise.
45857         * lib/lstat.h: Likewise.
45858         * lib/math.in.h: Likewise.
45859         * lib/mbchar.c: Likewise.
45860         * lib/mbchar.h: Likewise.
45861         * lib/mbfile.h: Likewise.
45862         * lib/mbiter.h: Likewise.
45863         * lib/mbscasecmp.c: Likewise.
45864         * lib/mbscasestr.c: Likewise.
45865         * lib/mbschr.c: Likewise.
45866         * lib/mbscspn.c: Likewise.
45867         * lib/mbslen.c: Likewise.
45868         * lib/mbsncasecmp.c: Likewise.
45869         * lib/mbsnlen.c: Likewise.
45870         * lib/mbspbrk.c: Likewise.
45871         * lib/mbspcasecmp.c: Likewise.
45872         * lib/mbsrchr.c: Likewise.
45873         * lib/mbssep.c: Likewise.
45874         * lib/mbsspn.c: Likewise.
45875         * lib/mbsstr.c: Likewise.
45876         * lib/mbstok_r.c: Likewise.
45877         * lib/mbswidth.c: Likewise.
45878         * lib/mbswidth.h: Likewise.
45879         * lib/mbuiter.h: Likewise.
45880         * lib/memcasecmp.c: Likewise.
45881         * lib/memcasecmp.h: Likewise.
45882         * lib/memchr.c: Likewise.
45883         * lib/memcmp.c: Likewise.
45884         * lib/memcoll.c: Likewise.
45885         * lib/memcoll.h: Likewise.
45886         * lib/memcpy.c: Likewise.
45887         * lib/memrchr.c: Likewise.
45888         * lib/mkancesdirs.c: Likewise.
45889         * lib/mkdir-p.c: Likewise.
45890         * lib/mkdir-p.h: Likewise.
45891         * lib/mkdir.c: Likewise.
45892         * lib/mkdirat.c: Likewise.
45893         * lib/mkdtemp.c: Likewise.
45894         * lib/mkstemp-safer.c: Likewise.
45895         * lib/mkstemp.c: Likewise.
45896         * lib/modechange.c: Likewise.
45897         * lib/modechange.h: Likewise.
45898         * lib/mountlist.c: Likewise.
45899         * lib/mountlist.h: Likewise.
45900         * lib/mpsort.c: Likewise.
45901         * lib/nanosleep.c: Likewise.
45902         * lib/obstack.c: Likewise.
45903         * lib/obstack.h: Likewise.
45904         * lib/open-safer.c: Likewise.
45905         * lib/open.c: Likewise.
45906         * lib/openat-die.c: Likewise.
45907         * lib/openat-priv.h: Likewise.
45908         * lib/openat-proc.c: Likewise.
45909         * lib/openat.c: Likewise.
45910         * lib/openat.h: Likewise.
45911         * lib/pagealign_alloc.c: Likewise.
45912         * lib/pagealign_alloc.h: Likewise.
45913         * lib/physmem.c: Likewise.
45914         * lib/physmem.h: Likewise.
45915         * lib/pipe-safer.c: Likewise.
45916         * lib/pipe.c: Likewise.
45917         * lib/pipe.h: Likewise.
45918         * lib/posixtm.c: Likewise.
45919         * lib/posixtm.h: Likewise.
45920         * lib/posixver.c: Likewise.
45921         * lib/printf-frexp.c: Likewise.
45922         * lib/printf-frexp.h: Likewise.
45923         * lib/printf-frexpl.c: Likewise.
45924         * lib/printf-frexpl.h: Likewise.
45925         * lib/printf.c: Likewise.
45926         * lib/progname.c: Likewise.
45927         * lib/progname.h: Likewise.
45928         * lib/progreloc.c: Likewise.
45929         * lib/putenv.c: Likewise.
45930         * lib/quote.c: Likewise.
45931         * lib/quote.h: Likewise.
45932         * lib/quotearg.c: Likewise.
45933         * lib/quotearg.h: Likewise.
45934         * lib/raise.c: Likewise.
45935         * lib/readline.c: Likewise.
45936         * lib/readline.h: Likewise.
45937         * lib/readlink.c: Likewise.
45938         * lib/readtokens.c: Likewise.
45939         * lib/readtokens.h: Likewise.
45940         * lib/readtokens0.c: Likewise.
45941         * lib/readtokens0.h: Likewise.
45942         * lib/readutmp.c: Likewise.
45943         * lib/readutmp.h: Likewise.
45944         * lib/realloc.c: Likewise.
45945         * lib/relocwrapper.c: Likewise.
45946         * lib/rename-dest-slash.c: Likewise.
45947         * lib/rename.c: Likewise.
45948         * lib/rmdir.c: Likewise.
45949         * lib/rpmatch.c: Likewise.
45950         * lib/safe-read.c: Likewise.
45951         * lib/safe-read.h: Likewise.
45952         * lib/safe-write.c: Likewise.
45953         * lib/safe-write.h: Likewise.
45954         * lib/same-inode.h: Likewise.
45955         * lib/same.c: Likewise.
45956         * lib/same.h: Likewise.
45957         * lib/save-cwd.c: Likewise.
45958         * lib/save-cwd.h: Likewise.
45959         * lib/savedir.c: Likewise.
45960         * lib/savedir.h: Likewise.
45961         * lib/savewd.c: Likewise.
45962         * lib/savewd.h: Likewise.
45963         * lib/search.in.h: Likewise.
45964         * lib/setenv.c: Likewise.
45965         * lib/setenv.h: Likewise.
45966         * lib/settime.c: Likewise.
45967         * lib/sh-quote.c: Likewise.
45968         * lib/sh-quote.h: Likewise.
45969         * lib/sig2str.c: Likewise.
45970         * lib/sig2str.h: Likewise.
45971         * lib/signal.in.h: Likewise.
45972         * lib/signbitd.c: Likewise.
45973         * lib/signbitf.c: Likewise.
45974         * lib/signbitl.c: Likewise.
45975         * lib/sigprocmask.c: Likewise.
45976         * lib/sincosl.c: Likewise.
45977         * lib/sleep.c: Likewise.
45978         * lib/sprintf.c: Likewise.
45979         * lib/sqrtl.c: Likewise.
45980         * lib/stat-time.h: Likewise.
45981         * lib/stdio--.h: Likewise.
45982         * lib/stdio-safer.h: Likewise.
45983         * lib/stdlib--.h: Likewise.
45984         * lib/stdlib-safer.h: Likewise.
45985         * lib/stdlib.in.h: Likewise.
45986         * lib/stpcpy.c: Likewise.
45987         * lib/stpncpy.c: Likewise.
45988         * lib/strchrnul.c: Likewise.
45989         * lib/strcspn.c: Likewise.
45990         * lib/strerror.c: Likewise.
45991         * lib/strftime.c: Likewise.
45992         * lib/strftime.h: Likewise.
45993         * lib/striconveh.c: Likewise.
45994         * lib/striconveh.h: Likewise.
45995         * lib/striconveha.c: Likewise.
45996         * lib/striconveha.h: Likewise.
45997         * lib/stripslash.c: Likewise.
45998         * lib/strnlen1.c: Likewise.
45999         * lib/strnlen1.h: Likewise.
46000         * lib/strtod.c: Likewise.
46001         * lib/strtoimax.c: Likewise.
46002         * lib/strtok_r.c: Likewise.
46003         * lib/strtol.c: Likewise.
46004         * lib/strtoll.c: Likewise.
46005         * lib/strtoul.c: Likewise.
46006         * lib/strtoull.c: Likewise.
46007         * lib/sysexits.in.h: Likewise.
46008         * lib/tempname.c: Likewise.
46009         * lib/tempname.h: Likewise.
46010         * lib/timespec.h: Likewise.
46011         * lib/tls.c: Likewise.
46012         * lib/tls.h: Likewise.
46013         * lib/tmpdir.c: Likewise.
46014         * lib/tmpdir.h: Likewise.
46015         * lib/tmpfile-safer.c: Likewise.
46016         * lib/tmpfile.c: Likewise.
46017         * lib/trigl.c: Likewise.
46018         * lib/trigl.h: Likewise.
46019         * lib/trim.c: Likewise.
46020         * lib/trim.h: Likewise.
46021         * lib/trunc.c: Likewise.
46022         * lib/truncf.c: Likewise.
46023         * lib/truncl.c: Likewise.
46024         * lib/tsearch.c: Likewise.
46025         * lib/unicodeio.c: Likewise.
46026         * lib/unicodeio.h: Likewise.
46027         * lib/unistd--.h: Likewise.
46028         * lib/unistd-safer.h: Likewise.
46029         * lib/unistdio/ulc-fprintf.c: Likewise.
46030         * lib/unistdio/ulc-vfprintf.c: Likewise.
46031         * lib/unlinkdir.c: Likewise.
46032         * lib/unlinkdir.h: Likewise.
46033         * lib/unlocked-io.h: Likewise.
46034         * lib/unsetenv.c: Likewise.
46035         * lib/userspec.c: Likewise.
46036         * lib/utime.c: Likewise.
46037         * lib/utimecmp.c: Likewise.
46038         * lib/utimecmp.h: Likewise.
46039         * lib/utimens.c: Likewise.
46040         * lib/verify.h: Likewise.
46041         * lib/verror.c: Likewise.
46042         * lib/verror.h: Likewise.
46043         * lib/version-etc-fsf.c: Likewise.
46044         * lib/version-etc.c: Likewise.
46045         * lib/version-etc.h: Likewise.
46046         * lib/vfprintf.c: Likewise.
46047         * lib/vprintf.c: Likewise.
46048         * lib/vsprintf.c: Likewise.
46049         * lib/w32spawn.h: Likewise.
46050         * lib/wait-process.c: Likewise.
46051         * lib/wait-process.h: Likewise.
46052         * lib/wcwidth.c: Likewise.
46053         * lib/write-any-file.c: Likewise.
46054         * lib/xalloc-die.c: Likewise.
46055         * lib/xalloc.h: Likewise.
46056         * lib/xasprintf.c: Likewise.
46057         * lib/xgetcwd.c: Likewise.
46058         * lib/xgetcwd.h: Likewise.
46059         * lib/xgetdomainname.c: Likewise.
46060         * lib/xgetdomainname.h: Likewise.
46061         * lib/xgethostname.c: Likewise.
46062         * lib/xmalloc.c: Likewise.
46063         * lib/xmalloca.c: Likewise.
46064         * lib/xmalloca.h: Likewise.
46065         * lib/xmemcoll.c: Likewise.
46066         * lib/xnanosleep.c: Likewise.
46067         * lib/xreadlink.c: Likewise.
46068         * lib/xreadlink.h: Likewise.
46069         * lib/xsetenv.c: Likewise.
46070         * lib/xsetenv.h: Likewise.
46071         * lib/xstriconv.c: Likewise.
46072         * lib/xstriconv.h: Likewise.
46073         * lib/xstrndup.c: Likewise.
46074         * lib/xstrndup.h: Likewise.
46075         * lib/xstrtod.c: Likewise.
46076         * lib/xstrtod.h: Likewise.
46077         * lib/xstrtol-error.c: Likewise.
46078         * lib/xstrtol.c: Likewise.
46079         * lib/xstrtol.h: Likewise.
46080         * lib/xtime.h: Likewise.
46081         * lib/xvasprintf.c: Likewise.
46082         * lib/xvasprintf.h: Likewise.
46083         * lib/yesno.c: Likewise.
46084         * lib/yesno.h: Likewise.
46085         * posix-modules: Likewise.
46086         * tests/test-alloca-opt.c: Likewise.
46087         * tests/test-arcfour.c: Likewise.
46088         * tests/test-arctwo.c: Likewise.
46089         * tests/test-argmatch.c: Likewise.
46090         * tests/test-argp-2.sh: Likewise.
46091         * tests/test-argp.c: Likewise.
46092         * tests/test-arpa_inet.c: Likewise.
46093         * tests/test-array_list.c: Likewise.
46094         * tests/test-array_oset.c: Likewise.
46095         * tests/test-atexit.c: Likewise.
46096         * tests/test-avltree_list.c: Likewise.
46097         * tests/test-avltree_oset.c: Likewise.
46098         * tests/test-avltreehash_list.c: Likewise.
46099         * tests/test-base64.c: Likewise.
46100         * tests/test-binary-io.c: Likewise.
46101         * tests/test-byteswap.c: Likewise.
46102         * tests/test-c-ctype.c: Likewise.
46103         * tests/test-c-strcasecmp.c: Likewise.
46104         * tests/test-c-strcasestr.c: Likewise.
46105         * tests/test-c-strncasecmp.c: Likewise.
46106         * tests/test-c-strstr.c: Likewise.
46107         * tests/test-canonicalize-lgpl.c: Likewise.
46108         * tests/test-canonicalize.c: Likewise.
46109         * tests/test-carray_list.c: Likewise.
46110         * tests/test-ceilf.c: Likewise.
46111         * tests/test-ceill.c: Likewise.
46112         * tests/test-count-one-bits.c: Likewise.
46113         * tests/test-crc.c: Likewise.
46114         * tests/test-dirname.c: Likewise.
46115         * tests/test-fbufmode.c: Likewise.
46116         * tests/test-fcntl.c: Likewise.
46117         * tests/test-fflush.c: Likewise.
46118         * tests/test-floorf.c: Likewise.
46119         * tests/test-floorl.c: Likewise.
46120         * tests/test-fopen.c: Likewise.
46121         * tests/test-fprintf-posix.c: Likewise.
46122         * tests/test-fprintf-posix.h: Likewise.
46123         * tests/test-fpurge.c: Likewise.
46124         * tests/test-freadable.c: Likewise.
46125         * tests/test-freadahead.c: Likewise.
46126         * tests/test-freading.c: Likewise.
46127         * tests/test-freopen.c: Likewise.
46128         * tests/test-frexp.c: Likewise.
46129         * tests/test-frexpl.c: Likewise.
46130         * tests/test-fseek.c: Likewise.
46131         * tests/test-fseeko.c: Likewise.
46132         * tests/test-fseterr.c: Likewise.
46133         * tests/test-fstrcmp.c: Likewise.
46134         * tests/test-ftell.c: Likewise.
46135         * tests/test-ftello.c: Likewise.
46136         * tests/test-fwritable.c: Likewise.
46137         * tests/test-fwriting.c: Likewise.
46138         * tests/test-getaddrinfo.c: Likewise.
46139         * tests/test-getpass.c: Likewise.
46140         * tests/test-gettimeofday.c: Likewise.
46141         * tests/test-hmac-md5.c: Likewise.
46142         * tests/test-hmac-sha1.c: Likewise.
46143         * tests/test-iconv.c: Likewise.
46144         * tests/test-iconvme.c: Likewise.
46145         * tests/test-inttypes.c: Likewise.
46146         * tests/test-isnan.c: Likewise.
46147         * tests/test-isnanf.c: Likewise.
46148         * tests/test-isnanl-nolibm.c: Likewise.
46149         * tests/test-isnanl.c: Likewise.
46150         * tests/test-isnanl.h: Likewise.
46151         * tests/test-ldexpl.c: Likewise.
46152         * tests/test-linked_list.c: Likewise.
46153         * tests/test-linkedhash_list.c: Likewise.
46154         * tests/test-locale.c: Likewise.
46155         * tests/test-localename.c: Likewise.
46156         * tests/test-lock.c: Likewise.
46157         * tests/test-lseek.c: Likewise.
46158         * tests/test-malloca.c: Likewise.
46159         * tests/test-math.c: Likewise.
46160         * tests/test-mbscasecmp.c: Likewise.
46161         * tests/test-mbscasestr1.c: Likewise.
46162         * tests/test-mbscasestr2.c: Likewise.
46163         * tests/test-mbscasestr3.c: Likewise.
46164         * tests/test-mbscasestr4.c: Likewise.
46165         * tests/test-mbschr.c: Likewise.
46166         * tests/test-mbscspn.c: Likewise.
46167         * tests/test-mbsncasecmp.c: Likewise.
46168         * tests/test-mbspbrk.c: Likewise.
46169         * tests/test-mbspcasecmp.c: Likewise.
46170         * tests/test-mbsrchr.c: Likewise.
46171         * tests/test-mbsspn.c: Likewise.
46172         * tests/test-mbsstr1.c: Likewise.
46173         * tests/test-mbsstr2.c: Likewise.
46174         * tests/test-mbsstr3.c: Likewise.
46175         * tests/test-md5.c: Likewise.
46176         * tests/test-memmem.c: Likewise.
46177         * tests/test-netinet_in.c: Likewise.
46178         * tests/test-open.c: Likewise.
46179         * tests/test-printf-frexp.c: Likewise.
46180         * tests/test-printf-frexpl.c: Likewise.
46181         * tests/test-printf-posix.c: Likewise.
46182         * tests/test-printf-posix.h: Likewise.
46183         * tests/test-rbtree_list.c: Likewise.
46184         * tests/test-rbtree_oset.c: Likewise.
46185         * tests/test-rbtreehash_list.c: Likewise.
46186         * tests/test-read-file.c: Likewise.
46187         * tests/test-rijndael.c: Likewise.
46188         * tests/test-search.c: Likewise.
46189         * tests/test-signbit.c: Likewise.
46190         * tests/test-sleep.c: Likewise.
46191         * tests/test-snprintf-posix.c: Likewise.
46192         * tests/test-snprintf-posix.h: Likewise.
46193         * tests/test-snprintf.c: Likewise.
46194         * tests/test-sprintf-posix.c: Likewise.
46195         * tests/test-sprintf-posix.h: Likewise.
46196         * tests/test-stat-time.c: Likewise.
46197         * tests/test-stdbool.c: Likewise.
46198         * tests/test-stdint.c: Likewise.
46199         * tests/test-stdio.c: Likewise.
46200         * tests/test-stdlib.c: Likewise.
46201         * tests/test-stpncpy.c: Likewise.
46202         * tests/test-strcasestr.c: Likewise.
46203         * tests/test-striconv.c: Likewise.
46204         * tests/test-striconveh.c: Likewise.
46205         * tests/test-striconveha.c: Likewise.
46206         * tests/test-string.c: Likewise.
46207         * tests/test-sys_select.c: Likewise.
46208         * tests/test-sys_socket.c: Likewise.
46209         * tests/test-sys_stat.c: Likewise.
46210         * tests/test-sys_time.c: Likewise.
46211         * tests/test-sysexits.c: Likewise.
46212         * tests/test-time.c: Likewise.
46213         * tests/test-tls.c: Likewise.
46214         * tests/test-trunc.c: Likewise.
46215         * tests/test-truncf.c: Likewise.
46216         * tests/test-truncl.c: Likewise.
46217         * tests/test-unistd.c: Likewise.
46218         * tests/test-vasnprintf-posix.c: Likewise.
46219         * tests/test-vasnprintf-posix2.c: Likewise.
46220         * tests/test-vasnprintf.c: Likewise.
46221         * tests/test-vasprintf-posix.c: Likewise.
46222         * tests/test-vasprintf.c: Likewise.
46223         * tests/test-verify.c: Likewise.
46224         * tests/test-vfprintf-posix.c: Likewise.
46225         * tests/test-vprintf-posix.c: Likewise.
46226         * tests/test-vsnprintf-posix.c: Likewise.
46227         * tests/test-vsnprintf.c: Likewise.
46228         * tests/test-vsprintf-posix.c: Likewise.
46229         * tests/test-wchar.c: Likewise.
46230         * tests/test-wctype.c: Likewise.
46231         * tests/test-wcwidth.c: Likewise.
46232         * tests/test-xstrtol.c: Likewise.
46233         * tests/test-xvasprintf.c: Likewise.
46234         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46235         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46236         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46237         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46238         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46239         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46240         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46241         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46242         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46243         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46244         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46245         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46246         * tests/uniname/test-uninames.c: Likewise.
46247         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46248         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46249         * tests/unistdio/test-u16-printf1.h: Likewise.
46250         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46251         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46252         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46253         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46254         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46255         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46256         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46257         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46258         * tests/unistdio/test-u32-printf1.h: Likewise.
46259         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46260         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46261         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46262         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46263         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46264         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46265         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46266         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46267         * tests/unistdio/test-u8-printf1.h: Likewise.
46268         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46269         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46270         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46271         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46272         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46273         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46274         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46275         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46276         * tests/unistdio/test-ulc-printf1.h: Likewise.
46277         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46278         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46279         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46280         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46281         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46282         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46283         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46284         * tests/uniwidth/test-u16-width.c: Likewise.
46285         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46286         * tests/uniwidth/test-u32-width.c: Likewise.
46287         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46288         * tests/uniwidth/test-u8-width.c: Likewise.
46289         * tests/uniwidth/test-uc_width.c: Likewise.
46290         * config/srclist-update: Likewise.
46291         (fixlicense): Update to GPLv3+.
46292
46293         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46294         * tests/test-tsearch.c: Change copyright notice.
46295
46296         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46297         * lib/c-strcaseeq.h: Change copyright notice.
46298         * lib/streq.h: Likewise.
46299         * lib/uniconv.h: Likewise.
46300         * lib/uniconv/u-conv-from-enc.h: Likewise.
46301         * lib/uniconv/u-conv-to-enc.h: Likewise.
46302         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46303         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46304         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46305         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46306         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46307         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46308         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46309         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46310         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46311         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46312         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46313         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46314         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46315         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46316         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46317         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46318         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46319         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46320         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46321         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46322         * lib/uniname.h: Likewise.
46323         * lib/uniname/uniname.c: Likewise.
46324         * lib/unistdio.h: Likewise.
46325         * lib/unistdio/u-asnprintf.h: Likewise.
46326         * lib/unistdio/u-asprintf.h: Likewise.
46327         * lib/unistdio/u-printf-args.c: Likewise.
46328         * lib/unistdio/u-printf-args.h: Likewise.
46329         * lib/unistdio/u-printf-parse.h: Likewise.
46330         * lib/unistdio/u-snprintf.h: Likewise.
46331         * lib/unistdio/u-sprintf.h: Likewise.
46332         * lib/unistdio/u-vasprintf.h: Likewise.
46333         * lib/unistdio/u-vsnprintf.h: Likewise.
46334         * lib/unistdio/u-vsprintf.h: Likewise.
46335         * lib/unistdio/u16-asnprintf.c: Likewise.
46336         * lib/unistdio/u16-asprintf.c: Likewise.
46337         * lib/unistdio/u16-printf-parse.c: Likewise.
46338         * lib/unistdio/u16-snprintf.c: Likewise.
46339         * lib/unistdio/u16-sprintf.c: Likewise.
46340         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46341         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46342         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46343         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46344         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46345         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46346         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46347         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46348         * lib/unistdio/u16-vasnprintf.c: Likewise.
46349         * lib/unistdio/u16-vasprintf.c: Likewise.
46350         * lib/unistdio/u16-vsnprintf.c: Likewise.
46351         * lib/unistdio/u16-vsprintf.c: Likewise.
46352         * lib/unistdio/u32-asnprintf.c: Likewise.
46353         * lib/unistdio/u32-asprintf.c: Likewise.
46354         * lib/unistdio/u32-printf-parse.c: Likewise.
46355         * lib/unistdio/u32-snprintf.c: Likewise.
46356         * lib/unistdio/u32-sprintf.c: Likewise.
46357         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46358         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46359         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46360         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46361         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46362         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46363         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46364         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46365         * lib/unistdio/u32-vasnprintf.c: Likewise.
46366         * lib/unistdio/u32-vasprintf.c: Likewise.
46367         * lib/unistdio/u32-vsnprintf.c: Likewise.
46368         * lib/unistdio/u32-vsprintf.c: Likewise.
46369         * lib/unistdio/u8-asnprintf.c: Likewise.
46370         * lib/unistdio/u8-asprintf.c: Likewise.
46371         * lib/unistdio/u8-printf-parse.c: Likewise.
46372         * lib/unistdio/u8-snprintf.c: Likewise.
46373         * lib/unistdio/u8-sprintf.c: Likewise.
46374         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46375         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46376         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46377         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46378         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46379         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46380         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46381         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46382         * lib/unistdio/u8-vasnprintf.c: Likewise.
46383         * lib/unistdio/u8-vasprintf.c: Likewise.
46384         * lib/unistdio/u8-vsnprintf.c: Likewise.
46385         * lib/unistdio/u8-vsprintf.c: Likewise.
46386         * lib/unistdio/ulc-asnprintf.c: Likewise.
46387         * lib/unistdio/ulc-asprintf.c: Likewise.
46388         * lib/unistdio/ulc-printf-parse.c: Likewise.
46389         * lib/unistdio/ulc-snprintf.c: Likewise.
46390         * lib/unistdio/ulc-sprintf.c: Likewise.
46391         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46392         * lib/unistdio/ulc-vasprintf.c: Likewise.
46393         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46394         * lib/unistdio/ulc-vsprintf.c: Likewise.
46395         * lib/unistr.h: Likewise.
46396         * lib/unistr/u-cpy-alloc.h: Likewise.
46397         * lib/unistr/u-cpy.h: Likewise.
46398         * lib/unistr/u-endswith.h: Likewise.
46399         * lib/unistr/u-move.h: Likewise.
46400         * lib/unistr/u-set.h: Likewise.
46401         * lib/unistr/u-startswith.h: Likewise.
46402         * lib/unistr/u-stpcpy.h: Likewise.
46403         * lib/unistr/u-stpncpy.h: Likewise.
46404         * lib/unistr/u-strcat.h: Likewise.
46405         * lib/unistr/u-strcpy.h: Likewise.
46406         * lib/unistr/u-strcspn.h: Likewise.
46407         * lib/unistr/u-strdup.h: Likewise.
46408         * lib/unistr/u-strlen.h: Likewise.
46409         * lib/unistr/u-strncat.h: Likewise.
46410         * lib/unistr/u-strncpy.h: Likewise.
46411         * lib/unistr/u-strnlen.h: Likewise.
46412         * lib/unistr/u-strpbrk.h: Likewise.
46413         * lib/unistr/u-strspn.h: Likewise.
46414         * lib/unistr/u-strstr.h: Likewise.
46415         * lib/unistr/u-strtok.h: Likewise.
46416         * lib/unistr/u16-check.c: Likewise.
46417         * lib/unistr/u16-chr.c: Likewise.
46418         * lib/unistr/u16-cmp.c: Likewise.
46419         * lib/unistr/u16-cpy-alloc.c: Likewise.
46420         * lib/unistr/u16-cpy.c: Likewise.
46421         * lib/unistr/u16-endswith.c: Likewise.
46422         * lib/unistr/u16-mblen.c: Likewise.
46423         * lib/unistr/u16-mbsnlen.c: Likewise.
46424         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46425         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46426         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46427         * lib/unistr/u16-mbtouc.c: Likewise.
46428         * lib/unistr/u16-mbtoucr.c: Likewise.
46429         * lib/unistr/u16-move.c: Likewise.
46430         * lib/unistr/u16-next.c: Likewise.
46431         * lib/unistr/u16-prev.c: Likewise.
46432         * lib/unistr/u16-set.c: Likewise.
46433         * lib/unistr/u16-startswith.c: Likewise.
46434         * lib/unistr/u16-stpcpy.c: Likewise.
46435         * lib/unistr/u16-stpncpy.c: Likewise.
46436         * lib/unistr/u16-strcat.c: Likewise.
46437         * lib/unistr/u16-strchr.c: Likewise.
46438         * lib/unistr/u16-strcmp.c: Likewise.
46439         * lib/unistr/u16-strcpy.c: Likewise.
46440         * lib/unistr/u16-strcspn.c: Likewise.
46441         * lib/unistr/u16-strdup.c: Likewise.
46442         * lib/unistr/u16-strlen.c: Likewise.
46443         * lib/unistr/u16-strmblen.c: Likewise.
46444         * lib/unistr/u16-strmbtouc.c: Likewise.
46445         * lib/unistr/u16-strncat.c: Likewise.
46446         * lib/unistr/u16-strncmp.c: Likewise.
46447         * lib/unistr/u16-strncpy.c: Likewise.
46448         * lib/unistr/u16-strnlen.c: Likewise.
46449         * lib/unistr/u16-strpbrk.c: Likewise.
46450         * lib/unistr/u16-strrchr.c: Likewise.
46451         * lib/unistr/u16-strspn.c: Likewise.
46452         * lib/unistr/u16-strstr.c: Likewise.
46453         * lib/unistr/u16-strtok.c: Likewise.
46454         * lib/unistr/u16-to-u32.c: Likewise.
46455         * lib/unistr/u16-to-u8.c: Likewise.
46456         * lib/unistr/u16-uctomb-aux.c: Likewise.
46457         * lib/unistr/u16-uctomb.c: Likewise.
46458         * lib/unistr/u32-check.c: Likewise.
46459         * lib/unistr/u32-chr.c: Likewise.
46460         * lib/unistr/u32-cmp.c: Likewise.
46461         * lib/unistr/u32-cpy-alloc.c: Likewise.
46462         * lib/unistr/u32-cpy.c: Likewise.
46463         * lib/unistr/u32-endswith.c: Likewise.
46464         * lib/unistr/u32-mblen.c: Likewise.
46465         * lib/unistr/u32-mbsnlen.c: Likewise.
46466         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46467         * lib/unistr/u32-mbtouc.c: Likewise.
46468         * lib/unistr/u32-mbtoucr.c: Likewise.
46469         * lib/unistr/u32-move.c: Likewise.
46470         * lib/unistr/u32-next.c: Likewise.
46471         * lib/unistr/u32-prev.c: Likewise.
46472         * lib/unistr/u32-set.c: Likewise.
46473         * lib/unistr/u32-startswith.c: Likewise.
46474         * lib/unistr/u32-stpcpy.c: Likewise.
46475         * lib/unistr/u32-stpncpy.c: Likewise.
46476         * lib/unistr/u32-strcat.c: Likewise.
46477         * lib/unistr/u32-strchr.c: Likewise.
46478         * lib/unistr/u32-strcmp.c: Likewise.
46479         * lib/unistr/u32-strcpy.c: Likewise.
46480         * lib/unistr/u32-strcspn.c: Likewise.
46481         * lib/unistr/u32-strdup.c: Likewise.
46482         * lib/unistr/u32-strlen.c: Likewise.
46483         * lib/unistr/u32-strmblen.c: Likewise.
46484         * lib/unistr/u32-strmbtouc.c: Likewise.
46485         * lib/unistr/u32-strncat.c: Likewise.
46486         * lib/unistr/u32-strncmp.c: Likewise.
46487         * lib/unistr/u32-strncpy.c: Likewise.
46488         * lib/unistr/u32-strnlen.c: Likewise.
46489         * lib/unistr/u32-strpbrk.c: Likewise.
46490         * lib/unistr/u32-strrchr.c: Likewise.
46491         * lib/unistr/u32-strspn.c: Likewise.
46492         * lib/unistr/u32-strstr.c: Likewise.
46493         * lib/unistr/u32-strtok.c: Likewise.
46494         * lib/unistr/u32-to-u16.c: Likewise.
46495         * lib/unistr/u32-to-u8.c: Likewise.
46496         * lib/unistr/u32-uctomb.c: Likewise.
46497         * lib/unistr/u8-check.c: Likewise.
46498         * lib/unistr/u8-chr.c: Likewise.
46499         * lib/unistr/u8-cmp.c: Likewise.
46500         * lib/unistr/u8-cpy-alloc.c: Likewise.
46501         * lib/unistr/u8-cpy.c: Likewise.
46502         * lib/unistr/u8-endswith.c: Likewise.
46503         * lib/unistr/u8-mblen.c: Likewise.
46504         * lib/unistr/u8-mbsnlen.c: Likewise.
46505         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46506         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46507         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46508         * lib/unistr/u8-mbtouc.c: Likewise.
46509         * lib/unistr/u8-mbtoucr.c: Likewise.
46510         * lib/unistr/u8-move.c: Likewise.
46511         * lib/unistr/u8-next.c: Likewise.
46512         * lib/unistr/u8-prev.c: Likewise.
46513         * lib/unistr/u8-set.c: Likewise.
46514         * lib/unistr/u8-startswith.c: Likewise.
46515         * lib/unistr/u8-stpcpy.c: Likewise.
46516         * lib/unistr/u8-stpncpy.c: Likewise.
46517         * lib/unistr/u8-strcat.c: Likewise.
46518         * lib/unistr/u8-strchr.c: Likewise.
46519         * lib/unistr/u8-strcmp.c: Likewise.
46520         * lib/unistr/u8-strcpy.c: Likewise.
46521         * lib/unistr/u8-strcspn.c: Likewise.
46522         * lib/unistr/u8-strdup.c: Likewise.
46523         * lib/unistr/u8-strlen.c: Likewise.
46524         * lib/unistr/u8-strmblen.c: Likewise.
46525         * lib/unistr/u8-strmbtouc.c: Likewise.
46526         * lib/unistr/u8-strncat.c: Likewise.
46527         * lib/unistr/u8-strncmp.c: Likewise.
46528         * lib/unistr/u8-strncpy.c: Likewise.
46529         * lib/unistr/u8-strnlen.c: Likewise.
46530         * lib/unistr/u8-strpbrk.c: Likewise.
46531         * lib/unistr/u8-strrchr.c: Likewise.
46532         * lib/unistr/u8-strspn.c: Likewise.
46533         * lib/unistr/u8-strstr.c: Likewise.
46534         * lib/unistr/u8-strtok.c: Likewise.
46535         * lib/unistr/u8-to-u16.c: Likewise.
46536         * lib/unistr/u8-to-u32.c: Likewise.
46537         * lib/unistr/u8-uctomb-aux.c: Likewise.
46538         * lib/unistr/u8-uctomb.c: Likewise.
46539         * lib/unitypes.h: Likewise.
46540         * lib/uniwidth.h: Likewise.
46541         * lib/uniwidth/cjk.h: Likewise.
46542         * lib/uniwidth/u16-strwidth.c: Likewise.
46543         * lib/uniwidth/u16-width.c: Likewise.
46544         * lib/uniwidth/u32-strwidth.c: Likewise.
46545         * lib/uniwidth/u32-width.c: Likewise.
46546         * lib/uniwidth/u8-strwidth.c: Likewise.
46547         * lib/uniwidth/u8-width.c: Likewise.
46548         * lib/uniwidth/width.c: Likewise.
46549
46550 2007-10-07  Bruno Haible  <bruno@clisp.org>
46551
46552         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46553         The file is still under LGPL (see modules/inttypes).
46554
46555 2007-10-06  Bruno Haible  <bruno@clisp.org>
46556
46557         * modules/trunc (Dependencies): Add 'extensions'.
46558         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46559         Reported by Ben Pfaff <blp@gnu.org>.
46560
46561 2007-10-06  Bruno Haible  <bruno@clisp.org>
46562
46563         * modules/freopen-tests: New file.
46564         * tests/test-freopen.c: New file.
46565
46566         * modules/fopen-tests: New file.
46567         * tests/test-fopen.c: New file.
46568
46569         * modules/fopen: New file.
46570         * lib/fopen.c: New file.
46571         * m4/fopen.m4: New file.
46572         * modules/freopen: New file.
46573         * lib/freopen.c: New file.
46574         * m4/freopen.m4: New file.
46575         * lib/stdio.in.h (fopen, freopen): New declarations.
46576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46577         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46578         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46579         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46580         * doc/functions/fopen.texi: Mention the 'fopen' module.
46581         * doc/functions/freopen.texi: Mention the 'freopen' module.
46582
46583 2007-10-06  Bruno Haible  <bruno@clisp.org>
46584
46585         * modules/open-tests: New file.
46586         * tests/test-open.c: New file.
46587
46588         * modules/open: New file.
46589         * lib/open.c: New file.
46590         * m4/open.m4: New file.
46591         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46592         lib/open.c does.
46593         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46594         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46595         macros.
46596         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46597         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46598         REPLACE_OPEN.
46599         * doc/functions/open.texi: Mention the 'open' module.
46600
46601 2007-10-04  Bruno Haible  <bruno@clisp.org>
46602
46603         * modules/ceill-tests: New file.
46604         * tests/test-ceill.c: New file.
46605
46606         * modules/ceill: New file.
46607         * lib/ceill.c: Replace entire file.
46608         * m4/ceill.m4: New file.
46609         * lib/math.in.h (ceill): Replace declaration.
46610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46611         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46612         * doc/functions/ceill.texi: Mention the 'ceill' module.
46613         * modules/mathl (Files): Remove lib/ceill.c.
46614         (Depends-on): Add ceill.
46615
46616 2007-10-04  Bruno Haible  <bruno@clisp.org>
46617
46618         * modules/ceilf-tests: New file.
46619         * tests/test-ceilf.c: New file.
46620
46621         * modules/ceilf: New file.
46622         * lib/ceil.c: New file.
46623         * lib/ceilf.c: New file.
46624         * m4/ceilf.m4: New file.
46625         * lib/math.in.h (ceilf): New declaration.
46626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46627         HAVE_DECL_CEILF.
46628         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46629         HAVE_DECL_CEILF.
46630         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46631
46632 2007-10-04  Bruno Haible  <bruno@clisp.org>
46633
46634         * modules/floorl-tests: New file.
46635         * tests/test-floorl.c: New file.
46636
46637         * modules/floorl: New file.
46638         * lib/floorl.c: Replace entire file.
46639         * m4/floorl.m4: New file.
46640         * lib/math.in.h (floorl): Replace declaration.
46641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46642         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46643         * doc/functions/floorl.texi: Mention the 'floorl' module.
46644         * modules/mathl (Files): Remove lib/floorl.c.
46645         (Depends-on): Add floorl.
46646
46647 2007-10-04  Bruno Haible  <bruno@clisp.org>
46648
46649         * modules/floorf-tests: New file.
46650         * tests/test-floorf.c: New file.
46651
46652         * modules/floorf: New file.
46653         * lib/floor.c: New file.
46654         * lib/floorf.c: New file.
46655         * m4/floorf.m4: New file.
46656         * lib/math.in.h (floorf): New declaration.
46657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46658         HAVE_DECL_FLOORF.
46659         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46660         HAVE_DECL_FLOORF.
46661         * doc/functions/floorf.texi: Mention the 'floorf' module.
46662
46663 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46664             Bruno Haible  <bruno@clisp.org>
46665
46666         Advertise for the Git server instead of the CVS server.
46667         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46668         repository instead of the CVS one.
46669         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46670         about all VCS systems generically.
46671         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46672
46673 2007-10-04  Bruno Haible  <bruno@clisp.org>
46674
46675         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46676         means.
46677         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46678
46679 2007-10-04  Bruno Haible  <bruno@clisp.org>
46680
46681         * modules/truncl-tests: New file.
46682         * tests/test-truncl.c: New file.
46683
46684         * modules/truncl: New file.
46685         * lib/truncl.c: New file.
46686         * m4/truncl.m4: New file.
46687         * lib/math.in.h (truncl): New declaration.
46688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46689         HAVE_DECL_TRUNCL.
46690         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46691         HAVE_DECL_TRUNCL.
46692         * doc/functions/truncl.texi: Mention the 'truncl' module.
46693
46694 2007-10-04  Bruno Haible  <bruno@clisp.org>
46695
46696         * modules/truncf-tests: New file.
46697         * tests/test-truncf.c: New file.
46698
46699         * modules/truncf: New file.
46700         * lib/trunc.c: Make paramerizable through USE_* macros.
46701         * lib/truncf.c: New file.
46702         * m4/truncf.m4: New file.
46703         * lib/math.in.h (truncf): New declaration.
46704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46705         HAVE_DECL_TRUNCF.
46706         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46707         HAVE_DECL_TRUNCF.
46708         * doc/functions/truncf.texi: Mention the 'truncf' module.
46709
46710 2007-10-03  Bruno Haible  <bruno@clisp.org>
46711
46712         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46713         augmentation also for tests modules.
46714         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46715         * modules/atexit-tests (Makefile.am): Likewise.
46716         * modules/binary-io-tests (Makefile.am): Likewise.
46717         * modules/c-strcase-tests (Makefile.am): Likewise.
46718         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46719         * modules/canonicalize-tests (Makefile.am): Likewise.
46720         * modules/closein-tests (Makefile.am): Likewise.
46721         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46722         * modules/freadahead-tests (Makefile.am): Likewise.
46723         * modules/fseek-tests (Makefile.am): Likewise.
46724         * modules/fseeko-tests (Makefile.am): Likewise.
46725         * modules/ftell-tests (Makefile.am): Likewise.
46726         * modules/ftello-tests (Makefile.am): Likewise.
46727         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46728         * modules/isnanl-tests (Makefile.am): Likewise.
46729         * modules/lseek-tests (Makefile.am): Likewise.
46730         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46731         * modules/mbscasestr-tests (Makefile.am): Likewise.
46732         * modules/mbschr-tests (Makefile.am): Likewise.
46733         * modules/mbscspn-tests (Makefile.am): Likewise.
46734         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46735         * modules/mbspbrk-tests (Makefile.am): Likewise.
46736         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46737         * modules/mbsrchr-tests (Makefile.am): Likewise.
46738         * modules/mbsspn-tests (Makefile.am): Likewise.
46739         * modules/mbsstr-tests (Makefile.am): Likewise.
46740         * modules/printf-posix-tests (Makefile.am): Likewise.
46741         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46742         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46743         * modules/tsearch-tests (Makefile.am): Likewise.
46744         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46745         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46746         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46747         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46748         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46749         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46750         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46751         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46752         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46753         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46754         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46755         * modules/xstrtol-tests (Makefile.am): Likewise.
46756         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46757         * modules/yesno-tests (Makefile.am): Likewise.
46758
46759 2007-10-03  Bruno Haible  <bruno@clisp.org>
46760
46761         * modules/trunc-tests: New file.
46762         * tests/test-trunc.c: New file.
46763
46764         * modules/trunc: New file.
46765         * lib/trunc.c: New file.
46766         * m4/trunc.m4: New file.
46767         * lib/math.in.h (trunc): New declaration.
46768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46769         HAVE_DECL_TRUNC.
46770         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46771         HAVE_DECL_TRUNC.
46772         * doc/functions/trunc.texi: Mention the 'trunc' module.
46773
46774 2007-10-03  Bruno Haible  <bruno@clisp.org>
46775
46776         * tests/test-fpending.c: New file, mostly copied
46777         from coreutils/lib/t-fpending.c.
46778         * modules/fpending-tests: New file.
46779
46780 2007-10-03  Bruno Haible  <bruno@clisp.org>
46781
46782         Port the stdio extensions to QNX (untested).
46783         * lib/fseterr.c (fseterr): Add support for QNX.
46784         * lib/fbufmode.c (fbufmode): Likewise.
46785         * lib/freadable.c (freadable): Likewise.
46786         * lib/fwritable.c (fwritable): Likewise.
46787         * lib/freading.c (freading): Likewise.
46788         * lib/fwriting.c (fwriting): Likewise.
46789         * lib/freadahead.c (freadahed): Likewise.
46790         * lib/fpurge.c (fpurge): Likewise.
46791         * lib/fseeko.c (rpl_fseeko): Likewise.
46792
46793 2007-10-03  Bruno Haible  <bruno@clisp.org>
46794             Jim Meyering  <jim@meyering.net>
46795             Eric Blake  <ebb9@byu.net>
46796
46797         * doc/relocatable.texi: Use @command instead of @program.
46798
46799 2007-10-02  Jim Meyering  <jim@meyering.net>
46800
46801         Perform one more "_.h" -> ".in.h" substitution.
46802         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46803         instead of unistd_.h here, too.
46804
46805 2007-10-01  Bruno Haible  <bruno@clisp.org>
46806
46807         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46808         Needed for the alloca-opt module.
46809
46810 2007-09-30  Bruno Haible  <bruno@clisp.org>
46811
46812         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46813         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46814         alloca_.h.
46815         * lib/argz.in.h: Renamed from lib/argz_.h.
46816         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46817         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46818         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46819         byteswap_.h.
46820         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46821         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46822         dirent_.h.
46823         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46824         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46825         fcntl_.h.
46826         * lib/float.in.h: Renamed from lib/float_.h.
46827         * modules/float (Files, Makefile.am): Use float.in.h instead of
46828         float_.h.
46829         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46830         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46831         fnmatch_.h.
46832         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46833         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46834         getopt_.h.
46835         * lib/glob.in.h: Renamed from lib/glob_.h.
46836         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46837         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46838         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46839         iconv_.h.
46840         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46841         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46842         inttypes_.h.
46843         * lib/locale.in.h: Renamed from lib/locale_.h.
46844         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46845         locale_.h.
46846         * lib/math.in.h: Renamed from lib/math_.h.
46847         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46848         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46849         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46850         of netinet_in_.h. Add dependency.
46851         * lib/poll.in.h: Renamed from lib/poll_.h.
46852         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46853         * lib/search.in.h: Renamed from lib/search_.h.
46854         * modules/search (Files, Makefile.am): Use search.in.h instead of
46855         search_.h.
46856         * lib/signal.in.h: Renamed from lib/signal_.h.
46857         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46858         _signal.h.
46859         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46860         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46861         stdbool_.h.
46862         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46863         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46864         stdint_.h.
46865         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46866         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46867         stdio_.h.
46868         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46869         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46870         stdlib_.h.
46871         * lib/string.in.h: Renamed from lib/string_.h.
46872         * modules/string (Files, Makefile.am): Use string.in.h instead of
46873         string_.h.
46874         * doc/gnulib-tool.texi (Initial import): Update.
46875         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46876         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46877         of sys_select_.h. Add dependency.
46878         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46879         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46880         of sys_socket_.h.
46881         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46882         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46883         sys_stat_.h.
46884         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46885         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46886         sys_time_.h.
46887         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46888         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46889         sysexits_.h.
46890         * lib/time.in.h: Renamed from lib/time_.h.
46891         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46892         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46893         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46894         unistd_.h.
46895         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46896         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46897         wchar_.h.
46898         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46899         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46900         wctype_.h.
46901         * build-aux/bootstrap (slurp): Update.
46902         * lib/.cppi-disable: Update.
46903
46904 2007-09-30  Bruno Haible  <bruno@clisp.org>
46905
46906         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46907         Needed on BeOS.
46908
46909 2007-09-30  Bruno Haible  <bruno@clisp.org>
46910
46911         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46912
46913 2007-09-29  Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46916
46917 2007-09-29  Bruno Haible  <bruno@clisp.org>
46918
46919         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46920         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46921         * build-aux/install-reloc: Compile also areadlink.c.
46922         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46923
46924 2007-09-29  Bruno Haible  <bruno@clisp.org>
46925
46926         * gnulib-tool (func_emit_initmacro_done): Indentation.
46927
46928 2007-09-29  Bruno Haible  <bruno@clisp.org>
46929
46930         * README: Add CVS checkout update instructions.
46931         Info from Bob Proulx <bob@proulx.com>.
46932
46933 2007-09-28  Eric Blake  <ebb9@byu.net>
46934
46935         Provide move-if-change.
46936         * build-aux/move-if-change: New file, based on best practice
46937         rather than any canonical upstream location.
46938
46939 2007-09-28  Jim Meyering  <jim@meyering.net>
46940
46941         Fix canonicalize loop-detection corner case.
46942         Do not attempt to stat the symlink values stored via seen_triple.
46943         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46944         on linux-2.6.18, (but not 2.6.22).
46945         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46946         triple_compare.  The former compares dev,ino,filename, while the latter
46947         would actually stat dirname(filename) when dev and ino were equal.
46948         * lib/hash-triple.c: Install <string.h>.
46949         (STREQ): Define.
46950         (triple_compare_ino_str): New function.
46951         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46952
46953 2007-09-28  Eric Blake  <ebb9@byu.net>
46954
46955         Enforce that AC_REPLACE_FUNCS files exist.
46956         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46957         override check for typos.
46958
46959         Fix test-closein on Solaris 10.
46960         * tests/test-closein.c (main): Don't assume stdin can be inherited
46961         closed on all systems.
46962         * tests/test-closein.sh: Likewise.
46963         Reported by Piotr Tarnowski.
46964
46965 2007-09-28  Jim Meyering  <jim@meyering.net>
46966
46967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46968
46969 2007-09-27  Jim Meyering  <jim@meyering.net>
46970
46971         canonicalize: Avoid a false-positive cycle failure.
46972         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46973         Sort.  Remove cycle-check.
46974         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46975         not cycle-check.h.
46976         (seen_triple): New function.
46977         (canonicalize_filename_mode): Use it instead of cycle-check.
46978         * tests/test-canonicalize.c: Add a test for this bug.
46979         * tests/test-canonicalize.sh: Set up and run the test.
46980
46981         New module, file-set, from coreutils.
46982         * modules/file-set: Define it.
46983         * lib/file-set.c, lib/file-set.h: Implement.
46984
46985         New module, hash-triple, from coreutils.
46986         * modules/hash-triple: Define it.
46987         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46988
46989 2007-09-25  Eric Blake  <ebb9@byu.net>
46990
46991         Fix strerror on Interix.
46992         * lib/string_.h (strerror): Declare replacement.
46993         * doc/functions/strerror.texi (strerror): Document the Interix
46994         shortcoming.
46995         * modules/string (Makefile.am): Support new hooks.
46996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46997         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46998         gl_FUNC_STRERROR_SEPARATE.
46999         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47000         * lib/strerror.c (rpl_strerror): Provide replacement.
47001         * modules/strerror (Depends-on): Add string.
47002         (configure.ac): Detect use of module.
47003         * tests/test-strerror.c: New file.
47004         * modules/strerror-tests: New test module.
47005         * modules/argp (Depends-on): Add strerror.
47006         * modules/error (Depends-on): Likewise.
47007         Reported by Martin Koeppe.
47008
47009 2007-09-24  Bruno Haible  <bruno@clisp.org>
47010
47011         * README: Update git instructions.
47012
47013 2007-09-24  Eric Blake  <ebb9@byu.net>
47014
47015         Revert fpending breakage from 2007-09-08.
47016         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47017         __fpending.c.
47018
47019 2007-09-24  Jim Meyering  <jim@meyering.net>
47020
47021         filenamecat.c: Add a test.
47022         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47023         showing how the function works when DIR is the empty string.
47024
47025 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47026
47027         * tests/test-canonicalize.sh: Turn on executable bit.
47028
47029 2007-09-19  Eric Blake  <ebb9@byu.net>
47030
47031         * README: Update CVS instructions.
47032
47033 2007-09-18  Bruno Haible  <bruno@clisp.org>
47034
47035         * modules/areadlink: New file.
47036         * lib/areadlink.h (areadlink): New declaration.
47037         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47038
47039 2007-09-17  Jim Meyering  <jim@meyering.net>
47040
47041         * lib/savewd.c (ESTALE) [!defined]: Define.
47042         Reported to be required on Interix by Martin Koeppe.
47043
47044 2007-09-17  Bruno Haible  <bruno@clisp.org>
47045
47046         * gnulib-tool (func_version): Use $version.
47047
47048 2007-09-16  Bruno Haible  <bruno@clisp.org>
47049
47050         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47051         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47052         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47053         Reported by Greg Schafer <gschafer@zip.com.au>.
47054
47055 2007-09-15  Bruno Haible  <bruno@clisp.org>
47056
47057         * gnulib-tool (sed): Try a little harder to make bash understand the
47058         alias.
47059         Reported by Bruce Korb <bruce.korb@gmail.com>.
47060
47061 2007-09-13  Eric Blake  <ebb9@byu.net>
47062
47063         * ChangeLog: Remove conflict markers.
47064
47065 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47066
47067         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47068         Reported by Bruno Haible <bruno@clisp.org>.
47069
47070 2007-09-12  Bruno Haible  <bruno@clisp.org>
47071
47072         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47073         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47074         is not defined.
47075
47076 2007-09-12  Eric Blake  <ebb9@byu.net>
47077
47078         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47079         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47080         Autoconf definition.
47081         * modules/euidaccess (Depends-on): Add extensions, for
47082         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47083         * modules/fnmatch (Depends-on): Likewise.
47084         * modules/getaddrinfo (Depends-on): Likewise.
47085         * modules/getdelim (Depends-on): Likewise.
47086         * modules/getline (Depends-on): Likewise.
47087         * modules/getsubopt (Depends-on): Likewise.
47088         * modules/gettext (Depends-on): Likewise.
47089         * modules/group-member (Depends-on): Likewise.
47090         * modules/mbchar (Depends-on): Likewise.
47091         * modules/memmem (Depends-on): Likewise.
47092         * modules/mempcpy (Depends-on): Likewise.
47093         * modules/memrchr (Depends-on): Likewise.
47094         * modules/pagealign_alloc (Depends-on): Likewise.
47095         * modules/readutmp (Depends-on): Likewise.
47096         * modules/stpcpy (Depends-on): Likewise.
47097         * modules/stpncpy (Depends-on): Likewise.
47098         * modules/strchrnul (Depends-on): Likewise.
47099         * modules/strndup (Depends-on): Likewise.
47100         * modules/strsep (Depends-on): Likewise.
47101         * modules/strverscmp (Depends-on): Likewise.
47102         * modules/vasprintf (Depends-on): Likewise.
47103         * modules/wcwidth (Depends-on): Likewise.
47104         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47105         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47106         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47108         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47110         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47111         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47112         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47113         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47115         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47116         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47117         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47118         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47119         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47120         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47121         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47122         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47124         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47125         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47126         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47127         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47128         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47130         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47131         so that lock.m4 can be used in gettext without extensions module.
47132
47133 2007-09-11  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/isc-posix.m4: Remove file.
47136         Suggested by Eric Blake.
47137
47138 2007-09-11  Eric Blake  <ebb9@byu.net>
47139
47140         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47141
47142 2007-09-10  Bruno Haible  <bruno@clisp.org>
47143
47144         * posix-modules: Fix typo in error message.
47145         Reported by Matt <mkraai@beckman.com>.
47146
47147 2007-09-09  Bruno Haible  <bruno@clisp.org>
47148
47149         * doc/functions/getdelim.texi: Update list of platforms lacking the
47150         function.
47151         * doc/functions/getline.texi: Likewise.
47152
47153 2007-09-09  Jim Meyering  <jim@meyering.net>
47154
47155         * lib/hash.c (hash_initialize): Detect calloc failure.
47156         Reported by Bruno Haible.
47157
47158 2007-09-09  Bruno Haible  <bruno@clisp.org>
47159
47160         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47161         malloc or realloc fails.
47162
47163 2007-09-09  Bruno Haible  <bruno@clisp.org>
47164
47165         * modules/getcwd (Depends-on): Add malloc-posix.
47166         * modules/glob (Depends-on): Likewise.
47167         * modules/putenv (Depends-on): Likewise.
47168         * modules/strdup (Depends-on): Likewise.
47169         * modules/getdelim (Depends-on): Add realloc-posix.
47170         * modules/read-file (Depends-on): Likewise.
47171
47172 2007-09-09  Bruno Haible  <bruno@clisp.org>
47173
47174         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47175         (gl_FUNC_MALLOC_POSIX): Require it.
47176         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47177         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47178         * modules/realloc (Files): Add m4/malloc.m4.
47179         * modules/calloc (Files): Likewise.
47180
47181 2007-09-09  Bruno Haible  <bruno@clisp.org>
47182
47183         * modules/malloc-posix: New file.
47184         * modules/malloc (Depends-on): Add malloc-posix.
47185         * lib/malloc.c: Include errno.h.
47186         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47187         and a POSIX-compatible malloc into a single function. Set ENOMEM
47188         when returning NULL.
47189         * m4/malloc.m4: New file.
47190         * doc/functions/malloc.texi: Mention the malloc-posix module.
47191         * lib/stdlib_.h (malloc): New declaration.
47192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47193         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47194         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47195         and HAVE_MALLOC_POSIX.
47196
47197 2007-09-09  Bruno Haible  <bruno@clisp.org>
47198
47199         * modules/realloc-posix: New file.
47200         * modules/realloc (Depends-on): Add realloc-posix.
47201         * lib/realloc.c: Include errno.h.
47202         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47203         and a POSIX-compatible realloc into a single function. Set ENOMEM
47204         when returning NULL.
47205         * m4/realloc.m4: New file.
47206         * doc/functions/realloc.texi: Mention the realloc-posix module.
47207         * lib/stdlib_.h (realloc): New declaration.
47208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47209         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47210         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47211         and HAVE_REALLOC_POSIX.
47212
47213 2007-09-09  Bruno Haible  <bruno@clisp.org>
47214
47215         * modules/calloc-posix: New file.
47216         * modules/calloc (Depends-on): Add calloc-posix.
47217         * lib/calloc.c: Include errno.h.
47218         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47219         and a POSIX-compatible calloc into a single function. Set ENOMEM
47220         when returning NULL.
47221         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47222         * doc/functions/calloc.texi: Mention the calloc-posix module.
47223         * lib/stdlib_.h (calloc): New declaration.
47224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47225         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47226         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47227         and HAVE_CALLOC_POSIX.
47228
47229 2007-09-09  Bruno Haible  <bruno@clisp.org>
47230
47231         Allow for modules to show an arbitrary notice.
47232         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47233         * gnulib-tool: New option --extract-notice.
47234         (func_usage): Document it.
47235         (sed_extract_prog): Update.
47236         (func_get_notice): New function.
47237         (func_modules_notice): New function.
47238         (func_import, func_create_testdir): Invoke it.
47239         Suggested by Jim Meyering.
47240
47241 2007-09-09  Bruno Haible  <bruno@clisp.org>
47242
47243         * gnulib-tool: New options --verbose, --quiet.
47244         (func_usage): Document them.
47245         (verbose): New variable.
47246         (func_execute_command): New function.
47247         (func_import): Don't show the module list and the file list if
47248         $verbose < 0.
47249         (func_create_testdir): Likewise. Use func_execute_command.
47250         (func_create_megatestdir): Use func_execute_command.
47251
47252 2007-09-08  Bruno Haible  <bruno@clisp.org>
47253
47254         * gnulib-tool (func_import): Prefer rsync over wget when available,
47255         for fetching the PO files.
47256
47257 2007-09-08  Bruno Haible  <bruno@clisp.org>
47258
47259         * posix-modules: New file. Portions copied from gnulib-tool.
47260         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47261
47262 2007-09-08  Jim Meyering  <jim@meyering.net>
47263
47264         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47265         * lib/fpending.h: Rename from __fpending.h.
47266         * lib/fpending.c: Rename from __fpending.c.
47267         Include "fpending.h", not "__fpending.h".
47268         * lib/__fpending.h, lib/__fpending.c: Remove files.
47269         * modules/fpending (Files): Reflect new file names.
47270         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47271
47272 2007-09-08  Bruno Haible  <bruno@clisp.org>
47273
47274         * m4/inttypes-h.m4: Remove stub file.
47275
47276 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47277
47278         * doc/headers/stdint.texi: Discuss #include_next issue.
47279
47280 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47281
47282         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47283
47284 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47285
47286         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47287         in variable name.
47288
47289 2007-09-03  Jim Meyering  <jim@meyering.net>
47290
47291         New module: git-version-gen.
47292         * modules/git-version-gen: New file.
47293
47294         Import changes from coreutils for bootstrap script.
47295
47296         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47297
47298         bootstrap: uses rsync to download the .po files
47299         * build-aux/bootstrap (po_download_command_format): New global.
47300         (download_po_files): Use rsync.
47301         (update_po_files): Don't remove .po files after download,
47302         so future rsync runs can take advantage of the copies.
47303
47304         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47305
47306         Solve the unnecessary-.po-file-regeneration problem once and for all.
47307         * build-aux/bootstrap (download_po_files): New function, renamed from
47308         get_translations.  Now, downloads, but doesn't update LINGUAS.
47309         (update_po_files): New function.
47310
47311         bootstrap: Ignore more.
47312         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47313         uniwidth to e.g., lib/.gitignore.
47314         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47315
47316         * build-aux/bootstrap: New setting: vc_ignore.
47317         (insert_sorted_if_absent): Create $file if absent.
47318         Adapt to new, possibly empty, list: $vc_ignore.
47319
47320         bootstrap: generate more ignorable names
47321         * build-aux/bootstrap (slurp): When generating ignorable names,
47322         also map .sin to .sed, .gperf to .c, and .y to .c.
47323
47324 2007-09-03  Jim Meyering  <jim@meyering.net>
47325
47326         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47327         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47328
47329 2007-09-02  Bruno Haible  <bruno@clisp.org>
47330
47331         Fix mis-recognition of 'mcs' on QNX 6.
47332         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47333         output contains the string "Mono".
47334         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47335         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47336
47337 2007-09-01  Bruno Haible  <bruno@clisp.org>
47338
47339         Fix collision between uniwidth/* and linebreak modules.
47340         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47341         u32_width): Remove declarations.
47342         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47343         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47344         streq3, streq2, streq1, streq0): Remove functions.
47345         (STREQ): Remove macro.
47346         (is_cjk_encoding): Remove function.
47347         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47348         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47349         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47350         * NEWS: Document the change.
47351
47352 2007-09-01  Bruno Haible  <bruno@clisp.org>
47353
47354         * lib/streq.h: Add double-inclusion guard.
47355
47356 2007-09-01  Karl Berry  <karl@gnu.org>
47357
47358         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47359
47360 2007-08-28  Jim Meyering  <jim@meyering.net>
47361
47362         Rename mreadlink_with_size to areadlink_with_size.
47363         * NEWS: Document the change.
47364         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47365         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47366         * lib/mreadlink.h: Rename this to...
47367         * lib/areadlink.h: ...this.
47368         * modules/mreadlink-with-size: Rename this to...
47369         * modules/areadlink-with-size: ...this.
47370         * lib/canonicalize.c: Reflect the renaming.
47371         * modules/canonicalize: Likewise.
47372
47373 2007-08-26  Bruno Haible  <bruno@clisp.org>
47374
47375         * gnulib-tool (func_import): When deciding which files to remove,
47376         consider also dangling symbolic links.
47377         Reported by Eric Blake.
47378
47379 2007-08-26  Bruno Haible  <bruno@clisp.org>
47380
47381         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47382
47383 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47384
47385         * lib/readline.c: Don't include getline.h, the prototype is now
47386         found in stdio.h.
47387
47388 2007-08-23  Jim Meyering  <jim@meyering.net>
47389
47390         Getdelim touchup.
47391         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47392         around the funlockfile call, since funlockfile never sets errno.
47393         Don't set errno upon failed realloc.
47394
47395 2007-08-22  Eric Blake  <ebb9@byu.net>
47396
47397         Getline touchups.
47398         * lib/getdelim.c (getdelim): Revert regression that required *n to
47399         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47401         getdelim, rather than whether implementation is missing.
47402         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47403         * lib/stdio_.h (getline): Also declare if replacement is
47404         required.
47405         * doc/functions/getdelim.texi: New file.
47406         * doc/functions/getline.texi: Likewise.
47407         * doc/gnulib.texi (Function Substitutes): Add new files.
47408         Reported by Bruno Haible.
47409
47410 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47411
47412         * users.txt: Add Guile.
47413
47414 2007-08-22  Eric Blake  <ebb9@byu.net>
47415
47416         * tests/test-getdelim.c (main): Use remove, not unlink.
47417         * tests/test-getline.c (main): Likewise.
47418
47419         Move getline and getdelim into stdio.h, per POSIX 200x.
47420         * modules/getline (Files): Remove getline.h.
47421         (Depends-on): Add stdio.
47422         (configure.ac): Add module indicator.
47423         * modules/getdelim (Files): Remove getdelim.h.
47424         (Depends-on): Add stdio.
47425         (configure.ac): Add module indicator.
47426         * modules/stdio (Makefile.am): Work with new indicators.
47427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47428         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47429         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47430         * lib/getdelim.h: Delete.
47431         * lib/getline.h: Delete.
47432         * lib/stdio_.h (getdelim, getline): Declare.
47433         * modules/getdelim-tests: New module.
47434         * modules/getline-tests: Likewise.
47435         * tests/test-getdelim.c: New file.
47436         * tests/test-getline.c: Likewise.
47437         * NEWS: Document the change.
47438         * lib/getline.c: Update choice of header.
47439         * lib/csharpcomp.c: Likewise.
47440         * lib/getpass.c: Likewise.
47441         * lib/javacomp.c: Likewise.
47442         * lib/javaversion.c: Likewise.
47443         * lib/yesno.c: Likewise.
47444         * lib/getdelim.c: Likewise.
47445         (getdelim): Set errno on failure, and avoid memory leak.
47446
47447 2007-08-19  Bruno Haible  <bruno@clisp.org>
47448
47449         * modules/closein (Depends-on): Add freadahead.
47450         * lib/closein.c: Include freadahead.h.
47451         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47452         is zero.
47453
47454 2007-08-19  Bruno Haible  <bruno@clisp.org>
47455
47456         * modules/freadahead-tests: New file.
47457         * tests/test-freadahead.sh: New file.
47458         * tests/test-freadahead.c: New file.
47459
47460         * modules/freadahead: New file.
47461         * lib/freadahead.h: New file.
47462         * lib/freadahead.c: New file.
47463         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47464         fbufmode, fpurge, freadable, fwritable.
47465
47466 2007-08-19  Eric Blake  <ebb9@byu.net>
47467
47468         Test yesno in combination with closein.
47469         * lib/yesno.c (yesno): Document use of stdin.
47470         * modules/yesno-tests (Files): New module.
47471         * tests/test-yesno.c (main): New file.
47472         * tests/test-yesno.sh: Likewise.
47473
47474 2007-08-19  Bruno Haible  <bruno@clisp.org>
47475
47476         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47477         * lib/fseeko.c (rpl_fseeko): Likewise.
47478         * lib/fseterr.c (fseterr): Likewise.
47479
47480 2007-08-19  Bruno Haible  <bruno@clisp.org>
47481
47482         * tests/test-lseek.c (main): Disable a test for BeOS.
47483         * doc/functions/lseek.texi: Document the BeOS bug.
47484
47485 2007-08-19  Bruno Haible  <bruno@clisp.org>
47486             Eric Blake  <ebb9@byu.net>
47487
47488         * lib/lseek.c: Include <sys/stat.h>.
47489         (rpl_lseek): Add workaround code also for Unix platforms.
47490         Needed for BeOS.
47491         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47492         * doc/functions/lseek.texi: Document BeOS definiency.
47493
47494 2007-08-18  Bruno Haible  <bruno@clisp.org>
47495
47496         * modules/fstrcmp-tests: New file.
47497         * tests/test-fstrcmp.c: New file.
47498
47499 2007-08-18  Bruno Haible  <bruno@clisp.org>
47500
47501         * modules/fstrcmp: New file, from GNU gettext with modifications.
47502         * lib/fstrcmp.h: New file, from GNU gettext.
47503         * lib/fstrcmp.c: New file, from GNU gettext.
47504         * MODULES.html.sh (String handling): Add fstrcmp.
47505
47506 2007-08-18  Bruno Haible  <bruno@clisp.org>
47507
47508         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47509         'bool'.
47510         (diag, compareseq): Remove const from the ctxt argument.
47511         (USE_HEURISTIC): Undefine at the end.
47512
47513 2007-08-18  Jim Meyering  <jim@meyering.net>
47514
47515         New file: lib/idcache.h
47516         * NEWS: Mention the addition.
47517         * modules/idcache (Files): Add lib/idcache.h
47518         * lib/idcache.c: Include "idcache.h".
47519         Don't include <sys/types.h>.
47520         Add a FIXME comment.
47521         Move file-scoped "static" declarations to the top.
47522         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47523
47524 2007-08-17  Bruno Haible  <bruno@clisp.org>
47525         and Paul Eggert  <eggert@cs.ucla.edu>
47526
47527         * MODULES.html.sh: Add diffseq.
47528         * modules/diffseq: New file.
47529         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47530         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47531
47532 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47533
47534         Import changes from coreutils for bootstrap script.
47535
47536         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47537
47538         * build-aux/bootstrap (slurp): Work even in environments where
47539         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47540         current code does not slurp files whose names start with ".", and
47541         this looks like it might be a troublesome area.
47542
47543         2007-07-11  Jim Meyering  <jim@meyering.net>
47544
47545         If there's a GPL vN copyright comment, require that N == 3.
47546
47547         2007-07-08  Jim Meyering  <jim@meyering.net>
47548
47549         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47550         * build-aux/bootstrap (mam_template): Move definition out of loop.
47551
47552         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47553
47554         * build-aux/bootstrap (symlink_to_dir): Rename function from
47555         symlink_to_gnulib.  Add a directory parameter.  Update all
47556         callers.
47557         (cp_mark_as_generated): Also check for -- and link to -- files in
47558         gl/.
47559
47560         2007-07-08  Jim Meyering  <jim@meyering.net>
47561
47562         Adapt to deeper hierarchy in gnulib.
47563         * build-aux/bootstrap (symlink_to_dir): If the destination
47564         directory doesn't exist, create it. This is required at least for
47565         "lib/uniwidth/cjk.h".
47566
47567         2007-05-15  Jim Meyering  <jim@meyering.net>
47568
47569         * build-aux/bootstrap: Now that generated Makefile.am files
47570         are no longer under version control, they must be created at
47571         bootstrap time.
47572
47573 2007-08-14  Ben Pfaff  <blp@gnu.org>
47574
47575         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47576
47577 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47578
47579         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47580         given the changes below.
47581         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47582         even on hosts that have padding bits beyond the supported 64.
47583
47584 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47585
47586         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47587         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47588         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47589         depends on it.
47590         (xstrtol_error): Remove.
47591         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47592         but with a different signature.
47593         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47594         * lib/xstrtol-error.c: Include exitfail.h.
47595         (xstrtol_fatal): New function, with a different signature from the
47596         old xstrtol_error, so that the caller need not worry about passing
47597         in an exit status, or about storage management of the option argument.
47598         (xstrtol_error): Now a static function.  Redo signature to
47599         implement xstrtol_fatal.  Output the correct number of hyphens in
47600         front of the option so that the caller need not worry about
47601         storage management.
47602         (N_): New macro.
47603         (_): Remove; not used now.
47604         * modules/xstrtol: Depend on getopt.
47605         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47606         of old STRTOL_FATAL_ERROR macro.
47607         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47608         of test program.
47609         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47610         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47611
47612 2007-08-08  Eric Blake  <ebb9@byu.net>
47613
47614         * lib/xstrtol-error.c: Add missing include.
47615
47616         Move xstrtol messages into gnulib domain, when --pobase is used.
47617         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47618         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47619         * modules/xstrtol (Files): Distribute new file.
47620         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47621         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47622         * tests/test-xstrtol.c: ...into new file.
47623         * tests/test-xstrtoul.c: Also test xstrtoul.
47624         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47625         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47626         * tests/test-xstrtol.sh: Drive the tests.
47627         * tests/test-xstrtoimax.sh: Likewise.
47628         * tests/test-xstrtoumax.sh: Likewise.
47629         * modules/xstrtol-tests: New module.
47630         * modules/xstrtoimax-tests: Likewise.
47631         * modules/xstrtoumax-tests: Likewise.
47632
47633 2007-08-08  Jim Meyering  <jim@meyering.net>
47634
47635         New function: mfile_name_concat.
47636         * lib/filenamecat.c (mfile_name_concat): New function, just like
47637         file_name_concat, but return NULL upon failure rather than exiting
47638         with a diagnostic.
47639         * lib/filenamecat.h: Declare it.
47640
47641 2007-08-07  Bruno Haible  <bruno@clisp.org>
47642
47643         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47644         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47645         warning from gcc.
47646         Reported by Eric Blake.
47647
47648 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47649
47650         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47651         * modules/crypto/arcfour (License): Likewise.
47652         * modules/crypto/des-tests (License): Likewise.
47653         * modules/crypto/gc-arctwo-tests (License): Likewise.
47654         * modules/crypto/gc-des-tests (License): Likewise.
47655         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47656         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47657         * modules/crypto/gc-md2-tests (License): Likewise.
47658         * modules/crypto/gc-md4-tests (License): Likewise.
47659         * modules/crypto/gc-md5-tests (License): Likewise.
47660         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47661         * modules/crypto/gc-rijndael-tests (License): Likewise.
47662         * modules/crypto/gc-sha1-tests (License): Likewise.
47663         * modules/crypto/gc-tests (License): Likewise.
47664         * modules/crypto/hmac-md5 (License): Likewise.
47665         * modules/crypto/hmac-sha1 (License): Likewise.
47666         * modules/crypto/md2-tests (License): Likewise.
47667         * modules/crypto/md4-tests (License): Likewise.
47668         * modules/crypto/md5 (License): Likewise.
47669         * modules/crypto/rijndael (License): Likewise.
47670         * modules/crypto/sha1 (License): Likewise.
47671         * modules/memxor (License): Likewise.
47672
47673 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47674         and Bruno Haible  <bruno@clisp.org>
47675
47676         * NEWS: Describe interface changes to human, xstrtol.
47677         * lib/human.h: Include <xstrtol.h>.
47678         (human_options): Return enum strtol_error, not int.  Remove
47679         bool arg; take int * instead.
47680         * lib/human.c: Don't include "gettext.h".
47681         (_): Remove; no longer used.
47682         Don't include <xstrtol.h>, since human.h does it.
47683         (human_options): Adjust to abovementioned interface changes.
47684         Do not report error to stderr; that's now the caller's
47685         responsibility.
47686         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47687         interface change.
47688         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47689         Str, Argument_type_string.  All uses changed.  Put " argument"
47690         in diagnostics to make them clearer.  Change wording of suffix
47691         message for clarity.
47692         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47693         Argument_type_string.
47694         (STRTOL_FATAL_WARN): Remove; no longer used.
47695         * modules/human (Depends-on): Remove gettext-h.
47696
47697 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47698
47699         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47700
47701 2007-07-31  Bruno Haible  <bruno@clisp.org>
47702
47703         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47704         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47705         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47706
47707 2007-07-31  Bruno Haible  <bruno@clisp.org>
47708
47709         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47710         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47711
47712 2007-07-30  Bruno Haible  <bruno@clisp.org>
47713
47714         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47715         * modules/c-ctype (License): Likewise.
47716         * modules/c-strcase (License): Likewise.
47717         * modules/check-version (License): Likewise.
47718         * modules/iconv (License): Likewise.
47719         * modules/iconv_open (License): Likewise.
47720         * modules/read-file (License): Likewise.
47721         * modules/striconv (License): Likewise.
47722         * modules/strverscmp (License): Likewise.
47723         * modules/vasprintf (License): Likewise.
47724         * modules/crypto/des (License): Likewise.
47725         * modules/crypto/gc (License): Likewise.
47726         * modules/crypto/gc-arcfour (License): Likewise.
47727         * modules/crypto/gc-arctwo (License): Likewise.
47728         * modules/crypto/gc-des (License): Likewise.
47729         * modules/crypto/gc-hmac-md5 (License): Likewise.
47730         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47731         * modules/crypto/gc-md2 (License): Likewise.
47732         * modules/crypto/gc-md4 (License): Likewise.
47733         * modules/crypto/gc-md5 (License): Likewise.
47734         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47735         * modules/crypto/gc-random (License): Likewise.
47736         * modules/crypto/gc-rijndael (License): Likewise.
47737         * modules/crypto/gc-sha1 (License): Likewise.
47738         * modules/crypto/md2 (License): Likewise.
47739         * modules/crypto/md4 (License): Likewise.
47740
47741 2007-07-30  Jim Meyering  <jim@meyering.net>
47742
47743         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47744         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47745         it has valid stat data.  This bug would cause du not to count the
47746         sizes of inaccessible directories.
47747         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47748         in <http://bugzilla.redhat.com/250077>.
47749
47750 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47751             Bruno Haible  <bruno@clisp.org>
47752
47753         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47754         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47755         #include_next, gives a diagnostic about it, but reports no error in
47756         the exit code.
47757         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47758
47759 2007-07-24  Ben Pfaff  <blp@gnu.org>
47760
47761         Improve name: "count-one-bits" is better than "popcount".
47762         * MODULES.html.sh: Update name.
47763         * lib/popcount.h: Renamed lib/count-one-bits.h.
47764         (popcount): Renamed count_one_bits.
47765         (popcountl): Renamed count_one_bits_l.
47766         (popcountll): Renamed count_one_bits_ll.
47767         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47768         * modules/popcount: Renamed module/count-one-bits.
47769         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47770         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47771
47772 2007-07-23  Ben Pfaff  <blp@gnu.org>
47773
47774         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47775         better code generation, and add U to large constants to avoid
47776         warnings, in non-GCC case.
47777         Suggested by Bruno Haible.
47778
47779 2007-07-23  Ben Pfaff  <blp@gnu.org>
47780
47781         * lib/popcount.h: Use verify_true instead of if...abort.
47782         * modules/popcount: Depend on verify module.
47783         Suggested by Jim Meyering.
47784
47785 2007-07-23  Bruno Haible  <bruno@clisp.org>
47786
47787         * gnulib-tool (func_import): Create a .cvsignore file also when the
47788         directory is not yet in CVS but the toplevel directory is. When
47789         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47790         Reported by Karl Berry.
47791
47792 2007-07-22  Ben Pfaff  <blp@gnu.org>
47793
47794         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47795         case.
47796         Suggested by Eric Blake.
47797
47798 2007-07-22  Ben Pfaff  <blp@gnu.org>
47799
47800         New module: popcount.
47801         * MODULES.html.sh: Add popcount.
47802         * modules/popcount: New file.
47803         * modules/popcount-tests: New file.
47804         * tests/test-popcount.c: New file.
47805         * lib/popcount.h: New file.
47806         * m4/popcount.m4: New file.
47807
47808 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47809
47810         * build-aux/announce-gen: Update to GPLv3.
47811
47812         * build-aux/config.guess: Update from config.
47813
47814 2007-07-21  Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47817         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47818
47819 2007-07-20  Jim Meyering  <jim@meyering.net>
47820
47821         * check-module: Diagnose a self-dependency.
47822
47823 2007-07-19  Bruno Haible  <bruno@clisp.org>
47824
47825         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47826         empty.
47827         Reported by Eric Blake.
47828
47829 2007-07-18  Bruno Haible  <bruno@clisp.org>
47830
47831         * gnulib-tool: New options --po-base, --po-domain.
47832         (func_usage): Document them.
47833         (pobase, po_domain): New variables.
47834         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47835         DEFAULT_TEXT_DOMAIN.
47836         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47837         (func_import): Consider pobase and po_domain. Create a po/ directory.
47838         (func_create_testdir): Set pobase and po_domain to empty.
47839         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47840         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47841
47842 2007-07-18  Bruno Haible  <bruno@clisp.org>
47843
47844         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47845         EXTRA_DIST augmentation for files in build-aux/.
47846
47847 2007-07-16  Bruno Haible  <bruno@clisp.org>
47848
47849         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47850         * modules/getdelim (License): Likewise.
47851
47852 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47853
47854         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47855         * modules/d-type (License): Likewise.
47856         * modules/extensions (License): Likewise.
47857         * modules/fnmatch (License): Likewise.
47858         * modules/fseeko (License): Likewise.
47859         * modules/getaddrinfo (License): Likewise.
47860         * modules/getline (License): Likewise.
47861         * modules/getlogin_r (License): Likewise.
47862         * modules/getpass (License): Likewise.
47863         * modules/gettimeofday (License): Likewise.
47864         * modules/glob (License): Likewise.
47865         * modules/inet_ntop (License): Likewise.
47866         * modules/malloc (License): Likewise.
47867         * modules/malloca (License): Likewise.
47868         * modules/memmem (License): Likewise.
47869         * modules/mempcpy (License): Likewise.
47870         * modules/memset (License): Likewise.
47871         * modules/minmax (License): Likewise.
47872         * modules/mktime (License): Likewise.
47873         * modules/netinet_in (License): Likewise.
47874         * modules/pathmax (License): Likewise.
47875         * modules/poll (License): Likewise.
47876         * modules/regex (License): Likewise.
47877         * modules/snprintf (License): Likewise.
47878         * modules/stdbool (License): Likewise.
47879         * modules/stdint (License): Likewise.
47880         * modules/stdio (License): Likewise.
47881         * modules/strcase (License): Likewise.
47882         * modules/strcasestr (License): Likewise.
47883         * modules/strdup (License): Likewise.
47884         * modules/string (License): Likewise.
47885         * modules/strndup (License): Likewise.
47886         * modules/strnlen (License): Likewise.
47887         * modules/strpbrk (License): Likewise.
47888         * modules/strptime (License): Likewise.
47889         * modules/strsep (License): Likewise.
47890         * modules/sys_select (License): Likewise.
47891         * modules/sys_socket (License): Likewise.
47892         * modules/sys_stat (License): Likewise.
47893         * modules/sys_time (License): Likewise.
47894         * modules/time (License): Likewise.
47895         * modules/time_r (License): Likewise.
47896         * modules/timegm (License): Likewise.
47897         * modules/unistd (License): Likewise.
47898         * modules/vsnprintf (License): Likewise.
47899         * modules/wctype (License): Likewise.
47900
47901 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47902
47903         * modules/argz (License): LGPLv2+.
47904
47905 2007-07-15  Karl Berry  <karl@gnu.org>
47906
47907         * doc/gnulib.texi: revise node structure per new fdl.texi.
47908
47909 2007-07-14  Bruno Haible  <bruno@clisp.org>
47910
47911         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47912         the output file.
47913         * lib/uniname/uninames.h: Regenerated.
47914
47915 2007-07-14  Karl Berry  <karl@gnu.org>
47916
47917         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47918         omitting sectioning and index commands.
47919
47920 2007-07-13  Bruno Haible  <bruno@clisp.org>
47921
47922         New gnulib-tool option --more-symlinks.
47923         * gnulib-tool (func_usage): Document --more-symlinks.
47924         (do_copyrights): New variable.
47925         Recognize option --more-symlinks.
47926         (func_import): Don't add a copyright notice transform to
47927         sed_transform_lib_file if do_copyrights is empty.
47928
47929 2007-07-13  Bruno Haible  <bruno@clisp.org>
47930
47931         * lib/vasnprintf.c (decimal_point_char): Define also if
47932         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47933         && !NEED_PRINTF_DIRECTIVE_A.
47934         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47935         Gary V. Vaughan <gary@gnu.org>.
47936
47937 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47938
47939         * lib/inttypes_.h: Undo previous change, since it was fixed
47940         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47941
47942 2007-07-13  Bruno Haible  <bruno@clisp.org>
47943
47944         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47945         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47946
47947 2007-07-13  Jim Meyering  <jim@meyering.net>
47948
47949         df: Don't fail for Tru64's "file-on-file mount".
47950         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47951         so we fall through and use statfs instead.  Details here:
47952         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47953         Reported by Albert Chin.
47954
47955 2007-07-13  Bruno Haible  <bruno@clisp.org>
47956
47957         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47958         * modules/configmake (License): Likewise.
47959         * modules/gettext (License): Likewise.
47960         * modules/gettext-h (License): Likewise.
47961         * modules/include_next (License): Likewise.
47962         * modules/link-warning (License): Likewise.
47963         * modules/localcharset (License): Likewise.
47964         * modules/localename (License): Likewise.
47965         * modules/lock (License): Likewise.
47966         * modules/relocatable-lib-lgpl (License): Likewise.
47967         * modules/size_max (License): Likewise.
47968         * modules/vasnprintf (License): Likewise.
47969         * modules/wchar (License): Likewise.
47970         * modules/xsize (License): Likewise.
47971
47972 2007-07-13  Bruno Haible  <bruno@clisp.org>
47973
47974         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47975         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47976
47977 2007-07-12  Bruno Haible  <bruno@clisp.org>
47978
47979         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47980         in the modules files.
47981
47982 2007-07-11  Karl Berry  <karl@gnu.org>
47983
47984         * MODULES.html.sh (func_module): use
47985          sed -e '\|^'"${includefile}"'$|d'
47986          instead of /.../d, to avoid errors on $includefile's containing /.
47987
47988 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47989
47990         * gnulib-tool (func_import): Avoid duplication of --avoid
47991         statements
47992         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47993         names to `_' in variable names.
47994
47995 2007-07-10  Eric Blake  <ebb9@byu.net>
47996
47997         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47998         * NEWS: Document this change.
47999
48000 2007-07-08  Bruno Haible  <bruno@clisp.org>
48001
48002         Update to Unicode 5.0.
48003         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48004         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48005         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48006         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48007         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48008         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48009         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48010         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48011         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48012         U+10A3F, U+1D242..U+1D244.
48013         (nonspacing_table_ind): Update.
48014         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48015         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48016
48017 2007-07-08  Bruno Haible  <bruno@clisp.org>
48018
48019         Update to Unicode 5.0.
48020         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48021         code transform. Extend the name index field of unicode_name_to_code and
48022         unicode_code_to_name from 16 to 24 bits.
48023         * lib/uniname/uniname.c (unicode_character_name,
48024         unicode_name_character): Add the range 0x12xxx to the code transform.
48025         * lib/uniname/uninames.h: Regenerated.
48026         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48027
48028 2007-07-07  Bruno Haible  <bruno@clisp.org>
48029
48030         * modules/wcwidth-tests: New file.
48031         * tests/test-wcwidth.c: New file.
48032
48033         Work around MacOS X wcwidth() bug.
48034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48035         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48036         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48037         original wcwidth in non-UTF-8 locales.
48038         * modules/wcwidth (Depends-on): Add localcharset, streq,
48039         uniwidth/width.
48040         * doc/functions/wcwidth.texi: Update.
48041
48042 2007-07-07  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48045         (wcwidth): New declaration.
48046         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48047         macros.
48048         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48049         here. Prepare for creating <wchar.h> unconditionally.
48050         * modules/wchar (Depends-on): Add link-warning.
48051         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48052         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48053         * lib/wcwidth.h: Remove file.
48054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48055         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48056         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48057         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48058         (Include): Replace wcwidth.h with <wchar.h>.
48059         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48060         * lib/mbchar.h: Don't include wcwidth.h.
48061         * lib/mbswidth.c: Likewise.
48062         * NEWS: Mention the change.
48063
48064 2007-07-07  Bruno Haible  <bruno@clisp.org>
48065
48066         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48067         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48068         definition with an external declaration.
48069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48070         defined as a function. Remove AC_C_INLINE requirement.
48071         * modules/wcwidth (Files): Add lib/wcwidth.c.
48072         (Makefile.am): Remove redundant statement.
48073
48074 2007-07-07  Bruno Haible  <bruno@clisp.org>
48075
48076         * MODULES.html.sh (Unicode string functions): Add the new modules.
48077
48078         * tests/uniwidth/test-u32-strwidth.c: New file.
48079         * modules/uniwidth/u32-strwidth-tests: New file.
48080
48081         * lib/uniwidth/u32-strwidth.c: New file.
48082         * modules/uniwidth/u32-strwidth: New file.
48083
48084         * tests/uniwidth/test-u16-strwidth.c: New file.
48085         * modules/uniwidth/u16-strwidth-tests: New file.
48086
48087         * lib/uniwidth/u16-strwidth.c: New file.
48088         * modules/uniwidth/u16-strwidth: New file.
48089
48090         * tests/uniwidth/test-u8-strwidth.c: New file.
48091         * modules/uniwidth/u8-strwidth-tests: New file.
48092
48093         * lib/uniwidth/u8-strwidth.c: New file.
48094         * modules/uniwidth/u8-strwidth: New file.
48095
48096         * tests/uniwidth/test-u32-width.c: New file.
48097         * modules/uniwidth/u32-width-tests: New file.
48098
48099         * lib/uniwidth/u32-width.c: New file.
48100         * modules/uniwidth/u32-width: New file.
48101
48102         * tests/uniwidth/test-u16-width.c: New file.
48103         * modules/uniwidth/u16-width-tests: New file.
48104
48105         * lib/uniwidth/u16-width.c: New file.
48106         * modules/uniwidth/u16-width: New file.
48107
48108         * tests/uniwidth/test-u8-width.c: New file.
48109         * modules/uniwidth/u8-width-tests: New file.
48110
48111         * lib/uniwidth/u8-width.c: New file.
48112         * modules/uniwidth/u8-width: New file.
48113
48114         * tests/uniwidth/test-uc_width.c: New file.
48115         * modules/uniwidth/width-tests: New file.
48116
48117         * lib/uniwidth/width.c: New file, from GNU libiconv.
48118         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48119         * modules/uniwidth/width: New file.
48120
48121         * lib/uniwidth.h: New file, from GNU libiconv.
48122         * modules/uniwidth/base: New file.
48123
48124 2007-07-07  Bruno Haible  <bruno@clisp.org>
48125
48126         * lib/uniname.h: New file, from GNU gettext.
48127         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48128         * lib/uniname/uninames.h: New file, from GNU gettext.
48129         * lib/uniname/uniname.c: New file, from GNU gettext.
48130         * tests/uniname/test-uninames.sh: New file.
48131         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48132         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48133         * modules/uniname/base: New file.
48134         * modules/uniname/uniname: New file.
48135         * modules/uniname/uniname-tests: New file.
48136         * MODULES.html.sh (Unicode string functions): Add the new modules.
48137
48138 2007-07-06  Bruno Haible  <bruno@clisp.org>
48139
48140         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48141
48142 2007-07-06  Bruno Haible  <bruno@clisp.org>
48143
48144         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48145         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48146         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48147         include <sys/time.h>.
48148         Reported by Eric Blake.
48149
48150 2007-07-06  Eric Blake  <ebb9@byu.net>
48151
48152         Fix testing canonicalize on cygwin.
48153         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48154         Revert patch from 2007-06-19.
48155         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48156         canonicalize module is also in use.
48157         * tests/test-canonicalize.c: New file.
48158         * tests/test-canonicalize.sh: Likewise.
48159         * modules/canonicalize-tests: Likewise.
48160
48161 2007-07-06  Jim Meyering  <jim@meyering.net>
48162
48163         * lib/getugroups.c (getugroups): Detect getgrent failure.
48164         Adjust comment to reflect reality: this function may return -1.
48165
48166 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48167
48168         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48169         the new TP address.
48170         (usage): Fix typo
48171         (gnulib_mk): New variable.
48172
48173 2007-07-05  Jim Meyering  <jim@meyering.net>
48174
48175         Don't let endgrent clobber errno, no matter how improbable.
48176         * lib/getugroups.c (getugroups): Save and restore errno around
48177         endgrent call.
48178
48179         Close the group DB even when failing with 2^31 or more members.
48180         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48181
48182 2007-07-04  Jim Meyering  <jim@meyering.net>
48183
48184         * lib/getugroups.h: New file.
48185         * lib/getugroups.c: Include "getugroups.h".
48186         Remove uses of "register" keyword.
48187         Move local variable, "cp", down into scope where used.
48188         Give "username" parameter the "const" attribute.
48189         * modules/getugroups (Files): Add lib/getugroups.h
48190
48191 2007-07-04  Karl Berry  <karl@gnu.org>
48192
48193         * MODULES.html.sh (func_all_modules): Complete rename of
48194         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48195
48196 2007-07-02  Bruno Haible  <bruno@clisp.org>
48197
48198         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48199         mode, when inttypes.h comes from gnulib.
48200         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48201
48202 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48203
48204         * NEWS: Mention lgpl module name change.
48205
48206         * modules/lgpl-2.1: Renamed from lgpl.
48207
48208         * NEWS: Mention gpl module name change.
48209
48210         * modules/gpl-3.0: New file, based on gpl-2.0.
48211
48212         * modules/gpl-2.0: Renamed from gpl.
48213
48214         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48215         doc/gpl-2.0.texi.
48216
48217 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48218
48219         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48220         #define __STDC_LIMIT_MACROS temporarily while including
48221         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48222         Problem reported by Joel E. Denny in
48223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48224
48225 2007-07-01  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/unistdio.h: New file.
48228         * lib/unistdio/u-asnprintf.h: New file.
48229         * lib/unistdio/u-asprintf.h: New file.
48230         * lib/unistdio/u-printf-args.c: New file.
48231         * lib/unistdio/u-printf-args.h: New file.
48232         * lib/unistdio/u-printf-parse.h: New file.
48233         * lib/unistdio/u-snprintf.h: New file.
48234         * lib/unistdio/u-sprintf.h: New file.
48235         * lib/unistdio/u-vasprintf.h: New file.
48236         * lib/unistdio/u-vsnprintf.h: New file.
48237         * lib/unistdio/u-vsprintf.h: New file.
48238         * lib/unistdio/ulc-asnprintf.c: New file.
48239         * lib/unistdio/ulc-asprintf.c: New file.
48240         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48241         * lib/unistdio/ulc-printf-parse.c: New file.
48242         * lib/unistdio/ulc-snprintf.c: New file.
48243         * lib/unistdio/ulc-sprintf.c: New file.
48244         * lib/unistdio/ulc-vasnprintf.c: New file.
48245         * lib/unistdio/ulc-vasprintf.c: New file.
48246         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48247         * lib/unistdio/ulc-vsnprintf.c: New file.
48248         * lib/unistdio/ulc-vsprintf.c: New file.
48249         * lib/unistdio/u8-asnprintf.c: New file.
48250         * lib/unistdio/u8-asprintf.c: New file.
48251         * lib/unistdio/u8-printf-parse.c: New file.
48252         * lib/unistdio/u8-snprintf.c: New file.
48253         * lib/unistdio/u8-sprintf.c: New file.
48254         * lib/unistdio/u8-vasnprintf.c: New file.
48255         * lib/unistdio/u8-vasprintf.c: New file.
48256         * lib/unistdio/u8-vsnprintf.c: New file.
48257         * lib/unistdio/u8-vsprintf.c: New file.
48258         * lib/unistdio/u8-u8-asnprintf.c: New file.
48259         * lib/unistdio/u8-u8-asprintf.c: New file.
48260         * lib/unistdio/u8-u8-snprintf.c: New file.
48261         * lib/unistdio/u8-u8-sprintf.c: New file.
48262         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48263         * lib/unistdio/u8-u8-vasprintf.c: New file.
48264         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48265         * lib/unistdio/u8-u8-vsprintf.c: New file.
48266         * lib/unistdio/u16-asnprintf.c: New file.
48267         * lib/unistdio/u16-asprintf.c: New file.
48268         * lib/unistdio/u16-printf-parse.c: New file.
48269         * lib/unistdio/u16-snprintf.c: New file.
48270         * lib/unistdio/u16-sprintf.c: New file.
48271         * lib/unistdio/u16-vasnprintf.c: New file.
48272         * lib/unistdio/u16-vasprintf.c: New file.
48273         * lib/unistdio/u16-vsnprintf.c: New file.
48274         * lib/unistdio/u16-vsprintf.c: New file.
48275         * lib/unistdio/u16-u16-asnprintf.c: New file.
48276         * lib/unistdio/u16-u16-asprintf.c: New file.
48277         * lib/unistdio/u16-u16-snprintf.c: New file.
48278         * lib/unistdio/u16-u16-sprintf.c: New file.
48279         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48280         * lib/unistdio/u16-u16-vasprintf.c: New file.
48281         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48282         * lib/unistdio/u16-u16-vsprintf.c: New file.
48283         * lib/unistdio/u32-asnprintf.c: New file.
48284         * lib/unistdio/u32-asprintf.c: New file.
48285         * lib/unistdio/u32-printf-parse.c: New file.
48286         * lib/unistdio/u32-snprintf.c: New file.
48287         * lib/unistdio/u32-sprintf.c: New file.
48288         * lib/unistdio/u32-vasnprintf.c: New file.
48289         * lib/unistdio/u32-vasprintf.c: New file.
48290         * lib/unistdio/u32-vsnprintf.c: New file.
48291         * lib/unistdio/u32-vsprintf.c: New file.
48292         * lib/unistdio/u32-u32-asnprintf.c: New file.
48293         * lib/unistdio/u32-u32-asprintf.c: New file.
48294         * lib/unistdio/u32-u32-snprintf.c: New file.
48295         * lib/unistdio/u32-u32-sprintf.c: New file.
48296         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48297         * lib/unistdio/u32-u32-vasprintf.c: New file.
48298         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48299         * lib/unistdio/u32-u32-vsprintf.c: New file.
48300         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48301         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48302         * tests/unistdio/test-ulc-printf1.h: New file.
48303         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48304         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48305         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48306         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48307         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48308         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48309         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48310         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48311         * tests/unistdio/test-u8-asnprintf1.c: New file.
48312         * tests/unistdio/test-u8-asnprintf1.h: New file.
48313         * tests/unistdio/test-u8-printf1.h: New file.
48314         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48315         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48316         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48317         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48318         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48319         * tests/unistdio/test-u8-vasprintf1.c: New file.
48320         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48321         * tests/unistdio/test-u8-vsprintf1.c: New file.
48322         * tests/unistdio/test-u16-asnprintf1.c: New file.
48323         * tests/unistdio/test-u16-asnprintf1.h: New file.
48324         * tests/unistdio/test-u16-printf1.h: New file.
48325         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48326         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48327         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48328         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48329         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48330         * tests/unistdio/test-u16-vasprintf1.c: New file.
48331         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48332         * tests/unistdio/test-u16-vsprintf1.c: New file.
48333         * tests/unistdio/test-u32-asnprintf1.c: New file.
48334         * tests/unistdio/test-u32-asnprintf1.h: New file.
48335         * tests/unistdio/test-u32-printf1.h: New file.
48336         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48337         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48338         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48339         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48340         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48341         * tests/unistdio/test-u32-vasprintf1.c: New file.
48342         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48343         * tests/unistdio/test-u32-vsprintf1.c: New file.
48344         * modules/unistdio/base: New file.
48345         * modules/unistdio/u-printf-args: New file.
48346         * modules/unistdio/ulc-asnprintf: New file.
48347         * modules/unistdio/ulc-asprintf: New file.
48348         * modules/unistdio/ulc-fprintf: New file.
48349         * modules/unistdio/ulc-printf-parse: New file.
48350         * modules/unistdio/ulc-snprintf: New file.
48351         * modules/unistdio/ulc-sprintf: New file.
48352         * modules/unistdio/ulc-vasnprintf: New file.
48353         * modules/unistdio/ulc-vasprintf: New file.
48354         * modules/unistdio/ulc-vfprintf: New file.
48355         * modules/unistdio/ulc-vsnprintf: New file.
48356         * modules/unistdio/ulc-vsprintf: New file.
48357         * modules/unistdio/u8-asnprintf: New file.
48358         * modules/unistdio/u8-asprintf: New file.
48359         * modules/unistdio/u8-printf-parse: New file.
48360         * modules/unistdio/u8-snprintf: New file.
48361         * modules/unistdio/u8-sprintf: New file.
48362         * modules/unistdio/u8-vasnprintf: New file.
48363         * modules/unistdio/u8-vasprintf: New file.
48364         * modules/unistdio/u8-vsnprintf: New file.
48365         * modules/unistdio/u8-vsprintf: New file.
48366         * modules/unistdio/u8-u8-asnprintf: New file.
48367         * modules/unistdio/u8-u8-asprintf: New file.
48368         * modules/unistdio/u8-u8-snprintf: New file.
48369         * modules/unistdio/u8-u8-sprintf: New file.
48370         * modules/unistdio/u8-u8-vasnprintf: New file.
48371         * modules/unistdio/u8-u8-vasprintf: New file.
48372         * modules/unistdio/u8-u8-vsnprintf: New file.
48373         * modules/unistdio/u8-u8-vsprintf: New file.
48374         * modules/unistdio/u16-asnprintf: New file.
48375         * modules/unistdio/u16-asprintf: New file.
48376         * modules/unistdio/u16-printf-parse: New file.
48377         * modules/unistdio/u16-snprintf: New file.
48378         * modules/unistdio/u16-sprintf: New file.
48379         * modules/unistdio/u16-vasnprintf: New file.
48380         * modules/unistdio/u16-vasprintf: New file.
48381         * modules/unistdio/u16-vsnprintf: New file.
48382         * modules/unistdio/u16-vsprintf: New file.
48383         * modules/unistdio/u16-u16-asnprintf: New file.
48384         * modules/unistdio/u16-u16-asprintf: New file.
48385         * modules/unistdio/u16-u16-snprintf: New file.
48386         * modules/unistdio/u16-u16-sprintf: New file.
48387         * modules/unistdio/u16-u16-vasnprintf: New file.
48388         * modules/unistdio/u16-u16-vasprintf: New file.
48389         * modules/unistdio/u16-u16-vsnprintf: New file.
48390         * modules/unistdio/u16-u16-vsprintf: New file.
48391         * modules/unistdio/u32-asnprintf: New file.
48392         * modules/unistdio/u32-asprintf: New file.
48393         * modules/unistdio/u32-printf-parse: New file.
48394         * modules/unistdio/u32-snprintf: New file.
48395         * modules/unistdio/u32-sprintf: New file.
48396         * modules/unistdio/u32-vasnprintf: New file.
48397         * modules/unistdio/u32-vasprintf: New file.
48398         * modules/unistdio/u32-vsnprintf: New file.
48399         * modules/unistdio/u32-vsprintf: New file.
48400         * modules/unistdio/u32-u32-asnprintf: New file.
48401         * modules/unistdio/u32-u32-asprintf: New file.
48402         * modules/unistdio/u32-u32-snprintf: New file.
48403         * modules/unistdio/u32-u32-sprintf: New file.
48404         * modules/unistdio/u32-u32-vasnprintf: New file.
48405         * modules/unistdio/u32-u32-vasprintf: New file.
48406         * modules/unistdio/u32-u32-vsnprintf: New file.
48407         * modules/unistdio/u32-u32-vsprintf: New file.
48408         * modules/unistdio/ulc-asnprintf-tests: New file.
48409         * modules/unistdio/ulc-vasnprintf-tests: New file.
48410         * modules/unistdio/ulc-vasprintf-tests: New file.
48411         * modules/unistdio/ulc-vsnprintf-tests: New file.
48412         * modules/unistdio/ulc-vsprintf-tests: New file.
48413         * modules/unistdio/u8-asnprintf-tests: New file.
48414         * modules/unistdio/u8-vasnprintf-tests: New file.
48415         * modules/unistdio/u8-vasprintf-tests: New file.
48416         * modules/unistdio/u8-vsnprintf-tests: New file.
48417         * modules/unistdio/u8-vsprintf-tests: New file.
48418         * modules/unistdio/u16-asnprintf-tests: New file.
48419         * modules/unistdio/u16-vasnprintf-tests: New file.
48420         * modules/unistdio/u16-vasprintf-tests: New file.
48421         * modules/unistdio/u16-vsnprintf-tests: New file.
48422         * modules/unistdio/u16-vsprintf-tests: New file.
48423         * modules/unistdio/u32-asnprintf-tests: New file.
48424         * modules/unistdio/u32-vasnprintf-tests: New file.
48425         * modules/unistdio/u32-vasprintf-tests: New file.
48426         * modules/unistdio/u32-vsnprintf-tests: New file.
48427         * modules/unistdio/u32-vsprintf-tests: New file.
48428         * MODULES.html.sh (Unicode string functions): Add the new modules.
48429
48430 2007-07-01  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/sprintf.c (sprintf): Limit the available length estimation,
48433         to avoid address wraparound.
48434         * lib/vsprintf.c (vsprintf): Likewise.
48435         * modules/sprintf-posix (Dependencies): Add stdint.
48436         * modules/vsprintf-posix (Dependencies): Likewise.
48437
48438 2007-07-01  Bruno Haible  <bruno@clisp.org>
48439
48440         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48441         Windows PATH as well. Conservative double-quoting. Comments.
48442
48443 2007-07-01  Bruno Haible  <bruno@clisp.org>
48444             Eric Blake  <ebb9@byu.net>
48445             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48446
48447         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48448         empty components in $PATH, denoting '.'.
48449
48450 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48451
48452         * gnulib-tool: Fix indentation.
48453         (func_create_megatestdir): Likewise.
48454         Report by Bruno Haible.
48455
48456 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48457
48458         Sync from Automake.
48459         * build-aux/gnupload: Fix shell portability issues with for loops.
48460         Report by Karl Berry.
48461
48462 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48463
48464         * build-aux/maint.mk (POURL): Use translationproject.org.
48465
48466 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48467             Bruno Haible  <bruno@clisp.org>
48468
48469         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48470         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48471         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48472         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48473         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48474
48475 2007-06-27  Bruno Haible  <bruno@clisp.org>
48476
48477         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48478         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48479
48480 2007-06-26  Karl Berry  <karl@gnu.org>
48481
48482         * MODULES.html.sh: remove xreadlink-with-size.
48483
48484 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48485
48486         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48487         method that I hope also handles the double-include problem noted
48488         by Bruno Haible in
48489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48490
48491 2007-06-23  Bruno Haible  <bruno@clisp.org>
48492
48493         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48494         Don't let the 'mostlyclean' target fail if the last subdirectory could
48495         not be removed.
48496         Reported by Karl Berry.
48497
48498 2007-06-23  Bruno Haible  <bruno@clisp.org>
48499
48500         * gnulib-tool (echo): Add a speedier workaround for ksh.
48501         * tests/test-echo.sh: Likewise.
48502
48503 2007-06-23  Bruno Haible  <bruno@clisp.org>
48504
48505         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48506         * tests/test-echo.sh: Likewise.
48507
48508 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48509
48510         * gnulib-tool (IFS): Initialize early, so we don't set it to
48511         empty later.
48512         (self_abspathname): Rewrite algorithm to set it, reindent.
48513         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48514         (func_create_megatestdir): Merge some sed scripts.
48515
48516 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48517
48518         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48519         exposed by Sun Studio 11 cc on Solaris 8.
48520
48521 2007-06-22  Bruno Haible  <bruno@clisp.org>
48522
48523         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48524         backslashes.
48525         * tests/test-echo.sh: New file.
48526
48527 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48528
48529         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48530         simplify `sed_replace_build_aux' scripts, they are portable but
48531         echoing them with `echo' is not.
48532         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48533
48534 2007-06-21  Karl Berry  <karl@gnu.org>
48535
48536         * config/srclist.txt: guess we can't handle the licenses via
48537         srclist at the moment.
48538
48539 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48540
48541         * MODULES.html.sh: Add include_next.
48542         * modules/include_next: New file.
48543
48544 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48545
48546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48547         INCLUDE_NEXT.
48548         (gl_CHECK_NEXT_HEADERS): New macro.
48549         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48550         the obsolescent gl_ABSOLUTE_HEADER.
48551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48552         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48553         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48554         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48555         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48556         * m4/math_h.m4 (gl_MATH_H): Likewise.
48557         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48558         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48559         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48560         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48561         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48562         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48563         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48566         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48567         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48568         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48569         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48570         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48571         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48572         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48573         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48574         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48575         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48576         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48577         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48578         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48579         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48580         * lib/float_.h: Likewise.
48581         * lib/inttypes_.h: Likewise.
48582         * lib/math_.h: Likewise.
48583         * lib/search_.h: Likewise.
48584         * lib/signal_.h: Likewise.
48585         * lib/stdint_.h: Likewise.
48586         * lib/stdio_.h: Likewise.
48587         * lib/stdlib_.h: Likewise.
48588         * lib/string_.h: Likewise.
48589         * lib/sys_stat_.h: Likewise.
48590         * lib/sys_time_.h: Likewise.
48591         * lib/time_.h: Likewise.
48592         * lib/unistd_.h: Likewise.
48593         * lib/wchar_.h: Likewise.
48594         * lib/wctype_.h: Likewise.
48595         * lib/dirent_.h: Likewise.
48596         * lib/iconv_.h: Likewise.
48597         * lib/locale_.h: Likewise.
48598         * lib/netinet_in_.h: Likewise.
48599         * lib/sys_select_.h: Likewise.
48600         * lib/sys_socket_.h: Likewise.
48601         * lib/sysexits_.h: Likewise.
48602         * modules/fcntl (Depends-on): Depend on include_next, not
48603         absolute_header.
48604         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48605         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48606         * modules/fchdir: Likewise.
48607         * modules/float: Likewise.
48608         * modules/iconv_open: Likewise.
48609         * modules/inttypes: Likewise.
48610         * modules/locale: Likewise.
48611         * modules/math: Likewise.
48612         * modules/netinet_in: Likewise.
48613         * modules/search: Likewise.
48614         * modules/signal: Likewise.
48615         * modules/stdint: Likewise.
48616         * modules/stdio: Likewise.
48617         * modules/stdlib: Likewise.
48618         * modules/string: Likewise.
48619         * modules/sys_select: Likewise.
48620         * modules/sys_socket: Likewise.
48621         * modules/sys_stat: Likewise.
48622         * modules/sys_time: Likewise.
48623         * modules/sysexits: Likewise.
48624         * modules/time: Likewise.
48625         * modules/unistd: Likewise.
48626         * modules/wchar: Likewise.
48627         * modules/wctype: Likewise.
48628         * modules/sys_stat: Change maintainer to "all".
48629         * modules/unistd: Likewise.
48630
48631 2007-06-20  Karl Berry  <karl@gnu.org>
48632
48633         * config/srclist.txt: track www changes in license files.
48634
48635 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48636
48637         * build-aux/bootstrap: Remove stray dot.
48638         Make sure build_aux settings are honored when linking
48639         gnulib_extra_files.
48640
48641 2007-06-19  Eric Blake  <ebb9@byu.net>
48642
48643         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48644         Allow compilation on cygwin.
48645
48646 2007-06-19  Jim Meyering  <jim@meyering.net>
48647
48648         xreadlink-with-size: Remove module.  No longer used.
48649         Ex-callers now use xreadlink or mreadlink-with-size.
48650         * modules/xreadlink-with-size: Remove module.
48651         * lib/xreadlink-with-size.c: Remove file.
48652         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48653         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48654         just before the function definition *is* accurate.
48655
48656         Eliminate one way canonicalize_filename_mode could exit.
48657         * lib/canonicalize.c (canonicalize_filename_mode):
48658         Use mreadlink_with_size, not xreadlink_with_size.
48659
48660 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48661
48662         Detect porting problems to FreeBSD/arm, which has time_t wider than
48663         long int.  Original problem reported for GNU diff by Xin Li in
48664         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48665         * modules/getdate (Depends-on): Add intprops, verify.
48666         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48667         is an integer type no wider than long int.
48668
48669 2007-06-18  Jim Meyering  <jim@meyering.net>
48670
48671         New module: mreadlink-with-size.
48672         * MODULES.html.sh: Add mreadlink-with-size.
48673         * modules/mreadlink-with-size: New module
48674         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48675         not xreadlink-with-size.
48676         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48677
48678 2007-06-16  Bruno Haible  <bruno@clisp.org>
48679
48680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48681         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48682         Reported by Gary V. Vaughan <gary@gnu.org>.
48683
48684 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48685
48686         Revamp lchown so that it lives in unistd.h where it belongs.
48687         * lib/lchown.h: Remove.
48688         * lib/dirchownmod.c: Don't include lib/lchown.h.
48689         * lib/fchownat.c: Likewise.
48690         * lib/openat.c: Likewise.
48691         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48692         does not follow symlinks.
48693         (EOPNOTSUPP): Define if not defined.
48694         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48695         is defined to 0.
48696         (lchown): New decl.
48697         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48698         Do not check for lchown decl.
48699         Set REPLACE_LCHOWN.
48700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48701         REPLACE_LCHOWN.
48702         * modules/chown: Make it clear it follows symlinks.
48703         * modules/lchown: Make it clear it doesn't follow symlinks.
48704         (Files): Remove lib/lchown.h
48705         (Depends-on): Add unistd.
48706         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48707         (Include): Include <unistd.h>, not "lchown.h".
48708         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48709         REPLACE_LCHOWN.
48710
48711 2007-06-15  Jim Meyering  <jim@meyering.net>
48712
48713         Change license (GPL to LGPL) of fsusage and dependents.
48714         * modules/fsusage (License): Change to LGPL.
48715         * modules/full-read (License): Likewise.
48716         * modules/full-write (License): Likewise.
48717         * modules/safe-read (License): Likewise.
48718         * modules/safe-write (License): Likewise.
48719
48720 2007-06-14  Ben Pfaff  <blp@gnu.org>
48721
48722         Missing part of allocsa -> malloca transition.
48723         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48724         gl_MALLOCA.
48725
48726 2007-06-12  Bruno Haible  <bruno@clisp.org>
48727
48728         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48729         to ia64, x86_64, i386.
48730         Reported by Eric Blake.
48731
48732 2007-06-12  Bruno Haible  <bruno@clisp.org>
48733
48734         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48735         cross-compiling to x86_64.
48736
48737 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48738
48739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48740         glitch reported by Ralf Wildenhues in
48741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48742
48743         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48744         Vin Shelton.
48745
48746 2007-06-11  Bruno Haible  <bruno@clisp.org>
48747
48748         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48749         replacement string.
48750         Reported by Eric Blake.
48751
48752 2007-06-10  Bruno Haible  <bruno@clisp.org>
48753
48754         Prepare vasnprintf code for use with Unicode strings.
48755         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48756         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48757         TYPE_U32_STRING.
48758         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48759         a_u32_string variants.
48760         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48761         * lib/printf-args.c: Don't include config.h and the specification
48762         header if PRINTF_FETCHARGS is already defined.
48763         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48764         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48765         TYPE_U16_STRING, TYPE_U32_STRING.
48766         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48767         u16_directive, u16_directives, u32_directive, u32_directives): New
48768         types.
48769         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48770         New declarations.
48771         * lib/printf-parse.c: Don't include config.h and the specification
48772         header if PRINTF_PARSE is already defined. Eliminate the set of
48773         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48774         them now. Include c-ctype.h.
48775         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48776         directive and CHAR_T_ONLY_ASCII.
48777         * lib/vasnprintf.c: Don't include config.h and the specification header
48778         if VASNPRINTF is already defined.
48779         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48780         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48781         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48782         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48783         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48784         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48785         code accordingly.
48786         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48787         pad_ourselves also in this case, with the 'c' and 's' directives, and
48788         with a different notion of "width".
48789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48790
48791 2007-06-10  Bruno Haible  <bruno@clisp.org>
48792
48793         * modules/unistr/u32-mbsnlen: New file.
48794         * lib/unistr/u32-mbsnlen.c: New file.
48795
48796         * modules/unistr/u16-mbsnlen: New file.
48797         * lib/unistr/u16-mbsnlen.c: New file.
48798
48799         * modules/unistr/u8-mbsnlen: New file.
48800         * lib/unistr/u8-mbsnlen.c: New file.
48801
48802         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48803         declarations.
48804
48805 2007-06-10  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/string_.h (mbsnlen): New declaration.
48808         * lib/mbsnlen.c: New file.
48809         * m4/mbsnlen.m4: New file.
48810         * modules/mbsnlen: New file.
48811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48812         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48813         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48814
48815 2007-06-10  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48818
48819 2007-06-10  Bruno Haible  <bruno@clisp.org>
48820
48821         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48822         * lib/mbuiter.h: Likewise.
48823
48824 2007-06-10  Bruno Haible  <bruno@clisp.org>
48825
48826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48827         declaration.
48828
48829 2007-06-10  Karl Berry  <karl@gnu.org>
48830
48831         * config/srclist.txt: remove gettext entries, Bruno prefers
48832         to update individually.
48833
48834 2007-06-10  Bruno Haible  <bruno@clisp.org>
48835
48836         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48837         'maxlen'. Ensure only length + width bytes are allocated, not
48838         length + 1 + width.
48839
48840 2007-06-09  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48843         (CHAR_T): Remove macro.
48844         (VASNPRINTF): Update.
48845
48846 2007-06-09  Bruno Haible  <bruno@clisp.org>
48847
48848         * MODULES.html.sh (Unicode string functions): Add the new modules.
48849
48850         * modules/uniconv/u32-conv-to-enc: New file.
48851         * lib/uniconv/u32-conv-to-enc.c: New file.
48852         * modules/uniconv/u32-conv-to-enc-tests: New file.
48853         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48854
48855         * modules/uniconv/u16-conv-to-enc: New file.
48856         * lib/uniconv/u16-conv-to-enc.c: New file.
48857         * lib/uniconv/u-conv-to-enc.h: New file.
48858         * modules/uniconv/u16-conv-to-enc-tests: New file.
48859         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48860
48861         * modules/uniconv/u8-conv-to-enc: New file.
48862         * lib/uniconv/u8-conv-to-enc.c: New file.
48863         * modules/uniconv/u8-conv-to-enc-tests: New file.
48864         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48865
48866         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48867         u32_conv_to_encoding): New declarations.
48868
48869 2007-06-09  Bruno Haible  <bruno@clisp.org>
48870
48871         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48872
48873 2007-06-09  Bruno Haible  <bruno@clisp.org>
48874
48875         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48876         * modules/malloca: Renamed from modules/allocsa, updated.
48877         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48878         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48879         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48880         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48881         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48882         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48883         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48884         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48885         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48886         * modules/c-strcasestr (Depends-on): Update.
48887         * lib/c-strcasestr.c: Update.
48888         * modules/c-strstr (Depends-on): Update.
48889         * lib/c-strstr.c: Update.
48890         * modules/canonicalize-lgpl (Depends-on): Update.
48891         * lib/canonicalize-lgpl.c: Update.
48892         * modules/clean-temp (Depends-on): Update.
48893         * lib/clean-temp.c: Update.
48894         * modules/csharpcomp (Depends-on): Update.
48895         * lib/csharpcomp.c: Update.
48896         * modules/csharpexec (Depends-on): Update.
48897         * lib/csharpexec.c: Update.
48898         * modules/javacomp (Depends-on): Update.
48899         * lib/javacomp.c: Update.
48900         * modules/javaexec (Depends-on): Update.
48901         * lib/javaexec.c: Update.
48902         * modules/mbscasestr (Depends-on): Update.
48903         * lib/mbscasestr.c: Update.
48904         * modules/mbsstr (Depends-on): Update.
48905         * lib/mbsstr.c: Update.
48906         * modules/setenv (Depends-on): Update.
48907         * lib/setenv.c: Update.
48908         * modules/strcasestr (Depends-on): Update.
48909         * lib/strcasestr.c: Update.
48910         * modules/striconveha (Depends-on): Update.
48911         * lib/striconveha.c: Update.
48912         * modules/relocatable-prog-wrapper (Files): Update.
48913         * lib/relocwrapper.c: Update.
48914         * build-aux/install-reloc: Update.
48915         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48916
48917 2007-06-08  Bruno Haible  <bruno@clisp.org>
48918
48919         Port to uClibc.
48920         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48921         * lib/fpurge.c (fpurge): Likewise.
48922         * lib/freading.c (freading): Likewise.
48923         * lib/fseeko.c (rpl_fseeko): Likewise.
48924         * lib/fseterr.c (fseterr): Likewise.
48925         * lib/fwriting.c (fwriting): Likewise.
48926         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48927
48928 2007-06-08  Bruno Haible  <bruno@clisp.org>
48929
48930         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48931         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48932         * modules/gettext (Files): Add m4/intlmacosx.m4.
48933
48934 2007-06-07  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/localename-tests: New file.
48937         * tests/test-localename.c: New file.
48938
48939         New module 'localename'.
48940         * lib/localename.h: New file.
48941         * lib/localename.c: New file, from GNU gettext.
48942         * m4/localename.m4: New file.
48943         * modules/localename: New file.
48944
48945 2007-06-07  Bruno Haible  <bruno@clisp.org>
48946
48947         Work around the lack of <wchar.h> on some builds of uClibc.
48948         * doc/headers/wchar.texi: Update.
48949         * lib/wchar_.h: Include <wchar.h> only if it exists.
48950         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48951         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48952         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48953         doesn't exist.
48954         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48955         * modules/mbfile (Depends-on): Add wchar.
48956         * modules/mbiter (Depends-on): Likewise.
48957         * modules/mbuiter (Depends-on): Likewise.
48958         Reported by Simon Josefsson.
48959
48960 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48961
48962         Work around problem reported by Steven M. Schweda in
48963         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48964         Tru64 5.1B with the Compaq compiler environment installed declares
48965         an 'isblank' function but does not define it in the C library.
48966         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48967         * lib/regex_internal.h (isblank): Likewise.
48968         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48969         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48970
48971 2007-06-05  Bruno Haible  <bruno@clisp.org>
48972
48973         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48974         ia64.
48975         * modules/printf-safe: New file.
48976         * modules/fprintf-posix (Depends-on): Add printf-safe.
48977         * modules/printf-posix (Depends-on): Likewise.
48978         * modules/snprintf-posix (Depends-on): Likewise.
48979         * modules/sprintf-posix (Depends-on): Likewise.
48980         * modules/vasnprintf-posix (Depends-on): Likewise.
48981         * modules/vasprintf-posix (Depends-on): Likewise.
48982         * modules/vfprintf-posix (Depends-on): Likewise.
48983         * modules/vprintf-posix (Depends-on): Likewise.
48984         * modules/vsnprintf-posix (Depends-on): Likewise.
48985         * modules/vsprintf-posix (Depends-on): Likewise.
48986         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48987         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48988         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48989         "no" on i386, x86_64, ia64.
48990         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48991         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48992         on i386, x86_64, ia64.
48993         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48994         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48995         on i386, x86_64, ia64.
48996         * tests/test-vasnprintf-posix.c: Include float.h.
48997         (LDBL80_WORDS): New macro.
48998         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48999         on i386, x86_64, ia64.
49000         * tests/test-vasprintf-posix.c: Include float.h.
49001         (LDBL80_WORDS): New macro.
49002         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49003         on i386, x86_64, ia64.
49004         * tests/test-snprintf-posix.c: Include float.h.
49005         * tests/test-sprintf-posix.c: Likewise.
49006         * tests/test-vsnprintf-posix.c: Likewise.
49007         * tests/test-vsprintf-posix.c: Likewise.
49008
49009 2007-06-05  Bruno Haible  <bruno@clisp.org>
49010
49011         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49012         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49013         non-IEEE numbers on i386, x86_64, ia64.
49014         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49015         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49016         * tests/test-isnanl.h: Include float.h.
49017         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49018
49019 2007-06-05  Bruno Haible  <bruno@clisp.org>
49020
49021         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49022         also the %a / %A. Handle the %a / %A code before this extra handling.
49023
49024 2007-06-05  Bruno Haible  <bruno@clisp.org>
49025
49026         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49027         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49028
49029 2007-06-05  Bruno Haible  <bruno@clisp.org>
49030
49031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49032         typo in variable name.
49033
49034 2007-06-05  Eric Blake  <ebb9@byu.net>
49035
49036         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49037         Reported by Simon Josefsson.
49038
49039 2007-06-04  Bruno Haible  <bruno@clisp.org>
49040
49041         Avoid test failures on some PowerPC platforms.
49042         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49043         Define differently for PowerPC.
49044         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49045         Reported by Gary V. Vaughan <gary@gnu.org>.
49046
49047 2007-06-02  Bruno Haible  <bruno@clisp.org>
49048
49049         Fix test-stdint failure on FreeBSD/ia64.
49050         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49051         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49052         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49053         * doc/headers/stdint.texi: Update.
49054
49055 2007-06-01  Bruno Haible  <bruno@clisp.org>
49056
49057         * tests/test-binary-io.c (main): Pass a third argument to open().
49058         Reported by Gary V. Vaughan <gary@gnu.org>.
49059
49060 2007-06-01  Bruno Haible  <bruno@clisp.org>
49061
49062         * doc/functions/frexpl.texi: Update for mingw.
49063
49064 2007-06-01  Bruno Haible  <bruno@clisp.org>
49065
49066         * tests/test-lseek.c (main): Disable test of errno for invalid third
49067         argument.
49068         * doc/functions/lseek.texi: Update.
49069         Reported by Gary V. Vaughan <gary@gnu.org>.
49070
49071 2007-05-28  Bruno Haible  <bruno@clisp.org>
49072
49073         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49074
49075 2007-05-31  Eric Blake  <ebb9@byu.net>
49076
49077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49078         cross compiling.
49079
49080 2007-05-30  Eric Blake  <ebb9@byu.net>
49081         and Bruno Haible  <bruno@clisp.org>
49082
49083         Work around mingw test failures exposed by m4-1.4.9b.
49084         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49085         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49086         moment.
49087
49088 2007-05-30  Bruno Haible  <bruno@clisp.org>
49089
49090         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49091         assuming that they are closed. Needed on HP-UX 11.
49092
49093 2007-05-29  Bruno Haible  <bruno@clisp.org>
49094
49095         Fix a problem with #include_next.
49096         * lib/dirent_.h: Split the double-inclusion guard.
49097         * lib/fcntl_.h: Likewise.
49098         * lib/float_.h: Likewise.
49099         * lib/iconv_.h: Likewise.
49100         * lib/inttypes_.h: Likewise.
49101         * lib/locale_.h: Likewise.
49102         * lib/math_.h: Likewise.
49103         * lib/netinet_in_.h: Likewise.
49104         * lib/search_.h: Likewise.
49105         * lib/signal_.h: Likewise.
49106         * lib/stdint_.h: Likewise.
49107         * lib/stdio_.h: Likewise.
49108         * lib/stdlib_.h: Likewise.
49109         * lib/string_.h: Likewise.
49110         * lib/sys_select_.h: Likewise.
49111         * lib/sys_socket_.h: Likewise.
49112         * lib/sys_stat_.h: Likewise.
49113         * lib/sys_time_.h: Likewise.
49114         * lib/sysexits_.h: Likewise.
49115         * lib/time_.h: Likewise.
49116         * lib/unistd_.h: Likewise.
49117         * lib/wchar_.h: Likewise.
49118         * lib/wctype_.h: Likewise.
49119
49120 2007-05-29  Bruno Haible  <bruno@clisp.org>
49121
49122         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49123         for the moment.
49124
49125 2007-05-29  Bruno Haible  <bruno@clisp.org>
49126
49127         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49128         invocation.
49129         Reported by Eric Blake.
49130
49131 2007-05-29  Bruno Haible  <bruno@clisp.org>
49132
49133         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49134         compiling case.
49135
49136 2007-05-29  Eric Blake  <ebb9@byu.net>
49137             Bruno Haible  <bruno@clisp.org>
49138
49139         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49140         cross compiles.
49141
49142 2007-05-28  Eric Blake  <ebb9@byu.net>
49143
49144         * modules/closein-tests (test_closein_LDADD): Support test on
49145         cygwin with libtool.
49146
49147 2007-05-28  Bruno Haible  <bruno@clisp.org>
49148
49149         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49150         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49151         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49152         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49153         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49154         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49155         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49156         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49157         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49158
49159 2007-05-28  Eric Blake  <ebb9@byu.net>
49160
49161         Unconditionally include <config.h> in unit tests.
49162         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49163         * tests/test-allocsa.c, tests/test-arcfour.c,
49164         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49165         tests/test-array_list.c, tests/test-array_oset.c,
49166         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49167         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49168         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49169         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49170         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49171         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49172         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49173         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49174         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49175         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49176         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49177         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49178         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49179         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49180         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49181         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49182         test-md5.c, test-memmem.c, test-printf-posix.c,
49183         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49184         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49185         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49186         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49187         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49188         test-vasnprintf-posix2.c, test-vasnprintf.c,
49189         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49190         test-vfprintf-posix.c, test-vprintf-posix.c,
49191         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49192         test-xvasprintf.c: Likewise.
49193
49194 2007-05-28  Bruno Haible  <bruno@clisp.org>
49195
49196         * gnulib-tool (func_import): Remember the --with-tests command-line
49197         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49198         Reported by Eric Blake.
49199
49200 2007-05-28  Bruno Haible  <bruno@clisp.org>
49201
49202         * modules/ftell-tests: New file.
49203         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49204         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49205
49206         * lib/ftell.c: New file.
49207         * modules/ftell: New file.
49208         * m4/ftell.m4: New file.
49209         * doc/functions/ftell.texi: Update.
49210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49211         REPLACE_FTELL.
49212         * lib/stdio_.h (rpl_ftell): New declaration.
49213         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49214         REPLACE_FTELL.
49215
49216 2007-05-28  Eric Blake  <ebb9@byu.net>
49217
49218         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49219
49220 2007-05-28  Bruno Haible  <bruno@clisp.org>
49221
49222         * modules/fseek-tests: New file.
49223         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49224         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49225
49226         * lib/fseek.c: New file.
49227         * modules/fseek: New file.
49228         * m4/fseek.m4: New file.
49229         * doc/functions/fseek.texi: Update.
49230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49231         REPLACE_FSEEK.
49232         * lib/stdio_.h (rpl_fseek): New declaration.
49233         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49234         REPLACE_FSEEK.
49235
49236 2007-05-28  Bruno Haible  <bruno@clisp.org>
49237
49238         * lib/stdio_.h (fflush): More comments.
49239
49240 2007-05-28  Bruno Haible  <bruno@clisp.org>
49241
49242         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49243         runtime test.
49244
49245 2007-05-28  Eric Blake  <ebb9@byu.net>
49246
49247         Improve lseek module.
49248         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49249         * lib/unistd_.h (lseek): Scale back link warning message.
49250         * tests/test-lseek.c: Beef up test.
49251         * tests/test-lseek.sh: Exercise more facets of lseek.
49252         Reported by Bruno Haible.
49253
49254 2007-05-28  Bruno Haible  <bruno@clisp.org>
49255
49256         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49257         to define.
49258
49259 2007-05-27  Bruno Haible  <bruno@clisp.org>
49260
49261         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49262
49263 2007-05-27  Bruno Haible  <bruno@clisp.org>
49264
49265         * modules/openmp: New file.
49266         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49267         Noah Misch.
49268
49269 2007-05-26  Bruno Haible  <bruno@clisp.org>
49270
49271         * modules/chdir-long (Depends-on): Add fchdir.
49272         * modules/chdir-safer (Depends-on): Likewise.
49273         * modules/fts (Depends-on): Likewise.
49274         * modules/fts-lgpl (Depends-on): Likewise.
49275         * modules/openat (Depends-on): Likewise.
49276         * modules/savewd (Depends-on): Likewise.
49277
49278 2007-05-24  Eric Blake  <ebb9@byu.net>
49279
49280         Fix lseek on mingw.
49281         * modules/lseek: New module.
49282         * m4/lseek.m4: New file.
49283         * lib/lseek.c: New file.
49284         * modules/lseek-tests: New file.
49285         * tests/test-lseek.c: New file.
49286         * tests/test-lseek.sh: New file.
49287         * MODULES.html.sh: Document lseek module.
49288         * modules/fflush (Depends-on): Add lseek, fseeko.
49289         * modules/fseeko (Depends-on): Likewise.
49290         * modules/ftello (Depends-on): Likewise.
49291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49292         broken.
49293         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49294         broken.
49295         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49296         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49297         * lib/ftello.c (rpl_ftello): Likewise.
49298         * tests/test-fseeko.c (main): Test this.
49299         * tests/test-fseeko.sh: Likewise.
49300         * tests/test-ftello.c (main): Likewise.
49301         * tests/test-ftello.sh: Likewise.
49302         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49303         implies replacing fseek.
49304         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49305         HAVE_FTELLO.
49306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49307         * modules/unistd (Makefile.am): Likewise.
49308         * lib/unistd_.h (lseek): Declare a replacement.
49309         * doc/functions/lseek.texi (lseek): Document this fix.
49310         * doc/functions/fseek.texi (fseek): Likewise.
49311         * doc/functions/ftell.texi (ftell): Likewise.
49312
49313 2007-05-24  Bruno Haible  <bruno@clisp.org>
49314
49315         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49316         in the printed representation of a NaN.
49317         * tests/test-vasprintf-posix.c (test_function): Likewise.
49318         * tests/test-snprintf-posix.h (test_function): Likewise.
49319         * tests/test-sprintf-posix.h (test_function): Likewise.
49320         Reported by Eric Blake.
49321
49322 2007-05-23  Eric Blake  <ebb9@byu.net>
49323
49324         Fix fseeko/ftello on cygwin 1.5.24.
49325         * doc/functions/fseeko.texi (fseeko): Document the fix.
49326         * doc/functions/ftello.texi (ftello): Document the fix.
49327         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49328         * doc/functions/stdout.text (stdout): New file.
49329         * doc/functions/stderr.text (stderr): New file.
49330         * doc/gnulib.texi (Function Substitutes): Use new files.
49331         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49332         prior to 1.7.0.
49333         * tests/test-ftello.c (main): Likewise for ftello.
49334         * tests/test-fseeko.sh: New file.
49335         * tests/test-ftello.sh: New file.
49336         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49337         with seekable stdin.
49338         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49339         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49340         (gl_REPLACE_FSEEKO): New macro.
49341         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49342         * modules/fseeko (Files): Distribute fseeko.c.
49343         * modules/ftello (Files): Distribute ftello.c.
49344         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49345         mode.
49346         * lib/ftello.c (rpl_ftello): New file.
49347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49348         fseeko, ftello.
49349         (gl_STDIN_LARGE_OFFSET): New macro.
49350         * modules/stdio (Makefile.am): Perform the replacement.
49351         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49352
49353 2007-05-23  Bruno Haible  <bruno@clisp.org>
49354
49355         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49356         GNULIB_POSIXCHECK is defined.
49357
49358 2007-05-21  Bruno Haible  <bruno@clisp.org>
49359
49360         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49361         Check also the output for NaN arguments. When cross-compiling, guess
49362         no on IRIX.
49363         * lib/vasnprintf.c: Update comments.
49364         * tests/test-vasnprintf-posix.c (strisnan): New function.
49365         (test_function): Use it.
49366         * tests/test-vasprintf-posix.c (strisnan): New function.
49367         (test_function): Use it.
49368         * tests/test-snprintf-posix.h (strisnan): New function.
49369         (test_function): Use it.
49370         * tests/test-sprintf-posix.h (strisnan): New function.
49371         (test_function): Use it.
49372         Reported by Eric Blake.
49373
49374 2007-05-20  Bruno Haible  <bruno@clisp.org>
49375
49376         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49377         numbers that fails on BeOS.
49378         * doc/functions/frexpl.texi: Update.
49379
49380 2007-05-20  Jim Meyering  <jim@meyering.net>
49381
49382         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49383         forced upon us by glibc-2.6.
49384
49385 2007-05-20  Bruno Haible  <bruno@clisp.org>
49386
49387         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49388         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49389         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49390         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49391         NEED_PRINTF_INFINITE.
49392         (is_infinitel): New function.
49393         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49395         gl_PREREQ_VASNPRINTF_INFINITE.
49396         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49397         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49398         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49399         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49400         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49401         gl_PREREQ_VASNPRINTF_INFINITE.
49402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49409         * doc/functions/fprintf.texi: Update.
49410         * doc/functions/printf.texi: Update.
49411         * doc/functions/snprintf.texi: Update.
49412         * doc/functions/sprintf.texi: Update.
49413         * doc/functions/vfprintf.texi: Update.
49414         * doc/functions/vprintf.texi: Update.
49415         * doc/functions/vsnprintf.texi: Update.
49416         * doc/functions/vsprintf.texi: Update.
49417
49418 2007-05-20  Bruno Haible  <bruno@clisp.org>
49419
49420         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49421         was not found in libc.
49422         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49423
49424 2007-05-20  Bruno Haible  <bruno@clisp.org>
49425
49426         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49427         printed as "-nan" instead of "nan".
49428         * tests/test-vasprintf-posix.c (test_function): Likewise.
49429         * tests/test-snprintf-posix.h (test_function): Likewise.
49430         * tests/test-sprintf-posix.h (test_function): Likewise.
49431         Needed for HP-UX 11.
49432
49433 2007-05-20  Jim Meyering  <jim@meyering.net>
49434
49435         Fix buggy test for the fchownat-deref bug.
49436         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49437         symlink required for the run-test.  Without it, this test would
49438         always declare that fchownat doesn't work, and client code would
49439         unnecessarily use the replacement function with fixed libc.
49440         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49441         Reported by Greg Schafer.
49442
49443 2007-05-19  Bruno Haible  <bruno@clisp.org>
49444
49445         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49446         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49447         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49448         Needed for IRIX 6.5 and Solaris 2.5.1.
49449
49450 2007-05-19  Bruno Haible  <bruno@clisp.org>
49451
49452         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49453         (test_function): Skip tests involving -0.0 on platforms where
49454         -0.0 = 0.0.
49455         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49456         (test_function): Skip tests involving -0.0 on platforms where
49457         -0.0 = 0.0.
49458         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49459         (test_function): Skip tests involving -0.0 on platforms where
49460         -0.0 = 0.0.
49461         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49462         (test_function): Skip tests involving -0.0 on platforms where
49463         -0.0 = 0.0.
49464         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49465         tests.
49466         * tests/test-printf-posix.h (test_function): Likewise.
49467         * tests/test-printf-posix.output: Remove all -0.0 related results.
49468         Needed for IRIX 6.5.
49469
49470 2007-05-19  Bruno Haible  <bruno@clisp.org>
49471
49472         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49473         printed as "nan0x7fffffff" instead of "nan".
49474         * tests/test-vasprintf-posix.c (test_function): Likewise.
49475         * tests/test-snprintf-posix.h (test_function): Likewise.
49476         * tests/test-sprintf-posix.h (test_function): Likewise.
49477         * tests/test-fprintf-posix.h (NaN): Remove macro.
49478         (test_function): Remove all NaN related tests.
49479         * tests/test-printf-posix.h (NaN): Remove macro.
49480         (test_function): Remove all NaN related tests.
49481         * tests/test-printf-posix.output: Remove all NaN related results.
49482         Needed for IRIX 6.5.
49483
49484 2007-05-19  Bruno Haible  <bruno@clisp.org>
49485
49486         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49488
49489 2007-05-19  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/float_.h: New file.
49492         * m4/float_h.m4: New file.
49493         * modules/float: New file.
49494         * modules/isnanl (Dependencies): Add float.
49495         * modules/isnanl-nolibm (Dependencies): Likewise.
49496         * modules/mathl (Dependencies): Likewise.
49497         * modules/printf-frexpl (Dependencies): Likewise.
49498         * modules/signbit (Dependencies): Likewise.
49499         * modules/vasnprintf (Dependencies): Likewise.
49500         * doc/headers/float.texi: Update.
49501
49502 2007-05-19  Jim Meyering  <jim@meyering.net>
49503
49504         * lib/utimens.c (gl_futimens): Rename from futimens,
49505         now that glibc-2.6 declares futimens.
49506         * lib/utimens.h: Likewise.
49507
49508 2007-05-19  Bruno Haible  <bruno@clisp.org>
49509
49510         Avoid test failures on mingw.
49511         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49512         * tests/test-printf-posix.sh: Likewise.
49513         * tests/test-vfprintf-posix.sh: Likewise.
49514         * tests/test-vprintf-posix.sh: Likewise.
49515
49516 2007-05-19  Bruno Haible  <bruno@clisp.org>
49517
49518         Fix *printf result for NaN, Inf, -0.0 on mingw.
49519         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49520         * lib/vasnprintf.c: Include math.h and isnan.h.
49521         (is_infinite_or_zero): New function.
49522         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49523         values in the %f, %F, %e, %E, %g, %G directives.
49524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49526         gl_PRINTF_INFINITE and test its result. Invoke
49527         gl_PREREQ_VASNPRINTF_INFINITE.
49528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49534         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49535         * doc/functions/fprintf.texi: Update.
49536         * doc/functions/printf.texi: Update.
49537         * doc/functions/snprintf.texi: Update.
49538         * doc/functions/sprintf.texi: Update.
49539         * doc/functions/vfprintf.texi: Update.
49540         * doc/functions/vprintf.texi: Update.
49541         * doc/functions/vsnprintf.texi: Update.
49542         * doc/functions/vsprintf.texi: Update.
49543
49544 2007-05-19  Bruno Haible  <bruno@clisp.org>
49545
49546         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49547         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49548         Instead of multiplying with 10^k, set extra_zeroes to k.
49549         (scale10_round_long_double): Remove function.
49550
49551 2007-05-18  Bruno Haible  <bruno@clisp.org>
49552
49553         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49554         introduced on 2007-05-06.
49555
49556 2007-05-18  Bruno Haible  <bruno@clisp.org>
49557
49558         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49559         %g directives.
49560         * tests/test-vasprintf-posix.c (test_function): Likewise.
49561         * tests/test-snprintf-posix.h (test_function): Likewise.
49562         * tests/test-sprintf-posix.h (test_function): Likewise.
49563
49564 2007-05-18  Bruno Haible  <bruno@clisp.org>
49565
49566         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49567         (strmatch): New function.
49568         (test_function): Test the %f directive on numbers of various exponents.
49569         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49570         (strmatch): New function.
49571         (test_function): Test the %f directive on numbers of various exponents.
49572         * tests/test-snprintf-posix.h (strmatch): New function.
49573         (test_function): Test the %f directive on numbers of various exponents.
49574         * tests/test-sprintf-posix.h (strmatch): New function.
49575         (test_function): Test the %f directive on numbers of various exponents.
49576         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49577         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49578         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49579         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49580
49581 2007-05-18  Bruno Haible  <bruno@clisp.org>
49582
49583         Add support for 'long double' number output.
49584         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49585         * lib/vasnprintf.c: Include math.h and float+.h.
49586         (mp_limb_t): New type.
49587         (GMP_LIMB_BITS): New macro.
49588         (mp_twolimb_t): New type.
49589         (GMP_TWOLIMB_BITS): New macro.
49590         (mpn_t): New type.
49591         (multiply, divide, convert_to_decimal, decode_long_double,
49592         scale10_round_long_double, scale10_round_decimal_long_double,
49593         floorlog10l): New functions.
49594         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49595         for the %f, %F, %e, %E, %g, %G directives.
49596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49597         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49598         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49599         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49601         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49602         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49603         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49604         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49605         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49606         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49607         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49608         * modules/snprintf-posix (Depends-on): Likewise.
49609         * modules/sprintf-posix (Depends-on): Likewise.
49610         * modules/vasnprintf-posix (Depends-on): Likewise.
49611         * modules/vasprintf-posix (Depends-on): Likewise.
49612         * modules/vfprintf-posix (Depends-on): Likewise.
49613         * modules/vsnprintf-posix (Depends-on): Likewise.
49614         * modules/vsprintf-posix (Depends-on): Likewise.
49615         * modules/vasnprintf (Files): Add lib/float+.h.
49616         * doc/functions/fprintf.texi: Update.
49617         * doc/functions/printf.texi: Update.
49618         * doc/functions/snprintf.texi: Update.
49619         * doc/functions/sprintf.texi: Update.
49620         * doc/functions/vfprintf.texi: Update.
49621         * doc/functions/vprintf.texi: Update.
49622         * doc/functions/vsnprintf.texi: Update.
49623         * doc/functions/vsprintf.texi: Update.
49624
49625 2007-05-18  Bruno Haible  <bruno@clisp.org>
49626
49627         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49628
49629 2007-05-18  Bruno Haible  <bruno@clisp.org>
49630
49631         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49632         for printing 64-bit integers. Needed for mingw.
49633
49634 2007-05-18  Bruno Haible  <bruno@clisp.org>
49635
49636         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49637         gl_FUNC_FREXPL_WORKS.
49638         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49639
49640 2007-05-18  Bruno Haible  <bruno@clisp.org>
49641
49642         * modules/frexpl-nolibm-tests: New file.
49643
49644         * modules/frexpl-nolibm: New file.
49645         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49646
49647 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49648
49649         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49650         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49651         GCC 4.2, which otherwise issues a lot of warnings.
49652         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49653         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49654         Likewise.
49655         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49656         * modules/iconv_open (iconv.h): Likewise.
49657         * modules/locale (locale.h): Likewise.
49658         * modules/netinet_in (netinet/in.h): Likewise.
49659         * modules/sys_select (sys_select.h): Likewise.
49660         * modules/sys_socket (sys/socket.h): Likewise.
49661         * modules/sys_stat (sys/stat.h): Likewise.
49662         * modules/sysexits (sysexits.h): Likewise.
49663         * modules/unistd (unistd.h): Likewise.
49664
49665 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49666
49667         * modules/closein-tests (Makefile.am): Distribute
49668         `test-closein.sh'.
49669
49670 2007-05-17  Bruno Haible  <bruno@clisp.org>
49671
49672         * tests/test-printf-posix.output: Renamed from
49673         tests/test-fprintf-posix.out.
49674         * modules/fprintf-posix-tests: Update.
49675         * modules/printf-posix-tests: Update.
49676         * modules/vfprintf-posix-tests: Update.
49677         * modules/vprintf-posix-tests: Update.
49678         * tests/test-fprintf-posix.sh: Update.
49679         * tests/test-printf-posix.sh: Update.
49680         * tests/test-vfprintf-posix.sh: Update.
49681         * tests/test-vprintf-posix.sh: Update.
49682         Reported by Ralf Wildenhues.
49683
49684 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49685
49686         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49687         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49688         GCC 4.2, which otherwise issues a lot of warnings.
49689         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49690         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49691         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49692         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49693         it should no longer be needed.
49694         * lib/string_.h: Likewise.
49695         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49696         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49697         * modules/inttypes (inttypes.h): Likewise.
49698         * modules/math (math.h): Likewise.
49699         * modules/search (search.h): Likewise.
49700         * modules/signal (signal.h): Likewise.
49701         * modules/stdint (stdint.h): Likewise.
49702         * modules/stdio (stdio.h): Likewise.
49703         * modules/stdlib (stdlib.h): Likewise.
49704         * modules/string (string.h): Likewise.
49705         * modules/sys_time (sys/time.h): Likewise.
49706         * modules/time (time.h): Likewise.
49707         * modules/wchar (wchar.h): Likewise.
49708         * modules/wctype (wtype.h): Likewise.
49709
49710 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49711
49712         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49713
49714 2007-05-13  Bruno Haible  <bruno@clisp.org>
49715
49716         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49717         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49718         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49719         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49720         (gl_PREREQ_STRTOK_R): Don't require it here.
49721
49722 2007-05-13  Bruno Haible  <bruno@clisp.org>
49723
49724         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49725         when used in C++ mode.
49726
49727 2007-05-12  Bruno Haible  <bruno@clisp.org>
49728
49729         * lib/linebuffer.h: Tweak doc.
49730         * lib/linebuffer.c: Likewise.
49731
49732 2007-05-12  James Youngman  <jay@gnu.org>
49733
49734         * lib/linebuffer.c (readlinebuffer_delim): New function,
49735         like readlinebuffer, but use a caller-specified delimiter.
49736         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49737         as the delimiter.
49738         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49739
49740 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49741
49742         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49743         * modules/openat (Files): Remove openat-die.c.
49744         (Depends-on): Add openat-die.
49745         * modules/openat-die: New module.
49746
49747 2007-05-06  Bruno Haible  <bruno@clisp.org>
49748
49749         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49750         Update with info about Cygwin.
49751         * doc/functions/fprintf.texi: Update.
49752         * doc/functions/printf.texi: Update.
49753         * doc/functions/snprintf.texi: Update.
49754         * doc/functions/sprintf.texi: Update.
49755         * doc/functions/vfprintf.texi: Update.
49756         * doc/functions/vprintf.texi: Update.
49757         * doc/functions/vsnprintf.texi: Update.
49758         * doc/functions/vsprintf.texi: Update.
49759         Reported by Eric Blake.
49760
49761 2007-05-06  Bruno Haible  <bruno@clisp.org>
49762
49763         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49764         padding ourselves for the floating-point directives.
49765         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49767         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49768         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49769         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49772         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49777         * tests/test-snprintf-posix.h (test_function): Also check the width
49778         and some flags in the %f directive.
49779         * tests/test-sprintf-posix.h (test_function): Likewise.
49780         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49781         * tests/test-vasprintf-posix.c (test_function): Likewise.
49782         * doc/functions/fprintf.texi: Update.
49783         * doc/functions/printf.texi: Update.
49784         * doc/functions/snprintf.texi: Update.
49785         * doc/functions/sprintf.texi: Update.
49786         * doc/functions/vfprintf.texi: Update.
49787         * doc/functions/vprintf.texi: Update.
49788         * doc/functions/vsnprintf.texi: Update.
49789         * doc/functions/vsprintf.texi: Update.
49790
49791 2007-05-06  Bruno Haible  <bruno@clisp.org>
49792
49793         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49794         pass the ' flag character to sprintf or snprintf.
49795         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49798         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49799         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49804         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49807         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49808         flag.
49809         * tests/test-sprintf-posix.h (test_function): Likewise.
49810         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49811         * tests/test-vasprintf-posix.c (test_function): Likewise.
49812         * doc/functions/fprintf.texi: Update.
49813         * doc/functions/printf.texi: Update.
49814         * doc/functions/snprintf.texi: Update.
49815         * doc/functions/sprintf.texi: Update.
49816         * doc/functions/vfprintf.texi: Update.
49817         * doc/functions/vprintf.texi: Update.
49818         * doc/functions/vsnprintf.texi: Update.
49819         * doc/functions/vsprintf.texi: Update.
49820
49821 2007-05-01  Bruno Haible  <bruno@clisp.org>
49822
49823         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49824
49825 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49826
49827         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49828         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49829
49830 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49831
49832         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49833         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49835
49836 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49837
49838         * lib/argp-help.c (struct hol_entry): New member `ord'.
49839         (HOL_ENTRY_PTRCMP): Use ord for comparison
49840         (hol_sort): Initialize ord.
49841
49842 2007-05-01  Bruno Haible  <bruno@clisp.org>
49843
49844         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49845         Reported by Eric Blake.
49846         * doc/gnulib.texi (Function Substitutes): Update.
49847
49848 2007-05-01  Bruno Haible  <bruno@clisp.org>
49849
49850         * doc/functions.texi: Remove file, now redundant through
49851         doc/functions/*.texi.
49852
49853 2007-05-01  Bruno Haible  <bruno@clisp.org>
49854
49855         * modules/argp (Depends-on): Add sleep.
49856
49857 2007-05-01  Bruno Haible  <bruno@clisp.org>
49858
49859         * modules/sleep-tests: New file.
49860         * tests/test-sleep.c: New file.
49861
49862         * modules/sleep: New file.
49863         * lib/sleep.c: New file.
49864         * m4/sleep.m4: New file.
49865         * lib/unistd_.h (sleep): New declaration.
49866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49867         HAVE_SLEEP.
49868         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49869         * doc/functions/sleep.texi: Document the sleep module.
49870
49871 2007-05-01  Bruno Haible  <bruno@clisp.org>
49872
49873         * lib/sigprocmask.h: Remove file.
49874         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49875         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49876         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49877         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49878         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49879         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49880         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49881         HAVE_SIGSET_T as a shell variable.
49882         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49883         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49884         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49885         (Depends-on): Add signal. Remove verify.
49886         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49887         (Include): Mention <signal.h> instead of sigprocmask.h.
49888         * NEWS: Mention the change.
49889         * lib/fatal-signal.c: Don't include sigprocmask.h.
49890
49891 2007-05-01  Bruno Haible  <bruno@clisp.org>
49892
49893         * modules/signal: New file.
49894         * lib/signal_.h: New file.
49895         * m4/signal_h.m4: New file.
49896
49897 2007-05-01  Bruno Haible  <bruno@clisp.org>
49898
49899         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49900         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49901         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49902         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49903
49904 2007-05-01  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49907         configure time.
49908         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49909         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49910         * modules/sys_stat (Makefile.am): Substitute their values into
49911         sys/stat.h.
49912
49913 2007-05-01  Bruno Haible  <bruno@clisp.org>
49914
49915         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49916         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49917         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49918
49919 2007-05-01  Bruno Haible  <bruno@clisp.org>
49920
49921         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49922         'assert' module here.
49923
49924 2007-05-01  Bruno Haible  <bruno@clisp.org>
49925
49926         * doc/functions/*.texi: New files.
49927         * doc/functions/google-ranking.txt: New file.
49928         * doc/gnulib.texi (Function Substitutes): New chapter.
49929         (ctime, inet_ntoa): Remove sections.
49930         * doc/ctime.texi: Remove file.
49931         * doc/inet_ntoa.texi: Remove file.
49932         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49933         dependencies.
49934         (%.info): New rule, specifying a --reference-limit.
49935
49936 2007-05-01  Bruno Haible  <bruno@clisp.org>
49937
49938         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49939
49940 2007-05-01  Bruno Haible  <bruno@clisp.org>
49941
49942         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49943         the portability of 'mkdir' to mingw systems.
49944
49945 2007-05-01  Bruno Haible  <bruno@clisp.org>
49946
49947         * doc/headers/google-ranking.txt: New file.
49948
49949 2007-04-30  Eric Blake  <ebb9@byu.net>
49950
49951         Prefer fseeko to fseek.
49952         * modules/getpass (Depends-on): Add fseeko.
49953         * lib/getpass.c (getpass): Use fseeko, not fseek.
49954
49955 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49956
49957         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49958         assumes the sorting is stable, while most qsort implementations
49959         are not.  Use argument addresses to ensure they never compare as
49960         equal.
49961
49962         * tests/test-argp-2.sh (usage-indent test): Fix output
49963         (func_compare): Restore diff options
49964         * tests/test-argp.c: Restore #include "progname.h"
49965
49966 2007-04-29  Bruno Haible  <bruno@clisp.org>
49967
49968         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49970         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49972         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49973         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49974         (TESTS, check_PROGRAMS): Add test-snprintf.
49975         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49976         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49977         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49978         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49979         assertions that fail on HP-UX, OSF/1, or IRIX.
49980         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49981
49982 2007-04-29  Bruno Haible  <bruno@clisp.org>
49983
49984         * MODULES.html.sh (posix_functions): Remove 'contents'.
49985
49986 2007-04-29  Karl Berry  <karl@gnu.org>
49987
49988         * config/srclist.txt (gendocs_template_min): new entry.
49989
49990 2007-04-29  Bruno Haible  <bruno@clisp.org>
49991
49992         Work around fpurge bug on BSD systems.
49993         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49994         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49995         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49996         fpurge to rpl_fpurge if the system already has this function.
49997         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49998         the case where the system already has this function. Correct invariants
49999         on BSD systems.
50000         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50001         BSD systems.
50002
50003 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50004
50005         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50006         proposed by Sven Verdoolaege.
50007
50008         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50009         options.
50010         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50011         (usage and help tests): Update
50012
50013 2007-04-29  Bruno Haible  <bruno@clisp.org>
50014
50015         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50016         Print more information in case of failure. Disable a test on BeOS.
50017
50018 2007-04-29  Bruno Haible  <bruno@clisp.org>
50019
50020         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50021         This helps debugging on systems on which no gdb is available.
50022
50023 2007-04-29  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/freading.h: Improve comments.
50026         * lib/fwriting.h: Likewise.
50027         * tests/test-freading.c (main): Don't check freading immediately after
50028         repositioning. Needed for glibc.
50029
50030 2007-04-29  Bruno Haible  <bruno@clisp.org>
50031
50032         * lib/freading.c (freading): Trivial simplification.
50033
50034 2007-04-28  Bruno Haible  <bruno@clisp.org>
50035
50036         * tests/test-fwriting.c (main): Also test the interaction between
50037         fflush and fwriting.
50038         * modules/fwriting-tests (Depends-on): Add fflush.
50039
50040         * tests/test-freading.c (main): Also test the interaction between
50041         fflush and freading.
50042         * modules/freading-tests (Depends-on): Add fflush.
50043
50044 2007-04-28  Bruno Haible  <bruno@clisp.org>
50045
50046         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50047         fseeko and ftello.
50048         Suggested by Eric Blake.
50049
50050 2007-04-28  Jim Meyering  <jim@meyering.net>
50051
50052         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50053         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50054         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50055
50056 2007-04-27  Eric Blake  <ebb9@byu.net>
50057
50058         * doc/headers/assert.texi (assert.h): Document assert module use.
50059
50060 2007-04-27  Bruno Haible  <bruno@clisp.org>
50061
50062         * doc/headers/*.texi: New files.
50063         * doc/gnulib.texi (Header File Substitutes): New chapter.
50064         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50065         dependencies.
50066         (standards.info ,standards.html, standards.dvi): Update dependencies.
50067         (mostlyclean, clean): New targets.
50068
50069 2007-04-27  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50072         * modules/sysexits (Files, Makefile.am): Update.
50073
50074         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50075         * modules/sys_socket (Files, Makefile.am): Update.
50076
50077         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50078         * modules/sys_stat (Files, Makefile.am): Update.
50079
50080 2007-04-27  Eric Blake  <ebb9@byu.net>
50081
50082         * lib/freading.h: Improve comments.
50083         * lib/fwriting.h: Likewise.
50084         * lib/fflush.c: Likewise.
50085
50086         Fix closein for mingw.
50087         * modules/closein-tests: Add tests for closein.
50088         * tests/test-closein.c: New file.
50089         * tests/test-closein.sh: Likewise.
50090         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50091         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50092
50093 2007-04-27  Bruno Haible  <bruno@clisp.org>
50094
50095         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50096         version is < 6.
50097         * lib/math_.h [__DECC]: Likewise.
50098         * lib/stdio_.h [__DECC]: Likewise.
50099         * lib/stdlib_.h [__DECC]: Likewise.
50100         * lib/string_.h [__DECC]: Likewise.
50101         * lib/time_.h [__DECC]: Likewise.
50102         * lib/wchar_.h [__DECC]: Likewise.
50103         * lib/wctype_.h [__DECC]: Likewise.
50104
50105 2007-04-27  Bruno Haible  <bruno@clisp.org>
50106
50107         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50108
50109 2007-04-27  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/fflush.c: Add comments.
50112         * modules/fpurge-tests (Depends-on): Add fflush.
50113         * modules/freadable-tests (Depends-on): Likewise.
50114         * modules/fwritable-tests (Depends-on): Likewise.
50115
50116 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50117
50118         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50119         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50120         Report by Bruno Haible <bruno@clisp.org>.
50121
50122 2007-04-26  Eric Blake  <ebb9@byu.net>
50123
50124         Fix fflush on mingw.
50125         * modules/fflush (Depends-on): Add freading.
50126         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50127         but unread data.
50128
50129 2007-04-26  Eric Blake  <ebb9@byu.net>
50130         and Bruno Haible  <bruno@clisp.org>
50131
50132         Implement freading and fwriting.
50133         * lib/freading.c: New file.
50134         * lib/freading.h: Likewise.
50135         * m4/freading.m4: Likewise.
50136         * modules/freading: Likewise.
50137         * modules/freading-tests: Likewise.
50138         * tests/test-freading.c: Likewise.
50139         * lib/fwriting.c: New file.
50140         * lib/fwriting.h: Likewise.
50141         * m4/fwriting.m4: Likewise.
50142         * modules/fwriting: Likewise.
50143         * modules/fwriting-tests: Likewise.
50144         * tests/test-fwriting.c: Likewise.
50145         * MODULES.html.sh (File stream based Input/Output): Mention them.
50146
50147 2007-04-26  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50150         'long' when we assume it.
50151         Suggested by Eric Blake.
50152
50153 2007-04-26  Bruno Haible  <bruno@clisp.org>
50154
50155         Ensure fseeko, ftello are declared on glibc systems.
50156         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50157         * modules/fseeko (configure.ac-early): Likewise.
50158         * modules/ftello (configure.ac-early): Likewise.
50159         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50160         AC_FUNC_FSEEKO for this.
50161         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50162         (gl_CHECK_FSEEKO): Remove macro.
50163
50164 2007-04-26  Bruno Haible  <bruno@clisp.org>
50165
50166         * tests/test-fflush.c (main): Also check the ftell result after
50167         fflush and fseek/fseeko.
50168         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50169         file descriptor position cache in the stream.
50170         * lib/fseeko.c (rpl_fseeko): Likewise.
50171
50172 2007-04-26  Bruno Haible  <bruno@clisp.org>
50173
50174         * modules/fflush-tests (Depends-on): Add fseeko.
50175
50176 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50177             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50178
50179         * lib/argz_.h: ensure error_t definition is obtained in same
50180         mechanism system argz.h would have.
50181         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50182         argz facilities are known bad.  Err on the side of caution if
50183         cross-compiling.
50184
50185 2007-04-25  Eric Blake  <ebb9@byu.net>
50186
50187         * lib/fpurge.c (includes): Use stdlib.h for free.
50188         * tests/test-fflush.c (main): Also test fflush-fseeko.
50189
50190 2007-04-25  Bruno Haible  <bruno@clisp.org>
50191
50192         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50193         * lib/fseeko.c: New file.
50194         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50195         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50196         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50197         gl_FUNC_FSEEKO.
50198         (gl_FUNC_FSEEKO): Invoke it.
50199         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50200         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50201         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50202
50203 2007-04-25  Bruno Haible  <bruno@clisp.org>
50204
50205         * modules/fflush (Depends-on): Add ftello.
50206
50207 2007-04-25  Bruno Haible  <bruno@clisp.org>
50208
50209         * modules/ftello-tests: New file.
50210         * tests/test-ftello.c: New file.
50211
50212         * modules/ftello: New file.
50213         * m4/ftello.m4: New file.
50214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50215         HAVE_FTELLO.
50216         * lib/stdio_.h (ftello): New declaration.
50217         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50218         HAVE_FTELLO.
50219
50220 2007-04-25  Bruno Haible  <bruno@clisp.org>
50221
50222         * modules/fseeko-tests: New file.
50223         * tests/test-fseeko.c: New file.
50224
50225         * modules/fseeko: New file.
50226         * m4/fseeko.m4: New file.
50227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50228         HAVE_FSEEKO.
50229         * lib/stdio_.h (fseeko): New declaration.
50230         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50231         HAVE_FSEEKO.
50232
50233 2007-04-25  Bruno Haible  <bruno@clisp.org>
50234
50235         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50236
50237 2007-04-25  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50240         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50241         * tests/test-unistd.c: Likewise.
50242         * tests/test-fcntl.c: Likewise.
50243
50244 2007-04-23  Eric Blake  <ebb9@byu.net>
50245
50246         * lib/fflush.c: Fix missing include.
50247         Reported by Bruno Haible.
50248
50249 2007-04-23  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50252         Reported by Eric Blake.
50253
50254 2007-04-23  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50257
50258 2007-04-23  Bruno Haible  <bruno@clisp.org>
50259
50260         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50261
50262 2007-04-23  Bruno Haible  <bruno@clisp.org>
50263
50264         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50265         Needed on HP-UX 11.
50266
50267 2007-04-16  Eric Blake  <ebb9@byu.net>
50268
50269         Make fflush rely on fpurge.
50270         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50271         open coding all variants.
50272         * modules/fflush (Depends-on): Add fpurge and unistd.
50273         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50274         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50275
50276         Fix --with-tests compilation on cygwin.
50277         * modules/argmatch-tests (Makefile.am): List gnulib library first
50278         in LDADD.
50279         * modules/argp-tests (Makefile.am): Likewise.
50280         * modules/array-list-tests (Makefile.am): Likewise.
50281         * modules/array-oset-tests (Makefile.am): Likewise.
50282         * modules/avltree-list-tests (Makefile.am): Likewise.
50283         * modules/avltree-oset-tests (Makefile.am): Likewise.
50284         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50285         * modules/carray-list-tests (Makefile.am): Likewise.
50286         * modules/dirname-tests (Makefile.am): Likewise.
50287         * modules/frexp-tests (Makefile.am): Likewise.
50288         * modules/isnanl-tests (Makefile.am): Likewise.
50289         * modules/linked-list-tests (Makefile.am): Likewise.
50290         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50291         * modules/lock-tests (Makefile.am): Likewise.
50292         * modules/rbtree-list-tests (Makefile.am): Likewise.
50293         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50294         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50295         * modules/tls-tests (Makefile.am): Likewise.
50296         * modules/tsearch-tests (Makefile.am): Likewise.
50297         * modules/xvasprintf-tests (Makefile.am): Likewise.
50298
50299         Fix fpurge for cygwin.
50300         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50301         value.
50302         * modules/fpurge-tests (Depends-on): Clean up trash.
50303
50304 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50305
50306         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50307
50308         * m4/autobuild.m4: Re-indent.
50309
50310 2007-04-13  Bruno Haible  <bruno@clisp.org>
50311
50312         * modules/fpurge-tests: New file.
50313         * tests/test-fpurge.c: New file.
50314
50315         * modules/fpurge: New file.
50316         * lib/fpurge.h: New file.
50317         * lib/fpurge.c: New file.
50318         * m4/fpurge.m4: New file.
50319
50320 2007-04-13  Bruno Haible  <bruno@clisp.org>
50321
50322         * modules/fbufmode-tests: New file.
50323         * tests/test-fbufmode.c: New file.
50324
50325         * modules/fbufmode: New file.
50326         * lib/fbufmode.h: New file.
50327         * lib/fbufmode.c: New file.
50328         * m4/fbufmode.m4: New file.
50329
50330 2007-04-13  Bruno Haible  <bruno@clisp.org>
50331
50332         * modules/fwritable-tests: New file.
50333         * tests/test-fwritable.c: New file.
50334
50335         * modules/fwritable: New file.
50336         * lib/fwritable.h: New file.
50337         * lib/fwritable.c: New file.
50338         * m4/fwritable.m4: New file.
50339
50340 2007-04-13  Bruno Haible  <bruno@clisp.org>
50341
50342         * modules/freadable-tests: New file.
50343         * tests/test-freadable.c: New file.
50344
50345         * modules/freadable: New file.
50346         * lib/freadable.h: New file.
50347         * lib/freadable.c: New file.
50348         * m4/freadable.m4: New file.
50349
50350 2007-04-13  Bruno Haible  <bruno@clisp.org>
50351
50352         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50353         MOSTLYCLEANFILES.
50354
50355 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50356
50357         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50358         gzip bootstrap.conf to avoid dragging in i18n machinery.
50359         (gnulib_tool_option): Use it.
50360
50361 2007-04-13  Bruno Haible  <bruno@clisp.org>
50362
50363         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50364         %F directives.
50365         * tests/test-vasprintf-posix.c (test_function): Likewise.
50366         * tests/test-snprintf-posix.h (test_function): Likewise.
50367         * tests/test-sprintf-posix.h (test_function): Likewise.
50368         * tests/test-fprintf-posix.h (test_function): Likewise.
50369         * tests/test-printf-posix.h (test_function): Likewise.
50370         * tests/test-fprintf-posix.out: Likewise.
50371
50372 2007-04-13  Bruno Haible  <bruno@clisp.org>
50373
50374         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50375         * modules/tls-tests (configure.ac): Likewise.
50376         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50377
50378 2007-04-13  Bruno Haible  <bruno@clisp.org>
50379
50380         * lib/tls.c (glthread_tls_get): Fix return type.
50381         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50382
50383 2007-04-12  Eric Blake  <ebb9@byu.net>
50384
50385         * modules/gettime (Depends-on): Remove gettime.
50386         Reported by Dmitry V. Levin.
50387
50388 2007-04-12  Bruno Haible  <bruno@clisp.org>
50389
50390         * modules/fflush (Include): Mention <stdio.h>.
50391         * modules/strtoimax (Include): Mention <inttypes.h>.
50392         * modules/strtoumax (Include): Likewise.
50393
50394 2007-04-12  Eric Blake  <ebb9@byu.net>
50395
50396         * .cvsignore: New file.
50397         * .gitignore: Likewise.
50398
50399 2007-04-12  Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50402         not before, since $(LDADD) often contains libgnu.a.
50403         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50404         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50405         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50406         Needed on Cygwin.
50407
50408 2007-04-12  Eric Blake  <ebb9@byu.net>
50409
50410         Work around glibc's failure to flush stdin on fclose.
50411         * lib/closein.c (close_stdin): Flush stdin before closing.
50412
50413         Work around glibc's failure to reset seekable stdin on exit.
50414         * modules/closein: New module.
50415         * lib/closein.c: New file.
50416         * lib/closein.h: Likewise.
50417         * m4/closein.m4: Likewise.
50418         * MODULES.html.sh (File stream based Input/Output): Document it.
50419
50420 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50421
50422         * gnulib-tool: Rename generated 'autobuild' script to
50423         'do-autobuild' in --create-megatestdir output.
50424
50425         * doc/gnulib.texi (Build robot for gnulib): Fix.
50426
50427 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50428
50429         * modules/sysexits (Depends-on): Add absolute-header.
50430
50431 2007-04-12  Eric Blake  <ebb9@byu.net>
50432
50433         No need to preserve errno on success.
50434         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50435         Reported by Bruno Haible.
50436
50437 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50438
50439         * MODULES.html.sh (Support for maintaining and releasing
50440         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50441
50442 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50443
50444         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50445
50446 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50447
50448         * modules/autobuild: New module.
50449
50450         * m4/autobuild.m4: New file.
50451
50452 2007-04-11  Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50455         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50456         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50476         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50482         Reported by Eric Blake.
50483
50484 2007-04-11  Bruno Haible  <bruno@clisp.org>
50485
50486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50487
50488 2007-04-10  Bruno Haible  <bruno@clisp.org>
50489
50490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50491         for NaN and Infinity. Needed on FreeBSD 6.1.
50492         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50493         regarding results for "%010a" of Infinity and NaN.
50494         * tests/test-vasprintf-posix.c (test_function): Likewise.
50495         * tests/test-snprintf-posix.h (test_function): Likewise.
50496         * tests/test-sprintf-posix.h (test_function): Likewise.
50497         * tests/test-fprintf-posix.h (test_function): Likewise.
50498         * tests/test-printf-posix.h (test_function): Likewise.
50499         * tests/test-fprintf-posix.out: Likewise.
50500
50501 2007-04-10  Bruno Haible  <bruno@clisp.org>
50502
50503         * modules/locale-tests: New file.
50504         * tests/test-locale.c: New file.
50505
50506         * modules/locale: New file.
50507         * lib/locale_.h: New file.
50508         * m4/locale_h.m4: New file.
50509
50510 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50511             Bruno Haible  <bruno@clisp.org>
50512
50513         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50514         be determined, test for availability of the copysignf, copysign,
50515         copysignl functions.
50516         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50517         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50518         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50519
50520 2007-04-09  Eric Blake  <ebb9@byu.net>
50521
50522         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50523         * modules/stdio (Makefile.am): Support fflush.
50524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50525         * modules/fflush: New file.
50526         * lib/fflush.c: Likewise.
50527         * m4/fflush.m4: Likewise.
50528         * modules/fflush-tests: New test.
50529         * tests/test-fflush.c: Likewise.
50530         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50531
50532 2007-04-06  Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50535         (VASNPRINTF): Use signbit for faster determination whether to print a
50536         minus sign.
50537         * modules/vasnprintf (Files): Remove lib/float+.h.
50538         * modules/fprintf-posix (Depends-on): Add signbit.
50539         * modules/snprintf-posix (Depends-on): Likewise.
50540         * modules/sprintf-posix (Depends-on): Likewise.
50541         * modules/vasnprintf-posix (Depends-on): Likewise.
50542         * modules/vasprintf-posix (Depends-on): Likewise.
50543         * modules/vfprintf-posix (Depends-on): Likewise.
50544         * modules/vsnprintf-posix (Depends-on): Likewise.
50545         * modules/vsprintf-posix (Depends-on): Likewise.
50546
50547 2007-04-06  Bruno Haible  <bruno@clisp.org>
50548
50549         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50550         * tests/test-frexpl.c (main): Likewise.
50551         * tests/test-ldexpl.c (main): Likewise.
50552         * modules/frexp-tests (Depends-on): Add signbit.
50553         * modules/frexpl-tests (Depdends-on): Likewise.
50554         * modules/ldexpl-tests (Depdends-on): Likewise.
50555
50556 2007-04-06  Bruno Haible  <bruno@clisp.org>
50557
50558         * modules/signbit-tests: New file.
50559         * tests/test-signbit.c: New file.
50560
50561         * modules/signbit: New file.
50562         * lib/signbitf.c: New file.
50563         * lib/signbitd.c: New file.
50564         * lib/signbitl.c: New file.
50565         * m4/signbit.m4: New file.
50566         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50567         (signbit): New macro.
50568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50569         REPLACE_SIGNBIT.
50570         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50571         REPLACE_FREXPL into math.h.
50572
50573 2007-04-06  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/isnanf-nolibm-tests: New file.
50576         * tests/test-isnanf.c: New file.
50577
50578         * modules/isnanf-nolibm: New file.
50579         * lib/isnanf.h: New file.
50580         * lib/isnanf.c: New file.
50581         * lib/isnan.c: Consider the USE_FLOAT macro.
50582         * m4/isnanf.m4: New file.
50583
50584 2007-04-06  Bruno Haible  <bruno@clisp.org>
50585
50586         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50587         (Link): New section.
50588
50589         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50590
50591 2007-04-06  Bruno Haible  <bruno@clisp.org>
50592
50593         Assume the 'long double' type.
50594         * m4/longdouble.m4: Remove file.
50595         * config/srclist.txt: Don't mention longdouble.m4.
50596         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50597         * lib/float+.h: Likewise.
50598         * lib/frexp.c: Likewise.
50599         * lib/printf-args.h: Likewise.
50600         * lib/printf-args.c: Likewise.
50601         * lib/printf-frexp.c: Likewise.
50602         * lib/printf-parse.c: Likewise.
50603         * lib/vasnprintf.c: Likewise.
50604         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50605         * m4/intl.m4: Likewise.
50606         * m4/isnanl.m4: Likewise.
50607         * m4/printf.m4: Likewise.
50608         * m4/printf-frexpl.m4: Likewise.
50609         * m4/vasnprintf.m4: Likewise.
50610         * modules/allocsa (Files): Remove m4/longdouble.m4.
50611         * modules/gettext (Files): Likewise.
50612         * modules/relocatable-prog-wrapper (Files): Likewise.
50613         * modules/vasnprintf (Files): Likewise.
50614         * modules/isnanl (Files): Likewise.
50615         (Include): Simplify.
50616         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50617         (Include): Simplify.
50618         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50619         (Include): Simplify.
50620         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50621         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50622         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50623         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50624         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50625         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50626         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50627         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50628         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50629         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50630         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50631         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50632         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50633         * tests/test-isnanl.c: Likewise.
50634         * tests/test-snprintf-posix.h: Likewise.
50635         * tests/test-sprintf-posix.h: Likewise.
50636         * tests/test-vasnprintf-posix.c: Likewise.
50637         * tests/test-vasnprintf-posix2.c: Likewise.
50638         * tests/test-vasprintf-posix.c: Likewise.
50639
50640 2007-04-06  Bruno Haible  <bruno@clisp.org>
50641
50642         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50643         * lib/math_.h [__DECC]: Include the overridden include file through
50644         #include_next, outside the double-inclusion guard.
50645         * lib/stdio_.h [__DECC]: Likewise.
50646         * lib/stdlib_.h [__DECC]: Likewise.
50647         * lib/string_.h [__DECC]: Likewise.
50648         * lib/time_.h [__DECC]: Likewise.
50649         * lib/wchar_.h [__DECC]: Likewise.
50650         * lib/wctype_.h [__DECC]: Likewise.
50651         * lib/inttypes_.h [__DECC]: Likewise.
50652         Reported by Albert Chin <china@thewrittenword.com> in
50653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50654
50655 2007-04-04  Eric Blake  <ebb9@byu.net>
50656
50657         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50658         1.5.x.
50659
50660 2007-04-04  Bruno Haible  <bruno@clisp.org>
50661
50662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50663         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50664
50665 2007-04-04  Bruno Haible  <bruno@clisp.org>
50666
50667         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50668         results for "%010a" of Infinity and NaN.
50669         * tests/test-vasprintf-posix.c (test_function): Likewise.
50670         * tests/test-snprintf-posix.h (test_function): Likewise.
50671         * tests/test-sprintf-posix.h (test_function): Likewise.
50672         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50673         * tests/test-printf-posix.h (test_function): Likewise.
50674         * tests/test-fprintf-posix.out: Update.
50675         Needed for FreeBSD 6.1.
50676
50677 2007-04-04  Bruno Haible  <bruno@clisp.org>
50678
50679         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50680         directly used by the gnulib modules nor by gnulib-tool.
50681
50682 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50683
50684         * DEPENDENCIES: Give overall description of version dependency
50685         desirability.  Use more-typical names for apps.
50686         Add shell, coreutils, diffutils, grep, tar, gzip.
50687
50688 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50689
50690         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50691
50692 2007-04-04  Karl Berry  <karl@gnu.org>
50693
50694         * MODULES.html.sh (func_module): missing '.
50695
50696 2007-04-03  Bruno Haible  <bruno@clisp.org>
50697
50698         * modules/argmatch-tests (Makefile.am): New variable
50699         test_argmatch_LDADD.
50700         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50701         * modules/array-list-tests (Makefile.am): New variable
50702         test_array_list_LDADD.
50703         * modules/array-oset-tests (Makefile.am): New variable
50704         test_array_oset_LDADD.
50705         * modules/avltree-list-tests (Makefile.am): New variable
50706         test_avltree_list_LDADD.
50707         * modules/avltree-oset-tests (Makefile.am): New variable
50708         test_avltree_oset_LDADD.
50709         * modules/avltreehash-list-tests (Makefile.am): New variable
50710         test_avltreehash_list_LDADD.
50711         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50712         test_canonicalize_lgpl_LDADD.
50713         * modules/carray-list-tests (Makefile.am): New variable
50714         test_carray_list_LDADD.
50715         * modules/dirname-tests (Makefile.am): New variable
50716         test_dirname_LDADD.
50717         * modules/linked-list-tests (Makefile.am): New variable
50718         test_linked_list_LDADD.
50719         * modules/linkedhash-list-tests (Makefile.am): New variable
50720         test_linkedhash_list_LDADD.
50721         * modules/rbtree-list-tests (Makefile.am): New variable
50722         test_rbtree_list_LDADD.
50723         * modules/rbtree-oset-tests (Makefile.am): New variable
50724         test_rbtree_oset_LDADD.
50725         * modules/rbtreehash-list-tests (Makefile.am): New variable
50726         test_rbtreehash_list_LDADD.
50727         * modules/xvasprintf-tests (Makefile.am): New variable
50728         test_xvasprintf_LDADD.
50729         Reported by Eric Blake.
50730
50731 2007-04-03  Eric Blake  <ebb9@byu.net>
50732
50733         * DEPENDENCIES: Weaken m4 requirements.
50734
50735 2007-04-03  Bruno Haible  <bruno@clisp.org>
50736
50737         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50738         * modules/isnanl-tests (configure.ac): Likewise.
50739
50740 2007-04-03  Ben Pfaff  <blp@gnu.org>
50741
50742         * modules/iconv_open: Add $(srcdir)/ to source directory
50743         references in Makefile fragments that call gperf, to fix VPATH
50744         builds.
50745
50746 2007-04-03  Bruno Haible  <bruno@clisp.org>
50747
50748         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50749         * lib/ldexpl.c: Undo last change.
50750
50751 2007-04-03  Bruno Haible  <bruno@clisp.org>
50752
50753         * modules/printf-frexpl (Depends-on): Undo last change.
50754         (Files): Add m4/ldexpl.m4.
50755
50756 2007-04-03  Bruno Haible  <bruno@clisp.org>
50757
50758         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50759         * modules/isnanl (Link): New section.
50760
50761         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50762         * modules/frexp (Link): New section.
50763
50764         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50765         * modules/frexpl (Link): New section.
50766
50767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50768         * modules/ldexpl (Link): New section.
50769
50770 2007-04-03  Bruno Haible  <bruno@clisp.org>
50771
50772         * modules/TEMPLATE-EXTENDED: New file.
50773         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50774
50775 2007-04-03  Bruno Haible  <bruno@clisp.org>
50776
50777         * DEPENDENCIES: New file.
50778         Suggested by Simon Josefsson.
50779
50780 2007-04-03  Bruno Haible  <bruno@clisp.org>
50781
50782         * doc/gnulib.texi: Escape @.
50783
50784 2007-04-03  James Youngman  <jay@gnu.org>
50785         and Paul Eggert  <eggert@cs.ucla.edu>
50786
50787         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50788         birthtime on all systems that have birthtime, not just those which
50789         use st_birthtimensec rather than st_birthtim.  Putting zero in
50790         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50791         that the birth time is not available for files on an NFS mount.
50792
50793 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50794
50795         * modules/memxor: Move back from crypto/, suggested by Bruno.
50796         * modules/crypto/hmac-sha1: Fix memxor dependency.
50797
50798         * modules/crypto/gc: Moved from ../.
50799
50800 2007-04-02  Eric Blake  <ebb9@byu.net>
50801
50802         * lib/ldexpl.c (includes): Avoid libm.
50803
50804         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50805
50806 2007-04-02  Bruno Haible  <bruno@clisp.org>
50807
50808         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50809         on IRIX.
50810
50811 2007-04-02  Bruno Haible  <bruno@clisp.org>
50812
50813         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50814         x86 or x86_64 platforms running MacOS X.
50815         Reported by Ryan Schmidt <@ryandesign.com>.
50816
50817 2007-04-02  Bruno Haible  <bruno@clisp.org>
50818
50819         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50820         i386.
50821
50822 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50823
50824         * modules/crypto/arcfour: Moved from ../.
50825         * modules/crypto/arcfour-tests: Moved from ../.
50826         * modules/crypto/arctwo: Moved from ../.
50827         * modules/crypto/arctwo-tests: Moved from ../.
50828         * modules/crypto/des: Moved from ../.
50829         * modules/crypto/des-tests: Moved from ../.
50830         * modules/crypto/gc-arcfour: Moved from ../.
50831         * modules/crypto/gc-arcfour-tests: Moved from ../.
50832         * modules/crypto/gc-arctwo: Moved from ../.
50833         * modules/crypto/gc-arctwo-tests: Moved from ../.
50834         * modules/crypto/gc-des: Moved from ../.
50835         * modules/crypto/gc-des-tests: Moved from ../.
50836         * modules/crypto/gc-hmac-md5: Moved from ../.
50837         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50838         * modules/crypto/gc-hmac-sha1: Moved from ../.
50839         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50840         * modules/crypto/gc-md2: Moved from ../.
50841         * modules/crypto/gc-md2-tests: Moved from ../.
50842         * modules/crypto/gc-md4: Moved from ../.
50843         * modules/crypto/gc-md4-tests: Moved from ../.
50844         * modules/crypto/gc-md5: Moved from ../.
50845         * modules/crypto/gc-md5-tests: Moved from ../.
50846         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50847         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50848         * modules/crypto/gc-random: Moved from ../.
50849         * modules/crypto/gc-rijndael: Moved from ../.
50850         * modules/crypto/gc-rijndael-tests: Moved from ../.
50851         * modules/crypto/gc-sha1: Moved from ../.
50852         * modules/crypto/gc-sha1-tests: Moved from ../.
50853         * modules/crypto/gc-tests: Moved from ../.
50854         * modules/crypto/hmac-md5: Moved from ../.
50855         * modules/crypto/hmac-md5-tests: Moved from ../.
50856         * modules/crypto/hmac-sha1: Moved from ../.
50857         * modules/crypto/hmac-sha1-tests: Moved from ../.
50858         * modules/crypto/md2: Moved from ../.
50859         * modules/crypto/md2-tests: Moved from ../.
50860         * modules/crypto/md4: Moved from ../.
50861         * modules/crypto/md4-tests: Moved from ../.
50862         * modules/crypto/md5: Moved from ../.
50863         * modules/crypto/md5-tests: Moved from ../.
50864         * modules/crypto/memxor: Moved from ../.
50865         * modules/crypto/rijndael: Moved from ../.
50866         * modules/crypto/rijndael-tests: Moved from ../.
50867         * modules/crypto/sha1: Moved from ../.
50868
50869 2007-03-30  James Youngman  <jay@gnu.org>
50870
50871         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50872         rename() to change the ctime of a file (because ctime is unaffected
50873         by rename on jfs2 on AIX 5.1).
50874         (main): Start by doing cleanup, in case a previous run failed leaving
50875         test files behind.
50876
50877 2007-03-31  Bruno Haible  <bruno@clisp.org>
50878
50879         Support old proprietary implementations of iconv.
50880         * modules/iconv_open: New file.
50881         * lib/iconv_.h: New file.
50882         * m4/iconv_h.m4: New file.
50883         * lib/iconv_open.c: New file.
50884         * lib/iconv_open-aix.gperf: New file.
50885         * lib/iconv_open-hpux.gperf: New file.
50886         * lib/iconv_open-irix.gperf: New file.
50887         * lib/iconv_open-osf.gperf: New file.
50888         * m4/iconv_open.m4: New file.
50889         * modules/linebreak (Depends-on): Add iconv_open.
50890         * modules/striconv (Depends-on): Likewise.
50891         * modules/striconveh (Depends-on): Likewise.
50892         * modules/unicodeio (Depends-on): Likewise.
50893         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50894         (iconv_t)(-1).
50895         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50896         conversion if cd is (iconv_t)(-1).
50897         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50898         is not possible.
50899
50900 2007-03-31  Bruno Haible  <bruno@clisp.org>
50901
50902         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50903         work on Solaris either. Protect also second use of "autodetect_jp".
50904
50905 2007-03-31  Bruno Haible  <bruno@clisp.org>
50906
50907         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50908         the function is not present.
50909
50910 2007-03-31  Bruno Haible  <bruno@clisp.org>
50911
50912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50913         the function is not present.
50914
50915 2007-03-31  Bruno Haible  <bruno@clisp.org>
50916
50917         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50918         a bug in HP-UX iconv_open().
50919
50920 2007-03-31  Bruno Haible  <bruno@clisp.org>
50921
50922         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50923         (Mathematics <math.h>): New section, add fpieee.
50924         (Input/output <stdio.h>): Add fseterr.
50925         (Mathematics <math.h>): New section, add printf-frexp.
50926         (Container data structures): Add sublist.
50927         (Core language properties): Add fpucw, inline.
50928         (Functions for greatest-width integer types <inttypes.h>): Add
50929         imaxabs, imaxdiv, inttypes.
50930         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50931         isnanl-nolibm, ldexp.
50932         (Mathematics <math.h>): New section, add printf-frexpl.
50933         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50934         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50935         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50936         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50937         (Unicode string functions): Add unistr/u*-mbtoucr.
50938         (Java): Add javacomp-script, javaexec-script.
50939         (C#): Add csharpcomp-script, csharpexec-script.
50940         (Support for building libraries and executables): Add havelib,
50941         relocatable-*.
50942         (Support for maintaining and releasing projects): Renamed from
50943         'Support for maintaining and release projects'. Add announce-gen.
50944
50945 2007-03-31  Bruno Haible  <bruno@clisp.org>
50946
50947         * README: Talk primarily about git.
50948         (git and CVS): Renamed from CVS.
50949         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50950         gnulib is available through git.
50951         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50952
50953 2007-03-30  Bruno Haible  <bruno@clisp.org>
50954
50955         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50956         * lib/poll_.h: Likewise.
50957         * lib/stat_.h: Likewise.
50958         * lib/sys_time_.h: Likewise.
50959         * lib/sysexit_.h: Likewise.
50960         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50961         * lib/stdbool_.h: Likewise.
50962         * lib/byteswap_.h: Add double-inclusion guard.
50963
50964 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50965
50966         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50967
50968 2007-03-30  Karl Berry  <karl@gnu.org>
50969
50970         * config/srclist-update: double space after USA in the license
50971         substitution, since that's how it's usually (?) written.
50972
50973 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50976         reported by Bruno Haible.
50977
50978 2007-03-29  Bruno Haible  <bruno@clisp.org>
50979
50980         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50981         a bug in AIX iconv().
50982
50983 2007-03-29  Bruno Haible  <bruno@clisp.org>
50984
50985         * modules/ldexpl-tests: New file.
50986         * tests/test-ldexpl.c: New file.
50987
50988 2007-03-29  Bruno Haible  <bruno@clisp.org>
50989
50990         * lib/ldexpl.c: Include fpucw.h.
50991         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50992         multiplication.
50993         * modules/ldexpl (Depends-on): Add fpucw.
50994
50995 2007-03-29  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/ldexpl: New file.
50998         * m4/ldexpl.m4: New file.
50999         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51000         set.
51001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51002         REPLACE_LDEXPL.
51003         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51004         REPLACE_LDEXPL.
51005         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51006         gl_FUNC_LDEXPL_WORKS.
51007         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51008         * modules/mathl (Files): Remove lib/ldexpl.c.
51009         (Depends-on): Add ldexpl.
51010
51011 2007-03-29  Bruno Haible  <bruno@clisp.org>
51012
51013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51014
51015 2007-03-29  Bruno Haible  <bruno@clisp.org>
51016
51017         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51018         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51019         and possibly also HP-UX.
51020         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51021         work on AIX, IRIX, HP-UX, OSF/1.
51022         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51023         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51024         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51025         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51026         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51027         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51028
51029 2007-03-29  Bruno Haible  <bruno@clisp.org>
51030
51031         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51032
51033 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51034
51035         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51036         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51037
51038 2007-03-29  Eric Blake  <ebb9@byu.net>
51039
51040         * lib/acl-internal.h: Remove redundant include.
51041         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51042         Cygwin when a file is locked.
51043
51044 2007-03-29  Bruno Haible  <bruno@clisp.org>
51045
51046         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51047         file.
51048         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51049
51050 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51051
51052         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51053         try to remove a parent directory if the child couldn't be removed
51054         (except for the first rmdir, which could fail because the child
51055         doesn't exist).  Problem reported by Jeff Blaine in
51056         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51057
51058 2007-03-28  Bruno Haible  <bruno@clisp.org>
51059
51060         * lib/striconveh.c (utf8conv_carefully): New function.
51061         (mem_cd_iconveh_internal): Invoke it.
51062
51063 2007-03-28  Bruno Haible  <bruno@clisp.org>
51064
51065         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51066         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51067         input.
51068         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51069         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51070         unistr/u8-uctomb.
51071
51072 2007-03-28  Bruno Haible  <bruno@clisp.org>
51073
51074         * modules/unistr/u8-mbtoucr: New file.
51075         * lib/unistr/u8-mbtoucr.c: New file.
51076         * modules/unistr/u16-mbtoucr: New file.
51077         * lib/unistr/u16-mbtoucr.c: New file.
51078         * modules/unistr/u16-mbtoucr: New file.
51079         * lib/unistr/u16-mbtoucr.c: New file.
51080         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51081
51082 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51083             Bruno Haible  <bruno@clisp.org>
51084
51085         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51086         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51087         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51088
51089         * m4/stdio_h.m4: Add stubs for vasprintf too.
51090
51091         * modules/stdio: Support vasprintf in sed command.
51092
51093         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51094         vasprintf.h.  Add stdio module indicator.
51095
51096         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51097         vasprintf.h.
51098
51099         * lib/vasprintf.h: File removed.
51100
51101         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51102         * lib/vasprintf.c: Ditto.
51103         * lib/xvasprintf.c: Ditto.
51104         * tests/test-vasprintf-posix.c: Ditto.
51105         * tests/test-vasprintf.c: Ditto.
51106
51107 2007-03-27  Bruno Haible  <bruno@clisp.org>
51108
51109         Make vasnprintf multithread-safe.
51110         * lib/vasnprintf.c (decimal_point_char): New function.
51111         (VASNPRINTF): Use it.
51112         Suggested by Simon Josefsson.
51113
51114 2007-03-27  Eric Blake  <ebb9@byu.net>
51115
51116         Support sub-second birthtime on cygwin.
51117         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51118         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51119         (get_stat_birthtime): Also work with st_birthtim.
51120
51121 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51122
51123         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51124         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51125         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51126         (get_stat_birthtime_ns): Simplify compile-time tests.
51127         (get_stat_birthtime): Change the API to look like
51128         get_stat_mtime etc., except return a negative tv_nsec on error.
51129         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51130         Don't check for "spare" fields.
51131         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51132         or for struct stat.st_birthtime, as these tests aren't used.
51133         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51134
51135 2007-03-27  Bruno Haible  <bruno@clisp.org>
51136
51137         * lib/stat-time.h: Include <sys/stat.h>.
51138
51139 2007-03-27  James Youngman  <jay@gnu.org>
51140
51141         * lib/stat-time.h (get_stat_birthtime): New function for
51142           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51143         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51144           and its variants.
51145         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51146         * modules/stat-time-test: New file.
51147         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51148
51149 2007-03-26  Bruno Haible  <bruno@clisp.org>
51150
51151         Better support of signalling NaNs.
51152         * lib/atanl.c: Include isnanl.h.
51153         (atanl): Perform test for NaN at the beginning of the function and
51154         through a call to isnanl.
51155         * lib/cosl.c: Include isnanl.h.
51156         (cosl): Perform test for NaN at the beginning of the function and
51157         through a call to isnanl.
51158         * lib/ldexpl.c: Include isnanl.h.
51159         (ldexpl): Perform test for NaN through a call to isnanl.
51160         * lib/logl.c: Include isnanl.h.
51161         (logl): Perform test for NaN at the beginning of the function and
51162         through a call to isnanl.
51163         * lib/sinl.c: Include isnanl.h.
51164         (sinl): Perform test for NaN at the beginning of the function and
51165         through a call to isnanl.
51166         * lib/sqrtl.c: Include isnanl.h.
51167         (sqrtl): Perform test for NaN at the beginning of the function and
51168         through a call to isnanl.
51169         * lib/tanl.c: Include isnanl.h.
51170         (tanl): Perform test for NaN at the beginning of the function and
51171         through a call to isnanl.
51172         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51173         * modules/mathl (Depends-on): Add isnanl.
51174
51175 2007-03-26  Eric Blake  <ebb9@byu.net>
51176
51177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51178         regression in logic sense of previous patch.
51179
51180 2007-03-26  Bruno Haible  <bruno@clisp.org>
51181
51182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51183         unportable shell command "if ! ...".
51184         Reported by Ralf Wildenhues.
51185
51186 2007-03-25  Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51189         <sysexits.h> file, and only add EX_CONFIG.
51190         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51191         absolute file name and whether it is sufficient. Substitute also
51192         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51193         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51194         ABSOLUTE_SYSEXITS_H into sysexits.h.
51195
51196 2007-03-25  Bruno Haible  <bruno@clisp.org>
51197
51198         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51199         hints is NULL.
51200
51201 2007-03-25  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51204         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51205
51206 2007-03-25  Bruno Haible  <bruno@clisp.org>
51207
51208         * lib/vasnprintf.c: Include langinfo.h.
51209         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51210         multithread-safe.
51211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51220         Reported by Simon Josefsson.
51221
51222 2007-03-25  Bruno Haible  <bruno@clisp.org>
51223
51224         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51225         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51226         * modules/vasnprintf (Depends-on): Add stdint.
51227
51228 2007-03-25  Bruno Haible  <bruno@clisp.org>
51229
51230         * modules/fpieee: New file.
51231         * m4/fpieee.m4: New file.
51232         * modules/isnan-nolibm (Depends-on): Add fpieee.
51233         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51234         * modules/isnanl (Depends-on): Add fpieee.
51235
51236 2007-03-25  Bruno Haible  <bruno@clisp.org>
51237
51238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51239
51240 2007-03-25  Bruno Haible  <bruno@clisp.org>
51241
51242         Avoid test failures on IRIX 6.5.
51243         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51244         (main): Use it.
51245         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51246         macros.
51247         (main): Use them.
51248
51249 2007-03-25  Bruno Haible  <bruno@clisp.org>
51250
51251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51252         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51253         exists but doesn't work.
51254         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51255         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51257         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51258         math.h.
51259
51260 2007-03-25  Bruno Haible  <bruno@clisp.org>
51261
51262         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51263         returns inf. Needed on IRIX 6.5.
51264
51265 2007-03-25  Bruno Haible  <bruno@clisp.org>
51266
51267         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51268         (main): Use isnanl instead of x != x idiom.
51269         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51270
51271         * tests/test-frexp.c: Include isnan.h.
51272         (main): Use isnan instead of x != x idiom.
51273         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51274
51275 2007-03-25  Bruno Haible  <bruno@clisp.org>
51276
51277         * tests/test-frexp.c (NaN): New function/macro.
51278         (main): Use it instead of 0.0 / 0.0.
51279         * tests/test-isnan.c (NaN): New function/macro.
51280         (main): Use it instead of 0.0 / 0.0.
51281         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51282         (test_function): Use it instead of 0.0 / 0.0.
51283         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51284         (test_function): Use it instead of 0.0 / 0.0.
51285         * tests/test-snprintf-posix.h (NaN): New function/macro.
51286         (test_function): Use it instead of 0.0 / 0.0.
51287         * tests/test-sprintf-posix.h (NaN): New function/macro.
51288         (test_function): Use it instead of 0.0 / 0.0.
51289         * tests/test-fprintf-posix.h (NaN): New function/macro.
51290         (test_function): Use it instead of 0.0 / 0.0.
51291         * tests/test-printf-posix.h (NaN): New function/macro.
51292         (test_function): Use it instead of 0.0 / 0.0.
51293
51294         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51295
51296 2007-03-25  Bruno Haible  <bruno@clisp.org>
51297
51298         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51299
51300 2007-03-25  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/regexec.c (merge_state_with_log): Make static.
51303
51304 2007-03-25  Bruno Haible  <bruno@clisp.org>
51305
51306         * lib/trigl.c (kernel_rem_pio2): Make static.
51307
51308 2007-03-25  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/sincosl.c (sincosl_table): Make static.
51311
51312 2007-03-25  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51315         if the compiler does not support C99.
51316
51317 2007-03-25  Bruno Haible  <bruno@clisp.org>
51318
51319         * modules/time (Makefile.am): Ensure all rule action lines start with a
51320         tab.
51321
51322 2007-03-24  Bruno Haible  <bruno@clisp.org>
51323
51324         * modules/tsearch-tests: New file.
51325         * tests/test-tsearch.sh: New file.
51326         * tests/test-tsearch.c: New file, mostly copied from glibc.
51327
51328         * modules/search-tests: New file.
51329         * tests/test-search.c: New file.
51330
51331         * modules/search: New file.
51332         * lib/search_.h: New file, incorporating lib/tsearch.h.
51333         * m4/search_h.m4: New file.
51334         * lib/tsearch.h: Remove file.
51335         * lib/tsearch.c: Include search.h instead of tsearch.h.
51336         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51337         HAVE_TSEARCH.
51338         * modules/tsearch (Files): Remove lib/tsearch.h.
51339         (Depends-on): Add search.
51340         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51341         (Include): Change tsearch.h into search.h.
51342
51343 2007-03-24  Bruno Haible  <bruno@clisp.org>
51344
51345         * modules/fpucw: New file.
51346         * lib/fpucw.h: New file.
51347         * lib/frexp.c: Include fpucw.h.
51348         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51349         (FUNC): Use them.
51350         * lib/printf-frexp.c: Include fpucw.h.
51351         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51352         (FUNC): Use them.
51353         * lib/vasnprintf.c: Include fpucw.h.
51354         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51355         'long double' calculations.
51356         * tests/test-frexpl.c: Include fpucw.h.
51357         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51358         * tests/test-printf-frexpl.c: Include fpucw.h.
51359         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51360         * modules/frexpl (Depends-on): Add fpucw.
51361         * modules/printf-frexpl (Depends-on): Likewise.
51362         * modules/fprintf-posix (Depends-on): Likewise.
51363         * modules/snprintf-posix (Depends-on): Likewise.
51364         * modules/sprintf-posix (Depends-on): Likewise.
51365         * modules/vasnprintf-posix (Depends-on): Likewise.
51366         * modules/vasprintf-posix (Depends-on): Likewise.
51367         * modules/vfprintf-posix (Depends-on): Likewise.
51368         * modules/vsnprintf-posix (Depends-on): Likewise.
51369         * modules/vsprintf-posix (Depends-on): Likewise.
51370         * modules/frexpl-tests (Depends-on): Likewise.
51371         * modules/printf-frexpl-tests (Depends-on): Likewise.
51372
51373 2007-03-24  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/float+.h: New file.
51376         * lib/isnan.c: Include float+.h.
51377         (SIZE): New macro.
51378         (FUNC): Compare only SIZE bytes of the value.
51379         * lib/vasnprintf.c: Include float+.h.
51380         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51381         SIZEOF_LDBL or SIZEOF_DBL bytes.
51382         * modules/isnan-nolibm (Files): Add lib/float+.h.
51383         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51384         * modules/isnanl (Files): Add lib/float+.h.
51385         * modules/vasnprintf (Files): Add lib/float+.h.
51386
51387 2007-03-24  Bruno Haible  <bruno@clisp.org>
51388
51389         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51390         include isnanl-nolibm.h.
51391
51392 2007-03-24  Bruno Haible  <bruno@clisp.org>
51393
51394         * tests/test-read-file.c (main): Don't produce spurious output for
51395         expected situations. Make the test fail if it encountered unexpected
51396         results.
51397
51398 2007-03-24  Bruno Haible  <bruno@clisp.org>
51399
51400         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51401         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51402
51403 2007-03-24  Bruno Haible  <bruno@clisp.org>
51404
51405         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51406
51407 2007-03-24  Bruno Haible  <bruno@clisp.org>
51408
51409         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51410         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51411
51412         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51413         * modules/utf8-ucs4: Turn into a symbolic link to module
51414         unistr/u8-mbtouc.
51415
51416         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51417         utf8-ucs4-unsafe.
51418         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51419         unistr/u8-mbtouc-unsafe.
51420
51421         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51422         * modules/utf16-ucs4: Turn into a symbolic link to module
51423         unistr/u16-mbtouc.
51424
51425         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51426         utf16-ucs4-unsafe.
51427         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51428         unistr/u16-mbtouc-unsafe.
51429
51430         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51431         * modules/ucs4-utf8: Turn into a symbolic link to module
51432         unistr/u8-ubtomb.
51433
51434         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51435         * modules/ucs4-utf16: Turn into a symbolic link to module
51436         unistr/u16-ubtomb.
51437
51438 2007-03-24  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51441         Enable the function only if HAVE_INLINE.
51442         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51443         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51444         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51445         Enable the function only if HAVE_INLINE.
51446         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51447         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51448         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51449         Enable the function only if HAVE_INLINE.
51450         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51451         Enable the function only if HAVE_INLINE.
51452         * modules/utf8-ucs4: Update.
51453         * modules/utf8-ucs4-unsafe: Update.
51454         * modules/utf16-ucs4: Update.
51455         * modules/utf16-ucs4-unsafe: Update.
51456         * modules/ucs4-utf8: Update.
51457         * modules/ucs4-utf16: Update.
51458
51459 2007-03-24  Bruno Haible  <bruno@clisp.org>
51460
51461         * lib/utf8-ucs4.h: Remove file.
51462         * lib/utf8-ucs4-unsafe.h: Remove file.
51463         * lib/utf16-ucs4.h: Remove file.
51464         * lib/utf16-ucs4-unsafe.h: Remove file.
51465         * lib/ucs4-utf8.h: Remove file.
51466         * lib/ucs4-utf16.h: Remove file.
51467         * lib/unistr.h: Include their previous contents.
51468         * m4/utf-ucs4.m4: Remove file.
51469         * m4/ucs4-utf.m4: Remove file.
51470         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51471         (Depends-on): Add unistr/base.
51472         (configure.ac): Remove gl_UTF_UCS4.
51473         (Makefile.am): Update.
51474         (Include): Change to unistr.h.
51475         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51476         (Depends-on): Add unistr/base.
51477         (configure.ac): Remove gl_UTF_UCS4.
51478         (Makefile.am): Update.
51479         (Include): Change to unistr.h.
51480         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51481         (Depends-on): Add unistr/base.
51482         (configure.ac): Remove gl_UTF_UCS4.
51483         (Makefile.am): Update.
51484         (Include): Change to unistr.h.
51485         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51486         (Depends-on): Add unistr/base.
51487         (configure.ac): Remove gl_UTF_UCS4.
51488         (Makefile.am): Update.
51489         (Include): Change to unistr.h.
51490         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51491         (Depends-on): Add unistr/base.
51492         (configure.ac): Remove gl_UCS4_UTF.
51493         (Makefile.am): Update.
51494         (Include): Change to unistr.h.
51495         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51496         (Depends-on): Add unistr/base.
51497         (configure.ac): Remove gl_UCS4_UTF.
51498         (Makefile.am): Update.
51499         (Include): Change to unistr.h.
51500         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51501         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51502         utf8-ucs4-unsafe.h.
51503         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51504         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51505         utf16-ucs4-unsafe.h.
51506         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51507         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51508         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51509         * lib/unistr/u8-strchr.c: Likewise.
51510         * lib/unistr/u8-strrchr.c: Likewise.
51511         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51512         * lib/unistr/u16-strchr.c: Likewise.
51513         * lib/unistr/u16-strrchr.c: Likewise.
51514         * lib/striconveh.c: Update.
51515         * lib/linebreak.c: Update.
51516
51517 2007-03-24  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51520         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51521
51522 2007-03-22  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51525
51526 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * MODULES.html.sh (File system functions): New module write-any-file.
51529         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51530         * m4/write-any-file.m4: New files.
51531
51532 2007-03-23  Eric Blake  <ebb9@byu.net>
51533
51534         * gnulib-tool: Rearrange space-tab sequences, since some editors
51535         like to eat them.
51536
51537 2007-03-23  Eric Blake  <ebb9@byu.net>
51538
51539         * lib/version-etc.c (version_etc_va): Update license wording to
51540         be more concise.  Recommended by Richard Stallman.
51541
51542 2007-03-22  Bruno Haible  <bruno@clisp.org>
51543
51544         * lib/poll.c (MSG_PEEK): New fallback definition.
51545
51546 2007-03-22  Bruno Haible  <bruno@clisp.org>
51547
51548         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51549         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51550         (main): Update.
51551         Fixes a compilation error on BeOS.
51552
51553 2007-03-22  Bruno Haible  <bruno@clisp.org>
51554
51555         * modules/frexpl-tests: New file.
51556         * tests/test-frexpl.c: New file.
51557
51558         * modules/frexpl: New file.
51559         * m4/frexpl.m4: New file.
51560         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51561         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51563         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51564         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51565         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51566
51567 2007-03-22  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/frexpl.c: Share code with lib/frexp.c.
51570         * modules/mathl (Files): Add lib/frexp.c.
51571         (Depends-on): Add isnanl-nolibm.
51572
51573 2007-03-22  Bruno Haible  <bruno@clisp.org>
51574
51575         * modules/printf-frexp (Files): Add m4/frexp.m4.
51576         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51577         only if the found frexp function actually works.
51578
51579 2007-03-22  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/frexp.c: Remove older implementation that uses divisions.
51582
51583 2007-03-21  Bruno Haible  <bruno@clisp.org>
51584
51585         * modules/frexp-tests: New file.
51586         * tests/test-frexp.c: New file.
51587
51588         * modules/frexp: New file.
51589         * lib/frexp.c: New file.
51590         * m4/frexp.m4: New file.
51591         * lib/math_.h (frexp): New declaration.
51592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51593         REPLACE_FREXP.
51594         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51595
51596 2007-03-21  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/isnanl-tests: New file.
51599         * tests/test-isnanl.c: New file.
51600
51601         * modules/isnanl: New file.
51602         * lib/isnanl.h: New file.
51603         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51604         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51605         gl_FUNC_ISNANL_WORKS.
51606         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51607         New macros.
51608
51609 2007-03-21  Bruno Haible  <bruno@clisp.org>
51610
51611         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51612         lib/isnanl.h.
51613         (Include): Update.
51614         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51615         * lib/vasnprintf.c: Update.
51616         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51617         tests/test-isnanl.h, remove tests/test-isnanl.c.
51618         (Makefile.am): Update.
51619         * tests/test-isnanl-nolibm.c: New file.
51620         * tests/test-isnanl.h: New file.
51621         * tests/test-isnanl.c: Remove file.
51622
51623 2007-03-21  Jim Meyering  <jim@meyering.net>
51624
51625         When trying to open ".", treat ESTALE like EACCES.
51626         * lib/savewd.c (savewd_save): Resort to forking not just upon
51627         failure with EACCES, but also when errno is ESTALE.
51628
51629 2007-03-20  Bruno Haible  <bruno@clisp.org>
51630
51631         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51632         Needed on AIX 5.1. Reported by Matthew Woehlke.
51633
51634 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51635
51636         Suggestions by Bruno Haible:
51637         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51638         our own.
51639         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51640         * modules/acl (Depends-on): Add gettext.
51641
51642 2007-03-19  Bruno Haible  <bruno@clisp.org>
51643
51644         * modules/iconvme: Remove file.
51645         * lib/iconvme.h: Remove file.
51646         * lib/iconvme.c: Remove file.
51647         * m4/iconvme.m4: Remove file.
51648
51649 2007-03-19  Bruno Haible  <bruno@clisp.org>
51650
51651         * doc/relocatable-maint.texi: Break long shell script line.
51652         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51653
51654 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51655
51656         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51657         handle file_has_acl.
51658         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51659         * lib/acl.c: Move header inclusions and related macro defns into
51660         lib/acl-internal.h.
51661         (S_ISLNK): Remove defn, since that's now done for us.
51662         (file_has_acl): Move to lib/file-has-acl.c.
51663         Call acl_trivial if available.  This is the crucial part of the fix.
51664         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51665         shared within the library.  Rewrite a bit, partly to make it compatible
51666         with the GNU coding style.
51667         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51668         Remove unnecessary double-quotes.
51669         Don't test for acl_to_text; the build will catch that.
51670         Replace acl_entries if it doesn't exist and it is needed.
51671         Check for -lsec and acl_trivial (as used on Solaris 10).
51672         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51673         lib/file-has-acl.c.
51674         (Depends-on): Add sys_stat, for S_ISLNK.
51675
51676 2007-03-19  Ben Pfaff  <blp@gnu.org>
51677
51678         * doc/gnulib.texi: Fix typos.
51679         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51680
51681 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51682
51683         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51684         If size is zero here, buf must be zero.
51685
51686 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51687
51688         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51689         <bruno@clisp.org>.
51690
51691 2007-03-18  Bruno Haible  <bruno@clisp.org>
51692
51693         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51694         Suggested by Eric Blake.
51695
51696 2007-03-18  Ben Pfaff  <blp@gnu.org>
51697
51698         * doc/relocatable.texi: Recommend using as prefix a directory
51699         that does not exist and will never be created.  Based on
51700         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51701         and others.
51702
51703 2007-03-17  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/fchownat.c: Include lchown.h.
51706
51707 2007-03-17  Bruno Haible  <bruno@clisp.org>
51708
51709         Fix endless loop when the given allocated size was > INT_MAX.
51710         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51711         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51712         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51713         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51714         * lib/sprintf.c (sprintf): Likewise.
51715
51716 2007-03-17  Bruno Haible  <bruno@clisp.org>
51717
51718         * tests/test-argp-2.sh (func_compare): Output a context diff.
51719
51720 2007-03-17  Bruno Haible  <bruno@clisp.org>
51721
51722         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51723         locale's decimal-point character.
51724
51725 2007-03-17  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51728         before comparing it. Needed because on some platforms (e.g. x86) a
51729         'long double' occupies less bytes than sizeof (long double).
51730
51731 2007-03-17  Bruno Haible  <bruno@clisp.org>
51732
51733         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51734         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51735         * tests/test-getaddrinfo.c (simple): Likewise.
51736         * tests/test-read-file.c (main): Likewise.
51737
51738 2007-03-17  Bruno Haible  <bruno@clisp.org>
51739
51740         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51741
51742 2007-03-17  Bruno Haible  <bruno@clisp.org>
51743
51744         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51745         unused variable.
51746
51747 2007-03-17  Bruno Haible  <bruno@clisp.org>
51748
51749         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51750         * tests/test-c-strncasecmp.c: Likewise.
51751
51752 2007-03-17  Bruno Haible  <bruno@clisp.org>
51753
51754         * modules/stdlib (Depends-on): Add unistd.
51755         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51756         Needed for MacOS X 10.3.
51757
51758 2007-03-17  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51761
51762 2007-03-17  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51765
51766 2007-03-17  Bruno Haible  <bruno@clisp.org>
51767
51768         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51769         to reflect files copied from gnulib (with or without modifications).
51770         Suggested by Jim Meyering.
51771
51772 2007-03-17  Eric Blake  <ebb9@byu.net>
51773
51774         * NEWS: Document stdlib change from 2007-02-18.
51775
51776 2007-03-17  Jim Meyering  <jim@meyering.net>
51777
51778         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51779         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51780         someone uses a name containing shell meta-characters.
51781         Reported by Alfred M. Szmidt.
51782
51783         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51784
51785 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51786
51787         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51788         and copy gettext configuration files only if configure.ac contains
51789         a use of AM_GNU_GETTEXT_VERSION.
51790
51791 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51792
51793         * build-aux/bootstrap (gnulib_name): New variable.
51794         (gnulib_tool_options): Use it.
51795
51796 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51797
51798         * tests/test-des.c: Use new namespace.
51799
51800 2007-03-15  Bruno Haible  <bruno@clisp.org>
51801
51802         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51803         Reported by James Youngman <jay@gnu.org>.
51804
51805 2007-03-15  Bruno Haible  <bruno@clisp.org>
51806
51807         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51808         declared prototype. Needed with cc on OSF/1 5.1.
51809
51810 2007-03-15  Bruno Haible  <bruno@clisp.org>
51811
51812         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51813         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51814         (struct gl_list_implementation): Add dispose_fn argument to the
51815         'create_empty', 'create' methods.
51816         (struct gl_list_impl_base): Add field 'dispose_fn'.
51817         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51818         argument.
51819         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51820         dispose_fn argument.
51821         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51822         dispose_fn on the dropped values.
51823         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51824         dispose_fn argument.
51825         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51826         dropped values.
51827         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51828         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51829         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51830         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51831         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51832         argument.
51833         (gl_tree_list_free): Call dispose_fn on the dropped values.
51834         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51835         the dropped values.
51836         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51837         Add dispose_fn argument.
51838         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51839         Call dispose_fn on the dropped values.
51840         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51841         Add dispose_fn argument.
51842         (gl_sublist_create): Initialize the 'dispose_fn' field.
51843         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51844         * tests/test-array_list.c (main): Update.
51845         * tests/test-carray_list.c (main): Update.
51846         * tests/test-avltree_list.c (main): Update.
51847         * tests/test-rbtree_list.c (main): Update.
51848         * tests/test-avltreehash_list.c (main): Update.
51849         * tests/test-rbtreehash_list.c (main): Update.
51850         * tests/test-linked_list.c (main): Update.
51851         * tests/test-linkedhash_list.c (main): Update.
51852         * tests/test-array_oset.c (main): Update.
51853
51854 2007-03-15  Bruno Haible  <bruno@clisp.org>
51855
51856         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51857         (gl_oset_create_empty): Add dispose_fn argument.
51858         (struct gl_oset_implementation): Add dispose_fn argument to
51859         'create_empty' method.
51860         (struct gl_oset_impl_base): Add dispose_fn field.
51861         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51862         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51863         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51864         values.
51865         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51866         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51867         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51868         dropped value.
51869         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51870         dropped value.
51871         * tests/test-array_oset.c (main): Update.
51872         * tests/test-avltree_oset.c (main): Update.
51873         * tests/test-rbtree_oset.c (main): Update.
51874         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51875
51876 2007-03-13  Bruno Haible  <bruno@clisp.org>
51877
51878         * tests/test-stdbool.c (i): Update after last patch.
51879
51880 2007-03-12  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51883         the iswprint macro. Needed on Solaris 2.5.1.
51884
51885 2007-03-12  Bruno Haible  <bruno@clisp.org>
51886
51887         * tests/test-printf-frexp.c (main): Declare x as volatile.
51888
51889 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51890
51891         * doc/gnulib.texi (Build robot for gnulib): New section.
51892
51893 2007-03-12  Jim Meyering  <jim@meyering.net>
51894
51895         * build-aux/bootstrap: New file.
51896         * build-aux/bootstrap.conf: New file, from coreutils.
51897
51898 2007-03-11  Bruno Haible  <bruno@clisp.org>
51899
51900         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51901
51902 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51903
51904         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51905         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51906         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51907
51908 2007-03-11  Bruno Haible  <bruno@clisp.org>
51909
51910         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51911         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51912
51913 2007-03-11  Bruno Haible  <bruno@clisp.org>
51914
51915         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51916         formula. Needed for SunPRO C 5.0.
51917
51918 2007-03-11  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/long-options (Depends-on): Add getopt.
51921
51922 2007-03-11  Bruno Haible  <bruno@clisp.org>
51923
51924         * modules/modechange (Depends-on): Add stdbool.
51925
51926 2007-03-11  Bruno Haible  <bruno@clisp.org>
51927
51928         * modules/i-ring (Depends-on): Add stdbool.
51929
51930 2007-03-11  Bruno Haible  <bruno@clisp.org>
51931
51932         * modules/gc-des (Depends-on): Add stdbool.
51933
51934 2007-03-11  Bruno Haible  <bruno@clisp.org>
51935
51936         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51937
51938 2007-03-11  Bruno Haible  <bruno@clisp.org>
51939
51940         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51941
51942 2007-03-11  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51945
51946 2007-03-11  Bruno Haible  <bruno@clisp.org>
51947
51948         * lib/vasnprintf.c (sprintf): Undefine.
51949
51950 2007-03-11  Bruno Haible  <bruno@clisp.org>
51951
51952         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51953         initializers in SunPRO C and Compaq C compilers.
51954
51955 2007-03-11  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51958         decrementing code ANSI C compliant.
51959
51960 2007-03-11  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51963         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51964
51965 2007-03-11  Bruno Haible  <bruno@clisp.org>
51966
51967         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51968         <stdbool.h> substitute doesn't pass.
51969
51970 2007-03-11  Bruno Haible  <bruno@clisp.org>
51971
51972         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51973
51974 2007-03-11  Bruno Haible  <bruno@clisp.org>
51975
51976         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51977         script, for submission to autobuild.josefsson.org.
51978
51979 2007-03-10  Bruno Haible  <bruno@clisp.org>
51980
51981         * modules/canonicalize-lgpl-tests: New file.
51982         * tests/test-canonicalize-lgpl.sh: New file.
51983         * tests/test-canonicalize-lgpl.c: New file.
51984
51985         * modules/c-strcase-tests: New file.
51986         * tests/test-c-strcase.sh: New file.
51987         * tests/test-c-strcasecmp.c: New file.
51988         * tests/test-c-strncasecmp.c: New file.
51989
51990         * modules/atexit-tests: New file.
51991         * tests/test-atexit.sh: New file.
51992         * tests/test-atexit.c: New file.
51993
51994 2007-03-10  Bruno Haible  <bruno@clisp.org>
51995
51996         * tests/test-binary-io.sh: Use temporary filenames that are not so
51997         likely to clash with those of other tests (in a parallel make).
51998         * tests/test-binary-io.c: Likewise.
51999
52000 2007-03-10  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52003         fallback; use #error instead.
52004         Suggested by Simon Josefsson.
52005
52006 2007-03-10  Bruno Haible  <bruno@clisp.org>
52007
52008         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52009         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52010         first and the last.
52011
52012 2007-03-10  Bruno Haible  <bruno@clisp.org>
52013
52014         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52015
52016 2007-03-10  Bruno Haible  <bruno@clisp.org>
52017
52018         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52019         "make distcheck".
52020         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52021         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52022         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52023
52024 2007-03-10  Bruno Haible  <bruno@clisp.org>
52025
52026         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52027         variable.
52028         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52029         variable.
52030
52031 2007-03-09  Eric Blake  <ebb9@byu.net>
52032         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52033
52034         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52035         types are not being provided by gnulib.
52036         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52037         types are supported.
52038
52039 2007-03-10  Bruno Haible  <bruno@clisp.org>
52040
52041         * lib/stdio_.h (__attribute__): New macro.
52042         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52043         vsprintf): Specify __attribute__ __format__ for GCC.
52044         Suggested by Eric Blake.
52045
52046 2007-03-09  Bruno Haible  <bruno@clisp.org>
52047
52048         * modules/printf-posix-tests: New file.
52049         * tests/test-printf-posix.sh: New file.
52050         * tests/test-printf-posix.c: New file.
52051
52052         * modules/printf-posix: New file.
52053         * lib/printf.c: New file.
52054         * m4/printf-posix-rpl.m4: New file.
52055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52056         REPLACE_PRINTF.
52057         * lib/stdio_.h (printf): New declaration.
52058         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52059         ____strfmon____): New macros.
52060         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52061         REPLACE_PRINTF.
52062
52063 2007-03-09  Bruno Haible  <bruno@clisp.org>
52064
52065         * tests/test-vasnprintf-posix2.sh: New file.
52066         * tests/test-vasnprintf-posix2.c: New file.
52067         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52068         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52069         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52070
52071         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52072         a locale dependent decimal point, rather than always '.'.
52073
52074 2007-03-09  Eric Blake  <ebb9@byu.net>
52075
52076         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52077         spite of platforms like Tandem/NSK that define it to -1.
52078
52079 2007-03-08  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/vprintf-posix-tests: New file.
52082         * tests/test-vprintf-posix.sh: New file.
52083         * tests/test-vprintf-posix.c: New file.
52084         * tests/test-printf-posix.h: New file.
52085
52086         * modules/vprintf-posix: New file.
52087         * lib/vprintf.c: New file.
52088         * m4/vprintf-posix.m4: New file.
52089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52090         REPLACE_VPRINTF.
52091         * lib/stdio_.h (vprintf): New declaration.
52092         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52093         REPLACE_VPRINTF.
52094
52095 2007-03-08  Bruno Haible  <bruno@clisp.org>
52096
52097         * modules/fprintf-posix-tests: New file.
52098         * tests/test-fprintf-posix.sh: New file.
52099         * tests/test-fprintf-posix.c: New file.
52100
52101         * modules/fprintf-posix: New file.
52102         * lib/fprintf.c: New file.
52103         * m4/fprintf-posix.m4: New file.
52104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52105         REPLACE_FPRINTF.
52106         * lib/stdio_.h (fprintf): New declaration.
52107         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52108         REPLACE_FPRINTF.
52109
52110 2007-03-08  Bruno Haible  <bruno@clisp.org>
52111
52112         * modules/vfprintf-posix-tests: New file.
52113         * tests/test-vfprintf-posix.sh: New file.
52114         * tests/test-vfprintf-posix.c: New file.
52115         * tests/test-fprintf-posix.h: New file.
52116         * tests/test-fprintf-posix.out: New file.
52117
52118         * modules/vfprintf-posix: New file.
52119         * lib/vfprintf.c: New file.
52120         * m4/vfprintf-posix.m4: New file.
52121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52122         REPLACE_VFPRINTF.
52123         * lib/stdio_.h (vfprintf): New declaration.
52124         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52125         REPLACE_VFPRINTF.
52126
52127 2007-03-08  Bruno Haible  <bruno@clisp.org>
52128
52129         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52130
52131 2007-03-08  Bruno Haible  <bruno@clisp.org>
52132
52133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52134         instead of 'expr' invocations.
52135         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52139         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52140         Suggested by Paul Eggert.
52141
52142 2007-03-08  Bruno Haible  <bruno@clisp.org>
52143
52144         * modules/fseterr-tests: New file.
52145         * tests/test-fseterr.c: New file.
52146
52147         * modules/fseterr: New file.
52148         * lib/fseterr.h: New file.
52149         * lib/fseterr.c: New file.
52150
52151 2007-03-08  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52154         * lib/getopt_.h: Likewise.
52155         * lib/mbswidth.h: Likewise.
52156         * lib/setenv.h: Likewise.
52157         * lib/vasnprintf.h: Likewise.
52158         * lib/vasprintf.h: Likewise.
52159         * lib/verror.h: Likewise.
52160         * lib/xsetenv.h: Likewise.
52161         * lib/xvasprintf.h: Likewise.
52162
52163 2007-03-08  Jim Meyering  <jim@meyering.net>
52164
52165         * users.txt: Add parted.
52166
52167         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52168
52169 2007-03-07  Bruno Haible  <bruno@clisp.org>
52170
52171         * m4/printf.m4: Make the shell script snippets copy&pastable.
52172
52173 2007-03-02  Bruno Haible  <bruno@clisp.org>
52174
52175         * lib/netinet_in_.h: New file.
52176         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52177         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52178         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52179         (Depends-on): Add absolute-header.
52180         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52181         into netinet/in.h.
52182
52183 2007-03-03  Bruno Haible  <bruno@clisp.org>
52184
52185         * lib/sys_select_.h: New file.
52186         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52187         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52188         * modules/sys_select (Files): Add lib/sys_select_.h.
52189         (Depends-on): Add absolute-header.
52190         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52191         into sys/select.h.
52192
52193 2007-03-02  Bruno Haible  <bruno@clisp.org>
52194
52195         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52196         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52197         values.
52198         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52199         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52200         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52201         * modules/sys_socket (Depends-on): Add absolute-header.
52202         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52203         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52204         (Include): Remove requirement of inclusion of <sys/types.h>.
52205
52206 2007-03-02  Bruno Haible  <bruno@clisp.org>
52207
52208         * lib/byteswap_.h (bswap_32): Fix formula.
52209
52210 2007-03-06  Bruno Haible  <bruno@clisp.org>
52211
52212         * modules/sprintf-posix-tests: New file.
52213         * tests/test-sprintf-posix.c: New file.
52214
52215         * modules/sprintf-posix: New file.
52216         * lib/sprintf.c: New file.
52217         * m4/sprintf-posix.m4: New file.
52218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52219         REPLACE_SPRINTF.
52220         * lib/stdio_.h (sprintf): New declaration.
52221         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52222         REPLACE_SPRINTF.
52223
52224 2007-03-06  Bruno Haible  <bruno@clisp.org>
52225
52226         * modules/vsprintf-posix-tests: New file.
52227         * tests/test-vsprintf-posix.c: New file.
52228         * tests/test-sprintf-posix.h: New file.
52229
52230         * modules/vsprintf-posix: New file.
52231         * lib/vsprintf.c: New file.
52232         * m4/vsprintf-posix.m4: New file.
52233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52234         REPLACE_VSPRINTF.
52235         * lib/stdio_.h (vsprintf): New declaration.
52236         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52237         REPLACE_VSPRINTF.
52238
52239 2007-03-06  Bruno Haible  <bruno@clisp.org>
52240
52241         * modules/vsnprintf (Depend-on): Remove minmax.
52242
52243 2007-03-06  Bruno Haible  <bruno@clisp.org>
52244
52245         * modules/snprintf-posix-tests: New file.
52246         * tests/test-snprintf-posix.c: New file.
52247
52248         * modules/snprintf-posix: New file.
52249         * m4/snprintf-posix.m4: New file.
52250         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52251         gl_FUNC_SNPRINTF.
52252         (gl_FUNC_SNPRINTF): Invoke it.
52253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52254         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52255         is set.
52256         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52257
52258 2007-03-06  Bruno Haible  <bruno@clisp.org>
52259
52260         * modules/vsnprintf-posix-tests: New file.
52261         * tests/test-vsnprintf-posix.c: New file.
52262         * tests/test-snprintf-posix.h: New file.
52263
52264         * modules/vsnprintf-posix: New file.
52265         * m4/vsnprintf-posix.m4: New file.
52266         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52267         gl_FUNC_VSNPRINTF.
52268         (gl_FUNC_VSNPRINTF): Invoke it.
52269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52270         * lib/stdio_.h (vsnprintf): Define as a replacement if
52271         REPLACE_VSNPRINTF is set.
52272         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52273
52274 2007-03-06  Bruno Haible  <bruno@clisp.org>
52275
52276         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52278
52279 2007-03-06  Bruno Haible  <bruno@clisp.org>
52280
52281         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52282         (asinl): Declare also if HAVE_DECL_ASINL is set.
52283         (atanl): Declare also if HAVE_DECL_ATANL is set.
52284         (ceill): Declare also if HAVE_DECL_CEILL is set.
52285         (cosl): Declare also if HAVE_DECL_COSL is set.
52286         (expl): Declare also if HAVE_DECL_EXPL is set.
52287         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52288         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52289         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52290         (logl): Declare also if HAVE_DECL_LOGL is set.
52291         (sinl): Declare also if HAVE_DECL_SINL is set.
52292         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52293         (tanl): Declare also if HAVE_DECL_TANL is set.
52294         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52296         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52297         declaration of frexpl, ldexpl.
52298         * modules/printf-frexpl (Depends-on): Add math.
52299         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52300
52301 2007-03-05  Bruno Haible  <bruno@clisp.org>
52302
52303         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52304         frexpl and ldexpl are declared.
52305         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52306
52307 2007-03-05  Bruno Haible  <bruno@clisp.org>
52308
52309         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52310         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52311
52312 2007-03-05  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/stdio_.h: Include <stddef.h>.
52315
52316 2007-03-05  Bruno Haible  <bruno@clisp.org>
52317
52318         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52319
52320 2007-03-05  Bruno Haible  <bruno@clisp.org>
52321
52322         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52323         NetBSD 4, from Ralf Wildenhues.
52324
52325 2007-03-04  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/vasprintf.h: Update #if logic for the case when the functions
52328         exist but are overridden.
52329
52330 2007-03-04  Bruno Haible  <bruno@clisp.org>
52331
52332         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52333         implementations: glibc-2.4 and MacOS X 10.3.
52334         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52335         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52336         * tests/test-vasprintf-posix.c (test_function): Likewise.
52337
52338 2007-03-04  Bruno Haible  <bruno@clisp.org>
52339
52340         * modules/vasprintf-posix-tests: New file.
52341         * tests/test-vasprintf-posix.c: New file.
52342
52343         * modules/vasprintf-posix: New file.
52344         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52345         defined.
52346         * m4/vasprintf-posix.m4: New file.
52347         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52348         gl_FUNC_VASPRINTF.
52349         (gl_FUNC_VASPRINTF): Invoke it.
52350         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52351         here.
52352         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52353
52354 2007-03-04  Bruno Haible  <bruno@clisp.org>
52355
52356         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52357         REPLACE_GETTIMEOFDAY.
52358         * modules/sys_time (Makefile.am): Likewise.
52359         * m4/sys_time_h.m4: Likewise.
52360         * m4/gettimeofday.m4: Likewise.
52361
52362 2007-03-04  Bruno Haible  <bruno@clisp.org>
52363
52364         * modules/vasnprintf-posix-tests: New file.
52365         * tests/test-vasnprintf-posix.c: New file.
52366
52367         * modules/vasnprintf-posix: New file.
52368         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52369         printf-frexpl.h.
52370         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52371         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52372         REPLACE_VASNPRINTF is defined.
52373         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52374         gl_FUNC_VASNPRINTF.
52375         (gl_FUNC_VASNPRINTF): Invoke it.
52376         * m4/vasnprintf-posix.m4: New file.
52377         * m4/printf.m4: New file.
52378
52379 2007-03-04  Bruno Haible  <bruno@clisp.org>
52380
52381         Compile progreloc.c only if --enable-relocatable is specified.
52382         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52383         if --enable-relocatable was specified.
52384         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52385         lib_SOURCES.
52386
52387 2007-03-04  Jim Meyering  <jim@meyering.net>
52388
52389         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52390         Use it consistently, rather than enumerating errno constants.
52391
52392 2007-03-04  Bruno Haible  <bruno@clisp.org>
52393
52394         * modules/xvasprintf-tests: New file.
52395         * tests/test-xvasprintf.c: New file.
52396
52397         * modules/vasprintf-tests: New file.
52398         * tests/test-vasprintf.c: New file.
52399
52400         * modules/vasnprintf-tests: New file.
52401         * tests/test-vasnprintf.c: New file.
52402
52403         * modules/vsnprintf-tests: New file.
52404         * tests/test-vsnprintf.c: New file.
52405
52406         * modules/snprintf-tests: New file.
52407         * tests/test-snprintf.c: New file.
52408
52409 2007-03-04  Bruno Haible  <bruno@clisp.org>
52410
52411         Compile relocatable.c only if --enable-relocatable is specified.
52412         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52413         gl_RELOCATABLE_LIBRARY.
52414         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52415         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52416         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52417         gl_RELOCATABLE_LIBRARY.
52418         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52419         (Makefile.am): Remove lib_SOURCES.
52420         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52421         gl_RELOCATABLE_LIBRARY.
52422         (Makefile.am): Remove lib_SOURCES.
52423         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52424         always.
52425         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52426         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52427
52428 2007-03-04  Bruno Haible  <bruno@clisp.org>
52429
52430         * modules/argmatch-tests: New file.
52431         * tests/test-argmatch.c: New file.
52432
52433         * tests/test-allocsa.c (main): Halve the number of loop runs.
52434
52435         * modules/alloca-opt-tests: New file.
52436         * tests/test-alloca-opt.c: New file.
52437
52438 2007-03-04  Jim Meyering  <jim@meyering.net>
52439
52440         Work around difference between Linux ACLs and Solaris 10 ZFS.
52441         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52442         for EINVAL.
52443
52444 2007-03-03  Bruno Haible  <bruno@clisp.org>
52445
52446         * modules/relocatable-prog (Depends-on): Add back progreloc's
52447         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52448
52449 2007-03-03  Bruno Haible  <bruno@clisp.org>
52450
52451         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52452         * modules/relocatable-lib: New file.
52453
52454 2007-03-03  Bruno Haible  <bruno@clisp.org>
52455
52456         * modules/relocatable-prog: Renamed from modules/relocatable.
52457         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52458
52459 2007-03-03  Bruno Haible  <bruno@clisp.org>
52460
52461         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52462         m4/relocatable-lib.m4.
52463         (Depends-on): Remove 'relocatable'.
52464         (configure.ac): Add gl_RELOCATABLE_NOP.
52465
52466 2007-03-03  Bruno Haible  <bruno@clisp.org>
52467
52468         * modules/relocatable-prog-wrapper: New file.
52469         * modules/relocatable (Depends-on): Add it. Remove all other
52470         dependencies except progname.
52471         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52472
52473         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52474         (gl_FUNC_STRERROR): Nop.
52475         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52476
52477         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52478         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52479
52480         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52481         (gl_FUNC_READLINK): Update.
52482
52483         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52484
52485 2007-03-03  Bruno Haible  <bruno@clisp.org>
52486
52487         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52488         * modules/xreadlink (Depends-on): Add unistd.
52489         * modules/xreadlink-with-size (Depends-on): Likewise.
52490
52491 2007-03-03  Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52494         extracted from gt_FUNC_SETENV.
52495         (gt_FUNC_SETENV): Remove macro.
52496         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52497         remove gt_FUNC_SETENV.
52498
52499 2007-03-03  Bruno Haible  <bruno@clisp.org>
52500
52501         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52502         ENABLE_RELOCATABLE here.
52503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52504
52505 2007-03-03  Bruno Haible  <bruno@clisp.org>
52506
52507         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52508         * tests/test-rbtreehash_list.c: Include progname.h.
52509         (main): Call set_program_name.
52510
52511         * modules/rbtree-oset-tests (Depends-on): Add progname.
52512         * tests/test-rbtree_oset.c: Include progname.h.
52513         (main): Call set_program_name.
52514
52515         * modules/rbtree-list-tests (Depends-on): Add progname.
52516         * tests/test-rbtree_list.c: Include progname.h.
52517         (main): Call set_program_name.
52518
52519         * modules/linked-list-tests (Depends-on): Add progname.
52520         * tests/test-linked_list.c: Include progname.h.
52521         (main): Call set_program_name.
52522
52523 2007-03-03  Bruno Haible  <bruno@clisp.org>
52524
52525         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52526         All uses of __restrict changed to _Restrict_.
52527         * lib/glob_.h (__restrict): Remove macro.
52528
52529 2007-03-02  Bruno Haible  <bruno@clisp.org>
52530
52531         * modules/gettext (configure.ac): Require gettext infrastructure
52532         from version 0.16.1.
52533
52534 2007-03-02  Bruno Haible  <bruno@clisp.org>
52535
52536         * modules/linkedhash-list-tests (Depends-on): Add progname.
52537         * tests/test-linkedhash_list.c: Include progname.h.
52538         (main): Call set_program_name.
52539
52540         * modules/carray-list-tests (Depends-on): Add progname.
52541         * tests/test-carray_list.c: Include progname.h.
52542         (main): Call set_program_name.
52543
52544         * modules/avltreehash-list-tests (Depends-on): Add progname.
52545         * tests/test-avltreehash_list.c: Include progname.h.
52546         (main): Call set_program_name.
52547
52548         * modules/avltree-oset-tests (Depends-on): Add progname.
52549         * tests/test-avltree_oset.c: Include progname.h.
52550         (main): Call set_program_name.
52551
52552         * modules/avltree-list-tests (Depends-on): Add progname.
52553         * tests/test-avltree_list.c: Include progname.h.
52554         (main): Call set_program_name.
52555
52556         * modules/array-oset-tests (Depends-on): Add progname.
52557         * tests/test-array_oset.c: Include progname.h.
52558         (main): Call set_program_name.
52559
52560         * modules/array-list-tests (Depends-on): Add progname.
52561         * tests/test-array_list.c: Include progname.h.
52562         (main): Call set_program_name.
52563
52564         * modules/argp-tests (Depends-on): Add progname.
52565         * tests/test-argp.c: Include argp.h first. Include progname.h.
52566         (main): Call set_program_name.
52567
52568 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52569
52570         * doc/gnulib-tool.texi (Initial import): Reword description of
52571         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52572         limited effect even if defined after the first system include.
52573
52574 2007-03-01  Bruno Haible  <bruno@clisp.org>
52575
52576         * build-aux/config.libpath: Update to libtool-1.5.22.
52577         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52578
52579 2007-03-01  Bruno Haible  <bruno@clisp.org>
52580
52581         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52582         foo_CFLAGS.
52583         Reported by Ralf Wildenhues.
52584
52585 2007-03-01  Bruno Haible  <bruno@clisp.org>
52586
52587         * build-aux/install-reloc: Remove object files left over by some
52588         compilers.
52589         Reported by Ralf Wildenhues.
52590
52591 2007-03-01  Bruno Haible  <bruno@clisp.org>
52592
52593         * build-aux/install-reloc: Break long lines.
52594
52595 2007-03-01  Bruno Haible  <bruno@clisp.org>
52596
52597         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52598         Reported by Ralf Wildenhues.
52599
52600 2007-03-01  Bruno Haible  <bruno@clisp.org>
52601
52602         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52603         include ordering constraints.
52604
52605 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52609         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52610         as another example.
52611         * lib/time_.h: Fix misspelling.
52612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52613         Require gl_HEADER_TIME_H_DEFAULTS.
52614         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52615         * m4/time_r.m4 (gl_TIME_R): Likewise.
52616         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52617
52618 2007-03-01  Bruno Haible  <bruno@clisp.org>
52619
52620         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52621         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52622
52623 2007-03-01  Jim Meyering  <jim@meyering.net>
52624
52625         * modules/xreadlink (Maintainer): Add my name.
52626         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52627
52628 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52629             Bruno Haible  <bruno@clisp.org>
52630
52631         * build-aux/install-reloc: Compile also c-ctype.c.
52632         * build-aux/relocatable.sh.in: New file.
52633         * doc/relocatable.texi: New file.
52634         * doc/relocatable-maint.texi: New file.
52635         * doc/gnulib.texi: Include relocatable-maint.texi.
52636         * lib/progreloc.c: Include unistd.h unconditionally.
52637         * lib/relocwrapper.c: Include unistd.h unconditionally.
52638         Include c-ctype.h.
52639         (add_dotbin): Use c_tolower.
52640         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52641         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52642         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52643         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52644         to m4/relocatable-lib.m4.
52645         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52646         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52647         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52648         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52649         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52650         * modules/relocatable: New file.
52651         * modules/relocatable-lib: New file.
52652         * modules/relocatable-script: New file.
52653
52654 2007-02-28  Bruno Haible  <bruno@clisp.org>
52655
52656         Import --enable-relocatable infrastructure.
52657         * build-aux/config.libpath: New file, from GNU gettext.
52658         * build-aux/install-reloc: New file, from GNU gettext.
52659         * build-aux/reloc-ldflags: New file, from GNU gettext.
52660         * lib/relocatable.h: New file, from GNU gettext.
52661         * lib/relocatable.c: New file, from GNU gettext.
52662         * lib/relocwrapper.c: New file, from GNU gettext.
52663         * m4/relocatable.m4: New file, from GNU gettext.
52664
52665 2007-02-28  Bruno Haible  <bruno@clisp.org>
52666
52667         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52668
52669         * modules/xreadlink: New file, from GNU gettext with modifications.
52670         * lib/xreadlink.c: New file, from GNU gettext.
52671         * lib/xreadlink.h: Add comments.
52672         (xreadlink): New declaration.
52673
52674         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52675         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52676         lib/xreadlink-with-size.c.
52677         (configure.ac): Remove gl_XREADLINK invocation.
52678         (Makefile.am): Augment lib_SOURCES.
52679         * m4/xreadlink.m4: Remove file.
52680         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52681         (xreadlink_with_size): Renamed from xreadink.
52682         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52683         * modules/canonicalize (Depends-on): Replace xreadlink with
52684         xreadlink-with-size.
52685         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52686
52687 2007-02-25  Jim Meyering  <jim@meyering.net>
52688
52689         * build-aux/announce-gen: When complaining about excess arguments,
52690         list them.
52691
52692 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52693
52694         * README: Document signed integer overflow situation more
52695         accurately.
52696
52697 2007-02-25  Bruno Haible  <bruno@clisp.org>
52698
52699         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52700         'a' or 'A' conversion.
52701
52702 2007-02-25  Bruno Haible  <bruno@clisp.org>
52703
52704         * modules/filename: Renamed from modules/pathname.
52705         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52706         lib/concatpath.c with lib/concat-filename.c.
52707         (Makefile.am): Update.
52708         (Include): Replace pathname.h with filename.h.
52709         * lib/filename.h: Renamed from lib/pathname.h.
52710         (concatenated_filename): Renamed from concatenated_pathname.
52711         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52712         (concatenated_filename): Renamed from concatenated_pathname.
52713         * lib/findprog.c: Include filename.h instead of pathname.h.
52714         (find_in_path): Update.
52715         * lib/javacomp.c: Include filename.h instead of pathname.h.
52716         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52717         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52718         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52719         is_oldgcj_14_13_usable, is_javac_usable): Update.
52720         * lib/javaexec.c: Include filename.h instead of pathname.h.
52721         (execute_java_class): Update.
52722         * modules/findprog: Update.
52723         * modules/javacomp: Update.
52724         * modules/javaexec: Update.
52725         * MODULES.html.sh (File system functions): Add 'filename', remove
52726         'pathname'.
52727
52728 2007-02-25  Bruno Haible  <bruno@clisp.org>
52729
52730         * modules/printf-frexpl-tests: New file.
52731         * tests/test-printf-frexpl.c: New file.
52732
52733         * modules/printf-frexpl: New file.
52734         * lib/printf-frexpl.h: New file.
52735         * lib/printf-frexpl.c: New file.
52736         * m4/printf-frexpl.m4: New file.
52737
52738 2007-02-25  Bruno Haible  <bruno@clisp.org>
52739
52740         * modules/printf-frexp-tests: New file.
52741         * tests/test-printf-frexp.c: New file.
52742
52743         * modules/printf-frexp: New file.
52744         * lib/printf-frexp.h: New file.
52745         * lib/printf-frexp.c: New file.
52746         * m4/printf-frexp.m4: New file.
52747
52748 2007-02-25  Bruno Haible  <bruno@clisp.org>
52749
52750         Assume automake >= 1.10 for the tests.
52751         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52752         * modules/arctwo-tests: Likewise.
52753         * modules/argp-tests: Likewise.
52754         * modules/avltree-list-tests: Likewise.
52755         * modules/avltree-oset-tests: Likewise.
52756         * modules/avltreehash-list-tests: Likewise.
52757         * modules/carray-list-tests: Likewise.
52758         * modules/crc-tests: Likewise.
52759         * modules/des-tests: Likewise.
52760         * modules/gc-arcfour-tests: Likewise.
52761         * modules/gc-arctwo-tests: Likewise.
52762         * modules/gc-des-tests: Likewise.
52763         * modules/gc-hmac-md5-tests: Likewise.
52764         * modules/gc-hmac-sha1-tests: Likewise.
52765         * modules/gc-md2-tests: Likewise.
52766         * modules/gc-md4-tests: Likewise.
52767         * modules/gc-md5-tests: Likewise.
52768         * modules/gc-pbkdf2-sha1-tests: Likewise.
52769         * modules/gc-rijndael-tests: Likewise.
52770         * modules/gc-sha1-tests: Likewise.
52771         * modules/gc-tests: Likewise.
52772         * modules/getaddrinfo-tests: Likewise.
52773         * modules/hmac-md5-tests: Likewise.
52774         * modules/hmac-sha1-tests: Likewise.
52775         * modules/linked-list-tests: Likewise.
52776         * modules/linkedhash-list-tests: Likewise.
52777         * modules/lock-tests: Likewise.
52778         * modules/md2-tests: Likewise.
52779         * modules/md4-tests: Likewise.
52780         * modules/md5-tests: Likewise.
52781         * modules/rbtree-list-tests: Likewise.
52782         * modules/rbtree-oset-tests: Likewise.
52783         * modules/rbtreehash-list-tests: Likewise.
52784         * modules/read-file-tests: Likewise.
52785         * modules/rijndael-tests: Likewise.
52786         * modules/stdint-tests: Likewise.
52787         * modules/tls-tests: Likewise.
52788
52789 2007-02-24  Bruno Haible  <bruno@clisp.org>
52790
52791         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52792         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52793         function; instead check whether isnan with a double argument links.
52794         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52795         function; instead check whether isnan with a 'long double' argument
52796         links.
52797         Reported by Eric Blake <ebb9@byu.net>.
52798
52799 2007-02-24  Bruno Haible  <bruno@clisp.org>
52800
52801         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52802         defined.
52803         * lib/isnanl.c: Remove all code. Just include isnan.c.
52804         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52805
52806 2007-02-25  Jim Meyering  <jim@meyering.net>
52807
52808         Avoid conflicting types for 'unsetenv' on FreeBSD.
52809         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52810         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52811         in stdlib.h.
52812
52813 2007-02-24  Bruno Haible  <bruno@clisp.org>
52814
52815         * modules/isnanl-nolibm-tests: New file.
52816         * tests/test-isnanl.c: New file.
52817
52818         * modules/isnanl-nolibm: New file.
52819         * lib/isnanl.h: New file.
52820         * lib/isnanl.c: New file.
52821         * m4/isnanl.m4: New file.
52822
52823 2007-02-24  Bruno Haible  <bruno@clisp.org>
52824
52825         * modules/isnan-nolibm-tests: New file.
52826         * tests/test-isnan.c: New file.
52827
52828         * modules/isnan-nolibm: New file.
52829         * lib/isnan.h: New file.
52830         * lib/isnan.c: New file.
52831         * m4/isnan.m4: New file.
52832
52833 2007-02-24  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52836         assume that an exponent fits in 20 bits.
52837
52838 2007-02-24  Jim Meyering  <jim@meyering.net>
52839
52840         * m4/regex.m4: Update the description of the configure-time option,
52841         --without-included-regex, to state accurately what the defaults are,
52842         and perhaps to give people an idea why using this option is risky.
52843
52844 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52845
52846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52847         loops on small arguments.  This attempts to avoid the problem
52848         Bruno Haible reported for AIX 4.3.2 in
52849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52850
52851 2007-02-23  Bruno Haible  <bruno@clisp.org>
52852
52853         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52854         Needed for help2man.
52855
52856 2007-02-23  Karl Berry  <karl@gnu.org>
52857
52858         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52859         exists, foo.h should be cvs-ignored, not committed.
52860
52861 2007-02-23  Eric Blake  <ebb9@byu.net>
52862
52863         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52864         * lib/stat-time.h (includes): Likewise.
52865         * lib/utimecmp.c (includes): Likewise.
52866         * lib/utimens.h (includes): Likewise.
52867         * lib/getdate.y (includes): Also include "timespec.h" for use
52868         internal to the module.
52869         * modules/utimens (Depends-on): Revert yesterday's patch.
52870         * modules/nanosleep (Depends-on): Add missing dependency.
52871
52872 2007-02-22  Bruno Haible  <bruno@clisp.org>
52873
52874         * lib/glob.c: Don't include getlogin_r.h.
52875
52876 2007-02-22  Jim Meyering  <jim@meyering.net>
52877
52878         * modules/utimens (Depends-on): Add timespec, required for
52879         utimens.h's inclusion of timespec.h.
52880
52881 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52882
52883         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52884         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52885         Schwab in
52886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52887         I'll try to think of a better way to fix the Solaris problem.
52888
52889         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52890         like glibc; on Solaris 10, it fails with errno == EINVAL.
52891         POSIX says the behavior is unspecified if the first argument is NULL,
52892         so play it safe and never pass NULL to the system getcwd.
52893
52894 2007-02-21  Jim Meyering  <jim@meyering.net>
52895
52896         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52897         of gettimeofday.  It would conflict with the one now always
52898         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52899         an IRIX 6.5 build failure.
52900
52901 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52902
52903         Minor fixups to port to Solaris 10 with Sun C 5.8.
52904         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52905         * modules/getcwd (Depends-on): Add dirfd.
52906         * lib/putenv.c (putenv): #undef it.
52907         (rpl_putenv): New decl.
52908         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52909
52910 2007-02-20  Bruno Haible  <bruno@clisp.org>
52911
52912         * modules/stdio-tests: New file.
52913         * tests/test-stdio.c: New file.
52914
52915         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52916         (Depends-on): Add stdio.
52917         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52918         (Include): Use <stdio.h> instead of vsnprintf.h.
52919         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52920         HAVE_DECL_VSNPRINTF.
52921         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52922
52923         * modules/snprintf (Files): Remove lib/snprintf.h.
52924         (Depends-on): Add stdio.
52925         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52926         (Include): Use <stdio.h> instead of snprintf.h.
52927         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52928         HAVE_DECL_SNPRINTF.
52929         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52930         * lib/getaddrinfo.c: Likewise.
52931
52932         * modules/stdio: New file.
52933         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52934         * lib/snprintf.h: Remove file.
52935         * lib/vsnprintf.h: Remove file.
52936         * lib/.cppi-disable: Remove snprintf.h.
52937         * m4/stdio_h.m4: New file.
52938         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52939
52940 2007-02-20  Jim Meyering  <jim@meyering.net>
52941
52942         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52943         used by e.g., mingw.  From Bruno Haible.
52944
52945 2007-02-19  Bruno Haible  <bruno@clisp.org>
52946
52947         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52948         warnings.
52949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52950
52951 2007-02-19  Bruno Haible  <bruno@clisp.org>
52952
52953         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52954         from mingw users.
52955
52956 2007-02-19  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52959         warnings.
52960         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52961
52962 2007-02-19  Jim Meyering  <jim@meyering.net>
52963
52964         Don't use FD after a successful "fdopendir (fd)".
52965         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52966         Reset it by calling dirfd on the just-obtained DIR*.
52967
52968         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52969         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52970
52971 2007-02-18  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/readlink.c: Include <unistd.h>.
52974         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52975         HAVE_READLINK.
52976         * modules/readlink (Depends-on): Add unistd.
52977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52978         (Include): Add <unistd.h>.
52979
52980         * lib/getlogin_r.h: Remove file.
52981         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52982         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52983         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52984         HAVE_DECL_GETLOGIN_R.
52985         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52986         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52987         (Include): Use <unistd.h> instead of getlogin_r.h.
52988
52989         * lib/getcwd.h: Remove file.
52990         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52991         * lib/xgetcwd.c: Likewise.
52992         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52993         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52994         * modules/getcwd (Files): Remove lib/getcwd.h.
52995         (Depends-on): Add unistd.
52996         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52997         (Include): Use <unistd.h> instad of getcwd.h.
52998
52999         * lib/ftruncate.c: Include <unistd.h> first.
53000         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53001         Set HAVE_FTRUNCATE.
53002         * modules/ftruncate (Depends-on): Add unistd.
53003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53004
53005         * lib/fchdir.c: Include <unistd.h> first.
53006         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53008         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53009         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53010         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53011
53012         * lib/dup2.c: Include <unistd.h> first.
53013         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53014         HAVE_DUP2.
53015         * modules/dup2 (Depends-on): Add unistd.
53016         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53017
53018         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53019         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53020         REPLACE_CHOWN. Don't define chown as a macro here.
53021         * modules/chown (Depends-on): Add unistd.
53022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53023
53024         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53025         Add definition for GL_LINK_WARNING.
53026         (chown, dup2): New declarations.
53027         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53028         link warning.
53029         (ftruncate): New declaration.
53030         (getcwd): New declaration, taken from old getcwd.h.
53031         (getlogin_r): New declaration, taken from old getlogin_r.h.
53032         (readlink): New declaration.
53033         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53034         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53035         (gl_PREREQ_UNISTD): Remove macro.
53036         (gl_UNISTD_MODULE_INDICATOR): New macro.
53037         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53038         many new variables. Don't set UNISTD_H.
53039         * modules/unistd (Description): Change.
53040         (Depends-on): Add link-warning.
53041         (configure.ac): Update.
53042         (Makefile.am): Create unistd.h always. Substitute many new variables
53043         into it.
53044
53045 2007-02-18  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53048         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53049         HAVE_GETSUBOPT.
53050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53051         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53052         * lib/getsubopt.h: Remove file.
53053         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53054         (Depends-on): Add stdlib.
53055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53056         (Includes): Use <stdlib.h> instead of getsubopt.h.
53057         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53058         Set HAVE_GETSUBOPT.
53059         * lib/getsubopt.c: Don't include getsubopt.h.
53060
53061 2007-02-18  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/fchdir (Depends-on): Add dup2.
53064
53065 2007-02-18  Bruno Haible  <bruno@clisp.org>
53066
53067         * lib/stdlib_.h: Handle glibc's special invocation convention
53068         specially.
53069
53070 2007-02-18  Bruno Haible  <bruno@clisp.org>
53071
53072         * modules/stdlib-tests: New file.
53073         * tests/test-stdlib.c: New file.
53074
53075         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53076         (Depends-on): Add stdlib.
53077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53078         (Includes): Use <stdlib.h> instead of mkstemp.h.
53079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53080         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53081         * lib/mkstemp.c: Don't include mkstemp.h.
53082         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53083         * lib/stdlib--.h: Don't include mkstemp.h.
53084
53085         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53086         (Depends-on): Add stdlib.
53087         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53088         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53089         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53090         HAVE_MKDTEMP.
53091         * lib/mkdtemp.c: Don't include mkdtemp.h.
53092         * lib/clean-temp.c: Don't include mkdtemp.h.
53093
53094         * modules/exit (Files): Remove lib/exit.h.
53095         (Depends-on): Add stdlib.
53096         (Makefile.am): Remove lib_SOURCES.
53097         (Include): Use <stdlib.h> instead of exit.h.
53098         * lib/argmatch.c: Don't include exit.h.
53099         * lib/execute.c: Likewise.
53100         * lib/pagealign_alloc.c: Likewise.
53101         * lib/pipe.c: Likewise.
53102         * lib/wait-process.c: Likewise.
53103         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53104         * lib/exitfail.c: Likewise.
53105         * lib/savewd.c: Likewise.
53106         * lib/xsetenv.c: Likewise.
53107
53108         * modules/stdlib: New file.
53109         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53110         and extra comments about mkstemp().
53111         * lib/exit.h: Remove file.
53112         * lib/mkdtemp.h: Remove file.
53113         * lib/mkstemp.h: Remove file.
53114         * m4/stdlib_h.m4: New file.
53115         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53116
53117 2007-02-18  Bruno Haible  <bruno@clisp.org>
53118
53119         * modules/math-tests: New file.
53120         * tests/test-math.c: New file.
53121
53122         * modules/math: New file.
53123         * modules/mathl (Files): Remove lib/mathl.h.
53124         (Depends-on): Add math.
53125         (Makefile.am): Don't mention mathl.h.
53126         (Include): Use <math.h> instead of mathl.h.
53127         * lib/math_.h: New file.
53128         * lib/mathl.h: Remove file.
53129         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53130         mathl.h.
53131         * lib/asinl.c: Likewise.
53132         * lib/atanl.c: Likewise.
53133         * lib/ceill.c: Likewise.
53134         * lib/cosl.c: Likewise.
53135         * lib/expl.c: Likewise.
53136         * lib/floorl.c: Likewise.
53137         * lib/frexpl.c: Likewise.
53138         * lib/ldexpl.c: Likewise.
53139         * lib/logl.c: Likewise.
53140         * lib/sincosl.c: Likewise.
53141         * lib/sinl.c: Likewise.
53142         * lib/sqrtl.c: Likewise.
53143         * lib/tanl.c: Likewise.
53144         * lib/trigl.c: Likewise.
53145         * m4/math_h.m4: New file.
53146         * MODULES.html.sh (Mathematics): Add math.
53147
53148 2007-02-17  Bruno Haible  <bruno@clisp.org>
53149
53150         * modules/wctype-tests: New file.
53151         * tests/test-wctype.c: New file.
53152
53153         * modules/wchar-tests: New file.
53154         * tests/test-wchar.c: New file.
53155
53156         * modules/unistd-tests: New file.
53157         * tests/test-unistd.c: New file.
53158
53159         * modules/time-tests: New file.
53160         * tests/test-time.c: New file.
53161
53162         * modules/sysexits-tests: New file.
53163         * tests/test-sysexits.c: New file.
53164
53165         * modules/sys_time-tests: New file.
53166         * tests/test-sys_time.c: New file.
53167
53168         * modules/sys_stat-tests: New file.
53169         * tests/test-sys_stat.c: New file.
53170
53171         * modules/sys_socket-tests: New file.
53172         * tests/test-sys_socket.c: New file.
53173
53174         * modules/sys_select-tests: New file.
53175         * tests/test-sys_select.c: New file.
53176
53177         * modules/string-tests: New file.
53178         * tests/test-string.c: New file.
53179
53180         * modules/stdbool-tests: New file.
53181         * tests/test-stdbool.c: New file.
53182
53183         * modules/netinet_in-tests: New file.
53184         * tests/test-netinet_in.c: New file.
53185
53186         * modules/inttypes-tests: New file.
53187         * tests/test-inttypes.c: New file.
53188
53189         * modules/fcntl-tests: New file.
53190         * tests/test-fcntl.c: New file.
53191
53192         * modules/byteswap-tests: New file.
53193         * tests/test-byteswap.c: New file.
53194
53195         * modules/arpa_inet-tests: New file.
53196         * tests/test-arpa_inet.c: New file.
53197
53198 2007-02-17  Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53201         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53202         if the corresponding module is not enabled. Emit link warnings if
53203         the function is used nevertheless.
53204         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53205         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53206         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53207         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53208         * modules/inttypes (Depends-on): Add link-warning.
53209         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53210         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53211         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53212         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53213         * modules/imaxdiv (configure.ac): Likewise.
53214         * modules/strtoimax (configure.ac): Likewise.
53215         * modules/strtoumax (configure.ac): Likewise.
53216
53217 2007-02-17  Bruno Haible  <bruno@clisp.org>
53218
53219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53220         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53221         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53222         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53223
53224 2007-02-17  Bruno Haible  <bruno@clisp.org>
53225
53226         * modules/link-warning: New file.
53227         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53228         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53229         * modules/string (Depends-on): Add link-warning.
53230         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53231         string.h.
53232         * MODULES.html.sh (Support for building libraries and executables): Add
53233         link-warning.
53234
53235 2007-02-17  Bruno Haible  <bruno@clisp.org>
53236
53237         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53238         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53239         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53240         long lines.
53241
53242 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53243             Bruno Haible  <bruno@clisp.org>
53244
53245         * modules/tmpfile: New file.
53246         * lib/tmpfile.c: New file.
53247         * m4/tmpfile.m4: New file.
53248         * MODULES.html.sh (func_all_modules): New section "Input/output".
53249
53250 2007-02-15  Bruno Haible  <bruno@clisp.org>
53251
53252         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53253         (supports_delete_on_close): New function.
53254         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53255
53256 2007-02-14  Bruno Haible  <bruno@clisp.org>
53257
53258         * modules/mbspcasecmp-tests: New file.
53259         * tests/test-mbspcasecmp.sh: New file.
53260         * tests/test-mbspcasecmp.c: New file.
53261
53262         New module mbspcasecmp.
53263         * modules/mbspcasecmp: New file.
53264         * lib/mbspcasecmp.c: New file.
53265         * lib/string_.h (strncasecmp): Change warning message.
53266         (mbspcasecmp): New declaration.
53267         * m4/mbspcasecmp.m4: New file.
53268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53269         GNULIB_MBSPCASECMP.
53270         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53271         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53272
53273 2007-02-14  Bruno Haible  <bruno@clisp.org>
53274
53275         * modules/mbsncasecmp-tests: New file.
53276         * tests/test-mbsncasecmp.sh: New file.
53277         * tests/test-mbsncasecmp.c: New file.
53278
53279         New module mbsncasecmp.
53280         * modules/mbsncasecmp: New file.
53281         * lib/mbsncasecmp.c: New file.
53282         * lib/string_.h (mbsncasecmp): New declaration.
53283         * m4/mbsncasecmp.m4: New file.
53284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53285         GNULIB_MBSNCASECMP.
53286         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53287         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53288
53289 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53292         Verify that it doesn't overlap with our flags.
53293         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53294         do not have the desired effect in multibyte locales; instead, use
53295         mbscasecmp.
53296         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53297         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53298         we don't require GNU fnmatch ourselves (if our users require it, they
53299         should do so explicitly).
53300
53301         Fix regex code so it doesn't rely on strcasecmp.
53302         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53303         Otherwise, include gnulib's langinfo.h.
53304         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53305         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53306         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53307         * modules/regex (FILES): Remove m4/codeset.m4.
53308         (Depends-on): Add localcharset.  Remove strcase.
53309
53310 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53311
53312         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53313         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53314
53315 2007-02-13  Bruno Haible  <bruno@clisp.org>
53316
53317         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53319
53320 2007-02-12  Bruno Haible  <bruno@clisp.org>
53321
53322         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53323         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53324         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53325         time warning rather than a link error.
53326
53327 2007-02-12  Bruno Haible  <bruno@clisp.org>
53328
53329         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53330         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53332
53333 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53334
53335         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53336         args, not 2.
53337
53338 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         New module 'time', so that apps can include <time.h> as per
53341         POSIX and GNU instead of separate include files like time_r.h
53342         and timegm.h.  This implementation tries out a simpler approach
53343         for replacing decls in standard include files (as compared to
53344         the string module), somewhat as an experiment.
53345
53346         * config/srclist.txt: Comment out mktime.c for now.
53347         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53348         since it doesn't apply any more.  Use generic wording instead.
53349         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53350         'time'.
53351         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53352         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53353         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53354         Don't include <sys/types.h>; no longer needed since we assume C89.
53355         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53356         * lib/strftime.c: Likewise.
53357         * lib/time_r.c: Likewise.
53358         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53359         * lib/nanosleep.c: Include <time.h> first, to check interface.
53360         * lib/strptime.c: Likewise.
53361         * lib/time_r.c: Likewise.
53362         * lib/timegm.c: Likewise.
53363         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53364         needed.
53365         * lib/timegm.c: Don't include timegm.h; no longer needed.
53366         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53367         time.h now handles any problems in that area.
53368         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53369         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53370         that time.h defines struct timespec.
53371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53372         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53373         handles that.
53374         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53375         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53376         needed.  Set REPLACE_LOCALTIME.
53377         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53378         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53379         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53380         nanosleep; time_h.m4 now does that.  Don't require
53381         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53382         module handles this now.
53383         * modules/getdate (Depends-on): Remove timespec.  Add time.
53384         * modules/nanosleep (Depends-on): Likewise.
53385         * modules/stat-time (Depends-on): Likewise.
53386         * modules/nanosleep (Include): Include time.h, not timespec.h.
53387         * modules/strptime (Files): Remove lib/strptime.h.
53388         (Depends-on): Add extensions, time.
53389         (Include): Include time.h, not strptime.h.
53390         * modules/time_r (Files): Remove lib/time_r.h.
53391         (Depends-on): Add time.
53392         (Include): Include time.h, not time_r.h.
53393         * modules/timegm: Likewise.
53394         * modules/timespec (Description): Now does timespec-related decls
53395         of our own, instead of struct timespec itself.
53396         (Depends-on): Add time; remove extensions.
53397         (Maintainer): Add self.
53398         * modules/utimecmp (Depends-on): Add time; remove timespec.
53399         * modules/utimens (Depends-on): Likewise.
53400         * modules/xnanosleep (Depends-on): Likewise.
53401
53402 2007-02-11  Bruno Haible  <bruno@clisp.org>
53403
53404         * lib/c-strstr.c: Include allocsa.h.
53405         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53406         * lib/c-strcasestr.c: Include allocsa.h.
53407         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53408         * lib/strcasestr.c: Include allocsa.h.
53409         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53410         * lib/mbsstr.c: Include allocsa.h.
53411         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53412         allocsa/freesa instead of malloc/free.
53413         * lib/mbscasestr.c: Include allocsa.h.
53414         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53415         allocsa/freesa instead of malloc/free.
53416         * modules/c-strstr (Depends-on): Add allocsa.
53417         * modules/c-strcasestr (Depends-on): Likewise.
53418         * modules/strcasestr (Depends-on): Likewise.
53419         * modules/mbsstr (Depends-on): Likewise.
53420         * modules/mbscasestr (Depends-on): Likewise.
53421
53422 2007-02-11  Bruno Haible  <bruno@clisp.org>
53423
53424         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53425
53426         * modules/mbsspn-tests: New file.
53427         * tests/test-mbsspn.sh: New file.
53428         * tests/test-mbsspn.c: New file.
53429
53430 2007-02-11  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53433
53434         * modules/mbspbrk-tests: New file.
53435         * tests/test-mbspbrk.sh: New file.
53436         * tests/test-mbspbrk.c: New file.
53437
53438 2007-02-11  Bruno Haible  <bruno@clisp.org>
53439
53440         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53441         unneeded cast.
53442
53443         * modules/mbscspn-tests: New file.
53444         * tests/test-mbscspn.sh: New file.
53445         * tests/test-mbscspn.c: New file.
53446
53447 2007-02-11  Bruno Haible  <bruno@clisp.org>
53448
53449         * modules/mbscasecmp-tests: New file.
53450         * tests/test-mbscasecmp.sh: New file.
53451         * tests/test-mbscasecmp.c: New file.
53452
53453 2007-02-11  Bruno Haible  <bruno@clisp.org>
53454
53455         Ensure O(n) worst-case complexity of mbscasestr.
53456         * lib/mbscasestr.c: Include stdbool.h.
53457         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53458         functions.
53459         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53460         the bookkeeping indicates that it's worth it.
53461         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53462
53463         * modules/mbscasestr-tests: New file.
53464         * tests/test-mbscasestr1.c: New file.
53465         * tests/test-mbscasestr2.sh: New file.
53466         * tests/test-mbscasestr2.c: New file.
53467         * tests/test-mbscasestr3.sh: New file.
53468         * tests/test-mbscasestr3.c: New file.
53469         * tests/test-mbscasestr4.sh: New file.
53470         * tests/test-mbscasestr4.c: New file.
53471         * m4/locale-tr.m4: New file.
53472
53473 2007-02-11  Bruno Haible  <bruno@clisp.org>
53474
53475         Ensure O(n) worst-case complexity of mbsstr.
53476         * lib/mbsstr.c: Include stdbool.h.
53477         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53478         functions.
53479         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53480         bookkeeping indicates that it's worth it.
53481         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53482
53483         * modules/mbsstr-tests: New file.
53484         * tests/test-mbsstr1.c: New file.
53485         * tests/test-mbsstr2.sh: New file.
53486         * tests/test-mbsstr2.c: New file.
53487         * tests/test-mbsstr3.sh: New file.
53488         * tests/test-mbsstr3.c: New file.
53489         * m4/locale-fr.m4: New file.
53490
53491 2007-02-11  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/mbsrchr.c (mbsrchr): Fix bug.
53494
53495         * modules/mbsrchr-tests: New file.
53496         * tests/test-mbsrchr.sh: New file.
53497         * tests/test-mbsrchr.c: New file.
53498
53499 2007-02-11  Bruno Haible  <bruno@clisp.org>
53500
53501         * lib/mbschr.c (mbschr): Fix bug.
53502
53503         * modules/mbschr-tests: New file.
53504         * tests/test-mbschr.sh: New file.
53505         * tests/test-mbschr.c: New file.
53506         * m4/locale-zh.m4: New file.
53507
53508 2007-02-11  Bruno Haible  <bruno@clisp.org>
53509
53510         Support for copying multibyte string iterators.
53511         * lib/mbiter.h: Include <string.h>.
53512         (mbiter_multi_copy): New function.
53513         (mbi_copy): New macro.
53514         * lib/mbuiter.h: Include <string.h>.
53515         (mbuiter_multi_copy): New function.
53516         (mbui_copy): New macro.
53517
53518 2007-02-11  Bruno Haible  <bruno@clisp.org>
53519
53520         New module mbslen.
53521         * modules/mbslen: New file.
53522         * lib/mbslen.c: New file.
53523         * lib/string_.h (mbslen): New declaration.
53524         * m4/mbslen.m4: New file.
53525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53526         GNULIB_MBSLEN.
53527         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53528         * MODULES.html.sh (Internationalization functions): Add mbslen.
53529
53530 2007-02-11  Bruno Haible  <bruno@clisp.org>
53531
53532         Ensure O(n) worst-case complexity of strcasestr substitute.
53533         * lib/strcasestr.c: Include stdbool.h.
53534         (knuth_morris_pratt): New function.
53535         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53536         bookkeeping indicates that it's worth it.
53537         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53538
53539         * modules/strcasestr-tests: New file.
53540         * tests/test-strcasestr.c: New file.
53541
53542 2007-02-11  Bruno Haible  <bruno@clisp.org>
53543
53544         Ensure O(n) worst-case complexity of c_strcasestr.
53545         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53546         (knuth_morris_pratt): New function.
53547         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53548         the bookkeeping indicates that it's worth it.
53549         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53550
53551         * modules/c-strcasestr-tests: New file.
53552         * tests/test-c-strcasestr.c: New file.
53553
53554 2007-02-11  Bruno Haible  <bruno@clisp.org>
53555
53556         Ensure O(n) worst-case complexity of c_strstr.
53557         * lib/c-strstr.c: Include stdbool.h, string.h.
53558         (knuth_morris_pratt): New function.
53559         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53560         bookkeeping indicates that it's worth it.
53561         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53562
53563         * lib/c-strstr.c: Complete rewrite for maintainability.
53564
53565         * modules/c-strstr-tests: New file.
53566         * tests/test-c-strstr.c: New file.
53567
53568 2007-02-11  Bruno Haible  <bruno@clisp.org>
53569
53570         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53571         5.2.1 and earlier, whereby \055 was treated just like the range
53572         delimiter '-'.
53573         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53574
53575 2007-02-08  Bruno Haible  <bruno@clisp.org>
53576
53577         * modules/regex (Depends-on): Add stdbool.
53578         Reported by Dalibor Topic <robilad@kaffe.org>.
53579
53580 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53581
53582         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53583         Prefer returning from main to exiting from it.
53584         Remove unnecessary parens after sizeof.
53585
53586 2007-02-05  Bruno Haible  <bruno@clisp.org>
53587
53588         New module mbssep.
53589         * modules/mbssep: New file.
53590         * lib/mbssep.c: New file.
53591         * lib/string_.h (strsep): Add a conditional link warning.
53592         (mbssep): New declaration.
53593         * m4/mbssep.m4: New file.
53594         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53595         GNULIB_MBSSEP.
53596         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53597         * MODULES.html.sh (Internationalization functions): Add mbssep.
53598
53599 2007-02-05  Bruno Haible  <bruno@clisp.org>
53600
53601         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53602         Optimize search in case of 1 delimiter.
53603
53604 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53605
53606         * lib/acl.h: Include sys/types.h before sys/acl.h.
53607
53608 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53609
53610         Merge upstream fix for glibc bugzilla #3957:
53611
53612         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53613
53614         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53615         bit for RE_HAT_LISTS_NOT_NEWLINE.
53616         (build_charclass_op): Remove bogus comment.
53617
53618 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53619
53620         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53621
53622 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53625         * lib/memmem.c [!defined _LIBC]: Include config.h.
53626
53627 2007-02-04  Bruno Haible  <bruno@clisp.org>
53628
53629         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53630         warning message.
53631
53632 2007-02-04  Bruno Haible  <bruno@clisp.org>
53633
53634         New module mbstok_r.
53635         * modules/mbstok_r: New file.
53636         * lib/mbstok_r.c: New file.
53637         * lib/string_.h (strtok_r): Change argument names to match the
53638         comments. Add a conditional link warning.
53639         (mbstok_r): New declaration.
53640         * m4/mbstok_r.m4: New file.
53641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53642         GNULIB_MBSTOK_R.
53643         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53644         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53645
53646 2007-02-04  Bruno Haible  <bruno@clisp.org>
53647
53648         New module mbsspn.
53649         * modules/mbsspn: New file.
53650         * lib/mbsspn.c: New file.
53651         * lib/string_.h (strspn): Add a conditional link warning.
53652         (mbsspn): New declaration.
53653         * m4/mbsspn.m4: New file.
53654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53655         GNULIB_MBSSPN.
53656         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53657         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53658
53659 2007-02-04  Bruno Haible  <bruno@clisp.org>
53660
53661         New module mbspbrk.
53662         * modules/mbspbrk: New file.
53663         * lib/mbspbrk.c: New file.
53664         * lib/string_.h (strpbrk): Add a conditional link warning.
53665         (mbspbrk): New declaration.
53666         * m4/mbspbrk.m4: New file.
53667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53668         GNULIB_MBSPBRK.
53669         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53670         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53671
53672 2007-02-04  Bruno Haible  <bruno@clisp.org>
53673
53674         New module mbscspn.
53675         * modules/mbscspn: New file.
53676         * lib/mbscspn.c: New file.
53677         * lib/string_.h (strcspn): Add a conditional link warning.
53678         (mbscspn): New declaration.
53679         * m4/mbscspn.m4: New file.
53680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53681         GNULIB_MBSCSPN.
53682         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53683         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53684
53685 2007-02-04  Bruno Haible  <bruno@clisp.org>
53686
53687         New module mbscasestr, reduced goal of strcasestr.
53688         * modules/mbscasestr: New file.
53689         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53690         (mbscasestr): Renamed from strcasestr.
53691         * lib/strcasestr.c: Don't include mbuiter.h.
53692         (strcasestr): Remove support for multibyte locales.
53693         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53694         Change the conditional link warning.
53695         (mbscasestr): New declaration.
53696         * m4/mbscasestr.m4: New file.
53697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53698         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53699         REPLACE_STRCASESTR.
53700         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53702         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53703         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53704         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53705         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53706         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53707         (Depends-on): Remove mbuiter.
53708         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53709
53710 2007-02-04  Bruno Haible  <bruno@clisp.org>
53711
53712         Simplify handling of strncasecmp.
53713         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53714         the conditional link warning.
53715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53716         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53717         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53718         * modules/strcase (configure.ac): Don't invoke
53719         gl_STRING_MODULE_INDICATOR.
53720         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53721
53722 2007-02-04  Bruno Haible  <bruno@clisp.org>
53723
53724         New module mbscasecmp, reduced goal of strcasecmp.
53725         * modules/mbscasecmp: New file.
53726         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53727         (mbscasecmp): Renamed from strcasecmp.
53728         * lib/strcasecmp.c: Don't include mbuiter.h.
53729         (strcasecmp): Remove support for multibyte locales.
53730         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53731         Change the conditional link warning.
53732         (mbscasecmp): New declaration.
53733         * m4/mbscasecmp.m4: New file.
53734         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53735         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53736         REPLACE_STRCASECMP.
53737         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53739         GNULIB_MBSCASECMP.
53740         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53741         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53742         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53743         (Depends-on): Remove mbuiter.
53744         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53745
53746 2007-02-04  Bruno Haible  <bruno@clisp.org>
53747
53748         New module mbsstr. Remove module strstr.
53749         * modules/mbsstr: New file.
53750         * modules/strstr: Remove file.
53751         * lib/mbsstr.c: Renamed from lib/strstr.c.
53752         (mbsstr): Renamed from strstr.
53753         * lib/string_.h (strstr): Remove declaration. Change the conditional
53754         link warning.
53755         (mbsstr): New declaration.
53756         * m4/mbsstr.m4: New file.
53757         * m4/strstr.m4: Remove file.
53758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53759         REPLACE_STRSTR.
53760         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53761         Don't initialize GNULIB_STRSTR.
53762         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53763         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53764         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53765         (Support for systems lacking ANSI C 89): Remove strstr.
53766
53767 2007-02-04  Bruno Haible  <bruno@clisp.org>
53768
53769         New module mbsrchr.
53770         * modules/mbsrchr: New file.
53771         * lib/mbsrchr.c: New file.
53772         * lib/string_.h (strrchr): Add a conditional link warning.
53773         (mbsrchr): New declaration.
53774         * m4/mbsrchr.m4: New file.
53775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53776         GNULIB_MBSRCHR.
53777         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53778         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53779
53780 2007-02-04  Bruno Haible  <bruno@clisp.org>
53781
53782         New module mbschr.
53783         * modules/mbschr: New file.
53784         * lib/mbschr.c: New file.
53785         * lib/string_.h (strchr): Add a conditional link warning.
53786         (mbschr): New declaration.
53787         * m4/mbschr.m4: New file.
53788         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53789         GNULIB_MBSCHR.
53790         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53791         * MODULES.html.sh (Internationalization functions): Add mbschr.
53792
53793 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53794
53795         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53796
53797         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53798
53799 2007-02-04  Bruno Haible  <bruno@clisp.org>
53800
53801         New module description section 'configure.ac-early'.
53802         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53803         (func_get_autoconf_early_snippet): New function.
53804         (func_import, func_create_testdir): Use it. Remove special cases for
53805         modules 'extensions' and 'lock'.
53806         * modules/extensions (configure.ac-early): Require
53807         gl_USE_SYSTEM_EXTENSIONS.
53808         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53809
53810 2007-02-04  Bruno Haible  <bruno@clisp.org>
53811
53812         Make use of gcj-4.3's -fsource and -ftarget option.
53813         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53814         and if so try the options -fsource and -ftarget.
53815         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53816         source_version, ftarget_option, target_version arguments.
53817         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53818         (is_envjavac_oldgcj_14_14_usable): Renamed from
53819         is_envjavac_gcj_14_14_usable.
53820         (is_envjavac_oldgcj_14_13_usable): Renamed from
53821         is_envjavac_gcj_14_13_usable.
53822         (is_gcj_present): Update.
53823         (is_gcj_43, is_gcj43_usable): New functions.
53824         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53825         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53826         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53827         try the options -fsource and -ftarget.
53828
53829 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53830
53831         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53832         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53833         larger value.
53834
53835 2007-02-03  Jim Meyering  <jim@meyering.net>
53836
53837         Give tools a better chance to allocate space for very large buffers.
53838         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53839
53840         Make pwd and readlink work also when run with an unreadable parent dir
53841         on systems with openat support.
53842         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53843         provided getcwd function, even when we have openat support.
53844         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53845
53846 2007-02-02  Bruno Haible  <bruno@clisp.org>
53847
53848         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53849         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53850         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53851         portability problems if one of these functions is only used on specific
53852         platforms.
53853         Reported by Paul Eggert.
53854
53855 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53856
53857         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53858         is causing more trouble than it's curing.
53859         * lib/regex_internal.h (__mempcpy): Remove.
53860         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53861         (and make the code a tad smaller to boot).
53862         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53863
53864 2007-02-02  Jim Meyering  <jim@meyering.net>
53865
53866         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53867         section, not in the Makefile.am: one.
53868
53869 2007-02-02  Eric Blake  <ebb9@byu.net>
53870
53871         * lib/strchrnul.c: Always include config.h first.
53872
53873         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53874         gnulib strstr is not necessary here.
53875
53876 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53877
53878         * m4/socklen.m4: Fix typo.
53879
53880 2007-02-02  Eric Blake  <ebb9@byu.net>
53881
53882         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53883         * modules/netinet_in (Makefile.am): Likewise.
53884
53885 2007-02-01  Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/string_.h (GL_LINK_WARNING): New macro.
53888         (strcasecmp, strstr, strcasestr): If provided by the system,
53889         conditionally define as a macro that leads to a warning instead of to
53890         an error.
53891         (strncasecmp): Conditionally define as a macro that leads to a warning.
53892
53893 2007-02-01  Karl Berry  <karl@gnu.org>
53894
53895         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53896
53897 2007-02-01  Bruno Haible  <bruno@clisp.org>
53898
53899         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53900         renamings.
53901
53902 2007-02-01  Eric Blake  <ebb9@byu.net>
53903
53904         * modules/regex (Depends-on): Revert dependence on mempcpy.
53905         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53906         module's definition of mempcpy.
53907         Reported by Paul Eggert.
53908
53909 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53910
53911         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53912         the symbol XYZ before redefining it.  This fixes a problem with
53913         programs that don't use XYZ, when compiled on systems that define
53914         XYZ to something else.
53915
53916 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53917
53918         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53919         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53920         writeable to group or other and (2) is intended to have a special
53921         mode bit that is set or cleared.  In such a case, the directory
53922         should be neither group- nor other-writeable until the special
53923         mode bits are right.
53924
53925 2007-01-31  Eric Blake  <ebb9@byu.net>
53926
53927         * modules/mountlist (Depends-on): Add strstr.
53928
53929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53930         bug.
53931         * modules/string (Makefile.am): Remove redundant replacement.
53932         * modules/regex (Depends-on): Add mempcpy.
53933
53934 2007-01-31  Bruno Haible  <bruno@clisp.org>
53935
53936         New module description field 'Link'.
53937         * gnulib-tool (func_usage): Document --extract-link-directive.
53938         (sed_extract_prog): Recognize 'Link' directive.
53939         (func_get_link_directive): New function.
53940         (func_import): Show summary of link directives.
53941         Handle --extract-link-directive option.
53942         * modules/acl (Link): New section.
53943         * modules/clock-time (Link): New section.
53944         * modules/euidaccess (Link): New section.
53945         * modules/gettext (Link): New section.
53946         * modules/iconv (Link): New section.
53947         * modules/lock (Link): New section.
53948         * modules/nanosleep (Link): New section.
53949         * modules/readline (Link): New section.
53950
53951 2007-01-27  Bruno Haible  <bruno@clisp.org>
53952
53953         Enforce the use of gnulib modules for unportable <string.h> functions.
53954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53955         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53956         (gl_HEADER_STRING_H_BODY): Require it.
53957         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53958         the symbol XYZ to one that gives a link error.
53959         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53960         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53961         * modules/mempcpy (configure.ac): Likewise.
53962         * modules/memrchr (configure.ac): Likewise.
53963         * modules/stpcpy (configure.ac): Likewise.
53964         * modules/stpncpy (configure.ac): Likewise.
53965         * modules/strcase (configure.ac): Likewise.
53966         * modules/strcasestr (configure.ac): Likewise.
53967         * modules/strchrnul (configure.ac): Likewise.
53968         * modules/strdup (configure.ac): Likewise.
53969         * modules/strndup (configure.ac): Likewise.
53970         * modules/strnlen (configure.ac): Likewise.
53971         * modules/strpbrk (configure.ac): Likewise.
53972         * modules/strsep (configure.ac): Likewise.
53973         * modules/strstr (configure.ac): Likewise.
53974         * modules/strtok_r (configure.ac): Likewise.
53975
53976 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53977
53978         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53979
53980 2007-01-30  Jim Meyering  <jim@meyering.net>
53981
53982         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53983
53984 2007-01-29  Bruno Haible  <bruno@clisp.org>
53985
53986         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53987         * lib/execute.c: Likewise.
53988         * lib/pipe.c: Likewise.
53989         * lib/printf-args.h: Likewise.
53990         * lib/printf-args.c: Likewise.
53991         * lib/printf-parse.c: Likewise.
53992         * lib/vasnprintf.c: Likewise.
53993
53994 2007-01-29  Eric Blake  <ebb9@byu.net>
53995
53996         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53997         declaration.
53998
53999 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54000
54001         * lib/strptime.h (strptime): Use 'restrict' for args where
54002         POSIX requires this.
54003         * lib/strptime.c (strptime): Likewise.
54004         Change license notice from LGPL to GPL, since gnulib-tool will
54005         change this as needed.
54006         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54007         defined.
54008         Include "strptime.h" first, to check interface.
54009         Do not #undef _LIBC and _NL_CURRENT.
54010         Do not include <stdlib.h>; no longer needed.
54011         Include "time_r.h" and declare ptime_locale_status
54012         only if _LIBC is not defined.
54013         (__P): Remove unused macro.
54014         (match_string): Bring back glibc version, but use it only if _LIBC
54015         is defined.
54016         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54017         Remove unnecessary assertion and abort() call.
54018         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54019         * m4/strptime.m4: Fix serial number comment.
54020         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54021         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54022         (Depends-on): Add time_r.
54023
54024 2007-01-29  Bruno Haible  <bruno@clisp.org>
54025
54026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54027         strptime.
54028         * modules/strptime (Depends-on): Add stdbool.
54029         * lib/strptime.h: Include <time.h> always. Add comments.
54030
54031 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54032
54033         * modules/strptime: New file.
54034         * lib/strptime.h: New file.
54035         * lib/strptime.c: New file.
54036         * m4/strptime.m4: New file.
54037
54038 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * MODULES.html.sh: New module mpsort.
54041         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54042
54043         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54044         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54046         All uses changed.
54047         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54048         All uses changed.
54049         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54050         to _Restrict_.
54051         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54052         the parameter matches the prototype.
54053
54054 2007-01-28  Jim Meyering  <jim@meyering.net>
54055
54056         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54057         sys/time.h here, reverting that part of the previous patch:
54058         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54059
54060 2007-01-28  Bruno Haible  <bruno@clisp.org>
54061
54062         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54063         value of $(SYS_TIME_H).
54064         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54065         remove it conditionally, too. [added by Jim Meyering]
54066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54068         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54069         GETTIMEOFDAY_REPLACEMENT to 1.
54070
54071 2007-01-28  Bruno Haible  <bruno@clisp.org>
54072
54073         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54074         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54076         Set UNISTD_H instead of UNISTD_H2.
54077         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54078
54079 2007-01-28  Bruno Haible  <bruno@clisp.org>
54080
54081         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54082         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54083
54084 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54085
54086         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54087         (func_create_testdir): Ensure C locale for `grep' and `tr'
54088         character ranges.
54089         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54090         ACLOCAL_AMFLAGS parsing state machine.
54091
54092 2007-01-27  Bruno Haible  <bruno@clisp.org>
54093
54094         * modules/unistr/base: Update.
54095
54096 2007-01-27  Bruno Haible  <bruno@clisp.org>
54097
54098         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54099         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54100         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54101         modules/unistr/u32-mbtouc.
54102         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54103         * lib/unistr.h: Update.
54104         * lib/linebreak.c: Update.
54105         * modules/unistr/u32-mbtouc: Renamed from
54106         modules/unistr/u32-mbtouc-safe.
54107         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54108         * lib/unistr.h: Update.
54109         * lib/unistr/u32-to-u8.c: Update.
54110         * lib/unistr/u32-to-u16.c: Update.
54111
54112 2007-01-27  Bruno Haible  <bruno@clisp.org>
54113
54114         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54115         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54116         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54117         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54118         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54119         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54120         modules/unistr/u16-mbtouc.
54121         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54122         * lib/unistr.h: Update.
54123         * lib/linebreak.c: Update.
54124         * modules/linebreak: Update.
54125         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54126         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54127         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54128         * modules/unistr/u16-mbtouc: Renamed from
54129         modules/unistr/u16-mbtouc-safe.
54130         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54131         * lib/unistr.h: Update.
54132         * lib/unistr/u16-to-u8.c: Update.
54133         * modules/unistr/u16-to-u8: Update.
54134         * lib/unistr/u16-to-u32.c: Update.
54135         * modules/unistr/u16-to-u32: Update.
54136
54137 2007-01-27  Bruno Haible  <bruno@clisp.org>
54138
54139         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54140         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54141         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54142         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54143         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54144         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54145         modules/unistr/u8-mbtouc.
54146         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54147         * lib/unistr.h: Update.
54148         * lib/striconveh.c: Update.
54149         * modules/striconveh: Update.
54150         * lib/linebreak.c: Update.
54151         * modules/linebreak: Update.
54152         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54153         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54154         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54155         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54156         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54157         * lib/unistr.h: Update.
54158         * lib/striconveh.c: Update.
54159         * modules/striconveh: Update.
54160         * lib/unistr/u8-to-u16.c: Update.
54161         * modules/unistr/u8-to-u16: Update.
54162         * lib/unistr/u8-to-u32.c: Update.
54163         * modules/unistr/u8-to-u32: Update.
54164
54165 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54166
54167         Sync from Libtool.
54168         * lib/argz.c: Do not include strings.h nor memory.h, include
54169         string.h unconditionally.  Patch by Simon Josefsson.
54170
54171 2007-01-27  Bruno Haible  <bruno@clisp.org>
54172
54173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54174         from gl_HEADER_STRING_H_BODY.
54175         (gl_HEADER_STRING_H_BODY): Require it.
54176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54179         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54180         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54181         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54183         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54184         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54185         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54186         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54187         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54188         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54189         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54190         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54191
54192 2007-01-27  Bruno Haible  <bruno@clisp.org>
54193
54194         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54195         check_PROGRAMS into noinst_PROGRAMS.
54196         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54197         check_PROGRAMS in this case.
54198         (func_import): Set for_test to false.
54199         (func_create_testdir): Set for_test to true.
54200
54201 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54202             Bruno Haible  <bruno@clisp.org>
54203
54204         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54205         (Depends-on): Add string.
54206         (Includes): Use <string.h> instead of strcasestr.h.
54207         * modules/string (Makefile.am): Also substitute the value of
54208         REPLACE_STRCASESTR.
54209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54210         assume strcasestr is declared in <string.h> not <strings.h>. Also
54211         set REPLACE_STRCASESTR.
54212         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54213         REPLACE_STRCASESTR.
54214         * lib/strcasestr.h: Remove file.
54215         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54216         * lib/string_.h (strcasestr): New declaration.
54217
54218 2007-01-27  Bruno Haible  <bruno@clisp.org>
54219
54220         * lib/string_.h: Use 'extern'.
54221
54222 2007-01-27  Jim Meyering  <jim@meyering.net>
54223
54224         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54225         of set-but-not-used local, "q".
54226
54227         * lib/mempcpy.c: Include <config.h> before <string.h>.
54228         This fixes a compilation error on HP-UX, due to the system's
54229         "restrict"-using mempcpy prototype.
54230
54231 2007-01-26  Bruno Haible  <bruno@clisp.org>
54232
54233         Small optimization.
54234         * lib/javacomp.c: Include c-strstr.h.
54235          (is_envjavac_gcj): Use c_strstr instead of strstr.
54236         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54237
54238 2007-01-26  Bruno Haible  <bruno@clisp.org>
54239
54240         * MODULES.html.sh (Unicode string functions): Add the new modules.
54241
54242         * modules/uniconv/u32-strconv-to-locale: New file.
54243         * lib/uniconv/u32-strconv-to-locale.c: New file.
54244
54245         * modules/uniconv/u16-strconv-to-locale: New file.
54246         * lib/uniconv/u16-strconv-to-locale.c: New file.
54247
54248         * modules/uniconv/u8-strconv-to-locale: New file.
54249         * lib/uniconv/u8-strconv-to-locale.c: New file.
54250
54251         * modules/uniconv/u32-strconv-from-locale: New file.
54252         * lib/uniconv/u32-strconv-from-locale.c: New file.
54253
54254         * modules/uniconv/u16-strconv-from-locale: New file.
54255         * lib/uniconv/u16-strconv-from-locale.c: New file.
54256
54257         * modules/uniconv/u8-strconv-from-locale: New file.
54258         * lib/uniconv/u8-strconv-from-locale.c: New file.
54259
54260         * modules/uniconv/u32-strconv-to-enc: New file.
54261         * lib/uniconv/u32-strconv-to-enc.c: New file.
54262         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54263         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54264
54265         * modules/uniconv/u16-strconv-to-enc: New file.
54266         * lib/uniconv/u16-strconv-to-enc.c: New file.
54267         * lib/uniconv/u-strconv-to-enc.h: New file.
54268         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54269         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54270
54271         * modules/uniconv/u8-strconv-to-enc: New file.
54272         * lib/uniconv/u8-strconv-to-enc.c: New file.
54273         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54274         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54275
54276         * modules/uniconv/u32-strconv-from-enc: New file.
54277         * lib/uniconv/u32-strconv-from-enc.c: New file.
54278         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54279         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54280
54281         * modules/uniconv/u16-strconv-from-enc: New file.
54282         * lib/uniconv/u16-strconv-from-enc.c: New file.
54283         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54284         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54285
54286         * modules/uniconv/u8-strconv-from-enc: New file.
54287         * lib/uniconv/u8-strconv-from-enc.c: New file.
54288         * lib/uniconv/u-strconv-from-enc.h: New file.
54289         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54290         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54291
54292         * modules/uniconv/u32-conv-from-enc: New file.
54293         * lib/uniconv/u32-conv-from-enc.c: New file.
54294         * modules/uniconv/u32-conv-from-enc-tests: New file.
54295         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54296
54297         * modules/uniconv/u16-conv-from-enc: New file.
54298         * lib/uniconv/u16-conv-from-enc.c: New file.
54299         * lib/uniconv/u-conv-from-enc.h: New file.
54300         * modules/uniconv/u16-conv-from-enc-tests: New file.
54301         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54302
54303         * modules/uniconv/u8-conv-from-enc: New file.
54304         * lib/uniconv/u8-conv-from-enc.c: New file.
54305         * modules/uniconv/u8-conv-from-enc-tests: New file.
54306         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54307
54308         * modules/uniconv/base: New file.
54309         * lib/uniconv.h: New file.
54310
54311 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54312
54313         * doc/gnulib-tool.texi (Initial import): Update to match current
54314         behavior with strdup module.
54315         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54316         * lib/memmem.h: Remove; all uses removed.  This is now done
54317         by <string.h>.
54318         * lib/mempcpy.h: Likewise.
54319         * lib/memrchr.h: Likewise.
54320         * lib/stpcpy.h: Likewise.
54321         * lib/stpncpy.h: Likewise.
54322         * lib/strcase.h: Likewise.
54323         * lib/strchrnul.h: Likewise.
54324         * lib/strdup.h: Likewise.
54325         * lib/strndup.h: Likewise.
54326         * lib/strnlen.h: Likewise.
54327         * lib/strpbrk.h: Likewise.
54328         * lib/strsep.h: Likewise.
54329         * lib/strstr.h: Likewise.
54330         * lib/strtok_r.h: Likewise.
54331         * lib/string_.h: New file.
54332         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54333         Rely on <string.h> instead.
54334         * lib/canon-host.c: Likewise.
54335         * lib/chdir-long.c: Likewise.
54336         * lib/concatpath.c: Likewise.
54337         * lib/exclude.c: Likewise.
54338         * lib/fchdir.c: Likewise.
54339         * lib/getaddrinfo.c: Likewise.
54340         * lib/getcwd.c: Likewise.
54341         * lib/getsubopt.c: Likewise.
54342         * lib/glob.c: Likewise.
54343         * lib/hard-locale.c: Likewise.
54344         * lib/iconvme.c: Likewise.
54345         * lib/javacomp.c: Likewise.
54346         * lib/mempcpy.c: Likewise.
54347         * lib/memrchr.c: Likewise.
54348         * lib/regex_internal.h: Likewise.
54349         * lib/stpncpy.c: Likewise.
54350         * lib/strcasecmp.c: Likewise.
54351         * lib/strchrnul.c: Likewise.
54352         * lib/strdup.c: Likewise.
54353         * lib/striconv.c: Likewise.
54354         * lib/striconveh.c: Likewise.
54355         * lib/striconveha.c: Likewise.
54356         * lib/strncasecmp.c: Likewise.
54357         * lib/strndup.c: Likewise.
54358         * lib/strnlen.c: Likewise.
54359         * lib/strsep.c: Likewise.
54360         * lib/strstr.c: Likewise.
54361         * lib/strtok_r.c: Likewise.
54362         * lib/userspec.c: Likewise.
54363         * lib/w32spawn.h: Likewise.
54364         * lib/xstrndup.c: Likewise.
54365         * lib/mountlist.c (strstr): Remove decl.
54366         * m4/string_h.m4: New file.
54367         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54368         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54369         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54370         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54371         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54372         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54373         Set REPLACE_STRCASECMP if necessary.
54374         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54375         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54376         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54377         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54378         HAVE_DECL_STRDUP if necessary.
54379         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54380         since gl_FUNC_STRNDUP does that now.
54381         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54382         Check for decl here...
54383         (gl_PREREQ_STRNLEN): ... not here.
54384         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54385         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54386         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54387         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54388         necessary.
54389         * modules/string: New file.
54390         * modules/memmem (Files): Remove special-purpose include file.
54391         (Depends-on): Add string.
54392         (Include): Include <string.h>, not the removed file.
54393         * modules/mempcpy: Likewise.
54394         * modules/memrchr: Likewise.
54395         * modules/stpcpy: Likewise.
54396         * modules/stpncpy: Likewise.
54397         * modules/strcase: Likewise.
54398         * modules/strchrnul: Likewise.
54399         * modules/strdup: Likewise.
54400         * modules/strndup: Likewise.
54401         * modules/strnlen: Likewise.
54402         * modules/strpbrk: Likewise.
54403         * modules/strsep: Likewise.
54404         * modules/strstr: Likewise.
54405         * modules/strtok_r: Likewise.
54406         * tests/test-dirname.c: Don't include "strdup.h", since
54407         <string.h> now suffices.
54408         * tests/test-memmem.c: Don't include "memmem.h", since
54409         <string.h> now suffices.
54410
54411 2007-01-25  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54414         *resultp is 0.
54415
54416         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54417         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54418         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54419         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54420
54421         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54422         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54423         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54424         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54425         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54426         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54427
54428 2007-01-24  Bruno Haible  <bruno@clisp.org>
54429
54430         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54432         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54433         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54434         gl_FUNC_FTS_CORE.
54435         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54436         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54437         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54438         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54439         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54440         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54441         gl_FUNC_FCHOWNAT.
54442         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54443         gl_FUNC_STRFTIME.
54444         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54445         Reported by Ralf Wildenhues.
54446
54447 2007-01-24  Bruno Haible  <bruno@clisp.org>
54448
54449         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54450         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54451         gl_GETADDRINFO.
54452         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54453         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54454         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54455
54456 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54457
54458         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54459         Don't use 'exit'; just return from 'main'.
54460         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54461
54462         * lib/fnmatch_.h: Readjust white space and comments to match
54463         glibc, to avoid spurious diffs.
54464
54465 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54466
54467         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54468         2004-12-01 change by Jakub Jelinek, since this code won't compile
54469         if !LIBC.  Problem reported by Bob Proulx.
54470
54471 2007-01-23  Bruno Haible  <bruno@clisp.org>
54472
54473         * lib/striconveh.c: Include c-strcaseeq.h.
54474         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54475         * modules/striconveh (Depends-on): Add c-strcaseeq.
54476
54477 2007-01-23  Bruno Haible  <bruno@clisp.org>
54478
54479         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54480
54481         * modules/c-strcaseeq: New file.
54482         * lib/c-strcaseeq.h: New file.
54483
54484         * modules/streq: New file.
54485         * lib/streq.h: New file.
54486
54487 2007-01-23  Bruno Haible  <bruno@clisp.org>
54488
54489         * modules/striconveha-tests: New file.
54490         * tests/test-striconveha.c: New file.
54491
54492         * lib/striconveha.h: Include <stdbool.h>.
54493         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54494         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54495         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54496         (mem_iconveha): New function.
54497         (str_iconveha_notranslit): Renamed from str_iconveha.
54498         (str_iconveha): New function.
54499         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54500         c-strcase.
54501
54502 2007-01-23  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54505         encodings without forgiving before trying any encoding with handler.
54506         (str_iconveha): Try all encodings without forgiving before trying any
54507         encoding with handler.
54508
54509 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         Import the following changes from libc.
54512
54513         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54514
54515         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54516
54517         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54518
54519         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54520         normal_bracket label.
54521
54522         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54523
54524         [BZ #361]
54525         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54526         to normal_bracket after fetching the next character.
54527
54528 2007-01-22  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54531         argument.
54532         * lib/striconveh.c (iconv_carefully_1): New function.
54533         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54534         argument.
54535         (str_cd_iconveh): Update.
54536         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54537         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54538         * tests/test-striconveh.c (MAGIC): New macro.
54539         (new_offsets): New function.
54540         (main): Test call with and without offsets.
54541
54542 2007-01-22  Bruno Haible  <bruno@clisp.org>
54543
54544         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54545         * modules/sys_select (Makefile.am): Likewise.
54546         * modules/sys_socket (Makefile.am): Likewise.
54547         * modules/sys_time (Makefile.am): Likewise.
54548
54549 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54550
54551         * modules/gettimeofday (License): Change from GPL to LGPL, since
54552         gettimeofday is a library function.
54553
54554 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54555
54556         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54557
54558 2007-01-21  Bruno Haible  <bruno@clisp.org>
54559
54560         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54561
54562 2007-01-21  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/striconveha: New file.
54565         * lib/striconveha.h: New file.
54566         * lib/striconveha.c: New file.
54567         * MODULES.html.sh (Internationalization functions): Add striconveha.
54568         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54569         string.
54570         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54571
54572 2007-01-21  Bruno Haible  <bruno@clisp.org>
54573
54574         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54575         * lib/striconveh.c (str_iconveh): Likewise.
54576
54577 2007-01-21  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/striconveh.h (mem_iconveh): New declaration.
54580         * lib/striconveh.c (mem_iconveh): New function.
54581         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54582
54583 2007-01-21  Bruno Haible  <bruno@clisp.org>
54584
54585         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54586
54587         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54588         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54589         original result buffer.
54590         (str_cd_iconveh): Update.
54591         * tests/test-striconveh.c (main): Update.
54592
54593         * lib/striconv.h (mem_cd_iconv): Change specification.
54594         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54595         result buffer.
54596         (str_cd_iconv): Update.
54597         * tests/test-striconv.c (main): Update.
54598
54599 2007-01-21  Bruno Haible  <bruno@clisp.org>
54600
54601         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54602
54603 2007-01-20  Jim Meyering  <jim@meyering.net>
54604
54605         * lib/userspec.c (parse_with_separator): If a user or group string
54606         starts with "+", skip the corresponding name-to-ID look-up, since
54607         such a look-up must fail: user and group names may not include "+".
54608
54609 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54610
54611         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54612         since we now assume the sys_time module.
54613         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54614         check for sys/time.h; no longer needed.
54615         * modules/poll (Depends-on): Depend on sys_time.
54616
54617 2007-01-18  Bruno Haible  <bruno@clisp.org>
54618
54619         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54620         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54621
54622         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54623         gettimeofday.
54624
54625         * tests/test-gettimeofday.c: Include <time.h>.
54626         (dummy): Remove variable.
54627
54628         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54629         gl_HEADER_SYS_TIME_H.
54630         (gl_HEADER_SYS_TIME_H): New macro.
54631
54632         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54633         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54635         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54636         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54637         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54638         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54639         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54640         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54641         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54642         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54643
54644         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54645         last change; it caused a compilation error when cross-compiling to
54646         Cygwin.
54647
54648 2007-01-18  Jim Meyering  <jim@meyering.net>
54649
54650         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54651         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54652         than the race-prone "test -d sys || mkdir sys".
54653         (configure.ac): Use AC_PROG_MKDIR_P.
54654         * modules/sys_select: Likewise.
54655         * modules/sys_socket: Likewise.
54656         * modules/sys_time: Likewise.
54657
54658 2007-01-18  Eric Blake  <ebb9@byu.net>
54659
54660         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54661         replace gettimeofday.
54662         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54663         name, to avoid infinite recursion.
54664
54665 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54668         module sys_time.
54669         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54670         assume timespec.h defines struct timeval.
54671         * lib/settime.c: Likewise.
54672         * lib/utimens.c: Likewise.
54673         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54674         since we now assume the gettimeofday module.
54675         * lib/tempname.c (__gen_tempname): Likewise.
54676         * lib/gettimeofday.h: Remove.
54677         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54678         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54679         Include <time.h>, for 'time()'.
54680         (localtime_buffer_addr): Also use this workaround if
54681         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54682         to simplify the uses.  All uses changed.
54683         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54684         that #undef is inside {}, and 'const' follows type name consistently.
54685         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54686         (gettimeofday): Do not use the maximum possible value for
54687         tv->tv_usec, since that might break usages other than ls.c.
54688         Instead, we'll leave ls.c alone.  This undoes today's patch
54689         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54690         we've never observed the problem but might as well keep the
54691         canary.
54692         * lib/nanosleep.c: Include timespec.h first, for interface check.
54693         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54694         now assume the sys_time module.
54695         * lib/tempname.c: Likewise.
54696         * lib/timespec.h: Likewise.
54697         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54698         needed.
54699         * lib/strftime.c: Likewise.
54700         * lib/timespec.h: Likewise.
54701         * lib/posixtm.c: Include posixtm.h first, for interface check.
54702         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54703         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54704         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54705         * lib/sys_time_.h: New file.
54706         * lib/timespec.h (struct timespec): Use long int, not long.
54707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54708         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54709         Remove obsolescent call to AC_HEADER_TIME.
54710         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54711         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54712         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54713         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54714         Likewise.
54715         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54716         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54718         into the sys_time module.  Check for gettimeofday just once.
54719         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54720         for gettimeofday signature to just check the signature.  Merely
54721         compile it, since linking doesn't test signature.  Improve test for
54722         whether gettimeofday.o is actually needed.
54723         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54724         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54725         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54726         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54727         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54728         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54729         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54730         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54731         than worrying about sys/time.h.
54732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54733         Don't bother worrying about TIME_WITH_SYS_TIME.
54734         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54735         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54736         * m4/sys_time_h.m4: New file.
54737         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54738         Don't include sys/time.h.  Return from main rather than exiting.
54739         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54740         all uses changed.
54741         * modules/gethrxtime (Depends-on): Add sys_time.
54742         * modules/gettime (Depends-on): Likewise.
54743         * modules/gettimeofday (Depends-on): Likewise.
54744         * modules/nanosleep (Depends-on): Likewise.
54745         * modules/settime (Depends-on): Likewise.
54746         * modules/tempname (Depends-on): Likewise.
54747         * modules/utimens (Depends-on): Likewise.
54748         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54749         (Include): Change back to <sys/time.h>.
54750         (Maintainer): Add self.
54751         * modules/sys_time: New file.
54752         * modules/tempname (Depends-on): Add gettimeofday.
54753         * tests/test-gettimeofday.c: Include <sys/time.h>
54754         rather than gettimeofday.h.
54755
54756 2007-01-17  Bruno Haible  <bruno@clisp.org>
54757
54758         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54759         the license default to GPL.
54760         (func_create_testdir): Don't complain if a module is LGPL and its
54761         tests module depends on GPLed modules.
54762
54763 2007-01-17  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/gettimeofday.c (gettimeofday): Add code for the case
54766         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54767         maximum possible value for tv->tv_usec, rather than the minimum one.
54768
54769 2005-10-08  Martin Lambers  <marlam@marlam.de>
54770 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54771 2007-01-16  Bruno Haible  <bruno@clisp.org>
54772
54773         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54774         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54775         gl_FUNC_GETTIMEOFDAY.
54776         (Include): Add gettimeofday.h.
54777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54778         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54779         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54780         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54781         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54782         * lib/gettimeofday.h: New file.
54783         * lib/gettimeofday.c: Include <sys/timeb.h>.
54784         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54785         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54786         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54787         fall back on time().
54788
54789         * tests/test-gettimeofday.c: New file.
54790         * modules/gettimeofday-tests: New file.
54791
54792 2007-01-16  Eric Blake  <ebb9@byu.net>
54793
54794         * modules/fnmatch (Depends-on): Depend on wchar.
54795         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54796         * m4/fnmatch.m4: Likewise.
54797         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54798         * m4/mbchar.m4: Likewise.
54799         * modules/mbswidth (Depends-on): Depend on wchar.
54800         * lib/mbswidth.c: Assume <wchar.h>.
54801         * m4/mbswidth.m4: Likewise.
54802         * modules/quotearg (Depends-on): Depend on wchar.
54803         * lib/quotearg.c: Assume <wchar.h>.
54804         * m4/quotearg.m4: Likewise.
54805         * modules/regex (Depends-on): Depend on wchar.
54806         * lib/regex_internal.h: Assume <wchar.h>.
54807         * m4/regex.m4: Likewise.
54808         * modules/stdint (Depends-on): Depend on wchar.
54809         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54810         * m4/stdint.m4: Likewise.
54811         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54812         * modules/strftime (Depends-on): Depend on wchar.
54813         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54814         * modules/strtol (Depends-on): Depend on wchar.
54815         * lib/strtol.c: Assume <wchar.h>.
54816         * modules/wcwidth (Depends-on): Depend on wchar.
54817         * lib/wcwidth.h: Assume <wchar.h>.
54818         * m4/wcwidth.m4: Likewise.
54819
54820 2007-01-16  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/csharpexec-script: New, created from...
54823         * modules/csharpexec: ... this.
54824
54825 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54826
54827         * modules/javaexec-script: New, created from...
54828         * modules/javaexec: ... this.
54829
54830 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54831
54832         * modules/poll (Dependencies): Add sys_select.
54833
54834 2007-01-15  Jim Meyering  <jim@meyering.net>
54835
54836         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54837         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54838         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54839         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54840
54841 2007-01-15  Bruno Haible  <bruno@clisp.org>
54842
54843         * modules/striconveh: New file.
54844         * lib/striconveh.h: New file.
54845         * lib/striconveh.c: New file.
54846         * MODULES.html.sh (Internationalization functions): Add striconveh.
54847
54848         * modules/striconveh-tests: New file.
54849         * tests/test-striconveh.c: New file.
54850
54851 2007-01-15  Bruno Haible  <bruno@clisp.org>
54852
54853         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54854         not from GNU libiconv or GNU libc.
54855
54856 2007-01-15  Bruno Haible  <bruno@clisp.org>
54857
54858         * doc/gnulib-intro.texi (Copyright): Explain the different license
54859         terms for module descriptions, autoconf macros, tests, documentation.
54860
54861 2007-01-14  Bruno Haible  <bruno@clisp.org>
54862
54863         * modules/striconv-tests: New file.
54864         * tests/test-striconv.c: New file.
54865
54866 2007-01-14  Bruno Haible  <bruno@clisp.org>
54867
54868         * modules/iconv-tests: New file.
54869         * tests/test-iconv.c: New file.
54870
54871 2007-01-14  Bruno Haible  <bruno@clisp.org>
54872
54873         * gnulib-tool (func_get_license): For test modules, use the license of
54874         the main module.
54875
54876 2007-01-14  Bruno Haible  <bruno@clisp.org>
54877
54878         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54879         if iconv is found to exist.
54880
54881 2007-01-14  Bruno Haible  <bruno@clisp.org>
54882
54883         * modules/c-ctype-tests: New file.
54884         * tests/test-c-ctype.c: New file.
54885
54886 2007-01-14  Bruno Haible  <bruno@clisp.org>
54887
54888         * modules/binary-io-tests: New file.
54889         * tests/test-binary-io.sh: New file.
54890         * tests/test-binary-io.c: New file.
54891
54892 2007-01-14  Bruno Haible  <bruno@clisp.org>
54893
54894         * modules/array-oset-tests: New file.
54895         * tests/test-array_oset.c: New file.
54896
54897 2007-01-14  Bruno Haible  <bruno@clisp.org>
54898
54899         * modules/array-list-tests: New file.
54900         * tests/test-array_list.c: New file.
54901
54902 2007-01-14  Bruno Haible  <bruno@clisp.org>
54903
54904         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54905         and make.
54906         Reported by Simon Josefsson in
54907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54908
54909 2007-01-14  Bruno Haible  <bruno@clisp.org>
54910
54911         * modules/allocsa-tests: New file.
54912         * tests/test-allocsa.c: New file.
54913
54914 2007-01-14  Bruno Haible  <bruno@clisp.org>
54915
54916         * modules/fchdir (Depends-on): Add absolute-header.
54917         * modules/unistd (Depends-on): Likewise.
54918
54919 2006-12-30  Bruno Haible  <bruno@clisp.org>
54920
54921         * modules/fchdir: New file.
54922         * modules/unistd (Files): Add lib/unistd_.h.
54923         (Makefile.am): Generate unistd.h from unistd_.h.
54924         * lib/fchdir.c: New file.
54925         * lib/dirent_.h: New file.
54926         * lib/unistd_.h: New file.
54927         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54928         * m4/fchdir.m4: New file.
54929         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54930         (gl_HEADER_UNISTD): Invoke it.
54931         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54932         function.
54933         * lib/backupfile.c (opendir, closedir): Undefine.
54934         * lib/chown.c (open, close): Undefine.
54935         * lib/clean-temp.c (open, close): Undefine.
54936         * lib/copy-file.c (open, close): Undefine.
54937         * lib/execute.c (open, close): Undefine.
54938         * lib/fsusage.c (open, close): Undefine.
54939         * lib/gc-gnulib.c (open, close): Undefine.
54940         * lib/getcwd.c (opendir, closedir): Undefine.
54941         * lib/glob.c (opendir, closedir): Undefine.
54942         * lib/javacomp.c (open, close): Undefine.
54943         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54944         * lib/openat-proc.c (open, close): Undefine.
54945         * lib/pagealign_alloc.c (open, close): Undefine.
54946         * lib/pipe.c (open, close): Undefine.
54947         * lib/progreloc.c (open, close): Undefine.
54948         * lib/savedir.c (opendir, closedir): Undefine.
54949         * lib/utime.c (open, close): Undefine.
54950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54951
54952 2007-01-10  Bruno Haible  <bruno@clisp.org>
54953
54954         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54955
54956 2007-01-12  Eric Blake  <ebb9@byu.net>
54957
54958         Provide a robust <wchar.h>.  Further simplifications are now
54959         possible in other modules, but not included here.
54960         * modules/wchar: New module.
54961         * m4/wchar.m4: New file.
54962         * lib/wchar_.h: Likewise.
54963         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54964         of the new module.
54965         * MODULES.html.sh (Extended multibyte and wide character utilities):
54966         New section.
54967
54968 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54969
54970         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54971         to a reasonable default for memory allocation.
54972         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54973         file system that reports garbage st_size values for symlinks.
54974         Problem reported by Liyang Hu.
54975
54976 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54977
54978         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54979         Emacs .#* auto-save files).
54980
54981 2007-01-11  Bruno Haible  <bruno@clisp.org>
54982
54983         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54984         directory.
54985
54986 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54987
54988         Use @...@ consistently in lib/wctype_.h.
54989         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54990         on it being set to 1 or 0.
54991         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54992         go back to AC_SUBSTing it.
54993         * modules/wctype (Makefile.am): Undo previous change.
54994
54995 2007-01-10  Eric Blake  <ebb9@byu.net>
54996
54997         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54998         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54999         * modules/wctype (Makefile.am): Likewise.
55000         Reported by Chris McGuire.
55001
55002 2007-01-10  Jim Meyering  <jim@meyering.net>
55003
55004         fts.c: a small readability/maintainability improvement
55005         * lib/fts.c (fts_read): Make this code slightly more readable and
55006         maintainable by hoisting the "sp->fts_cur = p" assignments to
55007         immediately follow the statements that set P.  Derived from
55008         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55009
55010 2007-01-10  Eric Blake  <ebb9@byu.net>
55011
55012         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55013         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55015         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55016         Reported by Chris McGuire.
55017
55018 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55019
55020         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55021         in sed script.
55022
55023 2007-01-09  Bruno Haible  <bruno@clisp.org>
55024
55025         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55026         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55027         variables.
55028         (func_module): Use them.
55029
55030 2007-01-09  Bruno Haible  <bruno@clisp.org>
55031
55032         * modules/unistr/base: New file.
55033         * lib/unistr.h: New file.
55034
55035         * modules/unistr/u8-to-u16: New file.
55036         * lib/unistr/u8-to-u16.c: New file.
55037
55038         * modules/unistr/u8-to-u32: New file.
55039         * lib/unistr/u8-to-u32.c: New file.
55040
55041         * modules/unistr/u16-to-u8: New file.
55042         * lib/unistr/u16-to-u8.c: New file.
55043
55044         * modules/unistr/u16-to-u32: New file.
55045         * lib/unistr/u16-to-u32.c: New file.
55046
55047         * modules/unistr/u32-to-u8: New file.
55048         * lib/unistr/u32-to-u8.c: New file.
55049
55050         * modules/unistr/u32-to-u16: New file.
55051         * lib/unistr/u32-to-u16.c: New file.
55052
55053         * modules/unistr/u8-check: New file.
55054         * modules/unistr/u16-check: New file.
55055         * modules/unistr/u32-check: New file.
55056         * lib/unistr/u8-check.c: New file.
55057         * lib/unistr/u16-check.c: New file.
55058         * lib/unistr/u32-check.c: New file.
55059
55060         * modules/unistr/u8-chr: New file.
55061         * modules/unistr/u16-chr: New file.
55062         * modules/unistr/u32-chr: New file.
55063         * lib/unistr/u8-chr.c: New file.
55064         * lib/unistr/u16-chr.c: New file.
55065         * lib/unistr/u32-chr.c: New file.
55066
55067         * modules/unistr/u8-cmp: New file.
55068         * modules/unistr/u16-cmp: New file.
55069         * modules/unistr/u32-cmp: New file.
55070         * lib/unistr/u8-cmp.c: New file.
55071         * lib/unistr/u16-cmp.c: New file.
55072         * lib/unistr/u32-cmp.c: New file.
55073
55074         * modules/unistr/u8-cpy: New file.
55075         * modules/unistr/u16-cpy: New file.
55076         * modules/unistr/u32-cpy: New file.
55077         * lib/unistr/u8-cpy.c: New file.
55078         * lib/unistr/u16-cpy.c: New file.
55079         * lib/unistr/u32-cpy.c: New file.
55080         * lib/unistr/u-cpy.h: New file.
55081
55082         * modules/unistr/u8-cpy-alloc: New file.
55083         * modules/unistr/u16-cpy-alloc: New file.
55084         * modules/unistr/u32-cpy-alloc: New file.
55085         * lib/unistr/u8-cpy-alloc.c: New file.
55086         * lib/unistr/u16-cpy-alloc.c: New file.
55087         * lib/unistr/u32-cpy-alloc.c: New file.
55088         * lib/unistr/u-cpy-alloc.h: New file.
55089
55090         * modules/unistr/u8-endswith: New file.
55091         * modules/unistr/u16-endswith: New file.
55092         * modules/unistr/u32-endswith: New file.
55093         * lib/unistr/u8-endswith.c: New file.
55094         * lib/unistr/u16-endswith.c: New file.
55095         * lib/unistr/u32-endswith.c: New file.
55096         * lib/unistr/u-endswith.h: New file.
55097
55098         * modules/unistr/u8-mblen: New file.
55099         * modules/unistr/u16-mblen: New file.
55100         * modules/unistr/u32-mblen: New file.
55101         * lib/unistr/u8-mblen.c: New file.
55102         * lib/unistr/u16-mblen.c: New file.
55103         * lib/unistr/u32-mblen.c: New file.
55104
55105         * modules/unistr/u8-mbtouc: New file.
55106         * modules/unistr/u16-mbtouc: New file.
55107         * modules/unistr/u32-mbtouc: New file.
55108         * lib/unistr/u8-mbtouc.c: New file.
55109         * lib/unistr/u16-mbtouc.c: New file.
55110         * lib/unistr/u32-mbtouc.c: New file.
55111
55112         * modules/unistr/u8-mbtouc-safe: New file.
55113         * modules/unistr/u16-mbtouc-safe: New file.
55114         * modules/unistr/u32-mbtouc-safe: New file.
55115         * lib/unistr/u8-mbtouc-safe.c: New file.
55116         * lib/unistr/u16-mbtouc-safe.c: New file.
55117         * lib/unistr/u32-mbtouc-safe.c: New file.
55118
55119         * modules/unistr/u8-move: New file.
55120         * modules/unistr/u16-move: New file.
55121         * modules/unistr/u32-move: New file.
55122         * lib/unistr/u8-move.c: New file.
55123         * lib/unistr/u16-move.c: New file.
55124         * lib/unistr/u32-move.c: New file.
55125         * lib/unistr/u-move.h: New file.
55126
55127         * modules/unistr/u8-next: New file.
55128         * modules/unistr/u16-next: New file.
55129         * modules/unistr/u32-next: New file.
55130         * lib/unistr/u8-next.c: New file.
55131         * lib/unistr/u16-next.c: New file.
55132         * lib/unistr/u32-next.c: New file.
55133
55134         * modules/unistr/u8-prev: New file.
55135         * modules/unistr/u16-prev: New file.
55136         * modules/unistr/u32-prev: New file.
55137         * lib/unistr/u8-prev.c: New file.
55138         * lib/unistr/u16-prev.c: New file.
55139         * lib/unistr/u32-prev.c: New file.
55140
55141         * modules/unistr/u8-set: New file.
55142         * modules/unistr/u16-set: New file.
55143         * modules/unistr/u32-set: New file.
55144         * lib/unistr/u8-set.c: New file.
55145         * lib/unistr/u16-set.c: New file.
55146         * lib/unistr/u32-set.c: New file.
55147         * lib/unistr/u-set.h: New file.
55148
55149         * modules/unistr/u8-startswith: New file.
55150         * modules/unistr/u16-startswith: New file.
55151         * modules/unistr/u32-startswith: New file.
55152         * lib/unistr/u8-startswith.c: New file.
55153         * lib/unistr/u16-startswith.c: New file.
55154         * lib/unistr/u32-startswith.c: New file.
55155         * lib/unistr/u-startswith.h: New file.
55156
55157         * modules/unistr/u8-stpcpy: New file.
55158         * modules/unistr/u16-stpcpy: New file.
55159         * modules/unistr/u32-stpcpy: New file.
55160         * lib/unistr/u8-stpcpy.c: New file.
55161         * lib/unistr/u16-stpcpy.c: New file.
55162         * lib/unistr/u32-stpcpy.c: New file.
55163         * lib/unistr/u-stpcpy.h: New file.
55164
55165         * modules/unistr/u8-stpncpy: New file.
55166         * modules/unistr/u16-stpncpy: New file.
55167         * modules/unistr/u32-stpncpy: New file.
55168         * lib/unistr/u8-stpncpy.c: New file.
55169         * lib/unistr/u16-stpncpy.c: New file.
55170         * lib/unistr/u32-stpncpy.c: New file.
55171         * lib/unistr/u-stpncpy.h: New file.
55172
55173         * modules/unistr/u8-strcat: New file.
55174         * modules/unistr/u16-strcat: New file.
55175         * modules/unistr/u32-strcat: New file.
55176         * lib/unistr/u8-strcat.c: New file.
55177         * lib/unistr/u16-strcat.c: New file.
55178         * lib/unistr/u32-strcat.c: New file.
55179         * lib/unistr/u-strcat.h: New file.
55180
55181         * modules/unistr/u8-strchr: New file.
55182         * modules/unistr/u16-strchr: New file.
55183         * modules/unistr/u32-strchr: New file.
55184         * lib/unistr/u8-strchr.c: New file.
55185         * lib/unistr/u16-strchr.c: New file.
55186         * lib/unistr/u32-strchr.c: New file.
55187
55188         * modules/unistr/u8-strcmp: New file.
55189         * modules/unistr/u16-strcmp: New file.
55190         * modules/unistr/u32-strcmp: New file.
55191         * lib/unistr/u8-strcmp.c: New file.
55192         * lib/unistr/u16-strcmp.c: New file.
55193         * lib/unistr/u32-strcmp.c: New file.
55194
55195         * modules/unistr/u8-strcpy: New file.
55196         * modules/unistr/u16-strcpy: New file.
55197         * modules/unistr/u32-strcpy: New file.
55198         * lib/unistr/u8-strcpy.c: New file.
55199         * lib/unistr/u16-strcpy.c: New file.
55200         * lib/unistr/u32-strcpy.c: New file.
55201         * lib/unistr/u-strcpy.h: New file.
55202
55203         * modules/unistr/u8-strcspn: New file.
55204         * modules/unistr/u16-strcspn: New file.
55205         * modules/unistr/u32-strcspn: New file.
55206         * lib/unistr/u8-strcspn.c: New file.
55207         * lib/unistr/u16-strcspn.c: New file.
55208         * lib/unistr/u32-strcspn.c: New file.
55209         * lib/unistr/u-strcspn.h: New file.
55210
55211         * modules/unistr/u8-strdup: New file.
55212         * modules/unistr/u16-strdup: New file.
55213         * modules/unistr/u32-strdup: New file.
55214         * lib/unistr/u8-strdup.c: New file.
55215         * lib/unistr/u16-strdup.c: New file.
55216         * lib/unistr/u32-strdup.c: New file.
55217         * lib/unistr/u-strdup.h: New file.
55218
55219         * modules/unistr/u8-strlen: New file.
55220         * modules/unistr/u16-strlen: New file.
55221         * modules/unistr/u32-strlen: New file.
55222         * lib/unistr/u8-strlen.c: New file.
55223         * lib/unistr/u16-strlen.c: New file.
55224         * lib/unistr/u32-strlen.c: New file.
55225         * lib/unistr/u-strlen.h: New file.
55226
55227         * modules/unistr/u8-strmblen: New file.
55228         * modules/unistr/u16-strmblen: New file.
55229         * modules/unistr/u32-strmblen: New file.
55230         * lib/unistr/u8-strmblen.c: New file.
55231         * lib/unistr/u16-strmblen.c: New file.
55232         * lib/unistr/u32-strmblen.c: New file.
55233
55234         * modules/unistr/u8-strmbtouc: New file.
55235         * modules/unistr/u16-strmbtouc: New file.
55236         * modules/unistr/u32-strmbtouc: New file.
55237         * lib/unistr/u8-strmbtouc.c: New file.
55238         * lib/unistr/u16-strmbtouc.c: New file.
55239         * lib/unistr/u32-strmbtouc.c: New file.
55240
55241         * modules/unistr/u8-strncat: New file.
55242         * modules/unistr/u16-strncat: New file.
55243         * modules/unistr/u32-strncat: New file.
55244         * lib/unistr/u8-strncat.c: New file.
55245         * lib/unistr/u16-strncat.c: New file.
55246         * lib/unistr/u32-strncat.c: New file.
55247         * lib/unistr/u-strncat.h: New file.
55248
55249         * modules/unistr/u8-strncmp: New file.
55250         * modules/unistr/u16-strncmp: New file.
55251         * modules/unistr/u32-strncmp: New file.
55252         * lib/unistr/u8-strncmp.c: New file.
55253         * lib/unistr/u16-strncmp.c: New file.
55254         * lib/unistr/u32-strncmp.c: New file.
55255
55256         * modules/unistr/u8-strncpy: New file.
55257         * modules/unistr/u16-strncpy: New file.
55258         * modules/unistr/u32-strncpy: New file.
55259         * lib/unistr/u8-strncpy.c: New file.
55260         * lib/unistr/u16-strncpy.c: New file.
55261         * lib/unistr/u32-strncpy.c: New file.
55262         * lib/unistr/u-strncpy.h: New file.
55263
55264         * modules/unistr/u8-strnlen: New file.
55265         * modules/unistr/u16-strnlen: New file.
55266         * modules/unistr/u32-strnlen: New file.
55267         * lib/unistr/u8-strnlen.c: New file.
55268         * lib/unistr/u16-strnlen.c: New file.
55269         * lib/unistr/u32-strnlen.c: New file.
55270         * lib/unistr/u-strnlen.h: New file.
55271
55272         * modules/unistr/u8-strpbrk: New file.
55273         * modules/unistr/u16-strpbrk: New file.
55274         * modules/unistr/u32-strpbrk: New file.
55275         * lib/unistr/u8-strpbrk.c: New file.
55276         * lib/unistr/u16-strpbrk.c: New file.
55277         * lib/unistr/u32-strpbrk.c: New file.
55278         * lib/unistr/u-strpbrk.h: New file.
55279
55280         * modules/unistr/u8-strrchr: New file.
55281         * modules/unistr/u16-strrchr: New file.
55282         * modules/unistr/u32-strrchr: New file.
55283         * lib/unistr/u8-strrchr.c: New file.
55284         * lib/unistr/u16-strrchr.c: New file.
55285         * lib/unistr/u32-strrchr.c: New file.
55286
55287         * modules/unistr/u8-strspn: New file.
55288         * modules/unistr/u16-strspn: New file.
55289         * modules/unistr/u32-strspn: New file.
55290         * lib/unistr/u8-strspn.c: New file.
55291         * lib/unistr/u16-strspn.c: New file.
55292         * lib/unistr/u32-strspn.c: New file.
55293         * lib/unistr/u-strspn.h: New file.
55294
55295         * modules/unistr/u8-strstr: New file.
55296         * modules/unistr/u16-strstr: New file.
55297         * modules/unistr/u32-strstr: New file.
55298         * lib/unistr/u8-strstr.c: New file.
55299         * lib/unistr/u16-strstr.c: New file.
55300         * lib/unistr/u32-strstr.c: New file.
55301         * lib/unistr/u-strstr.h: New file.
55302
55303         * modules/unistr/u8-strtok: New file.
55304         * modules/unistr/u16-strtok: New file.
55305         * modules/unistr/u32-strtok: New file.
55306         * lib/unistr/u8-strtok.c: New file.
55307         * lib/unistr/u16-strtok.c: New file.
55308         * lib/unistr/u32-strtok.c: New file.
55309         * lib/unistr/u-strtok.h: New file.
55310
55311         * modules/unistr/u8-uctomb: New file.
55312         * modules/unistr/u16-uctomb: New file.
55313         * modules/unistr/u32-uctomb: New file.
55314         * lib/unistr/u8-uctomb.c: New file.
55315         * lib/unistr/u16-uctomb.c: New file.
55316         * lib/unistr/u32-uctomb.c: New file.
55317
55318         * MODULES.html.sh (Unicode string functions): Add the new modules.
55319
55320 2007-01-08  Bruno Haible  <bruno@clisp.org>
55321
55322         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55323         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55324         subdirectories.
55325
55326 2007-01-08  Karl Berry  <karl@gnu.org>
55327
55328         * doc/error.texi: mention that main() fns must set program_name
55329         when progname is used.
55330
55331 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55332
55333         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55334         WCTYPE_H is empty, for the benefit of builds from non-distclean
55335         directories.  Problem reported by Eric Blake in
55336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55337
55338 2007-01-08  Bruno Haible  <bruno@clisp.org>
55339
55340         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55341         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55342         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55343         PROVIDE_CANONICALIZE_FILENAME_MODE.
55344         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55345
55346 2007-01-08  Bruno Haible  <bruno@clisp.org>
55347
55348         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55349         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55350         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55351         * lib/fts.c: Likewise.
55352         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55353
55354 2006-12-25  Bruno Haible  <bruno@clisp.org>
55355
55356         * modules/utf8-ucs4-safe: New file.
55357         * lib/utf8-ucs4-safe.h: New file.
55358         * lib/unistr/utf8-ucs4-safe.c: New file.
55359
55360         * modules/utf16-ucs4-safe: New file.
55361         * lib/utf16-ucs4-safe.h: New file.
55362         * lib/unistr/utf16-ucs4-safe.c: New file.
55363
55364         * MODULES.html.sh (Unicode string functions): Add the new modules.
55365
55366 2007-01-08  Bruno Haible  <bruno@clisp.org>
55367
55368         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55369         (Depends-on): Add unitypes.
55370         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55371         (u8_mbtouc_aux): Move out to separate file.
55372         (u8_mbtouc): Use ucs4_t, uint8_t types.
55373         * lib/unistr/utf8-ucs4.c: New file.
55374
55375         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55376         (Depends-on): Add unitypes.
55377         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55378         (u16_mbtouc_aux): Move out to separate file.
55379         (u16_mbtouc): Use ucs4_t, uint16_t types.
55380         * lib/unistr/utf16-ucs4.c: New file.
55381
55382         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55383         (Depends-on): Add unitypes.
55384         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55385         (u8_uctomb_aux): Move out to separate file.
55386         (u8_uctomb): Use ucs4_t, uint8_t types.
55387         * lib/unistr/ucs4-utf8.c: New file.
55388
55389         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55390         (Depends-on): Add unitypes.
55391         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55392         (u16_uctomb_aux): Move out to separate file.
55393         (u16_uctomb): Use ucs4_t, uint16_t types.
55394         * lib/unistr/ucs4-utf16.c: New file.
55395
55396 2006-12-25  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/unitypes: New file.
55399         * lib/unitypes.h: New file.
55400         * MODULES.html.sh (func_all_modules): New section "Unicode string
55401         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55402         this section. Add unitypes.
55403
55404 2007-01-08  Bruno Haible  <bruno@clisp.org>
55405
55406         Avoid variable names that conflict with those from libtool.
55407         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55408         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55409         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55410         library_names_spec to acl_library_names_spec, hardcode_* to
55411         acl_hardcode_*.
55412         Reported by Ralf Wildenhues.
55413
55414 2007-01-08  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55417         definition.
55418         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55419         definition.
55420         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55421         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55422         definition.
55423         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55424         definition.
55425         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55426         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55427         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55428         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55429         definition.
55430         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55431         definition.
55432         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55433         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55434         GC_USE_<algorithm>.
55435         * lib/gc-libgcrypt.c: Likewise.
55436         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55437         * modules/gc-arctwo (configure.ac): Likewise.
55438         * modules/gc-des (configure.ac): Likewise.
55439         * modules/gc-hmac-md5 (configure.ac): Likewise.
55440         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55441         * modules/gc-md2 (configure.ac): Likewise.
55442         * modules/gc-md4 (configure.ac): Likewise.
55443         * modules/gc-md5 (configure.ac): Likewise.
55444         * modules/gc-random (configure.ac): Likewise.
55445         * modules/gc-rijndael (configure.ac): Likewise.
55446         * modules/gc-sha1 (configure.ac): Likewise.
55447
55448 2007-01-08  Bruno Haible  <bruno@clisp.org>
55449
55450         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55451         macro definition.
55452         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55453         definition.
55454         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55455         definition.
55456         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55457         * modules/fcntl-safer (configure.ac): Likewise.
55458         * modules/fopen-safer (configure.ac): Likewise.
55459         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55460         GNULIB_FWRITEERROR macro definition.
55461
55462 2007-01-08  Bruno Haible  <bruno@clisp.org>
55463
55464         * m4/gnulib-common.m4: New file.
55465         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55466         (func_get_filelist): Add m4/gnulib-common.m4.
55467
55468 2007-01-08  Bruno Haible  <bruno@clisp.org>
55469
55470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55471         command.
55472
55473 2007-01-08  Jim Meyering  <jim@meyering.net>
55474
55475         Use a more robust test for a "can't happen" condition.
55476         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55477         narrowed the st_size value.  Presuming the "can't happen" condition
55478         is true, that narrowing could conceivably convert an invalid st_size
55479         value into a valid one.  Instead, use a change based on Matthew
55480         Woehlke's original patch.
55481
55482         Slight readability improvement: use an assert-like macro
55483         in place of literal "abort ()" uses.
55484         * lib/fts.c (fts_assert): Define.
55485         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55486         Use this macro instead of a bare 'abort'.
55487
55488 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55489
55490         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55491         simply work around them.
55492         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55493         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55494         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55495         declaring.
55496         Don't bother to define as macros, since the standard doesn't require it.
55497         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55498         longer worry about IRIX 5.3.
55499         (HAVE_WCTYPE_CTMP_BUG): Remove.
55500
55501 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55504         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55505         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55506         Problems reported by Georg Schwarz for IRIX 5.3.
55507
55508         * gnulib-tool (autoconf_minversion): Take the maximum version number
55509         found, not the minimum.  Problem reported by James Youngman.
55510
55511 2007-01-03  Karl Berry  <karl@gnu.org>
55512
55513         * doc/error.texi: new file, explaining interaction with progname.
55514         * doc/gnulib.texi: include it.  Update copyright.
55515
55516 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55517
55518         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55519         AC_CANONICAL_HOST, to improve autobuild outputs.
55520
55521 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55522             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55523
55524         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55525         sockets, server sockets, and other file descriptors.  Count errors
55526         to compute the return value.  Reorder the code a bit to be easier
55527         to follow.  Don't set event bits that were not requested (except
55528         POLLERR and POLLHUP).
55529
55530 2007-01-01  Bruno Haible  <bruno@clisp.org>
55531
55532         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55533
55534 2007-01-03  Jim Meyering  <jim@meyering.net>
55535
55536         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55537
55538 2007-01-02  Bruno Haible  <bruno@clisp.org>
55539
55540         * modules/settime (Include): Require timespec.h.
55541         * modules/nanosleep (Include): Likewise.
55542
55543 2007-01-01  Bruno Haible  <bruno@clisp.org>
55544
55545         * gnulib-tool (func_emit_copyright_notice): Bump year.
55546         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55547
55548 2007-01-01  Bruno Haible  <bruno@clisp.org>
55549
55550         Improve support for OpenBSD.
55551         * build-aux/config.rpath (libname_spec): Export.
55552         (library_names_spec): New variable. Export.
55553         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55554         library_names_spec from the config.rpath output. Locate shared library
55555         through the name pattern in library_names_spec.
55556
55557 2007-01-01  Eric Blake  <ebb9@byu.net>
55558
55559         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55560
55561 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55562
55563         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55564         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55565         assume the C locale, and avoid an "eval" that could cause trouble.
55566         Problem with SORT reported by Bob Proulx.
55567
55568         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55569         Define.  Trivial patch from Henning Nielsen Lund, originally
55570         sent to bug-grep@gnu.org today.
55571
55572 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55575         struct stat.  Problem reported by Henning Nielsen Lund.
55576         * lib/acl.c: Include acl.h first, to check interface.  Don't
55577         bother to include sys/types.h and sys/stat.h again.
55578
55579 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55580
55581         Import the following change from libc; problem reported by
55582         Sven Verdoolaege.
55583
55584         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55585
55586         [BZ #1373]
55587         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55588
55589 2006-12-28  Jim Meyering  <jim@meyering.net>
55590
55591         * build-aux/announce-gen: Do not assume that the package
55592         builds any of tar.gz, tar.bz2, and .xdelta files.
55593         Suggestion from Simon Josefsson.
55594
55595 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55596
55597         * modules/announce-gen: New file.
55598
55599 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55600
55601         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55602         handles its gotchas now.
55603         * lib/mbswidth.c: Likewise.
55604         * lib/wcwidth.h: Likewise.
55605         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55606         and iswcntrl; the wctype module does this stuff now.
55607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55609         * modules/mbchar (Depends-on): Add wctype.
55610         * modules/mbswidth (Depends-on): Likewise.
55611         * modules/wcwidth (Depends-on): Likewise.
55612
55613 2006-12-27  Eric Blake  <ebb9@byu.net>
55614
55615         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55616         module uses more than what <wctype.h> is required to provide.
55617
55618 2006-12-26  Eric Blake  <ebb9@byu.net>
55619
55620         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55621
55622 2006-12-26  Eric Blake  <ebb9@byu.net>
55623
55624         * modules/absolute-header: New module.
55625         * modules/fcntl (Depends-on): Depend on it.
55626         * modules/inttypes (Depends-on): Likewise.
55627         * modules/stdint (Depends-on): Likewise.
55628         * modules/sys_stat (Depends-on): Likewise.
55629         * modules/wctype (Depends-on): Likewise.
55630         * MODULES.html.sh (Support for building libraries and
55631         executables): Document it.
55632
55633 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         * gnulib-tool (SED): Remove, undoing previous change.
55636         The problem was that it broke coreutils on Solaris, because
55637         "sed --posix" leaked into a makefile.
55638         (sed): New alias, if 'alias' and GNU sed.
55639
55640 2006-12-24  Jim Meyering  <jim@meyering.net>
55641
55642         Work around an fchownat bug in glibc-2.4:
55643         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55644         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55645         in spite of the -P option.
55646         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55647         New macros.
55648         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55649         * modules/openat (Files): Add lib/fchownat.c.
55650         * lib/openat.c (fchownat): Don't define here.  Move to...
55651         * lib/fchownat.c: ...this new file.
55652
55653 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55654
55655         Fix bug reported by Bruno Haible in
55656         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55657         where quotearg.c didn't compile on Mac OS X 10.2 because it
55658         lacks <wchar.h> and wint_t.
55659         * lib/wctype_.h (__wctype_wint_t): New type.
55660         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55661         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55662         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55663         Arg is now of type __wctype_wint_t, not wint_t.
55664         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55665         substitute HAVE_WINT_T.
55666         * modules/wctype (Files): Add m4/wint_t.m4.
55667         (wctype.h): Substitute HAVE_WINT_T.
55668
55669 2006-12-23  Bruno Haible  <bruno@clisp.org>
55670
55671         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55672
55673 2006-12-23  Bruno Haible  <bruno@clisp.org>
55674
55675         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55676         S_ISLNK.
55677         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55678         mingw.
55679
55680 2006-12-22  Bruno Haible  <bruno@clisp.org>
55681
55682         * lib/copy-file.c: Include acl.h.
55683         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55684         Close the file descriptors only after being done with copy_acl.
55685         * modules/copy-file (Depends-on): Add acl.
55686
55687 2006-12-22  Bruno Haible  <bruno@clisp.org>
55688
55689         * gnulib-tool (SED): New variable.
55690         Use $SED instead of sed everywhere.
55691
55692 2006-12-22  Bruno Haible  <bruno@clisp.org>
55693
55694         * modules/no-c++: New file.
55695         * m4/no-c++.m4: New file.
55696         * MODULES.html.sh (Support for building libraries and executables):
55697         Add no-c++.
55698
55699 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55702         Include <limits.h>, and use its INT_MAX to rewrite the
55703         j loop so that it does not overflow 'int'.  Problem reported by
55704         Ralf Wildenhues in
55705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55706         Play it safe by shifting left by 1 rather than multiplying by 2,
55707         as GCC is less likely to optimize this away when the value
55708         is signed (when it assumes overflow leads to undefined behavior).
55709         Also, don't assume time_t uses two's complement.
55710
55711 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55712
55713         * MODULES.html.sh: New module wctype.
55714         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55715         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55716         <wctype.h>, since the new wctype module should fix this.
55717         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55718         the wctype module should arrange for it.
55719         * lib/regex_internal.h: Likewise.
55720         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55721         since the wctype module should handle this now.
55722         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55723         * modules/fnmatch (Depends-on): Add wctype.
55724         * modules/quotearg (Depends-on): Likewise.
55725         * modules/regex (Depends-on): Likewise.
55726
55727 2006-12-19  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55730         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55731
55732 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55733
55734         * modules/savewd (Depends-on): Fix dependency on fcntl.
55735
55736 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55737
55738         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55739         conforms to C99, rather than relying on the user's environment
55740         setting of STDINT_H.
55741
55742 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55743         and Eric Blake  <ebb9@byu.net>
55744
55745         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55746         This is more consistent with the other defines here.
55747         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55748         Port to z/OS.  Problem reported by Paul Gilmartin.
55749         Change local vars to use gl_ prefix rather than ac_.
55750         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55751         with other defines.
55752         * modules/double-slash-root: New module.
55753         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55754         (Depends-on): Add double-slash-root.
55755         * MODULES.html.sh (File system functions): Mention new module.
55756
55757 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55758
55759         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55760         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55761         This is for the benefit of gzip, which doesn't do i18n.
55762
55763 2006-12-12  Jim Meyering  <jim@meyering.net>
55764
55765         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55766         Reported by Andreas Schwab <schwab@suse.de>.
55767
55768 2006-12-12  Bruno Haible  <bruno@clisp.org>
55769
55770         Merge these changes.
55771         2006-09-05  Bruno Haible  <bruno@clisp.org>
55772         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55773         iconv_alloc succeeded.
55774         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55775         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55776         test for " && dest " at the end - dest is always != NULL there. Call
55777         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55778         with 2xNULL arguments, also to flush the state storage. Handle the
55779         IRIX iconv behaviour. Realloc the final result, to throw away unused
55780         memory.
55781
55782 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55783
55784         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55785         and fchmodat unconditionally, since glibc 2.4 has them.
55786         Problem reported by Arkadiusz Miskiewicz.
55787
55788 2006-12-10  Bruno Haible  <bruno@clisp.org>
55789
55790         * gnulib-tool (func_import): Show the include files only for those
55791         modules that are copied and specified.
55792         Reported by Karl Berry.
55793
55794 2006-12-08  Jim Meyering  <jim@meyering.net>
55795
55796         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55797         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55798
55799         * build-aux/announce-gen: Add two new options, both optional:
55800         --bootstrap-tools=TOOL_LIST
55801               a comma-separated list of tools, e.g.,
55802               autoconf,automake,bison,gnulib
55803         --gnulib-snapshot-date=DATE
55804               if gnulib is in the bootstrap tool list,
55805               then report this as the snapshot date.
55806               If not specified, use the current date/time.
55807               If you specify a date here, be sure it's UTC.
55808
55809 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55810
55811         * tests/test-argp-2.sh: Fix test to match actual output.
55812         (func_compare): Fix sed script to be portable.
55813
55814 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55815
55816         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55817         workaround for this case.  It is not autoconfigured now; offhand
55818         it's hard to see how to autoconfigure it.
55819
55820 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55821
55822         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55823         a directory that is about to be chowned.  Such a directory's
55824         initial file permissions should permit the owner only and this
55825         should not be changed until after the chown, since the group and
55826         other bits would be incorrect if they granted permission before
55827         the chown.
55828
55829         Fix porting problem for iswctype reported by Georg Schwarz in:
55830         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55831         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55832         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55834         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55835
55836 2006-12-03  Jim Meyering  <jim@meyering.net>
55837
55838         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55839         p->fts_statp may not yet be defined.
55840         (fts_read): Instead, set it in the caller, once p->fts_statp is
55841         sure to be defined, and corresponds to a top-level directory.
55842         This bug made du -x fail.  Here's the coreutils test case:
55843         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55844         Reported by Mike Frysinger.
55845
55846 2006-12-01  Jim Meyering  <jim@meyering.net>
55847
55848         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55849         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55850         Reported by Simon Josefsson.
55851
55852 2006-11-30  Jim Meyering  <jim@meyering.net>
55853
55854         * m4/warning.m4: Use the all-permissive copyright notice
55855         recommended by RMS (rather than LGPL).
55856         * m4/vararrays.m4: Likewise.
55857         * m4/flexmember.m4: Likewise.
55858
55859 2006-11-29  Bruno Haible  <bruno@clisp.org>
55860
55861         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55862         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55863         using +=.
55864         Reported by Simon Josefsson <simon@josefsson.org>.
55865
55866 2006-11-28  James Youngman <jay@gnu.org>
55867
55868         * README: Advise users that they might find the bug-gnulib@gnu.org
55869         and autotools-announce@gnu.org mailing lists useful.
55870
55871 2006-11-28  Bruno Haible  <bruno@clisp.org>
55872
55873         * m4/ptrdiff_max.m4: Remove file.
55874
55875 2006-11-21  Bruno Haible  <bruno@clisp.org>
55876
55877         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55878         _AC_COMPUTE_INT.
55879         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55880         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55881         _AC_COMPUTE_INT.
55882         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55883         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55884         _AC_COMPUTE_INT.
55885         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55886
55887 2006-11-28  Jim Meyering  <jim@meyering.net>
55888
55889         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55890         warning from "gcc -Wshadow" about shadowing the builtin.
55891
55892 2006-11-27  Bruno Haible  <bruno@clisp.org>
55893
55894         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55895         _AC_COMPUTE_INT.
55896         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55897
55898 2006-11-27  Bruno Haible  <bruno@clisp.org>
55899             Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55902
55903 2006-11-26  Bruno Haible  <bruno@clisp.org>
55904
55905         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55906         noinst_LTLIBRARIES.
55907
55908 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55909             Bruno Haible  <bruno@clisp.org>
55910
55911         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55912         if compiling with "gcc -ansi".
55913
55914 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         Fix some incompatibilities with gcc -ansi -pedantic.
55917         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55918         if compiling pedantically with GCC, unless it's C99 or later.
55919         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55920         it mishandles gcc -ansi -pedantic as well.
55921         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55922         if gcc -pedantic.
55923         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55924         initializers for struct if -pedantic, unless it's C99 or later.
55925
55926 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55927
55928         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55929         Don't close an fd more than once. Identical atimes indicate
55930         success, not failure.
55931
55932 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55933
55934         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55935
55936 2006-11-23  Jim Meyering  <jim@meyering.net>
55937
55938         * build-aux/announce-gen: New file.  From coreutils.
55939
55940 2006-11-22  Jim Meyering  <jim@meyering.net>
55941
55942         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55943         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55944         (fts_read): Use a temporary to narrow the overused st_size member
55945         before using it in a switch statement.  Reported by Matthew Woehlke.
55946
55947         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55949
55950 2006-11-20  Bruno Haible  <bruno@clisp.org>
55951
55952         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55953         changequote instead of pairs of brackets.
55954         Reported by Andreas Schwab <schwab@suse.de>.
55955
55956 2006-11-21  Jim Meyering  <jim@meyering.net>
55957
55958         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55959         so as to remain compatible with older compilers.
55960         Patch from Michael Deutschmann.
55961
55962 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55963
55964         * MODULES.html.sh (File system functions): Add openat.
55965
55966         * lib/openat.h (rpl_fstatat): New macro, if
55967         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55968         (fstatat): Define to rpl_fstatat under the same conditions,
55969         unless COMPILING_FSTATAT.
55970         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55971         seems to have the bug.
55972         * lib/fstatat.c: New file.
55973         * modules/openat (Files): Add it.
55974
55975 2006-11-20  Bruno Haible  <bruno@clisp.org>
55976
55977         * Makefile: New file.
55978
55979 2006-11-20  Jim Meyering  <jim@meyering.net>
55980
55981         The beginnings of syntax-related checks for gnulib.
55982         * lib/Makefile: New file.
55983         * lib/t-idcache: New script.  Ensure that the two halves of
55984         idcache.c stay in sync.
55985
55986         * lib/idcache.c: Adjust comments in user- and group- portions to
55987         be more accurate, and to be consistent with one another.
55988
55989 2006-11-20  Jim Meyering  <jim@meyering.net>
55990
55991         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55992         continue using the flexible array member (thus, this module performs
55993         half as many malloc calls), with the addition that...
55994         (getgroup, getuser): Consistently record a non-match via an empty
55995         "name" string, and map an empty string match to a NULL return value.
55996         * modules/idcache (Depends-on): Re-add flexmember.
55997
55998         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55999         (getuidbyname, getgroup, getgidbyname): Likewise.
56000
56001         Use cleaner syntax: NULL rather than 0.
56002         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56003
56004 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56005
56006         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56007         It mishandled the case where the group was missing.
56008         Problem reported by Greg Schafer.
56009         * modules/idcache: Likewise.
56010
56011 2006-11-18  Jim Meyering  <jim@meyering.net>
56012
56013         * check-module (%exempt_header): Add exception for some
56014         conditionally-included headers.
56015
56016         * modules/i-ring (Depends-on): Add verify.
56017         (License): Change to LGPL.
56018
56019 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56020
56021         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56022         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56023         and inttostr.h.  Use snprintf rather than uinttostr, so that
56024         LGPLed code doesn't depend on GPLed.
56025
56026 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56027
56028         * modules/inline (License): Change from GPL to LGPL.
56029
56030 2006-11-17  Jim Meyering  <jim@meyering.net>
56031
56032         * modules/d-type (License): Switch to LGPL.
56033
56034 2006-11-15  Bruno Haible  <bruno@clisp.org>
56035
56036         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56037
56038 2006-11-15  Eric Blake  <ebb9@byu.net>
56039
56040         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56041         the module dependency.
56042
56043 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56044             Bruno Haible  <bruno@clisp.org>
56045
56046         * gnulib-tool (func_create_testdir): Add license consistency check.
56047
56048 2006-11-15  Eric Blake  <ebb9@byu.net>
56049
56050         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56051         random "(cached)" in configure output.
56052
56053 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56054
56055         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56056         test for conforming inttypes.h is both announced and cached.
56057
56058         * MODULES.html.sh (seen_modules, seen_files): New variables.
56059         (func_module): Rewrite to use a few less gnulib-tool and sed
56060         invocations.  Avoid a couple of quadratic algorithms for ...
56061         (missed_modules, missed_files): ... these, with ...
56062         (func_append, func_tmpdir): ... these new functions, from
56063         gnulib-tool.  Analogously, install traps for cleanup.
56064
56065         * tests/test-gc.c (main): Remove unused variables.
56066         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56067
56068 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56069
56070         * modules/inttostr (License): Change to LGPL.
56071
56072 2006-11-14  Eric Blake  <ebb9@byu.net>
56073
56074         * modules/tempname (License): Change to LGPL.
56075
56076 2006-11-14  Eric Blake  <ebb9@byu.net>
56077
56078         * doc/functions.texi (Function Portability): *printf functions on
56079         Cygwin now understand all POSIX size specifiers.
56080
56081 2006-11-14  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/c-ctype (License): Change to LGPL.
56084
56085 2006-11-12  Bruno Haible  <bruno@clisp.org>
56086
56087         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56088         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56089         for GNOME libraries, for which the include files are installed in
56090         subdirectories of $prefix/include.
56091
56092 2006-11-12  Bruno Haible  <bruno@clisp.org>
56093
56094         * m4/lib-link.m4: Require at least autoconf-2.54.
56095         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56096         name to underscores for the --with option.
56097
56098 2006-11-13  Bruno Haible  <bruno@clisp.org>
56099
56100         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56101         the tests directory.
56102         Reported by Ralf Wildenhues.
56103
56104 2006-11-13  Bruno Haible  <bruno@clisp.org>
56105
56106         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56107         (func_emit_initmacro_end): Undo the override here.
56108         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56109         Works around the famous automake error in coreutils.
56110
56111 2006-11-13  Eric Blake  <ebb9@byu.net>
56112
56113         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56114         element, not its node.
56115
56116 2006-11-12  Bruno Haible  <bruno@clisp.org>
56117
56118         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56119         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56120
56121 2006-11-12  Bruno Haible  <bruno@clisp.org>
56122
56123         * gnulib-tool: New option --local-symlink.
56124         (func_usage): Document it.
56125         (lsymbolic): New variable.
56126         (func_import, func_create_testdir): If --symlink was not specified,
56127         test whether --local-symlink was specified and the file comes from
56128         the local_gnulib_dir.
56129
56130 2006-11-12  Bruno Haible  <bruno@clisp.org>
56131
56132         * gnulib-tool (func_ln): New function.
56133         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56134
56135 2006-11-12  Bruno Haible  <bruno@clisp.org>
56136
56137         Finish support for source files in subdirectories.
56138         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56139         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56140         AUTOMAKE_OPTIONS.
56141         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56142
56143 2006-11-12  Bruno Haible  <bruno@clisp.org>
56144
56145         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56146         EXTRA_lib_SOURCES augmentation.
56147         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56148
56149 2006-11-12  Jim Meyering  <jim@meyering.net>
56150
56151         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56152         file descriptors.  This also averts a failure on systems with
56153         native openat support when a traversed directory lacks "x" access.
56154         * lib/fts_.h: Include "i-ring.h"
56155         (struct FTS) [fts_fd_ring]: New member.
56156         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56157         (FCHDIR): Add parentheses.
56158         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56159         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56160         When descending, rather than simply closing the previous
56161         fts_cwd_fd value, push that file descriptor onto the ring.
56162         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56163         (fts_open): Initialize the new fd_ring member.
56164         (fts_close): Clear the ring.
56165         (fts_safe_changedir): When possible, use our new fd_ring to skip
56166         the diropen and fstat and dev/ino comparison that would normally
56167         accompany a virtual `chdir ("..")'.
56168
56169         * modules/fts (Depends-on): Add i-ring.
56170         * modules/i-ring: New module.
56171         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56172         * m4/i-ring.m4: New file.
56173
56174 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56175
56176         * gnulib-tool (func_create_testdir): Fix replacement of
56177         `build-aux' in configure.ac.  Run autotools in gltests
56178         subdirectory.
56179         (func_create_testdir, func_create_megatestdir, test): There is
56180         no need for '--force' in most autotool invocations in a new
56181         tree.  Actually fail the whole test if any of the tools, or the
56182         configure or make stages fail.
56183
56184         Sync from Automake.
56185         * build-aux/gnupload: Revert last change.  Add pointer to upload
56186         instructions of the GNU Maintenance Instructions.
56187         Suggestion by Karl Berry.
56188
56189 2006-11-10  Jim Meyering  <jim@meyering.net>
56190
56191         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56192
56193 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56194
56195         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56196         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56197         (bind_textdomain_codeset) [! ENABLE_NLS]:
56198         Evaluate all the arguments.  That way, callers get compatible behavior
56199         if the arguments have side effects.  Also, it avoids some GCC
56200         diagnostics in some cases; Joel E. Denny reported problems when Bison
56201         was configured with --enable-gcc-warnigs.
56202
56203 2006-11-10  Jim Meyering  <jim@meyering.net>
56204
56205         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56206         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56207         account.
56208
56209 2006-11-10  Jim Meyering  <jim@meyering.net>
56210
56211         * modules/inline: New file/module.
56212         * modules/xalloc (Files): Remove m4/inline.m4.
56213         (Depends-on): Add inline, instead.
56214         * modules/oset: Likewise.
56215         * modules/list: Likewise.
56216
56217 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56218
56219         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56220         Problem reported by Matthew Woehlke.
56221
56222 2006-11-09  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/tempname.c (gen_tempname): Remove variant that invokes
56225         __gen_tempname.
56226         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56227         __gen_tempname.
56228
56229 2006-11-08  Bruno Haible  <bruno@clisp.org>
56230
56231         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56232         to 'yes' instead of 'cross-compiling'.
56233
56234 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56235
56236         * lib/quotearg.h (quotearg_free): New decl.
56237         * lib/quotearg.c (quotearg_free): New function.
56238         (slot0, nslots, slotvec0, slotvec):
56239         Now file-scope so that quotearg_free can get at them.
56240
56241 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56242
56243         Sync from Automake.
56244         * build-aux/gnupload: Add missing 'gnu' to example URL.
56245         Report by Karl Berry.
56246
56247 2006-11-08  Bruno Haible  <bruno@clisp.org>
56248
56249         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56250         Suggested by Paul Eggert.
56251
56252 2006-11-08  Jim Meyering  <jim@meyering.net>
56253
56254         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56255         It's already included if !_LIBC.
56256         (fts_safe_changedir): Add a comment.
56257
56258 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56259
56260         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56261         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56262         Matthew Woehlke.
56263
56264         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56265         definitions up, to avoid colliding with change below.
56266         (static_inline) [HAVE_INLINE]: New macro.
56267         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56268         Provide extern decls when !HAVE_INLINE.  Do not define unless
56269         static_inline is defined, either by us or by xmalloc.c.  Use
56270         static_inline rather than static inline.
56271         (XCALLOC): Optimize sizeof(T) = 1 case.
56272         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56273
56274 2006-11-07  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56277         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56278         AC_C_INLINE.
56279         * modules/xalloc (Files): Add m4/inline.m4.
56280
56281 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56282
56283         * README: Fix typo.
56284         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56285         (Miscellanous Notes): ...from this.
56286
56287 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56290         Mention that offsetof should be used instead of sizeof.
56291         From Bruno Haible.
56292
56293 2006-11-07  Bruno Haible  <bruno@clisp.org>
56294
56295         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56296
56297 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56300         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56301         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56302         (gl_tree_add_before, gl_tree_add_after):
56303         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56304         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56305         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56306         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56307         (gl_linked_add_after, gl_linked_add_at): Likewise.
56308         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56309         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56310         (gl_tree_add_before, gl_tree_add_after): Likewise.
56311         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56312         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56313         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56314
56315 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56316
56317         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56318
56319 2006-11-06  Bruno Haible  <bruno@clisp.org>
56320
56321         * m4/inline.m4: New file.
56322         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56323         * modules/list (Files): Add m4/inline.m4.
56324         * modules/oset (Files): Likewise.
56325
56326 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56327
56328         * lib/idcache.c: Include <stddef.h>, for offsetof.
56329         (struct userid.name): Change from char * to a flexible array member.
56330         All uses changed.
56331         * modules/idcache (Depends-on): Add flexmember.
56332
56333         * MODULES.html.sh (Core language properties): New module flexmember.
56334         * modules/flexmember, m4/flexmember.m4: New files.
56335
56336         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56337         inline functions that are identical with the old xnmalloc_inline,
56338         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56339         that we can avoid some unnecessary integer multiplications and
56340         divisions in the common case where the element size is known at
56341         compile time.
56342         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56343         needed.
56344         (xnboundedmalloc): Remove.
56345         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56346         arguments, for consistency with rest of this header.
56347         (xcharalloc): Rewrite using XNMALLOC.
56348         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56349         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56350         versions have been moved to lib/xalloc.h and renamed to be the
56351         non-*_inline versions.
56352         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56353         and xnrealloc functions, since those functions are now inline and
56354         now call us.
56355         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56356         renaming described above.
56357         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56358         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56359         captures the dependency in AC_C_INLINE.
56360
56361         New module canonicalize-lgpl, proposed by Charles Wilson in
56362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56363         with a few small changes afterwards.
56364         * MODULES.html.sh (File system functions): New module
56365         canonicalize-lgpl.
56366         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56367         and canonicalize_file_name.
56368         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56369         * modules/canonicalize-lgpl: New files.
56370
56371 2006-11-05  Bruno Haible  <bruno@clisp.org>
56372
56373         * gnulib-tool (func_import, func_create_testdir): Create directories
56374         also for files in subdirectories of lib/.
56375
56376 2006-11-05  Bruno Haible  <bruno@clisp.org>
56377
56378         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56379         ANSI C compliant.
56380
56381 2006-11-03  Bruno Haible  <bruno@clisp.org>
56382
56383         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56384         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56385         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56386         (xnboundedmalloc): New inline function.
56387         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56388         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56389         xmalloc.
56390         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56391         xmalloc.
56392         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56393         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56394         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56395         xmalloc.
56396         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56397         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56398         xmalloc.
56399         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56400         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56401         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56402         xmalloc.
56403         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56404         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56405         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56406         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56407         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56408         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56409         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56410
56411 2006-11-03  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/c-ctype.h [C++]: Define functions without name mangling.
56414         * lib/fwriteerror.h [C++]: Likewise.
56415         * lib/gcd.h [C++]: Likewise.
56416         * lib/linebreak.h [C++]: Likewise.
56417
56418 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56419
56420         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56421         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56422         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56423         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56424         Check for functions and headers just once.
56425         Check for declaration of canonicalize_file_name.
56426         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56427
56428 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56429
56430         * gnulib-tool (func_import): Fix typo in actioncmd.
56431
56432 2006-11-02  Bruno Haible  <bruno@clisp.org>
56433
56434         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56435         newline sequence in the Makefile.am snippet as a space, like "make"
56436         does.
56437         Reported by Roger Persson <perrog@gmail.com>.
56438
56439 2006-11-01  Bruno Haible  <bruno@clisp.org>
56440
56441         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56442         already declared in <string.h>.
56443         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56444
56445 2006-11-01  Bruno Haible  <bruno@clisp.org>
56446
56447         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56448         * lib/strcase.h: Include <string.h>.
56449         (strcasecmp): Define to rpl_strcasecmp here.
56450
56451 2006-11-01  Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56454
56455 2006-11-01  Eric Blake  <ebb9@byu.net>
56456
56457         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56458
56459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56460
56461 2006-10-29  Bruno Haible  <bruno@clisp.org>
56462
56463         Make it compile in C++ mode.
56464         * lib/full-write.c (full_rw): Add a cast.
56465
56466 2006-11-01  Bruno Haible  <bruno@clisp.org>
56467
56468         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56469         be POSIX compliant.
56470         Reported by Roger Persson <perrog@gmail.com>.
56471
56472 2006-11-01  Eric Blake  <ebb9@byu.net>
56473
56474         * lib/getopt_.h: Fix comments.
56475
56476 2006-10-31  Eric Blake  <ebb9@byu.net>
56477
56478         * modules/tmpdir (Depends-on): Add sys_stat.
56479         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56480         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56481         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56482         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56483         tempname.
56484
56485 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56486
56487         Avoid some C++ diagnostics reported by Bruno Haible.
56488         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56489         xmalloc.
56490         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56491         (struct slotvec): Move to top level.
56492         (quotearg_n_options): Rewrite to avoid xmalloc.
56493         * lib/xalloc.h (xcharalloc): New function.
56494         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56495         [defined __cplusplus]: Add function template that provides result
56496         type propagation.  This part of the change is from Bruno Haible.
56497
56498 2006-10-29  Bruno Haible  <bruno@clisp.org>
56499
56500         Make it compile in C++ mode.
56501         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56502         * lib/strnlen1.c (strnlen1): Cast memchr result.
56503         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56504         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56505         (create_temp_dir): Rename local variable 'template'.
56506         (compile_csharp_using_sscli): Add cast.
56507         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56508         * lib/findprog.c (find_in_path): Likewise.
56509         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56510         * lib/wait-process.c (register_slave_subprocess): Likewise.
56511
56512 2006-10-22  Bruno Haible  <bruno@clisp.org>
56513
56514         * modules/tsearch: New file.
56515         * lib/tsearch.h: New file.
56516         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56517         * m4/tsearch.m4: New file.
56518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56519
56520 2006-10-29  Eric Blake  <ebb9@byu.net>
56521
56522         * lib/arcfour.c: Assume config.h.
56523         * lib/arctwo.c: Likewise.
56524         * lib/base64.c: Likewise.
56525         * lib/check-version.c: Likewise.
56526         * lib/crc.c: Likewise.
56527         * lib/des.c: Likewise.
56528         * lib/gc-gnulib.c: Likewise.
56529         * lib/gc-libgcrypt.c: Likewise.
56530         * lib/gc-pbkdf2-sha1.c: Likewise.
56531         * lib/getaddrinfo.c: Likewise.
56532         * lib/getdelim.c: Likewise.
56533         * lib/getline.c: Likewise.
56534         * lib/hmac-md5.c: Likewise.
56535         * lib/hmac-sha1.c: Likewise.
56536         * lib/iconvme.c: Likewise.
56537         * lib/md2.c: Likewise.
56538         * lib/md4.c: Likewise.
56539         * lib/memxor.c: Likewise.
56540         * lib/read-file.c: Likewise.
56541         * lib/readline.c: Likewise.
56542         * lib/rijndael-alg-fst.c: Likewise.
56543         * lib/rijndael-api-fst.c: Likewise.
56544         * lib/xgetdomainname.c: Likewise.
56545
56546 2006-10-28  Eric Blake  <ebb9@byu.net>
56547
56548         * lib/xstrndup.c: Assume config.h.
56549
56550 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56553         stat-macros.h is now for our own macros, whereas stat_h is for
56554         macros in the <sys/stat.h> name space.
56555         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56556         (STAT_MACROS_H): Remove.
56557         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56558         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56559         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56560         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56561         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56562         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56563         Move these macros to ...
56564         * lib/stat_.h: here.  Don't include stat-macros.h.
56565         * lib/canonicalize.c: Don't include stat-macros.h.
56566         * lib/chown.c: Likewise.
56567         * lib/euidaccess.c: Likewise.
56568         * lib/file-type.c: Likewise.
56569         * lib/filemode.c: Likewise.
56570         * lib/glob.c: Likewise.
56571         * lib/isapipe.c: Likewise.
56572         * lib/lchown.c: Likewise.
56573         * lib/lstat.c: Likewise.
56574         * lib/mkdir-p.c: Likewise.
56575         * lib/rmdir.c: Likewise.
56576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56578         unless mkdir isn't declared, to speed up 'configure'.
56579         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56580         would define all the S_* symbols.
56581         * modules/canonicalize (Depends-on):
56582         Depend on sys_stat, not stat-macros.
56583         * modules/chown: Likewise.
56584         * modules/euidaccess: Likewise.
56585         * modules/filemode: Likewise.
56586         * modules/file-type: Likewise.
56587         * modules/glob: Likewise.
56588         * modules/isapipe: Likewise.
56589         * modules/lchown: Likewise.
56590         * modules/lstat: Likewise.
56591         * modules/mkancesdirs: Likewise.
56592         * modules/rmdir: Likewise.
56593         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56594         * modules/modechange: Likewise.
56595         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56596         (configure.ac): Remove gl_STAT_MACROS.
56597         * modules/sys_stat (Depends-on): Remove stat-macros.
56598
56599 2006-10-27  Bruno Haible  <bruno@clisp.org>
56600
56601         * m4/signed.m4: Remove file.
56602         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56603         invocation.
56604         * modules/vasnprintf (Files): Remove m4/signed.m4.
56605
56606 2006-10-27  Bruno Haible  <bruno@clisp.org>
56607
56608         Update to GNU gettext 0.16.
56609         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56610         m4/inttypes-h.m4, m4/signed.m4.
56611         * m4/gettext.m4: Update to GNU gettext 0.16.
56612         * m4/intl.m4: New file, from GNU gettext.
56613         * m4/intldir.m4: New file, from GNU gettext.
56614         * config/srclist.txt: Update
56615
56616 2006-10-27  Eric Blake  <ebb9@byu.net>
56617
56618         * MODULES.html.sh: Document tempname.
56619         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56620         dependencies.
56621         (Files): Move lib/tempname.c...
56622         * modules/tempname: ...to this new module.
56623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56624         (gl_PREREQ_TEMPNAME): Move...
56625         * m4/tempname.m4: ...to this new file.
56626         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56627         * modules/sys_stat (Depends-on): Add stat-macros.
56628         * lib/stat_.h (includes): Pick up stat macros.
56629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56630         if stat macros are broken.
56631         * lib/tempname.c (includes): No need to include "stat-macros.h".
56632         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56633         (direxists, __path_search) [!_LIBC]: Don't compile these in
56634         gnulib; the tmpdir module covers that.
56635         * lib/tempname.h: New file.
56636
56637 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56638
56639         * COPYING: Explain how gnulib-tool converts licence headers.
56640         Almost all wording by Eric Blake.
56641
56642 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56643
56644         * lib/mbchar.h (is_basic_table): Make read-only.
56645         * lib/mbchar.c (is_basic_table): Likewise.
56646         Reported by John Darrington.
56647
56648 2006-10-25  Bruno Haible  <bruno@clisp.org>
56649
56650         * lib/progname.h (set_program_name): Undefine before defining.
56651
56652 2006-10-25  Bruno Haible  <bruno@clisp.org>
56653
56654         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56655         false for non-gcc C++ compilers.
56656         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56657
56658 2006-10-24  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56661         iconv implementations like Irix iconv.
56662
56663 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         * modules/vararrays: New file.
56666         * m4/vararrays.m4: New file, taken from diffutils.
56667         * MODULES.html.sh: New module vararrays.
56668
56669 2006-10-24  Karl Berry  <karl@gnu.org>
56670
56671         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56672         Don't call GNU Unix.
56673
56674 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56675
56676         * users.txt: Add Libtool.
56677
56678         Sync from Libtool:
56679
56680         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56683         to gnulib's policy of including config.h unconditionally.
56684
56685 2006-10-24  Bruno Haible  <bruno@clisp.org>
56686
56687         * modules/wcwidth (Files): Add m4/wint_t.m4.
56688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56689         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56690
56691 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56692
56693         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56694         to pacify GCC with some -W flags enabled.  Problem reported by
56695         Bruno Haible.
56696
56697 2006-10-24  Jim Meyering  <jim@meyering.net>
56698
56699         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56700         Reported by Karl Berry.
56701
56702 2006-10-23  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56705
56706 2006-10-24  Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/gl_list.h: Use C comment style, not C++ comment style.
56709
56710 2006-10-23  Eric Blake  <ebb9@byu.net>
56711
56712         * lib/getaddrinfo.c (includes): Add missing include.
56713
56714 2006-10-23  Bruno Haible  <bruno@clisp.org>
56715             Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         Ability to rename obstack_free.
56718         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56719         obstack_free.
56720         (obstack_free): Invoke the __obstack_free macro.
56721         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56722
56723 2006-10-23  Bruno Haible  <bruno@clisp.org>
56724             Paul Eggert  <eggert@cs.ucla.edu>
56725
56726         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56727         __argc, __argv from the declaration. (They are defined as macros on
56728         mingw.)
56729
56730 2006-10-22  Bruno Haible  <bruno@clisp.org>
56731
56732         * doc/gnulib-intro.texi: New file.
56733         * doc/gnulib.texi: Include it.
56734
56735 2006-10-21  Bruno Haible  <bruno@clisp.org>
56736
56737         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56738         "Introduction", "Miscellanous Notes", "Particular Modules".
56739
56740 2006-10-21  Bruno Haible  <bruno@clisp.org>
56741
56742         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56743         Change mostlyclean-local rule to avoid sh syntax error from bash
56744         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56745
56746 2006-10-23  Jim Meyering  <jim@meyering.net>
56747
56748         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56749         in place of snprintf.
56750
56751         * modules/inttostr (Files): Add lib/uinttostr.c.
56752         * lib/uinttostr.c (inttostr): New file/function.
56753         * lib/inttostr.h (uinttostr): Declare.
56754         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56755         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56756         Add uinttostr.
56757         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56758
56759 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56760
56761         * lib/canonicalize.c (ELOOP): Define if not already defined.
56762         Problem reported by Bruno Haible in
56763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56764
56765 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56766
56767         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56768         Problem reported by Perry Smith and Ville Laurikari.
56769
56770         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56771         uses.
56772
56773 2006-10-19  Bruno Haible  <bruno@clisp.org>
56774
56775         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56776         for mingw.
56777
56778 2006-10-19  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56781         Needed for mingw.
56782
56783 2006-10-19  Bruno Haible  <bruno@clisp.org>
56784
56785         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56786
56787 2006-10-19  Bruno Haible  <bruno@clisp.org>
56788
56789         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56790         it.
56791
56792 2006-10-19  Bruno Haible  <bruno@clisp.org>
56793
56794         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56795         invocation.
56796
56797 2006-10-19  Bruno Haible  <bruno@clisp.org>
56798
56799         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56800         mountlist by default.
56801
56802 2006-10-16  Bruno Haible  <bruno@clisp.org>
56803
56804         * lib/c-strstr.c: Include c-strstr.h.
56805
56806 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56807
56808         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56809         in a slash.
56810
56811 2006-10-18  Bruno Haible  <bruno@clisp.org>
56812
56813         * lib/lock.h [C++]: Wrap definitions in extern "C".
56814
56815 2006-10-18  Bruno Haible  <bruno@clisp.org>
56816
56817         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56818         gl_LIBOBJS list.
56819
56820 2006-10-18  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56823
56824 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56825
56826         * lib/xstrtol.h: Include gettext.h.
56827         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56828         Problem reported by Eric Blake.
56829         * modules/xstrtol (Depends-on): Add gettext-h.
56830
56831 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56832
56833         * lib/strftime.c (advance): New macro.
56834         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56835         incomplete type, so you can't add 0 to it.  Problem and patch
56836         reported by Eelco Dolstra for dietlibc.
56837
56838 2006-10-18  Jim Meyering  <jim@meyering.net>
56839
56840         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56841         type for a local, and rename it: s/up/user_proc/.
56842
56843 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56844
56845         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56846         READ_UTMP_USER_PROCESS.
56847         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56848
56849 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56850
56851         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56852         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56853
56854 2006-10-17  Eric Blake  <ebb9@byu.net>
56855
56856         * lib/sigprocmask.c (sigprocmask): Fix typo.
56857
56858         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56859
56860         * modules/clean-temp (Makefile.am): Don't add to make output...
56861         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56862         config.h.
56863
56864 2006-10-17  Bruno Haible  <bruno@clisp.org>
56865
56866         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56867         differently if DEFAULT_TEXT_DOMAIN is set.
56868
56869 2006-10-16  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/clean-temp.c: Include fwriteerror.h.
56872
56873 2006-10-16  Bruno Haible  <bruno@clisp.org>
56874
56875         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56876
56877 2006-10-16  Bruno Haible  <bruno@clisp.org>
56878
56879         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56880         * lib/sigprocmask.h: Include <sys/types.h>.
56881         (sigset_t): Use the system's definition if present.
56882
56883 2006-10-17  Eric Blake  <ebb9@byu.net>
56884
56885         * lib/xvasprintf.c (includes): Assume config.h.
56886         * lib/xasprintf.c (includes): Likewise.
56887
56888 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56891         at least as wide as intmax_t.
56892
56893 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56894
56895         (Imported from Automake.)
56896         * build-aux/gnupload: Update to version 1.1 of directive file.
56897
56898 2006-10-16  Eric Blake  <ebb9@byu.net>
56899
56900         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56901         match Automake 1.10a.
56902
56903 2006-10-14  Bruno Haible  <bruno@clisp.org>
56904
56905         * modules/sigprocmask: New file.
56906         * lib/sigprocmask.h: New file.
56907         * lib/sigprocmask.c: New file.
56908         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56909         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56910         request sigprocmask.o.
56911         (gl_PREREQ_SIGPROCMASK): New macro.
56912         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56913         (Depends-on): Add sigprocmask.
56914         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56915         gt_SIGNALBLOCKING. Test for 'raise' only once.
56916         * lib/fatal-signal.c: Include sigprocmask.h.
56917         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56918         unblock_fatal_signals): Define always.
56919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56920         sigprocmask.
56921
56922 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56923
56924         Sync from Automake.
56925         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56926         which incorrectly sets the mode of an existing destination
56927         directory.  In some cases the unpatched install-sh could do the
56928         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56929         system.  We hope this is rare in practice, but it's clearly worth
56930         fixing.  Problem reported by Alex Unleashed in
56931         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56932         Also, don't bother to check for -m bugs unless we're using -m;
56933         suggested by Stepan Kasal.
56934
56935 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56936
56937         Sync from Automake.
56938         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56939         `-c' flag, so they appear at the same position as in %FASTDEP%
56940         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56941         which ignores unknown options only after the first non-option.
56942         Bug report against M4 by Nelson H. F. Beebe.
56943
56944 2006-10-13  Jim Meyering  <jim@meyering.net>
56945
56946         Fix a bug in yesterday's change.
56947         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56948         p->fts_statp->st_dev would be used uninitialized.
56949         Ensures that we always call fts_stat on the very first entry.
56950         Miklos Szeredi reported that find -xdev stopped working.
56951
56952 2006-10-12  Bruno Haible  <bruno@clisp.org>
56953
56954         * gnulib-tool (func_get_automake_snippet): Append an automatically
56955         computed EXTRA_DIST augmentation.
56956         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56957         * modules/alloca-opt (Makefile.am): Likewise.
56958         * modules/allocsa (Makefile.am): Likewise.
56959         * modules/arcfour (Makefile.am): Likewise.
56960         * modules/arctwo (Makefile.am): Likewise.
56961         * modules/argmatch (Makefile.am): Likewise.
56962         * modules/argz (Makefile.am): Likewise.
56963         * modules/atexit (Makefile.am): Likewise.
56964         * modules/backupfile (Makefile.am): Likewise.
56965         * modules/byteswap (Makefile.am): Likewise.
56966         * modules/c-strtod (Makefile.am): Likewise.
56967         * modules/c-strtold (Makefile.am): Likewise.
56968         * modules/calloc (Makefile.am): Likewise.
56969         * modules/canon-host (Makefile.am): Likewise.
56970         * modules/canonicalize (Makefile.am): Likewise.
56971         * modules/chdir-long (Makefile.am): Likewise.
56972         * modules/chdir-safer (Makefile.am): Likewise.
56973         * modules/check-version (Makefile.am): Likewise.
56974         * modules/chown (Makefile.am): Likewise.
56975         * modules/cloexec (Makefile.am): Likewise.
56976         * modules/close-stream (Makefile.am): Likewise.
56977         * modules/closeout (Makefile.am): Likewise.
56978         * modules/crc (Makefile.am): Likewise.
56979         * modules/csharpexec (Makefile.am): Likewise.
56980         * modules/cycle-check (Makefile.am): Likewise.
56981         * modules/des (Makefile.am): Likewise.
56982         * modules/dev-ino (Makefile.am): Likewise.
56983         * modules/dirfd (Makefile.am): Likewise.
56984         * modules/dirname (Makefile.am): Likewise.
56985         * modules/dup2 (Makefile.am): Likewise.
56986         * modules/eealloc (Makefile.am): Likewise.
56987         * modules/error (Makefile.am): Likewise.
56988         * modules/euidaccess (Makefile.am): Likewise.
56989         * modules/exclude (Makefile.am): Likewise.
56990         * modules/exitfail (Makefile.am): Likewise.
56991         * modules/fcntl-safer (Makefile.am): Likewise.
56992         * modules/fcntl (Makefile.am): Likewise.
56993         * modules/file-type (Makefile.am): Likewise.
56994         * modules/fileblocks (Makefile.am): Likewise.
56995         * modules/filemode (Makefile.am): Likewise.
56996         * modules/filenamecat (Makefile.am): Likewise.
56997         * modules/fnmatch (Makefile.am): Likewise.
56998         * modules/fopen-safer (Makefile.am): Likewise.
56999         * modules/fpending (Makefile.am): Likewise.
57000         * modules/fprintftime (Makefile.am): Likewise.
57001         * modules/free (Makefile.am): Likewise.
57002         * modules/fsusage (Makefile.am): Likewise.
57003         * modules/ftruncate (Makefile.am): Likewise.
57004         * modules/fts (Makefile.am): Likewise.
57005         * modules/gc-arcfour (Makefile.am): Likewise.
57006         * modules/gc-des (Makefile.am): Likewise.
57007         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57008         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57009         * modules/gc-md4 (Makefile.am): Likewise.
57010         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57011         * modules/gc-sha1 (Makefile.am): Likewise.
57012         * modules/gc (Makefile.am): Likewise.
57013         * modules/getaddrinfo (Makefile.am): Likewise.
57014         * modules/getcwd (Makefile.am): Likewise.
57015         * modules/getdelim (Makefile.am): Likewise.
57016         * modules/getdomainname (Makefile.am): Likewise.
57017         * modules/getgroups (Makefile.am): Likewise.
57018         * modules/gethostname (Makefile.am): Likewise.
57019         * modules/gethrxtime (Makefile.am): Likewise.
57020         * modules/getline (Makefile.am): Likewise.
57021         * modules/getloadavg (Makefile.am): Likewise.
57022         * modules/getlogin_r (Makefile.am): Likewise.
57023         * modules/getndelim2 (Makefile.am): Likewise.
57024         * modules/getopt (Makefile.am): Likewise.
57025         * modules/getpagesize (Makefile.am): Likewise.
57026         * modules/getpass-gnu (Makefile.am): Likewise.
57027         * modules/getpass (Makefile.am): Likewise.
57028         * modules/getsubopt (Makefile.am): Likewise.
57029         * modules/gettime (Makefile.am): Likewise.
57030         * modules/gettimeofday (Makefile.am): Likewise.
57031         * modules/getugroups (Makefile.am): Likewise.
57032         * modules/getusershell (Makefile.am): Likewise.
57033         * modules/glob (Makefile.am): Likewise.
57034         * modules/group-member (Makefile.am): Likewise.
57035         * modules/hard-locale (Makefile.am): Likewise.
57036         * modules/hash (Makefile.am): Likewise.
57037         * modules/hmac-md5 (Makefile.am): Likewise.
57038         * modules/hmac-sha1 (Makefile.am): Likewise.
57039         * modules/human (Makefile.am): Likewise.
57040         * modules/idcache (Makefile.am): Likewise.
57041         * modules/imaxabs (Makefile.am): Likewise.
57042         * modules/imaxdiv (Makefile.am): Likewise.
57043         * modules/inet_ntop (Makefile.am): Likewise.
57044         * modules/inet_pton (Makefile.am): Likewise.
57045         * modules/intprops (Makefile.am): Likewise.
57046         * modules/inttostr (Makefile.am): Likewise.
57047         * modules/inttypes (Makefile.am): Likewise.
57048         * modules/isapipe (Makefile.am): Likewise.
57049         * modules/javaversion (Makefile.am): Likewise.
57050         * modules/lchmod (Makefile.am): Likewise.
57051         * modules/lchown (Makefile.am): Likewise.
57052         * modules/localcharset (Makefile.am): Likewise.
57053         * modules/long-options (Makefile.am): Likewise.
57054         * modules/lstat (Makefile.am): Likewise.
57055         * modules/malloc (Makefile.am): Likewise.
57056         * modules/mathl (Makefile.am): Likewise.
57057         * modules/mbchar (Makefile.am): Likewise.
57058         * modules/md2 (Makefile.am): Likewise.
57059         * modules/md4 (Makefile.am): Likewise.
57060         * modules/md5 (Makefile.am): Likewise.
57061         * modules/memcasecmp (Makefile.am): Likewise.
57062         * modules/memchr (Makefile.am): Likewise.
57063         * modules/memcmp (Makefile.am): Likewise.
57064         * modules/memcoll (Makefile.am): Likewise.
57065         * modules/memcpy (Makefile.am): Likewise.
57066         * modules/memmem (Makefile.am): Likewise.
57067         * modules/memmove (Makefile.am): Likewise.
57068         * modules/mempcpy (Makefile.am): Likewise.
57069         * modules/memrchr (Makefile.am): Likewise.
57070         * modules/memset (Makefile.am): Likewise.
57071         * modules/memxor (Makefile.am): Likewise.
57072         * modules/mkancesdirs (Makefile.am): Likewise.
57073         * modules/mkdir-p (Makefile.am): Likewise.
57074         * modules/mkdir (Makefile.am): Likewise.
57075         * modules/mkdtemp (Makefile.am): Likewise.
57076         * modules/mkstemp (Makefile.am): Likewise.
57077         * modules/mktime (Makefile.am): Likewise.
57078         * modules/modechange (Makefile.am): Likewise.
57079         * modules/mountlist (Makefile.am): Likewise.
57080         * modules/nanosleep (Makefile.am): Likewise.
57081         * modules/obstack (Makefile.am): Likewise.
57082         * modules/openat (Makefile.am): Likewise.
57083         * modules/pagealign_alloc (Makefile.am): Likewise.
57084         * modules/pathmax (Makefile.am): Likewise.
57085         * modules/physmem (Makefile.am): Likewise.
57086         * modules/poll (Makefile.am): Likewise.
57087         * modules/posixtm (Makefile.am): Likewise.
57088         * modules/posixver (Makefile.am): Likewise.
57089         * modules/putenv (Makefile.am): Likewise.
57090         * modules/quote (Makefile.am): Likewise.
57091         * modules/quotearg (Makefile.am): Likewise.
57092         * modules/raise (Makefile.am): Likewise.
57093         * modules/read-file (Makefile.am): Likewise.
57094         * modules/readline (Makefile.am): Likewise.
57095         * modules/readlink (Makefile.am): Likewise.
57096         * modules/readtokens (Makefile.am): Likewise.
57097         * modules/readutmp (Makefile.am): Likewise.
57098         * modules/realloc (Makefile.am): Likewise.
57099         * modules/regex (Makefile.am): Likewise.
57100         * modules/rename-dest-slash (Makefile.am): Likewise.
57101         * modules/rename (Makefile.am): Likewise.
57102         * modules/rijndael (Makefile.am): Likewise.
57103         * modules/rmdir (Makefile.am): Likewise.
57104         * modules/rpmatch (Makefile.am): Likewise.
57105         * modules/safe-read (Makefile.am): Likewise.
57106         * modules/safe-write (Makefile.am): Likewise.
57107         * modules/same-inode (Makefile.am): Likewise.
57108         * modules/same (Makefile.am): Likewise.
57109         * modules/save-cwd (Makefile.am): Likewise.
57110         * modules/savedir (Makefile.am): Likewise.
57111         * modules/setenv (Makefile.am): Likewise.
57112         * modules/settime (Makefile.am): Likewise.
57113         * modules/sha1 (Makefile.am): Likewise.
57114         * modules/sig2str (Makefile.am): Likewise.
57115         * modules/snprintf (Makefile.am): Likewise.
57116         * modules/stat-macros (Makefile.am): Likewise.
57117         * modules/stat-time (Makefile.am): Likewise.
57118         * modules/stdbool (Makefile.am): Likewise.
57119         * modules/stdint (Makefile.am): Likewise.
57120         * modules/stdlib-safer (Makefile.am): Likewise.
57121         * modules/stpcpy (Makefile.am): Likewise.
57122         * modules/stpncpy (Makefile.am): Likewise.
57123         * modules/strcase (Makefile.am): Likewise.
57124         * modules/strcasestr (Makefile.am): Likewise.
57125         * modules/strchrnul (Makefile.am): Likewise.
57126         * modules/strcspn (Makefile.am): Likewise.
57127         * modules/strdup (Makefile.am): Likewise.
57128         * modules/strerror (Makefile.am): Likewise.
57129         * modules/strftime (Makefile.am): Likewise.
57130         * modules/strndup (Makefile.am): Likewise.
57131         * modules/strnlen (Makefile.am): Likewise.
57132         * modules/strpbrk (Makefile.am): Likewise.
57133         * modules/strsep (Makefile.am): Likewise.
57134         * modules/strstr (Makefile.am): Likewise.
57135         * modules/strtod (Makefile.am): Likewise.
57136         * modules/strtoimax (Makefile.am): Likewise.
57137         * modules/strtok_r (Makefile.am): Likewise.
57138         * modules/strtol (Makefile.am): Likewise.
57139         * modules/strtoll (Makefile.am): Likewise.
57140         * modules/strtoul (Makefile.am): Likewise.
57141         * modules/strtoull (Makefile.am): Likewise.
57142         * modules/strtoumax (Makefile.am): Likewise.
57143         * modules/strverscmp (Makefile.am): Likewise.
57144         * modules/sys_socket (Makefile.am): Likewise.
57145         * modules/sys_stat (Makefile.am): Likewise.
57146         * modules/sysexits (Makefile.am): Likewise.
57147         * modules/time_r (Makefile.am): Likewise.
57148         * modules/timegm (Makefile.am): Likewise.
57149         * modules/timespec (Makefile.am): Likewise.
57150         * modules/tmpfile-safer (Makefile.am): Likewise.
57151         * modules/trim (Makefile.am): Likewise.
57152         * modules/unistd-safer (Makefile.am): Likewise.
57153         * modules/unlinkdir (Makefile.am): Likewise.
57154         * modules/unlocked-io (Makefile.am): Likewise.
57155         * modules/userspec (Makefile.am): Likewise.
57156         * modules/utime (Makefile.am): Likewise.
57157         * modules/utimecmp (Makefile.am): Likewise.
57158         * modules/utimens (Makefile.am): Likewise.
57159         * modules/vasnprintf (Makefile.am): Likewise.
57160         * modules/vasprintf (Makefile.am): Likewise.
57161         * modules/vsnprintf (Makefile.am): Likewise.
57162         * modules/xalloc (Makefile.am): Likewise.
57163         * modules/xgetcwd (Makefile.am): Likewise.
57164         * modules/xnanosleep (Makefile.am): Likewise.
57165         * modules/xreadlink (Makefile.am): Likewise.
57166         * modules/xstrtod (Makefile.am): Likewise.
57167         * modules/xstrtol (Makefile.am): Likewise.
57168         * modules/xstrtold (Makefile.am): Likewise.
57169         * modules/yesno (Makefile.am): Likewise.
57170         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57171
57172 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57173
57174         * modules/error (Makefile.am): Distribute files through
57175         EXTRA_DIST, not lib_SOURCES.
57176
57177 2006-10-12  Eric Blake  <ebb9@byu.net>
57178
57179         * modules/error (Makefile.am): Distribute files in /lib.
57180         * modules/obstack (Makefile.am): Likewise.
57181
57182 2006-10-12  Bruno Haible  <bruno@clisp.org>
57183
57184         * modules/acl (Makefile.am): Distribute all files in lib/ through
57185         EXTRA_DIST.
57186         * modules/arcfour (Makefile.am): Likewise.
57187         * modules/arctwo (Makefile.am): Likewise.
57188         * modules/argmatch (Makefile.am): Likewise.
57189         * modules/argz (Makefile.am): Likewise.
57190         * modules/atexit (Makefile.am): Likewise.
57191         * modules/backupfile (Makefile.am): Likewise.
57192         * modules/c-strtod (Makefile.am): Likewise.
57193         * modules/c-strtold (Makefile.am): Likewise.
57194         * modules/calloc (Makefile.am): Likewise.
57195         * modules/canon-host (Makefile.am): Likewise.
57196         * modules/canonicalize (Makefile.am): Likewise.
57197         * modules/chdir-long (Makefile.am): Likewise.
57198         * modules/chdir-safer (Makefile.am): Likewise.
57199         * modules/check-version (Makefile.am): Likewise.
57200         * modules/chown (Makefile.am): Likewise.
57201         * modules/cloexec (Makefile.am): Likewise.
57202         * modules/close-stream (Makefile.am): Likewise.
57203         * modules/closeout (Makefile.am): Likewise.
57204         * modules/crc (Makefile.am): Likewise.
57205         * modules/cycle-check (Makefile.am): Likewise.
57206         * modules/des (Makefile.am): Likewise.
57207         * modules/dirfd (Makefile.am): Likewise.
57208         * modules/dirname (Makefile.am): Likewise.
57209         * modules/dup2 (Makefile.am): Likewise.
57210         * modules/euidaccess (Makefile.am): Likewise.
57211         * modules/exclude (Makefile.am): Likewise.
57212         * modules/exitfail (Makefile.am): Likewise.
57213         * modules/fcntl-safer (Makefile.am): Likewise.
57214         * modules/file-type (Makefile.am): Likewise.
57215         * modules/fileblocks (Makefile.am): Likewise.
57216         * modules/filemode (Makefile.am): Likewise.
57217         * modules/filenamecat (Makefile.am): Likewise.
57218         * modules/fnmatch (Makefile.am): Likewise.
57219         * modules/fopen-safer (Makefile.am): Likewise.
57220         * modules/fpending (Makefile.am): Likewise.
57221         * modules/fprintftime (Makefile.am): Likewise.
57222         * modules/free (Makefile.am): Likewise.
57223         * modules/fsusage (Makefile.am): Likewise.
57224         * modules/ftruncate (Makefile.am): Likewise.
57225         * modules/fts (Makefile.am): Likewise.
57226         * modules/gc (Makefile.am): Likewise.
57227         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57228         * modules/getaddrinfo (Makefile.am): Likewise.
57229         * modules/getcwd (Makefile.am): Likewise.
57230         * modules/getdelim (Makefile.am): Likewise.
57231         * modules/getdomainname (Makefile.am): Likewise.
57232         * modules/getgroups (Makefile.am): Likewise.
57233         * modules/gethostname (Makefile.am): Likewise.
57234         * modules/gethrxtime (Makefile.am): Likewise.
57235         * modules/getline (Makefile.am): Likewise.
57236         * modules/getloadavg (Makefile.am): Likewise.
57237         * modules/getlogin_r (Makefile.am): Likewise.
57238         * modules/getopt (Makefile.am): Likewise.
57239         * modules/getpass (Makefile.am): Likewise.
57240         * modules/getpass-gnu (Makefile.am): Likewise.
57241         * modules/getsubopt (Makefile.am): Likewise.
57242         * modules/gettime (Makefile.am): Likewise.
57243         * modules/gettimeofday (Makefile.am): Likewise.
57244         * modules/getugroups (Makefile.am): Likewise.
57245         * modules/getusershell (Makefile.am): Likewise.
57246         * modules/glob (Makefile.am): Likewise.
57247         * modules/group-member (Makefile.am): Likewise.
57248         * modules/hard-locale (Makefile.am): Likewise.
57249         * modules/hash (Makefile.am): Likewise.
57250         * modules/hmac-md5 (Makefile.am): Likewise.
57251         * modules/hmac-sha1 (Makefile.am): Likewise.
57252         * modules/human (Makefile.am): Likewise.
57253         * modules/idcache (Makefile.am): Likewise.
57254         * modules/imaxabs (Makefile.am): Likewise.
57255         * modules/imaxdiv (Makefile.am): Likewise.
57256         * modules/inet_ntop (Makefile.am): Likewise.
57257         * modules/inet_pton (Makefile.am): Likewise.
57258         * modules/inttostr (Makefile.am): Likewise.
57259         * modules/isapipe (Makefile.am): Likewise.
57260         * modules/lchown (Makefile.am): Likewise.
57261         * modules/long-options (Makefile.am): Likewise.
57262         * modules/lstat (Makefile.am): Likewise.
57263         * modules/malloc (Makefile.am): Likewise.
57264         * modules/mathl (Makefile.am): Likewise.
57265         * modules/mbchar (Makefile.am): Likewise.
57266         * modules/md2 (Makefile.am): Likewise.
57267         * modules/md4 (Makefile.am): Likewise.
57268         * modules/md5 (Makefile.am): Likewise.
57269         * modules/memcasecmp (Makefile.am): Likewise.
57270         * modules/memchr (Makefile.am): Likewise.
57271         * modules/memcmp (Makefile.am): Likewise.
57272         * modules/memcoll (Makefile.am): Likewise.
57273         * modules/memcpy (Makefile.am): Likewise.
57274         * modules/memmem (Makefile.am): Likewise.
57275         * modules/memmove (Makefile.am): Likewise.
57276         * modules/mempcpy (Makefile.am): Likewise.
57277         * modules/memrchr (Makefile.am): Likewise.
57278         * modules/memset (Makefile.am): Likewise.
57279         * modules/memxor (Makefile.am): Likewise.
57280         * modules/mkancesdirs (Makefile.am): Likewise.
57281         * modules/mkdir (Makefile.am): Likewise.
57282         * modules/mkdir-p (Makefile.am): Likewise.
57283         * modules/mkdtemp (Makefile.am): Likewise.
57284         * modules/mkstemp (Makefile.am): Likewise.
57285         * modules/mktime (Makefile.am): Likewise.
57286         * modules/modechange (Makefile.am): Likewise.
57287         * modules/mountlist (Makefile.am): Likewise.
57288         * modules/nanosleep (Makefile.am): Likewise.
57289         * modules/openat (Makefile.am): Likewise.
57290         * modules/pagealign_alloc (Makefile.am): Likewise.
57291         * modules/physmem (Makefile.am): Likewise.
57292         * modules/poll (Makefile.am): Likewise.
57293         * modules/posixtm (Makefile.am): Likewise.
57294         * modules/posixver (Makefile.am): Likewise.
57295         * modules/putenv (Makefile.am): Likewise.
57296         * modules/quote (Makefile.am): Likewise.
57297         * modules/quotearg (Makefile.am): Likewise.
57298         * modules/raise (Makefile.am): Likewise.
57299         * modules/read-file (Makefile.am): Likewise.
57300         * modules/readline (Makefile.am): Likewise.
57301         * modules/readlink (Makefile.am): Likewise.
57302         * modules/readtokens (Makefile.am): Likewise.
57303         * modules/readutmp (Makefile.am): Likewise.
57304         * modules/realloc (Makefile.am): Likewise.
57305         * modules/regex (Makefile.am): Likewise.
57306         * modules/rename (Makefile.am): Likewise.
57307         * modules/rename-dest-slash (Makefile.am): Likewise.
57308         * modules/rijndael (Makefile.am): Likewise.
57309         * modules/rmdir (Makefile.am): Likewise.
57310         * modules/rpmatch (Makefile.am): Likewise.
57311         * modules/safe-read (Makefile.am): Likewise.
57312         * modules/safe-write (Makefile.am): Likewise.
57313         * modules/same (Makefile.am): Likewise.
57314         * modules/save-cwd (Makefile.am): Likewise.
57315         * modules/savedir (Makefile.am): Likewise.
57316         * modules/setenv (Makefile.am): Likewise.
57317         * modules/settime (Makefile.am): Likewise.
57318         * modules/sha1 (Makefile.am): Likewise.
57319         * modules/sig2str (Makefile.am): Likewise.
57320         * modules/snprintf (Makefile.am): Likewise.
57321         * modules/stdlib-safer (Makefile.am): Likewise.
57322         * modules/stpcpy (Makefile.am): Likewise.
57323         * modules/stpncpy (Makefile.am): Likewise.
57324         * modules/strcase (Makefile.am): Likewise.
57325         * modules/strcasestr (Makefile.am): Likewise.
57326         * modules/strchrnul (Makefile.am): Likewise.
57327         * modules/strcspn (Makefile.am): Likewise.
57328         * modules/strdup (Makefile.am): Likewise.
57329         * modules/strerror (Makefile.am): Likewise.
57330         * modules/strftime (Makefile.am): Likewise.
57331         * modules/strndup (Makefile.am): Likewise.
57332         * modules/strnlen (Makefile.am): Likewise.
57333         * modules/strpbrk (Makefile.am): Likewise.
57334         * modules/strsep (Makefile.am): Likewise.
57335         * modules/strstr (Makefile.am): Likewise.
57336         * modules/strtod (Makefile.am): Likewise.
57337         * modules/strtoimax (Makefile.am): Likewise.
57338         * modules/strtok_r (Makefile.am): Likewise.
57339         * modules/strtol (Makefile.am): Likewise.
57340         * modules/strtoll (Makefile.am): Likewise.
57341         * modules/strtoul (Makefile.am): Likewise.
57342         * modules/strtoull (Makefile.am): Likewise.
57343         * modules/strtoumax (Makefile.am): Likewise.
57344         * modules/strverscmp (Makefile.am): Likewise.
57345         * modules/time_r (Makefile.am): Likewise.
57346         * modules/timegm (Makefile.am): Likewise.
57347         * modules/tmpfile-safer (Makefile.am): Likewise.
57348         * modules/unistd-safer (Makefile.am): Likewise.
57349         * modules/unlinkdir (Makefile.am): Likewise.
57350         * modules/userspec (Makefile.am): Likewise.
57351         * modules/utime (Makefile.am): Likewise.
57352         * modules/utimecmp (Makefile.am): Likewise.
57353         * modules/utimens (Makefile.am): Likewise.
57354         * modules/vasnprintf (Makefile.am): Likewise.
57355         * modules/vasprintf (Makefile.am): Likewise.
57356         * modules/vsnprintf (Makefile.am): Likewise.
57357         * modules/xalloc (Makefile.am): Likewise.
57358         * modules/xgetcwd (Makefile.am): Likewise.
57359         * modules/xnanosleep (Makefile.am): Likewise.
57360         * modules/xreadlink (Makefile.am): Likewise.
57361         * modules/xstrtod (Makefile.am): Likewise.
57362         * modules/xstrtol (Makefile.am): Likewise.
57363         * modules/xstrtold (Makefile.am): Likewise.
57364         * modules/yesno (Makefile.am): Likewise.
57365
57366 2006-10-12  Jim Meyering  <jim@meyering.net>
57367
57368         * m4/getloadavg.m4: Revert the change below.
57369
57370         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57371         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57372         fail with a symlink, which is what coreutils' ./bootstrap now
57373         creates by default.
57374
57375 2006-10-12  Bruno Haible  <bruno@clisp.org>
57376
57377         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57378         mingw.
57379         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57380         MSVC and mingw explicitly.
57381
57382 2006-10-11  Simon Josefsson  <jas@extundo.com>
57383             Bruno Haible  <bruno@clisp.org>
57384
57385         Add support for multiple gnulib-tool invocations in the scope of a
57386         single configure.ac file.
57387         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57388         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57389         with the same contents as the _LIBADD variable.
57390         (func_emit_initmacro_start, func_emit_initmacro_end,
57391         func_emit_initmacro_done): New functions.
57392         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57393         gl_LIBOBJS and gl_LTLIBOBJS.
57394
57395 2006-10-11  Bruno Haible  <bruno@clisp.org>
57396
57397         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57398         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57399         autoreconf. Instead, invoke autopoint explicitly but move back the
57400         *.m4 files from gnulib.
57401
57402 2006-10-11  Bruno Haible  <bruno@clisp.org>
57403
57404         * gnulib-tool (func_usage): Make module names after --create-testdir
57405         optional.
57406         (func_create_testdir): If no module was specified, use nearly all
57407         modules.
57408
57409 2006-10-12  Jim Meyering  <jim@meyering.net>
57410
57411         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57412         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57413         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57414         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57415         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57416         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57417         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57418         (fts_set_stat_required): New function.
57419         (fts_open): Defer the calls to fts_stat, if possible or requested.
57420         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57421         into fts_stat itself.
57422         (fts_read): Perform any required (deferred) fts_stat call.
57423         (fts_build): Likewise, for the directory we're about to open and read.
57424         In the readdir loop, carefully decide whether each entry will require
57425         an eventual call to fts_stat, using dirent.d_type info if available.
57426         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57427         a command line argument into this function.  Update all callers.
57428         Map a return value of FTS_DOT to FTS_D for a command line argument.
57429         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57430         Thanks to Miklos Szeredi for his tenacity and for the initial
57431         bug report about "find" failing on a FUSE-based file system.
57432
57433         * lib/fts.c (fts_open): Use consistent indentation.
57434
57435 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57438         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57439         reported by Jim Meyering.  All uses of cache variables renamed
57440         to match Autoconf's.
57441         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57442         the other one.
57443
57444         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57445         Fix misspelling in diagnostic.
57446
57447 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57448
57449         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57450         defined.  Problem reported by Matthew Woehlke.
57451
57452         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57453         Add support for Tandem NonStop R series.
57454         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57455         Use new macro.
57456
57457         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57458         (has_trailing_slash): Omit size arg; all callers changed.
57459         Omit 'inline', since it doesn't help performance and we'd
57460         need to configure it.
57461         Don't count //, ///, etc. as having a trailing slash.
57462         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57463         (rpl_rename_dest_slash): On failure, use rename's errno rather
57464         than (in some cases) an incorrect or junk errno.
57465         Simplify code by removing need to compute length; this does
57466         cause it to make two passes instead of one over the file name,
57467         but it's worth it.
57468
57469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57470         change, since Autoconf's version may no longer be appropriate now
57471         that we are using CVS Autoconf's version.  Add support for Tandem.
57472
57473 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57474             Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57477         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57478         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57479         gl_AC_TYPE_LONG_LONG.
57480
57481         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57482         instead of HAVE_LONG_LONG.
57483         * lib/printf-args.c (printf_fetchargs): Likewise.
57484         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57485         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57486         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57487         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57488         gl_AC_TYPE_LONG_LONG.
57489
57490 2006-10-11  Bruno Haible  <bruno@clisp.org>
57491
57492         * m4/longlong.m4: Add comments.
57493         * m4/ulonglong.m4: Likewise.
57494
57495 2006-10-10  Bruno Haible  <bruno@clisp.org>
57496
57497         Make it possible to #define stpcpy, strdup to aliases.
57498         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57499         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57500
57501 2006-10-10  Bruno Haible  <bruno@clisp.org>
57502
57503         Make it possible to #define gcd to an alias.
57504         * lib/gcd.c: Include config.h.
57505
57506 2006-10-10  Bruno Haible  <bruno@clisp.org>
57507
57508         Make it possible to #define c_isascii to an alias.
57509         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57510         defined. Undefine the macros before defining them, to avoid gcc
57511         warnings.
57512         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57513         define NO_C_CTYPE_MACROS early.
57514
57515 2006-10-10  Bruno Haible  <bruno@clisp.org>
57516
57517         Make it possible to #define set_program_name to an alias.
57518         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57519         ENABLE_RELOCATABLE early.
57520
57521 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57522
57523         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57524         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57525         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57526         More generally, don't assume that 64-bit signed int is available
57527         if unsigned int is, and vice versa.
57528         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57529         unsigned symbols, not on their signed counterparts.
57530         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57531         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57532         (UINT64_C, UINTMAX_C):
57533         Likewise.
57534         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57535         unsigned counterparts.
57536         (Have_long_long, Unsigned): New macros.
57537         (Int): Renamed from INT.
57538         (strtoimax): Use the new macros.
57539         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57540         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57541         * modules/inttypes (inttypes.h): Substitute
57542         HAVE_UNSIGNED_LONG_LONG_INT.
57543         * modules/stdint (stdint.h): Likewise.
57544         (Files): Add m4/ulonglong.m4.
57545
57546 2006-10-10  Bruno Haible  <bruno@clisp.org>
57547
57548         Fix a gcc -Wshadow warning.
57549         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57550         to 'bucket'.
57551         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57552         gl_linked_indexof_from_to): Likewise.
57553         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57554         Likewise.
57555         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57556         Likewise.
57557         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57558         Reported by Eric Blake.
57559
57560 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57563         for NetBSD.  Problem reported by Bruno Haible.
57564
57565 2006-10-09  Jim Meyering  <jim@meyering.net>
57566
57567         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57568         Patch from Bruno Haible.
57569
57570 2006-10-09  Jim Meyering  <jim@meyering.net>
57571
57572         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57573         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57574         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57575
57576 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         Don't include <config.h> twice; this doesn't work in some cases,
57579         e.g., when config.h has "#define intmax_t long long int" and
57580         we include <config.h>, <inttypes.h>, <config.h> in that order.
57581         Problem reported by Matthew Woehlke in:
57582         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57583         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57584         * lib/fts-cycle.c: Don't include config.h.
57585         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57586         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57587         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57588         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57589         inttypes.h.
57590         * lib/xstrtoumax.c: Likewise.
57591         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57592         __strtol and the like, so that this module is more like its siblings.
57593         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57594         Remove; no longer needed now that we assume gnulib inttypes.h.
57595
57596 2006-10-08  Bruno Haible  <bruno@clisp.org>
57597
57598         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57599         option.
57600
57601 2006-10-07  Jim Meyering  <jim@meyering.net>
57602
57603         * modules/inttypes (inttypes.h): Revert what seems to have been
57604         an inadvertent part of today's change: use "|", not "/" in the
57605         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57606
57607 2006-10-07  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/sublist: New file.
57610
57611 2006-10-07  Bruno Haible  <bruno@clisp.org>
57612
57613         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57614         * modules/argz (argz.h): Likewise.
57615         * modules/arpa_inet (arpa/inet.h): Likewise.
57616         * modules/byteswap (byteswap.h): Likewise.
57617         * modules/configmake (configmake.h): Likewise.
57618         * modules/fcntl (fcntl.h): Likewise.
57619         * modules/fnmatch (fnmatch.h): Likewise.
57620         * modules/getopt (getopt.h): Likewise.
57621         * modules/glob (glob.h): Likewise.
57622         * modules/inttypes (inttypes.h): Likewise.
57623         * modules/netinet_in (netinet/in.h): Likewise.
57624         * modules/poll (poll.h): Likewise.
57625         * modules/stdbool (stdbool.h): Likewise.
57626         * modules/stdint (stdint.h): Likewise.
57627         * modules/sys_select (sys/select.h): Likewise.
57628         * modules/sys_socket (sys/socket.h): Likewise.
57629         * modules/sys_stat (sys/stat.h): Likewise.
57630         * modules/sysexits (sysexits.h): Likewise.
57631         * modules/unistd (unistd.h): Likewise.
57632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57633         Add a "DO NOT EDIT" comment to the generated file.
57634         (func_import): Likewise for gnulib-comp.m4.
57635
57636 2006-10-07  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/gl_sublist.h: New file.
57639         * lib/gl_sublist.c: New file.
57640
57641 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57642
57643         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57644         name (relative to the original working directory) and the file
57645         name component (relative to the temporary working directory).  All
57646         callers changed.
57647         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57648         * lib/mkdir-p.c (make_dir_parents): Likewise.
57649         * lib/mkdir-p.h (make_dir_parents): Likewise.
57650
57651 2006-10-06  Eric Blake  <ebb9@byu.net>
57652
57653         Define several macros for use by the clean-temp module.
57654         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57655         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57656         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57657
57658         * lib/clean-temp.h (close_stream_temp): New declaration.
57659         * lib/clean-temp.c (includes): Pull in headers according to what
57660         other modules are in use.
57661         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57662
57663 2006-10-06  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57666         instead of fopen, fwriteerror.
57667
57668 2006-10-06  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57671         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57672         int.
57673         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57674         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57675         Return an error indicator.
57676         Suggested by Eric Blake.
57677
57678 2006-10-06  Bruno Haible  <bruno@clisp.org>
57679
57680         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57681         Reported by Eric Blake.
57682
57683 2006-10-06  Bruno Haible  <bruno@clisp.org>
57684
57685         * modules/closeout (Description): Mention stderr too.
57686
57687 2006-10-06  Bruno Haible  <bruno@clisp.org>
57688         and Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * lib/closeout.c (close_stdout): Also close stderr.
57691         * lib/closeout.h: Update comment.
57692
57693 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57696         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57697         * lib/dirchownmod.c: Include lchown.h.
57698         * lib/lchown.c: Don't include files that lchown.h now includes.
57699         Don't declare chown, since lchown.h now does that.
57700         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57701         (lchown): Define to rpl_chown if lchown is declared but
57702         does not exist.  Declare using a prototype if lchown is not
57703         declared.  Add a copyright notice.
57704         * lib/mkstemp.h: Include <unistd.h>.
57705         * lib/openat.c: Include lchown.h.
57706
57707         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57708         we now test for that separately.
57709         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57710         rather than O_NOFOLLOW, when testing whether it's possible to
57711         avoid a race condition reliably.
57712         * lib/savewd.c (savewd_chdir): Likewise.
57713
57714         Remove macros that are no longer needed now that stdint.h is
57715         reliable.
57716         * lib/fsusage.c (UINTMAX_MAX): Remove.
57717         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57718         * lib/utimecmp.c (SIZE_MAX): Remove.
57719
57720         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57721
57722         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57723         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57724         O_NOATIME works.
57725
57726 2006-10-05  Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/gl_list.h (gl_sortedlist_search_from_to,
57729         gl_sortedlist_indexof_from_to): New declarations.
57730         (gl_list_implementation): New fields sortedlist_search_from_to,
57731         sortedlist_indexof_from_to.
57732         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57733         inline functions.
57734         * lib/gl_list.c (gl_sortedlist_search_from_to,
57735         gl_sortedlist_indexof_from_to): New functions.
57736         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57737         function.
57738         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57739         (gl_array_sortedlist_search_from_to): New function.
57740         (gl_array_list_implementation): Update.
57741         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57742         function.
57743         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57744         (gl_carray_sortedlist_search_from_to): New function.
57745         (gl_carray_list_implementation): Update.
57746         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57747         gl_linked_sortedlist_indexof_from_to): New functions.
57748         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57749         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57750         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57751         gl_tree_sortedlist_indexof_from_to): New functions.
57752         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57753         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57754         Update.
57755         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57756         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57757         Update.
57758
57759 2006-10-05  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57762         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57763         (struct gl_list_implementation): Add fields search_from_to,
57764         indexof_from_to. Remove fields search, indexof.
57765         (gl_list_search): Use the search_from_to method.
57766         (gl_list_search_from, gl_list_search_from_to): New functions.
57767         (gl_list_indexof): Use the indexof_from_to method.
57768         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57769         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57770         (gl_list_search_from, gl_list_search_from_to): New functions.
57771         (gl_list_indexof): Use the indexof_from_to method.
57772         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57773         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57774         gl_array_indexof. Add start_index, end_index arguments.
57775         (gl_array_search_from_to): Renamed from gl_array_search. Add
57776         start_index, end_index arguments.
57777         (gl_array_remove, gl_array_list_implementation): Update.
57778         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57779         gl_carray_indexof. Add start_index, end_index arguments.
57780         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57781         start_index, end_index arguments.
57782         (gl_carray_remove, gl_carray_list_implementation): Update.
57783         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57784         gl_linked_search. Add start_index, end_index arguments.
57785         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57786         start_index, end_index arguments.
57787         (gl_linked_remove): Update.
57788         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57789         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57790         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57791         field to 'size_t'.
57792         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57793         gl_tree_search. Add start_index, end_index arguments.
57794         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57795         start_index, end_index arguments.
57796         (gl_tree_remove): Update.
57797         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57798         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57799         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57800         function.
57801         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57802         gl_tree_search. Add start_index, end_index arguments.
57803         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57804         start_index, end_index arguments.
57805         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57806         Update.
57807         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57808
57809 2006-10-05  Bruno Haible  <bruno@clisp.org>
57810
57811         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57812
57813         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57814         fwriteerror_temp): New declarations.
57815         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57816         (descriptors): New variable.
57817         (cleanup): First, close the descriptors.
57818         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57819         fclose_temp, fwriteerror_temp): New functions.
57820
57821 2006-10-04  Jim Meyering  <jim@meyering.net>
57822
57823         * lib/fts.c (fts_open): Tiny comment change.
57824
57825 2006-10-04  Bruno Haible  <bruno@clisp.org>
57826
57827         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57828         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57829         gl_LOCK_BODY.
57830         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57831         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57832         gl_LOCK_EARLY_BODY.
57833         (gl_LOCK): Require gl_LOCK_BODY.
57834
57835 2006-10-04  Bruno Haible  <bruno@clisp.org>
57836
57837         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57838         (gl_oset_search_atleast): New declaration.
57839         (struct gl_oset_implementation): Add field 'search_atleast'.
57840         (gl_oset_search_atleast): New inline function.
57841         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57842         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57843         (gl_array_oset_implementation): Update.
57844         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57845         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57846         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57847
57848 2006-10-04  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57851
57852 2006-10-03  Bruno Haible  <bruno@clisp.org>
57853
57854         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57855         from gl_avltreehash_list_implementation.
57856
57857 2006-10-03  Bruno Haible  <bruno@clisp.org>
57858
57859         * lib/gl_oset.c (gl_oset_add): Fix return type.
57860
57861 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57862
57863         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57864
57865 2006-10-02  Eric Blake  <ebb9@byu.net>
57866
57867         * modules/strnlen (Depends-on): Add extensions.
57868
57869 2006-10-02  Eric Blake  <ebb9@byu.net>
57870
57871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57872         definition in 2.60+.
57873
57874 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57875
57876         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57877         checks.
57878
57879 2006-10-02  Bruno Haible  <bruno@clisp.org>
57880
57881         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57882         to the AUTOMAKE_OPTIONS.
57883         Reported by Jim Meyering.
57884
57885 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57886
57887         Work around bug in Solaris 10 /proc file system:
57888         /proc/self/fd/NNN/.. isn't the parent directory of
57889         the directory whose file descriptor is NNN.  This needs to
57890         be worked around at run time, not compile time, since a
57891         program might be built on Solaris 8, where things work, and
57892         run on Solaris 10.
57893         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57894         to use the following interface instead:
57895         (OPENAT_BUFFER_SIZE): New macro.
57896         (openat_proc_name): New function.
57897         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57898         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57899         Likewise.
57900         * lib/openat-proc.c: New file.
57901         * modules/openat (Files): Add lib/openat-proc.c.
57902         (Depends-on): Add same-inode, stdbool.
57903         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57904
57905 2006-09-29  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57908         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57909         argument. Set stdout_closed before testing for ferror, not after.
57910         (fwriteerror, fwriteerror_no_ebadf): New functions.
57911
57912 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57913
57914         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57915
57916 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57917
57918         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57919         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57920
57921 2006-09-28  Jim Meyering  <jim@meyering.net>
57922
57923         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57924         Include <unistd.h>.
57925
57926 2006-09-28  Bruno Haible  <bruno@clisp.org>
57927
57928         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57929         * modules/linkedhash-list (Depends-on): Likewise.
57930         * modules/rbtreehash-list (Depends-on): Likewise.
57931
57932 2006-09-28  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/strndup.h: Simplify the redefinition of strndup.
57935         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57937
57938 2006-09-28  Bruno Haible  <bruno@clisp.org>
57939
57940         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57941         * lib/gl_linkedhash_list.c: Likewise.
57942         * lib/gl_rbtreehash_list.c: Likewise.
57943
57944 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57945
57946         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57947         getaddrinfo.
57948
57949         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57950         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57951         it causes <stdio_ext.h> to cause a compile-time error.
57952         Problem reported by Nelson H. F. Beebe.
57953         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57954         of HAVE_DECL___PENDING.
57955
57956         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57957         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57958         declaration.
57959
57960 2006-09-27  Jim Meyering  <jim@meyering.net>
57961
57962         This file could end up with a definition for a function
57963         named __strndup, rather than rpl_strndup on a system with
57964         incomplete weak_alias support.
57965         * lib/strndup.c (strndup): Rename from __strndup.
57966         Remove #defines that used to map __strndup to strndup.
57967         Don't use K&R prototypes.
57968         Remove LIBC-related code, since this file is not sync'd with glibc.
57969         * lib/strndup.h: Revamp, accordingly.
57970         * m4/strndup.m4: Modernize.
57971
57972 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57973
57974         * modules/savewd (Depends-on): Add 'raise'.
57975         * lib/savewd.c: Include <signal.h>, for 'raise'.
57976
57977 2006-09-26  Jim Meyering  <jim@meyering.net>
57978
57979         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57980         when we detect Darwin 8.7.0's acl_get_file bug.
57981         Rearrange to perform the new (below) run-test while $LIBS
57982         contains any acl-related library.  Set USE_ACL at the end.
57983         (gl_ACL_GET_FILE): New function.
57984
57985 2006-09-26  Eric Blake  <ebb9@byu.net>
57986
57987         * lib/verror.c: Include <config.h> unconditionally.
57988
57989 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57990
57991         * modules/clock-time (Maintainer): Add self.
57992         * modules/getlogin_r (Depends-on): Add extensions.
57993
57994 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57995
57996         * modules/clock-time: New module.
57997         * modules/nanosleep (Depends-on): Add clock-time.
57998         * modules/gethrxtime (Depends-on): Likewise.
57999         * modules/gettime (Depends-on): Likewise.
58000         * modules/settime (Depends-on): Likewise.
58001
58002         * modules/fts-lgpl: Depend on openat.
58003         * modules/mkancesdirs: Depend on savewd.
58004         * modules/mkdir-p: Likewise.
58005
58006 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58007
58008         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58009
58010         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58011         `gl_have_arbitrary_file_name_length_limit' to
58012         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58013         actually works between configure runs.
58014
58015 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58016             Bruno Haible  <bruno@clisp.org>
58017
58018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58019
58020 2006-09-25  Jim Meyering  <jim@meyering.net>
58021
58022         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58023         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58024
58025 2006-09-25  Eric Blake  <ebb9@byu.net>
58026
58027         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58028         exec's in 2006-09-18 patch when shuffling fds.
58029
58030 2006-09-25  Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58033         Reported by Jim Meyering.
58034
58035 2006-09-24  Jim Meyering  <jim@meyering.net>
58036
58037         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58038         compare a pointer against a literal "0".  That caused failures with
58039         at least HP-UX's hpcc.
58040
58041 2006-09-22  Simon Josefsson  <jas@extundo.com>
58042
58043         * modules/gc-sha1:
58044         * modules/gc-md4:
58045         * modules/gc-hmac-sha1:
58046         * modules/gc-hmac-md5:
58047         * modules/gc-des:
58048         * modules/gc-arcfour: Distribute more files.
58049
58050 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58051
58052         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58053         (gl_linked_iterator_from_to): Initialize struct completely.
58054         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58055         (gl_tree_iterator_from_to): Likewise
58056         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58057         * lib/gl_array_list.c [lint] (gl_array_iterator)
58058         (gl_array_iterator_from_to): Likewise.
58059         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58060         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58061         (gl_carray_iterator_from_to): Likewise.
58062
58063         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58064         * lib/md4.c (md4_process_block): Remove unused variable.
58065         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58066         parentheses for clarity.
58067
58068 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58069
58070         * modules/bison-i18n (Depends-on): Add gettext.
58071
58072 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58073
58074         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58075         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58076         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58077         also add missing comma that caused broken test.
58078         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58079         stdlib.h, for `abort'.
58080         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58081         variables.
58082         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58083         include unistd.h if present, for `rmdir'.
58084         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58085         variables.
58086         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58087         in the process include standard headers for prototypes.
58088         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58089         gets declared on GNU/Linux.
58090         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58091         unistd.h, for `rmdir'.
58092         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58093
58094         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58095         always true.
58096         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58097
58098         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58099
58100 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58101
58102         * gnulib-tool (func_version): Create output all at once.  This
58103         may help avoid triggering unnecessary SIGPIPEs, and at any
58104         rate it doesn't hurt.
58105
58106 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58107             Bruno Haible  <bruno@clisp.org>
58108
58109         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58110         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58111         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58112
58113         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58114         (gl_FUNC_VASPRINTF): Invoke it.
58115
58116 2006-09-22  Bruno Haible  <bruno@clisp.org>
58117
58118         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58119         getloadavg.c as first argument.
58120
58121 2006-09-22  Bruno Haible  <bruno@clisp.org>
58122
58123         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58124         at the beginning of the gl_INIT macro.
58125         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58126         gl_GETLOADAVG.
58127
58128 2006-09-22  Bruno Haible  <bruno@clisp.org>
58129
58130         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58131         module.
58132         Suggested by Ralf Wildenhues.
58133
58134 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58135
58136         Import this patch from libc:
58137
58138         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58139
58140         * lib/regex_internal.c (re_string_reconstruct): Handle
58141         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58142         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58143         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58144         re_string_context_at.
58145
58146         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58147         now requires it.
58148         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58149         gl_REGEX now does it for us.
58150         (gl_REGEX): Add test taken from
58151         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58152
58153         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58154         Check that large offsets work.  Modernize Autoconf usages.
58155         Prefer "yes" to mean a good thing rather than a bad.
58156         Don't put "#define mkstemp" in config.h, as this might interfere
58157         with standard system headers that "#define mkstemp mkstemp64".
58158
58159         * modules/mkstemp (Depends-on): Add extensions, so that
58160         mkstemp is visible on some platforms.
58161         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58162         (Include): Change to "mkstemp.h" from <stdlib.h>.
58163         (Files): Add mkstemp.h.
58164
58165         * lib/mkstemp.h: New file, since some standard headers
58166         #define mkstemp.
58167         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58168         Include "mkstemp.h".
58169         Make the _LIBC code resemble glibc original more,
58170         e.g., use K&R style.
58171         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58172         (mkstemp): Remove, since mkstemp.h does this for us.
58173         * lib/stdlib--.h: Include mkstemp.h.
58174
58175         Import this patch from libc:
58176
58177         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58178
58179         * lib/tempname.c (__gen_tempname): Change attempts_min
58180         into a macro.  Use preprocessor to decide how to initialize
58181         attempts [Coverity CID 67].
58182
58183 2006-09-20  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/mkdtemp.c: Import from libc.
58186         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58187                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58188                 attempts_min into a macro.  Use preprocessor to decide how to
58189                 initialize attempts [Coverity CID 67].
58190         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58191                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58192                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58193
58194 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58195
58196         * gnulib-tool (func_exit): New function, to allow to pass the
58197         exit status portably through the trap.  Use everywhere.
58198         (--help, --version): Signal a write error.
58199         (trap): catch SIGPIPE, for write errors.
58200         Exit at the end of the trap, with the correct exit status.
58201
58202 2006-09-19  Karl Berry  <karl@gnu.org>
58203
58204         * doc/gnulib.texi: note about the license texinfo files.
58205
58206 2006-09-19  Eric Blake  <ebb9@byu.net>
58207
58208         * gnulib-tool: Avoid space-tab.
58209
58210 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58213         that prevented coreutils 6.1 from building.  Problem reported
58214         by Petter Reinholdtsen.
58215
58216 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58217
58218         * gnulib-tool (avoidlist): Fix typo that broke options like
58219         --avoid=lock that are used by coreutils bootstrap.
58220
58221 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58222
58223         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58224         more systematically.
58225
58226 2006-09-18  Jim Meyering  <jim@meyering.net>
58227
58228         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58229
58230 2006-09-18  Bruno Haible  <bruno@clisp.org>
58231
58232         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58233
58234 2006-09-18  Bruno Haible  <bruno@clisp.org>
58235
58236         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58237         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58238         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58239         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58240         * m4/gettext.m4: Require autoconf >= 2.52.
58241         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58242         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58243         of gl_cv_header_inttypes_h.
58244
58245 2006-09-18  Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/javaversion.c: Include configmake.h.
58248
58249 2006-09-18  Bruno Haible  <bruno@clisp.org>
58250
58251         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58252         avoid that the while loops be executed in a subshell.
58253
58254 2006-09-18  Bruno Haible  <bruno@clisp.org>
58255
58256         * MODULES.html.sh (func_module): Break long lines.
58257         Suggested by Bruce Korb <bkorb@gnu.org>.
58258
58259 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58260
58261         Speed up by a factor of 1.12.
58262         * gnulib-tool (nl): New variable.
58263         (func_import): Rewrite include directive extraction to only read each
58264         directive once.
58265
58266 2006-09-17  Bruno Haible  <bruno@clisp.org>
58267
58268         * modules/javaversion (Makefile.am): Remove DEFS setting.
58269         (Depends-on): Add configmake, for PKGDATADIR definition.
58270
58271 2006-09-17  Bruno Haible  <bruno@clisp.org>
58272
58273         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58274
58275 2006-09-17  Bruno Haible  <bruno@clisp.org>
58276
58277         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58278         (func_modules_transitive_closure, func_modules_add_dummy,
58279         func_modules_to_filelist, func_import, func_create_testdir,
58280         func_create_megatestdir, ...): Use it wherever possible.
58281         Suggested by Ralf Wildenhues.
58282
58283 2006-09-16  Karl Berry  <karl@gnu.org>
58284
58285         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58286         to avoid sectioning errors.
58287         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58288         [ifinfo]: blank line after @center-ed titles.
58289         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58290         Spell FSF address consistently with others.
58291         (These changes approved by rms.)
58292
58293 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58294
58295         Speed up by a factor of 1.61.
58296         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58297         already checked module names again.
58298
58299 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58300
58301         Speed up by a factor of 1.13.
58302         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58303         for new_files, and the input to func_add_or_update.
58304
58305 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58306
58307         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58308         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58309
58310 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58311
58312         * modules/mkancesdirs (Depends-on): Add fcntl.
58313         * modules/savewd: New file.
58314         * MODULES.html.sh (File system functions): Add savewd.
58315
58316         * modules/configmake (Makefile.am): Add support for the
58317         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58318
58319 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58320
58321         * m4/savewd.m4: New file.
58322
58323 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58326         (dirchownmod): New arg FD.  All callers changed.
58327         Use FD rather than opening the directory ourself, as opening is
58328         now the caller's responsibility.
58329         * lib/dirchownmod.h: Likewise.
58330         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58331         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58332         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58333         (test_dir): Remove.
58334         (mkancesdirs): Return length of prefix of FILE that has already
58335         been made, or -2 if there is a child doing the work.  Redo
58336         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58337         ".", and treat ".." specially since it might stray back into
58338         already-created areas.  Use a subprocess if necessary.  New arg
58339         WD; all users changed.  MAKE_DIR function should now return 1
58340         if it creates a directory that is not readable.  Return -2 if
58341         a child process is spun off.
58342         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58343         Adjust signature to match code.
58344         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58345         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58346         all users changed.
58347         * lib/savewd.c, lib/savewd.h: New files.
58348
58349 2006-09-15  Jim Meyering  <jim@meyering.net>
58350
58351         * modules/rename-dest-slash: New module.
58352         * MODULES.html.sh (posix_compat): Add it here.
58353
58354         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58355
58356 2006-09-15  Jim Meyering  <jim@meyering.net>
58357
58358         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58359         file.
58360
58361         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58362
58363 2006-09-15  Jim Meyering  <jim@meyering.net>
58364
58365         * lib/rename-dest-slash.c (has_trailing_slash): Use
58366         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58367         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58368         test before testing whether SRC is a directory.
58369         Suggestions from Bruno Haible.
58370
58371         Avoid a warning about an unused variable.
58372         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58373         into the #ifdef block where it's used.
58374
58375         * lib/rename-dest-slash.c: New file.
58376
58377 2006-09-14  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/allocsa.c: Include <config.h> unconditionally.
58380         * lib/asnprintf.c: Likewise.
58381         * lib/asprintf.c: Likewise.
58382         * lib/c-strcasecmp.c: Likewise.
58383         * lib/c-strcasestr.c: Likewise.
58384         * lib/c-strncasecmp.c: Likewise.
58385         * lib/c-strstr.c: Likewise.
58386         * lib/classpath.c: Likewise.
58387         * lib/clean-temp.c: Likewise.
58388         * lib/concatpath.c: Likewise.
58389         * lib/copy-file.c: Likewise.
58390         * lib/csharpcomp.c: Likewise.
58391         * lib/csharpexec.c: Likewise.
58392         * lib/execute.c: Likewise.
58393         * lib/fatal-signal.c: Likewise.
58394         * lib/findprog.c: Likewise.
58395         * lib/fwriteerror.c: Likewise.
58396         * lib/gl_array_list.c: Likewise.
58397         * lib/gl_array_oset.c: Likewise.
58398         * lib/gl_avltree_list.c: Likewise.
58399         * lib/gl_avltree_oset.c: Likewise.
58400         * lib/gl_avltreehash_list.c: Likewise.
58401         * lib/gl_carray_list.c: Likewise.
58402         * lib/gl_linked_list.c: Likewise.
58403         * lib/gl_linkedhash_list.c: Likewise.
58404         * lib/gl_list.c: Likewise.
58405         * lib/gl_oset.c: Likewise.
58406         * lib/gl_rbtree_list.c: Likewise.
58407         * lib/gl_rbtree_oset.c: Likewise.
58408         * lib/gl_rbtreehash_list.c: Likewise.
58409         * lib/imaxabs.c: Likewise.
58410         * lib/imaxdiv.c: Likewise.
58411         * lib/javacomp.c: Likewise.
58412         * lib/javaexec.c: Likewise.
58413         * lib/javaversion.c: Likewise.
58414         * lib/linebreak.c: Likewise.
58415         * lib/localcharset.c: Likewise.
58416         * lib/lock.c: Likewise.
58417         * lib/mbchar.c: Likewise.
58418         * lib/mbswidth.c: Likewise.
58419         * lib/mkdtemp.c: Likewise.
58420         * lib/pipe.c: Likewise.
58421         * lib/printf-args.c: Likewise.
58422         * lib/printf-parse.c: Likewise.
58423         * lib/progname.c: Likewise.
58424         * lib/progreloc.c: Likewise.
58425         * lib/readlink.c: Likewise.
58426         * lib/sh-quote.c: Likewise.
58427         * lib/stpcpy.c: Likewise.
58428         * lib/stpncpy.c: Likewise.
58429         * lib/strcasecmp.c: Likewise.
58430         * lib/strcasestr.c: Likewise.
58431         * lib/strcspn.c: Likewise.
58432         * lib/striconv.c: Likewise.
58433         * lib/strncasecmp.c: Likewise.
58434         * lib/strnlen1.c: Likewise.
58435         * lib/strstr.c: Likewise.
58436         * lib/strtok_r.c: Likewise.
58437         * lib/tls.c: Likewise.
58438         * lib/tmpdir.c: Likewise.
58439         * lib/unicodeio.c: Likewise.
58440         * lib/unsetenv.c: Likewise.
58441         * lib/vasnprintf.c: Likewise.
58442         * lib/vasprintf.c: Likewise.
58443         * lib/wait-process.c: Likewise.
58444         * lib/xallocsa.c: Likewise.
58445         * lib/xsetenv.c: Likewise.
58446         * lib/xstriconv.c: Likewise.
58447
58448 2006-09-13  Simon Josefsson  <jas@extundo.com>
58449
58450         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58451         that internally, suggested by Ralf Wildenhues
58452         <Ralf.Wildenhues@gmx.de>.
58453
58454 2006-09-13  Simon Josefsson  <jas@extundo.com>
58455
58456         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58457         @LIBOBJS@.
58458         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58459
58460 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58461
58462         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58463         longer worry about uses that don't define HAVE_CONFIG_H.
58464         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58465         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58466         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58467         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58468         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58469         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58470         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58471         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58472         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58473         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58474         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58475         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58476         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58477         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58478         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58479         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58480         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58481         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58482         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58483         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58484         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58485         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58486         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58487         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58488         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58489         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58490         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58491         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58492         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58493         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58494         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58495         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58496         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58497         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58498         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58499         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58500         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58501         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58502         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58503         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58504         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58505         Likewise.
58506
58507 2006-09-13  Eric Blake  <ebb9@byu.net>
58508
58509         * lib/getopt.c: Fix typo in last commit.
58510
58511 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58512
58513         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58514         dgettext.
58515
58516 2006-09-12  Jim Meyering  <jim@meyering.net>
58517
58518         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58519         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58520         Reported by Nelson H. F. Beebe.
58521
58522 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58523
58524         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58525         program_invocation_name and program_invocation_short_name are
58526         initialized.
58527         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58528         and program_invocation_short_name to argp.h, so they are visible
58529         to user programs.
58530         * lib/argp.h: Likewise
58531
58532 2006-09-10  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58535         m4/inttypes_h.m4, m4/uintmax_t.m4.
58536
58537 2006-09-10  Bruno Haible  <bruno@clisp.org>
58538
58539         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58540         gl_AC_TYPE_UINTMAX_T.
58541
58542 2006-09-10  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58545
58546 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58547
58548         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58549         convention.  Text proposed by Bruno Haible.
58550         (struct argp_option): Document the use of N_() wrappers.
58551
58552         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58553         '\v', and translate the two parts separately, instead of feeding
58554         the whole string to gettext.  This allows to exclude
58555         '\v' from the strings visible to the translator by writing doc
58556         strings as N_("..") "\v" N_("..").
58557
58558 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         * config/srclist.txt: Undo latest change; the bug was fixed.
58561
58562 2006-09-09  Bruno Haible  <bruno@clisp.org>
58563
58564         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58565         assignments if building a library without libtool.
58566         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58567         in func_emit_lib_Makefile_am.
58568         (func_import): When building a static library libfoo.a, arrange to
58569         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58570         (func_create_testdir): Likewise.
58571         * modules/gc (configure.ac, Makefile.am): If building statically,
58572         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58573         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58574         * modules/striconv (configure.ac, Makefile.am): Likewise.
58575         Based on a suggestion by Ralf Wildenhues.
58576
58577 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58578
58579         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58580         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58581         Also:
58582
58583         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58584         Add year_2050_test to catch glibc bug 2821
58585         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58586
58587         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58588         Prefer #ifdef to #if.
58589
58590         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58591         Return from 'main' instead of calling 'exit'.
58592
58593 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58594
58595         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58596         returned the maximum time_t value rather than (time_t) -1.
58597         Problem originally reported by William Bardwell
58598         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58599
58600         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58601         Moved to here ...
58602         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58603         ... from here.
58604
58605 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58606
58607         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58608         2821 is fixed.
58609
58610 2006-09-08  Jim Meyering  <jim@meyering.net>
58611
58612         Don't make generated files read-only.  That would bother too many
58613         people.  However, do retain the ability to work when targets are
58614         read-only: remove the destination and temporary files before writing
58615         them (when generated via sed or echo), or by using the -f option for
58616         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58617         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58618         * modules/byteswap, modules/configmake, modules/fcntl:
58619         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58620         * modules/localcharset, modules/netinet_in, modules/poll:
58621         * modules/stdbool, modules/stdint, modules/sys_select:
58622         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58623
58624 2006-09-08  Jim Meyering  <jim@meyering.net>
58625
58626         Avoid new build failure on FreeBSD 6.0.
58627         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58628         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58629         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58630
58631 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58632
58633         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58634
58635 2006-09-07  Jim Meyering  <jim@meyering.net>
58636
58637         Fix global typo in last change: use chmod u-w, not chmod u-x.
58638         Spotted by Paul Eggert and Bruce Korb.
58639         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58640         * modules/byteswap, modules/configmake, modules/fcntl:
58641         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58642         * modules/localcharset, modules/netinet_in, modules/poll:
58643         * modules/stdbool, modules/stdint, modules/sys_select:
58644         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58645
58646 2006-09-06  Jim Meyering  <jim@meyering.net>
58647
58648         Make generated files be read-only.
58649         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58650         Ensure that each generated file is now read-only.
58651         * modules/argz: Likewise.
58652         * modules/arpa_inet: Likewise.
58653         * modules/byteswap: Likewise.
58654         * modules/configmake: Likewise.
58655         * modules/fcntl: Likewise.
58656         * modules/fnmatch: Likewise.
58657         * modules/getopt: Likewise.
58658         * modules/glob: Likewise.
58659         * modules/inttypes: Likewise.
58660         * modules/netinet_in: Likewise.
58661         * modules/poll: Likewise.
58662         * modules/stdbool: Likewise.
58663         * modules/stdint: Likewise.
58664         * modules/sys_select: Likewise.
58665         * modules/sys_socket: Likewise.
58666         * modules/sys_stat: Likewise.
58667         * modules/sysexits: Likewise.
58668         * modules/localcharset: Same as above, but continue using temporary
58669         file named "t-$@" (why different?) rather than the "$@-t" used
58670         everywhere else.
58671
58672         * modules/sysexits (Makefile.am): Replace literal occurrences
58673         of "sysexit.h" more readable, and more consistent, "$@".
58674
58675 2006-09-06  Bruno Haible  <bruno@clisp.org>
58676
58677         * modules/striconv: New file.
58678         * modules/xstriconv: New file.
58679         * MODULES.html.sh (Internationalization functions): Add striconv,
58680         xstriconv.
58681
58682 2006-09-06  Bruno Haible  <bruno@clisp.org>
58683
58684         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58685         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58686         not using libtool correctly.
58687
58688 2006-09-06  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/striconv.h: New file.
58691         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58692         iconvstring.c.
58693         * lib/xstriconv.h: New file.
58694         * lib/xstriconv.c: New file.
58695
58696 2006-09-06  Bruno Haible  <bruno@clisp.org>
58697
58698         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58699         lib_..._LDFLAGS.
58700
58701 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58702
58703         * lib/argz_.h: Sync from Libtool.
58704
58705         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58706                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58707
58708         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58709
58710 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58711
58712         * modules/trim: New file.
58713
58714 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58715
58716         * lib/trim.h: New file.
58717         * lib/trim.c: New file.
58718
58719 2006-09-05  Bruno Haible  <bruno@clisp.org>
58720
58721         * MODULES.html.sh (String handling): Add trim.
58722
58723 2006-09-04  Karl Berry  <karl@gnu.org>
58724
58725         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58726         until next release.
58727
58728 2006-09-03  Bruno Haible  <bruno@clisp.org>
58729
58730         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58731         correctly.
58732
58733 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58734
58735         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58736         not gl_GETLOADAVG.  Omit unneeded semicolons.
58737         Problems reported by Ralf Wildenhues in
58738         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58739         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58740         at the end, which is the usual gnulib style.
58741
58742         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58743         of doing all the work ourselves.
58744         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58745         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58746
58747 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58750         Problem reported by Ralf Wildenhues in
58751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58752
58753         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58754         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58755
58756 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58757
58758         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58759         yesterday's patch by changing test -n to test -z.
58760
58761 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58762
58763         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58764         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58765         the former is now obsolescent.
58766
58767         * modules/chdir-long (Depends-on): Add fcntl.
58768
58769 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58772         obsolescent, and programs should use gnulib instead.
58773         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58774         but with prefixes changed.
58775
58776 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58777
58778         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58779         or stdbool.h, because they might not exist while configuring.
58780
58781         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58782         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58783         does that for us.
58784         (O_DIRECTORY): Remove.
58785
58786 2006-08-31  Eric Blake  <ebb9@byu.net>
58787
58788         * gnulib-tool: Don't let emacs change spaces to TAB.
58789
58790 2006-08-31  Bruno Haible  <bruno@clisp.org>
58791
58792         * gnulib-tool: When calling func_import more than once, do it in a
58793         subshell.
58794         Reported by Eric Blake <ebb9@byu.net>.
58795
58796 2006-08-31  Bruno Haible  <bruno@clisp.org>
58797
58798         * gnulib-tool (nl): Remove variable.
58799         (sed_transform_lib_file): Use more robust test for config-h module.
58800         (func_import): Fix typo in 2006-08-25 patch.
58801
58802 2006-08-31  Bruno Haible  <bruno@clisp.org>
58803
58804         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58805         specified, augment Makefile.am variables instead of assigning them.
58806
58807 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58808
58809         Work around a bug in both the Linux and SunOS 64-bit kernels:
58810         nanosleep mishandles sleeps for longer than 2**31 seconds.
58811         Problem reported by Frank v Waveren in
58812         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58814         Check for nanosleep bug.
58815         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58816
58817 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58818
58819         Work around a bug in both the Linux and SunOS 64-bit kernels:
58820         nanosleep mishandles sleeps for longer than 2**31 seconds.
58821         Problem reported by Frank v Waveren in
58822         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58823         * lib/nanosleep.c (BILLION): New constant.
58824         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58825         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58826         implementation.
58827
58828 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58829
58830         * modules/nanosleep (Depends-on): Add gettime.
58831
58832 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58833         and Simon Josefsson  <jas@extundo.com>
58834         and Oskar Liljeblad  <oskar@osk.mine.nu>
58835
58836         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58837         * gnulib-tool (func_import): New license type 'unmodifiable license
58838         text'.
58839         * modules/fdl: Use it.  Longer description.
58840         * module/gpl, module/lgpl: New files.
58841
58842 2006-08-30  Jim Meyering  <jim@meyering.net>
58843
58844         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58845         shadowing the parameter.
58846
58847 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58848
58849         Sync from Libtool:
58850
58851         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58852
58853         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58854         sharing with gnulib.  Report by Eric Blake.
58855
58856 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * modules/isapipe: New file.
58859         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58860
58861 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58862
58863         * modules/configmake (Makefile.am): Add a comment, and omit
58864         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58865         by Bruno Haible.
58866
58867 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58868
58869         * m4/isapipe.m4: New file.
58870
58871 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58872
58873         * lib/isapipe.c, lib/isapipe.h: New files.
58874
58875 2006-08-29  Jim Meyering  <jim@meyering.net>
58876
58877         * modules/configmake (Makefile.am): Make configmake.h depend on
58878         Makefile.  Otherwise, a stale configmake.h could hang around.
58879
58880 2006-08-29  Eric Blake  <ebb9@byu.net>
58881
58882         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58883         resolution of upstream bug 3044.
58884
58885 2006-08-29  Bruno Haible  <bruno@clisp.org>
58886
58887         * modules/localcharset (Depends-on): Add configmake.
58888         (Makefile.am): Remove setting of LIBDIR through DEFS.
58889
58890 2006-08-29  Bruno Haible  <bruno@clisp.org>
58891
58892         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58893         defined.
58894
58895 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58896
58897         * modules/fcntl: New file.
58898         * modules/chdir-safer (Depends-on): Add fcntl.
58899         * modules/fts: Likewise.
58900         * modules/mkdir-p: Likewise.
58901
58902         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58903         This undoes the most recent change, since we're now addressing the
58904         problem in a different way.
58905
58906         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58907         into output, since the output might be called Makefile.am even
58908         if $makefile_name is something different.
58909         (func_import): Use $makefile_am rather than
58910         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58911         empty.
58912
58913         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58914
58915 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58918         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58919         recent change to stdint.m4, since we're now addressing the problem in a
58920         different way.
58921
58922 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * m4/fcntl_h.m4: New file.
58925
58926 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58927
58928         * lib/fcntl_.h: New file.
58929         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58930         the fcntl module.
58931         * lib/dirchownmod.c: Likewise.
58932         * lib/fts.c: Likewise.
58933
58934         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58935         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58936         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58937         just before including <inttypes.h>, to avoid circular inclusion.
58938
58939 2006-08-28  Jim Meyering  <jim@meyering.net>
58940
58941         * doc/visibility.texi: Actually read and correct the grammar of the
58942         sentence affected by yesterday's change.
58943
58944 2006-08-28  Eric Blake  <ebb9@byu.net>
58945
58946         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58947         needs wrapper.
58948
58949 2006-08-28  Eric Blake  <ebb9@byu.net>
58950
58951         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58952
58953 2006-08-28  Eric Blake  <ebb9@byu.net>
58954
58955         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58956
58957 2006-08-28  Bruno Haible  <bruno@clisp.org>
58958
58959         * modules/c-strstr: New file, from GNU gettext.
58960         * MODULES.html.sh (String handling): Add c-strstr.
58961
58962 2006-08-28  Bruno Haible  <bruno@clisp.org>
58963
58964         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58965         macros.
58966         Reported by Eric Blake.
58967
58968 2006-08-28  Bruno Haible  <bruno@clisp.org>
58969
58970         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58971         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58972         * lib/vasprintf.c: Include errno.h, limits.h.
58973         (EOVERFLOW): New fallback definition.
58974         (vasprintf): Test here whether the string length is > INT_MAX.
58975         * lib/vsnprintf.c: Include errno.h, limits.h.
58976         (EOVERFLOW): New fallback definition.
58977         (vsnprintf): Fix bug when generated string was too long for the buffer.
58978         Test here whether the string length is > INT_MAX.
58979
58980 2006-08-28  Bruno Haible  <bruno@clisp.org>
58981
58982         * lib/inttypes_.h (SCNX*): Remove definitions.
58983         Reported by Eric Blake.
58984
58985 2006-08-28  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/c-strstr.h: New file, from GNU gettext.
58988         * lib/c-strstr.c: New file, from GNU gettext.
58989
58990 2006-08-28  Bruno Haible  <bruno@clisp.org>
58991
58992         * gnulib-tool: Reorder some statements.
58993
58994 2006-08-28  Bruno Haible  <bruno@clisp.org>
58995
58996         * gnulib-tool: New option --makefile-name.
58997         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58998         $makefile_name.
58999         (func_import): Write $makefile_name to the cache file, and read it from
59000         there unless explicitly specified. Use $makefile_name as file name
59001         instead of Makefile.am. Adjust the recommendations accordingly.
59002
59003 2006-08-28  Bruno Haible  <bruno@clisp.org>
59004
59005         * gnulib-tool (func_verify_module): Check against misapplying patch.
59006
59007 2006-08-28  Bruno Haible  <bruno@clisp.org>
59008
59009         * gnulib-tool (func_relativize, func_relconcat): New functions.
59010         Give an error if --local-dir is given with --update.
59011         Remove trailing slashes from $local_gnulib_dir.
59012         (func_import): Store the relativized $local_gnulib_dir in
59013         gnulib-cache.m4, and read it from there if not specified explicitly.
59014
59015 2006-08-28  Bruno Haible  <bruno@clisp.org>
59016
59017         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59018         is the current directory. Respect also $local_gnulib_dir.
59019
59020 2006-08-28  Bruno Haible  <bruno@clisp.org>
59021             Simon Josefsson  <jas@extundo.com>
59022
59023         BeOS portability.
59024         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59025
59026 2006-08-27  Jim Meyering  <jim@meyering.net>
59027
59028         * doc/visibility.texi: Remove duplicate word: "pointer".
59029
59030 2006-08-26  Bruno Haible  <bruno@clisp.org>
59031
59032         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59033         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59034         (Makefile.am): Create inttypes.h from inttypes_.h.
59035         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59036
59037         * modules/imaxabs: New file.
59038
59039         * modules/imaxdiv: New file.
59040
59041 2006-08-26  Bruno Haible  <bruno@clisp.org>
59042
59043         * m4/inttypes.m4: New file.
59044         * m4/_inttypes_h.m4: Remove file.
59045         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59046         PRI_MACROS_BROKEN.
59047         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59048
59049         * m4/imaxabs.m4: New file.
59050
59051         * m4/imaxdiv.m4: New file.
59052
59053 2006-08-26  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/inttypes_.h: New file.
59056         * lib/inttypes.h: Remove file.
59057         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59058
59059         * lib/imaxabs.c: New file.
59060
59061         * lib/imaxdiv.c: New file.
59062
59063 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59064
59065         New config-h module, so that "make" output needn't be cluttered
59066         by -DHAVE_CONFIG_H.
59067         * MODULES.html.sh (Support for building libraries and executables):
59068         Add config-h.
59069         * modules/config-h: New file.
59070         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59071         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59072         the config-h module is used.
59073
59074         New configmake module, so that "make" output needn't be cluttered
59075         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59076         * MODULES.html.sh (Support for building libraries and executables):
59077         Add configmake.
59078         * modules/configmake: New file.
59079
59080 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59081
59082         * m4/config-h.m4: New file.
59083
59084 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59085
59086         * config/srclist.txt: Add elisp-comp.
59087
59088 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59089
59090         * MODULES.html.sh (Support for building libraries and executables):
59091         Add elisp-comp.
59092         * build-aux/elisp-comp: New file.
59093         * modules/elisp-comp: New file.
59094
59095 2006-08-24  Bruno Haible  <bruno@clisp.org>
59096
59097         * gnulib-tool (func_create_testdir): Use non-default values of
59098         sourcebase and m4base.
59099
59100 2006-08-24  Bruno Haible  <bruno@clisp.org>
59101
59102         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59103         HTML structure.
59104
59105 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59106
59107         * modules/openat (Depends-on): Add lchown.
59108
59109 2006-08-23  Bruno Haible  <bruno@clisp.org>
59110
59111         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59112         of gl_LOCK_EARLY instead of gl_LOCK.
59113
59114 2006-08-23  Bruno Haible  <bruno@clisp.org>
59115
59116         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59117         on OSF/1 to no.
59118         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59119
59120 2006-08-23  Bruno Haible  <bruno@clisp.org>
59121
59122         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59123         as unusable.
59124
59125         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59126         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59127         (gl_LOCK): New macro.
59128
59129 2006-08-22  Simon Josefsson  <jas@extundo.com>
59130
59131         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59132         to md5 module.
59133
59134 2006-08-22  Simon Josefsson  <jas@extundo.com>
59135
59136         * MODULES.html.sh: Add "Support for maintaining and release
59137         projects".
59138
59139         * build-aux/gnupload: New file, from coreutils.
59140
59141 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59142
59143         Avoid the need for AC_LIBSOURCES in m4 macros.
59144         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59145         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59146         * modules/check-version (EXTRA_DIST): Add check-version.h.
59147         * modules/crc (EXTRA_DIST): Add crc.h.
59148         * modules/des (EXTRA_DIST): Add des.h.
59149         * modules/gc (EXTRA_DIST): Add gc.h.
59150         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59151         * modules/getline (EXTRA_DIST): Add getline.h.
59152         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59153         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59154         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59155         * modules/md2 (EXTRA_DIST): Add md2.h.
59156         * modules/md4 (EXTRA_DIST): Add md4.h.
59157         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59158         * modules/read-file (EXTRA_DIST): Add read-file.h.
59159         * modules/readline (EXTRA_DIST): Add readline.h.
59160         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59161         rijndael-api-fst.h.
59162
59163 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59164
59165         * m4/rijndael.m4 (gl_ARCFOUR):
59166         * m4/arctwo.m4 (gl_ARCTWO):
59167         * m4/check-version.m4 (gl_CHECK_VERSION):
59168         * m4/crc.m4 (gl_CRC):
59169         * m4/des.m4 (gl_DES):
59170         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59171         * m4/gc.m4 (gl_GC):
59172         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59173         * m4/getline.m4 (gl_FUNC_GETLINE):
59174         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59175         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59176         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59177         * m4/md2.m4 (gl_MD2):
59178         * m4/md4.m4 (gl_MD4):
59179         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59180         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59181         * m4/readline.m4 (gl_FUNC_READLINE):
59182         * m4/rijndael.m4 (gl_RIJNDAEL):
59183         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59184         to get the necessary .h files and whatnot.
59185
59186 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59189         gnulib rather than the other way around.
59190         * config/srclistvars.sh (COREUTILS): Remove.
59191
59192 2006-08-22  Jim Meyering  <jim@meyering.net>
59193
59194         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59195
59196         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59197
59198 2006-08-22  Eric Blake  <ebb9@byu.net>
59199
59200         * modules/regexprops-generic: New file.
59201         * MODULES.html.sh (Support for building documentation): List it.
59202
59203 2006-08-22  Eric Blake  <ebb9@byu.net>
59204
59205         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59206         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59207         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59208         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59209
59210 2006-08-22  Bruno Haible  <bruno@clisp.org>
59211
59212         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59213         and lib_LTLIBRARIES like the other lib_* variables.
59214
59215 2006-08-22  Bruno Haible  <bruno@clisp.org>
59216
59217         * build-aux/x-to-1.in: New file, from GNU gettext.
59218
59219 2006-08-22  Bruno Haible  <bruno@clisp.org>
59220
59221         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59222         <utmpx.h> exists.
59223
59224 2006-08-22  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59227         <utmpx.h> exists.
59228
59229 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         BeOS portability.
59232         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59233         exist.
59234         Problem reported by Bruno Haible.
59235
59236 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59237
59238         Avoid the need for AC_LIBSOURCES in m4 macros.
59239         * modules/acl (EXTRA_DIST): Add acl.h.
59240         * modules/argmatch (Files): Add m4/argmatch.m4.
59241         (configure.ac): Add gl_ARGMATCH.
59242         (EXTRA_DIST): Renamed from lib_SOURCES, for
59243         consistency with the other modules.  Remove argmatch.c.
59244         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59245         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59246         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59247         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59248         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59249         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59250         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59251         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59252         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59253         * modules/closeout (EXTRA_DIST): Add closeout.h.
59254         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59255         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59256         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59257         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59258         dirname.h; remove basename.c and stripslash.c.
59259         * modules/exclude (EXTRA_DIST): Add exclude.h.
59260         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59261         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59262         * modules/file-type (EXTRA_DIST): Add file-type.h.
59263         * modules/filemode (EXTRA_DIST): Add filemode.h.
59264         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59265         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59266         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59267         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59268         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59269         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59270         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59271         * modules/getdate (EXTRA_DIST): Add getdate.c.
59272         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59273         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59274         * modules/getpass (EXTRA_DIST): Add getpass.h.
59275         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59276         * modules/group-member (EXTRA_DIST): Add group-member.h.
59277         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59278         * modules/hash (EXTRA_DIST): Add hash.h.
59279         * modules/human (EXTRA_DIST): Add human.h.
59280         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59281         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59282         * modules/lchown (EXTRA_DIST): Add lchown.h.
59283         * modules/long-options (EXTRA_DIST): Add long-options.h.
59284         * modules/lstat (EXTRA_DIST): Add lstat.h.
59285         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59286         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59287         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59288         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59289         * modules/memxor (EXTRA_DIST): Add memxor.h.
59290         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59291         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59292         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59293         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59294         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59295         * modules/physmem (EXTRA_DIST): Add physmem.h.
59296         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59297         * modules/posixver (EXTRA_DIST): Add posixver.h.
59298         * modules/quote (EXTRA_DIST): Add quote.h.
59299         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59300         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59301         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59302         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59303         regex_internal.h regexec.c.
59304         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59305         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59306         * modules/same (EXTRA_DIST): Add same.h.
59307         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59308         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59309         * modules/savedir (EXTRA_DIST): Add savedir.h.
59310         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59311         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59312         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59313         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59314         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59315         * modules/strdup (EXTRA_DIST): Add strdup.h.
59316         * modules/strftime (EXTRA_DIST): Add strftime.h.
59317         * modules/strndup (EXTRA_DIST): Add strndup.h.
59318         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59319         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59320         * modules/time_r (EXTRA_DIST): Add time_r.h.
59321         * modules/timespec (EXTRA_DIST): Add timespec.h.
59322         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59323         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59324         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59325         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59326         * modules/userspec (EXTRA_DIST): Add userspec.h.
59327         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59328         * modules/utimens (EXTRA_DIST): Add utimens.h.
59329         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59330         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59331         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59332         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59333         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59334         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59335         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59336         * modules/yesno (EXTRA_DIST): Add yesno.h.
59337
59338 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59341
59342         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59343         * m4/dev-ino.m4, same-inode.m4: Remove.
59344
59345         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59346         * m4/acl.m4 (AC_FUNC_ACL):
59347         * m4/backupfile.m4 (gl_BACKUPFILE):
59348         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59349         * m4/canon-host.m4 (gl_CANON_HOST):
59350         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59351         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59352         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59353         * m4/cloexec.m4 (gl_CLOEXEC):
59354         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59355         * m4/closeout.m4 (gl_CLOSEOUT):
59356         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59357         * m4/dirname.m4 (gl_DIRNAME):
59358         * m4/exclude.m4 (gl_EXCLUDE):
59359         * m4/exitfail.m4 (gl_EXITFAIL):
59360         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59361         * m4/file-type.m4 (gl_FILE_TYPE):
59362         * m4/filemode.m4 (gl_FILEMODE):
59363         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59364         * m4/fpending.m4 (gl_FUNC_FPENDING):
59365         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59366         * m4/fts.m4 (gl_FUNC_FTS):
59367         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59368         * m4/getdate.m4 (gl_GETDATE):
59369         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59370         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59371         * m4/getpass.m4 (gl_FUNC_GETPASS):
59372         * m4/gettime.m4 (gl_GETTIME):
59373         * m4/getugroups.m4 (gl_GETUGROUPS):
59374         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59375         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59376         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59377         * m4/hash.m4 (gl_HASH):
59378         * m4/idcache.m4 (gl_IDCACHE):
59379         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59380         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59381         * m4/long-options.m4 (gl_LONG_OPTIONS):
59382         * m4/lstat.m4 (gl_FUNC_LSTAT):
59383         * m4/md5.m4 (gl_MD5):
59384         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59385         * m4/memcoll.m4 (gl_MEMCOLL):
59386         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59387         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59388         * m4/memxor.m4 (gl_MEMXOR):
59389         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59390         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59391         * m4/modechange.m4 (gl_MODECHANGE):
59392         * m4/mountlist.m4 (gl_MOUNTLIST):
59393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59394         * m4/openat.m4 (gl_FUNC_OPENAT):
59395         * m4/pathmax.m4 (gl_PATHMAX):
59396         * m4/physmem.m4 (gl_PHYSMEM):
59397         * m4/posixtm.m4 (gl_POSIXTM):
59398         * m4/posixver.m4 (gl_POSIXVER):
59399         * m4/quote.m4 (gl_QUOTE):
59400         * m4/quotearg.m4 (gl_QUOTEARG):
59401         * m4/readtokens.m4 (gl_READTOKENS):
59402         * m4/readutmp.m4 (gl_READUTMP):
59403         * m4/regex.m4 (gl_REGEX):
59404         * m4/safe-read.m4 (gl_SAFE_READ):
59405         * m4/safe-write.m4 (gl_SAFE_WRITE):
59406         * m4/same.m4 (gl_SAME):
59407         * m4/save-cwd.m4 (gl_SAVE_CWD):
59408         * m4/savedir.m4 (gl_SAVEDIR):
59409         * m4/settime.m4 (gl_SETTIME):
59410         * m4/sha1.m4 (gl_SHA1):
59411         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59412         * m4/stat-macros.m4 (gl_STAT_MACROS):
59413         * m4/stat-time.m4 (gl_STAT_TIME):
59414         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59415         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59416         * m4/strdup.m4 (gl_FUNC_STRDUP):
59417         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59418         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59419         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59420         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59421         * m4/time_r.m4 (gl_TIME_R):
59422         * m4/timespec.m4 (gl_TIMESPEC):
59423         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59424         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59425         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59426         * m4/userspec.m4 (gl_USERSPEC):
59427         * m4/utimecmp.m4 (gl_UTIMECMP):
59428         * m4/utimens.m4 (gl_UTIMENS):
59429         * m4/xalloc.m4 (gl_XALLOC):
59430         * m4/xgetcwd.m4 (gl_XGETCWD):
59431         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59432         * m4/xreadlink.m4 (gl_XREADLINK):
59433         * m4/xstrtod.m4 (gl_XSTRTOD):
59434         * m4/yesno.m4 (gl_YESNO):
59435         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59436         to get the necessary .h files and whatnot.
59437
59438 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59439             Bruno Haible  <bruno@clisp.org>
59440
59441         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59442         /bin/sh understanding of '!' conditional negation.
59443
59444 2006-08-21  Jim Meyering  <jim@meyering.net>
59445
59446         * modules/openat (Depends-on): Really alphabetize.
59447
59448         * modules/acl (Depends-on): Add error and quote.
59449
59450         * check-module (find_included_lib_files): Add at-func.c to the
59451         ok-to-include-more-than-once white list.
59452
59453         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59454
59455 2006-08-21  Bruno Haible  <bruno@clisp.org>
59456
59457         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59458         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59459         Reported by Martin Lambers <marlam@marlam.de>.
59460
59461 2006-08-21  Bruno Haible  <bruno@clisp.org>
59462
59463         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59464         specify an installation location, don't emit a noinst_LIBRARIES or
59465         noinst_LTLIBRARIES assignment.
59466
59467 2006-08-21  Bruno Haible  <bruno@clisp.org>
59468
59469         BeOS portability.
59470         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59471         BeOS has mbrtowc() but no <wctype.h>.
59472
59473 2006-08-21  Bruno Haible  <bruno@clisp.org>
59474
59475         BeOS portability.
59476         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59477         exist.
59478
59479 2006-08-21  Bruno Haible  <bruno@clisp.org>
59480
59481         BeOS portability.
59482         * lib/mbchar.h: Include <wctype.h> only if it exists.
59483
59484 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59485
59486         Remove files that are no longer needed by their respective modules.
59487         * m4/obstack.m4: Remove.
59488         * m4/strerror_r.m4: Remove.
59489         * m4/uint32_t.m4: Remove.
59490         * m4/uintptr_t.m4: Remove.
59491         * m4/ullong_max.m4: Remove.
59492         * m4/xstrtoimax.m4: Remove.
59493         * m4/xstrtoumax.m4: Remove.
59494
59495         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59496         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59497         dependencies now capture this.
59498
59499         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59500         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59501         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59502         * m4/human.m4 (gl_HUMAN): Likewise.
59503         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59504         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59505
59506         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59507
59508         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59509         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59510         stdint.
59511         * m4/human.m4 (gl_HUMAN): Likewise.
59512         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59514         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59515         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59516         * m4/xstrtol (gl_XSTRTOL): Likewise.
59517
59518         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59519         AC_TYPE_LONG_LONG_INT.
59520         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59521         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59522         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59523         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59524
59525         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59526         on stdbool.
59527
59528         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59529         (gl_PREREQ_XSTRTOUL): Remove.
59530
59531         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59532
59533         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59534         mode.
59535
59536 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59537
59538         Add and change modules to make it easier for coreutils to use
59539         gnulib-tool.
59540         * modules/backupfile (Files): Remove m4/d-ino.m4.
59541         (Depends-on): Add d-ino.
59542         * modules/cycle-check (Depends-on): Add stdint.
59543         (lib_SOURCES): Add cycle-check.h.
59544         * modules/d-ino: New module.
59545         * modules/d-type: New module.
59546         * modules/error (Files): Remove m4/strerror_r.m4.
59547         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59548         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59549         m4/inttypes_h.m4, m4/uintmax_t.m4.
59550         (Depends-on): Add stdint.
59551         (lib_SOURCES): Add fsusage.h.
59552         * modules/getcwd (Files): Remove d-ino.m4.
59553         (Depends-on): Add d-ino.
59554         * modules/getndelim2 (Depends-on): Add stdint.
59555         * modules/glob (Files): Remove m4/d-type.m4.
59556         (Depends-on): Add d-type.
59557         * modules/host-os: New module.
59558         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59559         m4/inttypes_h.m4, m4/uintmax_t.m4.
59560         * Depends-on: Add stdint.
59561         (lib_SOURCES): Add human.h.
59562         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59563         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59564         m4/uintmax_t.m4, m4/ulonglong.m4.
59565         (Depends-on): Add stdint.
59566         (EXTRA_DIST): Add inttostr.h.
59567         * modules/lchmod: New module.
59568         * modules/link-follow: New module.
59569         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59570         (Depends-on): Add lchmod.
59571         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59572         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59573         (Depends-on): Add stdint.
59574         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59575         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59576         (Depends-on): Add stdint.
59577         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59578         * modules/perl: New module.
59579         * modules/regex (Depends-on): Add stdint.
59580         * modules/rmdir-errno: New module.
59581         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59582         m4/intmax_t.m4.
59583         (Depends-on): Add stdint.
59584         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59585         m4/uintmax_t.m4.
59586         (Depends-on): Add stdint.
59587         * modules/unlink-busy: New module.
59588         * modules/utimecmp (Depends-on): Add stdint.
59589         * modules/uptime: New module.
59590         * modules/winsz-ioctl: New module.
59591         * modules/winsz-termios: New module.
59592         * modules/xnanosleep (Depends-on): Add nanosleep.
59593         * modules/ullong_max: Remove.
59594         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59595         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59596         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59597         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59598         (Depends-on): Add inttypes.
59599         (lib_SOURCES): Add xstrtol.h.
59600         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59601         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59602         * MODULES.html.sh: Move 'assert' into the assert section.
59603         Move 'dummy' into the linking section.
59604         Remove ullong_max.
59605         Add section for compatibility checks for POSIX:2001 functions,
59606         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59607         winsz-ioctl, and winsz-termios into it.
59608         Add lchmod.
59609         Add top-level Misc section and put host-os, perl, and uptime
59610         into it.
59611
59612 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59613
59614         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59615         now assume the stdint module.  Do not include inttypes.h.
59616         * lib/fsusage.h: Likewise.
59617         * lib/getndelim2.c: Likewise.
59618         * lib/human.h: Likewise.
59619         * lib/inttostr.h: Likewise.
59620         * lib/obstack.c: Likewise.
59621         * lib/regex_internal.h: Likewise.
59622         * lib/tempname.c: Likewise.
59623         * lib/utimecmp.c: Likewise.
59624         * lib/xstrtol.h: Likewise.
59625
59626         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59627
59628         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59629         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59630         * lib/xtime.h: Likewise.
59631
59632 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         * modules/openat (Files): Add lib/fchmodat.c.
59635         Fixes problem reported by Jay Youngman.
59636
59637 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59640         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59641
59642 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59643             Bruno Haible  <bruno@clisp.org>
59644
59645         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59646         and is a script that invokes bison. Tighten the code. Add comments.
59647
59648 2006-08-18  Jim Meyering  <jim@meyering.net>
59649
59650         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59651         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59652         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59653         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59654
59655 2006-08-18  Bruno Haible  <bruno@clisp.org>
59656
59657         * modules/bison-i18n: New file.
59658         * MODULES.html.sh (Internationalization functions): Add it.
59659
59660 2006-08-18  Bruno Haible  <bruno@clisp.org>
59661
59662         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59663         sys/statvfs.h. When getmntinfo was found, check its declaration and
59664         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59665
59666 2006-08-18  Bruno Haible  <bruno@clisp.org>
59667
59668         * m4/bison-i18n.m4: New file, from bison.
59669
59670 2006-08-18  Bruno Haible  <bruno@clisp.org>
59671
59672         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59673         (ME_DUMMY): Treat "kernfs" as a dummy.
59674         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59675
59676 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59677
59678         Update from coreutils.
59679
59680         2006-08-15  Jim Meyering  <jim@meyering.net>
59681
59682         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59683
59684         2006-01-17  Jim Meyering  <jim@meyering.net>
59685
59686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59687
59688         2006-01-11  Jim Meyering  <jim@meyering.net>
59689
59690         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59691         Check for the lchmod function.
59692
59693 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59694
59695         Update from coreutils.
59696
59697         * lib/__fpending.h: Add copyright notice.
59698         * lib/fprintftime.h: Likewise.
59699         * lib/savedir.c: Use (C) in copyright notice.
59700         * lib/savedir.h: Likewise.
59701
59702         2006-08-15  Jim Meyering  <jim@meyering.net>
59703
59704         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59705         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59706         in support of the EXPECTED_ERRNO macro.
59707         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59708         definitions.  Instead, define the appropriate symbols and include
59709         "at-func.c".
59710         * lib/mkdirat.c (mkdirat): Likewise.
59711         * lib/fchmodat.c (fchmodat): Likewise.
59712         (ENOSYS): Remove definition.
59713         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59714         it.  Don't include "unistd--.h" -- it wasn't ever used.
59715
59716         2006-01-17  Jim Meyering  <jim@meyering.net>
59717
59718         Rewrite fts.c not to change the current working directory,
59719         by using openat, fstatat, fdopendir, etc..
59720
59721         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59722         (HAVE_OPENAT_SUPPORT): Define.
59723         [_LIBC] (fchdir): Don't undef or define; no longer used.
59724         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59725         Now, this `function' always succeeds, and consumes its file descriptor
59726         parameter -- so callers must not close such FDs.  Update callers.
59727         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59728         (diropen): Add parameter, SP.  Adjust all callers.
59729         Implement using diropen_fd, rather than open.
59730         (fts_open): Initialize new member, fts_cwd_fd.
59731         Remove fts_rft-setting code.
59732         (fts_close): Close fts_cwd_fd, if necessary.
59733         (__opendir2): Define in terms of opendir or opendirat,
59734         depending on whether the FST_NOCHDIR flag is set.
59735         (fts_build): Since fts_safe_changedir consumes its FD, and since
59736         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59737         and close the dup'd file descriptor upon failure.
59738         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59739         (fts_safe_changedir): Tweak semantics to reflect that this function
59740         now calls cwd_advance_fd and hence consumes its FD argument.
59741         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59742         [struct FTS] (fts_rft): Remove now-unused member.
59743         [struct FTS] (fts_cycle.state): Improve comment.
59744
59745         * lib/openat.c (openat_needs_fchdir): New function.
59746         * lib/openat.h (openat_needs_fchdir): Declare it.
59747
59748 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59749
59750         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59751         Problem and fix reported by Pádraig Brady in
59752         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59753
59754 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59755
59756         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59757
59758 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59759
59760         * lib/memcoll.c (memcoll): Optimize for the common case where the
59761         arguments are bytewise equal.
59762
59763 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59764
59765         * doc/regexprops-generic.texi: Add a copyright notice.
59766
59767 2006-08-15  Bruno Haible  <bruno@clisp.org>
59768
59769         * modules/tmpdir (License): Change to LGPL.
59770
59771 2006-08-15  Bruno Haible  <bruno@clisp.org>
59772
59773         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59774         module.
59775
59776 2006-08-14  Simon Josefsson  <jas@extundo.com>
59777
59778         * config/srclist.txt: Add gnupload.
59779
59780 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59781
59782         Change copyright notice from LGPL 2 to GPL 2, since that's the
59783         standard form used in the gnulib repository.
59784         * tests/test-lock.c: Likewise.
59785         * tests/test-stdint.c: Likewise.
59786         * tests/test-tls.c: Likewise.
59787
59788         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59789         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59790         Add copyright notice.
59791
59792         * check-module: Add copyright notice.  Output a copyright
59793         notice if "--version" is specified.
59794         * modules/COPYING: New file.
59795         * tests/test-getaddrinfo.c: Add copyright notice.
59796         * tests/test-verify.c: Likewise.
59797
59798 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59799
59800         Change copyright notice from LGPL 2 to GPL 2, since that's the
59801         standard form used in the gnulib repository.
59802         * lib/lock.c: LGPL -> GPL.
59803         * lib/lock.h: Likewise.
59804         * lib/strnlen1.c: Likewise.
59805         * lib/strnlen1.h: Likewise.
59806         * lib/tls.c: Likewise.
59807         * lib/tls.h: Likewise.
59808         * lib/tmpdir.c: Likewise.
59809
59810         * lib/TODO: Remove; this belongs only in coreutils.
59811
59812 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         Add copyright notices to long-enough files that lack them, since
59815         otherwise the files aren't clearly free.  Use the same notice that
59816         getdate.texi already uses.
59817         * doc/alloca-opt.texi: Add copyright notice.
59818         * doc/alloca.texi: Likewise.
59819         * doc/ctime.texi: Likewise.
59820         * doc/functions.texi: Likewise.
59821         * doc/gcd.texi: Likewise.
59822         * doc/gnulib-tool.texi: Likewise.
59823         * doc/inet_ntoa.texi: Likewise.
59824         * doc/visibility.texi: Likewise.
59825
59826         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59827         * doc/quote.texi: Add copyright notice.
59828
59829         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59830         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59831         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59832         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59833         is now obsolete, and give a pointer to the Sun list.
59834         Add copyright notice.
59835
59836 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59837
59838         * config/srclistvars.sh: Add copyright notice.
59839
59840 2006-08-14  Eric Blake  <ebb9@byu.net>
59841
59842         Import the following change from libc:
59843
59844         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59845
59846         Upstream bug 2997.
59847         * lib/misc/error.c: Add space between program name and message if file
59848         name is missing.
59849
59850 2006-08-12  Karl Berry  <karl@gnu.org>
59851
59852         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59853         remove, these originate in gnulib now.
59854
59855 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59856
59857         * doc/Makefile (standards.info standards.html standards.dvi):
59858         Also depend on make-stds.texi.
59859
59860 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59861
59862         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59863         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59864
59865         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59866         in wchar_t.  Problem reported by Eric Blake.
59867
59868         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59869         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59870         Also, help the compiler to keep LEN in a register.
59871
59872 2006-08-11  Eric Blake  <ebb9@byu.net>
59873
59874         * users.txt: Sort.  Add tar.
59875
59876 2006-08-11  Bruno Haible  <bruno@clisp.org>
59877
59878         * users.txt: New file.
59879
59880 2006-08-11  Bruno Haible  <bruno@clisp.org>
59881
59882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59883         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59884
59885 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         * modules/snprintf (Depends-on): Remove minmax.
59888         (Maintainer): Add self and Bruno.
59889
59890 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59893         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59894         (EOVERFLOW): Define if the system does not.
59895         Do not include "minmax.h"; it wasn't used.
59896         (snprintf): Don't assume size_t promotes to an unsigned type.
59897         Fix bug when generated string was too long for the buffer: the
59898         buffer's contents are supposed to be the initial prefix of the
59899         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59900         exceeds INT_MAX; do the check ourselves.
59901
59902         Import the following changes from libc:
59903
59904         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59905
59906         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59907         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59908         set wc to the byte which couldn't be converted.
59909         (re_string_reconstruct): Don't clear valid_raw_len before calling
59910         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59911         tip_context using re_string_context_at.
59912
59913         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59914
59915         * lib/posix/regex.h: g++ still cannot handled [restrict].
59916
59917         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59918
59919         * lib/posix/regex.h: Remove special handling for VMS.
59920
59921 2006-08-10  Jim Meyering  <jim@meyering.net>
59922
59923         * modules/same-inode: New module.
59924         * modules/dev-ino: New module.
59925         * modules/cycle-check: Depend on these modules, rather than simply
59926         including their .h files.
59927         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59928         required via m4/cycle-check.m4.
59929         * modules/same: Depend on new same-inode module, rather than
59930         including same-inode.h.
59931         * modules/chdir-safer: New file.
59932
59933         * modules/chown (Depends-on): Add stat-macros.
59934
59935 2006-08-10  Jim Meyering  <jim@meyering.net>
59936
59937         * m4/cycle-check.m4: New file.
59938         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59939         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59940
59941 2006-08-10  Eric Blake  <ebb9@byu.net>
59942
59943         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59944         in from original proposal.
59945
59946 2006-08-10  Eric Blake  <ebb9@byu.net>
59947         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59948
59949         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59950         namespace.
59951
59952 2006-08-10  Bruno Haible  <bruno@clisp.org>
59953
59954         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59955         as well.
59956
59957 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         Sync from coreutils.
59960
59961         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59962
59963         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59964         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59965
59966 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59967
59968         * modules/restrict: Remove; no longer needed now that we assume
59969         Autoconf 2.59 or later.
59970         * MODULES.html.sh: Remove 'restrict'.
59971         * modules/argp (Depends-on): Remove 'restrict'.
59972         * modules/base64 (Depends-on): Likewise.
59973         * modules/gc (Depends-on): Likewise.
59974         * modules/getaddrinfo (Depends-on): Likewise.
59975         * modules/glob (Depends-on): Likewise.
59976         * modules/inet_ntop (Depends-on): Likewise.
59977         * modules/inet_pton (Depends-on): Likewise.
59978         * modules/memxor (Depends-on): Likewise.
59979         * modules/regex (Depends-on): Likewise.
59980         * modules/strtok_r (Depends-on): Likewise.
59981         * modules/time_r (Depends-on): Likewise.
59982
59983 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59984
59985         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59986         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59987         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59988         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59989         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59990         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59991         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59992         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59993
59994         Merge from coreutils.
59995         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59996         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59998         * m4/time_r.m4 (gl_TIME_R): Likewise.
59999
60000 2006-08-09  Karl Berry  <karl@gnu.org>
60001
60002         * config/srclist.txt: no more gettext-tools, per Bruno.
60003
60004 2006-08-08  Eric Blake  <ebb9@byu.net>
60005
60006         * modules/verror: New module.
60007         * MODULES.html.sh: Document it.
60008
60009 2006-08-08  Eric Blake  <ebb9@byu.net>
60010
60011         * lib/verror.h, lib/verror.c: New files.
60012
60013 2006-08-08  Eric Blake  <ebb9@byu.net>
60014
60015         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60016         verror_at_line output complies with GNU Coding Standards even when
60017         file is NULL.
60018
60019 2006-08-07  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60022         versions of AIX.
60023         Reported by Ralf Wildenhues.
60024
60025 2006-08-07  Bruno Haible  <bruno@clisp.org>
60026
60027         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60028         in an AC_DEFUN. Needed so that the autoconf snippets can use
60029         AC_REQUIRE.
60030
60031 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60032
60033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60034         Initialize pkgdata_DATA.
60035         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60036         overriding it.
60037
60038 2006-08-06  Eric Blake  <ebb9@byu.net>
60039
60040         * lib/error.h: Fold in some upstream changes from glibc.
60041         * lib/error.c: Likewise.
60042
60043 2006-08-04  Bruno Haible  <bruno@clisp.org>
60044
60045         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60046         Make the mostlyclean-local rule depend on mostlyclean-generic.
60047         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60048
60049 2006-07-31  Bruno Haible  <bruno@clisp.org>
60050
60051         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60052         <stdlib.h>, <string.h>.
60053
60054 2006-07-30  Bruno Haible  <bruno@clisp.org>
60055
60056         * modules/readlink (License): Change to LGPL.
60057
60058 2006-07-30  Bruno Haible  <bruno@clisp.org>
60059
60060         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60061         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60062         set PKGDATADIR to point to it.
60063
60064 2006-07-30  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/csharpexec (configure.ac): Comment out macro invocation.
60067         * modules/javaexec (configure.ac): Likewise.
60068         * modules/javacomp-script (configure.ac): Likewise.
60069
60070         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60071
60072 2006-07-30  Bruno Haible  <bruno@clisp.org>
60073
60074         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60075         linked-list.
60076
60077 2006-07-30  Bruno Haible  <bruno@clisp.org>
60078
60079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60080
60081 2006-07-30  Bruno Haible  <bruno@clisp.org>
60082
60083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60084         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60085         get removed.
60086
60087 2006-07-29  Bruno Haible  <bruno@clisp.org>
60088
60089         Make it possible for gnulib-tool to work with locally modified or
60090         augmented gnulib repositories.
60091         * gnulib-tool (func_usage): Document --local-dir option.
60092         (local_gnulib_dir): New variable.
60093         Handle --local-dir option.
60094         (func_lookup_file): New function.
60095         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60096         (func_get_description, func_get_filelist, func_get_description,
60097         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60098         func_get_automake_snippet, func_get_include_directive,
60099         func_get_license, func_get_maintainer): Use func_lookup_file.
60100         (func_import, func_create_testdir): Use func_lookup_file.
60101
60102 2006-07-29  Bruno Haible  <bruno@clisp.org>
60103
60104         * modules/setenv (Depends-on): Add unistd.
60105
60106 2006-07-29  Bruno Haible  <bruno@clisp.org>
60107
60108         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60109
60110 2006-07-29  Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60113
60114 2006-07-29  Bruno Haible  <bruno@clisp.org>
60115
60116         * gnulib-tool (import, update): If there is no Makefile.am, look at
60117         aclocal.m4, instead of bailing out.
60118
60119 2006-07-29  Bruno Haible  <bruno@clisp.org>
60120
60121         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60122         Categorize the options by when they are useful.
60123
60124 2006-07-29  Bruno Haible  <bruno@clisp.org>
60125
60126         * gnulib-tool (func_usage): Document option --no-libtool.
60127         Handle option --no-libtool.
60128         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60129         for changed semantics of $libtool variable.
60130         (func_import): Likewise. If libtool is not used, show this through
60131         an option --no-libtool.
60132         (func_create_testdir): Update.
60133
60134 2006-07-29  Bruno Haible  <bruno@clisp.org>
60135
60136         * gnulib-tool (func_import): Extend error message about missing
60137         --doc-base.
60138
60139 2006-07-29  Bruno Haible  <bruno@clisp.org>
60140
60141         * gnulib-tool (func_import): Don't create the $docbase directory if
60142         there is no file to store there.
60143
60144 2006-07-29  Bruno Haible  <bruno@clisp.org>
60145
60146         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60147         relevant, look for configure.ac there, not in the current directory.
60148         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60149
60150 2006-07-29  Bruno Haible  <bruno@clisp.org>
60151
60152         * gnulib-tool (SORT): New variable.
60153         (func_usage): Undocument --assume-autoconf option.
60154         Remove --assume-autoconf option handling.
60155         (autoconf_minversion): Determine from the contents of configure.ac.
60156         (func_import): Remove autoconf_minversion handling.
60157         Suggested by Eric Blake.
60158
60159 2006-07-29  Bruno Haible  <bruno@clisp.org>
60160
60161         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60162
60163 2006-07-29  Bruno Haible  <bruno@clisp.org>
60164
60165         * config/srclist.txt (*setenv.[ch]): Remove rules.
60166
60167 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60168
60169         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60170
60171 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60172
60173         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60174         arpa/inet.h.
60175
60176 2006-07-28  Simon Josefsson  <jas@extundo.com>
60177
60178         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60179         * modules/inet_pton (Depends-on): Likewise.
60180
60181 2006-07-28  Simon Josefsson  <jas@extundo.com>
60182
60183         * m4/netinet_in_h.m4: New file.
60184
60185 2006-07-28  Simon Josefsson  <jas@extundo.com>
60186
60187         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60188         #include's.
60189
60190 2006-07-28  Simon Josefsson  <jas@extundo.com>
60191
60192         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60193         #include's.
60194
60195 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60198         setgid on directories only if they set these bits.
60199         * lib/modechange.h: Remove obsolete comment about masks.
60200
60201 2006-07-28  Eric Blake  <ebb9@byu.net>
60202
60203         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60204         macro expansion.
60205
60206 2006-07-28  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60209
60210 2006-07-28  Bruno Haible  <bruno@clisp.org>
60211
60212         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60213
60214 2006-07-28  Bruno Haible  <bruno@clisp.org>
60215
60216         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60217         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60218         Define fallbacks.
60219         Avoids link error on FreeBSD 4.x.
60220         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60221
60222         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60223         encoding.
60224         * lib/mbswidth.c (iswcntrl): Likewise.
60225
60226 2006-07-27  Bruno Haible  <bruno@clisp.org>
60227
60228         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60229         test.
60230
60231 2006-07-27  Bruno Haible  <bruno@clisp.org>
60232
60233         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60234         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60235         defined.
60236
60237 2006-07-26  Eric Blake  <ebb9@byu.net>
60238
60239         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60240
60241 2006-07-26  Eric Blake  <ebb9@byu.net>
60242
60243         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60244         like mingw that lack mkstemp.
60245         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60246         avoid compilation warning on mingw.
60247
60248 2006-07-26  Bruno Haible  <bruno@clisp.org>
60249
60250         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60251         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60252         INT_FAST*_MIN, INTPTR_MIN.
60253
60254 2006-07-25  Bruno Haible  <bruno@clisp.org>
60255
60256         * modules/version-etc (Depends-on): Add stdarg.
60257
60258 2006-07-25  Bruno Haible  <bruno@clisp.org>
60259
60260         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60261         complex commands.
60262
60263 2006-07-25  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60266         defined in <stdarg.h> or config.h.
60267
60268 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60271         (gl_STDIO_SAFER): Remove.
60272
60273 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * MODULES.html.sh (File stream based Input/Output):
60276         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60277         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60278         * modules/fopen-safer, modules/tmpfile-safer: New files.
60279         * modules/stdio-safer: Remove.
60280
60281 2006-07-24  Bruno Haible  <bruno@clisp.org>
60282
60283         * modules/tmpdir: New file.
60284         * MODULES.html.sh (File system functions): Add it.
60285
60286 2006-07-24  Bruno Haible  <bruno@clisp.org>
60287
60288         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60289         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60290
60291 2006-07-24  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/clean-temp: New file.
60294
60295 2006-07-24  Bruno Haible  <bruno@clisp.org>
60296
60297         * m4/tmpdir.m4: New file, from GNU gettext.
60298
60299 2006-07-24  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/tmpdir.h: New file, from GNU gettext.
60302         * lib/tmpdir.c: New file, from GNU gettext.
60303
60304 2006-07-24  Bruno Haible  <bruno@clisp.org>
60305
60306         * lib/clean-temp.h: New file, from GNU gettext.
60307         * lib/clean-temp.c: New file, from GNU gettext.
60308
60309 2006-07-23  Eric Blake  <ebb9@byu.net>
60310
60311         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60312         (Depends-on): Add binary-io.
60313
60314 2006-07-23  Eric Blake  <ebb9@byu.net>
60315
60316         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60317
60318 2006-07-23  Eric Blake  <ebb9@byu.net>
60319
60320         * lib/tmpfile-safer.c: New file.
60321         * lib/stdio-safer.h (fopen_safer): Add prototype.
60322         * lib/stdio--.h (tmpfile): Make safer.
60323
60324 2006-07-23  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60327         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60328         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60329         gl_linked_remove_at): Use it.
60330
60331 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60332         and Simon Josefsson <jas@extundo.com>
60333
60334         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60335
60336         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60337
60338 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60339
60340         * modules/close-stream: New file.
60341         * modules/closeout (Description): Make it clear that it exits
60342         with a diagnostic on error.
60343         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60344         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60345
60346 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60347
60348         * m4/close-stream.m4: New file.
60349
60350 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60351
60352         * lib/close-stream.c, lib/close-stream.h: New files.
60353
60354 2006-07-22  Bruno Haible  <bruno@clisp.org>
60355
60356         Merge from GNU gettext 0.15.
60357
60358         2006-05-01  Bruno Haible  <bruno@clisp.org>
60359
60360                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60361
60362         2006-07-22  Bruno Haible  <bruno@clisp.org>
60363
60364                 * modules/javaversion: New file.
60365                 * MODULES.html.sh (Java): Add javaversion.
60366
60367         2006-03-12  Bruno Haible  <bruno@clisp.org>
60368
60369                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60370
60371         2005-12-04  Bruno Haible  <bruno@clisp.org>
60372
60373                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60374                 (untested).
60375
60376         2006-06-21  Bruno Haible  <bruno@clisp.org>
60377
60378                 Avoid warnings from recent versions of mcs.
60379                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60380                 -o, -L, -r any more. Use options documented since mcs-1.0
60381                 instead. Similarly for -g.
60382
60383         2005-12-04  Bruno Haible  <bruno@clisp.org>
60384
60385                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60386                 .resources, not .resource.
60387
60388         2005-07-09  Bruno Haible  <bruno@clisp.org>
60389
60390                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60391                 add a .dll suffix.
60392                 Reported by Mark Junker <mjscod@gmx.de>.
60393
60394         2006-07-22  Bruno Haible  <bruno@clisp.org>
60395
60396                 * modules/gettext: Upgrade to gettext-0.15.
60397                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60398                 m4/visibility.m4.
60399                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60400
60401 2006-07-22  Bruno Haible  <bruno@clisp.org>
60402
60403         Merge from GNU gettext 0.15.
60404
60405         2006-03-25  Bruno Haible  <bruno@clisp.org>
60406
60407                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60408
60409         2006-07-21  Bruno Haible  <bruno@clisp.org>
60410
60411                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60412                 "1.1".
60413
60414         2006-05-09  Bruno Haible  <bruno@clisp.org>
60415
60416                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60417                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60418                 for the conftestver execution.
60419
60420         2006-05-01  Bruno Haible  <bruno@clisp.org>
60421
60422                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60423                 optional target-version argument. Verify that the compiler
60424                 groks source of the specified source-version, or add -source
60425                 option as necessary. Verify that the compiler produces
60426                 bytecode in the specified target-version, or add -target and
60427                 -source options as necessary. Make the result of the test
60428                 available as variable CONF_JAVAC. Also log error output in
60429                 config.log.
60430
60431         2006-03-11  Bruno Haible  <bruno@clisp.org>
60432
60433                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60434
60435         2006-05-09  Bruno Haible  <bruno@clisp.org>
60436
60437                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60438                 CLASSPATH_SEPARATOR to a semicolon.
60439
60440         2006-03-12  Bruno Haible  <bruno@clisp.org>
60441
60442                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60443                 available as variable CONF_JAVA, for subsequent autoconf
60444                 tests. Also log error output in config.log.
60445
60446         2006-07-19  Bruno Haible  <bruno@clisp.org>
60447
60448                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60449                 that getline works on glibc2 systems. Needed to avoid trouble
60450                 in relocatable.c.
60451                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60452
60453         2005-12-04  Bruno Haible  <bruno@clisp.org>
60454
60455                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60456                 launcher (untested).
60457
60458         2005-12-04  Bruno Haible  <bruno@clisp.org>
60459
60460                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60461
60462         2006-07-22  Bruno Haible  <bruno@clisp.org>
60463
60464                 * gettext.m4: Update from GNU gettext-0.15.
60465                 * nls.m4: Likewise.
60466                 * po.m4: Likewise.
60467                 * inttypes-pri.m4: Likewise.
60468                 * inttypes-h.m4: Renamed from inttypes.m4.
60469                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60470
60471 2006-07-22  Bruno Haible  <bruno@clisp.org>
60472
60473         Merge from GNU gettext 0.15.
60474
60475         2005-07-05  Bruno Haible  <bruno@clisp.org>
60476
60477                 * printf-args.c (printf_fetchargs): Work around broken
60478                 definition of wint_t on mingw.
60479
60480         2005-02-12  Bruno Haible  <bruno@clisp.org>
60481
60482                 * xallocsa.h: Add extern "C" for C++.
60483
60484         2006-05-17  Bruno Haible  <bruno@clisp.org>
60485
60486                 Cygwin portability.
60487                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60488
60489         2006-04-30  Bruno Haible  <bruno@clisp.org>
60490
60491                 * progreloc.c: Include <mach-o/dyld.h> if available.
60492                 (find_executable): Use _NSGetExecutablePath when possible.
60493
60494         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60495
60496                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60497                 function.
60498
60499         2005-12-29  Bruno Haible  <bruno@clisp.org>
60500
60501                 * progreloc.c (set_program_name_and_installdir): Fix
60502                 compilation error.
60503
60504         2005-12-04  Bruno Haible  <bruno@clisp.org>
60505
60506                 Cygwin portability.
60507                 * progreloc.c: Include <windows.h> also on Cygwin.
60508                 (find_executable): Add support for Cygwin.
60509                 (set_program_name_and_installdir): Handle also platforms with
60510                 nonempty EXEEXT.
60511
60512         2006-07-11  Bruno Haible  <bruno@clisp.org>
60513
60514                 * javacomp.c: Fix a comment.
60515                 Reported by Jim Meyering.
60516
60517         2006-04-30  Bruno Haible  <bruno@clisp.org>
60518
60519                 * javacomp.h (compile_java_class): Add source_version,
60520                 target_version arguments.
60521                 * javacomp.c: Rewritten to choose only a compiler that
60522                 respects the specified source_version and target_version.
60523
60524         2006-06-27  Bruno Haible  <bruno@clisp.org>
60525
60526                 Assume correct S_ISDIR macro.
60527                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60528
60529         2006-07-22  Bruno Haible  <bruno@clisp.org>
60530
60531                 * javaversion.h: New file, from GNU gettext.
60532                 * javaversion.c: New file, from GNU gettext.
60533                 * javaversion.java: New file, from GNU gettext.
60534                 * javaversion.class: New file, from GNU gettext.
60535
60536         2006-05-17  Bruno Haible  <bruno@clisp.org>
60537
60538                 Cygwin portability.
60539                 * javaexec.c (execute_java_class): Test for jview program
60540                 also on Cygwin.
60541
60542         2006-04-09  Bruno Haible  <bruno@clisp.org>
60543
60544                 * fatal-signal.c: Don't include string.h.
60545                 (at_fatal_signal): Use a copying loop instead of memcpy.
60546
60547         2005-12-04  Bruno Haible  <bruno@clisp.org>
60548
60549                 * csharpexec.c: Add support for 'clix' launcher (untested).
60550                 (execute_csharp_using_sscli): New function.
60551                 (execute_csharp_program): Call it.
60552
60553         2006-06-21  Bruno Haible  <bruno@clisp.org>
60554
60555                 Avoid warnings from recent versions of mcs.
60556                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60557                 -o, -L, -r any more. Use options documented since mcs-1.0
60558                 instead. Similarly for -g.
60559
60560         2005-07-09  Bruno Haible  <bruno@clisp.org>
60561
60562                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60563                 add a .dll suffix.
60564                 Reported by Mark Junker <mjscod@gmx.de>.
60565
60566         2006-06-17  Bruno Haible  <bruno@clisp.org>
60567
60568                 * config.charset: Update for NetBSD 3.0.
60569
60570         2006-05-17  Bruno Haible  <bruno@clisp.org>
60571
60572                 Cygwin portability.
60573                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60574
60575         2006-05-16  Bruno Haible  <bruno@clisp.org>
60576
60577                 * localcharset.c [CYGWIN]: Include <windows.h>.
60578                 (get_charset_aliases): For Cygwin, return the same CPxxx
60579                 aliases list as under WIN32.
60580                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60581                 the environment variables. Fall back to GetACP().
60582
60583         2006-04-05  Bruno Haible  <bruno@clisp.org>
60584
60585                 * config.charset: Update Juan Manuel Guerrero's address.
60586
60587         2005-02-12  Bruno Haible  <bruno@clisp.org>
60588
60589                 * allocsa.h: Add extern "C" for C++.
60590
60591         2005-02-10  Bruno Haible  <bruno@clisp.org>
60592
60593                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60594                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60595
60596         2006-07-22  Bruno Haible  <bruno@clisp.org>
60597
60598                 * gettext.h: Update to GNU gettext-0.15.
60599
60600 2006-07-22  Bruno Haible  <bruno@clisp.org>
60601
60602         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60603         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60604         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60605
60606 2006-07-21  Eric Blake  <ebb9@byu.net>
60607
60608         * modules/stdlib-safer: New file.
60609         * MODULES.html.sh (File stream based Input/Output): Add
60610         stdlib-safer.
60611
60612 2006-07-21  Eric Blake  <ebb9@byu.net>
60613
60614         * lib/stdlib-safer.h: New file from coreutils, required by
60615         stdlib--.h.
60616
60617 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60618
60619         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60620
60621 2006-07-20  Bruno Haible  <bruno@clisp.org>
60622
60623         * gnulib-tool: Recognize new option --assume-autoconf.
60624         (autoconf_minversion): New variable.
60625         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60626
60627 2006-07-20  Bruno Haible  <bruno@clisp.org>
60628
60629         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60630
60631 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60632
60633         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60634         Reindent and repaginate.
60635
60636 2006-07-19  Derek Price  <derek@ximbiot.com>
60637
60638         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60639         Correct grammar.
60640
60641 2006-07-17  Bruno Haible  <bruno@clisp.org>
60642
60643         * modules/list: New file.
60644         * modules/array-list: New file.
60645         * modules/carray-list, modules/carray-list-tests: New files.
60646         * modules/linked-list, modules/linked-list-tests: New files.
60647         * modules/avltree-list, modules/avltree-list-tests: New files.
60648         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60649         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60650         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60651         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60652         * modules/oset: New file.
60653         * modules/array-oset: New file.
60654         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60655         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60656         * tests/test-carray_list.c: New file.
60657         * tests/test-linked_list.c: New file.
60658         * tests/test-avltree_list.c: New file.
60659         * tests/test-rbtree_list.c: New file.
60660         * tests/test-linkedhash_list.c: New file.
60661         * tests/test-avltreehash_list.c: New file.
60662         * tests/test-rbtreehash_list.c: New file.
60663         * tests/test-avltree_oset.c: New file.
60664         * tests/test-rbtree_oset.c: New file.
60665         * MODULES.html.sh (Container data structures): New section.
60666
60667 2006-07-17  Bruno Haible  <bruno@clisp.org>
60668
60669         * m4/gl_list.m4: New file.
60670
60671 2006-07-17  Bruno Haible  <bruno@clisp.org>
60672
60673         * lib/gl_list.h: New file.
60674         * lib/gl_list.c: New file.
60675         * lib/gl_array_list.h: New file.
60676         * lib/gl_array_list.c: New file.
60677         * lib/gl_carray_list.h: New file.
60678         * lib/gl_carray_list.c: New file.
60679         * lib/gl_linked_list.h: New file.
60680         * lib/gl_linked_list.c: New file.
60681         * lib/gl_anylinked_list1.h: New file.
60682         * lib/gl_anylinked_list2.h: New file.
60683         * lib/gl_avltree_list.h: New file.
60684         * lib/gl_avltree_list.c: New file.
60685         * lib/gl_anyavltree_list1.h: New file.
60686         * lib/gl_anyavltree_list2.h: New file.
60687         * lib/gl_rbtree_list.h: New file.
60688         * lib/gl_rbtree_list.c: New file.
60689         * lib/gl_anyrbtree_list1.h: New file.
60690         * lib/gl_anyrbtree_list2.h: New file.
60691         * lib/gl_anytree_list1.h: New file.
60692         * lib/gl_anytree_list2.h: New file.
60693         * lib/gl_linkedhash_list.h: New file.
60694         * lib/gl_linkedhash_list.c: New file.
60695         * lib/gl_anyhash_list1.h: New file.
60696         * lib/gl_anyhash_list2.h: New file.
60697         * lib/gl_avltreehash_list.h: New file.
60698         * lib/gl_avltreehash_list.c: New file.
60699         * lib/gl_rbtreehash_list.h: New file.
60700         * lib/gl_rbtreehash_list.c: New file.
60701         * lib/gl_anytreehash_list1.h: New file.
60702         * lib/gl_anytreehash_list2.h: New file.
60703
60704         * lib/gl_oset.h: New file.
60705         * lib/gl_oset.c: New file.
60706         * lib/gl_array_oset.h: New file.
60707         * lib/gl_array_oset.c: New file.
60708         * lib/gl_avltree_oset.h: New file.
60709         * lib/gl_avltree_oset.c: New file.
60710         * lib/gl_rbtree_oset.h: New file.
60711         * lib/gl_rbtree_oset.c: New file.
60712         * lib/gl_anytree_oset.h: New file.
60713
60714 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * m4/mkancesdirs.m4: New file.
60717         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60718         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60719         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60720         it.
60721
60722 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60723
60724         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60725         * lib/mkancesdirs.h: New files.
60726         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60727         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60728         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60729         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60730         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60731         callers changed.  Revamp internals significantly, by not
60732         attempting to create directories that are temporarily more
60733         permissive than the final results.  Do not attempt to use
60734         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60735         This removes some race conditions, fixes some bugs, and simplifies
60736         things.  Use new dirchownmod function to do owner and mode changes.
60737         * lib/mkdir-p.h: Likewise.
60738         * lib/modechange.c (octal_to_mode): New function.
60739         (struct mode_change): New member mentioned.
60740         (make_node_op_equals): New arg mentioned.  All callers changed.
60741         (mode_compile): Keep track of which mode bits the user has explicitly
60742         mentioned.
60743         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60744         New arg PMODE_BITS, to keep track of which mode bits the user
60745         mentioned; it treats S_ISUID and S_ISGID speciall.
60746         All callers changed.
60747         * lib/modechange.h: Likewise.
60748
60749 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60750
60751         * MODULES.html.sh: Add mkancestors.
60752         * modules/mkancesdirs: New module.
60753         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60754         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60755         The chdir-safer and afs files are now orphans; I'll remove them
60756         unless someone speaks up.
60757         Add lib/dirchownmod.c, lib/dirchownmod.h.
60758         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60759         Add lchown, mkancesdirs.
60760         (Maintainer): Add self.
60761
60762 2006-07-15  Karl Berry  <karl@gnu.org>
60763
60764         * gnulib-tool: help message wording/arrangement.
60765
60766 2006-07-14  Simon Josefsson  <jas@extundo.com>
60767
60768         * doc/gnulib.texi (Libtool and Windows): New section.
60769
60770 2006-07-12  Simon Josefsson  <jas@extundo.com>
60771
60772         * modules/gendocs (License): Fix license, approved by Karl.
60773
60774 2006-07-12  Eric Blake  <ebb9@byu.net>
60775
60776         * MODULES.html.sh: Add gendocs.
60777
60778 2006-07-11  Eric Blake  <ebb9@byu.net>
60779
60780         * modules/fdl: New module, to install doc/fdl.texi.
60781         * MODULES.html.sh: Add new section for documentation modules.
60782         * gnulib-tool: Avoid space-tab.
60783         (--doc-base): New option, to manage files from doc.
60784
60785 2006-07-11  Eric Blake  <ebb9@byu.net>
60786
60787         * m4/absolute-header.m4: Fix comments to match recent change.
60788
60789 2006-07-11  Eric Blake  <ebb9@byu.net>
60790
60791         * gnulib-tool: List --doc-base before --tests-base.
60792
60793 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60794
60795         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60796
60797 2006-07-11  Bruno Haible  <bruno@clisp.org>
60798
60799         * README: Mention where to put documentation.
60800
60801 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60802
60803         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60804
60805 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60806
60807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60808         to stdint.m4.
60809
60810 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60811
60812         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60813         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60814         "no/such/file/stdint.h" when there is no such file, so that
60815         the resulting C code can be parsed by dodgy compilers.
60816         Problems reported by Bob Proulx.
60817
60818 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60819
60820         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60821         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60822         macros into the GNU _D_EXACT_NAMLEN.
60823         * lib/savedir.c:  Likewise.
60824         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60825
60826 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60827         and Paul Eggert  <eggert@cs.ucla.edu>
60828
60829         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60830         * m4/savedir.m4:
60831         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60832         macros into the GNU _D_EXACT_NAMLEN.
60833
60834 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60835
60836         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60837         around the absolute name, to work around a problem with the HP-UX
60838         11.23 native C compiler, reported by Bob Proulx.
60839
60840 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * doc/maintain.texi, make-stds.texi: Sync from
60843         <http://savannah.gnu.org/projects/gnustandards>.
60844
60845 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60846
60847         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60848
60849 2006-07-09  Jim Meyering  <jim@meyering.net>
60850
60851         * m4/glob.m4: Remove a doubled word in a comment.
60852
60853 2006-07-09  Jim Meyering  <jim@meyering.net>
60854
60855         * lib/argp-pv.c: Remove a doubled word in a comment.
60856         * lib/check-version.c (check_version): Likewise.
60857         * lib/javacomp.c (compile_java_class): Likewise.
60858
60859 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60860
60861         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60862         for the benefit of people using Autoconf 2.60.  If you want to
60863         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60864         (or m4/onceonly.m4, if pre-2.57) manually.
60865
60866 2006-07-08  Jim Meyering  <jim@meyering.net>
60867
60868         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60869         comment.
60870         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60871         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60872         comment.
60873
60874 2006-07-08  Jim Meyering  <jim@meyering.net>
60875
60876         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60877
60878 2006-07-07  Simon Josefsson  <jas@extundo.com>
60879
60880         * tests/test-crc.c: Change expected crc value, the test vector
60881         were probably computed using the old broken crc.c?
60882
60883 2006-07-06  Simon Josefsson  <jas@extundo.com>
60884
60885         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60886         now the canonical place for the M4 file).
60887
60888         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60889         from the sys_socket dependency now.
60890
60891         * modules/inet_pton (Files): Ditto.
60892
60893         * modules/inet_ntop (Files): Ditto.
60894
60895 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60896
60897         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60898         not gl_PREREQ_GETUSERSHELL.
60899
60900 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60901
60902         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60903         with only one argument, for Autoconf 2.60.
60904         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60905         expand to nothing, so add a shell command to avoid syntax error.
60906         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60907
60908 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60909
60910         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60911
60912 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60915         no longer needed.  Check for isblank decl.
60916         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60917         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60918         of existence.
60919
60920 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60921
60922         * lib/getloadavg.c: Use __VMS, not VMS.
60923         * lib/getopt.c: Likewise.
60924         * lib/getpagesize.h: Likewise.
60925         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60926         and probably does not work.
60927
60928 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60929
60930         * lib/.cppi-disable: Add wcwidth.
60931         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60932         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60933         (ISGRAPH): Remove.  All uses changed to isgraph.
60934         (FOLD) [!defined _LIBC]: Remove special case.
60935         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60936         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60937         HAVE_ISBLANK.
60938         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60939         case.
60940
60941 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60942
60943         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60944         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60945         brackets.  Other minor changes to suppress some compiler
60946         warnings.
60947
60948 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60949         and Paul Eggert  <eggert@cs.ucla.edu>
60950
60951         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60952         of invoking obsolescent AC_HEADER_DIRENT macro.
60953         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60954         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60955         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60956         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60957         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60958         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60959         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60960         * m4/readdir.m4: Remove; no longer needed.
60961
60962 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60963         and Paul Eggert  <eggert@cs.ucla.edu>
60964
60965         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60966         Don't worry about this obsolete case any more.
60967         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60968         directories.
60969         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60970         worry about this obsolete case any more.
60971         * lib/fts.c: Likewise.
60972         * lib/getcwd.c: Likewise.
60973         * lib/glob.h: Likewise.
60974         * lib/savedir.c: Likewise.
60975
60976 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60977
60978         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60979         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60980         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60981         needed.
60982         All uses removed.
60983         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60984         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60985         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60986         needed.
60987         * m4/getdate.m4 (gl_GETDATE): Likewise.
60988         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60989         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60990         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60991         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60992         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60993         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60994         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60995         needed.
60996
60997 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60998
60999         * lib/memcasecmp.c: Include <limits.h>.
61000         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61001         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61002         Don't assume isdigit succeeds only on '0' through '9'.
61003
61004 2006-07-05  Eric Blake  <ebb9@byu.net>
61005
61006         * modules/getaddrinfo (Depends-on): Add snprintf.
61007
61008 2006-07-05  Eric Blake  <ebb9@byu.net>
61009
61010         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61011         to avoid 'header present but could not be compiled' on cygwin.
61012
61013 2006-07-05  Eric Blake  <ebb9@byu.net>
61014
61015         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61016         missing from netdb.h.
61017         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61018
61019 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61020
61021         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61022         no longer needed.
61023         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61024         * m4/getdate.m4 (gl_GETDATE): Likewise.
61025         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61026         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61027         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61028         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61029         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61030
61031 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61032
61033         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61034         All uses of is_space replaced by isspace.
61035         * lib/exit.h: Don't talk about STDC_HEADERS.
61036         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61037         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61038         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61039         replaced by isprint etc.
61040         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61041         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61042         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61043         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61044         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61045         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61046
61047 2006-07-05  Bruno Haible  <bruno@clisp.org>
61048
61049         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61050         the function exists, before testing against AIX.
61051         Reported by Martin Lambers <marlam@marlam.de>.
61052
61053 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61054
61055         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61056         From Mark D. Baushke.
61057
61058 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61059
61060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61061         to the absolute name, not just one, to bypass Sun C 5.8's
61062         "warning: #include of /usr/include/... may be non-portable".
61063
61064 2006-07-04  Eric Blake  <ebb9@byu.net>
61065
61066         * modules/dirname-tests: New test module.
61067         * tests/test-dirname.c: New file, replacing dirname.c
61068         TEST_DIRNAME section that was recently deleted.
61069
61070 2006-07-04  Bruno Haible  <bruno@clisp.org>
61071
61072         Assume ANSI C header files and <ctype.h> functions.
61073         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61074         (mbsnwidth): Use isprint, iscntrl instead.
61075
61076 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         Merge from coreutils.
61079         * MODULES.html.sh: Add xstrtold.
61080         * modules/xstrtold: New file.
61081         * modules/cycle-check (Files): Add lib/same-inode.h.
61082         * modules/dirname (Files): Add m4/double-slash-root.m4.
61083         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61084         * modules/mkdir-p (Files): Add lib/same-inode.h.
61085         * modules/same (Files): Add lib/same-inode.h.
61086
61087 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61088
61089         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61090         This is to keep the terminology clean; POSIX talks about
61091         "absolute pathnames", not "full pathnames", but the GNU
61092         Coding Standards say to use "path" for something else;
61093         so use "absolute" to keep both sides happy.
61094         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61095         Set gl_absolute_header, not gl_full_header_path.
61096         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61097         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61098         All uses changed.
61099
61100         Merge from coreutils.
61101
61102         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61103
61104         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61105         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61106         want to require the building of c-strtod.o.
61107         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61108         needs -lm directly.
61109         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61110
61111         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61112
61113         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61114         --as-needed option if available.  Problem reported by Albert Chin in
61115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61116         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61117         cc merely issues a bunch of annoying warnings for --as-needed
61118         (this problem was reported by Bob Proulx).  Also, try linking with
61119         -lm to detect a bug in binutils 2.16 (this problem was reported
61120         by Ralf Wildenhues).
61121
61122         2006-06-18  Jim Meyering  <jim@meyering.net>
61123
61124         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61125         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61126         macro.
61127         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61128         also check for glibc-2.4's abort-inducing bug.
61129
61130         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61131         Low-probability clean-up should be to use rmdir to get rid of
61132         the just-created directory, not unlink.
61133
61134         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61135         configure fail, and request a bug report to inform us about it.
61136         Add a comment that, barring reports to the contrary, in 2007 we'll
61137         assume ftruncate is universally available.
61138
61139         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61140
61141         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61142
61143         2006-03-12  Jim Meyering  <jim@meyering.net>
61144
61145         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61146         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61147         * m4/same.m4 (gl_SAME): Likewise.
61148         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61149
61150         2006-03-11  Eric Blake  <ebb9@byu.net>
61151
61152         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61153         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61154         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61155         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61156
61157 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61158
61159         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61160         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61161         reported by Mark D. Baushke, one in
61162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61163
61164         Merge from coreutils.
61165
61166         * lib/.cppi-disable: Add stdint_.h.
61167         * lib/.cvsignore: Add stdint.h.
61168
61169         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61170
61171         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61172         both double and long double versions.
61173         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61174         * lib/xstrtold.c: New file.
61175         * lib/xstrtod.h (xstrtold): New decl.
61176
61177         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         * lib/filemode.c (setst): Remove.
61180         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61181         (arguably) clearer, and the generated code is a bit smaller on my
61182         Debian GNU/Linux stable x86 host.
61183
61184         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61185
61186         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61187         Assume that filemode.h includes sys/types.h and sys/stat.h.
61188         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61189         (ftypelet): Reorder to put common cases first, for efficiency.
61190         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61191         to do 'M'.
61192         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61193         of 10, for compatibility with FreeBSD.  All callers changed.
61194         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61195         types that can't be deduced solely from st_mode.  First arg is now a
61196         const pointer.
61197         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61198         (strmode): Renamed from mode_string.
61199         (filemodestring): New decl.
61200         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61201         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61202         needed.
61203         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61204
61205         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61208         fsusage.h now does that.  Include fsusage.h first, to test interface.
61209         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61210         at most one method (the old code could have generated decls that
61211         didn't conform to C89, not that this was ever exercised).
61212         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61213
61214         2006-03-19  Jim Meyering  <jim@meyering.net>
61215
61216         Work even in a chroot where d_ino values for entries in "/"
61217         don't match the stat.st_ino values for the same names.
61218         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61219         number, iterate through all entries again, using lstat instead.
61220         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61221         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61222
61223         * lib/getcwd.c (__getcwd): Clarify a comment.
61224         Use memcpy in place of a call to strcpy.
61225
61226         2006-03-12  Jim Meyering  <jim@meyering.net>
61227
61228         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61229         matches that of the current directory (which we're about to chdir ".."
61230         out of), then save the dev-ino of the parent, instead.
61231
61232         * lib/same-inode.h (SAME_INODE): New file/macro.
61233         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61234         Include "same-inode.h", instead.
61235         * lib/same.c: Likewise.
61236         * lib/cycle-check.h: Include "same-inode.h".
61237         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61238         * lib/cycle-check.c (SAME_INODE): Remove definition.
61239         * lib/root-dev-ino.h: Include "same-inode.h".
61240
61241         2006-03-11  Eric Blake  <ebb9@byu.net>
61242
61243         * lib/same.c (same_name): s/base_name/last_component/
61244         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61245         * lib/filenamecat.c (file_name_concat): Likewise.
61246
61247         2006-03-11  Eric Blake  <ebb9@byu.net>,
61248                     Paul Eggert  <eggert@cs.ucla.edu>
61249
61250         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61251         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61252         drive prefix.
61253         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61254         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61255         (last_component): New method.
61256         * lib/dirname.c (dir_len): Determine when drive letters need a
61257         subsequent slash.  Preserve // when it is special.
61258         (dir_name): Don't append dot when drive letter is absolute.
61259         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61260         * lib/basename.c (base_name): New semantics - malloc the result.
61261         Preserve // when it is special.  Preserve relative files that look
61262         like drive letters.
61263         (base_len): Preserve // when it is special.
61264         (last_component): New method, similar to old base_name semantics.
61265         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61266         base_name.  Strip redundant slashes from ///.
61267
61268 2006-07-03  Jim Meyering  <jim@meyering.net>
61269
61270         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61271         macro is used before the first cycle_check call.
61272
61273 2006-07-03  Eric Blake  <ebb9@byu.net>
61274
61275         * modules/dirname (Depends-on): Add xstrndup.
61276
61277 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61278
61279         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61280         test cases, so that config.log is a bit easier to follow.
61281
61282 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61283
61284         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61285         both are 64 bits, since this seems to be the tradition, and this
61286         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61287         we ever run into a host that prefers long long to long in this
61288         case, we'll need another configure-time test.  Problem reported by
61289         Jim Meyering.
61290
61291 2006-07-02  Eric Blake  <ebb9@byu.net>
61292
61293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61294
61295 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61296
61297         * modules/inttypes (Depends-on): No longer depends on stdint.
61298         * modules/stdint (Description): Say more about assumptions.
61299         Say that the fast types might differ.  Say macros are used.
61300         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61301         (Makefile.am): Revise list of substituted symbols to match
61302         new stdint.m4.
61303         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61304         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61305         * tests/test-stdint.c (verify_same_types)
61306         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61307         the code conforms to C99/C89.
61308         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61309         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61310
61311 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61312
61313         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61314         but fix a bug, by requiring at least 64 bits.
61315         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61316         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61317         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61318         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61319
61320         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61321         changes.  Make 2.59 a prerequisite.  Check and substitute for
61322         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61323         inttypes.h.  Do not use special include files; just use the
61324         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61325         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61326         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61327         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61328         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61329         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61330         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61331         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61332         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61333         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61334         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61335         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61336         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61337         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61338         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61339         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61340         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61341         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61342         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61343         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61344         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61345         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61346         not check for things that C99 does not require, e.g., int8_t.  If
61347         a test isn't needed unless <stdint.h> isn't working, and is
61348         unlikely to be needed for any other reason, then don't do it
61349         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61350         size_t, since we assume C89 freestanding at least.  Do not check
61351         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61352         the right thing even if the types are not defined.  Instead use:
61353         (gl_STDINT_TYPE_PROPERTIES): New macro.
61354         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61355         testing whether <sys/types.h> clashes, as Autoconf does this for
61356         us now.  All uses removed.
61357         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61358         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61359         (gl_CHECK_TYPE_SAME):
61360         Remove; no longer needed.
61361         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61362         exists, since we'll return 0 anyway in that case.
61363         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61364
61365 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61366
61367         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61368         possible collision with system files.
61369         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61370         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61371         WCHAR_MIN and WCHAR_MAX in this case.
61372         (<stddef.h>): Do not include; no longer needed.
61373         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61374         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61375         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61376         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61377         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61378         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61379         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61380         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61381         !defined(__c99))]: Include in this case too, since it's harmless
61382         now.
61383         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61384         dangerous to do so.
61385         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61386         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61387         (_STDINT_MIN, _STDINT_MAX): New macros.
61388         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61389         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61390         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61391         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61392         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61393         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61394         macros, not typedefs; this simplifies things quite a bit.
61395         Use long int for all types narrower than int64_t.
61396         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61397         Define in terms of long long int or int64_t or long int,
61398         not int64_t or int32_t.  This saves some compile-time testing.
61399         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61400         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61401         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61402         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61403         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61404         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61405         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61406         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61407         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61408         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61409         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61410         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61411         undef any previous version and define our own version, for
61412         simplicity and consistency with the new macros for types.
61413         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61414         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61415         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61416         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61417         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61418         @WINT_T_SUFFIX@ to keep things simple here.
61419         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61420         Simplify by assuming typical 8/16/32/64 host, since we're
61421         already doing that elsewhere anyway.
61422         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61423         and assume long long int is 64 bits if available.  This
61424         speeds up 'configure'.
61425
61426 2006-07-01  Eric Blake  <ebb9@byu.net>
61427
61428         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61429         Reported by Andreas Buening.
61430
61431 2006-07-01  Eric Blake  <ebb9@byu.net>
61432
61433         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61434
61435 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61436
61437         * lib/getaddrinfo.c: fixed typo
61438
61439 2006-06-29  Jim Meyering  <jim@meyering.net>
61440
61441         * modules/strftime (Maintainer): Add my name, since with the
61442         FPRINTFTIME changes strftime.c has forked from glibc.
61443
61444 2006-06-29  Eric Blake  <ebb9@byu.net>
61445
61446         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61447
61448 2006-06-29  Eric Blake  <ebb9@byu.net>
61449
61450         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61451
61452 2006-06-29  Eric Blake  <ebb9@byu.net>
61453
61454         * lib/stat_.h: New file.
61455
61456 2006-06-29  Eric Blake  <ebb9@byu.net>
61457
61458         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61459         unused static function.
61460
61461 2006-06-29  Eric Blake  <ebb9@byu.net>
61462
61463         * doc/functions.texi (Function Portability): Document missing lstat
61464         on mingw.
61465
61466 2006-06-29  Eric Blake  <ebb9@byu.net>
61467
61468         * MODULES.html.sh: Add sys_stat.
61469         * modules/sys_stat: New module.
61470         * modules/mkstemp (Depends-on): Add sys_stat.
61471
61472 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61473
61474         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61475
61476 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61477
61478         * m4/c-bs-a.m4: Removed.
61479
61480 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61481
61482         * lib/strftime.c: Assume strftime() exists.
61483
61484 2006-06-29  Derek Price  <derek@ximbiot.com>
61485
61486         * modules/c-bs-a: Removed - \a is C89.
61487         * MODULES.html.sh: Remove c-bs-a.
61488
61489 2006-06-29  Bruno Haible  <bruno@clisp.org>
61490
61491         * modules/wcwidth (License): Change to LGPL.
61492
61493 2006-06-28  Simon Josefsson  <jas@extundo.com>
61494
61495         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61496         on _WIN32.
61497
61498         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61499         getnameinfo.
61500
61501 2006-06-28  Simon Josefsson  <jas@extundo.com>
61502
61503         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61504
61505 2006-06-28  Simon Josefsson  <jas@extundo.com>
61506
61507         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61508         functions there.  It will succeed on Windows XP, but on Windows
61509         2000 and (presumably) earlier, it will fail, and use the internal
61510         re-implementation.
61511         (use_win32_p): New function.
61512         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61513         Support AI_NUMERICSERV to disable getservbyname.
61514         (getnameinfo): New function, only supports
61515         NI_NUMERICHOST|NI_NUMERICSERV for now.
61516
61517         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61518         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61519         getnameinfo.
61520
61521 2006-06-28  Eric Blake  <ebb9@byu.net>
61522
61523         * modules/wcwidth: New file.
61524         * modules/mbchar (Depends-on): Add wcwidth.
61525         * modules/mbswidth (Depends-on): Add wcwidth.
61526         * MODULES.html.sh: Add wcwidth.
61527
61528 2006-06-28  Eric Blake  <ebb9@byu.net>
61529
61530         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61532
61533 2006-06-28  Eric Blake  <ebb9@byu.net>
61534
61535         * lib/xvasprintf.h: Fix comments.
61536
61537 2006-06-28  Eric Blake  <ebb9@byu.net>
61538
61539         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61540         * lib/mbswidth.c (wcwidth): Move from here...
61541         * lib/wcwidth.h: ...to this new file.
61542
61543 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61544
61545         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61546
61547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61548         it's obsolete.
61549         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61550
61551 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61552
61553         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61554         Autoconf 2.60 says this stuff was obsolete.
61555
61556 2006-06-28  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61559
61560 2006-06-28  Bruno Haible  <bruno@clisp.org>
61561
61562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61563         gt_TYPE_WCHAR_T.
61564
61565 2006-06-28  Bruno Haible  <bruno@clisp.org>
61566
61567         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61568         declaration for wcwidth.
61569         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61570
61571 2006-06-28  Bruno Haible  <bruno@clisp.org>
61572
61573         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61574         (mkdir): Define using _mkdir.
61575
61576 2006-06-28  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/getaddrinfo.h: Fix POSIX URL.
61579         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61580         _WIN32.
61581         (use_win32_p): Make static.
61582         (getaddrinfo): Reject service name if it is empty or does not consist
61583         solely of decimal digits, or if its value is > 65535.
61584         (getnameinfo): Remove useless casts.
61585
61586 2006-06-27  Simon Josefsson  <jas@extundo.com>
61587
61588         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61589         Eggert and Martin Lambers.
61590
61591 2006-06-27  Simon Josefsson  <jas@extundo.com>
61592
61593         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61594         Eggert and Martin Lambers.
61595
61596 2006-06-27  Bruno Haible  <bruno@clisp.org>
61597
61598         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61599         result to 0, not to empty.
61600         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61601
61602 2006-06-27  Bruno Haible  <bruno@clisp.org>
61603
61604         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61605
61606 2006-06-26  Simon Josefsson  <jas@extundo.com>
61607
61608         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61609         present.
61610
61611 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61614         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61616
61617 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61618
61619         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61620
61621 2006-06-26  Bruno Haible  <bruno@clisp.org>
61622
61623         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61624
61625 2006-06-26  Bruno Haible  <bruno@clisp.org>
61626
61627         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61628
61629 2006-06-26  Bruno Haible  <bruno@clisp.org>
61630
61631         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61632         SGI C compiler in pre-C99 mode.
61633         Suggested by Mark D. Baushke and Larry Jones.
61634
61635 2006-06-26  Bruno Haible  <bruno@clisp.org>
61636
61637         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61638         WCHAR_MAX.
61639         Reported by Mark D. Baushke and Larry Jones.
61640
61641 2006-06-26  Bruno Haible  <bruno@clisp.org>
61642
61643         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61644         in pre-C99 mode.
61645         Suggested by Mark D. Baushke and Larry Jones.
61646
61647 2006-06-23  Simon Josefsson  <jas@extundo.com>
61648             Bruno Haible  <bruno@clisp.org>
61649
61650         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61651         Emit mostlyclean-local rule.
61652         (func_emit_tests_Makefile_am): Likewise.
61653         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61654
61655 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61656
61657         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61658
61659 2006-06-23  Bruno Haible  <bruno@clisp.org>
61660
61661         * tests/test-stdint.c: Update to match ISO C 99 Technical
61662         Corrigendum 1.
61663
61664 2006-06-23  Bruno Haible  <bruno@clisp.org>
61665
61666         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61667
61668 2006-06-23  Bruno Haible  <bruno@clisp.org>
61669
61670         * lib/stdint_.h: Treat IRIX like OpenBSD.
61671
61672 2006-06-23  Bruno Haible  <bruno@clisp.org>
61673
61674         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61675         ISO C 99 Technical Corrigendum 1.
61676
61677 2006-06-22  Simon Josefsson  <jas@extundo.com>
61678
61679         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61680         MinGW.
61681
61682 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61683
61684         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61685         needed.  Some compiler complained about some of them.  Problem reported
61686         by Larry Jones in
61687         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61688
61689 2006-06-21  Simon Josefsson  <jas@extundo.com>
61690
61691         * tests/test-getaddrinfo.c: New file.
61692
61693         * modules/getaddrinfo-tests: New file.
61694
61695         * MODULES.html.sh: Add inet_pton.
61696
61697         * modules/inet_pton: New file.
61698
61699 2006-06-21  Simon Josefsson  <jas@extundo.com>
61700
61701         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61702         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61703         of using the (limited) gnulib implementation on Windows XP.
61704
61705         * m4/inet_pton.m4: New file.
61706
61707 2006-06-21  Simon Josefsson  <jas@extundo.com>
61708
61709         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61710         variable.
61711
61712         * lib/socket_.h: Don't define WINVER.
61713
61714         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61715         slightly modified to work in gnulib.
61716
61717 2006-06-21  Simon Josefsson  <jas@extundo.com>
61718
61719         * doc/gnulib.texi (Windows sockets): Add.
61720
61721 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         * lib/read-file.c (fread_file): Start with buffer allocation of
61724         0 bytes rather than 1 byte; this simplifies the code.
61725         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61726         code to free buffer and save/restore errno.
61727         (internal_read_file): Remove unused local.
61728
61729 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61732         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61733         Problem reported by Denis Excoffier in
61734         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61735
61736 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61737
61738         * modules/sys_socket, modules/socklen: Include sys/types since
61739         FreeBSD 4.x's sys/socket.h needs it.
61740
61741 2006-06-19  Simon Josefsson  <jas@extundo.com>
61742
61743         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61744
61745 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61748
61749 2006-06-19  Bruno Haible  <bruno@clisp.org>
61750
61751         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61752         and FULL_PATH_INTTYPES_H in angle brackets.
61753         Reported by Mark D. Baushke <mdb@gnu.org>.
61754
61755 2006-06-17  Eric Blake  <ebb9@byu.net>
61756
61757         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61758         errno.
61759
61760 2006-06-17  Bruno Haible  <bruno@clisp.org>
61761
61762         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61763         <sys/inttypes.h>.
61764
61765 2006-06-17  Bruno Haible  <bruno@clisp.org>
61766
61767         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61768         whether errno is declared. Assume <errno.h> declares errno.
61769
61770 2006-06-17  Bruno Haible  <bruno@clisp.org>
61771
61772         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61773
61774 2006-06-17  Bruno Haible  <bruno@clisp.org>
61775
61776         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61777         problem on Solaris 2.5.1.
61778
61779 2006-06-16  Eric Blake  <ebb9@byu.net>
61780
61781         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61782         * lib/unicodeio.c [!defined errno]: Likewise.
61783         * lib/strtol.c [!defined errno]: Likewise.
61784         * lib/strtod.c [!defined errno]: Likewise.
61785
61786 2006-06-15  Eric Blake  <ebb9@byu.net>
61787
61788         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61789
61790 2006-06-15  Eric Blake  <ebb9@byu.net>
61791
61792         * config/srclist.txt (ssize_t.m4): Lose sync.
61793
61794 2006-06-15  Bruno Haible  <bruno@clisp.org>
61795
61796         * modules/stdint (Files): Include m4/full-header-path.m4,
61797         m4/size_max.m4, m4/wchar_t.m4.
61798         (Makefile.am): Many more substitutions.
61799         * modules/stdint-tests: New file.
61800         * tests/test-stdint.c: New file.
61801
61802 2006-06-15  Bruno Haible  <bruno@clisp.org>
61803
61804         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61805         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61806         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61807         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61808         gl_CHECK_TYPE_SAME): New macros.
61809
61810 2006-06-15  Bruno Haible  <bruno@clisp.org>
61811
61812         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61813
61814 2006-06-15  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/stdint_.h: Rewritten to be fully auto-configured.
61817         Fixes bug on HP-UX/IA64.
61818
61819 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61820
61821         * lib/getdate.y (__attribute__): Don't define if already defined.
61822         Problem reported by Larry Jones.
61823         * lib/utimens.c (__attribute__): Likewise.
61824
61825 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61826
61827         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61828         reported by Andreas Schwab.
61829
61830 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61831             Bruno Haible  <bruno@clisp.org>
61832
61833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61834         check for the declaration of strnlen and a run test that exposes the
61835         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61836         rpl_strndup.
61837
61838 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61839             Bruno Haible  <bruno@clisp.org>
61840
61841         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61842
61843 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61844
61845         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61846         compile test, for Tru64 4.0D.
61847
61848 2006-05-28  Karl Berry  <karl@gnu.org>
61849
61850         * config/srclist.txt (printf-args.c): lose sync.
61851
61852 2006-05-26  Martin Lambers  <marlam@marlam.de>
61853
61854         * lib/getpass.c: Updates the test for the native W32 API, and adds
61855         missing includes, thus fixing compilation warnings.
61856
61857 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61858
61859         * lib/exclude.c (exclude_fnmatch): New function.
61860         (excluded_file_name): Call exclude_fnmatch.
61861         * lib/exclude.h (excluded_file_name): New prototype
61862
61863 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61864
61865         * lib/tempname.c (small_open, large_open): New macros.
61866         (__open, __open64) [!_LIBC]: Remove.
61867         (__gen_tempname): Use small_open and large_open instead of __open
61868         and __open64.  This fixes a portability bug on HP-UX 11.11i
61869         reported by Simon Wing-Tang in
61870         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61871
61872 2006-05-24  Bruno Haible  <bruno@clisp.org>
61873
61874         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61875         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61876         Reported by Thorsten Maerz <torte@netztorte.de> via
61877         Aaron Stone <aaron@serendipity.cx>.
61878
61879 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61882         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61883         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61884         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61885         not really conditional on the cache.
61886         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61887
61888 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61889
61890         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61891         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61892         (my_usleep): Don't mishandle maximum value.
61893
61894 2006-05-19  Jim Meyering  <jim@meyering.net>
61895
61896         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61897
61898 2006-05-17  Bruno Haible  <bruno@clisp.org>
61899
61900         Cygwin portability.
61901         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61902
61903 2006-05-17  Bruno Haible  <bruno@clisp.org>
61904
61905         * lib/stdint_.h: Fix recognition of Cygwin.
61906
61907 2006-05-15  Bruno Haible  <bruno@clisp.org>
61908
61909         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61910         on libtool patch by Ralf Wildenhues.
61911
61912 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61913
61914         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61915         test for C99 conformance; (bool) 0.5 is an integer constant
61916         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61917         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61918
61919 2006-05-11  Simon Josefsson  <jas@extundo.com>
61920
61921         * m4/xvasprintf.m4: Fix obvious typo.
61922
61923 2006-05-11  Jim Meyering  <jim@meyering.net>
61924
61925         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61926         James Lemley.
61927
61928 2006-05-10  Simon Josefsson  <jas@extundo.com>
61929
61930         * lib/md4.c: Typo fix, update copyright years.
61931         (K1, K2): Don't use L because it turn computations into 64-bit on
61932         64-bit platforms.
61933
61934 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61935
61936         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61937         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61938         unwanted sign propagation, e.g., on hosts with 64-bit int.
61939         There still are some problems with reeelly weird theoretical hosts
61940         (e.g., 33-bit int) but it's not worth worrying about now.
61941         * lib/sha1.c (rol): Likewise.
61942         (K1, K2, K3, K4): Remove unnecessary L suffix.
61943
61944 2006-05-10  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/des.c: Cast to avoid warnings.
61947
61948 2006-05-09  Bruno Haible  <bruno@clisp.org>
61949
61950         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61951         (Depends-on): Depend also on xsize, stdarg.
61952         (configure.ac): Add gl_XVASPRINTF.
61953
61954 2006-05-09  Bruno Haible  <bruno@clisp.org>
61955
61956         * m4/xvasprintf.m4: New file.
61957
61958 2006-05-09  Bruno Haible  <bruno@clisp.org>
61959
61960         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61961         (EOVERFLOW): Define fallback value.
61962         (xstrcat): New function.
61963         (xvasprintf): Recognize the special case of a string concatenation.
61964
61965 2006-05-08  Eric Blake  <ebb9@byu.net>
61966
61967         * gnulib-tool (func_version): Base copyright year on CVS date.
61968         (func_emit_copyright_notice): New function.
61969         (func_emit_lib_Makefile_am): Use it.
61970         (func_emit_tests_Makefile_am): Likewise.
61971         (func_import): Likewise.
61972
61973 2006-05-08  Bruno Haible  <bruno@clisp.org>
61974
61975         * modules/stdarg: New file.
61976         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61977
61978 2006-05-08  Bruno Haible  <bruno@clisp.org>
61979
61980         * m4/stdarg.m4: New file, from GNU gettext.
61981
61982 2006-05-08  Bruno Haible  <bruno@clisp.org>
61983
61984         * config/srclist.txt (build-aux/config.rpath): different from latest
61985         release.
61986
61987 2006-05-08  Bruno Haible  <bruno@clisp.org>
61988
61989         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61990
61991 2006-05-05  Jim Meyering  <jim@meyering.net>
61992
61993         * m4/warning.m4: New file, derived from bison's file by the same name.
61994
61995 2006-05-03  Bruno Haible  <bruno@clisp.org>
61996
61997         * lib/stdint_.h: Shorter URL.
61998         * lib/inttypes.h: Likewise.
61999
62000 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62001
62002         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62003
62004 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * lib/verify.h: Document the internals better.  Most of this change
62007         was written by Bruno Haible.
62008
62009 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * doc/verify.texi: New file, partly based on a proposal by
62012         Bruno Haible.
62013
62014 2006-05-02  Bruno Haible  <bruno@clisp.org>
62015
62016         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62017         test from here...
62018         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62019
62020 2006-04-29  Bruno Haible  <bruno@clisp.org>
62021
62022         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62023         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62024
62025 2006-04-29  Bruno Haible  <bruno@clisp.org>
62026
62027         * gnulib-tool: Make --update option actually work.
62028
62029 2006-04-29  Bruno Haible  <bruno@clisp.org>
62030
62031         * doc/gcd.texi: New file.
62032         * doc/gnulib.texi: Include it.
62033
62034 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62035
62036         * lib/getdate.y (get_date): When adding relative date, start with the
62037         initial time, not with the result of the first mktime call.
62038
62039 2006-04-25  Bruno Haible  <bruno@clisp.org>
62040
62041         * gnulib-tool (func_import): Output the include directives in three
62042         blocks, sorted separately.
62043         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62044
62045 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62046
62047         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62048         to define main with arguments, for C++.  Reported by Eric Blake.
62049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62050         Prefer 'int main ()' to 'int main (void)', for C++.
62051         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62052         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62053         for 'main', for C99 and C++.
62054
62055 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62058         Don't assume that exit status -1 is valid.
62059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62060         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62061         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62062         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62063         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62064         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62065         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62066         functions can be used without declaring them, or that you can
62067         exit with status -1.
62068         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62069
62070 2006-04-24  Karl Berry  <karl@gnu.org>
62071
62072         * config/srclist.txt (longdouble.m4): sync lost.
62073
62074 2006-04-24  Eric Blake  <ebb9@byu.net>
62075
62076         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62077
62078 2006-04-24  Bruno Haible  <bruno@clisp.org>
62079
62080         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62081         poll() implementation in AIX.
62082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62083
62084 2006-04-24  Bruno Haible  <bruno@clisp.org>
62085
62086         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62087         assigned exactly once.
62088
62089 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62090             Bruno Haible  <bruno@clisp.org>
62091
62092         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62093         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62094         for AM_CPPFLAGS.
62095
62096 2006-04-23  Bruno Haible  <bruno@clisp.org>
62097
62098         * modules/copy-file: Depend on unistd.
62099         * modules/execute: Likewise.
62100         * modules/fatal-signal: Likewise.
62101         * modules/findprog: Likewise.
62102         * modules/mkdtemp : Likewise.
62103         * modules/pipe: Likewise.
62104         * modules/wait-process: Likewise.
62105
62106 2006-04-23  Bruno Haible  <bruno@clisp.org>
62107
62108         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62109         condition was already detected.
62110         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62111
62112 2006-04-23  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/copy-file.c: Include <unistd.h> unconditionally.
62115         * lib/execute.c: Likewise.
62116         * lib/fatal-signal.c: Likewise.
62117         * lib/findprog.c: Likewise.
62118         * lib/mkdtemp.c: Likewise.
62119         * lib/pipe.h: Likewise.
62120         * lib/pipe.c: Likewise.
62121         * lib/wait-process.h: Likewise.
62122
62123 2006-04-23  Bruno Haible  <bruno@clisp.org>
62124
62125         * gnulib-tool (func_usage): Fix --import description. Document
62126         --update.
62127         (func_import): Create temporary file in a temporary directory, if
62128         --dry-run is specified. Silence errors from 'grep' when there are no
62129         m4 files in $m4dir.
62130         (func_create_testdir): Silence errors from 'grep' when there are no
62131         m4 files in $m4dir.
62132         Reported by Karl Berry <karl@freefriends.org>.
62133
62134 2006-04-20  Bruno Haible  <bruno@clisp.org>
62135
62136         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62137         one argument, so that the code will be portable to Autoconf 2.60.
62138         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62139         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62140         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62141
62142 2006-04-19  Derek Price  <derek@ximbiot.com>
62143             Eric Blake  <ebb9@byu.net>
62144
62145         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62146         rather than "/full/path.h".  Update comment to match.  Shorten &
62147         generalize m4_translit call via AS_TR_CPP.
62148
62149 2006-04-19  Derek Price  <derek@ximbiot.com>
62150             Eric Blake  <ebb9@byu.net>
62151
62152         * lib/inttypes.h: Correct grammar in comment.
62153
62154 2006-04-18  Derek Price  <derek@ximbiot.com>
62155             Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         * modules/inttypes: New file.
62158         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62159
62160 2006-04-18  Derek Price  <derek@ximbiot.com>
62161             Paul Eggert  <eggert@cs.ucla.edu>
62162
62163         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62164         New files.
62165
62166 2006-04-18  Derek Price  <derek@ximbiot.com>
62167             Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * lib/inttypes.h: New file.
62170         * lib/strtoimax.c: Assume <inttypes.h>.
62171
62172 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62173
62174         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62175         isn't mounted.  Problem reported by Kir Kolyshkin.
62176
62177 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62178
62179         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62180         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62181         Derek R. Price.
62182         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62183         implementation.
62184
62185 2006-04-12  Eric Blake  <ebb9@byu.net>
62186
62187         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62188         is now done automatically by the corresponding Autoconf macro.
62189
62190 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62191
62192         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62193         time_r.h.
62194
62195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62196
62197         Merge regex changes from libc, removing some of our
62198         POSIX-conformance changes that were rejected and redoing them in a
62199         less-intrusive way.
62200
62201         * lib/regcomp.c (re_compile_internal, init_dfa):
62202         Length arg is now size_t, not Idx.  All uses changed.
62203         (peek_token): Forward decl now says internal_function.
62204         (__re_error_msgid, __re_error_msgid_idx):
62205         Now static rather than extern with attribute_hidden.
62206         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62207         For some reason libc prefers K&R style defns for external functions.
62208         (regerror) [!defined _LIBC]: Likewise.
62209         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62210         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62211         (build_range_exp, build_collating_symbol):
62212         Use K&R-style defn.
62213         (re_compile_fastmap): Use '\0' to memset, not 0.
62214         (utf8_sb_map): Make the calculations more obvious.
62215         (init_dfa, parse_bracket_exp, build_charclass_op):
62216         Call calloc and cast result, as glibc does.
62217         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62218         (build_range_exp, build_collating_symbol):
62219         Now internal functions.
62220
62221         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62222
62223         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62224         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62225         Don't depend on VMS; depend on __VMS instead, for POSIX
62226         namespace cleanness.
62227         (regoff_t): Define to ssize_t, not long int.
62228
62229         Remove the REG_ macros named below.  Instead, make the old names
62230         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62231         __USE_GNU_REGEX.
62232         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62233         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62234         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62235         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62236         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62237         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62238         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62239         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62240         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62241         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62242         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62243         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62244         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62245         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62246         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62247         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62248         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62249         (REG_NREGS):
62250         Remove.  All uses replaced by the old RE_* names.
62251         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62252         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62253         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62254         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62255         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62256         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62257         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62258         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62259         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62260         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62261         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62262         Don't bother having these macros be independent of each others'
62263         values, since they no longer exist in the POSIX name space.
62264
62265         Rename the following member names back to their old names,
62266         unless !__USE_GNU_REGEX.  All uses changed back.
62267         (buffer): Renamed from re_buffer.
62268         (allocated): Renamed from re_allocated.
62269         (used): Renamed from re_used.
62270         (syntax): Renamed from re_syntax.
62271         (fastmap): Renamed from re_fastmap.
62272         (translate): Renamed from re_translate.
62273         (can_be_null): Renamed from re_can_be_null.
62274         (regs_allocated): Renamed from re_regs_allocated.
62275         (fastmap_accurate): Renamed from re_fastmap_accurate.
62276         (no_sub): Renamed from re_no_sub.
62277         (not_bol): Renamed from re_not_bol.
62278         (not_eol): Renamed from re_not_eol.
62279         (newline_anchor): Renamed from re_newline_anchor.
62280         (num_regs): Renamed from rm_num_regs.
62281         (start): Renamed from rm_start.
62282         (end): Renamed from rm_end.
62283
62284         (free_state): Move up a bit.
62285
62286         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62287         #define to be empty.
62288         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62289         when that is what is intended.
62290         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62291         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62292         (MAX): New macro.
62293         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62294         All uses changed back to re_malloc, etc.  It's now the caller's
62295         responsibility to check for overflow; all callers changed.
62296         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62297         (re_x2nrealloc): Remove.
62298         (free_state): Remove decl.
62299
62300         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62301         (re_set_registers, re_exec):
62302         Use K&R-style defn.
62303
62304         2006-01-31  Roland McGrath  <roland@redhat.com>
62305
62306         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62307         Reported by Mike Frysinger <vapier@gentoo.org>.
62308
62309         2006-01-15  Andreas Jaeger  <aj@suse.de>
62310
62311         [BZ #1950]
62312         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62313         build_wcs_upper_buffer change.
62314         (build_wcs_upper_buffer): Change return type.
62315
62316         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62317
62318         * lib/regex_internal.h: Include <stdint.h> if available.
62319
62320         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62321
62322         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62323
62324         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62325
62326         * lib/regcomp.c: Adjust for changed secondary hash function.
62327
62328         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62329
62330         * lib/regex.h: Pretty printing.
62331         Clean up namespace a bit.
62332
62333         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62334
62335         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62336         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62337
62338         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62339                     Ulrich Drepper  <drepper@redhat.com>
62340
62341         [BZ #1302]
62342         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62343         changed.
62344         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62345
62346         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62347
62348         [BZ #281]
62349         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62350         * lib/regcomp.c: Remove unnecessary uses of
62351         unsigned RE_TRANSLATE_TYPE.
62352         * lib/regex_internal.h: Likewise.
62353         * lib/regex_internal.c: Likewise.
62354         * lib/regexec.c: Likewise.
62355         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62356
62357         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62358
62359         * lib/regexec.c (find_recover_state): Remove unnecessary
62360         initialization.
62361         (transit_state_bkref): Make DFA a const pointer.
62362         (get_subexp): Likewise.
62363         (check_arrival): Likewise.
62364         (update_cur_sifted_state): Likewise.
62365         (re_search_internal): Likewise.
62366         (prune_impossible_nodes): Likewise.
62367         (acquire_init_state_context): Likewise.
62368         (proceed_next_node): Likewise.
62369         (set_regs): Likewise.
62370         (free_fail_stack_return): Likewise.
62371         (check_arrival_expand_ecl): Mark DFA parameter as const.
62372         (check_arrival_expand_ecl_sub): Likewise.
62373         (check_subexp_limits): Likewise.
62374         (sub_epsilon_src_nodes):  Likewise.
62375         (add_epsilon_src_nodes):  Likewise.
62376         (merge_state_array): Likewise.
62377         (update_regs): Likewise.
62378         (build_trtable): Likewise.
62379         (sift_states_backward): Mark MCTX parameter as const.
62380         (build_sifted_states): Likewise.
62381         (update_cur_sifted_state): Likewise.
62382         (sift_states_mkref): Likewise.
62383         (check_arrival_expand_ecl): Mark eclosure as const.
62384         (check_dst_limits_calc_pos_1): Likewise.
62385         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62386         pointer.
62387
62388         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62389
62390         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62391         (transit_state_sb): Likewise.
62392         (transit_state_mb): Likewise.
62393         (sift_states_iter_mb): Likewise.
62394         (check_arrival_add_next_nodes): Likewise.
62395         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62396         [_LIBC] (re_search_2_stub): Use mempcpy.
62397
62398         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62399         mbrtowc for very simple UTF-8 case.
62400
62401         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62402         a pointer-to-const.
62403         (re_acquire_state_context): Likewise.
62404         * lib/regex_internal.h: Adjust prototypes.
62405
62406         * lib/regex.c: Prevent using C++ compilers.
62407
62408         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62409         (re_acquire_state_context): Likewise.
62410
62411 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62412
62413         * modules/regex (Depends-on): Add ssize_t.
62414
62415 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62416
62417         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62418         translation table.
62419
62420 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62421
62422         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62423
62424 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62425             Bruno Haible  <bruno@clisp.org>
62426
62427         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62428         <sys/types.h> and <inttypes.h>.
62429
62430 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62431
62432         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62433         `__error_t_defined', so argp.h will not typedef the former.
62434
62435 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62436
62437         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62438         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62439         glibc names.  Even if glibc is changed to conform to POSIX, the
62440         traditional names will be available anyway, since regex depends on
62441         the extensions module.  Also, fix a longstanding typo in the
62442         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62443         reported by Emanuele Giaquinta.  Also, change sense of cached
62444         variable, so that the message makes sense.
62445
62446 2006-03-24  Simon Josefsson  <jas@extundo.com>
62447
62448         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62449         including some doc fixes.
62450         (base64_encode_alloc): Fix +1 bug on allocation failures.
62451
62452 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62453
62454         * lib/base64.c (base64_encode): Do not read past end of array with
62455         unsanitized input on systems with CHAR_BIT > 8.
62456
62457 2006-03-24  Eric Blake  <ebb9@byu.net>
62458
62459         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62460
62461 2006-03-22  Karl Berry  <karl@gnu.org>
62462
62463         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62464         * config/srclistvars.sh (COREUTILS): new var.
62465
62466 2006-03-17  Jim Meyering  <jim@meyering.net>
62467
62468         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62469         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62470
62471 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62472
62473         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62474         no longer needs it.  Instead, check that regoff_t is as least
62475         as wide as ptrdiff_t.
62476
62477         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62478         so that our regex.h stays compatible with the installed regex.
62479         This is helpful for installers who configure --without-included-regex.
62480         Problem reported by Emanuele Giaquinta.
62481
62482 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62483
62484         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62485         Typedef to long int, not to off_, as POSIX will likely change
62486         in that direction.
62487
62488 2006-03-15  Eric Blake  <ebb9@byu.net>
62489
62490         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62491
62492 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62493
62494         * lib/argp-help.c (validate_uparams): Fix typo
62495         * lib/argp-parse.c (argp_default_options): Consistently begin help
62496         messages with a lowercase letter.
62497
62498 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62501         overrun buffers and shouldn't be used (much as gets shouldn't be
62502         used).
62503         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62504
62505 2006-03-08  Simon Josefsson  <jas@extundo.com>
62506
62507         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62508         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62509
62510 2006-03-08  Simon Josefsson  <jas@extundo.com>
62511
62512         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62513         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62514
62515 2006-03-08  Simon Josefsson  <jas@extundo.com>
62516
62517         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62518         signal that configure disabled the device.
62519
62520 2006-03-08  Simon Josefsson  <jas@extundo.com>
62521
62522         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62523         languages.
62524
62525 2006-03-07  Simon Josefsson  <jas@extundo.com>
62526
62527         * modules/getopt (Depends-on): Add unistd.
62528
62529         * modules/unistd: New file.
62530
62531 2006-03-07  Simon Josefsson  <jas@extundo.com>
62532
62533         * modules/gc-random: New file.
62534
62535 2006-03-07  Simon Josefsson  <jas@extundo.com>
62536
62537         * m4/unistd_h.m4: New file.
62538
62539 2006-03-07  Simon Josefsson  <jas@extundo.com>
62540
62541         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62542         test to be side-effect free by storing the result in the cache
62543         variable gl_cv_lib_readline, and moving the assignment of
62544         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62545         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62546
62547 2006-03-07  Simon Josefsson  <jas@extundo.com>
62548
62549         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62550         error on missing devices (the functions will return an error).
62551
62552         * m4/gc.m4: Move random stuff to gc-random.m4
62553
62554 2006-03-07  Simon Josefsson  <jas@extundo.com>
62555
62556         * lib/unistd_.h: New file.
62557
62558 2006-03-07  Simon Josefsson  <jas@extundo.com>
62559
62560         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62561
62562 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62563
62564         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62565         Problem reported by Juan Manuel Guerrero.
62566
62567 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62568
62569         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62570         the unistd module.
62571         * lib/getlogin_r.c: Likewise.
62572         * lib/getlogin_r.h: Likewise.
62573         * lib/glob.c: Likewise.
62574         * lib/pagealign_alloc.c: Likewise.
62575         * lib/unistd_.h: Remove; no longer needed.
62576
62577 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62578
62579         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62580         Add unistd.
62581         * modules/c-stack (Depends-on): Add unistd.
62582         * modules/getlogin_r: Likewise.
62583         * modules/glob: Likewise.
62584         * modules/pagealign_alloc: Likewise.
62585         * modules/unistd (Files): Remove lib/unistd_.h.
62586         (EXTRA_DIST): Remove.
62587         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62588         need unistd_.h.
62589         (MOSTLYCLEANFILES): Remove unistd.h-t.
62590
62591 2006-03-03  Simon Josefsson  <jas@extundo.com>
62592
62593         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62594
62595 2006-03-03  Simon Josefsson  <jas@extundo.com>
62596
62597         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62598         libidn and bison.
62599
62600 2006-03-03  Simon Josefsson  <jas@extundo.com>
62601
62602         * build-aux/maint.mk: Add indent target.
62603
62604 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62605
62606         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62607         our replacement poll.h in any case, to avoid a differing
62608         declaration from a system header.  Seen on AIX.
62609
62610 2006-03-01  Simon Josefsson  <jas@extundo.com>
62611
62612         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62613         <kasal@ucw.cz>.
62614
62615 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         * modules/gettime (Depends-on): Add extensions module.
62618         * modules/nanosleep (Depends-on): Likewise.
62619         * modules/settime (Depends-on): Likewise.
62620
62621 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62622
62623         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62624         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62625         pedantically.
62626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62627         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62628
62629         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62630         not "==".  Reported by Ralf Wildenhues.
62631
62632 2006-03-01  Karl Berry  <karl@gnu.org>
62633
62634         * doc/Copyright/request-*: new files, synced from gnuorg.
62635
62636 2006-03-01  Karl Berry  <karl@gnu.org>
62637
62638         * config/srclist.txt (Copyright/*): new entries.
62639
62640 2006-02-28  Simon Josefsson  <jas@extundo.com>
62641
62642         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62643
62644 2006-02-27  Simon Josefsson  <jas@extundo.com>
62645
62646         * lib/base64.h: Indent #define's.  From Jim Meyering
62647         <jim@meyering.net>.
62648
62649 2006-02-27  Jim Meyering  <jim@meyering.net>
62650
62651         Revert the change of 2006-02-24, so these files can continue
62652         to be sync'd from gettext.
62653         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62654         of `config.h'.
62655
62656 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62657
62658         * modules/intprops: New file.
62659         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62660         Add intprops.
62661         * modules/getloadavg (Files): Remove lib/intprops.h.
62662         (Depends-on): Add intprops.
62663         * modules/human: Likewise.
62664         * modules/inttostr: Likewise.
62665         * modules/openat: Likewise.
62666         * modules/sig2str: Likewise.
62667         * modules/userspec: Likewise.
62668         * modules/utimecmp: Likewise.
62669         * modules/xnanosleep: Likewise.
62670         * modules/xstrtol: Likewise.
62671
62672 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62673
62674         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62675         * modules/lock-tests (TESTS): Use $(EXEEXT).
62676         * modules/tls-tests: Likewise.
62677         * modules/argp-tests: Likewise.
62678         (check_PROGRAMS): New var, replacing...
62679         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62680
62681 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62682
62683         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62684         `config.h'.
62685
62686 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62687
62688         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62689
62690 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62691
62692         Sync from coreutils.
62693         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62694         gl_CHDIR_SAFER.
62695
62696 2006-02-22  Jim Meyering  <jim@meyering.net>
62697
62698         Sync from coreutils.
62699         * m4/chdir-safer.m4: New file.
62700
62701 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62702
62703         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62704         AT_FDCWD exceeds INT_MAX.
62705         * lib/openat.h (AT_FDCWD): Likewise.
62706
62707 2006-02-17  Eric Blake  <address@hidden>
62708
62709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62710
62711 2006-02-16  Simon Josefsson  <jas@extundo.com>
62712
62713         * modules/getaddrinfo (Depends-on): Add sys_socket.
62714
62715 2006-02-15  Simon Josefsson  <jas@extundo.com>
62716
62717         * build-aux/maint.mk: Add dsyntax-check rule.
62718
62719 2006-02-15  Eric Blake  <ebb9@byu.net>
62720
62721         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62722         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62723         'present but cannot compile' warnings on cygwin.
62724         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62725         use ws2tcpip.h if sys/socket.h works.
62726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62727         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62728
62729 2006-02-14  Simon Josefsson  <jas@extundo.com>
62730
62731         * modules/maintainer-makefile (Files): Rename.
62732
62733         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62734         and (the local) Makefile.cfg to maint-cfg.mk.
62735
62736         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62737         to the latter.
62738
62739         * modules/maintainer-makefile: New module.
62740
62741         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62742         severaly stripped to make it possible to build it up from scratch
62743         with reliable tests.
62744
62745         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62746         fixes to permit overriding the default actions when configure and
62747         makefile are not available.
62748
62749 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62750
62751         Sync from coreutils.
62752         * modules/lstat (Depends-on): Don't depend on xalloc.
62753         (License): Change from GPL to LGPL, since this is now simply a
62754         replacement for a libc function.
62755
62756 2006-02-14  Jim Meyering  <jim@meyering.net>
62757
62758         Sync from coreutils.
62759
62760         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62761         failure on deficient systems, and simplify gnulib lgpl dependencies.
62762         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62763         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62764
62765         * lib/xalloc-die.c: Remove unused definition of N_.
62766
62767 2006-02-14  Jim Meyering  <jim@meyering.net>
62768
62769         Sync from coreutils.
62770         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62771         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62772         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62773         double-quote uses of that variable, to accommodate the rare case in
62774         which getmntent is available in none of the libraries checked.  This
62775         happens at least on FreeBSD 5.0.
62776
62777 2006-02-13  Simon Josefsson  <jas@extundo.com>
62778
62779         * gnulib-tool (Usage): Fix --import, from
62780         karl@freefriends.org (Karl Berry).
62781
62782 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62783
62784         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62785
62786 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62787
62788         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62789         "autoupdate" on 2005-12-12.
62790
62791 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62792
62793         * modules/closeout (Depends-on): Remove atexit.
62794
62795 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62798         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62799
62800 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62803         __EXTENSIONS__ if this causes compilation to fail.  Problem
62804         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62805         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62806
62807 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62810         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62811         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62812         All uses changed.
62813
62814 2006-01-26  Simon Josefsson  <jas@extundo.com>
62815
62816         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62817         prototype is visible on mingw32.
62818
62819         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62820         for mingw32.
62821
62822         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62823         mingw32).
62824
62825 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62828         attempt to open for write; this always fails, at least on POSIX
62829         hosts.  This reinstates the 2006-01-09 change, which was
62830         inadvertently removed.
62831
62832 2006-01-26  Bruno Haible  <bruno@clisp.org>
62833
62834         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62835         Reported by Paul Eggert.
62836
62837 2006-01-26  Bruno Haible  <bruno@clisp.org>
62838             Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * lib/stdbool_.h (_Bool)
62841         [(! (defined __cplusplus || defined __BEOS__)
62842           && !defined __GNUC__
62843           && !(defined __HP_cc || defined __xlc__
62844                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62845                || defined __sgi))]:
62846         #define to signed char in these cases too; this simplifies
62847         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62848         etc., separately) and makes it more conservative.
62849
62850 2006-01-25  Simon Josefsson  <jas@extundo.com>
62851
62852         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62853         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62854         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62855
62856 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62857
62858         * lib/argp-namefrob.h: Bugfix. Remove stray #
62859
62860 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62861
62862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62863         so that we test the test.
62864         Check for yet another HP-UX cc bug involving *bool |= bool.
62865
62866 2006-01-25  Karl Berry  <karl@gnu.org>
62867
62868         * config/srclist.txt (vasnprintf.c): sync lost.
62869
62870 2006-01-25  Jim Meyering  <jim@meyering.net>
62871
62872         Sync from the stable (b5) branch of coreutils:
62873
62874         * lib/fts.c (fts_children): Don't let close() clobber errno from
62875         failed fchdir().
62876
62877         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62878         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62879         a dangling symlink.  That can also happen at least for ELOOP.
62880         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62881         FYI, this bug predates the inclusion of fts.c in coreutils.
62882
62883         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62884         in their own block, so pre-c99 compilers don't object.
62885
62886         Avoid the double-free (first in fts_read, second in fts_close) that
62887         would occur when an `active' directory is made inaccessible (e.g.,
62888         via chmod a-x) during a traversal.
62889         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62890         before returning.  Reproduce this failure by
62891         mkdir -p a/b; cd a; chmod a-x . b
62892         Reported by Stavros Passas.
62893
62894 2006-01-25  Jim Meyering  <jim@meyering.net>
62895
62896         * lib/fileblocks.c: Remove more useless parentheses.
62897         * lib/readutmp.h: Likewise.
62898
62899 2006-01-25  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62902         warnings.
62903         Reported by Paul Eggert.
62904
62905 2006-01-25  Bruno Haible  <bruno@clisp.org>
62906
62907         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62908         rid of a trap command. For Solaris sh.
62909         Reported by Mark D. Baushke <mdb@gnu.org>.
62910
62911 2006-01-24  Simon Josefsson  <jas@extundo.com>
62912
62913         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62914         Bruno.
62915
62916 2006-01-24  Karl Berry  <karl@gnu.org>
62917
62918         * config/srclist.txt (argp-namefrob.h): sync lost.
62919
62920 2006-01-24  Jim Meyering  <jim@meyering.net>
62921
62922         * modules/openat (Files): Add lib/intprops.h.
62923         From Mark D. Baushke.
62924
62925 2006-01-24  Jim Meyering  <jim@meyering.net>
62926
62927         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62928         Reported by Mark D. Baushke.
62929
62930 2006-01-24  Jim Meyering  <jim@meyering.net>
62931
62932         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62933
62934 2006-01-24  Bruno Haible  <bruno@clisp.org>
62935
62936         * modules/strnlen (Maintainer): Change from glibc to all.
62937
62938 2006-01-24  Bruno Haible  <bruno@clisp.org>
62939
62940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62941         Patch by Paul Eggert.
62942
62943 2006-01-24  Bruno Haible  <bruno@clisp.org>
62944
62945         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62946         already has it.
62947         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62948         2005-11-26.
62949
62950         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62951         'signed char' to avoid problems with the built-in _Bool type.
62952         Reported by Paul Eggert on 2005-11-26.
62953
62954 2006-01-24  Bruno Haible  <bruno@clisp.org>
62955
62956         * gnulib-tool (func_import): Avoid constructing complicated sed
62957         expressions inside backquote.
62958         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62959
62960 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62961
62962         These changes imported from libc.
62963         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62964         test and two separate function calls.
62965         * lib/strndup.c (__strndup): Add libc_hidden_def.
62966
62967 2006-01-23  Simon Josefsson  <jas@extundo.com>
62968
62969         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62970         Remove the test_*_SOURCES variable: automake infers it by default.
62971         * modules/tls-tests: Likewise.
62972
62973 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62974
62975         Work around porting bugs reported by Dieter in
62976         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62977         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62978         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62979         Include "getopt.h" first, to check interface.
62980         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62981         !HAVE_DECL_GETENV.
62982         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62983         (__strndup): Revert to K&R-style function dfns, the glibc style.
62984         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62985         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62986         Include strnlen.h first, to get prototype properly.
62987         (strnlen): Renamed from __strnlen.
62988         Remove weak alias.
62989
62990 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62991
62992         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62993
62994 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * config/srclist.txt: Adjust to reflect glibc reorganization.
62997         This affects only comments.
62998
62999 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63000
63001          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63002          Reported by Bruce Korb <bkorb@gnu.org>.
63003
63004 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63007         to pacify gcc -Wswitch-default.
63008
63009 2006-01-22  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63012         temporary buffer for sprintf, take into account the precision also
63013         for 'd', 'i', 'u', 'o', 'x', 'X'.
63014
63015 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63016
63017         * modules/argp-tests: New module
63018         * tests/test-argp.c: New file
63019         * tests/test-argp-2.sh: New file
63020
63021 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63022
63023         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63024         (__argp_base_name): Removed
63025         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63026         typo.
63027         (__argp_base_name): Provide macro definition or extern declaration
63028         depending on the configuration
63029
63030 2006-01-20  Simon Josefsson  <jas@extundo.com>
63031
63032         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63033
63034 2006-01-20  Simon Josefsson  <jas@extundo.com>
63035
63036         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63037
63038 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63039
63040         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63041         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63042         Suggested by Bruno Haible.
63043
63044 2006-01-20  Karl Berry  <karl@gnu.org>
63045
63046         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63047         until changes propagate, I guess.
63048
63049 2006-01-19  Simon Josefsson  <jas@extundo.com>
63050
63051         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63052
63053 2006-01-19  Simon Josefsson  <jas@extundo.com>
63054
63055         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63056
63057 2006-01-19  Simon Josefsson  <jas@extundo.com>
63058
63059         * gnulib-tool: Set check_PROGRAMS.
63060
63061         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63062         modules/des-tests, modules/gc-arcfour-tests,
63063         modules/gc-arctwo-tests, modules/gc-des-tests,
63064         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63065         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63066         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63067         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63068         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63069         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63070         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63071         test_*_SOURCES.
63072
63073 2006-01-18  Simon Josefsson  <jas@extundo.com>
63074
63075         * modules/socklen (Depends-on): Depend on sys_socket.
63076
63077 2006-01-18  Simon Josefsson  <jas@extundo.com>
63078
63079         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63080         modules/des-tests, modules/gc-arcfour-tests,
63081         modules/gc-arctwo-tests, modules/gc-des-tests,
63082         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63083         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63084         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63085         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63086         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63087         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63088         $(EXEEXT) to automake TESTS variable, for mingw32.
63089
63090 2006-01-17  Simon Josefsson  <jas@extundo.com>
63091
63092         * modules/socklen (Include): Need sys/socket.h.
63093
63094 2006-01-17  Bruno Haible  <bruno@clisp.org>
63095
63096         * modules/ssize_t (Include): Add <sys/types.h>.
63097
63098 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63101         it's not portable and it doesn't work with cross-compiles.
63102         Problem reported by Bruno Haible.  Fix missing-$ typo in
63103         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63104         -zignore from being used with Sun's C compiler.
63105
63106 2006-01-12  Simon Josefsson  <jas@extundo.com>
63107
63108         * lib/base64.c: Fix warning, reported by Bruno Haible
63109         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63110
63111 2006-01-12  Bruno Haible  <bruno@clisp.org>
63112
63113         * modules/ldd: New file.
63114         * build-aux/ldd.sh.in: New file.
63115         * MODULES.html.sh (Support for building libraries and executables): Add
63116         ldd.
63117
63118 2006-01-12  Bruno Haible  <bruno@clisp.org>
63119
63120         * m4/ldd.m4: New file.
63121
63122 2006-01-12  Bruno Haible  <bruno@clisp.org>
63123
63124         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63125         endless loop while replacing $auxdir with build-aux.
63126
63127 2006-01-11  Simon Josefsson  <jas@extundo.com>
63128
63129         * lib/stdint_.h (SIZE_MAX): Add missing (.
63130
63131 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         Sync from coreutils.
63134         * lib/md5.c: Fix commentary typos.
63135         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63136         * lib/md5.h (__attribute__): Remove; unused.
63137         * lib/sha1.c: Fix commentary to match md5 better.
63138         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63139         so that we don't need to worry about alignment.  All uses changed.
63140         This merges the 2005-10-28 md5 change into sha1.
63141
63142 2006-01-11  Jim Meyering  <jim@meyering.net>
63143
63144         Sync from coreutils.
63145         * lib/md5.c (OP): Fix spacing.
63146
63147 2006-01-11  Bruno Haible  <bruno@clisp.org>
63148
63149         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63150         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63151         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63152
63153 2006-01-11  Bruno Haible  <bruno@clisp.org>
63154
63155         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63156         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63157         the "early" section as well.
63158
63159 2006-01-11  Bruno Haible  <bruno@clisp.org>
63160
63161         Avoid "ar: no archive members specified" error on MacOS X.
63162         * gnulib-tool (func_modules_add_dummy): New function.
63163         (func_import, func_create_testdir): Invoke it.
63164
63165 2006-01-11  Bruno Haible  <bruno@clisp.org>
63166
63167         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63168         with $auxdir in AC_CONFIG_FILES statements.
63169
63170 2006-01-11  Bruno Haible  <bruno@clisp.org>
63171
63172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63173         Initialize also noinst_HEADERS to empty.
63174
63175 2006-01-11  Bruno Haible  <bruno@clisp.org>
63176
63177         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63178         variables.
63179         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63180         autoreconf.
63181
63182 2006-01-11  Bruno Haible  <bruno@clisp.org>
63183
63184         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63185         overridable by the user.
63186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63187
63188 2006-01-10  Simon Josefsson  <jas@extundo.com>
63189
63190         * modules/sys_socket: New file.
63191
63192 2006-01-10  Simon Josefsson  <jas@extundo.com>
63193
63194         * m4/sys_socket_h.m4: New file.
63195
63196 2006-01-10  Simon Josefsson  <jas@extundo.com>
63197
63198         * lib/socket_.h: New file.
63199
63200 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63201
63202         * modules/readutmp (Maintainer): Add myself.
63203
63204 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63205
63206         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63207         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63208         People who are still concerned with buggy memcmp implementations
63209         can invoke gl_FUNC_MEMCMP themselves.
63210
63211 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63212
63213         * lib/regex_internal.h (BITSET_WORD_BITS):
63214         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63215         preprocessor mishandles large unsigned values as if they were signed.
63216         Problem reported by Claudio Fontana in
63217         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63218
63219 2006-01-10  Jim Meyering  <jim@meyering.net>
63220
63221         Avoid the double-free (first in fts_read, second in fts_close) that
63222         would occur when an `active' directory is made inaccessible (e.g.,
63223         via chmod a-x) during a traversal.
63224         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63225         before returning.  Reproduce this failure by
63226         mkdir -p a/b; cd a; chmod a-x . b
63227         Reported by Stavros Passas.
63228
63229         Sync from coreutils.
63230         * lib/sha1.c: Tweak grammar in a comment.
63231
63232 2006-01-10  Jim Meyering  <jim@meyering.net>
63233
63234         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63235         Patch by Joerg Sonnenberger.
63236
63237 2006-01-10  Bruno Haible  <bruno@clisp.org>
63238
63239         * modules/readutmp: Depend on module free.
63240         * modules/strtok_r: Depend on module restrict.
63241
63242 2006-01-10  Bruno Haible  <bruno@clisp.org>
63243
63244         * modules/gettext (configure.ac): Add an invocation of
63245         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63246
63247 2006-01-10  Bruno Haible  <bruno@clisp.org>
63248
63249         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63250         Reported by Werner Lemberg <wl@gnu.org>.
63251
63252 2006-01-10  Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/localcharset.c: Update from GNU gettext.
63255
63256 2006-01-10  Bruno Haible  <bruno@clisp.org>
63257
63258         * lib/argp.h (__const): Remove macro. Use const instead.
63259         * lib/argp-fmtstream.h (__const): Likewise.
63260         * lib/glob_.h (__const): Remove macro.
63261         * lib/glob-libc.h: Use const instead of __const.
63262
63263 2006-01-10  Bruno Haible  <bruno@clisp.org>
63264
63265         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63266         variable.
63267         Needed to avoid an automake error regarding the 'gettext' module.
63268
63269 2006-01-09  Simon Josefsson  <jas@extundo.com>
63270
63271         * modules/inet_ntop (Depends-on): Add restrict.
63272
63273 2006-01-09  Simon Josefsson  <jas@extundo.com>
63274
63275         * modules/gc-rijndael-tests (License): Put under LGPL.
63276
63277         * modules/gc-des-tests (License): Likewise.
63278
63279         * modules/gc-arcfour-tests (License): Likewise.
63280
63281         * modules/gc-arctwo-tests (License): Likewise.
63282
63283         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63284
63285         * modules/gc-hmac-sha1-tests (Files): Likewise.
63286
63287         * modules/gc-hmac-md5-tests (License): Likewise.
63288
63289         * modules/gc-sha1-tests (License): Likewise.
63290
63291         * modules/gc-md5-tests (License): Likewise.
63292
63293         * modules/gc-md4-tests (License): Likewise.
63294
63295         * modules/gc-md2-tests (License): Likewise.
63296
63297         * modules/gc-tests (License): Likewise.
63298
63299         * modules/des-tests (License): Likewise.
63300
63301         * modules/md4-tests (License): Likewise.
63302
63303         * modules/md2-tests (License): Likewise.
63304
63305 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         Sync from coreutils:
63308
63309         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63310         * modules/lib-ignore: New file.
63311         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63312         chdir-safer.m4, lchmod.m4.
63313         * modules/openat: Add mkdirat.c, openat-priv.h.
63314
63315 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         Sync from coreutils.
63318         * m4/lib-ignore.m4: New file.
63319         * m4/lchmod.m4: New file.
63320
63321 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         Sync from coreutils.
63324         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63325         for write access: POSIX says that must fail.
63326         * lib/fts.c (diropen): Likewise.
63327         * lib/save-cwd.c (save_cwd): Likewise.
63328         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63329         well, for minor improvements on hosts that lack O_DIRECTORY.
63330         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63331         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63332         Fall back on chown if open failed with EACCES.
63333
63334         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63335         Report an error at compile-time if only a 1-second nominal clock
63336         resolution is found.
63337
63338         * lib/lchmod.h: New file.
63339         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63340         (make_dir_parents): Use lchown rather than chown, and
63341         lchmod rather than chmod.
63342
63343         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63344         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63345         "proc" reported by n0dalus.
63346
63347         * lib/mountlist.c: Include <limits.h>.
63348         (dev_from_mount_options)
63349         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63350         New function.  It no longer assumes "dev=" has the System V meaning
63351         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63352         (read_file_system_list)
63353         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63354         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63355         dev= in that case.
63356
63357         * lib/posixtm.h (PDS_PRE_2000): New macro.
63358         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63359         allow_century.  All usages changed.  Reject dates outside the range
63360         1969-1999 if PDS_PRE_2000 is used.
63361
63362 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         Sync from coreutils.
63365         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63366         (Time of day items): Mention the possibility of leap seconds.
63367         Problem reported by Dr. David Alan Gilbert.
63368
63369 2006-01-09  Jim Meyering  <jim@meyering.net>
63370
63371         Sync from coreutils.
63372
63373         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63374
63375         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63376
63377         * lib/modechange.c (mode_compile): Reject an invalid mode string
63378         that starts with an octal digit.  From Andreas Gruenbacher.
63379
63380         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63381         and dup to open_safer and dup_safer, respectively.
63382         (openat_permissive): Fix typo in comment.
63383
63384         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63385         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63386         (_): Remove; no longer needed.
63387         (openat): Renamed from rpl_openat; no need for rpl_openat
63388         since openat.h renames openat for us.
63389         Replace most of the body with a call to openat_permissive,
63390         to avoid duplicate code.
63391         Port to (probably hypothetical) environments were mode_t is
63392         wider than int.
63393         (openat_permissive): Require mode arg, so that we can check
63394         types better.  Put it just after flags.  Change cwd failure
63395         indicator from pointer-to-bool to pointer-to-errno-value.
63396         All callers changed.
63397         Invoke openat_save_fail and/or openat_restore_fail if
63398         cwd_errno is null, so that openat can call us.
63399         (openat_permissive, fdopendir, fstatat, unlinkat):
63400         Simplify errno handling to avoid some duplicate code,
63401         as it's OK to set errno on success.
63402         * lib/openat.h: Revamp code so that function macros depend on
63403         __OPENAT_PREFIX only, not also on AT_FDCWD.
63404         (openat_ro): Remove.  Caller changed to use openat_permissive.
63405         (openat_permissive): Now a macro, if not a function.
63406         (openat_restore_fail, openat_save_fail): Now always functions,
63407         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63408
63409         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63410         and openat.c.
63411         * lib/mkdirat.c: Include openat-priv.h.
63412         Remove definitions of macros defined therein.
63413         * lib/openat.c: Likewise.
63414
63415         * lib/mkdirat.c (mkdirat): New file and function.
63416         * lib/openat.h (mkdirat): Declare.
63417
63418         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63419
63420         * lib/openat.h (openat_permissive): Declare.
63421         (openat_ro): Define.
63422
63423         * lib/openat.c (EXPECTED_ERRNO): New macro.
63424         (openat_permissive): New function -- used in remove.c rewrite.
63425         (all functions): Set errno just before returning, only if there
63426         was an actual failure.
63427         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63428
63429         Emulate openat-family functions using Linux's procfs, if possible.
63430         Idea and some code based on Ulrich Drepper's glibc changes.
63431
63432         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63433         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63434         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63435         before falling back on save_cwd and restore_cwd.
63436         (fdopendir, fstatat, unlinkat): Likewise.
63437
63438         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63439         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63440
63441         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63442         as second argument to va_arg.  Otherwise, some versions of gcc
63443         warn that `if this code is reached, the program will abort'.
63444
63445 2006-01-09  Jim Meyering  <jim@meyering.net>
63446
63447         Sync from coreutils.
63448         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63449         Require openat-priv.h.
63450
63451 2006-01-09  Bruno Haible  <bruno@clisp.org>
63452
63453         * modules/strnlen (Include): Use strnlen.h.
63454
63455 2006-01-09  Bruno Haible  <bruno@clisp.org>
63456
63457         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63458
63459 2006-01-09  Bruno Haible  <bruno@clisp.org>
63460
63461         * lib/sysexit_.h (EX_OK): New macro.
63462         Suggested by Martin Lambers <marlam@marlam.de>.
63463
63464 2006-01-09  Bruno Haible  <bruno@clisp.org>
63465
63466         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63467         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63468
63469 2006-01-09  Bruno Haible  <bruno@clisp.org>
63470
63471         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63472         numbers.
63473
63474 2006-01-09  Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63477         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63478         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63479         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63480
63481 2006-01-09  Bruno Haible  <bruno@clisp.org>
63482
63483         * build-aux/javacomp.sh.in: New file, moved from lib/.
63484         * modules/javacomp-script (Files): Update.
63485         (configure.ac): Add AC_CONFIG_FILES invocation.
63486         (EXTRA_DIST): Remove variable.
63487
63488         * build-aux/javaexec.sh.in: New file, moved from lib/.
63489         * modules/javaexec (Files): Update.
63490         (configure.ac): Add AC_CONFIG_FILES invocation.
63491         (EXTRA_DIST): Remove javaexec.sh.in.
63492
63493         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63494         * modules/csharpcomp-script (Files): Update.
63495         (configure.ac): Add AC_CONFIG_FILES invocation.
63496         (EXTRA_DIST): Remove variable.
63497
63498         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63499         * modules/csharpexec (Files): Update.
63500         (configure.ac): Add AC_CONFIG_FILES invocation.
63501         (EXTRA_DIST): Remove csharpexec.sh.in.
63502
63503 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63504
63505         Sync from coreutils.
63506
63507         Add POSIX ACL support
63508         * lib/acl.h (copy_acl, set_acl): Add declarations.
63509         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63510         systems other than Linux.
63511         (chmod_or_fchmod): New function: use fchmod when possible,
63512         and chmod otherwise.
63513         (file_has_acl): Add a POSIX ACL implementation, with a
63514         Linux-specific subcase.
63515         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63516         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63517         acls are unsupported.
63518         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63519         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63520         are unsupported.
63521
63522 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63523
63524         Sync from coreutils.
63525         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63526
63527 2006-01-07  Bruno Haible  <bruno@clisp.org>
63528
63529         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63530         gl_EARLY.
63531
63532 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63533
63534         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63535         Problem reported for Mingw by Mark Junker.
63536
63537 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         * README: Gnulib normally doesn't generate a tarball.
63540
63541 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63542
63543         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63544         long int, not int, for nanosecond counts, so that people who are
63545         used to POSIX struct timespec won't be surprised.  Reported by Jim
63546         Meyering.
63547
63548 2005-12-28  Bruno Haible  <bruno@clisp.org>
63549
63550         * build-aux/config.rpath: Update from GNU gettext.
63551
63552 2005-12-16  Jim Meyering  <jim@meyering.net>
63553
63554         * modules/fprintftime: New module.
63555         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63556
63557 2005-12-16  Jim Meyering  <jim@meyering.net>
63558
63559         * m4/fprintftime.m4: New file.
63560
63561 2005-12-16  Jim Meyering  <jim@meyering.net>
63562
63563         * lib/fprintftime.c, lib/fprintftime.h: New files.
63564
63565 2005-12-15  Simon Josefsson  <jas@extundo.com>
63566
63567         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63568         new m4/socklen.m4.
63569
63570 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63571
63572         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63573         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63574
63575 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63576
63577         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63578         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63579         struct uparams is valid. Fall back to the default values if it is
63580         not.
63581
63582 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63583
63584         * modules/argp (Files): Add argp-pin.c
63585         (Depends-on): dirname
63586         (lib_SOURCES): Add argp-pin.c
63587
63588 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63589
63590         * m4/argp.m4:  Check if program_invocation_name and
63591         program_invocation_short_name are declared and define appropriate
63592         macros if they are not.
63593
63594 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63595
63596         * lib/argp-help.c (__argp_base_name): New function
63597         (__argp_short_program_name): Rewrite using __argp_base_name
63598         * lib/argp-namefrob.h: Define program_invocation_name and
63599         program_invocation_short_name if requested
63600         (__argp_base_name): Add prototype
63601         * lib/argp-parse.c (argp_def): Use gettext wrappers
63602         (argp_default_parser): Use __argp_base_name
63603         * lib/argp-pin.c: New file. Defines program_invocation_name and
63604         program_invocation_short_name on systems that lack them.
63605
63606 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63607
63608         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63609         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63610         porting problem reported by Georg Schwarz in
63611         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63612
63613 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63614
63615         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63616         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63617         porting problem reported by Georg Schwarz in
63618         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63619
63620 2005-12-05  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63623         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63624         Reported by Mark Junker <mjscod@gmx.de>.
63625
63626 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63629         Use implementation from Albert Chin, with some
63630         comments/corrections by Stepan Kasal and myself.
63631
63632 2005-12-02  Bruno Haible  <bruno@clisp.org>
63633
63634         * gnulib-tool (func_import): Accept GPLed build tool modules when
63635         --lgpl is given.
63636         * modules/csharpcomp-script: New file.
63637         * modules/csharpcomp: Depend on it.
63638         * modules/javacomp-script: New file.
63639         * modules/javacomp: Depend on it.
63640         Suggested by Simon Josefsson.
63641
63642 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63643
63644         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63645         statement, to work around an HP-UX 10.20 compiler bug reported by
63646         Peter O'Gorman.
63647
63648 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63649
63650         * modules/savedir (Depends-on): Add openat.
63651
63652 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63655         (uintmax_t) [defined uintmax_t]: Do not declare.
63656         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63657         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63658         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63659         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63660         sake of portability to weird hosts that C allows (though we don't
63661         know of any practical examples).
63662
63663         * lib/savedir.h (fdsavedir): New decl.
63664         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63665         contains most of the former guts of savedir.
63666         (savedir): Use savedirstream.
63667         Include "openat.h".
63668
63669 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * modules/obstack (Files): Add m4/ulonglong.m4.
63672         Problem reported by Davide Angelocola.
63673
63674 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63675
63676         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63677         coreutils no longer futzes with rounding modes.
63678
63679 2005-11-14  Jim Meyering  <jim@meyering.net>
63680
63681         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63682         replacement of mkstemp.
63683
63684 2005-11-10  Simon Josefsson  <jas@extundo.com>
63685
63686         * lib/readline.c: Remove EOL.
63687
63688 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63689
63690         * modules/gethrxtime (Depends-on): Add gettime.
63691
63692 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63695         or gettimeofday; no longer needed.
63696
63697 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63700         time business.
63701         (gethrxtime) [! (HAVE_NANOUPTIME
63702         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63703         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63704         our own approximation.
63705
63706 2005-11-08  Eric Blake  <ebb9@byu.net>
63707
63708         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63709
63710 2005-11-08  Eric Blake  <ebb9@byu.net>
63711
63712         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63713
63714 2005-11-04  Bruno Haible  <bruno@clisp.org>
63715
63716         * gnulib-tool: Implement --update mode.
63717
63718 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63719
63720         Fix porting problem reported by Theodoros V. Kalamatianos.
63721         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63722         Don't assume that futimes failing means we must fail.
63723
63724 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63725
63726         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63727         variables to suggest the intended function of the PATH_MAX check.
63728
63729 2005-10-30  Kean Johnston  <jkj@sco.com>
63730
63731         Trivial changes to support SCO systems.
63732         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63733         as PATH_MAX.
63734         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63735         where __ptr is null when no I/O is pending.
63736
63737 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63738
63739         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63740         leave errno alone.  Problem reported by Dmitry V. Levin.
63741
63742 2005-10-28  Simon Josefsson  <jas@extundo.com>
63743
63744         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63745         Test more.
63746
63747         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63748
63749         * modules/md2, modules/md2-tests: New files.
63750
63751 2005-10-28  Simon Josefsson  <jas@extundo.com>
63752
63753         * m4/inet_ntop.m4: More tests.
63754
63755         * m4/gc-md2.m4, md2.m4: New file.
63756
63757 2005-10-28  Simon Josefsson  <jas@extundo.com>
63758
63759         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63760         "restrict" keywords, as per POSIX.  Protect the function
63761         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63762         Don't use K&R prototypes.  Check the sprintf return values.
63763         Re-define EAFNOSUPPORT if not present.  Indent.
63764
63765         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63766         suggested by Bruno Haible <bruno@clisp.org>.
63767
63768         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63769
63770         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63771
63772         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63773         libgcrypt).
63774
63775         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63776
63777         * lib/md2.h, lib/md2.c: New files.
63778
63779 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63782         errno alone.  Problem reported by Frederic Jolliton.
63783
63784 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * modules/verify (License): Change from GPL to LGPL.  This is a
63787         tiny module and there are apparently near-equivalents that are
63788         under the BSD license.
63789
63790 2005-10-24  Simon Josefsson  <jas@extundo.com>
63791
63792         * modules/sha1: Relicense to LGPL.
63793
63794 2005-10-24  Simon Josefsson  <jas@extundo.com>
63795
63796         * lib/md4.h: Shrink buffer size, now that we changed the type.
63797
63798 2005-10-23  Simon Josefsson  <jas@extundo.com>
63799
63800         * gnulib-tool (func_import): Fix --tests-base.
63801
63802 2005-10-22  Simon Josefsson  <jas@extundo.com>
63803
63804         * modules/arcfour (Depends-on): Need stdint.
63805
63806 2005-10-22  Simon Josefsson  <jas@extundo.com>
63807
63808         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63809         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63810
63811 2005-10-22  Simon Josefsson  <jas@extundo.com>
63812
63813         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63814         suggested by Bruno Haible <bruno@clisp.org>.
63815
63816 2005-10-22  Simon Josefsson  <jas@extundo.com>
63817
63818         * lib/crc.h: Include stddef.h, for size_t.
63819
63820 2005-10-22  Simon Josefsson  <jas@extundo.com>
63821
63822         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63823         arcfour_context struct (simplify test vector testing in GNU
63824         Shishi).
63825
63826 2005-10-21  Simon Josefsson  <jas@extundo.com>
63827
63828         * modules/des, modules/des-tests: New files.
63829
63830         * modules/gc-des, modules/gc-des-tests: New files.
63831
63832         * tests/test-des.c, tests/test-gc-des.c: New file.
63833
63834 2005-10-21  Simon Josefsson  <jas@extundo.com>
63835
63836         * modules/arctwo, modules/arctwo-tests: New files.
63837
63838         * tests/test-arctwo.c: New file.
63839
63840         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63841
63842         * tests/test-gc-arctwo.c: New file.
63843
63844 2005-10-21  Simon Josefsson  <jas@extundo.com>
63845
63846         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63847         Bruno Haible <bruno@clisp.org>.
63848
63849         * m4/gc-des.m4: New file.
63850
63851 2005-10-21  Simon Josefsson  <jas@extundo.com>
63852
63853         * m4/arctwo.m4: New file.
63854
63855         * m4/gc-arctwo.m4: New file.
63856
63857 2005-10-21  Simon Josefsson  <jas@extundo.com>
63858
63859         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63860         block.
63861
63862 2005-10-21  Simon Josefsson  <jas@extundo.com>
63863
63864         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63865         <bruno@clisp.org>.
63866
63867         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63868
63869         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63870         Bruno Haible <bruno@clisp.org>.
63871
63872         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63873         <bruno@clisp.org>.
63874
63875 2005-10-21  Simon Josefsson  <jas@extundo.com>
63876
63877         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63878
63879 2005-10-21  Simon Josefsson  <jas@extundo.com>
63880
63881         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63882
63883 2005-10-21  Simon Josefsson  <jas@extundo.com>
63884
63885         * lib/des.h, lib/des.c: New files.
63886
63887         * lib/gc-gnulib.c: Support DES.c
63888
63889 2005-10-21  Simon Josefsson  <jas@extundo.com>
63890
63891         * lib/arctwo.h, lib/arctwo.c: New files.
63892
63893         * lib/gc-gnulib.c: Support ARCTWO.
63894
63895 2005-10-21  Simon Josefsson  <jas@extundo.com>
63896
63897         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63898         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63899
63900 2005-10-21  Simon Josefsson  <jas@extundo.com>
63901
63902         * gnulib-tool (func_import, func_create_testdir): Define automake
63903         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63904         Makefile.am snippet),
63905         suggested by Bruno Haible <bruno@clisp.org>.
63906
63907         * modules/gc (Makefile.am): Use it.
63908
63909 2005-10-21  Bruno Haible  <bruno@clisp.org>
63910
63911         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63912         patch.
63913
63914 2005-10-19  Simon Josefsson  <jas@extundo.com>
63915
63916         * tests/test-gc-rijndael.c: New file.
63917
63918         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63919
63920 2005-10-19  Simon Josefsson  <jas@extundo.com>
63921
63922         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63923         interface too.
63924
63925 2005-10-19  Simon Josefsson  <jas@extundo.com>
63926
63927         * tests/test-gc-arcfour.c: New file.
63928
63929         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63930
63931 2005-10-19  Simon Josefsson  <jas@extundo.com>
63932
63933         * modules/gc-md4, modules/gc-md4-tests: New file.
63934
63935         * tests/test-gc-md4.c: New file.
63936
63937 2005-10-19  Simon Josefsson  <jas@extundo.com>
63938
63939         * m4/gc-md4.m4: New file.
63940
63941 2005-10-19  Simon Josefsson  <jas@extundo.com>
63942
63943         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63944         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63945         <kasal@ucw.cz>.
63946
63947 2005-10-19  Simon Josefsson  <jas@extundo.com>
63948
63949         * m4/gc-arcfour.m4: New file.
63950
63951         * m4/gc-rijndael.m4: New file.
63952
63953 2005-10-19  Simon Josefsson  <jas@extundo.com>
63954
63955         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63956
63957 2005-10-19  Simon Josefsson  <jas@extundo.com>
63958
63959         * lib/gc-gnulib.c: Support ARCFOUR.
63960
63961 2005-10-19  Simon Josefsson  <jas@extundo.com>
63962
63963         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63964         support.
63965
63966         * lib/gc.h: Add ECB enum type.
63967
63968         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63969
63970 2005-10-18  Simon Josefsson  <jas@extundo.com>
63971
63972         * tests/test-md5.c: New file.
63973
63974         * modules/md5-tests: New file.
63975
63976 2005-10-18  Simon Josefsson  <jas@extundo.com>
63977
63978         * tests/test-md4.c: New file.
63979
63980         * modules/md4, modules/md4-tests: New files.
63981
63982 2005-10-18  Simon Josefsson  <jas@extundo.com>
63983
63984         * m4/md4.m4: New file.
63985
63986 2005-10-18  Simon Josefsson  <jas@extundo.com>
63987
63988         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63989
63990 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63991
63992         * gnulib-tool (func_create_testdir): Omit the second check whether
63993         BUILT_SOURCES in nonempty.
63994
63995 2005-10-17  Simon Josefsson  <jas@extundo.com>
63996
63997         * tests/test-rijndael.c: New file.
63998
63999 2005-10-17  Simon Josefsson  <jas@extundo.com>
64000
64001         * modules/sha1: Depend on stdint instead of md5.
64002
64003         * modules/md5: Depend on stdint, remove uint32_t.
64004
64005 2005-10-17  Simon Josefsson  <jas@extundo.com>
64006
64007         * modules/gc-sha1-tests: New file.
64008
64009         * tests/test-gc-sha1.c: New file.
64010
64011 2005-10-17  Simon Josefsson  <jas@extundo.com>
64012
64013         * m4/md5.m4: Remove call to uint32_t.m4.
64014
64015 2005-10-17  Simon Josefsson  <jas@extundo.com>
64016
64017         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64018
64019         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64020         md5.h.
64021
64022         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64023
64024         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64025
64026 2005-10-17  Simon Josefsson  <jas@extundo.com>
64027
64028         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64029
64030 2005-10-17  Simon Josefsson  <jas@extundo.com>
64031
64032         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64033
64034 2005-10-17  Simon Josefsson  <jas@extundo.com>
64035
64036         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64037
64038         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64039
64040 2005-10-17  Bruno Haible  <bruno@clisp.org>
64041
64042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64043         that it can also be used in a test.
64044
64045 2005-10-16  Bruno Haible  <bruno@clisp.org>
64046
64047         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64048         TESTS_ENVIRONMENT, so that individual tests can augment it.
64049
64050         * gnulib-tool (func_create_testdir): Use an intermediate target for
64051         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64052         macros, like $(ALLOCA_H), which cannot be passed through the command
64053         line.
64054
64055 2005-10-15  Simon Josefsson  <jas@extundo.com>
64056
64057         * modules/rijndael-tests: New file.
64058
64059         * modules/rijndael: New file.
64060
64061 2005-10-15  Simon Josefsson  <jas@extundo.com>
64062
64063         * m4/rijndael.m4: New file.
64064
64065 2005-10-15  Simon Josefsson  <jas@extundo.com>
64066
64067         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64068
64069         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64070
64071 2005-10-14  Simon Josefsson  <jas@extundo.com>
64072
64073         * tests/test-arcfour.c: New file.
64074
64075         * modules/arcfour, modules/arcfour-tests: New files.
64076
64077 2005-10-14  Simon Josefsson  <jas@extundo.com>
64078
64079         * m4/arcfour.m4: New file.
64080
64081 2005-10-14  Simon Josefsson  <jas@extundo.com>
64082
64083         * lib/arcfour.h, lib/arcfour.c: New files.
64084
64085 2005-10-14  Roland McGrath  <roland@redhat.com>
64086
64087         Import from libc.  [BZ #1331]
64088         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64089         macro argument.
64090         Reported by Matej Vela <vela@debian.org>.
64091
64092 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64093
64094         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64095         include <wchar.h>; no longer needed.
64096
64097 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64100
64101 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64102         and  Ulrich Drepper  <drepper@redhat.com>
64103
64104         Import from libc.
64105         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64106         instead of inline stream orientation test and two separate
64107         function calls.  Pay no attention to USE_IN_LIBIO.
64108
64109 2005-10-13  Simon Josefsson  <jas@extundo.com>
64110
64111         * modules/gc-hmac-md5-tests: New file.
64112
64113         * tests/test-gc-hmac-sha1.c: New file.
64114
64115         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64116
64117         * modules/gc-hmac-md5-tests: New file.
64118
64119         * tests/test-gc-md5.c: New file.
64120
64121         * modules/gc-md5-tests: New file.
64122
64123 2005-10-13  Simon Josefsson  <jas@extundo.com>
64124
64125         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64126         Move memory allocation outside of loop.
64127
64128 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64131         intermediate directory is in a read-only file system.  Problem
64132         reported by Eric Blake.
64133
64134 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64135
64136         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64137
64138 2005-10-12  Simon Josefsson  <jas@extundo.com>
64139
64140         * tests/test-hmac-sha1.c: New file.
64141
64142         * modules/hmac-sha1-tests: New file.
64143
64144         * modules/hmac-sha1: New file.
64145
64146 2005-10-12  Simon Josefsson  <jas@extundo.com>
64147
64148         * modules/gc-sha1: New file.
64149
64150 2005-10-12  Simon Josefsson  <jas@extundo.com>
64151
64152         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64153
64154         * tests/test-gc-pbkdf2-sha1.c: New file.
64155
64156 2005-10-12  Simon Josefsson  <jas@extundo.com>
64157
64158         * modules/gc-md5, modules/gc-hmac-md5: New files.
64159
64160         * modules/gc (Files): Remove md5, memxor and hmac files.
64161
64162 2005-10-12  Simon Josefsson  <jas@extundo.com>
64163
64164         * m4/gc-pbkdf2-sha1.m4: New file.
64165
64166         * m4/gc-hmac-sha1.m4: New file.
64167
64168         * m4/gc-sha1: New file.
64169
64170         * m4/hmac-sha1.m4: New file.
64171
64172 2005-10-12  Simon Josefsson  <jas@extundo.com>
64173
64174         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64175
64176         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64177
64178 2005-10-12  Simon Josefsson  <jas@extundo.com>
64179
64180         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64181         suggested by Bruno Haible <bruno@clisp.org>.
64182
64183 2005-10-12  Simon Josefsson  <jas@extundo.com>
64184
64185         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64186
64187 2005-10-12  Simon Josefsson  <jas@extundo.com>
64188
64189         * lib/gc-pbkdf2-sha1.c: New file.
64190
64191         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64192
64193 2005-10-12  Simon Josefsson  <jas@extundo.com>
64194
64195         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64196
64197         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64198
64199 2005-10-12  Simon Josefsson  <jas@extundo.com>
64200
64201         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64202         GC_USE_HMAC_MD5, respectively.
64203
64204         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64205         (gc_md5): Fix typo.
64206
64207         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64208
64209         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64210
64211         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64212
64213 2005-10-12  Bruno Haible  <bruno@clisp.org>
64214
64215         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64216         Reported by Stepan Kasal <kasal@ucw.cz>.
64217
64218 2005-10-11  Simon Josefsson  <jas@extundo.com>
64219
64220         * tests/test-crc.c: New file.
64221
64222         * modules/crc, modules/crc-tests: New files.
64223
64224 2005-10-11  Simon Josefsson  <jas@extundo.com>
64225
64226         * m4/crc.m4: New file.
64227
64228 2005-10-11  Simon Josefsson  <jas@extundo.com>
64229
64230         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64231
64232         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64233
64234         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64235
64236 2005-10-11  Simon Josefsson  <jas@extundo.com>
64237
64238         * lib/crc.h, lib/crc.c: New files.
64239
64240         * lib/gc.h (gc_hash_buffer): Add doc.
64241
64242 2005-10-11  Bruno Haible  <bruno@clisp.org>
64243
64244         * modules/c-strcasestr: New file.
64245         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64246
64247 2005-10-11  Bruno Haible  <bruno@clisp.org>
64248
64249         * modules/c-strcase: New file.
64250         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64251
64252 2005-10-11  Bruno Haible  <bruno@clisp.org>
64253
64254         * lib/strcasecmp.c: Include limits.h.
64255         (strcasecmp): Avoid integer overflow on exotic platforms.
64256         * lib/strncasecmp.c: Include limits.h.
64257         (strncasecmp): Avoid integer overflow on exotic platforms.
64258         Reported by Paul Eggert.
64259
64260 2005-10-11  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/c-strcasestr.h: New file, from GNU gettext.
64263         * lib/c-strcasestr.c: New file, from GNU gettext.
64264
64265 2005-10-11  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/c-strcase.h: New file, from GNU gettext.
64268         * lib/c-strcasecmp.c: New file, from GNU gettext.
64269         * lib/c-strncasecmp.c: New file, from GNU gettext.
64270
64271 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         * modules/mempcpy (License): GPL -> LGPL.
64274         * modules/strchrnul (License): Likewise.
64275         * modules/sysexits (License): Likewise.
64276
64277 2005-10-08  Simon Josefsson  <jas@extundo.com>
64278
64279         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64280
64281 2005-10-07  Simon Josefsson  <jas@extundo.com>
64282
64283         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64284
64285 2005-10-06  Simon Josefsson  <jas@extundo.com>
64286
64287         * tests/test-hmac-md5.c: New file.
64288
64289         * modules/hmac-md5-tests: New file.
64290
64291         * modules/hmac-md5: New file.
64292
64293 2005-10-06  Simon Josefsson  <jas@extundo.com>
64294
64295         * m4/hmac-md5.m4: New file.
64296
64297         * m4/memxor.m4: Require gl_C_RESTRICT.
64298
64299 2005-10-06  Simon Josefsson  <jas@extundo.com>
64300
64301         * lib/memxor.c (memxor): Avoid casts and warnings.
64302
64303 2005-10-06  Simon Josefsson  <jas@extundo.com>
64304
64305         * lib/hmac-md5.c: New file.
64306
64307         * lib/hmac.h: New file.
64308
64309 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64310
64311         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64312         promotes to int, not unsigned int, to catch the AIX 5.3
64313         compiler bug.
64314
64315 2005-10-05  Simon Josefsson  <jas@extundo.com>
64316
64317         * modules/memxor: New file.
64318
64319         * modules/iconv (Files): Move config.rpath to havelib, it is used
64320         there.
64321
64322         * modules/havelib (Files): Add config.rpath.
64323
64324 2005-10-05  Simon Josefsson  <jas@extundo.com>
64325
64326         * m4/memxor.m4: New file.
64327
64328 2005-10-05  Simon Josefsson  <jas@extundo.com>
64329
64330         * lib/memxor.c (memxor): Fix compiler error.
64331
64332         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64333         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64334
64335         * lib/memxor.h, lib/memxor.c: New files.
64336
64337         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64338         we assume all systems have it, suggested by Jim Meyering
64339         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64340         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64341         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64342         same reasons.
64343
64344 2005-10-05  Simon Josefsson  <jas@extundo.com>
64345
64346         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64347
64348 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64351         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64352         needed, since the source code now assumes these .h files.
64353
64354 2005-10-05  Derek Price  <derek@ximbiot.com>
64355
64356         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64357
64358 2005-10-05  Bruno Haible  <bruno@clisp.org>
64359
64360         * modules/stdint (License): Change to LGPL.
64361
64362 2005-10-04  Simon Josefsson  <jas@extundo.com>
64363
64364         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64365         D. Baushke" <mdb@gnu.org>.
64366
64367 2005-10-04  Bruno Haible  <bruno@clisp.org>
64368
64369         * lib/verify.h (verify_true): Provide alternative definition for C++.
64370
64371 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64372
64373         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64374         (SSIZE_MAX): New macro, if not already defined.
64375         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64376         than 2 GiB.
64377
64378 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64379
64380         Sync from coreutils.
64381         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64382         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64383         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64384         ULLONG_MAX doesn't work with 2.7.2.1.
64385
64386 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64387
64388         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64389         From Ben Pfaff.
64390
64391         * modules/exclude (Depends-on): Depend on verify.
64392         * modules/strtoimax (Depends-on): Likewise.
64393         * modules/utimecmp (Depends-on): Likewise.
64394
64395 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64396
64397         * lib/exclude.c: Include verify.h.
64398         (verify): Remove.  All callers changed to use verify.h's version.
64399         * lib/strtoimax.c: Likewise.
64400         * lib/utimecmp.c: Likewis.e
64401
64402         Sync from coreutils.
64403         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64404         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64405         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64406         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64407         bother returning ENOSYS if settimeofday or stime fails; just let
64408         them return whatever errno they want to return.
64409         * lib/utimens.c: Include unistd.h, for dup2.
64410         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64411         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64412
64413 2005-10-02  Jim Meyering  <jim@meyering.net>
64414
64415         Sync from coreutils.
64416         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64417         from glibc-2.2.5 that fails for read-only files.
64418
64419 2005-10-02  Jim Meyering  <jim@meyering.net>
64420
64421         Sync from coreutils.
64422         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64423         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64424         `#if HAVE_CONFIG_H'.
64425         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64426         Remove AT_FDCWD test.
64427         Do not consume the fd unless successful.
64428         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64429         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64430         block, so that we don't even try to compile it if settimeofday is
64431         available.  This works around a compilation failure on OSF1 V5.1,
64432         due to stime requiring a `long int*' while tv_sec is `int'.
64433
64434 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64435
64436         Sync from coreutils.
64437         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64438         against `yes', rather than just testing for nonempty.
64439
64440 2005-10-01  Simon Josefsson  <jas@extundo.com>
64441
64442         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64443         and Darwin.
64444
64445         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64446         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64447         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64448         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64449         Check if struct addrinfo is declared.
64450
64451 2005-10-01  Simon Josefsson  <jas@extundo.com>
64452
64453         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64454         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64455         AI_* and EAI_* definitions.  Protect function declarations.
64456
64457 2005-10-01  Jim Meyering  <jim@meyering.net>
64458
64459         Sync from coreutils.
64460
64461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64462         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64463         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64464         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64465         in the inet and nsl libraries.  Required on Solaris 5.7.
64466
64467 2005-10-01  Jim Meyering  <jim@meyering.net>
64468
64469         Sync from coreutils.
64470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64471         in the inet and nsl libraries.  Required on Solaris 5.7.
64472
64473 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64474
64475         * lib/getdelim.c (getdelim): Remove unused variables.
64476
64477 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64478
64479         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64480         so that the code works even with ancient cpp.  Portability problem
64481         with GCC 2.7.2.1 reported by Thomas M.Ott.
64482
64483 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64484
64485         * modules/regex (Depends-on): Add strcase.
64486
64487         * modules/gethostname (Licence): Change from GPL to LGPL, since
64488         gethostname.c is a trivial implementation of a standard library
64489         function.
64490         * modules/poll (License): Change from GPL to LGPL, since it's
64491         derived from LGPL code.
64492
64493 2005-09-27  Jim Meyering  <jim@meyering.net>
64494
64495         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64496         HAVE_CONFIG_H.
64497
64498         * lib/intprops.h (signed_type_or_expr__): Define.
64499         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64500         for unsigned types.
64501
64502 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         * lib/verify.h (verify_expr): Remove, replacing with:
64505         (verify_true): New macro that returns true instead of void.
64506         (verify_type__): Remove.
64507         (verify): Use verify_true rather than verify_type__.
64508
64509 2005-09-26  Bruno Haible  <bruno@clisp.org>
64510
64511         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64512         is necessary.
64513         (lib_SOURCES): Remove mbchar.c.
64514         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64515         (Files): Add m4/mbrtowc.m4.
64516         * modules/mbiter: Likewise.
64517         * modules/mbuiter: Likewise.
64518
64519 2005-09-26  Bruno Haible  <bruno@clisp.org>
64520
64521         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64522         compile mbchar.c if they are not both present.
64523         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64524         * m4/mbiter.m4 (gl_MBITER): Likewise.
64525         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64526         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64527         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64528
64529 2005-09-25  Jim Meyering  <jim@meyering.net>
64530
64531         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64532         also uses socklen_t.
64533
64534 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64535
64536         * lib/utimens.c (ENOSYS): Define if not already defined.
64537         (futimens): Support having a null PATH if the file descriptor
64538         is nonnegative.
64539
64540         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64541         Remove.
64542         (__attribute): Define to empty unless GCC 3.1 or later.
64543         This works around a core dump on OpenBSD 3.4, which has GCC
64544         2.95.3, which dumps core when given __attribute__(()).  It also
64545         simplifies other tests, since we really don't want to bother with
64546         worrying about which ancient version of GCC supported what.
64547         Original problem reported by Yoann Vandoorselaere, with part of
64548         the fix suggested by Derek Price.
64549
64550 2005-09-24  Jim Meyering  <jim@meyering.net>
64551
64552         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64553         so we can once again use a positive bitfield width of 1 -- now we
64554         don't have to explain why we were using a bitfield width of 2.
64555
64556 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64559         and similarly for the other external symbols.  Problem reported
64560         by James Gallager.
64561
64562         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64563         bug reported by Jim Meyering.
64564
64565         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64566         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64567         not needed, since socklen is a prerequisite module.
64568
64569 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64570
64571         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64572         Problem reported by Eric Blake.
64573         (getaddrinfo): Initialize se so that it's not garbage.
64574         Redo internal storage allocation so that it doesn't make unportable
64575         assumptions about alignment.
64576         Fix a memory leak.
64577
64578         * lib/utimens.c (futimens): Use futimesat if available.
64579         Prefer it to futimes since it doesn't have the futimes bug.
64580
64581         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64582         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64583         Instead, declare a function that returns a pointer to an array,
64584         and use verify_type__ to declare the size of the array.
64585         Problem and germ of a solution reported by Bruno Haible.
64586         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64587         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64588
64589 2005-09-23  Jim Meyering  <jim@meyering.net>
64590
64591         Sync from coreutils.
64592         Correct build failure (socklen_t not defined) on at least
64593         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64594         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64595
64596 2005-09-23  Jim Meyering  <jim@meyering.net>
64597
64598         * modules/getaddrinfo (Depends-on): Add socklen.
64599
64600 2005-09-23  Bruno Haible  <bruno@clisp.org>
64601
64602         * tests/test-verify.c: New file.
64603
64604 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         Sync from coreutils.
64607
64608         * modules/argmatch (Depends-on): Add verify.
64609         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64610         unistd-safer.
64611         * modules/save-cwd (Depends-on): Likewise.
64612
64613         * modules/openat (Files): Add lib/openat-die.c.
64614         (Depends-on): Remove error, exitfail.
64615         Add dirname.
64616
64617         * modules/verify: New file.
64618         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64619         with "verify" module.
64620
64621 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         Sync from coreutils.
64624
64625         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64626         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64627         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64628         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64629         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64630         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64631         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64632         Don't bother checking for string.h, stdlib.h, unistd.h.
64633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64634         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64635         module's job.
64636         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64637         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64638
64639         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64640         (gl_GETDATE): Use it.
64641
64642         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64643
64644 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         Sync from coreutils.
64647
64648         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64649         stat-time.h.
64650         * lib/argmatch.h: Include verify.h
64651         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64652         (ARGMATCH_ASSERT): Remove; unused.
64653         * lib/canonicalize.c: Assume STDC_HEADERS.
64654         * lib/exclude.c: Include "strcase.h".
64655         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64656         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64657         and stdio-safer.h.
64658         (getusershell): Call fopen, not fopen_safer.
64659         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64660         Do not include unistd-safer.h.
64661         (save_cwd): Don't call fd_safer; no longer needed
64662         now that we include fcntl--.h.
64663
64664         * lib/getdate.y (relative_time): New type.
64665         (RELATIVE_TIME_0): New constant.
64666         (parser_control): Use relative_time instead of doing it ourselves.
64667         (%union): Add new relative_time rel member.
64668         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64669         Now typeless.
64670         (relunit, relunit_snumber): Now of type rel.
64671         (zone, rel, relunit, get_date): Adjust to above changes.
64672
64673         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64674         Do not include unistd-safer.h.
64675         (getloadavg): Don't call fd_safer; no longer needed
64676         now that we include fcntl--.h.
64677
64678         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64679         (make_dir_parents): Treat ENOSYS like EEXIST.
64680
64681         Improve quality of diagnostics on restore_cwd failure.
64682         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64683         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64684         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64685         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64686         each time through the loop.  Do not diagnose restore_cwd failure;
64687         that is the caller's job (and perhaps the caller does not care).
64688
64689         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64690         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64691         If the file already exists but is not a directory, don't bother
64692         to try to make its parents.
64693         Close potential file descriptor leak if we can't chdir("/") (!).
64694         Don't always return true if chdir($PWD) fails; return true only
64695         if the requested action was done successfully (except for the
64696         chdir($PWD)).
64697         Don't log final directory unless we actually made it.
64698         Refactor to avoid duplicate code to fix up permissions.
64699         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64700
64701         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64702         to make it a bit faster and (I hope) clearer.
64703         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64704         Fix bug in formats like %2N.
64705
64706         * lib/verify.h: New file.
64707
64708 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64709
64710         Sync from coreutils.
64711         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64712
64713 2005-09-22  Jim Meyering  <jim@meyering.net>
64714
64715         Sync from coreutils.
64716
64717         * m4/lstat.m4 (gl_FUNC_LSTAT):
64718         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64719         Remove obsolete comment.
64720         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64721         * m4/xstrtod.m4: Likewise.
64722
64723         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64724
64725 2005-09-22  Jim Meyering  <jim@meyering.net>
64726
64727         Sync from coreutils.
64728
64729         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64730
64731         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64732         the .tm_year member, since otherwise gcc-4.0 would now warn about
64733         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64734
64735         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64736         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64737
64738         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64739         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64740         when run in a time zone for which daylight savings time is in effect
64741         for the starting date.
64742
64743         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64744         stop us from restricting permissions of just-created absolute-named
64745         directories.
64746         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64747         to restore initial working directory.
64748         * lib/mkdir-p.c (make_dir_parents): New parameter:
64749         different_working_dir, to tell caller if/when we change the working
64750         directory and are unable to return to the initial one.
64751         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64752         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64753         `return false'.  This fixes a bug introduced on 2004-07-30.
64754
64755         * lib/openat.c (fdopendir): Be sure to close the supplied
64756         file descriptor before returning.  This makes our replacement
64757         implementation a little closer to Solaris's, where fdopendir
64758         ties the file descriptor to the returned DIR* pointer.
64759         * lib/openat.c (unlinkat): New function.
64760         * lib/openat.h (unlinkat): Add prototype.
64761         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64762         (openat_restore_fail): Rename from openat_restore_die.
64763         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64764
64765         Provide an alternative to exiting immediately upon save_cwd or
64766         restore_cwd failure.  Now, an application can arrange e.g.,
64767         to perform a longjump in that case.
64768         * lib/openat.c: Include dirname.h.
64769         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64770         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64771         and openat_restore_die rather than calling error directly.
64772         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64773
64774         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64775         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64776         define.
64777
64778         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64779         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64780                             int utc, int nanoseconds);
64781         Background:
64782         date should not have to allocate a megabyte of virtual memory to
64783         handle a format argument like +%1048575T.  When implemented with
64784         strftime, it must allocate such a buffer, use strftime to fill it
64785         in, print it, then free it.
64786         With fprintftime, it simply prints everything and exits.
64787         With no need for memory allocation, that's one fewer way to fail.
64788         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64789         optional field width, not before, so we accept %9:z, not %:9z.
64790         (my_strftime): Be sure to use L_('x') for literals.
64791
64792         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64793         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64794         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64795         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64796         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64797         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64798         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64799         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64800         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64801         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64802         * lib/xgethostname.c, lib/xreadlink.c:
64803         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64804
64805         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64806         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64807         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64808         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64809         and don't include <sys/file.h>).
64810
64811 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64812
64813         Sync from coreutils.
64814
64815         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64816         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64817         [!LDAV_DONE]: Avoid unused variable warning.
64818
64819 2005-09-21  Bruno Haible  <bruno@clisp.org>
64820
64821         * lib/unicodeio.h (unicode_to_mb): New declaration.
64822
64823 2005-09-20  Derek Price  <derek@ximbiot.com>
64824
64825         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64826         getaddrinfo.h.
64827
64828 2005-09-20  Bruno Haible  <bruno@clisp.org>
64829
64830         * gnulib-tool: Remove trailing slashes from the values specified for
64831         --source-base, --m4-base, --tests-base, --aux-dir.
64832         Suggested by Simon Josefsson <jas@extundo.com>.
64833
64834 2005-09-20  Bruno Haible  <bruno@clisp.org>
64835
64836         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64837         func_modules_to_filelist, func_import, func_create_testdir): Make all
64838         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64839         change when gnulib-tool is invoked in a different locale.
64840
64841 2005-09-19  Simon Josefsson  <jas@extundo.com>
64842
64843         * m4/socklen.m4: Fix typo.
64844
64845 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64846
64847         Use a consistent style for including <config.h>.
64848         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64849         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64850         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64851         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64852         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64853         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64854         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64855         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64856         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64857         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64858         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64859         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64860         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64861         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64862         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64863         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64864         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64865         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64866         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64867         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64868         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64869         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64870         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64871         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64872         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64873         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64874         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64875         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64876         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64877         lib/xstrtoumax.c, lib/yesno.c:
64878         Standardize inclusion of config.h.
64879         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64880         lib/inttostr.h:  Removed inclusion of config.h from header files.
64881         * lib/inttostr.c:  Adjusted in-tree users.
64882         * lib/timespec.h: Remove superfluous warning to include config.h.
64883         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64884         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64885         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64886         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64887         config.h with HAVE_CONFIG_H.
64888
64889 2005-09-19  Jim Meyering  <jim@meyering.net>
64890
64891         * modules/pathmax (License): Change to LGPL.
64892
64893 2005-09-19  Derek Price  <derek@ximbiot.com>
64894
64895         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64896
64897 2005-09-19  Bruno Haible  <bruno@clisp.org>
64898
64899         * gnulib-tool (import): Provide default for --tests-base.
64900
64901 2005-09-19  Bruno Haible  <bruno@clisp.org>
64902
64903         * doc/quote.texi: New file, extracted from gnulib.texi.
64904         * doc/ctime.texi: New file, extracted from gnulib.texi.
64905         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64906         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64907         * doc/gnulib.texi: Include them.
64908
64909 2005-09-18  Bruno Haible  <bruno@clisp.org>
64910
64911         Portability fix.
64912         * gnulib-tool (func_readlink): New function.
64913         (func_ln_if_changed): Use it.
64914
64915 2005-09-18  Bruno Haible  <bruno@clisp.org>
64916
64917         * gnulib-tool: Support --with-tests also with --import.
64918         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64919         (func_import): Use variables $testsbase and $inctests. Emit a
64920         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64921         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64922         SUBDIRS += $testsdir.
64923         (func_create_testdir): Update.
64924
64925 2005-09-18  Bruno Haible  <bruno@clisp.org>
64926
64927         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64928         instead of $dry_run.
64929         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64930         (func_ln_if_changed): Don't handle dry-run here.
64931         (func_import): In dry-run mode, detect more precisely which actions
64932         would be performed, and don't use "...ing" verbs.
64933
64934 2005-09-18  Bruno Haible  <bruno@clisp.org>
64935
64936         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64937         (func_import): Use join on two temporary files instead of three nested
64938         loops, in order to determine which files are new or old.
64939
64940 2005-09-18  Bruno Haible  <bruno@clisp.org>
64941
64942         * gnulib-tool (func_import): Comment out code that spits out the
64943         new files with --dry-run.
64944
64945 2005-09-18  Bruno Haible  <bruno@clisp.org>
64946
64947         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64948
64949 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/stat-time.h: New file.
64952         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64953         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64954         in a different way.
64955         (timespec_cmp): New function.
64956         * lib/utimecmp.c: Include stat-time.h.
64957         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64958         members exist, not on the obsolescent ST_MTIM_NSEC.
64959         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64960
64961 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64962
64963         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64964
64965 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * MODULES.html.sh (File system functions): Add stat-time.
64968         * modules/stat-time: New file.
64969         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64970         is now done in a different way, by the stat-time module.
64971         * modules/utimecmp (Depends-on): Add stat-time.
64972
64973 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * m4/st_mtim.m4: Remove.  Superseded by...
64976         * m4/stat-time.m4: New file.
64977         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64978         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64979
64980 2005-09-15  Derek Price  <derek@ximbiot.com>
64981
64982         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64983
64984 2005-09-15  Derek Price  <derek@ximbiot.com>
64985
64986         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64987         * lib/regex_internal.c: Ditto, using this...
64988         (__GNUC_PREREQ): ...new macro.
64989         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64990         using...
64991         (__GNUC_PREREQ): ...this new macro.
64992
64993         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64994
64995 2005-09-15  Derek Price  <derek@ximbiot.com>
64996             Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64999         changes, consolidating in...
65000         * lib/regex_internal.h: ...this file.
65001
65002 2005-09-13  Jim Meyering  <jim@meyering.net>
65003
65004         * lib/canon-host.c: Filter through gnu indent and reword comments
65005         slightly.
65006         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65007
65008 2005-09-13  Derek Price  <derek@ximbiot.com>
65009
65010         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65011         failure.
65012         Reported by Jim Meyering  <jim@meyering.net>.
65013
65014 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65015
65016         * lib/base64.c: Typo.
65017         (base64_encode): Put b64str in initialized data section.
65018
65019 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         Merge glibc and coreutils changes into gnulib, plus a few
65022         extra fixes.
65023         * lib/md5.c: Use #error rather than a string.
65024         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65025         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65026         (__attribute__): Define to empty for non recent-GCC.
65027         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65028         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65029         Renamed from their non-__ counterparts, with new macros replacing
65030         them if not _LIBC.  Add __THROW attribute.
65031         (rol): Remove.
65032         (struct md5_ctx): Align buffer if using GCC.
65033         * lib/sha1.h (struct sha1_ctx): Likewise.
65034         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65035         The old name was backwards.
65036         (NOTSWAP): Remove; not used.
65037         (rol): New macro, moved here from md5.h.
65038         (sha1_process_block): Remove a FIXME that doesn't make sense.
65039
65040 2005-09-12  Derek Price  <derek@ximbiot.com>
65041
65042         Return usable errors from canon-host.
65043         * lib/canon-host.h: New file.
65044         * lib/canon-host.c (canon_host): Wrap...
65045         (canon_host_r): ...this new function, which now relies exclusively on
65046         getaddrinfo.
65047         (ch_strerror): New function.
65048         (last_cherror): New global.
65049         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65050         interface.
65051         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65052         void *.
65053         (freeaddrinfo): Free ai->ai_canonname when set.
65054
65055 2005-09-12  Derek Price  <derek@ximbiot.com>
65056
65057         Make canon-host require getaddrinfo.
65058         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65059         AC_LIBSOURCE canon-host.h.  Call...
65060         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65061         gl_GETADDRINFO.
65062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65063
65064 2005-09-12  Derek Price  <derek@ximbiot.com>
65065
65066         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65067         LGPL.
65068         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65069
65070 2005-09-12  Derek Price  <derek@ximbiot.com>
65071
65072         * lib/gai_strerror.c: Include config.h when available.  Include
65073         getaddrinfo.h before other headers to test interface.
65074         Reported by Larry Jones <lawrence.jones@ugs.com>.
65075
65076 2005-09-12  Derek Price  <derek@ximbiot.com>
65077             Paul Eggert  <eggert@cs.ucla.edu>
65078
65079         * modules/glob (Files): Add glob-libc.h.
65080
65081 2005-09-12  Derek Price  <derek@ximbiot.com>
65082             Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65085         glob_.h, glob-libc.h.
65086         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65087
65088 2005-09-12  Derek Price  <derek@ximbiot.com>
65089             Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65092         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65093         protecting things that should be done only in gnulib contexts.
65094         * lib/glob_.h: New file, containing only the glob things needed for
65095         gnulib.
65096         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65097         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65098         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65099         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65100         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65101         and to respect the namespace rules better.
65102
65103 2005-09-08  Simon Josefsson  <jas@extundo.com>
65104
65105         * modules/socklen: New file.
65106
65107 2005-09-08  Simon Josefsson  <jas@extundo.com>
65108
65109         * m4/socklen.m4: New file.
65110
65111 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * modules/utimens (Files): Add m4/utimbuf.m4, since
65114         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65115         Reported by Sergey Poznyakoff.
65116
65117 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65118
65119         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65120         definitions, since that's the preferred style in glibc.
65121         Fix a minor spacing issue, and update copyright notice to match
65122         glibc's.
65123
65124 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65127
65128 2005-09-06  Simon Josefsson  <jas@extundo.com>
65129
65130         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65131         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65132
65133 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65134
65135         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65136         warning.
65137
65138 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * config/srclist.txt: Add glibc bug 1302.
65141
65142 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         Change bitset word type from unsigned int to unsigned long int,
65145         as this has better performance on typical 64-bit hosts.
65146         Port bitset code to hosts with unusual word sizes.
65147         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65148         (build_collating_symbol):
65149         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65150         argument is a bitset.  This is merely a style issue, but it makes
65151         it clearer that an entire array is expected.
65152         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65153         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65154         Port to the case where bitset_word is not the same as unsigned int.
65155         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65156         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65157         Likewise.
65158         * lib/regexec.c (check_dst_limits_calc_pos_1,
65159         check_subexp_matching_top):
65160         (build_trtable, group_nodes_into_DFAstates):
65161         Likewise.
65162         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65163         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65164         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65165         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65166         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65167         * lib/regcomp.c (optimize_subexps, lower_subexp):
65168         Work even if bitset_word has holes in its bitwise representation.
65169         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65170         * lib/regexec.c (check_dst_limits_calc_pos_1,
65171         check_subexp_matching_top):
65172         Likewise.
65173         * lib/regex_internal.c (re_string_reconstruct):
65174         Don't assume UCHAR_MAX == 255.
65175         * lib/regex_internal.h (bitset_set_all): Likewise.
65176         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65177         All uses changed.
65178         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65179         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65180         All uses changed.
65181         (BITSET_WORD_MAX): New macro.
65182         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65183         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65184         (bitset_empty, bitset_copy):
65185         Prefer sizeof (bitset) to multiplying it out ourselves.
65186         (bitset_not_merge): Remove; unused.
65187         (bitset_contain): Return bool, not unsigned int with one bit on.
65188         All callers changed.
65189         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65190         alignment than re_node_set; do this by defining a new internal
65191         type struct dests_alloc and using it to allocate memory.
65192
65193 2005-09-05  Bruno Haible  <bruno@clisp.org>
65194
65195         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65196         links.
65197
65198 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65199
65200         * modules/size_max (Makefile.am): Add size_max.h
65201
65202 2005-09-04  Derek Price  <derek@ximbiot.com>
65203
65204         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65205
65206 2005-09-03  Simon Josefsson  <jas@extundo.com>
65207
65208         * gnulib-tool: Fix typo.
65209
65210 2005-09-03  Simon Josefsson  <jas@extundo.com>
65211
65212         * config/srclist.txt: Add glibc bug 1293.
65213
65214 2005-09-03  Derek Price  <derek@ximbiot.com>
65215
65216         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65217         From Larry Jones <lawrence.jones@ugs.com>.
65218
65219 2005-09-02  Simon Josefsson  <jas@extundo.com>
65220
65221         * modules/socklen: New file.
65222
65223 2005-09-02  Simon Josefsson  <jas@extundo.com>
65224
65225         * modules/havelib: New module.
65226
65227         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65228         Use havelib.
65229
65230 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65231
65232         Check for arithmetic overflow when calculating sizes, to prevent
65233         some buffer-overflow issues.  These patches are conservative, in the
65234         sense that when I couldn't determine whether an overflow was possible,
65235         I inserted a run-time check.
65236         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65237         macros.
65238         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65239         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65240         (re_xnrealloc, re_x2nrealloc): New inline functions.
65241         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65242         parse_bracket_exp):
65243         (build_equiv_class, build_charclass): Check for arithmetic overflow
65244         in size expression calculations.
65245         * lib/regex_internal.c (re_string_realloc_buffers):
65246         (build_wcs_upper_buffer, re_node_set_add_intersect):
65247         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65248         (re_dfa_add_node, register_state): Likewise.
65249         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65250         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65251         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65252         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65253
65254 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65257         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65258
65259 2005-09-02  Bruno Haible  <bruno@clisp.org>
65260
65261         Support for lib vs. lib64 distinction on biarch platforms.
65262         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65263         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65264         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65265
65266 2005-09-02  Bruno Haible  <bruno@clisp.org>
65267
65268         * gnulib-tool (import): In the other first-use case, provide defaults
65269         as well.
65270
65271 2005-09-02  Bruno Haible  <bruno@clisp.org>
65272
65273         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65274         patches not yet found in the latest gettext release.
65275
65276 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65279         to avoid a collision with bits/local_lim.h in glibc.
65280         All uses changed.  Problem reported by Dmitry V. Levin in
65281         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65282
65283         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65284         bugs in int versus size_t comparisons.
65285         (re_string_context_at): Fix bug where the code assumed that
65286         Idx is signed.
65287
65288         Use bool where appropriate.
65289         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65290         All callers changed.
65291         (calc_eclosure_iter): Likewise, for ROOT arg.
65292         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65293         (build_charclass_op): Likewise, for NON_MATCH arg.
65294         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65295         (re_string_construct_common): Likewise, for ICASE arg.
65296         * lib/regexec.c (re_search_2_stub, re_search_stub):
65297         Likewise, for RET_LEN arg.
65298         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65299         (set_regs): Likewise, for FL_BACKTRACK arg.
65300         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65301         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65302         (calc_eclosure_iter, parse_bracket_exp):
65303         Use bool for internal variables that are booleans.
65304         * lib/regexec.c (re_search_internal, check_matching,
65305         proceed_next_node):
65306         (set_regs, build_sifted_states, sift_states_bkref):
65307         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65308         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65309         (find_collation_sequence_value):
65310         Likewise.
65311         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65312         (re_node_set_compare):
65313         Return bool, not int. All callers changed.
65314         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65315         (build_trtable, check_node_accept): Likewise.
65316         * lib/regex_internal.h: Include stdbool.h.
65317
65318         Fix bugs uncovered when converting to bool.
65319         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65320         failure instead of charging ahead blindly.
65321         * lib/regex_internal.c (register_state): Likewise.
65322         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65323         for freeing internal storage.
65324         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65325         bitset pieces used as boolean, to avoid undefined behavior
65326         on hosts that do int overflow checking.
65327
65328 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65329
65330         * config/srclist.txt: Add glibc bugs 1285-1287.
65331
65332 2005-09-01  Jim Meyering  <jim@meyering.net>
65333
65334         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65335         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65336         Require gl_STAT_MACROS, too.
65337
65338 2005-09-01  Bruno Haible  <bruno@clisp.org>
65339
65340         * gnulib-tool (import): In the first-use case, provide defaults.
65341
65342 2005-09-01  Bruno Haible  <bruno@clisp.org>
65343
65344         * gnulib-tool (func_import): Remove the .tmp files.
65345
65346 2005-09-01  Bruno Haible  <bruno@clisp.org>
65347
65348         * gnulib-tool (func_import): Fix handling of symbolic links.
65349
65350 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65351
65352         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65353         old glibc regex code mishandles strings longer than 2**31 bytes.
65354         This patch fixes this when the regex code is used in gnulib
65355         (i.e., outside glibc).
65356
65357         This patch should not affect the use of the regex code inside
65358         glibc.  No doubt this problem also needs to be handled for glibc
65359         as well, but the result will be an incompatible change to the
65360         glibc ABI, and the old ABI will have to be supported too.  That
65361         can be the the subject for another patch.
65362
65363         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65364         governing whether the rest of this patch is active.  By default,
65365         the macro is disabled and the patch has no effect.
65366         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65367         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65368         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65369         (re_match_2, re_set_registers): Use the new types.
65370         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65371         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65372         New macros.
65373         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65374         (re_string_context_at, bin_tree_t, re_dfastate_t):
65375         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65376         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65377         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65378         (re_string_char_size_at, re_string_wchar_at):
65379         (re_string_elem_size_at):
65380         Use the new types and macros to port to 64-bit hosts.
65381         Use unsigned types for internal values, so that the code
65382         mostly works even for arrays larger than SSIZE_MAX.
65383         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65384         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65385         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65386         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65387         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65388         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65389         (calc_inveclosure, parse_dup_op, build_range_exp):
65390         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65391         (fetch_number, create_token_tree, mark_opt_subexp):
65392         Likewise.
65393         * lib/regex_internal.c (re_string_construct_common,
65394         create_ci_newstate):
65395         (create_cd_newstate, re_string_allocate, re_string_construct):
65396         (re_string_realloc_buffers, build_wcs_upper_buffer):
65397         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65398         (re_string_reconstruct, re_string_peek_byte_case):
65399         (re_string_fetch_byte_case, re_string_context_at):
65400         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65401         (re_node_set_init_copy, re_node_set_add_intersect):
65402         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65403         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65404         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65405         (re_acquire_state, re_acquire_state_context, register_state):
65406         Likewise.
65407         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65408         search_cur_bkref_entry):
65409         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65410         (re_search_internal, re_search_2_stub, re_search_stub)
65411         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65412         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65413         (update_cur_sifted_state, check_dst_limits):
65414         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65415         (check_subexp_limits, sift_states_bkref, merge_state_array):
65416         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65417         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65418         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65419         (expand_bkref_cache, check_node_accept_bytes):
65420         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65421         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65422         (acquire_init_state_context, check_halt_node_context):
65423         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65424         (sift_states_backward, clean_state_log_if_needed):
65425         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65426         (find_recover_state, transit_state_sb, transit_state_mb):
65427         (transit_state_bkref, build_trtable, match_ctx_clean):
65428         Likewise.
65429         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65430         to work around an assumption that REG_MISSING is negative.
65431
65432         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65433         (seek_collating_symbol_entry) [defined _LIBC]:
65434         (lookup_collation_sequence_value) [defined _LIBC]:
65435         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65436         Use prototypes rather than old-style function definitions.
65437         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65438         (transit_state_sb) [0]:
65439         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65440
65441         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65442         rm_eo.
65443
65444         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65445         (optimize_subexps, lower_subexp):
65446         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65447         since the signed shift might overflow.  Use 1u<<31 instead.
65448         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65449         Likewise.
65450         * lib/regexec.c (check_dst_limits_calc_pos_1,
65451         check_subexp_matching_top): Likewise.
65452
65453         * lib/regcomp.c (optimize_subexps, lower_subexp):
65454         Use CHAR_BIT rather than 8, for clarity.
65455         * lib/regexec.c (check_dst_limits_calc_pos_1):
65456         (check_subexp_matching_top): Likewise.
65457         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65458         have to worry about portability issues when shifting it left.
65459         Remove no-longer-needed test for table_size > 0.
65460         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65461         in a word, as the resulting behavior is undefined.
65462         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65463         in one case, a <= should have been an <, and in another case the
65464         whole test was missing.
65465         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65466         the standard name CHAR_BIT.
65467         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65468         this is not true on one's complement and signed-magnitude hosts.
65469
65470         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65471         next_last_offset.
65472         (struct re_dfa_t): Remove unused member states_alloc.
65473         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65474
65475 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65478         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65479         and large-file glibc and in 32-bit large-file Solaris.
65480
65481 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65484         lengths fit in regoff_t; this isn't true if regoff_t is the same
65485         width as size_t.
65486         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65487         (= START + RANGE) instead of RANGE.  This avoids overflow
65488         problems when regoff_t is the same width as size_t.
65489         All callers changed.
65490         (re_search_2_stub): Check for overflow when adding the
65491         sizes of the two strings.
65492         (re_search_stub): Check for overflow when adding START
65493         to RANGE; if it occurs, substitute the extreme value.
65494
65495 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65498
65499 2005-08-31  Jim Meyering  <jim@meyering.net>
65500
65501         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65502         a pointer-to-const.
65503         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65504         (register_state): Likewise.
65505         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65506         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65507         (group_nodes_into_DFAstates): Likewise.
65508
65509 2005-08-31  Jim Meyering  <jim@meyering.net>
65510
65511         * check-module: Add a FIXME comment.
65512
65513 2005-08-31  Eric Blake  <ebb9@byu.net>
65514
65515         * modules/unistd-safer (Files): Add unistd--.h.
65516         * modules/stdio-safer (Files): Add stdio--.h.
65517
65518 2005-08-31  Derek Price  <derek@ximbiot.com>
65519
65520         * lib/getdelim.c (getdelim): Return EOF on EOF.
65521         Reported by Larry Jones <lawrence.jones@ugs.com>.
65522
65523 2005-08-31  Bruno Haible  <bruno@clisp.org>
65524
65525         Avoid unnecessary diffs in the generated lib/Makefile.am.
65526         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65527         the generated files.
65528         (func_import): Don't set cmd.
65529
65530 2005-08-31  Bruno Haible  <bruno@clisp.org>
65531
65532         * lib/strstr.c: Include <stddef.h>, for NULL.
65533         * lib/strcasestr.c: Likewise.
65534         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65535
65536 2005-08-31  Bruno Haible  <bruno@clisp.org>
65537
65538         * gnulib-tool: New option --macro-prefix.
65539         (func_import): Use macro_prefix.
65540         (import): Handle option --macro-prefix.
65541
65542 2005-08-31  Bruno Haible  <bruno@clisp.org>
65543
65544         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65545         Also use new variables cached_lgpl, cached_libtool.
65546
65547 2005-08-31  Bruno Haible  <bruno@clisp.org>
65548
65549         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65550         always instantiating them.
65551
65552 2005-08-31  Bruno Haible  <bruno@clisp.org>
65553
65554         * gnulib-tool (func_import): Read the previous cached settings
65555         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65556         earlier added by gnulib but are now dropped. Warn when a gnulib file
65557         overwrites a non-gnulib file.
65558
65559 2005-08-31  Bruno Haible  <bruno@clisp.org>
65560
65561         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65562         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65563         projects that don't keep autogenerated files in CVS. Put into
65564         actioncmd only the specified modules, not the transitive closure.
65565
65566 2005-08-31  Bruno Haible  <bruno@clisp.org>
65567
65568         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65569         Create directories that shall be filled.
65570         (import): Don't look for gl_* macros in configure.ac. Recurse across
65571         all directories containing a gnulib-cache.m4 files, if meaningful.
65572
65573 2005-08-31  Bruno Haible  <bruno@clisp.org>
65574
65575         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65576         (import): Set seen_libtool when we see gl_LIBTOOL.
65577
65578 2005-08-31  Bruno Haible  <bruno@clisp.org>
65579
65580         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65581         declaration macro definitions from generated gnulib.m4.
65582
65583 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65584
65585         * lib/iconvme.h: Add prototype for iconv_alloc.
65586
65587 2005-08-29  Simon Josefsson  <jas@extundo.com>
65588
65589         * lib/iconvme.c: Fix errno.
65590
65591 2005-08-29  Bruno Haible  <bruno@clisp.org>
65592
65593         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65594         that it works when the directory contains spaces.
65595
65596 2005-08-29  Bruno Haible  <bruno@clisp.org>
65597
65598         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65599
65600 2005-08-29  Bruno Haible  <bruno@clisp.org>
65601
65602         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65603         Emit more advice.
65604
65605 2005-08-29  Bruno Haible  <bruno@clisp.org>
65606         and Stepan Kasal  <kasal@ucw.cz>
65607
65608         * check-module: If more parameters are given, check each of them
65609         separately; add more exceptions, as noted by Jim Meyering.
65610         (check_module): New procedure.
65611         (%exempt_header): Now contains all exceptions.
65612
65613 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65614
65615         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65616
65617 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65618
65619         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65620
65621 2005-08-28  Bruno Haible  <bruno@clisp.org>
65622
65623         * m4/gnulib-tool.m4: New file.
65624
65625 2005-08-27  Jim Meyering  <jim@meyering.net>
65626
65627         * modules/unistd-safer (Files): Add pipe-safer.c.
65628         * modules/fcntl-safer (Files): Add creat-safer.c.
65629
65630 2005-08-27  Jim Meyering  <jim@meyering.net>
65631
65632         * m4/stdlib-safer.m4: New file.  From coreutils.
65633         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65634         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65635         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65636         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65637         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65638
65639 2005-08-27  Jim Meyering  <jim@meyering.net>
65640
65641         * lib/fopen-safer.c: Merge minor changes from coreutils.
65642         * lib/dup-safer.c: Likewise.
65643         * lib/fd-safer.c: Likewise.
65644
65645         Merge from coreutils.
65646         * lib/stdio--.h: New file.
65647         * lib/stdlib--.h: New file.
65648         * lib/mkstemp-safer.c: New file.
65649
65650         GNU tar needs these.
65651         * lib/pipe-safer.c: New file.
65652         * lib/creat-safer.c: New file.
65653         * lib/fcntl--.h (creat): Define to creat_safer.
65654         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65655         * lib/unistd--.h (pipe): Define to pipe_safer.
65656         * lib/unistd-safer.h: Declare pipe_safer.
65657
65658 2005-08-26  Simon Josefsson  <jas@extundo.com>
65659
65660         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65661         Haible <bruno@clisp.org>.
65662
65663 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         * lib/regex_internal.h: Remove all references to
65666         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65667         or better.
65668         (bitset_not, bitset_merge, bitset_not_merge):
65669         (bitset_mask, re_string_allocate, re_string_construct):
65670         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65671         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65672         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65673         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65674         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65675         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65676         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65677         (re_acquire_state_context):
65678         Remove unnecessary forward decls.
65679         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65680         Put __attribute at function definition,
65681         now that the function decl has been removed.
65682         * lib/regex_internal.c (re_string_peek_byte_case):
65683         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65684         Likewise.
65685
65686 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65687
65688         * m4/regex.m4: Add AC_PREREQ(2.50).
65689         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65690
65691 2005-08-25  Simon Josefsson  <jas@extundo.com>
65692
65693         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65694         __fsetlocking.
65695
65696 2005-08-25  Simon Josefsson  <jas@extundo.com>
65697
65698         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65699         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65700         GLIBC specific code.
65701
65702 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65703
65704         Make regex safe for g++.  This fixes one real bug (an "err"
65705         that should have been "*err").  g++ problem reported by
65706         Sam Steingold.
65707         * lib/regex_internal.h (re_calloc): New macro, consistent with
65708         re_malloc etc.  All callers of calloc changed to use re_calloc.
65709         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65710         not int.  All callers changed.
65711         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65712         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65713         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65714         (find_recover_state): Change "err" to "*err"; this fixes what
65715         appears to be a real bug.
65716         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65717         versus int.
65718
65719 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * modules/regex (Depends-on): Add malloc, since the code
65722         assumes that !malloc(0) means failure.
65723
65724 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65725
65726         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65727
65728         alloca modernization/simplification for regex.
65729         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65730         needs to be at the start of the file, and can be moved into
65731         regex_internal.h and simplified.
65732         * lib/regex_internal.h: Include <alloca.h>.
65733         (__libc_use_alloca) [!defined _LIBC]: New macro.
65734         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65735         now works outside glibc.
65736
65737 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65738
65739         * config/srclist.txt: Add glibc bugs 1241, 1245.
65740
65741 2005-08-25  Jim Meyering  <jim@meyering.net>
65742
65743         * lib/open-safer.c: Include <config.h>.
65744         Otherwise, we'd lose LARGEFILE support in any file using
65745         e.g. "fcntl--.h"
65746
65747 2005-08-25  Bruno Haible  <bruno@clisp.org>
65748
65749         * m4/minmax.m4: Require autoconf 2.52.
65750         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65751         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65752         alternatives of translit over the alphabet.
65753         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65754
65755 2005-08-24  Simon Josefsson  <jas@extundo.com>
65756
65757         * tests/test-getpass.c: New file.
65758
65759 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65762         for GNU regex features.
65763
65764 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65765
65766         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65767         * lib/regex.h (regerror): Likewise.
65768
65769         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65770         requires this.  (The code never needed it.)
65771
65772         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65773         All uses of recently-renamed identifiers changed to use the new,
65774         POSIX-compliant names.  The code will build and run just fine
65775         without these changes, but it's better to eat our own dog food
65776         and use the standard-conforming names.
65777
65778         * lib/regex.h: Fix a multitude of POSIX name space violations.
65779         These changes have an effect only for programs that define
65780         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65781         do not change anything for programs compiled in the normal way.
65782         Also, there is no effect on the ABI.
65783
65784         (_REGEX_SOURCE): New macro.
65785         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65786         defined and _GNU_SOURCE is not; this fixes a name space violation.
65787
65788         Rename the following macros to obey POSIX requirements.
65789         The old names are still visible as macros if _REGEX_SOURCE is defined.
65790         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65791         RE_BACKSLASH_ESCAPE_IN_LISTS.
65792         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65793         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65794         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65795         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65796         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65797         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65798         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65799         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65800         (REG_INTERVALS): renamed from RE_INTERVALS.
65801         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65802         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65803         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65804         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65805         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65806         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65807         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65808         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65809         RE_UNMATCHED_RIGHT_PAREN_ORD.
65810         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65811         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65812         (REG_DEBUG): renamed from RE_DEBUG.
65813         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65814         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65815         unusual, since we can't clash with the POSIX REG_ICASE.
65816         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65817         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65818         (REG_NO_SUB): renamed from RE_NO_SUB.
65819         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65820         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65821         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65822         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65823         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65824         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65825         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65826         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65827         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65828         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65829         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65830         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65831         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65832         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65833         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65834         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65835         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65836         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65837         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65838         (REG_FIXED): Renamed from REGS_FIXED.
65839         (REG_NREGS): Renamed from RE_NREGS.
65840
65841         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65842         of other REG_* macros, since POSIX says the user is allowed to
65843         #undef these macros selectively.
65844
65845         (reg_errcode_t): Update comment stating what other tables need
65846         to be consistent.
65847
65848         Rename the following enum values to obey POSIX requirements.
65849         The old names are still visible as macros.
65850         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65851         is not defined, since GNU is supposed to be a superset of POSIX as
65852         much as possible, and since we want reg_errcode_t to be a signed
65853         type for implementation consistency.
65854         (_REG_NOERROR): Renamed from REG_NOERROR.
65855         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65856         (_REG_BADPAT): Renamed from REG_BADPAT.
65857         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65858         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65859         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65860         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65861         (_REG_EBRACK): Renamed from REG_EBRACK.
65862         (_REG_EPAREN): Renamed from REG_EPAREN.
65863         (_REG_EBRACE): Renamed from REG_EBRACE.
65864         (_REG_BADBR): Renamed from REG_BADBR.
65865         (_REG_ERANGE): Renamed from REG_ERANGE.
65866         (_REG_ESPACE): Renamed from REG_ESPACE.
65867         (_REG_BADRPT): Renamed from REG_BADRPT.
65868         (_REG_EEND): Renamed from REG_EEND.
65869         (_REG_ESIZE): Renamed from REG_ESIZE.
65870         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65871         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65872         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65873         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65874         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65875
65876         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65877         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65878         changed.  But support the old name if the new one is not defined
65879         and if _REGEX_SOURCE.
65880
65881         Change the following member names in struct re_pattern_buffer.
65882         The old names are still supported if !_REGEX_SOURCE.
65883         The new names are always supported, regardless of _REGEX_SOURCE.
65884         (re_buffer): Renamed from buffer.
65885         (re_allocated): Renamed from allocated.
65886         (re_used): Renamed from used.
65887         (re_syntax): Renamed from syntax.
65888         (re_fastmap): Renamed from fastmap.
65889         (re_translate): Renamed from translate.
65890         (re_can_be_null): Renamed from can_be_null.
65891         (re_regs_allocated): Renamed from regs_allocated.
65892         (re_fastmap_accurate): Renamed from fastmap_accurate.
65893         (re_no_sub): Renamed from no_sub.
65894         (re_not_bol): Renamed from not_bol.
65895         (re_not_eol): Renamed from not_eol.
65896         (re_newline_anchor): Renamed from newline_anchor.
65897
65898         Change the following member names in struct re_registers.
65899         The old names are still supported if !_REGEX_SOURCE.
65900         The new names are always supported, regardless of _REGEX_SOURCE.
65901         (rm_num_regs): Renamed from num_regs.
65902         (rm_start): Renamed from start.
65903         (rm_end): Renamed from end.
65904
65905         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65906         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65907         Prepend __ to parameter names.
65908
65909         Undo yesterday's changes.
65910
65911 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65914         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65915         lib/regex.c.
65916
65917 2005-08-24  Jim Meyering  <jim@meyering.net>
65918
65919         Sync from coreutils.
65920         * m4/fcntl-safer.m4: New file.
65921
65922         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65923         and object files for this module.
65924
65925 2005-08-24  Jim Meyering  <jim@meyering.net>
65926
65927         Sync from coreutils.
65928         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65929
65930 2005-08-24  Jim Meyering  <jim@meyering.net>
65931
65932         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65933         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65934
65935 2005-08-24  Jim Meyering  <jim@meyering.net>
65936
65937         * modules/fcntl-safer: New module.
65938         * modules/fts (Depends-on): Add fcntl-safer.
65939         * MODULES.html.sh (File descriptor based Input/Output):
65940         Add fcntl-safer.
65941
65942 2005-08-24  Bruno Haible  <bruno@clisp.org>
65943
65944         Support for unit test modules.
65945         * modules/README: Mention tests modules.
65946         * modules/TEMPLATE-TESTS: New file.
65947         * gnulib-tool: New options --extract-tests-module, --with-tests and
65948         --tests-base (unused for the moment).
65949         (testsbase, inctests): New variables.
65950         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65951         (func_verify_module): Exclude TEMPLATE-TESTS.
65952         (func_verify_nontests_module, func_verify_tests_module): New functions.
65953         (func_get_dependencies): Add implicit dependency for tests modules.
65954         (func_get_tests_module): New function.
65955         (func_modules_transitive_closure): When --with-tests was specified,
65956         include the unit tests as well, unless explicitly avoided.
65957         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65958         (func_emit_tests_Makefile_am): New function.
65959         (func_create_testdir): When --with-tests was specified, emit a
65960         tests/ directory.
65961         * MODULES.html.sh (Future developments): Update.
65962
65963 2005-08-24  Bruno Haible  <bruno@clisp.org>
65964
65965         * modules/tls-tests: New file.
65966         * tests/test-tls.c: New file, from GNU gettext.
65967
65968 2005-08-24  Bruno Haible  <bruno@clisp.org>
65969
65970         * modules/lock-tests: New file.
65971         * tests/test-lock.c: New file, from GNU gettext.
65972
65973 2005-08-24  Bruno Haible  <bruno@clisp.org>
65974
65975         * lib/lock.h: Add multiple inclusion guard.
65976         * lib/tls.h: Add multiple inclusion guard.
65977
65978 2005-08-24  Bruno Haible  <bruno@clisp.org>
65979
65980         * gnulib-tool: Add support for the --aux-dir option to
65981         --create-testdir, --create-megatestdir, --test, --megatest.
65982         (func_create_testdir, func_create_megatestdir): Optionally emit a
65983         AC_CONFIG_AUX_DIR directive.
65984         (create-testdir, create-megatestdir, test, megatest): Provide a
65985         default value for $auxdir.
65986
65987 2005-08-24  Bruno Haible  <bruno@clisp.org>
65988
65989         * gnulib-tool (import): Use compound statement instead of subshell
65990         where possible.
65991
65992 2005-08-24  Bruno Haible  <bruno@clisp.org>
65993
65994         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65995
65996 2005-08-24  Bruno Haible  <bruno@clisp.org>
65997
65998         * gnulib-tool (func_version): Update.
65999
66000 2005-08-24  Bruno Haible  <bruno@clisp.org>
66001
66002         * gnulib-tool (func_import, func_create_testdir,
66003         func_create_megatestdir): Quote all autoconf macro arguments.
66004
66005 2005-08-24  Bruno Haible  <bruno@clisp.org>
66006
66007         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66008         option --force, because --force causes the aclocal.m4 of each
66009         subdirectory to be newer than the corresponding config.h.in.
66010
66011 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66014         All contents moved to gl_REGEX.
66015         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66016         assume that it does.
66017
66018 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * lib/regex.h (REG_NOSYS)
66021         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66022         Define, since POSIX requires it as of 2001.
66023         (_REG_ENOSYS)
66024         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66025         New private symbol, used to keep the enum signed in all cases.
66026         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66027         Youngman in
66028         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66029
66030         * lib/regex_internal.c (re_string_skip_chars, register_state):
66031         (calc_state_hash):
66032         Remove forward decls; no longer needed now that we use prototypes.
66033         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66034         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66035         (clean_state_log_if_needed): Likewise.
66036
66037 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66038
66039         * config/srclist.txt: Add glibc bugs 1231-1233.
66040
66041 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         Fix problems reported by Sam Steingold in
66044         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66045         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66046         assumed that reg_errcode_t is a signed type, which is not
66047         necessarily true if _XOPEN_SOURCE is not defined.
66048         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66049         since some compilers warn about it otherwise.
66050
66051 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66052
66053         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66054         (init_word_char, create_initial_state, duplicate_node_closure):
66055         (fetch_token, peek_token_bracket, build_range_exp):
66056         (build_collating_symbol): Remove forward decls; no longer needed
66057         now that we use prototypes.
66058
66059         * lib/regcomp.c:
66060         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66061         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66062         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66063         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66064         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66065         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66066         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66067         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66068         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66069         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66070         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66071         (build_charclass, build_charclass_op, fetch_number, create_tree):
66072         (create_token_tree, mark_opt_subexp, duplicate_tree):
66073         Use prototypes rather than old-style definitions.
66074
66075         * lib/regex_internal.c:
66076         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66077         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66078         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66079         (re_string_reconstruct, re_string_peek_byte_case):
66080         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66081         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66082         (re_node_set_init_copy, re_node_set_add_intersect):
66083         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66084         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66085         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66086         (re_acquire_state, re_acquire_state_context, register_state):
66087         (create_ci_newstate, create_cd_newstate, free_state):
66088         Likewise.
66089         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66090         re_search_2):
66091         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66092         (re_search_internal, prune_impossible_nodes):
66093         (acquire_init_state_context, check_matching, static):
66094         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66095         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66096         (update_regs, sift_states_backward, build_sifted_states):
66097         (clean_state_log_if_needed, merge_state_array):
66098         (update_cur_sifted_state, add_epsilon_src_nodes):
66099         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66100         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66101         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66102         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66103         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66104         (check_arrival, check_arrival_add_next_nodes):
66105         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66106         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66107         (check_node_accept_bytes, check_node_accept, extend_buffers):
66108         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66109         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66110         (sift_ctx_init):
66111         Likewise.
66112
66113         * lib/regex_internal.h:
66114         (re_string_allocate, re_string_construct, re_string_reconstruct):
66115         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66116         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66117         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66118         (re_string_context_at, re_string_peek_byte_case):
66119         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66120         is defined, since we now use prototypes always.
66121
66122         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66123         C89 or better.  All uses removed.
66124
66125 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66126
66127         * config/srclist.txt: Add glibc bugs 1220-1227.
66128
66129 2005-08-20  Jim Meyering  <jim@meyering.net>
66130
66131         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66132         of unused local, dfa.
66133
66134 2005-08-20  Bruno Haible  <bruno@clisp.org>
66135
66136         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66137
66138 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66141         (re_node_set_insert_last, re_dfa_add_node):
66142         Rename local variables to avoid GCC shadowing warnings.
66143
66144 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66145
66146         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66147         [defined lint]: Suppress bogus uninitialized-variable warnings.
66148
66149         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66150         and let the caller return REG_ESPACE if out of space.  This
66151         removes an uninitialied-variable warning with GCC 4.0.1, and also
66152         avoids taking the address of a local variable.  All callers
66153         changed.
66154
66155 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66158         $LIBCSRC/posix/regexec.c.
66159         Add glibc bug 1217 for regcomp.c.
66160
66161 2005-08-19  Jim Meyering  <jim@meyering.net>
66162
66163         * lib/regexec.c (proceed_next_node): Redo local variables to
66164         avoid GCC shadowing warnings.
66165
66166 2005-08-18  Bruno Haible  <bruno@clisp.org>
66167
66168         * lib/strstr.c (strstr): Fix return value in multibyte case.
66169         * lib/strcasestr.c (strcasestr): Likewise.
66170
66171 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66174
66175 2005-08-17  Jim Meyering  <jim@meyering.net>
66176
66177         Make the %s format (seconds since the epoch) work for a negative
66178         number and when used with a zero-padded field width, e.g. %015s.
66179
66180         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66181         label so that it precedes the code to set `digits'.  Otherwise,
66182         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66183         print `00-22'.  Now, it prints `-0022', as it should.
66184
66185 2005-08-17  Bruno Haible  <bruno@clisp.org>
66186
66187         * modules/strstr (Files): Add m4/mbrtowc.m4.
66188         (Depends-on): Add mbuiter.
66189
66190 2005-08-17  Bruno Haible  <bruno@clisp.org>
66191
66192         * modules/strcasestr: New file.
66193         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66194         strcasestr.
66195
66196 2005-08-17  Bruno Haible  <bruno@clisp.org>
66197
66198         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66199
66200 2005-08-17  Bruno Haible  <bruno@clisp.org>
66201
66202         * modules/mbuiter: New file.
66203         * MODULES.html.sh (Extended multibyte and wide character utilities):
66204         Add mbuiter.
66205
66206 2005-08-17  Bruno Haible  <bruno@clisp.org>
66207
66208         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66209         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66210
66211 2005-08-17  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/strcasestr.m4: New file.
66214
66215 2005-08-17  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66218         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66219
66220 2005-08-17  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/strcasestr.h: New file.
66223         * lib/strcasestr.c: New file.
66224
66225 2005-08-17  Bruno Haible  <bruno@clisp.org>
66226
66227         * lib/strcasecmp.c: Use mbuiter.h.
66228
66229 2005-08-17  Bruno Haible  <bruno@clisp.org>
66230
66231         * lib/mbuiter.h: New file.
66232
66233 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66234
66235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66236         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66237         and gl_GETOPT are both invoked via different paths (as happens
66238         with GNU tar CVS because it uses both argp and getopt), the former
66239         wins.
66240
66241 2005-08-16  Bruno Haible  <bruno@clisp.org>
66242
66243         * modules/tls: New file.
66244         * MODULES.html.sh (Multithreading): Add tls.
66245
66246 2005-08-16  Bruno Haible  <bruno@clisp.org>
66247
66248         * modules/strnlen1: New file.
66249         * MODULES.html.sh (String handling): Add strnlen1.
66250
66251 2005-08-16  Bruno Haible  <bruno@clisp.org>
66252
66253         * modules/strcase (Files): Add m4/mbrtowc.m4.
66254         (Depends-on): Add strnlen1, mbchar.
66255
66256 2005-08-16  Bruno Haible  <bruno@clisp.org>
66257
66258         * modules/mbiter: New file.
66259         * MODULES.html.sh (Extended multibyte and wide character utilities):
66260         Add mbiter.
66261
66262 2005-08-16  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/mbfile: New file.
66265         * MODULES.html.sh (Extended multibyte and wide character utilities):
66266         Add mbfile.
66267
66268 2005-08-16  Bruno Haible  <bruno@clisp.org>
66269
66270         * modules/mbchar: New file.
66271         * MODULES.html.sh (Extended multibyte and wide character utilities):
66272         New section.
66273
66274 2005-08-16  Bruno Haible  <bruno@clisp.org>
66275
66276         * m4/tls.m4: New file, from GNU gettext.
66277
66278 2005-08-16  Bruno Haible  <bruno@clisp.org>
66279
66280         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66281         always.
66282         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66283
66284 2005-08-16  Bruno Haible  <bruno@clisp.org>
66285
66286         * m4/mbiter.m4: New file.
66287
66288 2005-08-16  Bruno Haible  <bruno@clisp.org>
66289
66290         * m4/mbfile.m4: New file.
66291
66292 2005-08-16  Bruno Haible  <bruno@clisp.org>
66293
66294         * m4/mbchar.m4: New file.
66295
66296 2005-08-16  Bruno Haible  <bruno@clisp.org>
66297
66298         * lib/tls.h: New file, from GNU gettext.
66299         * lib/tls.c: New file, from GNU gettext.
66300
66301 2005-08-16  Bruno Haible  <bruno@clisp.org>
66302
66303         * lib/strnlen1.h: New file.
66304         * lib/strnlen1.c: New file.
66305
66306 2005-08-16  Bruno Haible  <bruno@clisp.org>
66307
66308         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66309         (mbi_init): Update.
66310         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66311         NUL byte, not after it.
66312
66313 2005-08-16  Bruno Haible  <bruno@clisp.org>
66314
66315         * lib/strcase.h (strcasecmp): Add note in comments.
66316         * lib/strncasecmp.c: Use code from strcasecmp.c.
66317         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66318         (strcasecmp): Work correctly in multibyte locales.
66319
66320 2005-08-16  Bruno Haible  <bruno@clisp.org>
66321
66322         * lib/mbiter.h: New file.
66323
66324 2005-08-16  Bruno Haible  <bruno@clisp.org>
66325
66326         * lib/mbfile.h: New file.
66327
66328 2005-08-16  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/mbchar.h: New file.
66331         * lib/mbchar.c: New file.
66332
66333 2005-08-16  Bruno Haible  <bruno@clisp.org>
66334
66335         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66336         the valid ones. Makes the comparison operations transitive:
66337         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66338         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66339
66340 2005-08-15  Simon Josefsson  <jas@extundo.com>
66341
66342         * modules/ssize_t (License): Change to 'unlimited'.
66343
66344         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66345
66346 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66347
66348         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66349         Add comments for each pending glibc patch.
66350
66351 2005-08-15  Bruno Haible  <bruno@clisp.org>
66352
66353         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66354         __cplusplus is defined.
66355
66356 2005-08-14  Jim Meyering  <jim@meyering.net>
66357
66358         Sync from coreutils.
66359
66360         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66361         Use the hash-table-based cycle-detection code not just when
66362         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66363         Reported by James Youngman in
66364         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66365         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66366         FTS_TIGHT_CYCLE_CHECK.
66367         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66368         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66369         once again.
66370         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66371         * lib/fts.c (fd_safer): Remove decl.
66372         Include fcntl--.h rather than unistd-safer.h
66373         (fts_safe_changedir): Don't call fd_safer; no longer needed
66374         now that we include fcntl--.h.
66375
66376 2005-08-12  Simon Josefsson  <jas@extundo.com>
66377
66378         * modules/getndelim2: Use ssize_t module.
66379         * modules/getnline: Likewise.
66380         * modules/safe-read: Likewise.
66381         * modules/xreadlink: Likewise.
66382
66383         * modules/ssize_t: New file.
66384
66385 2005-08-12  Simon Josefsson  <jas@extundo.com>
66386
66387         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66388
66389 2005-08-12  Simon Josefsson  <jas@extundo.com>
66390
66391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66392         ssize_t.
66393
66394 2005-08-12  Simon Josefsson  <jas@extundo.com>
66395
66396         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66397         readline, getdelim and check_version.
66398         (Support for systems lacking ISO C 99: Sizes of integer types):
66399         Add size_max.
66400
66401 2005-08-12  Bruno Haible  <bruno@clisp.org>
66402
66403         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66404
66405 2005-08-11  Simon Josefsson  <jas@extundo.com>
66406
66407         * modules/readline: New file.
66408
66409         * modules/strnlen (Files): Add strnlen.h.
66410
66411 2005-08-11  Simon Josefsson  <jas@extundo.com>
66412
66413         * m4/readline.m4: New file.
66414
66415 2005-08-11  Simon Josefsson  <jas@extundo.com>
66416
66417         * lib/readline.h, readline.c: New file.
66418
66419 2005-08-11  Simon Josefsson  <jas@extundo.com>
66420
66421         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66422         gl_AVOID.
66423
66424 2005-08-11  Bruno Haible  <bruno@clisp.org>
66425
66426         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66427
66428 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66429
66430         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66431
66432 2005-08-10  Simon Josefsson  <jas@extundo.com>
66433
66434         * tests/test-iconvme.c: New file.
66435
66436 2005-08-10  Simon Josefsson  <jas@extundo.com>
66437
66438         * m4/strnlen.m4: New file.
66439
66440         * m4/strndup.m4: Don't check for strnlen declaration, done in
66441         strnlen.m4.
66442
66443 2005-08-10  Simon Josefsson  <jas@extundo.com>
66444
66445         * lib/strndup.c: Use strnlen.h.
66446
66447         * lib/strnlen.h: New file.
66448
66449 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66450
66451         * README: Typos.
66452
66453 2005-08-02  Simon Josefsson  <jas@extundo.com>
66454
66455         * modules/readline: New file.
66456
66457 2005-08-02  Simon Josefsson  <jas@extundo.com>
66458
66459         * modules/getdelim: New file.
66460
66461         * modules/getline: Rewrite, don't use getndelim2.
66462
66463 2005-08-02  Simon Josefsson  <jas@extundo.com>
66464
66465         * m4/getline.m4: Separate out getdelim stuff into separate module.
66466
66467         * m4/getdelim.m4: New file.
66468
66469 2005-08-02  Simon Josefsson  <jas@extundo.com>
66470
66471         * lib/getline.h, getline.c: Rewrite.
66472
66473         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66474
66475 2005-07-31  Bruno Haible  <bruno@clisp.org>
66476
66477         * lib/lock.h (gl_lock_initializer): New macro.
66478         (gl_lock_define_initialized): Use it.
66479         (gl_rwlock_initializer): New macro.
66480         (gl_rwlock_define_initialized): Use it.
66481         (gl_recursive_lock_initializer): New macro.
66482         (gl_recursive_lock_define_initialized): Use it.
66483
66484 2005-07-30  Karl Berry  <karl@gnu.org>
66485
66486         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66487         Report from Ben Pfaff, regarding getopt.
66488
66489 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66490
66491         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66492         normal way.
66493         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66494         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66495         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66496         (gl_GETOPT): Use the new macros.  Most of the implementation
66497         is moved to the new macros.  This is for programs like Emacs
66498         that don't want all the functionality of gl_GETOPT.
66499
66500 2005-07-26  Bruno Haible  <bruno@clisp.org>
66501
66502         * m4/lock.m4: Update from GNU gettext.
66503
66504 2005-07-26  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/lock.h: Update from GNU gettext.
66507         * lib/lock.c: Update from GNU gettext.
66508
66509 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66510
66511         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66512         obsolescent AC_TRY_RUN.  Include the default includes files, for
66513         'exit'.
66514
66515 2005-07-24  Bruno Haible  <bruno@clisp.org>
66516
66517         * modules/visibility: New file.
66518         * MODULES.html.sh (Misc): Add visibility.
66519
66520 2005-07-24  Bruno Haible  <bruno@clisp.org>
66521
66522         * m4/visibility.m4: New file.
66523
66524 2005-07-24  Bruno Haible  <bruno@clisp.org>
66525
66526         * doc/visibility.texi: New file.
66527
66528 2005-07-22  Bruno Haible  <bruno@clisp.org>
66529
66530         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66531         $(ALLOCA_H), redundant through BUILT_SOURCES.
66532         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66533         redundant through BUILT_SOURCES.
66534         * modules/byteswap (Makefile.am): Remove explicit dependency on
66535         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66536         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66537         $(FNMATCH_H), redundant through BUILT_SOURCES.
66538         * modules/getopt (Makefile.am): Remove explicit dependency on
66539         $(GETOPT_H), redundant through BUILT_SOURCES.
66540         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66541         redundant through BUILT_SOURCES.
66542         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66543         redundant through BUILT_SOURCES.
66544         * modules/stdbool (Makefile.am): Remove explicit dependency on
66545         $(STDBOOL_H), redundant through BUILT_SOURCES.
66546         * modules/stdint (Makefile.am): Remove explicit dependency on
66547         $(STDINT_H), redundant through BUILT_SOURCES.
66548         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66549         Remove explicit dependency on $(SYSEXITS_H).
66550         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66551
66552 2005-07-18  Simon Josefsson  <jas@extundo.com>
66553
66554         * lib/check-version.c (check_version): Accept identical versions too.
66555
66556 2005-07-18  Bruno Haible  <bruno@clisp.org>
66557
66558         * modules/lock: New file.
66559         * MODULES.html.sh (Multithreading): New section.
66560
66561 2005-07-18  Bruno Haible  <bruno@clisp.org>
66562
66563         * m4/lock.m4: New file, from GNU gettext.
66564
66565 2005-07-18  Bruno Haible  <bruno@clisp.org>
66566
66567         * lib/lock.h: New file, from GNU gettext.
66568         * lib/lock.c: New file, from GNU gettext.
66569
66570 2005-07-18  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/lock.h (gl_once_t): New type.
66573         (gl_once_define, gl_once): New macros.
66574         * lib/lock.c (fresh_once): New variable.
66575         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66576         functions.
66577
66578 2005-07-16  Simon Josefsson  <jas@extundo.com>
66579
66580         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66581         workaround, suggested by Bruno.
66582
66583 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * modules/xalloc (Depends-on): Add xalloc-die.
66586         * modules/xvasprintf (Depends-on): Add xalloc-die.
66587
66588 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66591         with a minor change.
66592
66593 2005-07-15  Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66596         When using lib/poll.c, define poll as rpl_poll.
66597
66598 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         * modules/argp (Depends-on): Remove unlocked-io.
66601
66602 2005-07-14  Derek Price  <derek@ximbiot.com>
66603
66604         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66605         for glob symlink bug.
66606
66607 2005-07-14  Bruno Haible  <bruno@clisp.org>
66608
66609         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66610         Instead, test for *_unlocked function declarations directly.
66611
66612 2005-07-11  Simon Josefsson  <jas@extundo.com>
66613
66614         * modules/size_max: New file.
66615
66616         * modules/xsize: Depend on size_max module for size_max.m4.
66617
66618 2005-07-11  Simon Josefsson  <jas@extundo.com>
66619
66620         * lib/size_max.h: New file.
66621
66622 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66625         copyright symbol and the year.
66626         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66627         (version_etc_va): Use parameterized copyright notice.
66628         Reword to conform to the current GNU coding standards.
66629
66630 2005-07-11  Karl Berry  <karl@gnu.org>
66631
66632         * doc/gnulib.texi (Quoting): new node.
66633         (Initial import): more info, from Patrice.
66634
66635 2005-07-11  Bruno Haible  <bruno@clisp.org>
66636
66637         * gnulib-tool (func_usage): Document option --avoid.
66638         (Command line options): Handle --avoid.
66639         (func_acceptable): New function.
66640         (func_modules_transitive_closure): Use it.
66641
66642 2005-07-11  Bruno Haible  <bruno@clisp.org>
66643
66644         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66645         Reported by Jim Meyering.
66646
66647 2005-07-10  Bruno Haible  <bruno@clisp.org>
66648
66649         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66650         Needed when size_t is smaller than 'unsigned int'.
66651         Reported by Paul Eggert.
66652
66653 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66654
66655         * modules/argp (Depends-on): Add unlocked-io
66656
66657 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66658
66659         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66660         block of defines.
66661
66662 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66663
66664         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66665         fix now.
66666
66667 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66668         and Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66671         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66672
66673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66674
66675         * modules/regex (Files): Add lib/regex_internal.c,
66676         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66677         (Depends-on): Add extensions.
66678         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66679
66680 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66683         pathconf.
66684         * m4/same.m4 (gl_SAME): Likewise.
66685         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66686
66687         * m4/regex.m4: Adjust to new libc regex implementation.
66688         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66689         all the .c and .h parts of (the new) regex.
66690         Quote the m4 stuff better.
66691         Check for RE_ICASE bug of old gnulib.
66692         Check for REG_STARTEND of recent libc.
66693         Rename local variables from jm_* to gl_*.
66694         Quote operand of "test -f".
66695         Say "recent enough" version of libc, not "version 2".
66696         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66697         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66698         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66699         Remove check for btowc, isascii.
66700         Require AM_LANGINFO_CODESET.
66701
66702 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/regex.c, regex.h: Sync from libc.
66705         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66706         * lib/regexec.c:
66707         New files, synced from libc, except that regex_internal.h
66708         currently has a small porting fix.
66709
66710 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66711
66712         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66713         regex_internal.c, regexec.c.
66714         Add regex_internal.h too, but as a comment, since the libc version
66715         is currently broken in gnulib mode.
66716
66717 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         Support programs like Emacs that use gnulib but not gettext.
66720         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66721         * modules/gettext-h: New file.
66722         * modules/gettext (Files): Remove lib/gettext.h.
66723         (Depends-on): Add gettext-h.
66724         (Makefile.am): Remove lib_SOURCES.
66725         * modules/argmatch, modules/c-stack, modules/closeout:
66726         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66727         * modules/execute, modules/file-type, modules/getaddrinfo:
66728         * modules/getopt, modules/human, modules/javacomp:
66729         * modules/javaexec, modules/mkdir-p, modules/obstack:
66730         * modules/openat, modules/pagealign_alloc, modules/pipe:
66731         * modules/quotearg, modules/regex, modules/rpmatch:
66732         * modules/unicodeio, modules/userspec, modules/version-etc:
66733         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66734         * modules/xsetenv:
66735         Depend on gettext-h, not gettext.
66736
66737 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         * gnulib-tool (func_import): Add support for 'public domain' license.
66740         * modules/alloca, modules/atexit, modules/memmove:
66741         Now public domain, not GPL.
66742         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66743         * modules/realloc, modules/strerror, modules/strtod:
66744         Now LGPL, not GPL.
66745
66746 2005-07-05  Bruno Haible  <bruno@clisp.org>
66747
66748         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66749         autoconf CVS. Needed for mingw.
66750
66751 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         Remove the dependency of the strftime module on the tzset module.
66754         * modules/strftime (Depends-on): Remove dependency on tzset.
66755
66756 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         Remove the dependency of the strftime module on the tzset module.
66759         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66760         gl_FUNC_TZSET_CLOBBER.
66761
66762 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66763
66764         Remove the dependency of the strftime module on the tzset module.
66765         * lib/strftime.c (my_strftime)
66766         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66767         Copy the input structure, to work around some of the bug with
66768         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66769         Solaris releases, you should also use the tzset module, but we won't
66770         require it as a dependency any more since we don't want LGPLed code
66771         to depend on GPLed code.
66772
66773 2005-07-02  Jim Meyering  <jim@meyering.net>
66774
66775         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66776         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66777         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66778         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66779
66780 2005-07-02  Jim Meyering  <jim@meyering.net>
66781
66782         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66783
66784 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66787         declares only 'struct timespec;' (!).
66788
66789 2005-07-01  Jim Meyering  <jim@meyering.net>
66790
66791         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66792         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66793         * lib/save-cwd.c, tempname.c:
66794         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66795         and don't include <sys/file.h>).
66796
66797 2005-06-29  Jim Meyering  <jim@meyering.net>
66798
66799         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66800         type name.  Use the variable name instead.
66801         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66802         Likewise.
66803
66804 2005-06-28  Simon Josefsson  <jas@extundo.com>
66805
66806         * modules/check-version (Files): Add check-version.m4.
66807
66808 2005-06-28  Simon Josefsson  <jas@extundo.com>
66809
66810         * m4/check-version.m4: New file, suggested by Jim Meyering
66811         <jim@meyering.net>.
66812
66813 2005-06-28  Simon Josefsson  <jas@extundo.com>
66814
66815         * lib/check-version.h, lib/check-version.c: New files.
66816
66817 2005-06-28  Simon Josefsson  <jas@extundo.com>
66818
66819         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66820         collision with global variable.  Better indentation.  Don't
66821         increment buffer pointer beyond buffer end.  Based on comments
66822         from Paul Eggert <eggert@cs.ucla.edu>.
66823
66824         * lib/base64.h: Indent.
66825
66826 2005-06-28  Simon Josefsson  <jas@extundo.com>
66827
66828         * doc/gnulib.texi (Library version handling): New section.
66829
66830 2005-06-28  Jim Meyering  <jim@meyering.net>
66831
66832         * check-module (find_included_lib_files): Hard-code another
66833         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66834         but modules/fts-lgpl (correctly) does not list those files.
66835
66836         * modules/canonicalize (Files): Add lib/pathmax.h.
66837
66838 2005-06-25  Simon Josefsson  <jas@extundo.com>
66839
66840         * modules/check-version: New file.
66841
66842 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66845         initializer of struct addrinfo, as an indication that we don't
66846         care how many members the structure has.
66847
66848 2005-06-24  Derek Price  <derek@ximbiot.com>
66849         and Bruno Haible  <bruno@clisp.org>
66850
66851         Remove stat module & update lstat.
66852         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66853         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66854         * m4/stat.m4: Remove this file.
66855
66856 2005-06-24  Derek Price  <derek@ximbiot.com>
66857         and Bruno Haible  <bruno@clisp.org>
66858
66859         Remove stat module & update lstat.
66860         * lib/stat.c: Remove this file...
66861         (slash_aware_lstat): ...moving this content and its support...
66862         * lib/lstat.c (rpl_lstat): ...into here.
66863         * lib/lstat.h: New file.
66864
66865 2005-06-24  Derek Price  <derek@ximbiot.com>
66866         and Bruno Haible  <bruno@clisp.org>
66867
66868         Remove stat module & update lstat.
66869         * config/srclist.txt (libc sources): Remove stat.
66870
66871 2005-06-24  Derek Price  <derek@ximbiot.com>
66872         and Bruno Haible  <bruno@clisp.org>
66873
66874         Remove stat module & update lstat.
66875         * MODULES.html.sh (stat): Remove.
66876         * MODULES.html: Regenerated.
66877         * modules/lstat (Description): Correct function name.
66878         (Files): Add "lstat.h".
66879         (Depends-on): Remove stat, add xalloc, stat-macros.
66880         * modules/stat: Remove this file.
66881         (Include): Add "lstat.h", remove <sys/stat.h>.
66882
66883 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66886         (ranged_convert): Don't save conversion in a temporary struct.
66887         This causes a warning with GCC 4.0.0, and anyway in the typical
66888         case it's not worth the extra 100 bytes or so of code.
66889         (ranged_convert, __mktime_internal): When calling a function via a
66890         pointer P, use P () rather than (*P) (), as we now assume C89 or
66891         better.
66892
66893 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66896         "who -r" failed to give output.  Problem reported by Tim Waugh.
66897
66898         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66899         (xcalloc): Use it to avoid needless tests.
66900         Problem reported by Jim Meyering.
66901
66902 2005-06-20  Derek Price  <derek@ximbiot.com>
66903
66904         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66905         unnecessary for Autoconfs > 2.59c.
66906
66907 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66908
66909         * lib/argp.h (__option_is_short): Check upper limit of
66910         __key. Isprint() requires its argument to have the value
66911         of an unsigned char or EOF.
66912
66913 2005-06-16  Jim Meyering  <jim@meyering.net>
66914
66915         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66916         when either N or S is zero.
66917
66918 2005-06-16  Derek Price  <derek@ximbiot.com>
66919
66920         * m4/bison.m4: Declare YACC & YFLAGS precious.
66921
66922 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66923
66924         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66925         multibyte string or pattern, fall back on unibyte matching.
66926         Problem reported by James Youngman.
66927
66928 2005-06-08  Bruno Haible  <bruno@clisp.org>
66929
66930         * modules/csharpcomp: New file.
66931         * MODULES.html.sh (C#): Add csharpcomp.
66932
66933 2005-06-08  Bruno Haible  <bruno@clisp.org>
66934
66935         * m4/csharpcomp.m4: New file, from GNU gettext.
66936
66937 2005-06-08  Bruno Haible  <bruno@clisp.org>
66938
66939         * lib/csharpcomp.h: New file, from GNU gettext.
66940         * lib/csharpcomp.c: New file, from GNU gettext.
66941         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66942
66943 2005-06-08  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66946         warning on mingw.
66947
66948 2005-06-07  Derek Price  <derek@ximbiot.com>
66949
66950         Sync from CVS.
66951         * lib/glob_.h: Indent nested #ifdef.
66952
66953 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         Sync from coreutils.
66956         Use "file name" when talking about file names, instead of "filename"
66957         or "path", as per the GNU coding standards.
66958         * lib/mkdir-p.c: Renamed from makepath.c.
66959         (make_dir_parents): Renamed from make_path.  All callers changed.
66960         * lib/mkdir-p.h: Likewise.  All includers changed.
66961         * lib/filenamecat.c: Renamed from path-concat.c.
66962         (file_name_concat): Renamed from path_concat.  All callers changed.
66963         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66964         * lib/filenamecat.h: Likewise.  All includers changed.
66965         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66966         in comments or local variable names.
66967         * lib/basename.c: Likewise.
66968         * lib/canonicalize.c, canonicalize.h: Likewise.
66969         * lib/dirname.c, dirname.h: Likewise.
66970         * lib/euidaccess.c: Likewise.
66971         * lib/exclude.c: Likewise
66972         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66973         * lib/fsusage.c, fsuage.h: Likewise.
66974         * lib/fts.c, fts_.h: Likewise.
66975         * lib/getcwd.c: Likewise.
66976         * lib/getloadavg.c: Likewise.
66977         * lib/mkstemp.c: Likewise.
66978         * lib/mountlist.c, mountlist.h: Likewise.
66979         * lib/openat.c, openat.h: Likewise.
66980         * lib/readlink-stub.c: Likewise.
66981         * lib/readutmp.c, readutmp.h: Likewise.
66982         * lib/rename.c: Likewise.
66983         * lib/rmdir.c: Likewise.
66984         * lib/same.c: Likewise.
66985         * lib/savedir.c: Likewise.
66986         * lib/stripslash.c: Likewise.
66987         * lib/tempname.c: Likewise.
66988         * lib/xreadlink.c: Likewise.
66989         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66990         All uses changed.
66991         * lib/exclude.h: Likewise.
66992
66993         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66994         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66995         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66996         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66997         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66998         files have been getting away with it for years (MORE/BSD 4.3
66999         is extinct now).
67000         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67001         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67002
67003         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67004         Define to 256, not 255, as per modern POSIX.
67005
67006 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         Sync from coreutils.
67009         Use "file name" when talking about file names, instead of "filename"
67010         or "path", as per the GNU coding standards.
67011         * MODULES.html.sh: mkdir-p renamed from makepath.
67012         filenamecat renamed from path-concat.
67013         * modules/filenamecat: Renamed from modules/path-concat.
67014         (Files): filenamecat.h and filenamecat.c renamed from
67015         path-concat.h and path-concat.c.
67016         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67017         (Include): filenamecat.h, not path-concat.h.
67018         * modules/mkdir-p: Renamed from modules/makepath.
67019         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67020         makepath.c.
67021         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67022         (Include): mkdir-p.h, not makepath.h.
67023
67024 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         Sync from coreutils.
67027         * m4/mkdir-p.m4: Renamed from makepath.m4.
67028         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67029         Rename files from makepath.c to mkdir-p.c, and from
67030         makepath.h to mkdir-p.h.
67031         * m4/filenamecat.m4: Renamed from path-concat.m4.
67032         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67033         Rename files from path-concat.c to filenamecat.c,
67034         and from path-concat.h to filenamecat.h.
67035         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67036         "file name" in local variables or comments.
67037         * m4/rename.m4: Likewise.
67038
67039 2005-06-01  Bruno Haible  <bruno@clisp.org>
67040
67041         * modules/csharpexec: New file.
67042         * MODULES.html.sh (C#): New section.
67043
67044 2005-06-01  Bruno Haible  <bruno@clisp.org>
67045
67046         * m4/csharp.m4: New file, from GNU gettext.
67047         * m4/csharpexec.m4: New file, from GNU gettext.
67048
67049 2005-06-01  Bruno Haible  <bruno@clisp.org>
67050
67051         * lib/csharpexec.h: New file, from GNU gettext.
67052         * lib/csharpexec.c: New file, from GNU gettext.
67053         * lib/csharpexec.sh.in: New file, from GNU gettext.
67054
67055 2005-05-31  Derek Price  <derek@ximbiot.com>
67056             Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         Sync from cvs.
67059         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67060
67061 2005-05-31  Derek Price  <derek@ximbiot.com>
67062             Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         Sync from cvs.
67065         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67066
67067 2005-05-29  Derek Price  <derek@ximbiot.com>
67068
67069         * config/srclist.txt (glob_.h, glob.c): Add these files.
67070
67071 2005-05-29  Derek Price  <derek@ximbiot.com>
67072
67073         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67074         * modules/glob: New file.
67075         * modules/getlogin_r: Add link to POSIX spec in description.
67076
67077 2005-05-29  Derek Price  <derek@ximbiot.com>
67078             Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         * m4/glob.m4: New file.
67081
67082 2005-05-29  Derek Price  <derek@ximbiot.com>
67083             Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * lib/glob_.h, lib/glob.c: New files.
67086
67087 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67088
67089         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67090         * modules/fts-lgpl (Depends-on): Remove gettext.
67091
67092 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67093
67094         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67095         and don't require gt_INTTYPES_PRI.
67096
67097 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67098
67099         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67100
67101         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67102         the configuration hassle isn't worth it.
67103         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67104         (LONGEST_MODIFIER, PRIuMAX): Remove.
67105
67106 2005-05-27  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67109
67110 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67111
67112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67113         _POSIX_PTHREAD_SEMANTICS for Solaris.
67114
67115 2005-05-25  Derek Price  <derek@ximbiot.com>
67116
67117         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67118
67119 2005-05-25  Derek Price  <derek@ximbiot.com>
67120             Paul Eggert  <eggert@cs.ucla.edu>
67121
67122         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67123         * lib/getlogin_r.c, getlogin_r.h: New files.
67124
67125 2005-05-25  Bruno Haible  <bruno@clisp.org>
67126             Derek Price  <derek@ximbiot.com>
67127
67128         * lib/getlogin_r.h: Simplify API documentation.
67129
67130 2005-05-23  Derek Price  <derek@ximbiot.com>
67131
67132         * modules/minmax (Files): Add m4/minmax.m4.
67133         (configure.ac): Add gl_MINMAX.
67134
67135 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67136
67137         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67138         so that unistd-safer.h (GPL'ed code) need not be included.
67139
67140 2005-05-22  Bruno Haible  <bruno@clisp.org>
67141
67142         * m4/minmax.m4: New file.
67143         Based on a patch by Derek Price <derek@ximbiot.com>.
67144
67145 2005-05-22  Bruno Haible  <bruno@clisp.org>
67146
67147         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67148         (INT64_MIN): Fix definition.
67149         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67150
67151         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67152         NEED_SIGNED_INT_TYPES.
67153
67154         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67155         HAVE_SYSTEM_INTTYPES.
67156
67157 2005-05-22  Bruno Haible  <bruno@clisp.org>
67158
67159         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67160         Also include <sys/param.h> if it defines MIN, MAX.
67161         Based on a patch by Derek Price <derek@ximbiot.com>.
67162
67163 2005-05-21  Jim Meyering  <jim@meyering.net>
67164
67165         * modules/fts (Files): Add m4/inttypes-pri.m4.
67166         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67167
67168 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         New fts module.
67171         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67172         (setup_dir, free_dir): New functions.
67173         (enter_dir, leave_dir): Define trivial
67174         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67175         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67176         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67177         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67178         Move to fts-cycle.c.
67179         (fts_open): Use setup_dir.
67180         (fts_close): Use free_dir.
67181         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67182         This adds a label and some gotos, but the alternatives were messier.
67183         Check for memory allocation failure when entering a dir.
67184         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67185         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67186         (FTS): New member fts_cycle, that is a union that contains the
67187         old active_dir_ht and cycle_state.  All uses changed to mention
67188         fts_cycle.ht and fts_cycle.state.
67189         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67190         fts.c, with the following changes:
67191         (setup_dir, free_dir): New functions.
67192         (enter_dir): Now returns bool.  Return true if successful, false
67193         if memory exhausted.  All callers changed.
67194         Do not bother partly cleaning up on
67195         memory allocation failure; that is free_dir's job.
67196         However, free ad if hash_insert fails, to avoid memory leak.
67197         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67198         fts->fts_options to see which union member to use.
67199
67200 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67203         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67204
67205 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67208
67209 2005-05-20  Jim Meyering  <jim@meyering.net>
67210
67211         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67212         Now a macro, to pacify GCC.
67213
67214 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67215
67216         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67217         of -1.
67218
67219 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67220
67221         * lib/chown.c (rpl_chown): Return -1 on failure.
67222
67223 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67224
67225         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67226         Don't check for stddef.h.
67227         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67228         don't use its results.
67229         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67230         since we include them unconditionally.  Don't require
67231         AM_STDBOOL_H, since stdbool is a prerequisite.
67232         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67233         since we assume C89 or better.
67234         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67235         as we don't use their results.
67236         Don't check for fchdir, memmove, memset, strrchr, as we use
67237         them unconditionally.
67238         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67239         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67240
67241 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67242
67243         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67244         Include <stddef.h> unconditionally, since we assume C89 now.
67245         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67246         * lib/fts.c: Include fts_.h first, to check interface.
67247         Do not include intprops.h; no longer needed.
67248         Include cycle-check.h and hash.h, since fts_.h no longer does.
67249         Remove unnecessary casts of closedir to void.
67250         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67251         decide whether to decrement nlinks.
67252         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67253         (FTS): Use struct hash_table * instead of Hash_table, so that
67254         we no longer need to include hash.h here.
67255
67256 2005-05-18  Jim Meyering  <jim@meyering.net>
67257
67258         * modules/dirfd (License): Change to LGPL.  Most of the code
67259         is already in the public domain.
67260
67261 2005-05-18  Jim Meyering  <jim@meyering.net>
67262
67263         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67264         Reported by Yoann Vandoorselaere.
67265
67266 2005-05-17  Jim Meyering  <jim@meyering.net>
67267
67268         * m4/fts.m4: New file, from coreutils.
67269
67270 2005-05-17  Jim Meyering  <jim@meyering.net>
67271
67272         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67273
67274 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         Sync from coreutils.
67277         * m4/unlinkdir.m4: New file.
67278
67279 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67280
67281         Sync from coreutils.
67282         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67283         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67284         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67285         White space changes only.
67286         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67287         special.
67288         * lib/yesno.c: Include getline.h, not ctype.h.
67289         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67290         Use getline to remove arbitrary restriction on response length.
67291
67292 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67293
67294         * config/srclist-update: Spell out "Street" in FSF postal
67295         mail address; this is the style the FSF seems to prefer.
67296
67297         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67298         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67299         this updates FSF postal mail address.
67300
67301         Sync from coreutils.
67302         * modules/unlinkdir: New file.
67303         * modules/yesno (Depends-on): Add getline.
67304         * MODULES.html.sh (File system functions): Add unlinkdir.
67305
67306 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67307
67308         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67309         lib/strsep.h:
67310         Change the initial comment to refer to GPL, not LGPL.
67311         gnulib-tool will change it to LGPL as needed.
67312
67313         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67314         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67315         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67316         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67317         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67318         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67319         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67320         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67321         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67322         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67323         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67324         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67325         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67326         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67327         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67328         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67329         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67330         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67331         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67332         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67333         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67334         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67335         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67336         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67337         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67338         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67339         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67340         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67341         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67342         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67343         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67344         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67345         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67346         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67347         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67348         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67349         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67350         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67351         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67352         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67353         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67354         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67355         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67356         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67357         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67358         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67359         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67360         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67361         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67362         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67363         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67364         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67365         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67366         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67367         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67368         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67369         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67370         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67371         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67372         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67373         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67374         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67375         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67376         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67377         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67378         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67379         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67380         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67381         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67382         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67383         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67384         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67385         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67386         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67387         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67388         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67389         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67390         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67391         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67392         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67393         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67394         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67395         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67396         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67397         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67398         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67399         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67400         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67401         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67402         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67403         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67404         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67405         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67406         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67407         lib/yesno.c, lib/yesno.h:
67408         Update FSF postal mail address.
67409
67410 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67413         tests/test-memmem.c, tests/test-stpncpy.c:
67414         Update FSF postal mail address.
67415
67416 2005-05-13  Bruno Haible  <bruno@clisp.org>
67417
67418         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67419         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67420         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67421         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67422         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67423         Add support for 64-bit integers in the MSVC compiler.
67424
67425 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67426
67427         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67428
67429 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67430
67431         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67432
67433 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * doc/getdate.texi (General date syntax): Don't say that date
67436         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67437         Problem reported by Nic Ferrier.
67438
67439 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67440
67441         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67442         specified in ai_socktype. Fix invalid ai_protocol
67443         check. ai_protocol is usually set to 0 or depending on
67444         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67445         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67446         ai_socktype / ai_protocol in the returned addrinfo structure.
67447
67448 2005-05-10  Simon Josefsson  <jas@extundo.com>
67449
67450         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67451         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67452
67453 2005-05-10  Karl Berry  <karl@gnu.org>
67454
67455         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67456         (from http://www.gnu.org/licenses).
67457         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67458         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67459         fdl.texi suffices.
67460
67461 2005-05-10  Karl Berry  <karl@gnu.org>
67462
67463         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67464         (COPYING.DOC): remove.
67465
67466         * config/srclist-update: new FSF address.
67467
67468 2005-05-10  Derek Price  <derek@ximbiot.com>
67469
67470         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67471         possible.
67472
67473 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67474             Bruno Haible  <bruno@clisp.org>
67475
67476         * modules/inet_ntop: New file.
67477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67478         inet_ntop.
67479
67480 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67481             Bruno Haible  <bruno@clisp.org>
67482
67483         * m4/inet_ntop.m4: New file.
67484
67485 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67486             Bruno Haible  <bruno@clisp.org>
67487
67488         * lib/inet_ntop.h: New file.
67489         * lib/inet_ntop.c: New file, from glibc with modifications.
67490
67491 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67492
67493         * modules/time_r (License): Change to LGPL.
67494         * modules/extensions (License): Change to LGPL.  Actually,
67495         the license is more permissive than that, but currently gnulib-tool
67496         doesn't know how to handle more-permissive licenses.
67497
67498         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67499         Problem reported by Dave Love.
67500
67501 2005-05-08  Jim Meyering  <jim@meyering.net>
67502
67503         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67504         blank.
67505
67506 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67507
67508         * modules/argmatch (Depends-on): Add stdbool.
67509         * modules/backupfile (Depends-on): Likewise.
67510         * modules/chdir-long (Depends-on): Likewise.
67511         * modules/closeout (Depends-on): Likewise.
67512         * modules/cycle-check (Depends-on): Likewise.
67513         * modules/dirname (Depends-on): Likewise.
67514         * modules/fnmatch (Depends-on): Likewise.
67515         * modules/fsusage (Depends-on): Likewise.
67516         * modules/fwriteerror (Depends-on): Likewise.
67517         * modules/getcwd (Depends-on): Likewise.
67518         * modules/getloadavg (Depends-on): Likewise.
67519         * modules/hard-locale (Depends-on): Likewise.
67520         * modules/makepath (Depends-on): Likewise.
67521         * modules/mountlist (Depends-on): Likewise.
67522         * modules/nanosleep (Depends-on): Likewise.
67523         * modules/posixtm (Depends-on): Likewise.
67524         * modules/quotearg (Depends-on): Likewise.
67525         * modules/readtokens (Depends-on): Likewise.
67526         * modules/readtokens0 (Depends-on): Likewise.
67527         * modules/readutmp (Depends-on): Likewise.
67528         * modules/save-cwd (Depends-on): Likewise.
67529         * modules/strftime (Depends-on): Likewise.
67530         * modules/userspec (Depends-on): Likewise.
67531         * modules/utimecmp (Depends-on): Likewise.
67532         * modules/xgetcwd (Depends-on): Likewise.
67533         * modules/xnanosleep (Depends-on): Likewise.
67534         * modules/xstrtod (Depends-on): Likewise.
67535         * modules/yesno (Depends-on): Likewise.
67536
67537 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67540         needless checks.
67541
67542 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         Merge from coreutils.  Among other things,
67545         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67546         * lib/fd-safer.c: New file.
67547         * lib/fcntl-safer.h, open-safer.c: Remove.
67548         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67549         * lib/dup-safer.c: Include unistd-safer.h first.
67550         Don't include errno.h.
67551         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67552         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67553         * lib/file-type.c: Rely on file-type.h change.
67554         * lib/getloadavg.c: Include unistd-safer.h.
67555         (getloadavg): Use safer open.
67556         * lib/getusershell.c: Include "stdio-safer.h".
67557         (getusershell): Use safer fopen.
67558         * lib/long-options.c (long_options): Use NULL rather than 0.
67559         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67560         'free'.
67561         * lib/modechange.c: Likewise.
67562         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67563         (MODE_DONE): New constant.
67564         (struct mode_change): Remove 'next' member.
67565         (make_node_op_equals): New function; like the old one of the
67566         same name, except it allocates an array.
67567         (mode_compile, mode_create_from_ref): Use it.
67568         (mode_compile): Allocate result as an array, not a linked list.
67569         Parse octal string ourself, so that we catch mistakes like "+0".
67570         (mode_adjust): Arg is an array, not a linked list.
67571         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67572         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67573         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67574         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67575         Remove.  This is now stat-macros.h's job.
67576         (talloc): Remove.  All callers replaced by xalloc, so that
67577         our invokers don't have to worry about reporting memory failures.
67578         (make_node_op_equals): Remove.
67579         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67580         New constants.
67581         (struct mode_change): Moved here from modechange.h.
67582         (mode_append_entry): Remove.
67583         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67584         apps to have incorrect behavior.  Use simpler algorithm for head
67585         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67586         Detect more invalid usages rather than having somewhat-random behavior.
67587         Don't insert an "a=" action, as that leads to incorrect behavior.
67588         (mode_compile, mode_create_from_ref): Return NULL on error instead
67589         of an enum, since now there's only one way to have an error.  All
67590         callers changed.
67591         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67592         at the correct time.  Simplify calculation of "+u" and its ilk.
67593         Don't mishandle "+X".
67594         (mode_free): Remove "register" and localize decls.
67595         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67596         (struct mode_change): Move to modechange.c; callers don't
67597         need to see this stuff.
67598         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67599         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67600         (mode_change, mode_adjust): Reflect the new signatures noted above.
67601         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67602         that might redefine system include files.
67603         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67604         (my_usleep): Use NULL rather than (void *) 0.
67605         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67606         Use siginterrupt to specify that system calls should be interrupted.
67607         (rpl_nanosleep): Move initialization of suspended closer to call of
67608         my_usleep.
67609         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67610         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67611         (desirable_utmp_entry): New function.
67612         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67613         using x2nrealloc, to simplify logic.
67614         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67615         size calculation.  Do not assume utmp file is a regular file.
67616         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67617         (READ_UTMP_CHECK_PIDS): New constant.
67618         * lib/save-cwd.c: Include unistd-safer.h.
67619         (save_cwd): Use fd_safer.
67620         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67621         [!_LIBC] Include "stat-macros.h" instead.
67622         * lib/unistd-safer.h (fd_safer): New decl.
67623
67624 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67625
67626         * modules/getloadavg (Depends-on): Add unistd-safer.
67627         * modules/getusershell (Depends-on): Add stdio-safer.
67628         * modules/lstat (Depends-on): Remove xalloc.
67629         * modules/mkstemp (Depends-on): Add stat-macros.
67630         * modules/modechange (Depends-on): Remove xstrtol.
67631         Add stat-macros, xalloc.
67632         * modules/save-cwd (Depends-on): Add unistd-safer.
67633         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67634         * modules/unistd-safer (Files): Add lib/fd-safer.c
67635         (Makefile.am): Remove lib_SOURCES.
67636
67637         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67638         Remove fcntl-safer; unistd-safer supersedes it.
67639
67640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67643         AC_HEADER_STAT.
67644         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67645         (gl_PREREQ_CHOWN): Remove.
67646         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67647         it.  Don't require AC_HEADER_STAT.
67648         (gl_PREREQ_LSTAT): Remove.
67649         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67650         Don't require AC_HEADER_STAT.
67651         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67652         (gl_PREREQ_RMDIR): Remove.
67653         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67654         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67655         the stat-macros module a prerequisite.
67656         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67657         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67658         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67659         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67660         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67661         variable names.
67662         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67663         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67664         variable prefixes.
67665         * m4/fcntl-safer.m4: Remove.
67666         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67667         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67668         Invoke gl_PREREQ_FD_SAFER.
67669         (gl_PREREQ_FD_SAFER): New macro.
67670         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67671         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67672         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67673         Remove duplicate call to AC_LIBOBJ(readutmp).
67674         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67675
67676         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67677         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67678
67679 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * MODULES.html.sh (Misc): Add byteswap.
67682
67683 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67684
67685         * modules/getcwd (Depends-on): Add extensions.
67686         * modules/openat (Depends-on): Likewise.
67687
67688 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67689
67690         * modules/byteswap: New file.
67691
67692 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67693
67694         * m4/byteswap.m4: New file.
67695
67696 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67697
67698         * lib/byteswap_.h: New file.
67699
67700 2005-04-25  Karl Berry  <karl@gnu.org>
67701
67702         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67703
67704 2005-04-25  Albert Chin  <china@thewrittenword.com>
67705
67706         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67707         Toolkit C bug.
67708
67709 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67710
67711         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67712         (func_ln_if_changed): Remove forcibly for no error message
67713         in case file does not exist.
67714
67715 2005-04-19  Simon Josefsson  <jas@extundo.com>
67716
67717         * gnulib-tool (Options): Make --symlink mean --symbolic.
67718
67719 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67720
67721         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67722
67723 2005-04-16  Simon Josefsson  <jas@extundo.com>
67724
67725         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67726
67727 2005-04-15  Simon Josefsson  <jas@extundo.com>
67728
67729         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67730
67731 2005-04-15  Simon Josefsson  <jas@extundo.com>
67732
67733         * gnulib-tool: Rename --symlink to --symbolic.
67734
67735 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67736
67737         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67738         symbolic links to files instead of copying/moving.  Add --aux-dir,
67739         specifying directory relative --dir where auxiliary build tools
67740         are placed.
67741
67742 2005-04-14  Bruno Haible  <bruno@clisp.org>
67743
67744         * modules/allocsa (License): Change to LGPL.
67745         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67746
67747 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67748
67749         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67750         that "UTC +1 second" continues to work.  Problem reported
67751         by Dmitry V. Levin.
67752         (relunit_snumber): New rule.
67753         (relunit): Use it.
67754
67755 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * lib/getdate.y (universal_time_zone_table): New constant.
67758         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67759         universal_time_zone_table.
67760         (lookup_zone): Prefer universal_time_zone_table to
67761         local_time_zone_table, so that "GMT" time stamps are allowed in
67762         London during the summer.  Problem reported by Ian Abbott.
67763
67764 2005-04-12  Jim Meyering  <jim@meyering.net>
67765
67766         * lib/human.c (humblock): Set *options even when returning due to
67767         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67768         warning from gcc-4.
67769
67770 2005-04-09  Jim Meyering  <jim@meyering.net>
67771
67772         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67773         -Wuninitialized: initialize tm0.tm_year.
67774
67775 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67778         count, since there's no maximum.  All uses changed.
67779         Add member dsts_seen.
67780         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67781         not being INT_MAX.
67782         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67783         Use pc_rels_seen to decide whther a date is absolute.
67784
67785         * lib/getdate.y (number): Don't overwrite year.
67786         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67787         check.
67788
67789 2005-04-02  Simon Josefsson  <jas@extundo.com>
67790
67791         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67792         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67793
67794 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67795
67796         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67797         where no absolute path name can be longer than PATH_MAX.
67798
67799 2005-03-27  Jim Meyering  <jim@meyering.net>
67800
67801         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67802
67803 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67804
67805         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67806         "one's complement" -> "ones' complement" in comment, as per Knuth.
67807         "value of type" -> "type or expression" in comment.
67808         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67809
67810 2005-03-26  Jim Meyering  <jim@meyering.net>
67811
67812         Comment nits.
67813         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67814         Correct typos: s/or/of/.
67815
67816 2005-03-26  Jim Meyering  <jim@meyering.net>
67817
67818         * modules/check-include-files: Move to ../ and rename to...
67819         * check-module: ...this.
67820
67821 2005-03-25  Jim Meyering  <jim@meyering.net>
67822
67823         * modules/xvasprintf (Files): Add xalloc.h.
67824
67825 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67826
67827         * modules/gettext (Files): config/config.rpath ->
67828         build-aux/config.rpath
67829         * modules/iconv (Files): Likewise.
67830         Problem reported by Oskar Liljeblad.
67831
67832 2005-03-23  Jim Meyering  <jim@meyering.net>
67833
67834         * modules/check-include-files: New script to check for
67835         missing dependencies, multiple includes, etc.
67836
67837         * modules/c-strtold (Depends-on): Add xalloc.
67838         * modules/c-strtod (Depends-on): Add xalloc.
67839         * modules/hash (Depends-on): Add xalloc.
67840         (Files): Remove lib/xalloc.h.
67841
67842         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67843         * modules/userspec (Files): Add lib/inttostr.h.
67844
67845 2005-03-23  Jim Meyering  <jim@meyering.net>
67846
67847         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67848
67849 2005-03-22  Jim Meyering  <jim@meyering.net>
67850
67851         * modules/stat-macros: New module.
67852         * modules/canonicalize, modules/euidaccess, modules/file-type,
67853         * modules/filemode, modules/lchown, modules/makepath,
67854         * modules/rmdir, modules/stat: Depend on new stat-macros module
67855         rather than listing lib/stat-macros.h manually.
67856         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67857
67858 2005-03-22  Jim Meyering  <jim@meyering.net>
67859
67860         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67861
67862 2005-03-22  Bruno Haible  <bruno@clisp.org>
67863
67864         * config/srclist.txt: Replace target directory 'config' with
67865         'build-aux'.
67866         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67867         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67868         ../build-aux/.
67869
67870 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * modules/chdir-long (Depends-on): Add mempcpy.
67873
67874         * modules/acl, modules/backupfile, modules/c-strtod,
67875         modules/c-strtold, modules/canon-host, modules/canonicalize,
67876         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67877         modules/exclude, modules/exitfail, modules/file-type,
67878         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67879         modules/getdate, modules/getline, modules/getpagesize,
67880         modules/getpass, modules/getugroups, modules/group-member,
67881         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67882         modules/inttostr, modules/long-options, modules/makepath,
67883         modules/md5, modules/memcasecmp, modules/memcoll,
67884         modules/modechange, modules/mountlist, modules/path-concat,
67885         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67886         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67887         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67888         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67889         modules/strftime, modules/strndup, modules/strverscmp,
67890         modules/timespec, modules/unlocked-io, modules/userspec,
67891         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67892         modules/yesno:
67893         Remove lib_SOURCES line from Makefile.am section, as this is now
67894         done automatically by the corresponding Autoconf macro.
67895
67896 2005-03-21  Jim Meyering  <jim@meyering.net>
67897
67898         Changes imported from coreutils.
67899
67900         * lib/cycle-check.c: Don't include xalloc.h.
67901
67902         * lib/path-concat.c: Don't include assert.h.
67903         (path_concat): Remove assertion that would have triggered
67904         for ABASE starting with more than one slash.
67905         Reported by Andreas Schwab.
67906
67907         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67908         properly when ABASE is an absolute file name.
67909         Correct the description of this function.
67910         Include <assert.h>.
67911         Add an assertion and a test driver.
67912         This fixes a bug introduced on 2004-07-02.
67913         Andreas Schwab reported the resulting failure of cp --parents:
67914         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67915
67916 2005-03-21  Jim Meyering  <jim@meyering.net>
67917
67918         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67919         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67920
67921 2005-03-21  Jim Meyering  <jim@meyering.net>
67922         and  Paul Eggert  <eggert@cs.ucla.edu>
67923
67924         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67925         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67926         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67927         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67928         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67929         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67930         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67931         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67932         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67933         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67934         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67935         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67936         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67937         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67938         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67939         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67940         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67941         for these modules.
67942
67943 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67946         (which shouldn't happen), generate nothing instead of returning 0
67947         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67948
67949 2005-03-16  Bruno Haible  <bruno@clisp.org>
67950
67951         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67952         HAVE_LONGLONG_64BIT.
67953
67954 2005-03-16  Bruno Haible  <bruno@clisp.org>
67955
67956         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67957         HAVE_LONGLONG_64BIT.
67958
67959 2005-03-16  Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67962         HAVE_LONGLONG_64BIT.
67963
67964 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67967         reliably distinguish strftime failure from empty output on POSIX
67968         hosts.
67969
67970 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67973         (iconv_string): Don't guess a size-zero buffer, as that might cause
67974         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67975         result would be 'too large', where 'too large' is (heuristically)
67976         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67977         overflow concerns.  This will prevent some unwanted malloc failures
67978         when the inputs are very large.
67979
67980 2005-03-15  Karl Berry  <karl@gnu.org>
67981
67982         * config/srclist.txt (config.rpath): from gettext.
67983         * config/config.rpath: update.
67984
67985 2005-03-15  Bruno Haible  <bruno@clisp.org>
67986
67987         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67988         to 'negate'.
67989
67990         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67991         variable.
67992
67993         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67994         results.
67995
67996 2005-03-14  Simon Josefsson  <jas@extundo.com>
67997
67998         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67999         <fx@gnu.org>.
68000
68001 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68004         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68005         intprops.h.
68006         * lib/strtol.c: Likewise.
68007
68008 2005-03-14  Jim Meyering  <jim@meyering.net>
68009
68010         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68011         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68012         to be nonzero so that we (and caller) can detect the difference
68013         between a valid zero-length expansion and an error return, even
68014         when the underlying strftime fails before writing anything into
68015         that location.
68016
68017 2005-03-14  Bruno Haible  <bruno@clisp.org>
68018
68019         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68020         Update from GNU gettext 0.14.3.
68021
68022 2005-03-10  Jim Meyering  <jim@meyering.net>
68023
68024         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68025
68026 2005-03-10  Jim Meyering  <jim@meyering.net>
68027
68028         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68029         so that this module works on systems without fchdir.
68030
68031 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         Factor int-properties macros into a single file, except for
68034         glibc-related files.
68035         * lib/intprops.h: New file.
68036         * lib/getloadavg.c: Include it instead of limits.h.
68037         (INT_STRLEN_BOUND): Remove.
68038         * lib/human.c: Include intprops.h.
68039         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68040         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68041         302/1000.
68042         * lib/inttostr.h: Include intprops.h instead of limits.h.
68043         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68044         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68045         for consistency with intprops.h.
68046         (time_t_is_integer, twos_complement_arithmetic): Use them.
68047         * lib/sig2str.h: Include <signal.h>, intprops.h.
68048         (INT_STRLEN_BOUND): Remove.
68049         * lib/strftime.c (TYPE_SIGNED): Remove.
68050         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68051         * lib/strtol.c: Adjust comments to match intprops.h.
68052         * lib/userspec.c: Include intprops.h.
68053         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68054         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68055         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68056         instead of rolling our own expressions.
68057         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68058
68059         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68060         instead of int.
68061         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68062         the right thing even if adding 1900 would overflow.  Similarly
68063         for tm_mon + 1 and tm_yday + 1.
68064         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68065         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68066         (DO_SIGNED_NUMBER): New macro.
68067         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68068
68069 2005-03-07  Bruno Haible  <bruno@clisp.org>
68070
68071         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68072
68073 2005-03-07  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68076
68077 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68078
68079         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68080         (func_import): Only replace files via --import when they have actually
68081         changed.
68082
68083 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68084
68085         * m4/mmap-anon.m4: New file.
68086         * m4/pagealign_alloc.m4: New file.
68087
68088 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68089             Bruno Haible  <bruno@clisp.org>
68090
68091         * modules/pagealign_alloc: New file.
68092         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68093
68094 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68095             Bruno Haible  <bruno@clisp.org>
68096
68097         * lib/pagealign_alloc.h: New file.
68098         * lib/pagealign_alloc.c: New file.
68099
68100 2005-03-03  Bruno Haible  <bruno@clisp.org>
68101
68102         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68103         Use an all-permissive copyright notice, recommended by RMS.
68104
68105 2005-03-02  Bruno Haible  <bruno@clisp.org>
68106
68107         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68108         of AIX, the replacement has to be done only after <string.h> is
68109         included, therefore not in config.h. stpncpy.h does the replacement,
68110         and stpncpy.c uses it.
68111
68112 2005-03-02  Bruno Haible  <bruno@clisp.org>
68113
68114         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68115         stpncpy.c uses it.
68116
68117 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68120         The workaround isn't strictly needed for POSIX conformance, and
68121         it's too much of a pain to configure and maintain.  We'll ask
68122         people to fix their kernels instead.
68123         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68124         (NANOSLEEP_BUG_WORKAROUND): Remove.
68125         (xnanosleep): Remove the workaround.
68126
68127 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68128
68129         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68130         Reported by Derek Price.
68131         (Include): Add "timespec.h".
68132
68133         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68134
68135 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68138         to detect nanosleep bug.
68139
68140 2005-03-01  Bruno Haible  <bruno@clisp.org>
68141
68142         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68143
68144 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68145
68146         * modules/gethrxtime: New file.
68147         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68148         (Depends-on): Add gethrxtime.
68149         (configure.ac): Add gl_XNANOSLEEP.
68150         (Makefile.am): Remove lib_SOURCES line.
68151
68152 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68155         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68156
68157 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68158
68159         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68160         * lib/timespec.h (gettime): Return void, since it always
68161         succeeds now.  All uses changed.
68162         * lib/gettime.c (gettime): Likewise.
68163         [HAVE_NANOTIME]: Prefer nanotime.
68164         Assume gettimeofday succeeds, as POSIX requires.
68165         Assime time () succeeds, since other code already does.
68166         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68167         (timespec_subtract): Remove.
68168         (NANOSLEEP_BUG_WORKAROUND): New constant.
68169         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68170         things considerably.  Use it only on GNU/Linux hosts, since the
68171         workaround shouldn't be needed elsewhere.
68172
68173 2005-02-24  Bruno Haible  <bruno@clisp.org>
68174
68175         * modules/gettext (Files): Add m4/glibc2.m4.
68176
68177 2005-02-24  Bruno Haible  <bruno@clisp.org>
68178
68179         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68180         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68181         * m4/progtest.m4:
68182         Update from GNU gettext 0.14.2.
68183         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68184
68185 2005-02-24  Bruno Haible  <bruno@clisp.org>
68186
68187         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68188         * lib/config.charset: Update from GNU gettext 0.14.2.
68189
68190 2005-02-24  Bruno Haible  <bruno@clisp.org>
68191
68192         * lib/gettext.h: Update from GNU gettext 0.14.2.
68193
68194 2005-02-23  Simon Josefsson  <jas@extundo.com>
68195
68196         * m4/iconvme.m4: New file.
68197
68198 2005-02-23  Jim Meyering  <jim@meyering.net>
68199
68200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68201         change.
68202         Thanks to Bruno Haible for catching it.
68203
68204 2005-02-22  Simon Josefsson  <jas@extundo.com>
68205
68206         * modules/iconvme: New file.
68207
68208         * MODULES.html.sh: Add iconvme.
68209
68210 2005-02-22  Simon Josefsson  <jas@extundo.com>
68211
68212         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68213
68214 2005-02-22  Simon Josefsson  <jas@extundo.com>
68215
68216         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68217
68218 2005-02-22  Jim Meyering  <jim@meyering.net>
68219
68220         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68221         s/ifndef/ifdef/.
68222
68223 2005-02-20  Neil Conway  <neilc@samurai.com>
68224
68225         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68226         returned by OSX/Darwin if the specified buffer is not large
68227         enough for the hostname.
68228
68229 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68230
68231         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68232         pass it to _help, otherwise the latter coredumps trying to
68233         dereference state.root_argp.
68234
68235 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68236
68237         * modules/chdir-long (Depends-on): Add memrchr.
68238         * modules/memrchr (Files): Add lib/memrchr.h.
68239         (Include): "memrchr.h".
68240
68241 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68244
68245 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68246
68247         * lib/memrchr.h: New file.
68248         * lib/chdir-long.c: Include it.
68249         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68250         Don't bother including stddef.h.
68251
68252 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68255         inclusion.
68256         Include <sys/types.h>, for dev_t.
68257         (ME_DUMMY, ME_REMOTE): Move from here....
68258         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68259         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68260         Dmitry V. Levin.
68261         Include mountlist.h first, to test the interface.
68262
68263 2005-01-29  Bruno Haible  <bruno@clisp.org>
68264
68265         * lib/progname.c (program_name): Initialize.
68266         Needed when linking statically on MacOS X.
68267
68268 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         Sync from coreutils.
68271         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68272         (Depends-on): Add c-strtod.
68273         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68274
68275 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68276
68277         Sync from coreutils.
68278         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68279
68280         Remove files that are specific to coreutils.
68281         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68282
68283 2005-01-28  Bruno Haible  <bruno@clisp.org>
68284
68285         * modules/javacomp: New file.
68286         * MODULES.html.sh (Java): Add javacomp.
68287
68288 2005-01-28  Bruno Haible  <bruno@clisp.org>
68289
68290         * m4/javacomp.m4: New file, from GNU gettext.
68291
68292 2005-01-28  Bruno Haible  <bruno@clisp.org>
68293
68294         * lib/javacomp.sh.in: New file, from GNU gettext.
68295         * lib/javacomp.h: New file, from GNU gettext.
68296         * lib/javacomp.c: New file, from GNU gettext.
68297
68298 2005-01-26  Simon Josefsson  <jas@extundo.com>
68299
68300         * lib/gai_strerror.c: Use GPL in header.
68301
68302 2005-01-26  Bruno Haible  <bruno@clisp.org>
68303
68304         * modules/javaexec: New file.
68305         * MODULES.html.sh (Java): Add javaexec.
68306
68307 2005-01-26  Bruno Haible  <bruno@clisp.org>
68308
68309         * m4/javaexec.m4: New file, from GNU gettext.
68310
68311 2005-01-26  Bruno Haible  <bruno@clisp.org>
68312
68313         * lib/javaexec.sh.in: New file, from GNU gettext.
68314         * lib/javaexec.h: New file, from GNU gettext.
68315         * lib/javaexec.c: New file, from GNU gettext.
68316
68317 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68318
68319         * modules/lchown (Depends-on): Remove lchown.h
68320
68321 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68322
68323         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68324         must be defined if the header file was not found, in order
68325         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68326
68327 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68328
68329         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68330         initializers for struct pentry_state.
68331         (__argp_error): Check return value of __asprintf
68332         (__argp_failure): Translate error message
68333
68334         * lib/argp-parse.c: Removed braces around the expansion of N_()
68335
68336 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68339         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68340         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68341         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68342         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68343         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68344         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68345         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68346         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68347         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68348         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68349         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68350         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68351         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68352         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68353         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68354         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68355         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68356         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68357         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68358         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68359         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68360         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68361         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68362         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68363         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68364         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68365         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68366         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68367         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68368         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68369         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68370         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68371         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68372         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68373         Use an all-permissive copyright notice, recommended by RMS.
68374
68375 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68376
68377         * modules/chdir-long (Depends-on): Remove mempcpy.
68378
68379 2005-01-21  Jim Meyering  <jim@meyering.net>
68380
68381         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68382         same value as for Solaris 9.
68383
68384         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68385         component length.  This included changing the parameter to be
68386         of type `char *' rather than `char const *'.
68387         * lib/chdir-long.h (chdir_long): Update prototype.
68388
68389         * lib/openat.c (fdopendir, fstatat): New functions.
68390         * lib/openat.h: Include headers required for use of DIR and struct
68391         stat.
68392         [AT_SYMLINK_NOFOLLOW]: Define.
68393         (fdopendir, fstatat): Add prototypes.
68394
68395 2005-01-21  Bruno Haible  <bruno@clisp.org>
68396
68397         * modules/classpath: New file.
68398         * MODULES.html.sh (Java): Add classpath.
68399
68400 2005-01-21  Bruno Haible  <bruno@clisp.org>
68401
68402         * lib/classpath.h: New file, from GNU gettext.
68403         * lib/classpath.c: New file, from GNU gettext.
68404
68405 2005-01-20  Simon Josefsson  <jas@extundo.com>
68406
68407         * modules/version-etc-fsf: New file.
68408
68409 2005-01-20  Simon Josefsson  <jas@extundo.com>
68410
68411         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68412         * lib/version-etc.c: Remove version_etc_copyright.
68413         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68414         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68415
68416 2005-01-20  Simon Josefsson  <jas@extundo.com>
68417
68418         * lib/base64.h (isbase64): Add.
68419
68420         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68421         using a unsigned prototype, don't inline.
68422         (base64_decode): Use it.
68423
68424 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68427         it.
68428
68429 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * lib/save-cwd.c (save_cwd): Remove code to support the case
68432         where fchdir is missing or flaky.
68433
68434 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68435
68436         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68437
68438 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68441         AC_LIBSOURCES now does this.
68442         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68443         with new ullong_max module.
68444
68445 2005-01-19  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/sh-quote: New file.
68448         * MODULES.html.sh (Executing programs): Add sh-quote.
68449
68450 2005-01-19  Bruno Haible  <bruno@clisp.org>
68451
68452         * lib/sh-quote.h: New file, from GNU gettext.
68453         * lib/sh-quote.c: New file, from GNU gettext.
68454
68455 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         Merge from coreutils.
68458         * m4/ullong_max.m4: New file.
68459         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68460         (gl_MACROS): Assume localeconv exists.
68461
68462 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68463
68464         Merge changes from coreutils, as described below in several
68465         changelogs dated today.
68466
68467         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68468         (O_DIRECTORY): Remove; not needed here, since "." must be
68469         a directory.  All uses removed.
68470         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68471         universal on Suns, and we also need to test for IRIX.
68472         Revamp code to use 'if' rather than '#if'.
68473         Avoid unnecessary comparison of cwd->desc to 0.
68474
68475         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68476         for known valid error numbers rather than observed invalid ones.
68477
68478 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * modules/ullong_max: New file.
68481
68482         * modules/chdir-long, modules/openat: New files.
68483         * modules/save-cwd (Depends-on): Depend on chdir-long.
68484         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68485
68486 2005-01-18  Jim Meyering  <jim@meyering.net>
68487
68488         Merge from coreutils.
68489         * m4/chdir-long.m4, m4/openat.m4: New files.
68490         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68491         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68492         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68493         is sane and DOES follow symlinks.  Besides, testing 20 different
68494         systems found no broken chown implementations.
68495         Prompted by a change in rsync's copy of this macro.
68496         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68497
68498         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68499
68500         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68501         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68502         NULL-means-set-to-current-time semantics.
68503         Remove temporary file immediately, rather than waiting
68504         for configure's at-exit trap code to do it.
68505
68506 2005-01-18  Jim Meyering  <jim@meyering.net>
68507
68508         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68509
68510         * lib/utimens.c (futimens): Account for the fact that futimes
68511         can also fail with errno == ENOSYS or errno == ENOENT.
68512         Patch from Dmitry V. Levin.
68513
68514         Change the name of the robust chdir function from chdir to chdir_long.
68515         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68516         (restore_cwd): Use chdir_long, not chdir.
68517         * lib/chdir-long.c: Renamed from chdir.c.
68518         * lib/chdir-long.h: Renamed from chdir.h.
68519         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68520         Hurd.
68521
68522 2005-01-18  Bruno Haible  <bruno@clisp.org>
68523
68524         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68525         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68526         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68527         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68528         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68529         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68530         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68531         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68532         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68533         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68534         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68535         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68536         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68537         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68538         Use an all-permissive copyright notice, recommended by RMS.
68539
68540 2005-01-18  Bob Proulx  <bob@proulx.com>
68541
68542         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68543         simplify offsetof() macro construct to avoid compile failure with
68544         native HP-UX 11.0 ANSI C compiler.
68545
68546 2005-01-17  Bruno Haible  <bruno@clisp.org>
68547
68548         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68549         redundant because stpncpy.m4 takes care of it.
68550
68551 2005-01-17  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68554
68555 2005-01-17  Bruno Haible  <bruno@clisp.org>
68556
68557         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68558         used.
68559
68560 2005-01-17  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/fwriteerror.h (fwriteerror): Change specification to include
68563         fclose.
68564         * lib/fwriteerror.c: Include <stdbool.h>.
68565         (fwriteerror): At the end, close the file stream. Record whether
68566         stdout was already closed.
68567
68568 2005-01-17  Bruno Haible  <bruno@clisp.org>
68569
68570         * lib/execute.c (environ): Declare if needed.
68571         * lib/pipe.c (environ): Likewise.
68572         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68573
68574 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68575
68576         * modules/argp: Depend on vsnprintf
68577
68578 2005-01-10  Jim Meyering  <jim@meyering.net>
68579
68580         * modules/closeout (Depends-on): Add atexit.
68581
68582 2005-01-06  Bruno Haible  <bruno@clisp.org>
68583
68584         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68585
68586 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68587
68588         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68589         definitions to be after all include files, to avoid collisions.
68590         Problem reported by Bob Proulx.
68591
68592 2005-01-04  Jim Meyering  <jim@meyering.net>
68593
68594         Changes imported from coreutils.
68595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68596         as the mkstemp template, use a temporary directory and an
68597         8.3-friendly template to avoid trouble on systems like DJGPP.
68598         Reported by Juan M. Guerrero via Stepan Kasal.
68599         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68600         close. Remove the temporary directory right away, rather than waiting
68601         for configure's at-exit trap code to do it.
68602         Suggestion from Stepan Kasal.
68603
68604 2005-01-01  Simon Josefsson  <jas@extundo.com>
68605
68606         * gnulib-tool: Print #include directives when --import'ing.
68607
68608 2004-12-28  Simon Josefsson  <jas@extundo.com>
68609
68610         * tests/test-base64.c: Include required header files.  Remove
68611         unused variables.
68612
68613 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68614
68615         * modules/error (Depends-on): Remove gettext.
68616
68617 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68620         not needed.  This removes a dependency on the gettext module.
68621         [defined _LIBC]: Do not include <libintl.h>; not needed.
68622
68623 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68624
68625         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68626         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68627
68628 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68629
68630         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68631         HAVE_DECL_STRTOLD.
68632
68633 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68634
68635         * modules/getdate (Depends-on): Remove alloca-opt.
68636
68637 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68638
68639         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68640
68641 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * lib/argp-parse.c: Include <stddef.h>.
68644         (alignof, alignto): New macros.
68645         (parser_init): Don't assume that void * is aligned sufficiently
68646         for struct option.
68647
68648         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68649         need to extend the stack.
68650         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68651         large.
68652
68653 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68654
68655         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68656
68657 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68660         (2004-10-24) change.  Apparently this was a false alarm.
68661
68662         * modules/getdate: Depend on alloca-opt, not alloca.
68663
68664 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68667         Remove now-obsolete comment about AIX.
68668         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68669         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68670         (YYMAXDEPTH): New macro.
68671
68672 2004-12-18  Simon Josefsson  <jas@extundo.com>
68673
68674         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68675
68676 2004-12-18  Bruno Haible  <bruno@clisp.org>
68677
68678         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68679
68680 2004-12-18  Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/fatal-signal.c (fatal_signals): Make non-const.
68683         (init_fatal_signals): New function.
68684         (uninstall_handlers, install_handlers): Ignore signals that were set to
68685         SIG_IGN.
68686         (at_fatal_signal): Call init_fatal_signals.
68687         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68688         SIG_IGN.
68689         Reported by Paul Eggert.
68690
68691 2004-12-18  Bruno Haible  <bruno@clisp.org>
68692
68693         * doc/alloca.texi: New file.
68694         * doc/alloca-opt.texi: New file.
68695
68696 2004-12-17  Jim Meyering  <jim@meyering.net>
68697
68698         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68699         Otherwise, install-sh could exit with improper exit status when
68700         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68701
68702 2004-12-16  Simon Josefsson  <jas@extundo.com>
68703
68704         * tests/test-base64.c: Add license.
68705
68706 2004-12-15  Stepan Kasal  <address@hidden>
68707
68708         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68709
68710 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         * modules/getcwd (Files): Add m4/d-ino.m4.
68713         Suggested by Mark D. Baushke.
68714
68715 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68716
68717         * lib/getdate.y (textint): New member "negative".
68718         (time_zone_hhmm): New function.
68719         Expect 14 shift-reduce conflicts, not 13.
68720         (o_colon_minutes): New rule.
68721         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68722         (yylex): Set the "negative" member of signed numbers.
68723
68724 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * doc/getdate.texi (Time of day items, Time zone items):
68727         Describe new formats +00:00, UTC+00:00.
68728
68729 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68732         spurious "-l"s.  Problem reported by Stepan Kasal.
68733
68734 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68737         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68738
68739 2004-12-04  Simon Josefsson  <jas@extundo.com>
68740
68741         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68742         Vandoorselaere <yoann@prelude-ids.org>.
68743
68744 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68745
68746         Changes imported from coreutils.
68747         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68748         exist.
68749         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68750
68751 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68752
68753         Changes imported from coreutils.
68754         * lib/hard-locale.c: Assume <locale.h> exists.
68755         Include "strdup.h".
68756         (GLIBC_VERSION): New macro.
68757         (hard_locale): Assume setlocale exists.
68758         Rewrite to avoid #ifdef.
68759         Use strdup rather than malloc + strcpy.
68760         * lib/human.c: Assume <locale.h> exists.
68761         (human_readable): Assume localeconv exists.
68762
68763 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         * modules/hard-locale (Depends-on): Add strdup.
68766
68767 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68768
68769         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68770         convert T2, not T.  (Imported from libc.)
68771
68772 2004-11-30  Simon Josefsson  <jas@extundo.com>
68773
68774         * modules/restrict (License): Change to LGPL.
68775
68776 2004-11-30  Simon Josefsson  <jas@extundo.com>
68777
68778         * m4/restrict.m4: Add copyright and copying conditions.
68779
68780 2004-11-30  Simon Josefsson  <jas@extundo.com>
68781
68782         * m4/base64.m4: New file.
68783
68784 2004-11-30  Simon Josefsson  <jas@extundo.com>
68785
68786         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68787         base64.
68788
68789         * tests/test-base64.c: New file.
68790
68791         * modules/base64: New file.
68792
68793 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68794
68795         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68796         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68797
68798         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68799
68800 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68801
68802         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68803         (__getcwd.c): Don't restore errno; glibc doesn't.
68804         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68805         first, falling back to our code only if its results look suspicious.
68806         Ensure that the resulting buffer is only as large as necessary.
68807
68808         * lib/readutmp.c: Include readutmp.h first.
68809         Include <errno.h>, since readutmp.h no longer does that.
68810         * lib/readutmp.h: Don't include <errno.h>,
68811         <sys/param.h>, <time.h>; not needed to establish interface.
68812         (errno): Remove decl.
68813         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68814         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68815         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68816
68817 2004-11-28  Simon Josefsson  <jas@extundo.com>
68818
68819         * lib/base64.h, base64.c: New file.
68820
68821 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68824
68825 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68828         (Depends-on): Remove pathmax, same.  Add mempcpy.
68829         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68830         (Makefile.am): Append getcwd.h to lib_SOURCES.
68831         (Include): Add getcwd.h.
68832         (Maintainer): Change from Jim Meyering to "all, glibc",
68833         since getdate now uses intended-for-glibc code.
68834         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68835         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68836
68837 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68840         HP's ANSI C compiler.
68841         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68842         Declaring int functions causes warnings on some modern systems and
68843         shouldn't be needed to compile on ancient ones.
68844         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68845         defined.
68846
68847         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68848         with the following changes.
68849         (__set_errno): Parenthesize properly.
68850         Include <stdbool.h>.
68851         (MIN, MAX, MATCHING_INO): New macros.
68852         (__getcwd): Define with prototype, not K&R form.
68853         Use heuristics to allocate default buffer on stack if possible.
68854         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68855         behavior, and to avoid the PATH_MAX limit when computing
68856         ../../../../...
68857         Use MATCHING_INO to compare inode number to file.
68858         Check for arithmetic overflow in size calculations.
68859         Fix bug in reallocation of dot array that caused getcwd to fail
68860         on directories nested deeper than 75.
68861         Be more careful about saving errno on error.
68862         Do not use realloc; use only free+malloc, as this is a bit
68863         more flexible and avoids a needless copy operation.
68864         Do not inspect st_dev and st_ino for symbolic links; POSIX
68865         doesn't specify the latter.
68866         Check for closedir errors.
68867         Avoid needless casts.
68868         Use "#ifdef weak_alias" around weak_alias, to be like other
68869         glibc code.
68870         The following changes to getcwd.c have effect only when used in
68871         gnulib; they have no effect inside glibc proper.
68872         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68873         as alloca isn't used.
68874         (alloca, __alloca): Likewise.
68875         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68876         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68877         unconditionally, as gnulib assumes C89 or better.
68878         Do not include <sys/param.h>.
68879         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68880         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68881         better.
68882         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68883         Include <dirent.h> in a way that is compatible with modern Autoconf.
68884         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68885         New macros, if not already defined.
68886         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68887         Use "_LIBC", not "defined _LIBC", for consistency.
68888         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68889         a mempcpy module.
68890         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68891         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68892         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68893         credit only to Jim Meyering and adjust the copyright dates.
68894         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68895         <stdlib.h>, <unistd.h>, "pathmax.h".
68896         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68897         (INITIAL_BUFFER_SIZE): Remove.
68898         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68899
68900 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68903         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68904         Use the _ONCE methods, for efficiency.
68905         Check for fcntl.h.  In test program, include <errno.h>
68906         and <fcntl.h> if available.  Remove old K&R cruft from
68907         test program.  Check for common errors in GNU/Linux,
68908         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68909         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68910         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68911         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68912         name accordingly.
68913         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68914         accommodate new getcwd.c.
68915         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68916         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68917         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68918         that's all we need now.
68919
68920 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68921
68922         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68923         argp-parse.c depends on getopt internals, that means we should
68924         always use our getopt, to be on the safe side.
68925         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68926         order not to spoil the result of an eventual previous invocation
68927         of gl_GETOPT_SUBSTITUTE.
68928
68929 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68930
68931         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68932         redefinition warnings. To avoid them, include the defines
68933         in `#if !defined __need_getopt ... #endif'. The only place
68934         where __getopt_argv_const is used is in definitions
68935         of getopt_long and getopt_long_only below, which are as well
68936         protected by `#ifndef __need_getopt'.
68937         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68938         __need_getopt after including <stdio.h> and <unistd.h> These
68939         headers might have defined it.
68940
68941 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68944
68945 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68948         (futimens): New function, which uses futimes if available.
68949         (futimens, utimens): Support timespec==NULL, with same semantics
68950         as utime and utimens.
68951         * lib/utimens.h (futimens): New decl.
68952
68953 2004-11-23  Jim Meyering  <jim@meyering.net>
68954
68955         * lib/getopt_.h: Remove trailing blanks.
68956
68957 2004-11-23  Jim Meyering  <jim@meyering.net>
68958
68959         * lib/__fpending.c: Add comment.
68960
68961 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68962
68963         * modules/canonicalize (Depends-on): Add xreadlink.
68964         Problem reported by James Youngman.
68965
68966 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68967
68968         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68969         New macros.
68970         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68971         optopt): Use them instead of invoking ## directly; otherwise, the
68972         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68973
68974 2004-11-19  Bruno Haible  <bruno@clisp.org>
68975
68976         * lib/strtok_r.c: Move comments from here...
68977         * lib/strtok_r.h: ... to here.
68978
68979 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68982         implementations that mishandle size_t overflow.
68983
68984 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68987         might fail.  Problem reported by Yoann Vandoorselaere.
68988         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68989         implementations that mishandle size_t overflow.
68990
68991 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * modules/canon-host (Depends-on): Add strdup.
68994
68995 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68998
68999 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         * lib/canon-host.c: Include "strdup.h".
69002         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69003         Use strdup instead of malloc/strcpy to duplicate strings.
69004
69005         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69006         (human_space_before_unit): New constant.
69007         * lib/human.c (human_readable): Support it.
69008
69009         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69010         (xgetcwd): Set errno correctly when failing.
69011         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69012         the failure is actually due to a PATH_MAX problem.
69013
69014         Further getopt changes to make it more likely that glibc will
69015         buy the changes back.
69016         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69017         (getopt): Use it, so to preserve glibc semantic
69018         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69019         when compiling for libc.
69020         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69021         (getopt_long, getopt_long_only): Use it.
69022
69023         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69024         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69025         (getopt): Argv is now char * const *, as per standard.
69026         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69027         not char *__getopt_argv_const *.
69028         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69029         _getopt_long_only_r): Likewise.
69030         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69031         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69032         _getopt_long_r, _getopt_long_only_r): Likewise.
69033         * lib/getopt_.h (__getopt_argv_const): Remove.
69034         (getopt): Argv is now char * const *, as per standard.
69035
69036         * lib/getdate.y (tORDINAL): New token.
69037         (day, relunit): Allow it for relative times.
69038         (relative_time_table): Use tORDINAL for ordinals.
69039
69040 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69043         Document that "second" isn't allowed as an ordinal number.
69044
69045 2004-11-16  Jim Meyering  <jim@meyering.net>
69046
69047         * modules/closeout (Depends-on): Add fpending.
69048
69049 2004-11-15  Jim Meyering  <jim@meyering.net>
69050
69051         * lib/closeout.c: Include "__fpending.h" once again.
69052         Include <stdbool.h>.
69053         (close_stdout): Don't fail just because stdout was closed initially,
69054         since some programs don't write to stdout in the normal course of
69055         operation (other than --version and --help), and we don't want this
69056         function to make e.g. `touch file >&-' fail.
69057         But do fail if it was closed and someone has tried to write to it.
69058         E.g., `printf foo >&-' must fail.
69059
69060 2004-11-13  Jim Meyering  <jim@meyering.net>
69061
69062         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69063
69064 2004-11-12  Simon Josefsson  <jas@extundo.com>
69065
69066         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69067         small doc fix is still pending.
69068
69069 2004-11-11  Simon Josefsson  <jas@extundo.com>
69070
69071         * modules/strtok_r: New file.
69072
69073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69074         strtok_r.
69075
69076 2004-11-11  Simon Josefsson  <jas@extundo.com>
69077
69078         * m4/strtok_r.m4: New file.
69079
69080         * m4/getopt.m4: Replace opterr.
69081
69082 2004-11-11  Simon Josefsson  <jas@extundo.com>
69083
69084         * lib/strtok_r.h, strtok_r.c: New file.
69085
69086 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69087
69088         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69089         of replacing opterr, getopt, etc.  This should handle the
69090         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69091
69092 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69095         we can stop lying to compilers about the constness of argv when we
69096         are compiled outside glibc.
69097         (getopt, getopt_long, getopt_long_only): Use it.
69098         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69099         _getopt_internal, getopt): Likewise.
69100         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69101         _getopt_long_only_r): Likewise.
69102         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69103         _getopt_long_r, _getopt_long_only_r): Likewise.
69104
69105         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69106         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69107         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69108         the other external symbols.
69109         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69110         declaration, since the above renaming now works around collisions.
69111
69112 2004-11-11  Jim Meyering  <jim@meyering.net>
69113
69114         * lib/linebreak.c: Remove trailing blanks.
69115         * lib/alloca_.h: Likewise.
69116         * lib/acosl.c: Likewise.
69117         * lib/euidaccess.c: Likewise.
69118         * lib/allocsa.h: Likewise.
69119
69120 2004-11-10  Simon Josefsson  <jas@extundo.com>
69121
69122         * m4/getaddrinfo.m4: New file.
69123
69124 2004-11-10  Simon Josefsson  <jas@extundo.com>
69125
69126         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69127
69128 2004-11-10  Simon Josefsson  <jas@extundo.com>
69129
69130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69131         getaddrinfo.
69132
69133         * modules/getaddrinfo: New file.
69134
69135 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69138
69139 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         * lib/mktime.c (SHR): New macro, which is a portable
69142         substitute for >> that should work even on Crays.
69143         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69144         Problem reported by Mark D. Baushke in
69145         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69146         * lib/getdate.y (SHR): Likewise.
69147         (tm_diff): Use it.
69148         * lib/strftime.c (SHR): Likewise.
69149         (tm_diff): Use it.
69150         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69151         quote_these_too, so that right shifts are well defined.  All uses
69152         changed.
69153
69154 2004-11-10  Jim Meyering  <jim@meyering.net>
69155
69156         Ensure that no close failure goes unreported.
69157         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69158         return early when it seems there's nothing to flush.
69159         Don't include __fpending.h.
69160
69161 2004-11-10  Jim Meyering  <jim@meyering.net>
69162
69163         * modules/closeout (Depends-on): Remove fpending.
69164
69165 2004-11-10  Jim Meyering  <jim@meyering.net>
69166
69167         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69168
69169 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69170
69171         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69172         gl_FUNC_STRFTIME.
69173         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69174         and AC_REQUIRE when possible, to avoid duplicate checks.
69175         Check for <wchar.h>.
69176
69177 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69178
69179         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69180
69181 2004-11-09  Bruno Haible  <bruno@clisp.org>
69182
69183         * m4/sockpfaf.m4: New file.
69184
69185 2004-11-05  Bruno Haible  <bruno@clisp.org>
69186
69187         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69188         Reported by Mark D. Baushke <mdb@cvshome.org>.
69189
69190 2004-11-04  Bruno Haible  <bruno@clisp.org>
69191
69192         2004-09-11  Bruno Haible  <bruno@clisp.org>
69193                 * allocsa.valgrind: New file.
69194         2004-02-06  Bruno Haible  <bruno@clisp.org>
69195                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69196                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69197                 Reported by Christopher Seip <chris.seip@hp.com>.
69198
69199 2004-11-04  Bruno Haible  <bruno@clisp.org>
69200
69201         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69202         (Makefile.am): Distribute it.
69203
69204 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69207         with errno == ERANGE if the buffer is too small.
69208         Problem reported by Mark D. Baushke.
69209
69210 2004-11-03  Albert Chin  <china@thewrittenword.com>
69211             Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69214         equivalent, substitute $ac_type for equivalent type rather than
69215         blindly using uint32_t *always* which won't work if uint32_t is not
69216         available.  Define _UINT32_T to work around typedef of uint32_t if
69217         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69218         2.5.1.
69219
69220 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * m4/jm-macros.m4: Sync from coreutils.
69223         (gl_MACROS): Check for mbrlen, for pathchk.
69224         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69225
69226 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * lib/xreadlink.c (MAXSIZE): New macro.
69229         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69230         size does not exceed MAXSIZE.  Avoid cast.
69231         As suggested by Mark D. Baushke in
69232         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69233         if readlink fails with buffer size just under MAXSIZE, try again
69234         with MAXSIZE.
69235
69236 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69239
69240 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69241         and  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69244         (get_date): Overparenthesize to avoid GCC warning.
69245
69246 2004-11-02  Bruno Haible  <bruno@clisp.org>
69247
69248         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69249         returns void.
69250
69251 2004-11-02  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69254         function returns void.
69255
69256 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69259         fflush_unlocked, flockfile, funlockfile, funlockfile,
69260         fputs_unlocked, putc_unlocked.
69261
69262 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69263
69264         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69265         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69266         already declared.
69267
69268 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69269
69270         * modules/getdate (Files): Add doc/getdate.texi.
69271         (Depends-on): Add setenv, xalloc.
69272
69273 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * lib/getdate.y: Add support for TZ="foo" within a date string.
69276         Fix some bugs near time_t boundaries.  Reject dates with
69277         out-of-range components, e.g., "Sept 31".
69278         Include <stdlib.h>, "setenv.h", "xalloc.h".
69279         (ISDIGIT_LOCALE): Remove; unused.
69280         Note that the TZ and time functions used here are not reentrant.
69281         (mktime_ok, get_tz): New functions.
69282         (TZBUFSIZE): New constant.
69283         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69284         This requires that we sometimes generate our own TZ="XXX..." setting.
69285
69286 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69287
69288         * doc/getdate.texi: New file, from coreutils with modifications for
69289         the new TZ parsing.
69290
69291 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69292
69293         * lib/mktime.c (not_equal_tm): Remove redundant check.
69294
69295 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * modules/regex (lib_SOURCES): Add regex.c.
69298         Reported by James Youngman in
69299         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69300
69301 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69302
69303         * lib/getdate.y: Use Bison 1.875 features, and some minor
69304         code cleanups.  This change does not affect semantics.
69305         Don't include <stdlib.h>; no longer needed.
69306         Don't include unlocked-io.h; only the "#if TEST" code uses
69307         stdio, and performance isn't crucial there.
69308         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69309         Bison 1.875 features as described below.
69310         All uses of "PC." replaced by "pc->".
69311         (YYSTYPE): Add a forward declaration.
69312         (yylex, yyerror): Use full prototypes in forward decls.
69313         Use "%pure-parser" rather than obsolescent "%pure_parser".
69314         Use %parse-param and %lex-param instead of obsolescent
69315         YYPARSE_PARAM and YYLEX_PARAM.
69316         (meridian_table, month_and_day_table, time_units_table,
69317         relative_time_table, time_zone_table, military_table,
69318         lookup_zone, lookup_word, get_date):
69319         Use NULL instead of 0 where appropriate.
69320         (to_hour): Avoid abort (), to avoid a dependency on
69321         stdlib.h.
69322         (yyerror, yylex): Now accepts parser_control * arg.
69323         (main) [TEST]: Use '\0' rather than 0 for char.
69324
69325 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69328
69329 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69332         It's now the caller's responsibility to handle the case where
69333         !HAVE_GETPAGESIZE && !defined getpagesize.
69334
69335         * lib/mktime.c (leapyear): Arg is long int, not int.
69336
69337 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69340
69341 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69342
69343         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69344         missing.  Problem reported by James Youngman.
69345
69346 2004-10-16  Simon Josefsson  <jas@extundo.com>
69347
69348         * gnulib-tool: Fix comments.  Fix parse problem.
69349         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69350
69351 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69354         implementation of getopt_long.  Problem reported by Alexander Taler in:
69355         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69356
69357 2004-10-15  Bruno Haible  <bruno@clisp.org>
69358
69359         * gnulib-tool: Untabify. Initialize supplied_libname.
69360         (func_usage): More homogenous output.
69361         (func_modules_transitive_closure, func_modules_to_filelist,
69362         func_emit_lib_Makefile_am): New functions.
69363         (func_import): New function, extracted from big case statement. Use
69364         func_get_license, func_modules_transitive_closure,
69365         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69366         opt_lgpl. Don't use test -a, as it's not portable.
69367         (func_create_testdir): Use func_modules_transitive_closure,
69368         func_modules_to_filelist, func_emit_lib_Makefile_am.
69369
69370 2004-10-15  Bruno Haible  <bruno@clisp.org>
69371
69372         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69373
69374 2004-10-15  Bruno Haible  <bruno@clisp.org>
69375
69376         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69377         the portions belonging to each module.
69378         Suggested by Derek Robert Price <derek@ximbiot.com>.
69379
69380 2004-10-12  Simon Josefsson  <jas@extundo.com>
69381
69382         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69383         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69384         to real functions.
69385
69386 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69387
69388         * modules/vsnprintf: New file.
69389
69390 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69391
69392         * m4/vsnprintf.m4: New file.
69393
69394 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69395
69396         * lib/vsnprintf.h: New file.
69397         * lib/vsnprintf.c: New file.
69398
69399 2004-10-11  Bruno Haible  <bruno@clisp.org>
69400
69401         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69402         vsnprintf.
69403
69404 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69407
69408 2004-10-07  Bruno Haible  <bruno@clisp.org>
69409
69410         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69411         fits into the provided buffer.
69412
69413 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         * lib/diacrit.c, diacrit.h: Add GPL notice.
69416
69417         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69418         notice.
69419         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69420         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69421         This avoids a potential constant-folding bug.
69422
69423 2004-10-05  Bruno Haible  <bruno@clisp.org>
69424
69425         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69426         for the declaration of strsep.
69427
69428 2004-10-05  Bruno Haible  <bruno@clisp.org>
69429
69430         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69431
69432 2004-10-04  Simon Josefsson  <jas@extundo.com>
69433
69434         * modules/memmem: New file.
69435         * tests/test-memmem.c: New file.
69436         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69437
69438 2004-10-04  Simon Josefsson  <jas@extundo.com>
69439
69440         * m4/memmem.m4: New file.
69441
69442 2004-10-04  Simon Josefsson  <jas@extundo.com>
69443
69444         * lib/memmem.h: New file.
69445         * lib/memmem.c: New file, taken from glibc.
69446
69447 2004-10-04  Simon Josefsson  <jas@extundo.com>
69448
69449         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69450         '#ifdef USE_UNLOCKED_IO'.
69451
69452 2004-10-04  Simon Josefsson  <jas@extundo.com>
69453
69454         * config/srclist.txt: Add memmem from glibc.
69455
69456 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69457
69458         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69459
69460         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69461         modules/exclude, modules/getdate, modules/getline,
69462         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69463         modules/getusershell, modules/linebuffer, modules/md5,
69464         modules/mountlist, modules/posixtm, modules/readtokens,
69465         modules/readutmp, modules/regex, modules/sha1,
69466         modules/version-etc, modules/yesno:
69467         Remove dependency on unlocked-io.
69468
69469 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69472
69473         * m4/unlocked-io.m4: Add copyright notice.
69474         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69475
69476 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69479         * lib/xmalloc.c (xmemdup): Likewise.
69480         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69481         XFREE): Remove these long-obsolescent macros.
69482         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69483         * lib/xstrdup.c: Remove.
69484
69485         * lib/regex.c (re_comp): Cast gettext return value to char *,
69486         Problem reported by Martin Neitzel via Mark D. Baushke.
69487
69488 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69491         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69492         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69493         regex.c, sha1.c, version-etc.c, yesno.c:
69494         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69495         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69496         the includer's responsibility.
69497
69498         Sync from coreutils.
69499
69500         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69501         points to the start of a string, as the C Standard says the
69502         resulting behavior is undefined.
69503
69504         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69505         simple -> simple_backups, numbered_existing ->
69506         numbered_existing_backups, numbered -> numbered_backups
69507         to avoid shadowing problems.  All uses changed.
69508         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69509         * lib/backupfile.c (check_extension, numbered_backup):
69510         Rename locals to avoid shadowing 'basename'.
69511         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69512         once.
69513
69514         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69515         * lib/.cvsignore: Add getopt.h.
69516
69517 2004-10-04  Bruno Haible  <bruno@clisp.org>
69518
69519         * modules/README: New file.
69520         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69521         not a module.
69522
69523 2004-10-02  Jim Meyering  <jim@meyering.net>
69524
69525         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69526
69527 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69528
69529         * modules/strsep: New file.
69530
69531 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69532
69533         * m4/strsep.m4: New file.
69534
69535 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69536
69537         * lib/strsep.h: New file.
69538         * lib/strsep.c: New file.
69539
69540 2004-10-01  Simon Josefsson  <jas@extundo.com>
69541
69542         * lib/snprintf.c (snprintf): Handle size==0.
69543
69544 2004-10-01  Simon Josefsson  <jas@extundo.com>
69545             Bruno Haible  <bruno@clisp.org>
69546
69547         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69548         (snprintf): Declare 'args'.
69549
69550 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69551
69552         * lib/snprintf.c: Remove comments as to why each header is needed.
69553
69554 2004-10-01  Bruno Haible  <bruno@clisp.org>
69555
69556         * MODULES.html.sh: Add strsep.
69557
69558 2004-09-30  Simon Josefsson  <jas@extundo.com>
69559
69560         * modules/snprintf: New file.
69561
69562 2004-09-30  Simon Josefsson  <jas@extundo.com>
69563
69564         * m4/snprintf.m4: New file.
69565
69566 2004-09-30  Simon Josefsson  <jas@extundo.com>
69567
69568         * lib/snprintf.h, lib/snprintf.c: New files.
69569
69570 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69571
69572         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69573         (hol_entry_help): Never translate an empty string.
69574         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69575         * lib/argp.h (OPTION_NO_TRANS): New option.
69576
69577 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * modules/argp (Maintainer): Replace Simon Josefsson
69580         by Sergey Poznyakoff.
69581
69582 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69585         changes merged back into glibc.
69586
69587 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69590
69591 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69592
69593         * lib/xvasprintf.c: Include xalloc.h.
69594         (xvasprintf): Use xalloc_die, not xmalloc_die.
69595
69596 2004-09-29  Bruno Haible  <bruno@clisp.org>
69597
69598         * modules/alloca-opt: New file, derived from modules/alloca.
69599         * modules/allocsa: Depend on alloca-opt instead of alloca.
69600         * modules/setenv: Likewise.
69601         * modules/vasnprintf: Likewise.
69602         * MODULES.html.sh: Add alloca-opt.
69603
69604 2004-09-28  Simon Josefsson  <jas@extundo.com>
69605
69606         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69607         LGPL, and to replace license template from GPL to LGPL.
69608
69609 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69610
69611         * modules/dummy: Change license to LGPL.
69612
69613 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69614
69615         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69616
69617 2004-09-24  Simon Josefsson  <jas@extundo.com>
69618
69619         * modules/minmax (License): Change from GPL to LGPL.
69620
69621 2004-09-23  Simon Josefsson  <jas@extundo.com>
69622
69623         * gnulib-tool (--import): Typo.
69624
69625 2004-09-23  Simon Josefsson  <jas@extundo.com>
69626
69627         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69628
69629 2004-09-22  Bruno Haible  <bruno@clisp.org>
69630
69631         * modules/*: Add 'License' field.
69632         * gnulib-tool: Accept --extract-license option.
69633         (func_get_license): New function.
69634
69635 2004-09-21  Bruno Haible  <bruno@clisp.org>
69636
69637         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69638         Reported by Simon Josefsson.
69639
69640 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69643         gl_AC_TYPE_LONG_LONG.
69644
69645 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69646
69647         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69648
69649 2004-09-18  Simon Josefsson  <jas@extundo.com>
69650         and  Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69653         calls with autoreconf.  Define GL_LIB.
69654
69655 2004-09-14  Karl Berry  <karl@gnu.org>
69656
69657         * config/srclist.txt: unsync setenv.c, sigh.
69658
69659 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69662         Problem reported by Bruno Haible in:
69663         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69664
69665 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * config/srclist.txt: Comment out argp-pvh.c.
69668
69669 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69670
69671         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69672         in case some system header has #define'd it.  Problem reported by
69673         Soeren D. Schulze in
69674         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69675
69676 2004-09-09  Karl Berry  <karl@gnu.org>
69677
69678         * regex.[ch]: delete from the root.  These were supposed to be
69679                 synced with emacs cvs, but this has not happened for about
69680                 a year, and anyway nothing else uses emacs regex.[ch].
69681                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69682                 lib/regex[.ch] is untouched.
69683
69684 2004-09-09  Bruno Haible  <bruno@clisp.org>
69685
69686         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69687
69688 2004-09-09  Bruno Haible  <bruno@clisp.org>
69689
69690         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69691         modifications.
69692         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69693
69694 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69695
69696         * modules/xvasprintf: New file.
69697         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69698
69699 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69700
69701         * lib/xvasprintf.h: New file.
69702         * lib/xvasprintf.c: New file.
69703         * lib/xasprintf.c: New file.
69704
69705 2004-09-08  Bruno Haible  <bruno@clisp.org>
69706
69707         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69708
69709 2004-09-08  Bruno Haible  <bruno@clisp.org>
69710
69711         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69712         length is > INT_MAX.
69713         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69714         more.
69715
69716 2004-09-08  Bruno Haible  <bruno@clisp.org>
69717
69718         * lib/stdint_.h: New file, taken from GNU clisp.
69719
69720 2004-09-08  Bruno Haible  <bruno@clisp.org>
69721             Oskar Liljeblad  <oskar@osk.mine.nu>
69722
69723         * modules/stdint: New file.
69724         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69725
69726 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         Import from coreutils.
69729         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69730         strings on unbounded length.  alloca's performance benefits aren't
69731         that important here.
69732         (V_STRDUP): Remove.
69733         (parse_with_separator): New function, with most of the internals
69734         of the old parse_user_spec.  Allow user to omit both user and group,
69735         for compatibility with FreeBSD.
69736         Clone only the user name, not the entire spec.
69737         Do not set *uid, *gid unless entirely successful.
69738         Avoid memory leak in some failing cases.
69739         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69740         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69741         (parse_user_spec): Rewrite to use parse_with_separator.
69742
69743 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * modules/userspec: Don't depend on alloca.
69746
69747 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69750
69751 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69754         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69755         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69756
69757 2004-08-16  Simon Josefsson  <jas@extundo.com>
69758
69759         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69760         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69761         Add --dry-run for --import.
69762         Let user provided command line parameters override configure.ac
69763         settings.
69764
69765 2004-08-12  Simon Josefsson  <jas@extundo.com>
69766
69767         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69768         as discussed with Paul Eggert in threads rooted at
69769         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69770         and
69771         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69772         Before, the test was empty, and relied on ELIDE_CODE in source
69773         code.)
69774         (gl_PREREQ_GETOPT): New macro.
69775         (gl_GETOPT): Use them.
69776
69777 2004-08-12  Simon Josefsson  <jas@extundo.com>
69778
69779         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69780         * lib/getopt_.h: Renamed from getopt.h.
69781
69782 2004-08-12  Simon Josefsson  <jas@extundo.com>
69783
69784         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69785         Change default library name from libfoo to libgnu.
69786         Now, if you have a configure.ac that says:
69787                 gl_SOURCE_BASE(gl)
69788                 gl_M4_BASE(gl/m4)
69789                 gl_MODULES(error getopt etcetera)
69790                 gl_INIT
69791         you can import all you need by running:
69792                 ../gnulib/gnulib-tool --import
69793
69794         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69795         (Makefile.am): Rewrite, use logic from argz.
69796         (Include): Use <getopt.h> instead of "getopt.h".
69797
69798 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69799
69800         * modules/argp (Files): Add m4/unlocked-io.m4.
69801         (Depends-on): Add extensions.
69802
69803 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69806         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69807         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69808         Check for program_invocation_name, program_invocation_short_name,
69809         flockfile, funlockfile, features.h, _getopt_long_only_r.
69810
69811 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69814         its complicated substitute.
69815         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69816         and program_invocation_name.
69817         (__argp_basename) [!_LIBC]: Remove; the only use was
69818         replaced by its body.
69819         (__argp_short_program_name): Change condition from
69820         !defined __argp_short_program_name to
69821         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69822         to match argp-namefrob.h.
69823         (__argp_failure): Don't assume strerror_r returns char *.
69824         * lib/argp-parse.c (N_): Define unconditionally.
69825         (argp_default_options): Fill out initializers with 0 to avoid
69826         gcc warnings.
69827
69828 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69829
69830         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69831         getopt1.c.
69832
69833 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         Merge from coreutils.
69836
69837         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69838
69839         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69840         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69841
69842 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         Merge from coreutils.
69845
69846         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69847         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69848         for Reliant Unix 5.43.
69849
69850         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69851         (union fooround): Use uintmax_t, not long int.
69852         The rest is a merge from libc:
69853         [defined _LIBC]: Include <shlib-compat.h>.
69854         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69855
69856         * lib/settime.c (settime): Recode to avoid warning with
69857         Sun Forte C 6U2.
69858
69859         * lib/strverscmp.c: Convert to UTF-8.
69860
69861 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69864         m4/uintmax_t.m4.
69865
69866 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * modules/xalloc-die: New file.
69869         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69870
69871         * modules/md5 (Files): Add m4/uint32_t.m4.
69872         * modules/sha1: Renamed from modules/sha.
69873         (Files):
69874         Rename lib/sha.h to lib/sha1.h.
69875         Rename lib/sha.c to lib/sha1.c.
69876         Rename m4/sha.m4 to m4/sha1.m4.
69877         (lib_SOURCES): Likewise.
69878         (configure.ac): Rename gl_SHA to gl_SHA1.
69879         (Include): sha.h -> sha1.h.
69880
69881 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69884         * m4/sha1.m4: Renamed from sha.m4.
69885         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69886
69887 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * lib/obstack.h (obstack_empty_p):
69890         Don't assume that chunk->contents is suitably aligned.
69891         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69892         Likewise. Problem reported by Benno in
69893         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69894
69895         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69896         readable.  This could be improved further but it'd take some work.
69897
69898 2004-08-08  Simon Josefsson  <jas@extundo.com>
69899
69900         * modules/xgethostname (Depends-on): Remove exit and error (not
69901         used).
69902
69903         * modules/getpass-gnu: Add getpass.h.
69904         (Depends-on): Add stdbool.
69905         * modules/getpass: Add getpass.h.
69906
69907 2004-08-08  Simon Josefsson  <jas@extundo.com>
69908
69909         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69910         Check getpass declaration.
69911
69912 2004-08-08  Simon Josefsson  <jas@extundo.com>
69913
69914         * lib/xgethostname.c: Don't include error.h (not used).
69915
69916         * lib/getpass.h: Add.
69917         * lib/getpass.c: Include getpass.h first.
69918
69919 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69920
69921         * lib/xalloc-die.c: New file.
69922         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69923         All uses removed.
69924         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69925         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69926         xalloc-die.c.
69927         (_, N_, xalloc_die): Move to xalloc-die.c.
69928         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69929         so that we needn't mess with xalloc_msg_memory_exhausted.
69930
69931         * lib/sha1.h: Renamed from sha.h.
69932         (SHA1_H): Renamed from _SHA_H.
69933         (sha1_ctx): Renamed from sha_ctx.
69934         (sha1_init_ctx): Renamed from sha_init_ctx.
69935         (sha1_process_block): Renamed from sha_process_block.
69936         (sha1_process_bytes): Renamed from sha_process_bytes.
69937         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69938         (sha1_read_ctx): Renamed from sha_read_ctx.
69939         (sha1_stream): Renamed from sha_stream.
69940         (sha1_buffer): Renamed from sha_buffer.
69941         * lib/sha1.c: Likewise; renamed from sha.c.
69942         Do not include <sys/types.h>.
69943         Include <stddef.h> rather than <stdlib.h>.
69944
69945 2004-08-08  Bruno Haible  <bruno@clisp.org>
69946
69947         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69948         FILESYSTEM_PREFIX_LEN.
69949         * lib/progreloc.c: Likewise.
69950         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69951
69952 2004-08-06  Simon Josefsson  <jas@extundo.com>
69953
69954         * modules/progname (Depends-on): Don't depend on stdbool.
69955
69956 2004-08-06  Simon Josefsson  <jas@extundo.com>
69957
69958         * modules/getsubopt: New file.
69959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69960         getsubopt.
69961
69962 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         More merge from coreutils.
69965
69966         * m4/utimens.m4, m4/utimecmp.m4: New files.
69967         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69968         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69969         prereq.m4, sha.m4: Import changes from coreutils.
69970
69971 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         More merge from coreutils.
69974         * modules/raise, modules/readtokens0, modules/utimens:
69975         * modules/utimecmp, module/xnanosleep: New files.
69976         * modules/strftime: Add lib/strftime.h.
69977         Change include from <time.h> to "strftime.h".
69978         * modules/yesno: Add lib/yesno.h.
69979         * modules/backupfile: Remove lib/addext.c.
69980         * modules/euidaccess: Add stat-macros.h.
69981         * modules/canonicalize, modules/euidaccess,
69982         modules/filemode, modules/lchown, modules/makepath,
69983         modules/rmdir, modules/stat: Likewise.
69984
69985 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69986
69987         Merge from tar.
69988         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69989         SIZE_MAX is a valid preprocessor constant.
69990         (__argp_basename): Change from "#ifndef _LIBC"
69991         to "#ifndef __argp_short_program_name", so that
69992         we don't compile these functions for tar.
69993
69994         More merges from coreutils.
69995         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69996         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69997         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69998         * lib/addext.c: Remove; no longer needed.
69999         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70000         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70001         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70002         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70003         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70004         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70005         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70006         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70007         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70008         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70009         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70010         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70011         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70012         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70013         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70014         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70015         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70016         Import changes from coreutils.
70017
70018 2004-08-05  Simon Josefsson  <jas@extundo.com>
70019
70020         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70021
70022 2004-08-05  Simon Josefsson  <jas@extundo.com>
70023
70024         * m4/getsubopt.m4: New file.
70025
70026 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         Merge from coreutils.
70029
70030         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70031         * m4/getcwd-path-max.m4: New files.
70032
70033         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70034         FILESYSTEM_PREFIX_LEN ->
70035         FILE_SYSTEM_PREFIX_LEN.
70036         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70037         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70038         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70039         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70040
70041         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70042         prerequisite modules now handle the DOS stuff.
70043         Don't check for unistd.h.
70044
70045 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70046
70047         Merge from coreutils.
70048
70049         * lib/.gdb-history: Remove; this doesn't belong here.
70050
70051         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70052         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70053         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70054         * lib/getcwd.c: New files.
70055
70056         * lib/dirname.h: Include <stdbool.h>.
70057         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70058         for consistency with POSIX terminology.  All uses changed.
70059         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70060         (strip_trailing_slashes): Use bool for booleans.
70061         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70062
70063         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70064         sometimes returns a positive errno value even when it succeeds.
70065         (print_errno_message) [!LIBC]: Fall back on strerror if
70066         __strerror_r fails.
70067
70068         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70069         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70070         (longest_relative_suffix): New function.
70071         (path_concat): Use it.  Assume first argument is not NULL.
70072         Port to DOS.  Omit redundant separators.
70073         Report an error instead of returning NULL.
70074         Use mempcpy instead of memcpy.
70075         (xpath_concat): Remove: not declared or used.
70076
70077         * lib/same.h: Include <stdbool.h>
70078         (same_name): Return bool, not int.
70079         * lib/same.c (same_name): Likewise.
70080         (errno): Don't declare; we assume C89 or better now.
70081
70082         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70083         if not already defined.
70084
70085         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70086         * lib/dup-safer.c (errno): Likewise.
70087
70088 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70089
70090         Merge from coreutils.
70091         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70092         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70093         * modules/path-concat: Don't depend on strdup.
70094
70095 2004-08-03  Simon Josefsson  <jas@extundo.com>
70096
70097         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70098         * lib/progname.h: Don't include stdbool.h.
70099
70100 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70103         * MODULES.html.sh (func_all_modules): Remove fatal.
70104
70105 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70106
70107         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70108
70109 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70110
70111         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70112         working.
70113
70114 2004-08-02  Simon Josefsson  <jas@extundo.com>
70115
70116         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70117         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70118         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70119
70120 2004-08-01  Simon Josefsson  <jas@extundo.com>
70121
70122         * lib/xgetdomainname.c: Include stdlib.h, for free().
70123
70124 2004-07-19  Bruno Haible  <bruno@clisp.org>
70125
70126         * MODULES.html.sh (func_all_modules): Add dummy.
70127
70128 2004-07-16  Simon Josefsson  <jas@extundo.com>
70129
70130         * modules/dummy: New file.
70131
70132 2004-07-16  Simon Josefsson  <jas@extundo.com>
70133
70134         * lib/dummy.c: New file.
70135
70136 2004-07-16  Bruno Haible  <bruno@clisp.org>
70137
70138         * lib/backupfile.h: Add extern "C" for C++.
70139         * lib/closeout.h: Likewise.
70140         * lib/copy-file.h: Likewise.
70141         * lib/findprog.h: Likewise.
70142         * lib/full-write.h: Likewise.
70143         * lib/pathname.h: Likewise.
70144         * lib/progname.h: Likewise.
70145         * lib/stpcpy.h: Likewise.
70146         * lib/stpncpy.h: Likewise.
70147         * lib/strcase.h: Likewise.
70148         * lib/strstr.h: Likewise.
70149         * lib/xalloc.h: Likewise.
70150
70151         * lib/mbswidth.h: Add extern "C" for C++.
70152         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70153
70154 2004-07-13  Robert Millan  <robertmh@gnu.org>
70155
70156         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70157
70158 2004-07-09  Simon Josefsson  <jas@extundo.com>
70159
70160         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70161         failed without this.)
70162
70163 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70164
70165         * modules/chown (Files): Add lib/fchown-stub.c, since
70166         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70167
70168 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70169
70170         * lib/fchown-stub.c: New file.
70171
70172 2004-06-24  Jim Meyering  <jim@meyering.net>
70173
70174         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70175
70176 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * modules/argz: Omit "#include".
70179
70180         * MODULES.html.sh (func_all_modules): Add calloc, to match
70181         2004-06-01 addition of calloc module.
70182
70183 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * m4/argz.m4: New file, which is autoupdated from libtool.
70186
70187 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70190         libtool.
70191
70192 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * config/srclist-update: Don't insist on "USA." before the
70195         close-comment, as libtool omits the period and puts the */ on a
70196         separate line.
70197         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70198         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70199
70200 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70201
70202         * modules/argz: New file.
70203         * MODULES.html.sh (func_all_modules): Add argz.
70204
70205 2004-06-12  Jim Meyering  <jim@meyering.net>
70206         and  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * modules/hash (Files): Add lib/xalloc.h.
70209         * modules/pipe (Depends-on): Add wait-process.
70210         * modules/stat (Depends-on): Add xalloc.
70211         * modules/userspec (Files): Add lib/userspec.h.
70212         * modules/xstrto
70213
70214         Upgrade from gettext-0.13.
70215         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70216         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70217         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70218
70219 2004-06-10  Jim Meyering  <jim@meyering.net>
70220
70221         * lib/calloc.c: New file.
70222
70223 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70224
70225         * lib/getdate.y (yylex): Allow space between sign and number.
70226         Problem reported by Dan Jacobson.
70227
70228 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70229
70230         Merge from coreutils CVS.
70231
70232         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70233         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70234         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70235         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70236         xstrtol.m4: Fix copyright date and/or serial number.
70237
70238         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70239         See if we need an fchown replacement.
70240         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70241         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70242         and use the replacement function if we detect either defect.
70243
70244         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70245         gl_UTIMECMP.
70246
70247 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70248         and  Jim Meyering  <jim@meyering.net>
70249
70250         Merge from coreutils CVS.
70251
70252         * lib/stat-macros.h: New file, with contents from file-type.h
70253         and coreutils' system.h.
70254         * lib/file-type.c: Include "stat-macros.h".
70255         * lib/file-type.h (file_type): Move all macro definitions to new file,
70256         stat-macros.h.
70257
70258         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70259         Wrap old code with this conditional.
70260         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70261         function that does not dereference symlinks.
70262         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70263
70264         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70265         dependency problems.
70266         (xreadlink): Accept new arg SIZE, for efficiency.
70267         All decls and uses changed.
70268         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70269
70270         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70271         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70272
70273         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70274         sysexits.h.
70275
70276 2004-06-01  Jim Meyering  <jim@meyering.net>
70277
70278         * m4/calloc.m4: New file.
70279
70280 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70283         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70284         Also, fix a typo in a diagnostic.
70285
70286 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70287
70288         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70289         or AC_FUNC_REALLOC.
70290
70291 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70292
70293         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70294         macros to be defined.
70295         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70296         the allocator returns NULL because the requested size is zero.
70297
70298 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70301         var.  Add comment explaining why libc still defines it.  This
70302         merges the following patch from glibc:
70303         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70304
70305 2004-05-20  Andreas Schwab  <schwab@suse.de>
70306
70307         * m4/free.m4: Replace free if it not known to work, not the other
70308         way round.
70309
70310 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70313         present in glibc since revision 1.1 of this file.
70314         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70315         obstack_alignment_mask, obstack_alloc, obstack_base,
70316         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70317         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70318         obstack_grow0, obstack_init, obstack_int_grow,
70319         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70320         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70321         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70322         nonexistent functions.
70323
70324 2004-05-18  Karl Berry  <karl@gnu.org>
70325
70326         * config/srclist.txt: break link for vasnprintf.c.
70327
70328 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70329
70330         Port obstack to the AS/400, where pointers are 16 bytes wide and
70331         you cannot cast an integer to a valid pointer.  This patch is
70332         currently waiting to be integrated into glibc; see
70333         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70334
70335         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70336         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70337         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70338         (struct obstack): temp member is now a union of a pointer and
70339         an integer, instead of an integer.  All integer uses changed.
70340         This does not affect the physical layout of struct obstack,
70341         except on hosts (like the AS/400) where the size or alignment of
70342         void * is greater than that of ptrdiff_t.
70343         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70344         __STDC__)]: Store temporary in pointer member of union, not
70345         integer member.
70346         * lib/obstack.c: Include <stddef.h>, for offsetof.
70347         (struct fooalign): Remove; it doesn't need a name.
70348         (union fooround): Change double to long double, and add void *.
70349         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70350         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70351         not a macro.  Hence the values are always int; so remove all
70352         casts-to-int in uses.
70353
70354 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70355
70356         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70357         we can get this patch merged into glibc.
70358
70359 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70360             Paul Eggert  <eggert@cs.ucla.edu>
70361
70362         * m4/argp: Depend on alloca.
70363
70364 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70365             Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70368         freecoding.
70369
70370 2004-05-17  Bruno Haible  <bruno@clisp.org>
70371
70372         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70373         precision that consists of a '.' followed by an empty digit string.
70374         Patch by Tor Lillqvist <tml@iki.fi>.
70375
70376 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70377
70378         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70379         for backward compatibility with older code.  We need our own
70380         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70381         it under some other name, and our alloca.h will define it.
70382
70383 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70384             Derek Price  <derek@ximbiot.com>
70385
70386         * lib/alloca.c: Include <alloca.h>, to get our interface.
70387         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70388         include <alloca.h> first.  Use C89 prototype for alloca; this
70389         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70390         Use #elif for simplicity, since we can assume C89 now.
70391         Don't try to source the system alloca.h since it will not be found
70392         and to prevent recursively including its replacement.
70393         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70394         * lib/regex.c: Likewise.
70395
70396 2004-05-16  Derek Price  <derek@ximbiot.com>
70397             Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         getline cleanup.  This changes the getndelim2 API: both order of
70400         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70401         no delimiter).
70402
70403         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70404         interface does that.
70405         (getline): Always use getdelim, so that we don't have two
70406         copies of this code.
70407         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70408         if available.
70409         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70410         (GETNDELIM2_MAXIMUM): New macro.
70411         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70412         instead of the old practice of delim2==0.  All callers changed.
70413         Return -1 on overflow, instead of returning junk.
70414         Do not set *linesize unless allocation succeeds.
70415         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70416         that we include sys/types.h.
70417         * lib/getnline.h: Likewise.
70418         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70419         (getndelim2): Reorder arguments.
70420         * lib/getnline.c (getnline, getndelim):
70421         Don't discard the NMAX argument.
70422         (getnline): Invoke getndelim, to avoid code duplication.
70423         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70424         of (size_t) -1 by callers of the getnline family.
70425
70426 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70429         Check for gettimeofday.
70430         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70431         Check for settimeofday, stime.
70432
70433 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * lib/nanosleep.c (suspended): Change its type from int to
70436         sig_atomic_t volatile.
70437         (first_call): Make it private to rpl_nanosleep, and have it
70438         be zero initially as that's a bit faster.
70439         (my_usleep): Round up fractional times instead of truncating them,
70440         as this is the usual meaning for 'sleep'.
70441
70442         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70443         doesn't work.
70444         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70445         (ENOSYS): Define if not defined.
70446         (settime): Fall back on stime if it exists and settimeofday fails.
70447         But don't bother with fallbacks if a method fails with errno == EPERM.
70448
70449 2004-05-11  Jim Meyering  <jim@meyering.net>
70450
70451         Prior to this change, the save_cwd caller required read access to the
70452         current directory on most systems (ones with the fchdir function).
70453
70454         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70455         fails, try write-only, and finally, resort to using xgetcwd.
70456
70457 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70458
70459         * lib/obstack.c, obstack.h: Import changes from libc.
70460
70461 2004-04-28  Bruno Haible  <bruno@clisp.org>
70462
70463         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70464         also implicitly appends .exe to executables.
70465         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70466         accepts Windows pathnames.
70467         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70468         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70469         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70470         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70471         Reported by Derek Robert Price <derek@ximbiot.com>.
70472
70473 2004-04-21  Karl Berry  <karl@gnu.org>
70474
70475         * config/srclist.txt (localcharset.c): break sync.
70476
70477 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70478
70479         * m4/host-os.m4: Add a copyright notice.
70480
70481 2004-04-20  Jim Meyering  <jim@meyering.net>
70482
70483         Change UTILS_ to gl_ in AC_DEFINE'd names.
70484         Change utils_- and jm_-prefixed variables, too.
70485         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70486         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70488
70489         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70490         Don't emit trailing blanks.
70491         Also rename jm_-prefixed variables to have gl_ prefix.
70492
70493         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70494         Also rename jm_-prefixed variables to have gl_ prefix.
70495
70496         * m4/jm-macros.m4: Reflect the renamings.
70497         * m4/prereq.m4: Likewise.
70498
70499 2004-04-20  Jim Meyering  <jim@meyering.net>
70500
70501         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70502         memory.
70503
70504 2004-04-20  Jim Meyering  <jim@meyering.net>
70505             Bruno Haible  <bruno@clisp.org>
70506
70507         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70508         memory when realloc fails.
70509
70510 2004-04-19  Jim Meyering  <jim@meyering.net>
70511
70512         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70513         now that readutmp.c may call `free (0)'.
70514
70515 2004-04-19  Bruno Haible  <bruno@clisp.org>
70516
70517         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70518         * m4/inttypes_h.m4: Likewise.
70519         * m4/stdint_h.m4: Likewise.
70520         * m4/intmax_t.m4: Likewise.
70521         * m4/uintmax_t.m4: Likewise.
70522
70523 2004-04-18  Jim Meyering  <jim@meyering.net>
70524
70525         * m4/prereq.m4: Don't forbid jm_ prefix.
70526
70527         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70528         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70529         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70530         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70531         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70532         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70533         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70534         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70535         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70536         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70537         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70538         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70539         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70540         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70541         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70542         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70543         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70544         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70545         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70546
70547 2004-04-18  Jim Meyering  <jim@meyering.net>
70548
70549         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70550         failure, don't leak memory and do call END_UTMP_ENT.
70551
70552 2004-04-16  Jim Meyering  <jim@meyering.net>
70553
70554         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70555         coreutils' stat program.
70556         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70557
70558 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70559
70560         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70561         C89.
70562         (CHAR_BIT): Remove, since we assume C89.
70563         Include <stdint.h> if available, as per current Autoconf CVS advice.
70564
70565 2004-03-31  Jim Meyering  <jim@meyering.net>
70566
70567         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70568         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70569         * m4/xalloc.m4: Likewise.
70570
70571 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70572
70573         Merge from coreutils.
70574
70575         * m4/inttostr.m4: New file.
70576         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70577         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70578         Require gl_CLOCK_TIME.
70579         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70580
70581 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70582
70583         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70584         not bool, to be more consistent with Unix conventions.
70585         Suggested by Bruno Haible.
70586
70587         Merge from coreutils.
70588
70589         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70590         * lib/umaxtostr.c: New files.
70591
70592         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70593         the usual <time.h> dance.
70594         (get_date): Change signature to support fractional time stamps.
70595         All callers changed.
70596         * lib/getdate.y: Include "getdate.h" first, as we can now
70597         assume C89 and don't need to worry about 'const'.
70598         Similarly, include "unlocked-io.h" near start, not in middle.
70599         Include <limits.h>.
70600         (textint.value): Use long int rather than int.
70601         (textint.digits): Use size_t rather than int.
70602         (BILLION, LOG10_BILLION): New constants.
70603         (parser_control): New member rel_ns.  Members day_ordinal,
70604         time_zone, month, day, hour, minutes, rel_year, rel_month,
70605         rel_day, rel_hour, rel_minutes, rel_seconds
70606         are now long int, not int.  Member seconds is now struct timespec,
70607         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70608         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70609         not int.
70610         (%union.intval): Now long int, not int.
70611         New member timespec.
70612         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70613         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70614         (spec): Now is a timespec or an item list.
70615         (timespec, items): New nonterminals.
70616         (time, rel, relunit, number, get_date):
70617         Add support for fractional seconds.
70618         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70619         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70620         (to_hour): First arg is now long int, not int.
70621         (to_year): Returns long int, not int.
70622         Don't treat year -70 like 70.
70623         (tm_diff): Returns long int, not int.
70624         (lookup_word): Use bool instead of int when appropriate.
70625         (yylex): Use size_t for count, not int.
70626         Detect overflow when parsing large integer constants.
70627         Add support for fractions.
70628         (get_date): Make pointers 'const' if possible.
70629         Use more-portable code to detect integer overflow.
70630         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70631         Don't use ctime; it's not reliable if the year has >4 digits.
70632
70633         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70634         This is for compatibility with BSD.
70635
70636         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70637         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70638         From coreutils' system.h.
70639
70640         * lib/userspec.c: Don't include "posixver.h".
70641         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70642         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70643         compatible extension.  Simplify code by removing a boolean int
70644         that was always nonzero if a string was nonnull.
70645
70646 2004-03-30  Jim Meyering  <jim@meyering.net>
70647
70648         Merge from coreutils.
70649
70650         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70651         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70652         on some systems one must include <grp.h> before it.
70653         Reported by Christian Krackowizer.
70654
70655 2004-03-30  Jim Meyering  <jim@meyering.net>
70656
70657         Merge from coreutils.
70658
70659         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70660
70661         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70662         an empty input stream.
70663
70664         * lib/readtokens.c: Include <stdbool.h>.
70665         (readtoken): Use `size_t' rather than int/long.
70666         All callers adjusted.
70667         Use `bool' rather than `int' where appropriate.
70668         Use memset rather than an explicit loop.
70669         Use x2nrealloc rather than xrealloc.
70670         Allow the use of `\0' as a delimiter.
70671         (readtokens): Likewise.
70672         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70673
70674 2004-03-30  Jim Meyering  <jim@meyering.net>
70675
70676         * m4/realloc.m4: Remove file, since now it does no more than
70677         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70678         the `configure.ac' section of module/realloc.
70679         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70680
70681 2004-03-30  Bruno Haible  <bruno@clisp.org>
70682
70683         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70684         nonnull.
70685
70686 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70687
70688         Merge changes to getloadavg.c from coreutils and Emacs.
70689
70690         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70691         Define to an expression, not to the empty string.
70692         Include cloexec.h and xalloc.h.
70693         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70694         Use set_cloexec_flag rather than rolling our own.
70695         * lib/cloexec.c, lib/cloexec.h: New files.
70696
70697 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70698
70699         * m4/cloexec.m4: New file.
70700
70701 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70702
70703         * lib/getopt.h: Sync with libc CVS.
70704
70705 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70706             Bruno Haible  <bruno@clisp.org>
70707
70708         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70709         mbswidth.
70710
70711 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70712             Bruno Haible  <bruno@clisp.org>
70713
70714         * lib/mbswidth.h: Include <wchar.h> only if
70715         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70716         <wchar.h>.
70717         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70718
70719 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70720
70721         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70722         Sync with libc CVS.
70723         * lib/getopt_int.h: New file, also synced from libc.
70724
70725 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70726
70727         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70728         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70729         Bring back getopt.c, getopt.h, getopt1.c.
70730
70731 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70732
70733         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70734         All uses changed.  Check for sa_sigaction member; this fixes
70735         a bug first reported by Jason Andrade in
70736         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70737
70738 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70739
70740         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70741         '#if' expressions.  Unlike the code it replaces, it does not
70742         depend on (defined _SC_PAGESIZE).  However, it does depend on
70743         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70744         first reported by Jason Andrade in
70745         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70746
70747 2004-02-25  Simon Josefsson  <jas@extundo.com>
70748
70749         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70750
70751 2004-02-25  Simon Josefsson  <jas@extundo.com>
70752
70753         * lib/strdup.h: New file.
70754         * lib/strdup.c: Include it.
70755         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70756         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70757
70758 2004-02-23  Karl Berry  <karl@gnu.org>
70759
70760         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70761         (from fencepost.gnu.org:/gd/gnuorg).
70762
70763 2004-02-23  Karl Berry  <karl@gnu.org>
70764
70765         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70766         * config/srclist.txt: add maintain/standards documents.
70767
70768 2004-02-18  Bruno Haible  <bruno@clisp.org>
70769
70770         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70771         Reported by Derek Robert Price <derek@ximbiot.com>.
70772
70773 2004-02-16  Karl Berry  <karl@gnu.org>
70774
70775         * config/mkinstalldirs, install-sh: update from automake.
70776
70777 2004-02-06  Karl Berry  <karl@gnu.org>
70778
70779         * m4/po.m4: update from gettext 0.14.1.
70780
70781 2004-02-06  Karl Berry  <karl@gnu.org>
70782
70783         * lib/config.charset: update from gettext 0.14.1.
70784
70785 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70786
70787         Add comments and code, prompted by suggestions from Bruno Haible
70788         for sh-quote.
70789         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70790         describing the enum quoting_style values.
70791         * lib/quotearg.c (quotearg_alloc): New function.
70792         (quotearg_buffer_restyled): Treat lone { and } as special.
70793         Treat = as special.  Work around bug with older shells
70794         that "see" a '\' that is really the 2nd byte of a multibyte char.
70795         Quote empty string with shell_quoting_style.
70796
70797 2004-02-03  Bruno Haible  <bruno@clisp.org>
70798
70799         * m4/pipe.m4: New file, from GNU gettext.
70800
70801 2004-02-03  Bruno Haible  <bruno@clisp.org>
70802
70803         * lib/pipe.h: New file, from GNU gettext.
70804         * lib/pipe.c: New file, from GNU gettext.
70805
70806 2004-01-27  Bruno Haible  <bruno@clisp.org>
70807
70808         * m4/execute.m4: New file, from GNU gettext.
70809
70810 2004-01-27  Bruno Haible  <bruno@clisp.org>
70811
70812         * lib/execute.h: New file, from GNU gettext.
70813         * lib/execute.c: New file, from GNU gettext.
70814         * lib/w32spawn.h: New file, from GNU gettext.
70815
70816 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70817
70818         Merge from diffutils.
70819
70820         * lib/file-type.c (file_type): Add typed memory objects.
70821         * lib/file-type.h (S_TYPEISTMO): New macro.
70822
70823         * lib/c-stack.h (c_stack_action): Remove argv argument.
70824         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70825         (die): Don't calculate message unless segv_action returns.
70826         (get_stack_location, min_address_from_argv, max_address_from_argv,
70827         volatile stack_base, volatile_stack_size): Remove.
70828         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70829         that every segmentation violation is a stack overflow.  (Ouch!)
70830         See Debian bug 136249 (still outstanding) for more info about why
70831         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70832
70833 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70834
70835         Exit-status fix from coreutils.
70836
70837         Use exit_failure consistently in place of EXIT_FAILURE,
70838         so that program exit statuses are consistent on failure.
70839
70840         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70841         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70842         * lib/argmatch.h: Comment fix to match the above.
70843         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70844         Now a macro referring to exit_failure, instead of a separate
70845         variable.  Include "exitfail.h" to get it.
70846         * lib/xstrtol.h: Include "exitfail.h".
70847         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70848
70849         * lib/long-options.c (parse_long_options): Use prototype
70850         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70851         for clarity.
70852
70853 2004-01-21  Jim Meyering  <jim@meyering.net>
70854
70855         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70856         so as not to conflict with a different-sized __mktime_internal
70857         function in GNU libc.
70858         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70859         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70860
70861 2004-01-20  Karl Berry  <karl@gnu.org>
70862
70863         * config/config.guess: update from config.
70864
70865         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70866
70867 2004-01-20  Bruno Haible  <bruno@clisp.org>
70868
70869         Safer stack allocation.
70870         * lib/setenv.c: Include allocsa.h.
70871         (alloca): Remove fallback definition.
70872         (freea): Remove macro.
70873         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70874         instead of freea.
70875
70876 2004-01-20  Bruno Haible  <bruno@clisp.org>
70877
70878         * m4/eealloc.m4: New file, from GNU gettext.
70879
70880 2004-01-20  Bruno Haible  <bruno@clisp.org>
70881
70882         * m4/allocsa.m4: New file, from GNU gettext.
70883
70884 2004-01-20  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/xallocsa.h: New file, from GNU gettext.
70887         * lib/xallocsa.c: New file, from GNU gettext.
70888
70889 2004-01-20  Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70892
70893 2004-01-20  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70896         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70897         specially.
70898
70899 2004-01-20  Bruno Haible  <bruno@clisp.org>
70900
70901         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70902         patch.
70903
70904 2004-01-20  Bruno Haible  <bruno@clisp.org>
70905
70906         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70907
70908 2004-01-20  Bruno Haible  <bruno@clisp.org>
70909
70910         * lib/eealloc.h: New file.
70911
70912 2004-01-20  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/binary-io.h: Avoid warnings on Cygwin.
70915
70916 2004-01-20  Bruno Haible  <bruno@clisp.org>
70917
70918         * lib/allocsa.h: New file, from GNU gettext.
70919         * lib/allocsa.c: New file, from GNU gettext.
70920
70921 2004-01-18  Karl Berry  <karl@gnu.org>
70922
70923         * doc/gpl.texi, doc/lgpl.texi: new files.
70924
70925 2004-01-18  Karl Berry  <karl@gnu.org>
70926
70927         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70928         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70929
70930 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70931
70932         Merge from coreutils.
70933
70934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70935         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70936         (gl_DEFAULT_POSIX2_VERSION): Move
70937         the documentation from 'configure' into 'config.hin',
70938         so that 'configure --help' isn't burdened by it and
70939         we don't have to worry about its formatting there.
70940         Reword the documentation so that it's more succinct
70941         and can be run together into a single paragraph.
70942         * m4/same.m4 (gl_SAME): Check for pathconf.
70943
70944 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70945
70946         Merge from coreutils.
70947
70948         * lib/posixver.c: Include posixver.h.
70949
70950         * lib/same.c: Include <stdbool.h>, <limits.h>.
70951         (_POSIX_NAME_MAX): Define if not defined.
70952         (MIN): New macro.
70953         (same_name): If file names are silently truncated, report
70954         that the file names are the same if they are the same after
70955         the silent truncation.
70956
70957         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70958         conversion function.
70959         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70960         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70961         longer needed.
70962
70963 2004-01-15  Jim Meyering  <jim@meyering.net>
70964
70965         Merge from coreutils.
70966
70967         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70968         if no library is required.
70969         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70970         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70971         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70972         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70973         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70974         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70975         value, $ac_cv_search_crypt, if it's "none required".
70976         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70977         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70978         not gl_FUNC_GETLOADAVG.
70979         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70980         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70981
70982 2004-01-15  Jim Meyering  <jim@meyering.net>
70983
70984         Merge from coreutils.
70985
70986         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70987         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70988         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70989
70990         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70991         optional configure-time default.
70992
70993         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70994
70995         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70996
70997 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70998
70999         Merge from coreutils.
71000
71001         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71002         value, $ac_cv_search_nanosleep, if it's "none required".
71003
71004 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71005
71006         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71007         with like-named macro in fnmatch.c.
71008         (EXT): Use an internal constant instead.
71009
71010         Merge fnmatch patches from glibc.
71011         * lib/fnmatch.c (mbsinit): Remove define.
71012         Add libc_hidden_ver (__fnmatch, fnmatch).
71013         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71014         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71015
71016 2004-01-14  Karl Berry  <karl@gnu.org>
71017
71018         * config/install-sh: update from automake.
71019
71020 2004-01-13  Karl Berry  <karl@gnu.org>
71021
71022         * config/install-sh: update from automake.
71023
71024 2004-01-09  Karl Berry  <karl@gnu.org>
71025
71026         * config/install-sh: update from automake.
71027
71028 2004-01-05  Karl Berry  <karl@gnu.org>
71029
71030         * config/config.{sub,guess}: update from config.
71031
71032 2003-12-31  Karl Berry  <karl@gnu.org>
71033
71034         * config/depcomp: update from automake.
71035
71036 2003-12-14  Karl Berry  <karl@gnu.org>
71037
71038         * lib/config.charset: update from gettext-runtime.
71039
71040 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71041
71042         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71043         Bug reported by Alfred M. Szmidt.
71044
71045 2003-12-03  Bruno Haible  <bruno@clisp.org>
71046
71047         * m4/gettext.m4: Upgrade from gettext-0.13.
71048         * m4/po.m4: Upgrade from gettext-0.13.
71049         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71050         * m4/intmax.m4: New file, from gettext-0.13.
71051         * m4/printf-posix.m4: New file, from gettext-0.13.
71052
71053 2003-11-29  Karl Berry  <karl@gnu.org>
71054
71055         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71056
71057 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71058             Bruno Haible  <bruno@clisp.org>
71059
71060         * lib/printf-parse.h: Don't include sys/types.h.
71061         (ARG_NONE): New macro.
71062         (char_directive): Change type of *arg_index fields to size_t.
71063         * lib/printf-parse.c: Don't include sys/types.h.
71064         (SSIZE_MAX): Remove macro.
71065         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71066         Remove unnecessary overflow check.
71067         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71068         fields.
71069
71070 2003-11-25  Bruno Haible  <bruno@clisp.org>
71071
71072         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71073
71074 2003-11-25  Bruno Haible  <bruno@clisp.org>
71075
71076         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71077         gt_TYPE_SSIZE_T.
71078
71079 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71080
71081         * modules/alloca: Remove dependency on xalloc.
71082
71083 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71084
71085         * lib/alloca.c: Remove dependency on xalloc module.
71086         (xalloc_die): Remove.
71087         (memory_full) [!defined emacs]: New macro.
71088         [!defined emacs]: Don't include xalloc.h.
71089         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71090         address arithmetic overflows.  Change datatypes a bit to avoid
71091         unnecessary casts.
71092
71093 2003-11-22  Jim Meyering  <jim@meyering.net>
71094
71095         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71096         s/size/size_t/.
71097
71098 2003-11-21  Karl Berry  <karl@gnu.org>
71099
71100         * config/config.{sub,guess}: update from config.
71101
71102 2003-11-18  Karl Berry  <karl@gnu.org>
71103
71104         * config/config.{sub,guess}: update from config.
71105
71106         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71107
71108 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71109
71110         * README: Mention that S+T cannot overflow if S is the size of
71111         an existing object and T is sufficiently small.
71112
71113 2003-11-17  Jim Meyering  <jim@meyering.net>
71114
71115         On systems without utime and without a utimes function capable of
71116         dealing with a NULL struct utimbuf* argument, this utime replacement
71117         could -- in unusual circumstances -- leak a file descriptor.
71118         * lib/utime.c: Include <unistd.h> and <errno.h>.
71119         (utime_null): Be sure to close `fd' and to preserve errno.
71120         Reported by Geoff Collyer via Arnold Robbins.
71121
71122 2003-11-17  Bruno Haible  <bruno@clisp.org>
71123
71124         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71125         (Depends-on): Add xsize.
71126
71127 2003-11-17  Bruno Haible  <bruno@clisp.org>
71128
71129         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71130
71131 2003-11-17  Bruno Haible  <bruno@clisp.org>
71132
71133         * lib/vasnprintf.c (alloca): Remove fallback definition.
71134         (freea): Remove definition.
71135         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71136         Reported by Paul Eggert.
71137
71138 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71139             Bruno Haible  <bruno@clisp.org>
71140
71141         Protect against address arithmetic overflow.
71142         * lib/printf-args.h: Include stddef.h.
71143         (arguments): Change type of field 'count' to size_t.
71144         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71145         'unsigned int' where appropriate.
71146         * lib/printf-parse.h: Include sys/types.h.
71147         (char_directive): Change type of *arg_index fields to ssize_t.
71148         (char_directives): Change type of fields 'count', max_*_length to
71149         size_t.
71150         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71151         (SSIZE_MAX): Define fallback value.
71152         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71153         instead of 'int' where appropriate. Check a_allocated, d_allocated
71154         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71155         * lib/vasnprintf.c: Include xsize.h.
71156         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71157         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71158         overflow. Avoid wraparound when converting a width or precision from
71159         decimal to binary.
71160
71161 2003-11-16  Bruno Haible  <bruno@clisp.org>
71162
71163         Update from GNU gettext.
71164         * lib/printf-parse.c: Generalize to it can be compiled for wide
71165         strings.
71166         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71167         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71168         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71169         SNPRINTF): New macros.
71170         Don't include <alloca.h> if the file is used inside libintl.
71171         (local_wcslen): New function, for Solaris 2.5.1.
71172         (VASNPRINTF): Use it instead of wcslen.
71173
71174 2003-11-16  Bruno Haible  <bruno@clisp.org>
71175
71176         * lib/xsize.h (xmax): New function.
71177         (xsum, xsum3, xsum4): Declare as "pure" functions.
71178
71179 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71180
71181         * modules/xalloc (Files): Undo latest change, since xalloc.h
71182         no longer needs SIZE_MAX or PTRDIFF_MAX.
71183
71184 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71185
71186         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71187         gl_PTRDIFF_MAX.
71188
71189 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71190
71191         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71192         "return", to pacify some unknown compiler.  Problem reported
71193         by Joerg Schilling.
71194
71195 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71196
71197         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71198         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71199         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71200         heuristic is just as accurate as far as we know, and it removes a
71201         dependency on size_max.m4 and ptrdiff_max.m4.
71202
71203 2003-11-11  Bruno Haible  <bruno@clisp.org>
71204
71205         * modules/xsize (Files): Add m4/size_max.m4.
71206         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71207
71208 2003-11-11  Bruno Haible  <bruno@clisp.org>
71209
71210         * m4/size_max.m4: New file.
71211         * m4/ptrdiff_max.m4: New file.
71212         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71213         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71214         (gl_XALLOC): Invoke it.
71215
71216 2003-11-11  Bruno Haible  <bruno@clisp.org>
71217
71218         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71219         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71220         defined.
71221
71222 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71223
71224         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71225         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71226         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71227         From Bruno Haible.
71228         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71229         not (size_t) -1, since it's defined here.
71230
71231 2003-11-09  Karl Berry  <karl@gnu.org>
71232
71233         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71234
71235 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71236
71237         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71238         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71239         Reject sizes of exactly SIZE_MAX bytes.
71240         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71241         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71242
71243 2003-11-05  Bruno Haible  <bruno@clisp.org>
71244
71245         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71246         SIZE_MAX defined in <limits.h> on Solaris.
71247
71248 2003-11-04  Jim Meyering  <jim@meyering.net>
71249
71250         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71251         variable names, rather than @VAR@.
71252         * modules/poll: Likewise.
71253
71254 2003-11-04  Bruno Haible  <bruno@clisp.org>
71255
71256         * modules/xsize: New file.
71257         * modules/linebreak: Depend on xsize.
71258         * MODULES.html.sh (func_all_modules): Add xsize.
71259
71260 2003-11-04  Bruno Haible  <bruno@clisp.org>
71261
71262         * m4/xsize.m4: New file.
71263
71264 2003-11-04  Bruno Haible  <bruno@clisp.org>
71265
71266         * lib/xsize.h: New file.
71267         * lib/linebreak.c: Include xsize.h.
71268         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71269         argument for overflow.
71270         Suggested by Paul Eggert.
71271
71272 2003-11-03  Karl Berry  <karl@gnu.org>
71273
71274         * config/config.{guess,sub}: update from config.
71275
71276 2003-11-03  Jim Meyering  <jim@meyering.net>
71277
71278         * modules/userspec (lib_SOURCES): Add userspec.h.
71279         (Include): Add "userspec.h".
71280         Improve description.
71281
71282 2003-11-03  Jim Meyering  <jim@meyering.net>
71283
71284         * lib/userspec.c: Include "userspec.h".
71285         * lib/userspec.h: New file.
71286
71287 2003-11-03  Bruno Haible  <bruno@clisp.org>
71288
71289         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71290
71291 2003-11-03  Bruno Haible  <bruno@clisp.org>
71292
71293         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71294         available, to avoid (extremely rare) race condition.
71295         Suggested by Paul Eggert.
71296
71297 2003-11-02  Karl Berry  <karl@gnu.org>
71298
71299         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71300
71301 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71302
71303         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71304         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71305         (read_filesystem_list): Set and use me_type_malloced.
71306         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71307         whatever the type happens to be), for brevity and consistency.
71308         Check for size calculation overflow on Alphas running OSF/1.
71309
71310 2003-10-31  Jim Meyering  <jim@meyering.net>
71311
71312         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71313
71314         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71315
71316 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71317             Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71320         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71321
71322 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71323
71324         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71325         netbsd*-gnu*.  Suggested by Robert Millan.
71326
71327 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71328
71329         * modules/group-member: Depend on stdbool.
71330
71331 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71332
71333         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71334
71335 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71336
71337         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71338         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71339         after the 'gnu' in these cases.  This fixes some bugs in the
71340         previous change, and is based on suggestions by Robert Millan.
71341
71342 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71343
71344         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71345         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71346         no longer needed.
71347         * lib/quotearg.c (quotearg_n_options): Use it.
71348         * lib/group-member.c: Include <stdbool.h>.
71349         (free_group_info): Arg is now const *; don't free arg.
71350         (get_group_info): Now returns bool and accepts struct group_info *,
71351         rather than returning a malloc'ed struct group_info *.
71352         All uses changed.  Check for overflow in internal size calculation.
71353
71354         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71355         rather than xmalloc/xrealloc.
71356         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71357         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71358         conformance bug: the old code used a pointer after freeing the
71359         storage that it addressed.
71360         * lib/hash.c (hash_initialize): Simplify the code by using
71361         xalloc_oversized rather than doing it by hand.
71362         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71363         the buffer preserved.  Use free and xmalloc instead.
71364         * lib/quotearg.c (quotearg_n_options): Likewise.
71365         Use a simpler test for size overflow.  Don't use xalloc_oversized
71366         because unsigned int might be wider than size_t (!); this suggests
71367         that we should switch from unsigned int to size_t for slot numbers.
71368
71369 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71370
71371         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71372         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71373         NetBSD kernels.  Requested by Richard Stallman.
71374
71375 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71376
71377         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71378         to allocate the returned structure.  Do not allocate a subarray,
71379         as x2nrealloc will do that.
71380         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71381         instead of xnrealloc.
71382         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71383
71384 2003-10-27  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/stdbool_.h: Better support for BeOS.
71387
71388 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71389
71390         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71391         now uses inline.
71392
71393 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71394
71395         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71396         callers that want to do their own size-overflow checking.  Include
71397         <stdbool.h>, since xalloc_oversized returns bool.
71398         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71399         to use xalloc_oversized.
71400
71401         Add two functions x2realloc, x2nrealloc, for programs that grow
71402         arrays dynamically by doubling their sizes.
71403         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71404         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71405         New functions.
71406
71407         Port to C99 semantics for 'inline' of external functions.
71408         Bug reported by Bruno Haible.
71409         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71410         with the old contents of xnmalloc.
71411         (xnmalloc, xmalloc): Use it.
71412         (xnrealloc_inline): New static inline function,
71413         with the old contents of xnrealloc.
71414         (xnrealloc, xrealloc): Use it.
71415
71416         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71417         that.
71418
71419 2003-10-26  Karl Berry  <karl@gnu.org>
71420
71421         * config/srclist.txt (COPYING.DOC): no longer available from
71422         /gd/gnuorg; don't know where the ultimate source is.
71423
71424 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71425
71426         Fix several address-calculation bugs in the hash modules,
71427         plus some minor code cleanup.
71428
71429         * lib/hash.h: Include <stdbool.h>, for bool.
71430         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71431         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71432         hash_get_n_entries, hash_get_max_bucket_length,
71433         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71434         hash_rehash): Use size_t rather than unsigned.
71435         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71436         hash_get_n_buckets_used, hash_get_n_entries,
71437         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71438         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71439         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71440         Likewise.
71441         (SIZE_MAX): Define if not defined.
71442         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71443         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71444         hash_print):
71445         Use const * when possible.
71446         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71447         (check_tuning): Fix bug: if tuning parameters were very close to
71448         0 or 1, rounding errors could have caused subscript violations.
71449         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71450         (hash_initialize): Add 'fail:' label
71451         to free table and return NULL, and use it to simplify code.
71452         Use calloc rather than clearing the storage ourself.
71453         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71454         buffer size calculations.
71455         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71456         Include <stddef.h>, for size_t.
71457         * lib/hash-pjw.c (hash_pjw): Likewise.
71458         Switch to method described by Bruno Haible.
71459         Include <limits.h>, for CHAR_BIT.
71460         (SIZE_BITS): New macro.
71461
71462 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71463
71464         * m4/getline.m4 (AM_FUNC_GETLINE):
71465         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71466         hosts.  Problem reported by Derek Robert Price in
71467         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71468         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71469         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71470
71471 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71472
71473         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71474         ceiling the allocation at NMAX bytes rather than silently
71475         discarding input bytes before NMAX is reached.  This makes
71476         a difference only if NMAX exceeds SIZE_MAX / 2.
71477
71478         * lib/obstack.c: Merge from glibc.
71479         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71480         Add libc_hidden_def (_obstack_newchunk).
71481         (_obstack_free) [! defined _LIBC]: Remove.
71482         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71483         a clone of the function body.
71484         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71485         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71486
71487         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71488         glibc.
71489         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71490         arg to memcpy.
71491
71492         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71493         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71494         Don't use lvalue casts, as GCC plans to remove support for them
71495         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71496         was also present in the non-GCC version, indicating that this
71497         code had always been buggy and had never been widely used.
71498         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71499         Use the fast variant of each macro, rather than copying the
71500         definiens of the fast variant; that way, we'll be more likely to
71501         catch future bugs in the fast variants.
71502
71503 2003-10-20  Bruno Haible  <bruno@clisp.org>
71504
71505         * modules/wait-process: New file.
71506         * MODULES.html.sh (func_all_modules): Add wait-process.
71507
71508 2003-10-20  Bruno Haible  <bruno@clisp.org>
71509
71510         * m4/wait-process.m4: New file.
71511
71512 2003-10-20  Bruno Haible  <bruno@clisp.org>
71513
71514         * lib/wait-process.h: New file, from GNU gettext.
71515         * lib/wait-process.c: New file, from GNU gettext.
71516
71517 2003-10-19  Jim Meyering  <jim@meyering.net>
71518
71519         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71520         HPUX 10.20.
71521
71522 2003-10-18  Karl Berry  <karl@gnu.org>
71523
71524         * config/config.guess: update from config.
71525
71526 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71527
71528         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71529         (getgroups): First arg is int, not size_t.
71530         Don't let 'free' mangle errno.
71531
71532 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71533
71534         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71535
71536 2003-10-16  Karl Berry  <karl@gnu.org>
71537
71538         * config/config.{guess,sub}: update from config.
71539
71540 2003-10-16  Jim Meyering  <jim@meyering.net>
71541
71542         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71543         memcpy.
71544
71545 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71546
71547         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71548         (SIZE_MAX): Remove.
71549         (new_exclude, add_exclude_file): Initial size no longer needs to
71550         be a power of 2.
71551         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71552         our own address arithmetic overflow checking.
71553
71554         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71555         (fnmatch): Do not alloca more than 2000 wide characters;
71556         instead, use malloc for large buffers.
71557         Check for address arithmetic overflow, and return -1
71558         with errno set to ENOMEM in that case.
71559         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71560         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71561         instead, return -1.  Check for address arithmetic overflow.
71562
71563 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71564
71565         Handle invalid suffixes and overflow independently, so that
71566         callers can treat them independently as needed.  Fix some bugs in
71567         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71568         suffix for a human-readable blocksize.  The major caller-visible
71569         change is the addition of a new
71570         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71571         that both overflow and suffix chars were found.
71572
71573         * lib/human.c (humblock): Don't check separately for invalid suffix
71574         char; that is xstrtoumax's job (now that its bug is fixed).
71575         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71576         INTMAX_MAX]: New macros.
71577         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71578         TYPE_MAXIMUM): New macros.
71579         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71580         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71581         if overflow occurs, as it's what __strtol does and it's more useful
71582         in practice.
71583         (__xstrtol): If __strtol reports some error other than ERANGE,
71584         reflect it to the caller as LONGINT_INVALID.  If it reports
71585         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71586         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71587         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71588         value.
71589         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71590         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71591         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71592         [defined UINTMAX_MAX]: New macros.
71593
71594 2003-10-14  Bruno Haible  <bruno@clisp.org>
71595
71596         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71597
71598 2003-10-14  Bruno Haible  <bruno@clisp.org>
71599
71600         * m4/sig_atomic_t: New file, from GNU gettext.
71601         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71602
71603 2003-10-14  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71606         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71607         Also use volatile where needed.
71608
71609 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71610
71611         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71612         Change maintainer from Bruno Haible to 'all'.
71613
71614 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71615
71616         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71617
71618 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71619
71620         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71621         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71622         and define in terms of the other primitives.
71623         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71624         (SIZE_MAX): Define if not already defined.
71625         (array_size_overflow): New function.
71626         (xalloc_die): Abort instead of exiting if 'error' returns.
71627         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71628         (xmalloc, xrealloc): Use them.
71629         (xcalloc): Check for address arithmetic overflow.
71630         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71631         a bit faster than strcpy.
71632
71633 2003-10-10  Simon Josefsson  <jas@extundo.com>
71634
71635         * modules/argp (Depends-on): Add restrict and strcase.
71636
71637 2003-10-10  Simon Josefsson  <jas@extundo.com>
71638
71639         * m4/argp.m4: Add AC_C_INLINE.
71640
71641 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71642
71643         Merge getpass from libc, plus a few fixes.
71644
71645         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71646         Include <stdbool.h>.
71647         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71648         __fsetlocking to empty.
71649         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71650         do include <bits/libc-lock.h>.
71651         Do not include <fcntl.h>; not needed.
71652         [_LIBC]: Include <wchar.h>.
71653         (NOTCANCEL_MODE): New macro.
71654         (flockfile, funlockfile) [_LIBC]: New macros.
71655         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71656         [!_LIBC]: New macros.
71657         (call_fclose): New function.
71658         (getpass): Use it.  Save tty stream separately; this simplifies the
71659         code and makes it more reliable if stdin happens to equal stdout.
71660         Invoke __fsetlocking on tty.
71661         Handle thread cancellation if needed.
71662         Namespace cleanup (use __tcgetattr, __getline).
71663         Use bool for Booleans.
71664         [USE_IN_LIBIO]: Handle wide streams.
71665         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71666         stream might go where.
71667
71668         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71669         doesn't have to include <stdio.h> before us.
71670         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71671         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71672         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71673         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71674         if not declared, so that we can use getpass.c code from libc without
71675         rewriting it.
71676         (flockfile, ftrylockfile, funlockfile): New macros.
71677
71678 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71679
71680         * modules/getpass: Depend on stdbool.
71681
71682 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71683
71684         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71685
71686 2003-10-07  Karl Berry  <karl@gnu.org>
71687
71688         * config/config.{guess,sub}: update from config.
71689
71690 2003-10-06  Jim Meyering  <jim@meyering.net>
71691             Bruno Haible  <bruno@clisp.org>
71692
71693         This lets translators provide better translations for the
71694         "Written by ..." part of --version output.
71695         * lib/version-etc.h: Include stdarg.h.
71696         (version_etc_copyright): Declare as readonly.
71697         (version_etc): Make this function variadic with a NULL-terminated list
71698         of author name strings.
71699         (version_etc_va): New declaration.
71700         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71701         (version_etc_copyright): Declare as readonly.
71702         (version_etc_va): New function. Provide a different translatable string
71703         for each possible number of authors < 10. Abbreviate when there are 10
71704         authors or more.
71705         (version_etc): Make this function variadic. Call version_etc_va.
71706         Suggestion from Gary V. Vaughan.
71707
71708         * lib/long-options.h (parse_long_options): Change prototype: the
71709         authors string is moved to the end and becomes variadic.
71710         * lib/long-options.c: Include stdarg.h.
71711         (parse_long_options): Make this function variadic, too.
71712         Call version_etc_va, not version_etc.
71713
71714 2003-10-06  Bruno Haible  <bruno@clisp.org>
71715
71716         * modules/version-etc-2: Remove file.
71717         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71718
71719 2003-10-06  Bruno Haible  <bruno@clisp.org>
71720
71721         * modules/fatal-signal: New file.
71722         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71723
71724 2003-10-06  Bruno Haible  <bruno@clisp.org>
71725
71726         * m4/fatal-signal.m4: New file.
71727         * m4/signalblocking.m4: New file, from GNU gettext.
71728
71729 2003-10-06  Bruno Haible  <bruno@clisp.org>
71730
71731         * lib/version-etc-2.h: Remove file.
71732         * lib/version-etc-2.c: Remove file.
71733
71734 2003-10-06  Bruno Haible  <bruno@clisp.org>
71735
71736         * lib/fatal-signal.h: New file, from GNU gettext.
71737         * lib/fatal-signal.c: New file, from GNU gettext.
71738
71739 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71740
71741         * README: Rework advice for preventing empty .o files.
71742         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71743         not <sys/types.h>.
71744
71745 2003-10-04  Karl Berry  <karl@gnu.org>
71746
71747         * lib/argp*: update from libc.
71748
71749 2003-10-04  Karl Berry  <karl@gnu.org>
71750
71751         * config/config.{guess,sub}: update from config.
71752
71753 2003-10-02  Bruno Haible  <bruno@clisp.org>
71754
71755         * modules/lchown (Include): Add lchown.h.
71756         * modules/time_r (Include): Use "..." syntax.
71757         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71758
71759 2003-10-01  Simon Josefsson  <jas@extundo.com>
71760
71761         * MODULES.html.sh (func_all_modules): Move gethostname from section
71762         'based on' to section 'lacking' POSIX:2001.
71763
71764 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71765
71766         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71767         to output mode on the same stream.
71768
71769 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71770
71771         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71772         Fix arg typo in previous patch.
71773
71774 2003-09-28  Jim Meyering  <jim@meyering.net>
71775
71776         * lib/error.c: Correct cpp indentation.
71777
71778 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71779
71780         * modules/free: New file.
71781
71782 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71783
71784         * m4/free.m4: New file.
71785
71786 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71787
71788         * lib/minmax.h (MIN, MAX)
71789         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71790         Omit the special code that used __typeof__, since we worry that
71791         it could be more trouble than it's worth.  See:
71792         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71793         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71794
71795         * lib/free.c: New file.
71796
71797 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71798
71799         Trivial fixes to Makefile.am parts of module listings.
71800         * modules/strstr: Append strstr.h to lib_SOURCES.
71801         * modules/strcase: Likewise, for strcase.h.
71802
71803 2003-09-27  Karl Berry  <karl@gnu.org>
71804
71805         * config/mkinstalldirs: update from automake.
71806
71807 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71808
71809         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71810         (error_tail): Do not loop, reallocating temporary buffer, since
71811         the output cannot contain more wide characters than the input
71812         contains bytes, the size must be big enough already.  This avoids
71813         one potential size overflow calculation.  Check for size overflow
71814         when calculating temporary buffer size.  Free temporary buffer
71815         when done, if it was allocated with malloc; this plugs a memory
71816         leak.  Remove casts from void * to pointers, that are no longer
71817         needed now that we're assuming C89 or better.
71818
71819         Merge error changes from glibc.
71820
71821         * lib/error.c, error.h: Update copyright notice header to match glibc.
71822         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71823         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71824         Disable cancellation while printing error.
71825         * lib/error.h: Prepend __ to parameter names.
71826
71827 2003-09-26  Jim Meyering  <jim@meyering.net>
71828
71829         * lib/error.c (error_tail): Move some declarations
71830         into inner scope where the local variables are used.
71831
71832 2003-09-26  Bruno Haible  <bruno@clisp.org>
71833
71834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71835         stpncpy().
71836         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71837
71838 2003-09-26  Bruno Haible  <bruno@clisp.org>
71839
71840         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71841         (stpncpy): Define as alias for gnu_stpncpy.
71842         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71843
71844 2003-09-25  Simon Josefsson  <jas@extundo.com>
71845
71846         * lib/xgetdomainname.h: New file.
71847         * lib/xgetdomainname.c: New file.
71848
71849 2003-09-25  Simon Josefsson  <jas@extundo.com>
71850             Bruno Haible  <bruno@clisp.org>
71851
71852         * modules/getdomainname: New file.
71853         * modules/xgetdomainname: New file.
71854         * MODULES.html.sh (func_all_modules): Add getdomainname,
71855         xgetdomainname.
71856
71857 2003-09-25  Simon Josefsson  <jas@extundo.com>
71858             Bruno Haible  <bruno@clisp.org>
71859
71860         * m4/getdomainname.m4: New file.
71861
71862 2003-09-25  Simon Josefsson  <jas@extundo.com>
71863             Bruno Haible  <bruno@clisp.org>
71864
71865         * lib/getdomainname.h: New file.
71866         * lib/getdomainname.c: New file.
71867
71868 2003-09-25  Karl Berry  <karl@gnu.org>
71869
71870         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71871
71872 2003-09-25  Karl Berry  <karl@gnu.org>
71873
71874         * config/install-sh: update from automake.
71875
71876 2003-09-25  Bruno Haible  <bruno@clisp.org>
71877
71878         * modules/version-etc-2: New file, from modules/version-etc with
71879         modifications.
71880         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71881
71882 2003-09-25  Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71885         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71886
71887 2003-09-24  Simon Josefsson  <jas@extundo.com>
71888
71889         * modules/xgethostname: Add xgethostname.h.
71890
71891 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71892
71893         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71894         the buffer associated with the argument.  Bug reported by
71895         Simon Josefsson.
71896
71897 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71898
71899         * README: Document assumptions that 'int' is at least 32 bits
71900         wide, that integer arithmetic is 2's complement without overflow,
71901         that there are no holes in integer values, that adding sizes of
71902         two nonoverlapping objects can't overflow, and that all-bits-zero
71903         yields scalar zero.  Fix spelling and capitalization typos.
71904
71905 2003-09-19  Karl Berry  <karl@gnu.org>
71906
71907         * lib/argp.h: update from libc.
71908
71909 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71910
71911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71912         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71913         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71914
71915 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71916
71917         * gnulib-tool: Use "test -h", not "test -L", for portability
71918         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71919         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71920         (sed_extract_prog): Issue s commands one-by-one, rather than
71921         using \| in one s command.
71922
71923 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71924
71925         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71926         input error, instead of returning NULL the next time we are called
71927         (and therefore losing track of errno).
71928
71929 2003-09-16  Bruno Haible  <bruno@clisp.org>
71930
71931         * gnulib-tool (func_create_testdir): Warn about duplicated
71932         dependencies.
71933
71934 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71935
71936         * modules/argmatch, modules/fatal, modules/obstack,
71937         modules/xalloc, modules/xgethostname: Sort dependencies by
71938         importance, not alphabetically.
71939
71940 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71941
71942         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71943         fails, so that the caller gets the proper errno.
71944
71945         * lib/readutmp.c (read_utmp): Likewise.
71946         Check for fstat error.  Close stream and free storage
71947         when failing.
71948
71949 2003-09-14  Karl Berry  <karl@gnu.org>
71950
71951         * config/srclist.txt (strdup.c): disable for c89 changes.
71952
71953 2003-09-14  Jim Meyering  <jim@meyering.net>
71954
71955         * lib/getloadavg.c: Correct cpp indentation.
71956         * lib/strdup.c: Likewise.
71957         * lib/vasnprintf.c: Likewise.
71958
71959 2003-09-14  Bruno Haible  <bruno@clisp.org>
71960
71961         * modules/fwriteerror: New file.
71962         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71963
71964 2003-09-14  Bruno Haible  <bruno@clisp.org>
71965
71966         * lib/fwriteerror.h: New file.
71967         * lib/fwriteerror.c: New file.
71968
71969 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71970
71971         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71972         modules/xgethostname, modules/xalloc: Depend on exit.
71973
71974 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71975
71976         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71977
71978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71979         and AC_MINIX, too, so that their extensions are available.
71980
71981         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71982         This macro has been superseded by gl_BACKUPFILE.
71983
71984         More patches to assume C89 or better.
71985
71986         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71987
71988         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71989         unconditionally.
71990         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71991         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71992         Include <string.h>, <stdlib.h> unconditionally.
71993         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71994         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71995         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71996         headers or for string.h.
71997         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71998         or strtoul.
71999
72000         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72001         headers.
72002         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72003         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72004         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72005         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72006         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72007         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72008         memcpy, memset.
72009         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72010         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72011         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72012         strtol.
72013         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72014         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72016         strtoul.
72017
72018 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72019
72020         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72021         * lib/obstack.c [!defined _LIBC]: Likewise.
72022         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72023         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72024         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72025
72026         More changes to assume C89 or better.
72027
72028         * lib/error.c (error_tail): Assume vprintf.
72029
72030         * lib/argmatch.c (getenv): Remove decl.
72031         * lib/progreloc.c (get_full_program_name): Define via prototype.
72032         * lib/setenv.c (clearenv): Likewise.
72033         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72034         needed.
72035         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72036         (malloc, memcpy): Remove decls.
72037         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72038         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72039         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72040         (memcpy): Remove macro.
72041         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72042         (__P): Remove.  All uses removed.
72043         (PTR): Remove.  All uses changed to void *.
72044         (CHAR_BIT, NULL): Remove.
72045         (spaces, zeros, memset_space, memset_zero)
72046         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72047         Remove.
72048         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72049         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72050         Define with prototype.
72051         Remove now-unnecessary prototype decl.
72052         (extra_args_spec): Assume ANSI C.  All uses changed.
72053         (extra_args_spec_iso): Remove.
72054         (my_strftime, emacs_strftimeu): Define via prototype.
72055         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72056         unconditionally.
72057         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72058         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72059         (strtoul, strtol): Remove decls.
72060         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72061         LONG_MAX): Remove.
72062         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72063         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72064         (LOCALE_PARAM_PROTO): New macro.
72065         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72066         (INTERNAL (strtol), strtol): Define with a prototype.
72067         (PARAMS): Remove.  All uses removed.
72068         * lib/tempname.c: Include <string.h> unconditionally.
72069         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72070         * lib/xgethostname.c (main): Define with a prototype.
72071         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72072         Include <stdlib.h> unconditionally.
72073         (calloc, malloc, realloc, free): Remove decls.
72074         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72075         Include <stdlib.h> unconditionally.  Sort include file names.
72076         (strtod): Remove.
72077         (xstrtod): Define with a prototype.
72078         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72079         (strtol, strtoul): Remove decls.
72080
72081 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72082
72083         More patches to assume C89 or better.
72084         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72085         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72086         string.h, memchr, STDC_HEADERS.
72087
72088 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72089
72090         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72091         Include <stdlib.h>, <string.h> unconditionally.
72092         Remove now-unnecessary cast to char *.
72093         * lib/strnlen.c: Include <string.h> unconditionally.
72094         * lib/yesno.c (yesno): Define with a prototype.
72095
72096 2003-09-11  Bruno Haible  <bruno@clisp.org>
72097
72098         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72099
72100 2003-09-10  Jim Meyering  <jim@meyering.net>
72101
72102         * lib/error.c: Correct indentation of cpp directives.
72103
72104 2003-09-10  Bruno Haible  <bruno@clisp.org>
72105
72106         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72107         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72108         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72109         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72110         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72111         <stdlib.h> and <string.h> checks.
72112         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72113         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72114
72115 2003-09-10  Bruno Haible  <bruno@clisp.org>
72116
72117         * lib/strcspn.c: Include <string.h> unconditionally.
72118         * lib/strpbrk.c: Include <string.h> unconditionally.
72119         * lib/strstr.c: Include <string.h> unconditionally.
72120         * lib/unicodeio.c: Include <string.h> unconditionally.
72121         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72122         * lib/unsetenv.c: Likewise.
72123         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72124         * lib/yesno.c: Include <stdlib.h> unconditionally.
72125         (rpmatch): Add prototype.
72126
72127 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72128
72129         More patches to assume C89 or better.
72130         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72131         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72132         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72133         or for string.h.
72134         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72135         stdlib.h.
72136         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72137         C headers.
72138         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72139         string.h.
72140         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72141         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72142         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72143         or for string.h.
72144         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72145         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72146         C headers.
72147         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72148         memcpy.
72149         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72150         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72151         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72152         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72153         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72154         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72155         string.h, free.
72156         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72157         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72158         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72159         C headers, or for string.h.
72160         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72161         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72162         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72163         headers, memory.h, stdlib.h, string.h, strings.h.
72164         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72165         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72166         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72167         strchr.
72168         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72169         headers, memory.h, string.h.
72170         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72171         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72172         free.
72173         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72174         headers.
72175         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72176         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72177         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72178         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72179         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72180
72181 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72182
72183         More K&R removal.
72184
72185         * lib/acosl.c (main): Use a prototype.
72186         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72187         tanl.c: Likewise.
72188
72189         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72190
72191         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72192         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72193         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72194         with a prototype.
72195         * lib/getopt.c (const): Remove macro.
72196         Include <string.h> unconditionally.
72197         (my_index): Remove; all uses changed to strchr.
72198         (strlen): Remove decl.
72199         (exchange): Remove forward decl; no longer needed.
72200         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72201         Define with prototype.
72202         * lib/getopt1.c (const): Remove macro.
72203         (getopt_long, getopt_long_only, main): Define with prototype.
72204
72205         * lib/getugroups.c: Include <string.h> unconditionally.
72206
72207         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72208         (getusershell, setusershell, endusershell, readname, main):
72209         Define with prototypes.
72210
72211         * lib/group-member.c: Include group-member.h first.
72212         Include <stdlib.h> unconditionally.
72213
72214         * lib/hard-locale.c: Include hard-locale.h first.
72215         Include <stdlib.h>, <string.h> unconditionally.
72216
72217         * lib/hash.c (free, malloc): Remove decls.
72218         Include <stdlib.h> unconditionally.
72219
72220         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72221         (getenv): Do not declare.
72222
72223         * lib/idcache.c: Include <string.h> unconditionally.
72224
72225         * lib/long-options.c: Include long-options.h first, to test interface.
72226         Include <stdlib.h> unconditionally.
72227
72228         * lib/makepath.c: Include makepath.h first, to test interface.
72229         Include <stdlib.h> and <string.h> unconditionally.
72230
72231         * lib/linebuffer.c: Include <stdlib.h>.
72232         (free): Remove decl.
72233
72234         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72235         stddef.h. rpl_malloc returns void *, not char *.
72236         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72237         prototype.
72238
72239         * lib/md5.h: Include <limits.h> unconditionally.
72240         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72241         (__P): Remove; all uses removed.
72242         * lib/md5.c: Include "md5.h" first.
72243         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72244         md5_buffer, md5_process_bytes, md5_process_block):
72245         Define with prototypes.
72246         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72247         * lib/sha.c: Include "sha.h" first.
72248         Include <stdlib.h>, <string.h> unconditionally.
72249
72250         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72251         * lib/memcmp.c (__ptr_t): Likewise.
72252         * lib/memrchr.c (__ptr_t): Likewise.
72253         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72254         Include <string.h> unconditionally.
72255         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72256         * lib/memchr.c: Include <stdlib.h> unconditionally.
72257         * lib/memchr.c (LONG_MAX): Remove.
72258         * lib/memrchr.c (LONG_MAX): Likewise.
72259         * lib/memchr.c (__memchr): Define via a prototype.
72260         * lib/memrchr.c (__memrchr): Likewise.
72261         * lib/memcmp.c (__P): Remove, and remove all uses.
72262         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72263         Remove forward decls; no longer needed.
72264         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72265         Use types required by C89 in prototype.
72266
72267         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72268         * lib/savedir.c: Likewise.
72269         * lib/mkdir.c (free): Remove decl.
72270         * lib/rmdir.c (rmdir): Define with a prototype.
72271         * lib/savedir.c: Include savedir.h first, to test interface.
72272
72273         * lib/mktime.c (STDC_HEADERS): Remove.
72274         Include <stdlib.h>, <string.h> unconditionally.
72275
72276         * lib/modechange.c: Include <stdlib.h> unconditionally.
72277         (malloc): Remove decl.
72278
72279         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72280         (free): Remove decl.
72281
72282         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72283         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72284         (This type really should be intptr_t, but that's a C99ism.)
72285         (_obstack_memcpy): Remove: all uses changed to memcpy.
72286         Include <string.h> unconditionally.
72287         (struct obstack): Assume __STDC__ for types of members
72288         chunkfun, freefun, extra_arg.
72289         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72290         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72291         obstack_begin, obstack_specify_allocation,
72292         obstack_specify_allocation_with_arg, obstack_chunkfun,
72293         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72294         Remove unprototyped decls and the macros that use them.
72295         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72296         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72297         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72298         (defined __STDC__ && __STDC__)]:
72299         Remove nonprototyped code.
72300         Include <stdlib.h> unconditionally.
72301         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72302         _obstack_allocated_p, _obstack_free, obstack_free,
72303         _obstack_memory_used, print_and_abort):
72304         Define using prototypes.
72305         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72306         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72307         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72308         obstack_next_free, obstack_object_size, obstack_room) [0]:
72309         Remove unused, unprototyped code.
72310
72311         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72312
72313         * lib/physmem.c (physmem_total, physmem_available, main): Define
72314         with prototypes.
72315
72316         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72317         (main): Define with a prototype.
72318
72319         * lib/posixver.c (getenv): Remove decl.
72320
72321         * lib/putenv.c (malloc): Returns void *, not char *.
72322         Include <string.h> unconditionally.
72323         (strchr, memcpy, NULL): Do not define.
72324
72325         * lib/readtokens.c: Include readtokens.h first, to test interface.
72326         Include <stdlib.h>, <string.h> unconditionally.
72327         (init_tokenbuffer): Define with a prototype.
72328
72329         * lib/regex.c (PARAMS): Remove.  All uses removed.
72330         All uses of _RE_ARGS removed, too.
72331         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72332         unconditionally.
72333         (bzero): Assume memset exists.
72334         (memcmp, memcpy, NULL): Remove.
72335         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72336         char, or assignments to local vars of type signed char.
72337         (init_syntax_once, PREFIX(extract_number_and_incr),
72338         PREFIX(print_partial_compiled_pattern),
72339         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72340         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72341         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72342         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72343         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72344         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72345         wcs_compile_range, byte_compile_range, truncate_wchar,
72346         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72347         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72348         count_mbs_length, wcs_re_match_2_internal,
72349         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72350         PREFIX(alt_match_null_string_p),
72351         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72352         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72353         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72354         now-unnecessary declaration, if any.
72355         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72356         regcomp, regexec):
72357         Remove now-unnecessary casts among pointer types.
72358         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72359
72360         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72361         (free): Remove decl.
72362
72363         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72364
72365         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72366         (free): Remove decl.
72367
72368         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72369         * lib/xgetcwd.c: Likewise.
72370
72371         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72372         (free): Remove decl.
72373
72374         * lib/strchrnul.c (strchrnul): Define with a prototype.
72375         Fix bug: c_in was not converted to char before searching.
72376
72377         The following changes are not K&R related:
72378
72379         * lib/group-member.h: Include <sys/types.h>, so that this file is
72380         self-contained.
72381         * lib/makepath.h: Likewise.
72382
72383         * lib/getusershell.c (readname, default_index, line_size, readname):
72384         Use size_t, not int, for sizes.
72385         (readname): If the size overflows, report an error instead of
72386         looping forever.
72387
72388 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72389
72390         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72391         libc.
72392
72393 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72394
72395         * README: New section: portability guidelines.
72396
72397 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72398
72399         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72400         C89 spec.
72401
72402 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72403
72404         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72405
72406 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72407
72408         Assume C89 or better; remove K&R cruft.
72409         A few of these changes were first proposed by Derek Robert Price
72410         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72411
72412         * lib/addext.c: Include <string.h> unconditionally.
72413         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72414         Don't declare getenv or malloc.
72415
72416         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72417         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72418         (NULL): Remove.
72419         (find_stack_direction, alloca): Use prototypes.
72420
72421         * lib/atexit.c (atexit): Define using a prototype.
72422
72423         * lib/basename.c, dirname.c, stripslash.c:
72424         Include <string.h> unconditionally.
72425
72426         * lib/bcopy.c: Include <stddef.h>.
72427         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72428
72429         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72430
72431         * lib/error.h (error, error_at_line, error_print_progname)
72432         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72433         * lib/error.c: Include error.h first, to check interface.
72434         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72435         (VA_START): Remove; all uses changeed to va_start.
72436         (exit, strerror): Remove decls.
72437         (error_print_progname): Prototype uncondionally.
72438         Don't include <errno.h>; no longer needed.
72439         (private_strerror): Remove.
72440         (error_tail): Always define.
72441         (error, error_at_line): Assume C89 or better; always use prototypes.
72442         * lib/fatal.c: Include "fatal.h" first, to test interface.
72443         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72444         (VA_START): Remove; all uses changed to va_start.
72445         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72446         this case.
72447         (exit): Remove decl.
72448         (fatal): Prototype unconditionally.  Assume va_start works.
72449         Abort at end, to pacify gcc.
72450
72451         * lib/euidaccess.c (main): Define with a prototype.
72452
72453         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72454
72455         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72456
72457         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72458         prototypes.
72459         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72460         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72461         (getenv): Remove decl.
72462         (fnmatch): Define using a prototype.
72463         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72464         (FCT): Define using a prototype.
72465
72466         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72467
72468         * lib/gethostname.c: Include <stddef.h>.
72469         (gethostname): Define with prototype.  Length is size_t, not int.
72470
72471 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72472
72473         Assume C89 or better; remove K&R cruft.
72474         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72475         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72476         string.h, getenv, malloc.
72477         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72478         headers.
72479         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72480         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72481         do not check for strerror.
72482         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72483         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72484         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72485         do not check for doprnt or vprintf.
72486         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72487         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72488
72489 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72490
72491         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72492         getversion.c should have been removed then, but was accidentally
72493         preserved.
72494
72495         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72496         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72497
72498 2003-09-08  Karl Berry  <karl@gnu.org>
72499
72500         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72501                 config, forget about prep.
72502
72503         * config/depcomp, missing: update from automake.
72504
72505 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72506
72507         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72508         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72509
72510 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72511
72512         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72513         copy_tm_result.  Bug reported by Simon Josefsson in
72514         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72515
72516 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72517
72518         * m4/time_r.m4: New file.
72519         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72520         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72521         is. Check for timegm declaration.
72522         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72523         Do not check for gmtime_r.
72524         Replace mktime if __mktime_internal does not exist and if mktime
72525         hasn't been replaced already.
72526
72527 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72528
72529         * lib/time_r.c, lib/time_r.h: New files.
72530
72531         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72532         __localtime_r.
72533         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72534         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72535
72536         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72537         __gmtime_r.
72538         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72539         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72540         Include <time_r.h>.
72541
72542         * lib/timegm.c: Switch to glibc implementation, with the following
72543         changes:
72544         [defined HAVE_CONFIG_H]: Include <config.h>.
72545         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72546         (__mktime_internal) [!defined _LIBC]: New decl.
72547         (__gmtime_r) [!defined _LIBC]: New macro and function.
72548         (timegm): Use a prototype, since gnulib assumes C89.
72549         Do not bother declaring tmp to be const, as it's not really usefu.
72550         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72551         (timegm): Declare only if HAVE_DECL_TIMEGM.
72552
72553 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72554
72555         * MODULES.html.sh (func_all_modules): Add time_r.
72556         * modules/time_r: New file.
72557         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72558         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72559
72560 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72561
72562         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72563         Bug reported by Lute Kamstra in
72564         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72565
72566         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72567         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72568         course with correspondingly smaller numbers for tomorrow and
72569         yesterday.  From Tadayoshi Funaba.  Originally installed into
72570         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72571         coreutils merge?).
72572
72573 2003-08-31  Simon Josefsson  <jas@extundo.com>
72574
72575         * modules/timegm: New file.
72576         * MODULES.html.sh (func_all_modules): Add timegm.
72577
72578 2003-08-31  Simon Josefsson  <jas@extundo.com>
72579
72580         * m4/timegm.m4: New file.
72581
72582 2003-08-31  Simon Josefsson  <jas@extundo.com>
72583
72584         * lib/timegm.h: New file.
72585         * lib/timegm.c: New file.  Based on
72586         wget-1.8.2/src/http.c:mktime_from_utc.
72587
72588 2003-08-31  Karl Berry  <karl@gnu.org>
72589
72590         * lib/argp.h: update from libc.
72591
72592 2003-08-28  Bruno Haible  <bruno@clisp.org>
72593
72594         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72595         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72596         followed by '#define fnmatch fnmatch_posix' gives an error.
72597
72598 2003-08-28  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72601         warning on QNX, which defines O_BINARY to 000000.
72602
72603 2003-08-27  Jim Meyering  <jim@meyering.net>
72604
72605         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72606         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72607         would fail after 32.  Reported by Danny Levinson.  Details here:
72608         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72609
72610 2003-08-24  Bruno Haible  <bruno@clisp.org>
72611
72612         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72613         MSVC7 <stdio.h> is included later.
72614
72615 2003-08-22  Simon Josefsson  <jas@extundo.com>
72616
72617         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72618
72619 2003-08-20  Karl Berry  <karl@gnu.org>
72620
72621         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72622
72623 2003-08-20  Bruno Haible  <bruno@clisp.org>
72624
72625         * modules/progname: New file.
72626         * MODULES.html.sh (func_all_modules): Add progname.
72627
72628 2003-08-20  Bruno Haible  <bruno@clisp.org>
72629
72630         * lib/progname.h: New file, from GNU gettext.
72631         * lib/progname.c: New file, from GNU gettext.
72632         * lib/progreloc.c: New file, from GNU gettext.
72633
72634 2003-08-19  Jim Meyering  <jim@meyering.net>
72635
72636         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72637         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72638
72639 2003-08-19  Bruno Haible  <bruno@clisp.org>
72640
72641         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72642         more.
72643
72644 2003-08-19  Bruno Haible  <bruno@clisp.org>
72645
72646         * lib/xstrdup.c: Assume <string.h> exists.
72647
72648 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72649
72650         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72651         in makefile rules.
72652
72653 2003-08-18  Jim Meyering  <jim@meyering.net>
72654
72655         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72656         * m4/lib-ld.m4: Likewise.
72657
72658 2003-08-18  Jim Meyering  <jim@meyering.net>
72659
72660         * lib/setenv.h: Indent nested cpp directive.
72661         * lib/vasnprintf.c: Remove trailing blanks.
72662
72663 2003-08-17  Simon Josefsson  <jas@extundo.com>
72664
72665         * modules/xstrndup: New file.
72666         * MODULES.html.sh (func_all_modules): Add xstrndup.
72667
72668 2003-08-17  Simon Josefsson  <jas@extundo.com>
72669
72670         * modules/argp: Fix autoconf macro name. Add more dependencies.
72671
72672 2003-08-17  Simon Josefsson  <jas@extundo.com>
72673
72674         * m4/xstrndup.m4: New file.
72675
72676 2003-08-17  Simon Josefsson  <jas@extundo.com>
72677
72678         * m4/argp.m4: New file.
72679
72680 2003-08-17  Simon Josefsson  <jas@extundo.com>
72681             Bruno Haible  <bruno@clisp.org>
72682
72683         * lib/xstrndup.h: New file.
72684         * lib/xstrndup.c: New file.
72685
72686 2003-08-17  Bruno Haible  <bruno@clisp.org>
72687
72688         * modules/strndup (Files, Include): Add lib/strndup.h.
72689
72690 2003-08-17  Bruno Haible  <bruno@clisp.org>
72691
72692         * modules/euidaccess (Files): Add lib/euidaccess.h.
72693
72694 2003-08-17  Bruno Haible  <bruno@clisp.org>
72695
72696         * lib/strndup.h: New file.
72697
72698 2003-08-17  Bruno Haible  <bruno@clisp.org>
72699
72700         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72701         like AC_GNU_SOURCE.
72702         * modules/extensions (configure.ac): Comment out the invocation of
72703         gl_USE_SYSTEM_EXTENSIONS.
72704
72705 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72706
72707         Merges from coreutils, etc.
72708         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72709         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72710         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72711         fixing a typo.
72712         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72713         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72714
72715 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72716
72717         Document merge from coreutils.
72718         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72719         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72720         * modules/utime: Add m4/utimes-null.m4.
72721
72722 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72723
72724         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72725         space, undoing this 2003-08-12 change:
72726         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72727
72728 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72729
72730         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72731         strtoul.c from libc, undoing this 2003-08-12 change:
72732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72733
72734 2003-08-16  Jim Meyering  <jim@meyering.net>
72735
72736         Merges from coreutils.
72737         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72738         prefix.  Adjust cache variables similarly.  Create 500 rather than
72739         just 300 files, to exercise bug on Darwin6.5, too.
72740         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72741         $missing_dir.
72742         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72743         AM_SYS_POSIX_TERMIOS.
72744         Reported by mkc@mathdogs.com.
72745         Also change use of $am_cv_sys_posix_termios
72746         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72747         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72748         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72749         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72750         in /proc/mounts until it finds one with matching device number.  This
72751         is unnecessary when the FILE argument *is* a mount point.  No stat call
72752         is necessary in that case.  So, disable the statvfs-testing code on
72753         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72754         as RedHat bug# 84846.
72755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72756         to 1MB, so as not to render systems with no stack size limit (e.g.,
72757         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72758         Include <unistd.h>.  On some systems,
72759         it is required for the definition of _SC_PAGESIZE.
72760
72761 2003-08-16  Jim Meyering  <jim@meyering.net>
72762
72763         Merge from coreutils.
72764         * lib/xstrtoimax.c: #else #if -> #elif.
72765         * lib/xstrtoumax.c: Likewise.
72766
72767 2003-08-16  Jim Meyering  <jim@meyering.net>
72768
72769         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72770         * m4/utimes.m4: Removed.
72771         * m4/utimes-null.m4: Renamed from utimes.m4.
72772
72773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72774         to 1MB, so as not to render systems with no stack size limit (e.g.,
72775         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72776         Include <unistd.h>.  On some systems,
72777         it is required for the definition of _SC_PAGESIZE.
72778
72779 2003-08-16  Jim Meyering  <jim@meyering.net>
72780         and Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         Merges from coreutils, etc.
72783
72784         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72785         using the latest version from cvs.  This avoids problems with #line
72786         directives using a vendor (Sun) compiler.
72787         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72788         Don't set GETGROUPS_LIB here; now it's
72789         done via getgroups.m4's wrapper function.
72790         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72791         rather than just in sh-util/configure.in, so that the
72792         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72793         same.
72794         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72795         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72796         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72797         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72798         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72799         Remove code that is now done by the newly-required macros.
72800         Append $(EXEEXT) to DF_PROG.
72801         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72802         Do not invoke or require the following here,
72803         since prereq.m4 or some gnulib .m4 now does this for us:
72804         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72805         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72806         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72807         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72808         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72809         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72810         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72811         AC_FUNC_OBSTACK.
72812         Do not replace the following functions, as this is now the job
72813         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72814         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72815         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72816         atexit getpass, strdup, getpagesize.
72817         Replace 'raise'.
72818         Do not check for the following functions, as this is now the job
72819         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72820         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72821         setregid.
72822         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72823         Check for sys/sysctl.h.
72824         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72825         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72826         of checking for ssize_t ourselves.
72827
72828         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72829         Require every macro that gnulib/modules/* suggests for us.
72830         (jm_PREREQ_ADDEXT): New macro.
72831         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72832         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72833
72834         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72835         (gl_PHYSMEM): Use it.
72836         Also check for `table' function.
72837         Check for new headers and functions.
72838         Add check for sys/sysmp.h.
72839         With suggestions from Kaveh Ghazi.
72840         Ignore headers that are present but cannot be compiled.  This
72841         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72842         C 5.4.
72843
72844 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72845
72846         Document merge from coreutils.
72847         * modules/userspec: Depend on posixver.
72848         * modules/strftime: Depend on tzset.
72849
72850 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72851
72852         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72853         rather than tab, after '#' in shell-script copyright notices.
72854         Suggested by Bruno Haible.
72855
72856 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72857
72858         * config/srclist-update: Use three spaces, rather than tab, after '#'
72859         in shell-script copyright notices.  Suggested by Bruno Haible.
72860         Remove unnecessary parenthesization in regular expression.
72861
72862 2003-08-15  Jim Meyering  <jim@meyering.net>
72863
72864         Merge from coreutils.
72865         * lib/xgethostname.c: Include <stdlib.h>.
72866         (xghostname): Don't exit for anything other than memory-related
72867         failure; just return NULL.
72868         * lib/userspec.c: Include "posixver.h".
72869         (parse_user_spec): Accept `.' as a separator only
72870         in pre-POSIX-200112 mode.
72871         * lib/strtoimax.c: Use #elif rather than #else #if.
72872         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72873         Remove function, now that we can rely on a working tzset function.
72874         [!_LIBC]: Ensure that the required autoconf test has been run.
72875         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72876         Use underlying_strftime for %r.
72877         * lib/sha.c: Merge in some clean-up and optimization changes from
72878         glibc.
72879         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72880         Ensure that it is a multiple of 64.
72881         Rearrange loop exit tests so as to avoid performing an
72882         additional fread after encountering an error or EOF.
72883         * lib/realloc.c: Update copyright date.
72884
72885 2003-08-15  Jim Meyering  <jim@meyering.net>
72886         and Paul Eggert  <eggert@twinsun.com>
72887
72888         Merge from coreutils.
72889         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72890         member but strut utmpx does not.  Needed for AIX 4.3.3.
72891         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72892
72893 2003-08-15  Jim Meyering  <jim@meyering.net>
72894         and Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         Merges from coreutils, etc.
72897         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72898         Require gl_FUNC_TZSET_CLOBBER.
72899         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72900         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72901         members.
72902
72903 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72904
72905         Help the merge from coreutils.
72906         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72907         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72908         * m4/tzset.m4: Use it too.
72909
72910 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72911
72912         * modules/tzset: New file.
72913
72914 2003-08-14  Jim Meyering  <jim@meyering.net>
72915
72916         Merges from coreutils.
72917         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72918         variable names, rather than @FNMATCH_H@.
72919         * modules/alloca: Likewise for $(ALLOCA_H).
72920
72921         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72922         the three copies of the literal target, `fnmatch.h'.
72923         * modules/alloca (alloca.h): Likewise.
72924
72925 2003-08-14  Jim Meyering  <jim@meyering.net>
72926
72927         Merge from coreutils.
72928         * m4/tzset.m4: New file.
72929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72930         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72931         otherwise, AIX 5.1 systems would end up using the latter.
72932         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72933         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72934         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72935         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72936
72937 2003-08-14  Jim Meyering  <jim@meyering.net>
72938
72939         Merge from coreutils.
72940         * lib/obstack.h: Whitespace changes.
72941         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72942         and xcalloc return values.
72943         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72944         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72945         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72946         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72947         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72948         error from mntctl.
72949         Use mntctl's return value to drive the entry-processing loop, since
72950         we can't rely on the value of the vmt_length member in the last
72951         entry.  On some systems doing so could result in exhausting
72952         virtual memory.  Based in part on a patch from Mike Jetzer.
72953
72954 2003-08-14  Jim Meyering  <jim@meyering.net>
72955         and Paul Eggert  <eggert@twinsun.com>
72956
72957         Merges from coreutils, plus other fixes.
72958         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72959         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72960         for credits and details.  Thanks to Kaveh Ghazi for helping
72961         to keep these files in sync.
72962         (ARRAY_SIZE): Define it.
72963         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72964         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72965         (memcasecmp): Don't assume size_t fits in unsigned int.
72966         Remove casts and duplicate code.
72967         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72968         (memcpy): Remove definition.
72969         Merge in some clean-up and optimization changes from glibc.
72970         [BLOCKSIZE]: Move definition to top of file.
72971         Ensure that it is a multiple of 64.
72972         Rearrange loop exit tests so as to avoid performing an
72973         additional fread after encountering an error or EOF.
72974         * lib/md5.h (md5_uintptr): Define.
72975         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72976         return to the initial working directory.  Preserve errno
72977         for caller.
72978         * lib/idcache.c: Include "xalloc.h".
72979         (xmalloc, xrealloc): Remove decls.
72980         (getuser): Remove casts no longer required in C89.
72981         * lib/human.c: Include stdio.h, for sprintf.
72982         * lib/group-member.c: Include "xalloc.h".
72983         (xmalloc, xrealloc): Remove decls.
72984         (get_group_info): Remove casts no longer required in C89.
72985         * lib/getusershell.c (readname): Remove casts no longer required in
72986         C89.
72987         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72988         * lib/getline.c: Whitespace fix, from coreutils.
72989
72990 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72991
72992         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72993         Check for isascii.
72994
72995         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72996         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72997         Undo previous (whitespace-only) change.
72998
72999 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73000
73001         * lib/exclude.c: Include <ctype.h>
73002         (IN_CTYPE_DOMAIN): New macro.
73003         (is_space): New fn.
73004         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73005         and empty lines.
73006
73007         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73008         Undo previous (whitespace-only) change.
73009
73010 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73011
73012         * config/srclist-update: Change update back to the old behavior,
73013         leaving whitespace alone.  Use one 'sed' command rather than a
73014         pipeline.
73015         (fixlicense): Now a variable, not a function.
73016         (remove_trailing_blanks): Remove.
73017         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73018         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73019         Undo previous (whitespace-only) change.
73020
73021 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73022
73023         Merge from coreutils.
73024         * modules/euidaccess: Add lib_SOURCES, include for new
73025         file euidaccess.h
73026
73027 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73028
73029         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73030         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73031         Normalize leading white space and remove trailing white space.
73032
73033         Merge from coreutils
73034         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73035
73036         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73037         0.12.1.  These files are now being upgraded automatically by
73038         ../config/srclist-update.
73039
73040 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73041
73042         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73043         Normalize leading white space and remove trailing white space.
73044         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73045         notice, as per ../config/srclist-update.
73046
73047         Merge from coreutils.
73048         * lib/euidaccess.h: New file.
73049         * lib/euidaccess.c: Include it.
73050         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73051         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73052         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73053
73054 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73055
73056         * config/srclist-update: Add copyright notice.
73057         (remove_id_lines, remove_trailing_blanks): New constants.
73058         (fixfile): Use them to normalize spacing a bit in copied files.
73059         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73060         Normalize leading white space and remove trailing white space.
73061
73062         * config/texinfo.tex: Sync with texinfo.
73063
73064         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73065         strtoul.c from libc, to merge coreutils whitespace changes.
73066
73067         * config/srclist.txt: Get the following m4 files from gettext:
73068         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73069         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73070         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73071         wint_t.m4.
73072
73073 2003-08-12  Karl Berry  <karl@gnu.org>
73074
73075         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73076         been made.
73077
73078 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73079
73080         * modules/gnu-source, m4/gnu-source.m4:
73081         Remove; we're assuming Autoconf 2.54 or later now.
73082         Suggested by Bruno Haible.
73083         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73084
73085 2003-08-11  Bruno Haible  <bruno@clisp.org>
73086
73087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73088
73089 2003-08-11  Bruno Haible  <bruno@clisp.org>
73090
73091         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73092         (vasnprintf): Use it instead of wcslen.
73093
73094 2003-08-11  Bruno Haible  <bruno@clisp.org>
73095
73096         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73097         value to ensure that _Bool promotes to int. Use #define for _Bool when
73098         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73099
73100 2003-08-10  Karl Berry  <karl@gnu.org>
73101
73102         * lib/regex.h: update from libc (whitespace fix).
73103
73104 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73105
73106         Merge some files from coreutils.  These changes were
73107         originally made by Jim Meyering.
73108         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73109         many older Unixes require this.
73110         * lib/alloca.c (alloca): Remove cast to argument of free;
73111         no longer needed in C89.
73112         * lib/alloca_.h, regex.h: Fix white space to match
73113         what GNU indent does.
73114
73115 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73116
73117         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73118         apparently Emacs's Unicode mode got confused before my 2003-08-05
73119         checkin.
73120
73121 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73122
73123         * m4/extensions.m4: New file.
73124         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73125         Require gl_USE_SYSTEM_EXTENSIONS.
73126         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73127         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73128
73129 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73130
73131         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73132         * modules/extensions, modules/gnu-source: New files.
73133         * modules/timespec, modules/unlocked-io: Depend on extensions.
73134
73135 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73136
73137         * modules/restrict: New file.
73138         * MODULES.html.sh (func_all_modules): Add restrict.
73139         * modules/regex: Depend on restrict.
73140
73141 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73142
73143         * m4/restrict.m4: New file.
73144         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73145
73146 2003-08-07  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73149         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73150
73151 2003-08-07  Bruno Haible  <bruno@clisp.org>
73152
73153         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73154         makes the module 'getndelim2' compatible with the module 'getline'.
73155
73156 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73157
73158         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73159         byte with "\201" to avoid glitches when editing that source file
73160         with multi-gnome-terminal.
73161
73162 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73163
73164         * lib/bumpalloc.h: Remove.
73165
73166 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73167
73168         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73169         * modules/bumpalloc: Remove.
73170
73171 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73172
73173         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73174         GNU coding style.
73175
73176         Merge from coreutils.
73177         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73178         1. From glibc.
73179         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73180         from Karl Berry, implemented by Jim Meyering.
73181         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73182         from Dmitry V. Levin.
73183         Remove anachronistic cast of xrealloc.
73184         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73185         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73186         type. Otherwise, it wouldn't compile with at least /bin/cc on
73187         ymp-cray-unicos9.0.2.X.
73188         Combine two mostly-identical uses of alloca into one.
73189         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73190
73191 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73192
73193         [From Emacs.]
73194
73195         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73196         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73197         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73198         obsolete NLIST_NAME_UNION.
73199         [__GNU__]: Undef BSD and FSCALE.
73200         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73201
73202 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73203
73204         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73205         an enum type, so that it's guaranteed to promote to int.  See:
73206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73207
73208 2003-08-03  Karl Berry  <karl@gnu.org>
73209
73210         * config/depcomp: update from automake.
73211
73212 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73213
73214         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73215         (strerror): Don't assume that a printable int fits in 14 bytes.
73216
73217 2003-07-31  Bruno Haible  <bruno@clisp.org>
73218
73219         * modules/getpass-gnu: New file.
73220         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73221
73222 2003-07-31  Bruno Haible  <bruno@clisp.org>
73223
73224         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73225
73226 2003-07-24  Karl Berry  <karl@gnu.org>
73227
73228         * config/missing: update from automake.
73229
73230 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73231             Bruno Haible  <bruno@clisp.org>
73232
73233         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73234         * lib/getline.c (getline, getdelim): Likewise.
73235         Remove _GNU_SOURCE define; now it's defined in config.h through
73236         m4/getline.m4.
73237
73238 2003-07-23  Karl Berry  <karl@gnu.org>
73239
73240         * config/config.sub: update from prep.
73241
73242 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73243
73244         * modules/xalloc (Depends-on): Add exitfail.
73245         * modules/xmemcoll: Likewise.
73246
73247 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73248
73249         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73250         over-parenthesization in macros.
73251
73252         Sync with coreutils.
73253
73254         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73255         required by C99.
73256
73257         Use `exit_failure' for xalloc and xmemcoll instead of their own
73258         private exit-failure variables.
73259         * lib/xalloc.h (xalloc_exit_failure): Remove.
73260         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73261         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73262         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73263         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73264         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73265
73266 2003-07-20  Jim Meyering  <jim@meyering.net>
73267
73268         * modules/closeout (Depends-on): Add exitfail.
73269         Suggestion from Bruno Haible.
73270
73271 2003-07-19  Karl Berry  <karl@gnu.org>
73272
73273         * config/config.sub: update from prep.
73274
73275 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73276
73277         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73278         Remove.
73279         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73280         to test that it can stand by itself.  Include "exitfail.h".
73281         Clients should set exit_failure instead.
73282         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73283
73284 2003-07-18  Bruno Haible  <bruno@clisp.org>
73285
73286         * modules/getndelim2: New file.
73287         * modules/getline: Share files with module getndelim2.
73288         * modules/getnline: Depend on getndelim2 instead of sharing files with
73289         it. Add getnline.c to lib_SOURCES.
73290         * MODULES.html.sh (func_all_modules): Add getndelim2.
73291
73292 2003-07-18  Bruno Haible  <bruno@clisp.org>
73293
73294         * m4/getndelim2.m4: New file.
73295         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73296         invoke gl_PREREQ_GETNDELIM2.
73297         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73298         gl_PREREQ_GETNDELIM2.
73299         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73300         gl_GETNDELIM2.
73301
73302 2003-07-18  Bruno Haible  <bruno@clisp.org>
73303
73304         * lib/getndelim2.h: New file.
73305         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73306         getndelim2.h.
73307         (getndelim2): Make non-static. Change return type to ssize_t.
73308         * lib/getline.h: Change argument names.
73309         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73310         * lib/getnline.c: Include getndelim2.h.
73311
73312 2003-07-18  Andreas Schwab  <schwab@suse.de>
73313
73314         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73315
73316 2003-07-17  Karl Berry  <karl@gnu.org>
73317
73318         * config/config.sub: update from prep.
73319
73320 2003-07-17  Bruno Haible  <bruno@clisp.org>
73321
73322         * modules/getnline: New file.
73323         * modules/getline: Add lib/getndelim2.c to source file list.
73324         * MODULES.html.sh (func_all_modules): Add getnline.
73325
73326 2003-07-17  Bruno Haible  <bruno@clisp.org>
73327
73328         * m4/getnline.m4: New file.
73329
73330 2003-07-17  Bruno Haible  <bruno@clisp.org>
73331
73332         * m4/Makefile.am.in: Remove file.
73333         * m4/Makefile.am: Remove file.
73334         * m4/Makefile.in: Remove file.
73335
73336 2003-07-17  Bruno Haible  <bruno@clisp.org>
73337
73338         * lib/getnline.h: New file.
73339         * lib/getnline.c: New file.
73340         * lib/getndelim2.c: New file, extracted from getline.c.
73341         (getndelim2): Renamed from getdelim2, with added nmax argument.
73342         * lib/getline.c: Include getndelim2.c.
73343         (getdelim2): Moved out to getndelim2.c.
73344         (getline, getdelim): Update.
73345
73346 2003-07-17  Bruno Haible  <bruno@clisp.org>
73347
73348         * lib/Makefile.am: Remove file.
73349         * lib/Makefile.in: Remove file.
73350
73351 2003-07-17  Bruno Haible  <bruno@clisp.org>
73352
73353         * configure.in: Remove file.
73354         * Makefile.in: Remove file.
73355
73356 2003-07-17  Bruno Haible  <bruno@clisp.org>
73357
73358         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73359
73360 2003-07-16  Karl Berry  <karl@gnu.org>
73361
73362         * config/srclist-update: was running fixlicense twice, which caused
73363                 texinfo.tex to be nullified for some reason.  Simplify,
73364                 $gplsrc is no longer needed as far as I can see?
73365
73366 2003-07-16  Jim Meyering  <jim@meyering.net>
73367
73368         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73369
73370 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73371
73372         * config/srclist.txt: Get the following files from gettext-runtime/intl
73373         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73374         ref-del.sin.  From Bruno Haible.
73375         * config/srclist-update (fixfile): Change grep pattern again, since the
73376         previous fix didn't work (there was another trailing $).  Use
73377         '[$]' to escape the $s.
73378
73379 2003-07-15  Karl Berry  <karl@gnu.org>
73380
73381         * lib/vasnprintf.c: update from gettext.
73382
73383 2003-07-15  Karl Berry  <karl@gnu.org>
73384
73385         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73386         gets expanded when surrounded by '$'.
73387
73388 2003-07-15  Jim Meyering  <jim@meyering.net>
73389
73390         * modules/save-cwd: Don't depend on error.  From Derek Price.
73391
73392 2003-07-15  Jim Meyering  <jim@meyering.net>
73393
73394         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73395
73396 2003-07-14  Simon Josefsson  <jas@extundo.com>
73397
73398         * modules/mempcpy: New file.
73399         * MODULES.html.sh (func_all_modules): Add mempcpy.
73400
73401 2003-07-14  Simon Josefsson  <jas@extundo.com>
73402
73403         * m4/mempcpy.m4: New file.
73404
73405 2003-07-14  Simon Josefsson  <jas@extundo.com>
73406
73407         * lib/mempcpy.h: New file.
73408         * lib/mempcpy.c: New file.
73409
73410 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73411
73412         * modules/getdate, modules/posixtm: Depend on mktime.
73413
73414 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73415
73416         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73417         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73418         unicodeio.c, unicodeio.h, unlocked-io.h:
73419         Switch from LGPL to GPL.
73420
73421 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73422
73423         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73424         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73425         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73426         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73427         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73428         updated automatically by ../config/srclist-update.  This changes
73429         their license from LPGL to GPL.
73430
73431 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73432
73433         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73434         assumed to refer to the root of the most recent stable gettext version.
73435         * config/srclistvars.sh: Add defaults for eggert.
73436         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73437         Match "This program" as well as "The program".  This is needed
73438         for gettext.
73439
73440 2003-07-14  Jim Meyering  <jim@meyering.net>
73441
73442         Don't emit diagnostics.  Let callers do that.
73443         * lib/save-cwd.c: Don't include "error.h".
73444         (save_cwd): Don't call error.  Ensure that errno is valid
73445         when returning nonzero.
73446
73447         * lib/save-cwd.h (restore_cwd): Update prototype.
73448         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73449         Simplify.  Don't call error upon failure.  Let callers do that.
73450         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73451         when auditing is enabled.  But don't bother updating the #if.
73452
73453 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73454
73455         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73456         it breaks C++ compilation.
73457         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73458
73459 2003-07-10  Simon Josefsson  <jas@extundo.com>
73460
73461         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73462
73463 2003-07-10  Jim Meyering  <jim@meyering.net>
73464
73465         * m4/clock_time.m4: Remove trailing blank.
73466         * m4/intmax_t.m4: Likewise.
73467
73468 2003-07-10  Jim Meyering  <jim@meyering.net>
73469
73470         * lib/vasnprintf.c: Remove trailing blanks.
73471         Make cpp indentation consistent.
73472
73473 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73474
73475         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73476         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73477         Switch from LGPL to GPL.
73478
73479 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73480
73481         * config/srclist.txt: Sort sublists.  Add
73482         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73483         that differ from gnulib for one reason or another; we'd like this list
73484         to be smaller but for now let's document what we have.
73485
73486 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73487
73488         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73489         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73490         and sweeter "eval x=$x".
73491         * config/srclist.txt: Get lib/argp* from glibc.
73492
73493 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73494
73495         * lib/mktime.c: Fix some boundary cases and remove need for floating
73496         point.
73497
73498         Issue a compile-time diagnostic if time_t is floating point, or if
73499         two's complement arithmetic is not in effect, or if arithmetic
73500         right shift does not propagate the sign.  These assumptions were
73501         all in the original code but they weren't checked.
73502
73503         (TIME_T_MIDPOINT, verify): New macros.
73504         (__isleap): Remove; it has integer overflow problems.
73505         (leapyear): New function, without those problems.
73506         (ydhms_tm_diff): Remove; splitting into two parts.
73507         (ydhms_diff): New function, containing the arithmetic part of
73508         the old ydhms_tm_diff function.  Issue a compile-time
73509         diagnostic if we are not using C99 integer division.
73510         Avoid casts when possible.
73511         (guess_time_tm): New function, containing the checking part of
73512         the old ydhms_tm_diff function.  Return the new value, rather than
73513         the difference between it and the old.  Accept a new argument T
73514         so that *T specifies the old value.  Check for overflow in the result.
73515
73516         (__mktime_internal): Use a time_t offset, not a long int offset.
73517         This undoes the 2003-06-04 change, which is no longer needed now
73518         that we have better overflow checking.
73519         (localtime_offset): Likewise.
73520
73521         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73522         and long are 64-bit but int is only 32-bit.
73523         (ydhms_diff): Use long int to store year1 and yday1.
73524         Issue a compile-time diagnostic if long int is not wide enough.
73525
73526         (__mktime_internal): Use long int to store adjusted year and yday.
73527         Use plain C rather than preprocessor commands, if that doesn't
73528         affect efficiency.
73529         Check for overflow (and try to repair) after each probe
73530         rather than checking only at the very end.  This avoids some bugs
73531         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73532         does not equal GMT offset at maximum time).
73533         Use integer to check for overflow rather than floating point; this
73534         is more portable to non-IEEE hosts, and is a tad faster.
73535         When we detect that we are oscillating between two values,
73536         don't check whether tm_isdst has the requested value, since
73537         we already know the answer.  When tm_isdst has the wrong value,
73538         use a different heuristic to find the right one, based on the
73539         extreme values actually observed in practice in tz2003a,
73540         rather than the (overly optimistic) "previous 3 calendar quarters".
73541
73542         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73543         "T const" to accommodate glibc style.
73544         (check_result): Use less-confusing report format.  "long" -> "long int.
73545         (main): Likewise.
73546         Don't loop if the iteration overflows time_t.
73547         Allow a negative step in the iteration.
73548
73549 2003-07-06  Karl Berry  <karl@gnu.org>
73550
73551         * config/depcomp: update from automake.
73552         * config/config.sub: update from prep.
73553
73554 2003-07-03  Karl Berry  <karl@gnu.org>
73555
73556         * config/config.guess: update from prep.
73557
73558 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73559
73560         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73561         xreadlink.c now includes it unconditionally.
73562
73563 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73564
73565         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73566         having it depend on HAVE_SYS_TYPES_H.
73567
73568 2003-07-01  Bruno Haible  <bruno@clisp.org>
73569
73570         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73571         <sys/types.h> should be sufficient.
73572         Reported by Paul Eggert.
73573
73574 2003-06-26  Karl Berry  <karl@gnu.org>
73575
73576         * config/depcomp: update from automake.
73577
73578 2003-06-26  Bruno Haible  <bruno@clisp.org>
73579
73580         * modules/human: Depend on module stdbool.
73581
73582 2003-06-25  Bruno Haible  <bruno@clisp.org>
73583
73584         * modules/readlink: New file.
73585         * modules/xreadlink: Depend on it.
73586         * MODULES.html.sh (func_all_modules): Add readlink.
73587
73588 2003-06-25  Bruno Haible  <bruno@clisp.org>
73589
73590         * m4/readlink.m4: New file.
73591
73592 2003-06-25  Bruno Haible  <bruno@clisp.org>
73593
73594         * lib/readlink.c: New file.
73595
73596 2003-06-22  Karl Berry  <karl@gnu.org>
73597
73598         * config/srclist.txt: update mkinstalldirs from automake.
73599         * config/mkinstalldirs: update.
73600
73601 2003-06-22  Bruno Haible  <bruno@clisp.org>
73602
73603         Portability to mingw32.
73604         * m4/ssize_t.m4: New file, from GNU gettext.
73605         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73606         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73607
73608 2003-06-22  Bruno Haible  <bruno@clisp.org>
73609
73610         * modules/safe-read: Add m4/ssize_t.m4.
73611         * modules/xreadlink: Add m4/ssize_t.m4.
73612
73613 2003-06-20  Bruno Haible  <bruno@clisp.org>
73614
73615         Assume C89, so PARAMS isn't needed.
73616         * lib/unicodeio.h (PARAMS): Remove.
73617         * lib/unicodeio.c: Don't use PARAMS.
73618
73619 2003-06-18  Karl Berry  <karl@gnu.org>
73620
73621         * config/config.{guess,sub}: update from prep.
73622
73623 2003-06-18  Jim Meyering  <jim@meyering.net>
73624
73625         Merge changes from coreutils.
73626         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73627         Remove explicit declarations of xmalloc and realloc.
73628         Include xalloc.h.
73629         (read_utmp): Remove anachronistic cast of xmalloc.
73630
73631 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73632
73633         Assume C89, so PARAMS isn't needed.
73634         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73635         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73636         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73637         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73638         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73639         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73640         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73641         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73642         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73643         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73644         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73645         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73646         no longer needed. Anyway, config.h should always be included before any
73647         other file.
73648
73649 2003-06-11  Simon Josefsson  <jas@extundo.com>
73650
73651         * modules/sysexits: New file.
73652         * MODULES.html.sh (func_all_modules): Add sysexits.
73653
73654 2003-06-11  Simon Josefsson  <jas@extundo.com>
73655
73656         * lib/sysexit_.h: New file.
73657
73658 2003-06-11  Derek Price  <derek@ximbiot.com>
73659
73660         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73661         necessary.
73662
73663 2003-06-11  Bruno Haible  <bruno@clisp.org>
73664
73665         * m4/sysexits.m4: New file.
73666
73667 2003-06-10  Simon Josefsson  <jas@extundo.com>
73668
73669         * lib/argp.h: New file, from glibc.
73670         * lib/argp-ba.c: New file, from glibc.
73671         * lib/argp-eexst.c: New file, from glibc.
73672         * lib/argp-fmtstream.c: New file, from glibc.
73673         * lib/argp-fmtstream.h: New file, from glibc.
73674         * lib/argp-fs-xinl.c: New file, from glibc.
73675         * lib/argp-help.c: New file, from glibc.
73676         * lib/argp-namefrob.h: New file, from glibc.
73677         * lib/argp-parse.c: New file, from glibc.
73678         * lib/argp-pv.c: New file, from glibc.
73679         * lib/argp-pvh.c: New file, from glibc.
73680         * lib/argp-xinl.c: New file, from glibc.
73681
73682 2003-06-10  Simon Josefsson  <jas@extundo.com>
73683
73684         * modules/strchrnul: New file.
73685
73686 2003-06-10  Simon Josefsson  <jas@extundo.com>
73687
73688         * modules/argp: New file.
73689
73690 2003-06-10  Simon Josefsson  <jas@extundo.com>
73691
73692         * m4/strchrnul.m4: New file.
73693
73694 2003-06-10  Simon Josefsson  <jas@extundo.com>
73695
73696         * lib/strchrnul.h: New file.
73697         * lib/strchrnul.c: New file.
73698
73699 2003-06-10  Bruno Haible  <bruno@clisp.org>
73700
73701         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73702
73703 2003-06-07  Karl Berry  <karl@gnu.org>
73704
73705         * config/config.{guess,sub}: update from prep.
73706
73707 2003-06-07  Jim Meyering  <jim@meyering.net>
73708
73709         * modules/strtod: Use $(...) notation, not @...@ for
73710         AC_REPLACE'd variables.
73711         * modules/localcharset: Likewise.
73712
73713 2003-06-07  Jim Meyering  <jim@meyering.net>
73714
73715         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73716         in place of my name in the copyright comment.
73717         Remove definition and uses of __P.
73718
73719         From coreutils.
73720         * lib/stat.c: Don't declare xmalloc explicitly.
73721         Instead, include "xalloc.h".
73722         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73723         xrealloc, and xcalloc return values.
73724         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73725         Improve comment.
73726         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73727
73728 2003-06-07  Bruno Haible  <bruno@clisp.org>
73729
73730         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73731         avoid AC_CONFIG_LINKS.
73732         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73733         fnmatch.h, to avoid AC_CONFIG_LINKS.
73734         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73735
73736 2003-06-07  Bruno Haible  <bruno@clisp.org>
73737
73738         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73739         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73740         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73741         directory.
73742         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73743         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73744         directory.
73745
73746 2003-06-06  Jim Meyering  <jim@meyering.net>
73747
73748         Merge from coreutils.
73749         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73750         Consolidate declarations and initializations of *_base* locals.
73751
73752         Merge from coreutils.
73753         This avoids a core dump on systems without GNU putenv,
73754         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73755         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73756         (unsetenv): New static function, from GNU libc.
73757         (rpl_putenv): Use it.
73758
73759         * lib/modechange.c: Remove trailing blanks.
73760
73761         Merge from coreutils.
73762         * lib/fsusage.c: Remove declaration of statfs.
73763         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73764
73765         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73766
73767 2003-06-06  Jim Meyering  <jim@meyering.net>
73768
73769         * lib/stdbool_.h: Renamed from stdbool.h.in.
73770
73771 2003-06-06  Jim Meyering  <jim@meyering.net>
73772             Bruno Haible  <bruno@clisp.org>
73773
73774         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73775         Adjust Makefile.am snippet not to redirect directly to target.
73776         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73777
73778 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73779
73780         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73781         mismatch, look in future quarters as well as past.  This fixes a
73782         bug when processing fall-backwards gaps immediately after a long
73783         period of daylight-saving time.
73784
73785         * lib/mktime.c: Assume freestanding C89 or better.
73786         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73787         (__P): Remove; not used.
73788         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73789         (mktime, not_equal_tm, print_tm, check_result,
73790         main): Use prototypes.  Use const * where appropriate.
73791         (main): Fix typo in testing code that uncovered by above changes.
73792         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73793
73794 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73795
73796         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73797         locale.h, localeconv.  This merges changes from coreutils.
73798
73799         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73800         It can be removed after the next Autoconf is released.
73801         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73802         needed.
73803
73804 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73805
73806         * lib/mktime.c: Fix Debian bug 177940
73807         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73808         (localtime_offset): Now long int, not time_t, because we want it
73809         to be guaranteed to be signed.  All uses changed.
73810         (__mktime_internal): If overflow would occur when adding offset,
73811         don't add it.
73812
73813         Merge 'human' changes from coreutils.  Rewrite to support
73814         locale-specific notations like thousands separators.
73815         * lib/human.c: Simplify authorship notice.
73816         Include human.h immediately after config.h.
73817         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73818         <limits.h>: Do not include, since human.h does.
73819         (SIZE_MAX, UINTMAX_MAX): New macros.
73820         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73821         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73822         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73823         (power_letter): Renamed from suffixes.
73824         (generate_suffix_backwards): Remove.
73825         (adjust_value): Now takes int style (because of human.h changes)
73826         and long double value (for greater precision on some platforms).
73827         (group_number): New function.
73828         (human_readable): Use it.  Use integer options, not enum.
73829         Put the options before the sizes in the arg list.
73830         Support all the new options.
73831         The old human_readable function has been removed;
73832         use inttostr.h instead.
73833         (human_readable, default_block_size, humblock):
73834         Use uintmax_t, not int, for block sizes.
73835         (human_readable_inexact, block_size_types): Remove.
73836         (block_size_opts): New constant.
73837         (human_options): Renamed from human_block_size, with new signature
73838         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73839         * lib/human.h: Add copyright and authorship notice.
73840         Include <limits.h> and <stdbool.h> unconditionally.
73841         (PARAMS): Remove.  All uses removed.
73842         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73843         (enum human_inexact_style): Remove tag; now a nameless enum.
73844         (human_floor, human_ceiling, human_round_to_even): Now have
73845         values 2, 0, 1 rather than -1, 1, 0.
73846         (human_group_digits, human_suppress_point_zero, human_autoscale,
73847         human_base_1024, human_SI, human_B): New constants.
73848         (human_readable_inexact, human_block_size): Remove.
73849         (human_readable): Size args are now uintmax_t, not int.
73850         (human_options): New decl.
73851
73852         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73853         unnecessary now that we assume C89 or better.  This change
73854         imported from coreutils.
73855
73856         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73857         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73858         in the 2003-05-30 sync from glibc.
73859
73860         .h files should stand alone, but we shouldn't include <sys/types.h>
73861         if we can get away with just <stddef.h>.
73862
73863         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73864         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73865         rather than <sys/types.h>, as we merely need size_t.
73866         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73867         to get size_t.
73868         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73869         Include <stdio.h>, to get FILE.
73870         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73871         memcasecmp.h has included <stddef.h> and all we need is size_t.
73872         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73873         our interface, instead of including <sys/types.h>
73874
73875 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73876
73877         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73878         now, as glibc mktime is buggy on non-glibc systems.
73879
73880 2003-06-03  Karl Berry  <karl@gnu.org>
73881
73882         * config/config.sub: update from prep.
73883
73884 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73885
73886         [from coreutils]
73887         Fix some minor time-related bugs with POSIX time arguments.
73888         Some valid time stamps were being rejected (notably -1, and
73889         time stamps before 1900 on 64-bit hosts).  And some invalid
73890         time stamps were being accepted, e.g. September 31.
73891
73892         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73893         that we can return (time_t) -1 successfully.
73894         * lib/posixtm.c: Likewise.
73895         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73896         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73897         (t): Remove static var.
73898         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73899         of static var.  All uses changed.
73900         (year): Do not reject years before 1900; they can occur with
73901         64-bit time_t.
73902         (posix_time_parse): Do not check for out-of-range components;
73903         that is now the caller's responsibility, since our checks were
73904         only approximations.
73905         (posixtime): Use mktime to check for out-of-range components,
73906         since it knows them exactly.
73907         If mktime returns (time_t) -1, check whether an error actually occurred
73908         by invoking localtime on -1.
73909         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73910         posixtime failures better.
73911         Improve the test data (in comments only).
73912
73913 2003-06-02  Karl Berry  <karl@gnu.org>
73914
73915         * config/mkinstalldirs (version): new variable.
73916         (--version): new option.
73917         (usage): improve message.
73918
73919 2003-05-30  Karl Berry  <karl@gnu.org>
73920
73921         * lib/mktime.c: update from libc.
73922
73923 2003-05-30  Bruno Haible  <bruno@clisp.org>
73924
73925         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73926         * config/config.rpath: Upgrade to gettext-0.12.1.
73927
73928 2003-05-30  Bruno Haible  <bruno@clisp.org>
73929
73930         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73931         * m4/nls.m4: New file, from gettext-0.12.1.
73932         * m4/po.m4: New file, from gettext-0.12.1.
73933         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73934
73935 2003-05-30  Bruno Haible  <bruno@clisp.org>
73936
73937         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73938         * lib/localcharset.h: Likewise.
73939         * lib/localcharset.c: Likewise.
73940
73941 2003-05-29  Karl Berry  <karl@gnu.org>
73942
73943         * config/config.rpath: update from gettext.
73944
73945 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73946
73947         Assume the headers required for C89 freestanding compilers.
73948         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73949         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73950         * m4/human.m4 (gl_HUMAN): Likewise.
73951         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73952         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73953         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73954         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73955         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73956         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73957
73958 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73959
73960         Assume the headers required for C89 freestanding compilers.
73961         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73962         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73963         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73964         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73965         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73966         define, since <limits.h> is guaranteed to do that.
73967         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73968         * lib/exclude.c: Include <stdbool.h> unconditionally.
73969         * lib/tempname.c: Include <stddef.h> unconditionally.
73970         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73971         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73972         <stddef.h> does that.
73973         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73974         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73975         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73976         needed.
73977         * lib/xstrtol.c: Likewise.
73978         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73979         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73980
73981         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73982         warnings on some platforms.
73983
73984         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73985         arbitrarily.
73986
73987 2003-05-26  Jim Meyering  <jim@meyering.net>
73988
73989         Merge in a change from coreutils:
73990         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73991         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73992         that condition, rather than `-1' which is slightly misleading.
73993         Change the name of the cache variable to have the gl_ prefix.
73994         Prompted by a patch from Richard Dawe for DJGPP.
73995
73996 2003-05-24  Karl Berry  <karl@gnu.org>
73997
73998         * config/config.guess: update from prep.
73999
74000 2003-05-22  Karl Berry  <karl@gnu.org>
74001
74002         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74003
74004 2003-05-20  Karl Berry  <karl@gnu.org>
74005
74006         * config/config.guess: update from prep.
74007
74008 2003-05-18  Karl Berry  <karl@gnu.org>
74009
74010         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74011         might actually be set by the user.
74012
74013         * config/depcomp, install-sh, mdate-sh: update from automake.
74014
74015 2003-05-17  Bruno Haible  <bruno@clisp.org>
74016
74017         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74018         invalid expansion for AC_EGREP_CPP.
74019         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74020         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74021         Suggested by Akim Demaille <akim@epita.fr> in
74022         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74023
74024 2003-05-12  Jim Meyering  <jim@meyering.net>
74025
74026         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74027         the space-padded-by-default conversion specifiers, %e, %k, %l.
74028
74029 2003-05-12  Bruno Haible  <bruno@clisp.org>
74030
74031         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74032         the string is longer than 4 KB.
74033
74034 2003-05-11  Karl Berry  <karl@gnu.org>
74035
74036         * config/config.{guess,sub}: update from prep.
74037
74038 2003-05-09  Bruno Haible  <bruno@clisp.org>
74039
74040         * modules/error: Add m4/strerror_r.m4 to file list.
74041
74042 2003-05-03  Bruno Haible  <bruno@clisp.org>
74043
74044         Upgrade to Unicode-4.0.
74045         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74046         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74047         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74048         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74049         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74050         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74051         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74052         Change width of U+E0100..U+E01EF from 1 to 0.
74053
74054 2003-04-25  Jim Meyering  <jim@meyering.net>
74055
74056         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74057         of type size_t, not int.
74058
74059 2003-04-25  Bruno Haible  <bruno@clisp.org>
74060
74061         * lib/copy-file.c: Include <stddef.h>, for size_t.
74062
74063 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74064
74065         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74066         code which expansion is under static control.  Patch imported from
74067         Akim Demaille's patch to Bison; see
74068         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74069
74070 2003-04-14  Bruno Haible  <bruno@clisp.org>
74071
74072         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74073
74074 2003-04-11  Jim Meyering  <jim@meyering.net>
74075
74076         Merge changes from Coreutils.
74077
74078         2003-03-22  Jim Meyering  <jim@meyering.net>
74079
74080         * lib/strftime.c (widen): Cast alloca return value to proper type.
74081
74082         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74083
74084         From GNU libc.
74085         * lib/strftime.c (my_strftime): Handle very large width
74086         specifications for numeric values correctly.  Improve checks for
74087         overflow.
74088
74089         2003-01-19  Jim Meyering  <jim@meyering.net>
74090
74091         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74092         definitions.
74093         (nl_get_alt_digit) [! defined my_strftime]: Define.
74094         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74095         _nl_get_alt_digit and _nl_get_walt_digit.
74096
74097         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74098         libc. These changes have no effect outside of _LIBC.
74099
74100 2003-04-10  Bruno Haible  <bruno@clisp.org>
74101
74102         * modules/findprog: New file.
74103         * MODULES.html.sh (func_all_modules): Add it.
74104
74105 2003-04-10  Bruno Haible  <bruno@clisp.org>
74106
74107         * m4/findprog.m4: New file.
74108         * m4/eaccess.m4: New file.
74109
74110 2003-04-10  Bruno Haible  <bruno@clisp.org>
74111
74112         * lib/findprog.h: New file, from GNU gettext.
74113         * lib/findprog.c: New file, from GNU gettext.
74114
74115 2003-04-05  Jim Meyering  <jim@meyering.net>
74116
74117         Merge changes from Coreutils.
74118
74119         * lib/exclude.h (PARAMS): Remove definition and uses.
74120         * lib/exclude.c: Remove uses of `PARAMS'.
74121
74122         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74123         Add test-cases for DOS filenames. Declare program_name.
74124         (main): Set up program_name.  Patch by Rich Dawe.
74125
74126         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74127         error from mntctl.
74128         Use mntctl's return value to drive the entry-processing loop, since
74129         we can't rely on the value of the vmt_length member in the last
74130         entry.  On some systems doing so could result in exhausting
74131         virtual memory.  Based in part on a patch from Mike Jetzer.
74132
74133 2003-04-04  Bruno Haible  <bruno@clisp.org>
74134
74135         * modules/linebreak: New file.
74136         * MODULES.html.sh (func_all_modules): Add it.
74137
74138 2003-04-04  Bruno Haible  <bruno@clisp.org>
74139
74140         * m4/linebreak.m4: New file.
74141
74142 2003-04-04  Bruno Haible  <bruno@clisp.org>
74143
74144         * lib/linebreak.h: New file, from GNU gettext.
74145         * lib/linebreak.c: New file, from GNU gettext with slight
74146         modifications.
74147         * lib/lbrkprop.h: New file, from GNU gettext.
74148
74149 2003-04-03  Bruno Haible  <bruno@clisp.org>
74150
74151         * modules/utf8-ucs4: New file.
74152         * modules/utf16-ucs4: New file.
74153         * modules/ucs4-utf8: New file.
74154         * modules/ucs4-utf16: New file.
74155         * MODULES.html.sh (func_all_modules): Add them.
74156
74157 2003-04-03  Bruno Haible  <bruno@clisp.org>
74158
74159         * m4/utf-ucs4.m4: New file.
74160         * m4/ucs4-utf.m4: New file.
74161
74162 2003-04-03  Bruno Haible  <bruno@clisp.org>
74163
74164         * lib/utf8-ucs4.h: New file, from GNU gettext.
74165         * lib/utf16-ucs4.h: New file, from GNU gettext.
74166         * lib/ucs4-utf8.h: New file, from GNU gettext.
74167         * lib/ucs4-utf16.h: New file, from GNU gettext.
74168
74169 2003-04-02  Bruno Haible  <bruno@clisp.org>
74170
74171         * modules/binary-io: New file.
74172         * MODULES.html.sh (func_all_modules): Add it.
74173
74174 2003-04-02  Bruno Haible  <bruno@clisp.org>
74175
74176         * lib/binary-io.h: New file, from GNU gettext.
74177
74178 2003-04-01  Bruno Haible  <bruno@clisp.org>
74179
74180         * modules/pathname: New file.
74181         * MODULES.html.sh (func_all_modules): Add it.
74182
74183 2003-04-01  Bruno Haible  <bruno@clisp.org>
74184
74185         * lib/pathname.h: New file, from GNU gettext.
74186         * lib/concatpath.c: New file, from GNU gettext.
74187
74188 2003-03-30  Bruno Haible  <bruno@clisp.org>
74189
74190         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74191
74192 2003-03-30  Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74195         function chown() doesn't exist.
74196
74197 2003-03-28  Bruno Haible  <bruno@clisp.org>
74198
74199         * modules/copy-file: New file.
74200         * MODULES.html.sh (func_all_modules): Add it.
74201
74202 2003-03-28  Bruno Haible  <bruno@clisp.org>
74203
74204         * m4/copy-file.m4: New file.
74205
74206 2003-03-28  Bruno Haible  <bruno@clisp.org>
74207
74208         * lib/copy-file.h: New file, from GNU gettext.
74209         * lib/copy-file.c: New file, from GNU gettext.
74210
74211 2003-03-18  Jim Meyering  <jim@meyering.net>
74212
74213         * lib/quote.c (quote_n): Fix typo in comment.
74214
74215 2003-03-18  Bruno Haible  <bruno@clisp.org>
74216
74217         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74218         checking.
74219         * m4/onceonly_2_57.m4: Likewise.
74220
74221 2003-03-17  Bruno Haible  <bruno@clisp.org>
74222
74223         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74224         (m4_quote): Remove macro.
74225         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74226
74227 2003-03-14  Jim Meyering  <jim@meyering.net>
74228
74229         Merge changes from Coreutils.
74230         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74231         to be const, in order to avoid warnings.
74232         (obstack_room): Likewise.
74233         (obstack_empty_p): Likewise.
74234
74235 2003-03-14  Bruno Haible  <bruno@clisp.org>
74236
74237         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74238         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74239
74240 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74241
74242         Merge changes from Bison.
74243         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74244         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74245         when compiling Bison 1.875's `bitset bset = obstack_alloc
74246         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74247         * lib/hash.c: Include <stdbool.h> unconditionally.
74248
74249 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74250
74251         * m4/onceonly.m4 (m4_quote): New macro.
74252         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74253         Quote AC_FOREACH variable-expansions properly.
74254
74255 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74256
74257         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74258
74259 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74260
74261         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74262         Reported by Bruce Becker; see:
74263         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74264
74265 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74266             Bruno Haible  <bruno@clisp.org>
74267
74268         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74269         Reported by John Hughes, see
74270         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74271
74272 2003-02-20  Bruno Haible  <bruno@clisp.org>
74273
74274         * MODULES.html.sh (func_all_modules): Add poll.
74275
74276 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74277
74278         * modules/poll: New file.
74279
74280 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74281
74282         * lib/poll_.h: New file.
74283         * lib/poll.c: New file.
74284
74285 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74286
74287         * m4/poll.m4: New file.
74288
74289 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74290
74291         * modules/mathl: New file.
74292
74293 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74294
74295         * lib/mathl.h: New file.
74296         * lib/acosl.c: New file.
74297         * lib/asinl.c: New file.
74298         * lib/atanl.c: New file.
74299         * lib/ceill.c: New file.
74300         * lib/cosl.c: New file.
74301         * lib/expl.c: New file.
74302         * lib/floorl.c: New file.
74303         * lib/frexpl.c: New file.
74304         * lib/ldexpl.c: New file.
74305         * lib/logl.c: New file.
74306         * lib/sincosl.c: New file.
74307         * lib/sinl.c: New file.
74308         * lib/sqrtl.c: New file.
74309         * lib/tanl.c: New file.
74310         * lib/trigl.c: New file.
74311         * lib/trigl.h: New file.
74312
74313 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74314
74315         * m4/mathl.m4: New file.
74316
74317 2003-02-18  Bruno Haible  <bruno@clisp.org>
74318
74319         * MODULES.html.sh (func_all_modules): Add mathl.
74320
74321 2003-02-17  Bruno Haible  <bruno@clisp.org>
74322
74323         * modules/mkdtemp: New module.
74324         * MODULES.html.sh (func_all_modules): Add it.
74325
74326 2003-02-17  Bruno Haible  <bruno@clisp.org>
74327
74328         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74329
74330 2003-02-17  Bruno Haible  <bruno@clisp.org>
74331
74332         * lib/mkdtemp.h: New file, from GNU gettext.
74333         * lib/mkdtemp.c: New file, from GNU gettext.
74334
74335 2003-02-02  Jim Meyering  <jim@meyering.net>
74336
74337         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74338         e.g. glibc-2.2.93.
74339
74340 2003-01-31  Bruno Haible  <bruno@clisp.org>
74341
74342         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74343         'rpl_rename'.
74344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74345         'rpl_strnlen'.
74346         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74347         'rpl_strtod'.
74348         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74349         'rpl_utime'.
74350
74351 2003-01-31  Bruno Haible  <bruno@clisp.org>
74352
74353         * lib/rename.c: #undef rename before defining rpl_rename.
74354         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74355
74356 2003-01-30  Bruno Haible  <bruno@clisp.org>
74357
74358         * modules/vasnprintf, modules/vasprintf: New modules.
74359         * MODULES.html.sh (func_all_modules): Add them.
74360
74361 2003-01-30  Bruno Haible  <bruno@clisp.org>
74362
74363         * m4/signed.m4: New file, from GNU gettext.
74364         * m4/longdouble.m4: New file, from GNU gettext.
74365         * m4/wchar_t.m4: New file, from GNU gettext.
74366         * m4/wint_t.m4: New file, from GNU gettext.
74367         * m4/vasnprintf.m4: New file.
74368         * m4/vasprintf.m4: New file.
74369
74370 2003-01-30  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/printf-args.h: New file, from GNU gettext.
74373         * lib/printf-args.c: New file, from GNU gettext.
74374         * lib/printf-parse.h: New file, from GNU gettext.
74375         * lib/printf-parse.c: New file, from GNU gettext.
74376         * lib/vasnprintf.h: New file, from GNU gettext.
74377         * lib/vasnprintf.c: New file, from GNU gettext.
74378         * lib/asnprintf.c: New file, from GNU gettext.
74379         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74380         * lib/vasprintf.c: New file, from GNU gettext.
74381         * lib/asprintf.c: New file, from GNU gettext.
74382
74383 2003-01-29  Bruno Haible  <bruno@clisp.org>
74384
74385         * modules/stpncpy: New module.
74386         * MODULES.html.sh (func_all_modules): Add it.
74387
74388 2003-01-29  Bruno Haible  <bruno@clisp.org>
74389
74390         * m4/stpncpy.m4: New file.
74391
74392 2003-01-29  Bruno Haible  <bruno@clisp.org>
74393
74394         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74395         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74396
74397 2003-01-28  Bruno Haible  <bruno@clisp.org>
74398
74399         * modules/c-ctype: New module.
74400         * MODULES.html.sh (func_all_modules): Add it.
74401
74402 2003-01-28  Bruno Haible  <bruno@clisp.org>
74403
74404         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74405         Paul Eggert.
74406         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74407         Paul Eggert.
74408
74409 2003-01-27  Bruno Haible  <bruno@clisp.org>
74410
74411         * modules/xsetenv: New module.
74412         * MODULES.html.sh (func_all_modules): Add it.
74413
74414 2003-01-27  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/xsetenv.h: New file, from GNU gettext.
74417         * lib/xsetenv.c: New file, from GNU gettext.
74418
74419 2003-01-23  Jim Meyering  <jim@meyering.net>
74420
74421         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74422         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74423
74424 2003-01-23  Bruno Haible  <bruno@clisp.org>
74425
74426         * modules/minmax: New module.
74427         * MODULES.html.sh (func_all_modules): Add it.
74428
74429 2003-01-23  Bruno Haible  <bruno@clisp.org>
74430
74431         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74432         Eggert.
74433
74434 2003-01-22  Bruno Haible  <bruno@clisp.org>
74435
74436         * modules/exit: New module.
74437         * MODULES.html.sh (func_all_modules): Add it.
74438
74439 2003-01-22  Bruno Haible  <bruno@clisp.org>
74440
74441         * lib/exit.h: New file, from GNU gettext.
74442
74443 2003-01-19  Bruno Haible  <bruno@clisp.org>
74444
74445         * gnulib-tool: Recognize option --extract-maintainer.
74446         (func_get_maintainer): New function.
74447         * modules/*: Add Maintainer entry.
74448
74449 2003-01-16  Jim Meyering  <jim@meyering.net>
74450
74451         * m4/regex.m4: The `regex' struct is both input and output.
74452         Initialize it before each use.  Patch by Tim Waugh.
74453
74454 2003-01-16  Bruno Haible  <bruno@clisp.org>
74455
74456         * MODULES.html.sh: Add a table of contents. Add the module name as
74457         leftmost column. Add hyperlinks.
74458
74459 2003-01-15  Bruno Haible  <bruno@clisp.org>
74460
74461         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74462
74463 2003-01-15  Bruno Haible  <bruno@clisp.org>
74464
74465         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74466         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74467         suffix.
74468
74469 2003-01-15  Bruno Haible  <bruno@clisp.org>
74470
74471         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74472
74473 2003-01-15  Bruno Haible  <bruno@clisp.org>
74474
74475         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74476         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74477
74478 2003-01-14  Jim Meyering  <jim@meyering.net>
74479
74480         * lib/same.c (same_name): Tweak a comment.
74481
74482 2003-01-14  Bruno Haible  <bruno@clisp.org>
74483
74484         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74485         when a string comparison is sufficient.
74486
74487 2003-01-14  Bruno Haible  <bruno@clisp.org>
74488
74489         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74490         'unsigned int'.
74491
74492 2003-01-14  Bruno Haible  <bruno@clisp.org>
74493
74494         * lib/hash-pjw.c: Add comment about low quality of this function.
74495
74496 2003-01-13  Bruno Haible  <bruno@clisp.org>
74497
74498         * modules/stpcpy: Distribute lib/stpcpy.h.
74499         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74500
74501 2003-01-13  Bruno Haible  <bruno@clisp.org>
74502
74503         * modules/*: Add a description.
74504         * modules/strpbrk: Fix Makefile.am snippet.
74505         * modules/strtoimax: Fix dependencies.
74506         * modules/strtoumax: Likewise.
74507
74508 2003-01-13  Bruno Haible  <bruno@clisp.org>
74509
74510         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74511         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74512         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74513
74514 2003-01-13  Bruno Haible  <bruno@clisp.org>
74515
74516         * gnulib-tool (func_create_testdir): Store config/* files in the main
74517         directory.
74518         * config.rpath: Move to ...
74519         * config/config.rpath: ... here.
74520         * modules/gettext: Contains config/config.rpath, not config.rpath.
74521         * modules/iconv: Likewise.
74522
74523 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74524
74525         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74526         to avoid collisions with libcurses and libreadline.
74527
74528         * m4/getstr.m4: Remove.
74529         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74530
74531 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74532
74533         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74534         to avoid collisions with libcurses and libreadline.
74535
74536         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74537         * lib/getstr.h, getstr.c: Remove.
74538         * lib/getline.c: Include "getline.h", to check interface.
74539         Move body of old getstr.c here: this defines MIN_CHUNK and
74540         declares getdelim2, which is renamed from getstr.
74541         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74542
74543         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74544         All uses changed.
74545         * lib/linebuffer.h: Likewise.
74546         (readline): Remove backward-compatibility macro.
74547
74548 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74549
74550         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74551         to avoid collisions with libcurses and libreadline.
74552         * getstr: Remove.
74553         * MODULES.html.sh: Remove getstr.
74554         * modules/getline: Depend on unlocked-io, not getstr.
74555
74556 2003-01-12  Jim Meyering  <jim@meyering.net>
74557
74558         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74559
74560 2003-01-10  Bruno Haible  <bruno@clisp.org>
74561
74562         * modules/alloca: Change Makefile.am requirements. Simplify Include
74563         requirements. Add lib/alloca_.h to file list.
74564
74565 2003-01-10  Bruno Haible  <bruno@clisp.org>
74566
74567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74568
74569 2003-01-10  Bruno Haible  <bruno@clisp.org>
74570
74571         * lib/alloca_.h: New file.
74572         * lib/getdate.y: Unconditionally include alloca.h.
74573         * lib/makepath.c: Likewise.
74574         * lib/setenv.c: Likewise.
74575         * lib/userspec.c: Likewise.
74576
74577 2003-01-09  Karl Berry  <karl@gnu.org>
74578
74579         * MODULES.html.sh: include `dirname $0` in PATH, to find
74580         gnulib-tool.
74581
74582 2003-01-09  Bruno Haible  <bruno@clisp.org>
74583
74584         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74585         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74586
74587 2003-01-09  Bruno Haible  <bruno@clisp.org>
74588
74589         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74590
74591 2003-01-09  Bruno Haible  <bruno@clisp.org>
74592
74593         * lib/stdbool.h.in: New file.
74594
74595 2003-01-09  Bruno Haible  <bruno@clisp.org>
74596
74597         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74598         * MODULES.html.sh: Likewise.
74599
74600 2003-01-08  Jim Meyering  <jim@meyering.net>
74601
74602         * lib/full-write.c: Undefine and define-away `const' after inclusion
74603         of errno.h, not before.  Suggestion from Bruno Haible.
74604
74605 2003-01-08  Bruno Haible  <bruno@clisp.org>
74606
74607         * modules/full-read: Depend on full-write.
74608
74609 2003-01-08  Bruno Haible  <bruno@clisp.org>
74610
74611         * lib/safe-read.c: Include specification header first, to ensure its
74612         selfcontainedness.
74613         * lib/full-write.c: Likewise.
74614
74615 2003-01-07  Jim Meyering  <jim@meyering.net>
74616
74617         * lib/full-write.c: Rework so that it may serve to define full_read,
74618         too.
74619         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74620
74621 2003-01-07  Bruno Haible  <bruno@clisp.org>
74622
74623         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74624         <inttypes.h>.
74625         * lib/xstrtol.h: Likewise.
74626         * lib/xstrtoimax.c: Likewise.
74627         * lib/xstrtoumax.c: Likewise.
74628         * lib/human.h: Likewise.
74629
74630         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74631         on systems that have <inttypes.h> but not <stdint.h>.
74632
74633 2003-01-07  Bruno Haible  <bruno@clisp.org>
74634
74635         * MODULES.html.sh: Add copyright notice.
74636         (missed_files): Omit CVS directory entries.
74637         (func_module): Make it work with sed-3.02.
74638         * MODULES.txt: Remove file.
74639
74640 2003-01-06  Jim Meyering  <jim@meyering.net>
74641
74642         * lib/version-etc.c: Update year in translatable copyright string.
74643
74644 2003-01-03  Karl Berry  <karl@gnu.org>
74645
74646         * config/config.{guess,sub}: update from prep.
74647
74648 2003-01-02  Karl Berry  <karl@gnu.org>
74649
74650         * doc/COPYING.DOC: belatedly updated to 1.2.
74651
74652 2003-01-01  Karl Berry  <karl@gnu.org>
74653
74654         * gnulib-tool (func_verify_module): report module name $module in
74655         error message, not $1.
74656         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74657         be created, only if it doesn't exist.
74658         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74659
74660 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74661
74662         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74663
74664 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74665
74666         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74667         memcmp if strcoll doesn't work.
74668
74669 2002-12-31  Bruno Haible  <bruno@clisp.org>
74670
74671         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74672         nonempty.
74673
74674 2002-12-31  Bruno Haible  <bruno@clisp.org>
74675
74676         * lib/memcoll.c (STRCOLL): New macro.
74677         (memcoll): Use it.
74678
74679 2002-12-31  Bruno Haible  <bruno@clisp.org>
74680
74681         * lib/localcharset.h: New file.
74682         * lib/localcharset.c: Include it.
74683         * lib/unicodeio.c: Likewise.
74684
74685 2002-12-31  Bruno Haible  <bruno@clisp.org>
74686
74687         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74688         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74689
74690 2002-12-31  Bruno Haible  <bruno@clisp.org>
74691
74692         * lib/getline.h: Include <stddef.h>, for size_t.
74693
74694         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74695         * lib/unicodeio.c: Don't include <stddef.h>.
74696
74697 2002-12-31  Bruno Haible  <bruno@clisp.org>
74698
74699         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74700         HAVE_TM_ZONE.
74701
74702 2002-12-24  Karl Berry  <karl@gnu.org>
74703
74704         * config/config.guess: update from prep.
74705
74706 2002-12-24  Bruno Haible  <bruno@clisp.org>
74707
74708         General infrasructure.
74709         * m4/README: Rewritten.
74710         * m4/onceonly.m4: New file.
74711         * m4/onceonly_2_57.m4: New file.
74712
74713         Module atexit.
74714         * m4/atexit.m4: New file.
74715
74716         Module strtod.
74717         * m4/strtod.m4: New file.
74718
74719         Module strtol.
74720         * m4/strtol.m4: New file.
74721
74722         Module strtoul.
74723         * m4/strtoul.m4: New file.
74724
74725         Module memchr.
74726         * m4/memchr.m4: New file.
74727
74728         Module memcmp.
74729         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74730         (jm_FUNC_MEMCMP): Invoke it.
74731
74732         Module memcpy.
74733         * m4/memcpy.m4: New file.
74734
74735         Module memmove.
74736         * m4/memmove.m4: New file.
74737
74738         Module memset.
74739         * m4/memset.m4: New file.
74740
74741         Module strcspn.
74742         * m4/strcspn.m4: New file.
74743
74744         Module strpbrk.
74745         * m4/strpbrk.m4: New file.
74746
74747         Module strstr.
74748         * m4/strstr.m4: New file.
74749
74750         Module strerror.
74751         * m4/strerror.m4: New file.
74752
74753         Module mktime.
74754         * m4/mktime.m4: Renamed from jm-mktime.m4.
74755         (gl_PREREQ_MKTIME): New macro.
74756         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74757
74758         Module malloc.
74759         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74760         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74761         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74762
74763         Module realloc.
74764         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74765         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74766         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74767
74768         Module strftime.
74769         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74770         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74771         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74772         gl_TM_GMTOFF.
74773         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74774
74775         Module xalloc.
74776         * m4/xalloc.m4: New file.
74777
74778         Module alloca.
74779         * m4/alloca.m4: New file.
74780
74781         Module putenv.
74782         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74783         (jm_FUNC_PUTENV): Invoke it.
74784
74785         Module setenv.
74786         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74787         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74788         when invoked twice.
74789         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74790         gt_FUNC_SETENV.
74791
74792         Module memrchr.
74793         * m4/memrchr.m4: New file.
74794
74795         Module stpcpy.
74796         * m4/stpcpy.m4: New file.
74797
74798         Module strcase.
74799         * m4/strcase.m4: New file.
74800
74801         Module strdup.
74802         * m4/strdup.m4: New file.
74803
74804         Module strnlen.
74805         * m4/strnlen.m4: New file.
74806
74807         Module strndup.
74808         * m4/strndup.m4: New file.
74809
74810         Module xstrtod.
74811         * m4/xstrtod.m4: New file.
74812
74813         Module xstrtol.
74814         * m4/xstrtol.m4: New file.
74815
74816         Module getdate.
74817         * m4/getdate.m4: New file.
74818
74819         Module unlocked-io.
74820         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74821         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74822         * m4/jm-glibc-io.m4n: Remove file.
74823
74824         Module long-options.
74825         * m4/long-options.m4: New file.
74826
74827         Module md5.
74828         * m4/md5.m4: New file.
74829
74830         Module sha.
74831         * m4/sha.m4: New file.
74832
74833         Module getstr.
74834         * m4/getstr.m4: New file.
74835
74836         Module getline.
74837         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74838         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74839         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74840         simply getline. Infoke gl_PREREQ_GETLINE.
74841
74842         Module obstack.
74843         * m4/obstack.m4: New file.
74844
74845         Module hash.
74846         * m4/hash.m4: New file.
74847
74848         Module readtokens.
74849         * m4/readtokens.m4: New file.
74850
74851         Module strverscmp.
74852         * m4/strverscmp.m4: New file.
74853
74854         Module stdbool.
74855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74856         OSF/1.
74857
74858         Module strtoll.
74859         * m4/strtoll.m4: New file.
74860
74861         Module strtoull.
74862         * m4/strtoull.m4: New file.
74863
74864         Module strtoimax.
74865         * m4/strtoimax.m4: New file.
74866
74867         Module strtoumax.
74868         * m4/strtoumax.m4: New file.
74869
74870         Module xstrtoimax.
74871         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74872         jm_AC_PREREQ_XSTRTOIMAX.
74873         Moved the strtol prerequisites to strtol.m4.
74874         Moved the strtoll prerequisites to strtoll.m4.
74875         Moved the strtoimax prerequisites to strtoimax.m4.
74876
74877         Module xstrtoumax.
74878         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74879         jm_AC_PREREQ_XSTRTOUMAX.
74880         Moved the strtoul prerequisites to strtoul.m4.
74881         Moved the strtoull prerequisites to strtoull.m4.
74882         Moved the strtoumax prerequisites to strtoumax.m4.
74883
74884         Module chown.
74885         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74886         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74887
74888         Module dup2.
74889         * m4/dup2.m4: New file.
74890
74891         Module ftruncate.
74892         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74893         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74894
74895         Module getgroups.
74896         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74897         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74898
74899         Module gettimeofday.
74900         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74901         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74902         gl_PREREQ_GETTIMEOFDAY.
74903
74904         Module mkdir.
74905         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74906         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74907
74908         Module mkstemp.
74909         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74910         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74911         jm_AC_TYPE_UINTMAX_T.
74912         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74913
74914         Module stat.
74915         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74916         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74917
74918         Module lstat.
74919         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74920         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74921
74922         Module timespec.
74923         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74924         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74925         * m4/st_mtim.m4: Indentation.
74926
74927         Module nanosleep.
74928         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74929         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74930         gl_PREREQ_NANOSLEEP.
74931
74932         Module regex.
74933         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74934         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74935         (gl_REGEX): New macro.
74936
74937         Module rename.
74938         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74939         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74940
74941         Module rmdir.
74942         * m4/rmdir.m4: New file.
74943
74944         Module utime.
74945         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74946         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74947         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74948
74949         Module dirname.
74950         * m4/dirname.m4: New file.
74951
74952         Module getopt.
74953         * m4/getopt.m4: New file.
74954
74955         Module unistd-safer.
74956         * m4/unistd-safer.m4: New file.
74957
74958         Module fnmatch.
74959         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74960         declaration.
74961         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74962         (gl_FUNC_FNMATCH_POSIX): New macro.
74963         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74964         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74965         simply fnmatch.
74966
74967         Module exclude.
74968         * m4/exclude.m4: New file.
74969
74970         Module human.
74971         * m4/human.m4: New file.
74972
74973         Module acl.
74974         * m4/acl.m4: Nop.
74975
74976         Module backupfile.
74977         * m4/backupfile.m4: New file.
74978         * m4/d-ino.m4: Indentation.
74979
74980         Module fsusage.
74981         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74982         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74983         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74984
74985         Module dirfd.
74986         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74987         requirements.
74988
74989         Module euidaccess.
74990         * m4/euidaccess.m4: New file.
74991
74992         Module file-type.
74993         * m4/file-type.m4: New file.
74994
74995         Module fileblocks.
74996         * m4/fileblocks.m4: New file.
74997
74998         Module filemode.
74999         * m4/filemode.m4: New file.
75000
75001         Module isdir.
75002         * m4/isdir.m4: New file.
75003
75004         Module lchown.
75005         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75006         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75007
75008         Module makepath.
75009         * m4/makepath.m4: New file.
75010
75011         Module modechange.
75012         * m4/modechange.m4: New file.
75013
75014         Module mountlist.
75015         * m4/mountlist.m4: New file.
75016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75017         Indentation.
75018
75019         Module path-concat.
75020         * m4/path-concat.m4: New file.
75021
75022         Module pathmax.
75023         * m4/pathmax.m4: New file.
75024
75025         Module same.
75026         * m4/same.m4: New file.
75027
75028         Module save-cwd.
75029         * m4/save-cwd.m4: New file.
75030
75031         Module savedir.
75032         * m4/savedir.m4: New file.
75033
75034         Module xgetcwd.
75035         * m4/xgetcwd.m4: New file.
75036         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75037
75038         Module xreadlink.
75039         * m4/xreadlink.m4: New file.
75040
75041         Module safe-read.
75042         * m4/safe-read.m4: New file.
75043
75044         Module safe-write.
75045         * m4/safe-write.m4: New file.
75046
75047         Module closeout.
75048         * m4/closeout.m4: New file.
75049
75050         Module stdio-safer.
75051         * m4/stdio-safer.m4: New file.
75052
75053         Module getpass.
75054         * m4/getpass.m4: New file.
75055
75056         Module getugroups.
75057         * m4/getugroups.m4: New file.
75058
75059         Module group-member.
75060         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75061         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75062
75063         Module idcache.
75064         * m4/idcache.m4: New file.
75065
75066         Module userspec.
75067         * m4/userspec.m4: New file.
75068
75069         Module gettime.
75070         * m4/clock_time.m4: New file.
75071         * m4/gettime.m4: New file.
75072
75073         Module settime.
75074         * m4/settime.m4: New file.
75075
75076         Module posixtm.
75077         * m4/posixtm.m4: New file.
75078
75079         Module gethostname.
75080         * m4/gethostname.m4: New file.
75081
75082         Module canon-host.
75083         * m4/canon-host.m4: New file.
75084
75085         Module gettext.
75086         * m4/codeset.m4: New file, from gettext-0.11.5.
75087         * m4/gettext.m4: New file, from gettext-0.11.5.
75088         * m4/glibc21.m4: New file, from gettext-0.11.5.
75089         * m4/iconv.m4: New file, from gettext-0.11.5.
75090         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75091         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75092         * m4/inttypes.m4: New file, from gettext-0.11.5.
75093         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75094         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75095         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75096         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75097         * m4/lib-link.m4: New file, from gettext-0.11.5.
75098         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75099         * m4/progtest.m4: New file, from gettext-0.11.5.
75100         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75101         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75102         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75103
75104         Module localcharset.
75105         * m4/localcharset.m4: New file.
75106
75107         Module hard-locale.
75108         * m4/hard-locale.m4: New file.
75109
75110         Module mbswidth.
75111         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75112         onceonly macros.
75113         * m4/mbrtowc.m4: Add comment.
75114
75115         Module memcasecmp.
75116         * m4/memcasecmp.m4: New file.
75117
75118         Module memcoll.
75119         * m4/memcoll.m4: New file.
75120
75121         Module unicodeio.
75122         * m4/unicodeio.m4: New file.
75123
75124         Module rpmatch.
75125         * m4/rpmatch.m4: New file.
75126
75127         Module yesno.
75128         * m4/yesno.m4: New file.
75129
75130         Module exitfail.
75131         * m4/exitfail.m4: New file.
75132
75133         Module c-stack.
75134         * m4/c-stack.m4 (gl_C_STACK): New macro.
75135         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75136
75137         Module error.
75138         * m4/error.m4 (gl_ERROR): New macro.
75139         (jm_PREREQ_ERROR): Use onceonly macros.
75140
75141         Module fatal.
75142         * m4/fatal.m4: New file.
75143
75144         Module getloadavg.
75145         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75146         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75147
75148         Module getpagesize.
75149         * m4/getpagesize.m4: New file.
75150
75151         Module getusershell.
75152         * m4/getusershell.m4: New file.
75153
75154         Module physmem.
75155         * m4/physmem.m4: New file.
75156
75157         Module posixver.
75158         * m4/posixver.m4: New file.
75159
75160         Module quotearg.
75161         * m4/quotearg.m4: New file.
75162
75163         Module quote.
75164         * m4/quote.m4: New file.
75165
75166         Module readutmp.
75167         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75168
75169         Module sig2str.
75170         * m4/sig2str.m4: New file.
75171
75172         Other.
75173         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75174         ulonglong.m4.
75175         * m4/intmax_t.m4: New file.
75176         * m4/d-type.m4: Indentation.
75177         * m4/jm-macros.m4: Update.
75178         * m4/prereq.m4 (jm_PREREQ): Update.
75179         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75180         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75181         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75182         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75183         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75184         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75185         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75186         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75187         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75188         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75189         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75190         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75191         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75192         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75193         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75194         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75195         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75196         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75197         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75198
75199 2002-12-24  Bruno Haible  <bruno@clisp.org>
75200
75201         * MODULES.txt: Update according to m4/ changes.
75202
75203         Module gettext.
75204         * config.rpath: New file, from gettext-0.11.5.
75205
75206         * modules/*: New module descriptions.
75207         * gnulib-tool: New file.
75208         * MODULES.html.sh: New file.
75209
75210 2002-12-21  Karl Berry  <karl@gnu.org>
75211
75212         * doc/fdl.texi: update to version 1.2.
75213
75214 2002-12-19  Karl Berry  <karl@gnu.org>
75215
75216         * config/config.guess: update from prep.
75217
75218 2002-12-18  Bruno Haible  <bruno@clisp.org>
75219
75220         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75221         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75222
75223 2002-12-17  Bruno Haible  <bruno@clisp.org>
75224
75225         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75226         stdlib.h, string.h.
75227
75228 2002-12-17  Bruno Haible  <bruno@clisp.org>
75229
75230         * lib/canon-host.c (strdup): Remove unused declaration.
75231
75232         * lib/fsusage.c: Include full_read.h.
75233         (get_fs_usage): Use full_read instead of safe_read.
75234
75235         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75236
75237 2002-12-12  Karl Berry  <karl@gnu.org>
75238
75239         * config/config.guess: update from prep.
75240
75241 2002-12-11  Bruno Haible  <bruno@clisp.org>
75242
75243         * m4/setenv.m4: New file, from gettext-0.11.5.
75244
75245 2002-12-11  Bruno Haible  <bruno@clisp.org>
75246
75247         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75248         not unsetenv().
75249         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75250         modifications:
75251
75252         2002-12-11  Bruno Haible  <bruno@clisp.org>
75253
75254                 * setenv.c (alloca): Fall back to malloc.
75255                 (freea): New macro.
75256                 (setenv): Use freea() to free memory allocated with alloca().
75257
75258         2002-11-13  Bruno Haible  <bruno@clisp.org>
75259
75260                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75261                 function declarations.
75262                 * unsetenv.c (unsetenv): Likewise.
75263
75264         2002-03-04  Bruno Haible  <bruno@clisp.org>
75265
75266                 Portability to AIX 4.3.3.
75267                 * unsetenv.c: New file, extracted from setenv.c.
75268                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75269
75270         2001-12-20  Bruno Haible  <bruno@clisp.org>
75271
75272                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75273                 use malloc instead. For SunOS 4.
75274
75275         2001-12-11  Bruno Haible  <bruno@clisp.org>
75276
75277                 * setenv.c: Declare alloca.
75278                 (compar_fn_t): New typedef.
75279                 (KNOWN_VALUE, STORE_VALUE): Use it.
75280
75281         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75282         setenv.h.
75283
75284 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75285
75286         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75287         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75288         Choose values that are less likely to collide with system fnmatch
75289         options.
75290         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75291         defined (e.g., a pure POSIX system).
75292         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75293         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75294
75295 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75296
75297         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75298         a pain in practice to deal with generated m4 files.  This change
75299         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75300
75301         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75302         and jm-glibc-io.m4, as they are no longer a special case.
75303         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75304         kludge and the auto-generation stuff.  Check only whether the
75305         functions are declared, not whether they exist, since older hosts
75306         that don't declare the functions can't use the optimization anyway.
75307
75308 2002-12-06  Jim Meyering  <jim@meyering.net>
75309
75310         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75311
75312         Merge in changes from libc's misc/error.c, in preparation
75313         for the merge of gnulib's changes back into libc.
75314
75315         * lib/error.c (_): Define only if not already defined.
75316         Move definition to follow all #include directives.
75317         Include unlocked-io.h only if !_LIBC.
75318         [_LIBC]: Include <libio/libioP.h>.
75319         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75320         (fflush): Tweak definition to use INTUSE.
75321         (putc): Define.
75322
75323 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75324
75325         * lib/alloca.c [defined emacs]: Include "lisp.h".
75326         (xalloc_die) [defined emacs]: New macro.
75327         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75328         [! defined emacs]: Include <xalloc.h>.
75329         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75330         (pointer): Typedef to POINTER_TYPE *.
75331         (malloc): Remove decl; we now always use xmalloc.
75332         (alloca): Use old-style definition, since Emacs needs this.
75333         Check for arithmetic overflow when computing combined size.
75334
75335 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75336
75337         Do not generate unlocked-io.h automatically, since it's easier to
75338         maintain it by hand.
75339
75340         * lib/unlocked-io.h: New file, from GNU diffutils,
75341         but with proper copyright notice and attribution.
75342         * lib/gen-uio: Remove.
75343         * lib/Makefile.am: Add copyright notice.
75344         (libfetish_a_SOURCES): Add unlocked-io.h.
75345         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75346         (DISTCLEANFILES, io_functions): Remove macros.
75347         (EXTRA_DIST): Remove gen_uio.
75348         (unlocked-io.h): Remove rule.
75349
75350 2002-12-04  Jim Meyering  <jim@meyering.net>
75351
75352         Reflect the fact that stat.c and lstat.c are no longer generated.
75353         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75354         (DISTCLEANFILES): Likewise.
75355         (EXTRA_DIST): Likewise.
75356         (all_local): Don't depend on stat.c or lstat.c.
75357         (stat.c, lstat.c): Remove rules.
75358         (EXTRA_DIST): Remove xstat.in.
75359
75360         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75361         * lib/stat.c: New file.  Contents mostly from xstat.in.
75362         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75363         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75364
75365         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75366         too.
75367         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75368
75369 2002-12-03  Jim Meyering  <jim@meyering.net>
75370
75371         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75372         but not semantics, to minimize the differences between these two files.
75373         (safe_read): Change comment to mention SAFE_READ_ERROR.
75374
75375         * lib/safe-read.c (IS_EINTR): Define.
75376         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75377
75378 2002-12-02  Jim Meyering  <jim@meyering.net>
75379
75380         * lib/safe-read.c (EINTR): Define.
75381         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75382         (INT_MAX): Provide fallback.
75383         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75384
75385         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75386
75387 2002-12-02  Bruno Haible  <bruno@clisp.org>
75388
75389         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75390         Define, taken from safe-read.c.
75391         (INT_MAX): Provide fallback.
75392         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75393         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75394
75395         * lib/safe-read.c (EINTR): Remove definition.
75396         (safe_read): Don't use EINTR if it is absent.
75397
75398 2002-12-01  Jim Meyering  <jim@meyering.net>
75399
75400         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75401         zero.
75402         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75403
75404 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75405
75406         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75407         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75408         with `if (! (value < limit)) abort ();', for readability.
75409
75410 2002-11-26  Karl Berry  <karl@gnu.org>
75411
75412         * lib/strdup.c: copy from libc again, with jim's ok.
75413         * lib/.cppi-disable: re-add strdup.c
75414
75415 2002-11-25  Karl Berry  <karl@gnu.org>
75416
75417         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75418         instead of "strtol.c".
75419
75420 2002-11-25  Karl Berry  <karl@gnu.org>
75421
75422         * config/install-sh: update from automake for variable quoting, $0 in
75423         error msgs, etc.
75424
75425         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75426         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75427         entry.
75428
75429 2002-11-25  Jim Meyering  <jim@meyering.net>
75430
75431         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75432
75433 2002-11-24  Karl Berry  <karl@gnu.org>
75434
75435         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75436         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75437
75438 2002-11-24  Jim Meyering  <jim@meyering.net>
75439
75440         Update from coreutils:
75441
75442         * lib/mktime.c: Merge in changes from libc.
75443
75444         Avoid a link-time failure on some Linux systems.
75445         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75446         (otherwise).
75447         (__mon_yday): Declare with the STATIC attribute.
75448         (__mktime_internal): Likewise.
75449         Based on a report from Greg Schafer.
75450
75451 2002-11-23  Jim Meyering  <jim@meyering.net>
75452
75453         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75454         Use `unsigned', not `int', as type of index.
75455
75456         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75457
75458         * lib/fsusage.c: Remove unneeded parentheses around operands of
75459         `defined'.
75460
75461 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75462
75463         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75464         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75465         so that we can be included first.
75466         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75467         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75468         No need to include stddef.h or sys/types.h any more.
75469         Surround local include files with "", not "<>".
75470         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75471         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75472         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75473         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75474         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75475         (ISPRINT): Remove; no longer needed now that we assume C89.
75476
75477         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75478         Preserve errno.
75479
75480         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75481         quotearg_char): Use SIZE_MAX rather than
75482         (size_t) -1 when we are talking about "infinity".
75483
75484         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75485
75486 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75487
75488         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75489         hint that one should use `if (! x) abort ();' rather than `assert
75490         (x);', and anyway it's one less thing to worry about configuring.
75491         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75492         hash_rehash, hash_insert): Use abort rather than assert.
75493
75494 2002-11-22  Bruno Haible  <bruno@clisp.org>
75495
75496         * lib/safe-read.h: Assume C89. Add comments.
75497         (safe_read): Change return type to size_t.
75498         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75499         byte counts > SSIZE_MAX correctly.
75500         * lib/safe-write.h: New file.
75501         * lib/safe-write.c: New file.
75502         * lib/full-read.h: New file.
75503         * lib/full-read.c: New file.
75504         * lib/full-write.h: Assume C89. Add comments.
75505         * lib/full-write.c: Include safe-write.h.
75506         (full_write): Rewritten to use safe_write.
75507         Suggested by Jim Meyering and Paul Eggert.
75508
75509 2002-11-21  Jim Meyering  <jim@meyering.net>
75510
75511         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75512
75513         Merge in changes from the coreutils.
75514
75515         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75516         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75517         <stdint.h>.
75518         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75519         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75520         int.  Work more efficiently if X is the same width as uintmax_t.
75521         Do not compare X to -1, to avoid bogus compiler warning.
75522         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75523         Don't assume that f_frsize and f_bsize are the same type.
75524
75525         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75526         warning on FreeBSD.
75527
75528         * lib/makepath.c (make_path): Restore umask *before* creating the final
75529         component.
75530         (make_path): Minor reformatting.
75531
75532         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75533         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75534         HAVE_MALLOC/HAVE_REALLOC.
75535
75536         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75537         dummy ones.  At least on GNU/Linux systems, `auto' means something
75538         else.
75539         From Michael Stone.
75540
75541 2002-11-21  Bruno Haible  <bruno@clisp.org>
75542
75543         Remove case insensitive option matching.
75544         * lib/argmatch.h (argcasematch): Remove declaration.
75545         (ARGCASEMATCH): Remove macro.
75546         (__xargmatch_internal): Remove case_sensitive argument.
75547         (XARGMATCH): Update.
75548         (XARGCASEMATCH): Remove macro.
75549         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75550         case_sensitive argument.
75551         (argcasematch): Remove function.
75552         (__xargmatch_internal): Remove case_sensitive argument.
75553         (main): Use XARGMATCH instead of XARGCASEMATCH.
75554
75555         * lib/xmalloc.c: Change compile-time error message. Add comment about
75556         required autoconf version.
75557
75558 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75559
75560         Merge argmatch cleanups from Bison.  Assume C89.
75561
75562         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75563         Include stdlib.h, for EXIT_FAILURE.
75564         Always include <string.h>, since we assume C89.
75565         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75566         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75567         Include <stddef.h> instead, since it's all we need for size_t.
75568         (PARAMS): Remove.  All uses removed.
75569         (ARRAY_CARDINALITY): Do not bother to #undef.
75570         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75571         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75572         Remove unnecessary parentheses.
75573         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75574         Insert necessary parentheses.
75575         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75576         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75577
75578 2002-11-19  Bruno Haible  <bruno@clisp.org>
75579
75580         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75581         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75582
75583         * lib/mbswidth.h (PARAMS): Remove macro.
75584         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75585         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75586
75587         * lib/gcd.h (PARAMS): Remove macro.
75588         (gcd): Use ANSI C function declarations.
75589         * lib/gcd.c (gcd): Likewise.
75590
75591 2002-11-15  Bruno Haible  <bruno@clisp.org>
75592
75593         * lib/strcspn.c: Include <stddef.h>.
75594         (strcspn): Use ANSI C function declaration. Change return type to
75595         size_t. Use NULL.
75596         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75597         (strpbrk): Use NULL.
75598         * lib/strpbrk.h (PARAMS): Remove macro.
75599         (strpbrk): Use ANSI C function declaration.
75600         * lib/strstr.c: Don't include <sys/types.h>.
75601         * lib/strstr.h (PARAMS): Remove macro.
75602         (strstr): Use ANSI C function declarations.
75603
75604 2002-11-14  Karl Berry  <karl@gnu.org>
75605
75606         * config/mkinstalldirs: `do' on separate line, instead of
75607         `for var; do'.
75608
75609 2002-11-06  Bruno Haible  <bruno@clisp.org>
75610
75611         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75612         * lib/gcd.c (gcd): Likewise.
75613
75614 2002-11-05  Bruno Haible  <bruno@clisp.org>
75615
75616         * lib/gcd.h: New file, from gettext-0.11.5.
75617         * lib/gcd.c: New file, from gettext-0.11.5.
75618
75619 2002-11-05  Bruno Haible  <bruno@clisp.org>
75620
75621         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75622         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75623         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75624         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75625
75626         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75627         <libintl.h>.
75628         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75629         <libintl.h>.
75630
75631         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75632         * lib/human.c: Include gettext.h instead of <libintl.h>.
75633         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75634         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75635         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75636         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75637         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75638         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75639         (textdomain): Remove definition.
75640         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75641
75642         * lib/long-options.c: Remove include of <libintl.h> and definition of
75643         _.
75644         * lib/same.c: Remove include of <libintl.h> and definition of _.
75645
75646 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75647
75648         * lib/config.charset: A few additions for Solaris.
75649
75650 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75651
75652         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75653         * lib/localcharset.c (locale_charset): Declare as extern "C".
75654
75655 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75656
75657         * lib/config.charset: msdos in uk_UA uses CP1125.
75658
75659 2002-11-04  Bruno Haible  <bruno@clisp.org>
75660
75661         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75662         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75663         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75664         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75665         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75666
75667 2002-11-04  Bruno Haible  <bruno@clisp.org>
75668
75669         * lib/localcharset.c (locale_charset): Don't return an empty string.
75670
75671 2002-11-04  Bruno Haible  <bruno@clisp.org>
75672
75673         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75674         aliases.
75675
75676 2002-11-04  Bruno Haible  <bruno@clisp.org>
75677
75678         * lib/config.charset: Update for newest glibc. Add canonical names
75679         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75680
75681 2002-11-04  Bruno Haible  <bruno@clisp.org>
75682
75683         * lib/config.charset: Add support for NetBSD.
75684
75685 2002-11-04  Bruno Haible  <bruno@clisp.org>
75686
75687         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75688
75689 2002-11-01  Bruno Haible  <bruno@clisp.org>
75690
75691         * configure.in: Add AC_CONFIG_AUX_DIR call.
75692         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75693         test/Makefile.
75694         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75695
75696 2002-09-28  Karl Berry  <karl@gnu.org>
75697
75698         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75699         installed automake until the next release, since changes have been
75700         made.
75701
75702 2002-09-25  Karl Berry  <karl@gnu.org>
75703
75704         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75705         * lib/getopt*: copy from libc/posix.
75706         * lib/gettext.h: copy from gettext.
75707         * lib/.cppi-disable: add strdup.c, gettext.h.
75708
75709 2002-09-25  Karl Berry  <karl@gnu.org>
75710
75711         * config/srclist.txt: enable gettext.h check.
75712         * config/config.{guess,sub}: update from prep.
75713         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75714                 from automake 1.6.3.
75715         See srclist*.
75716
75717 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75718
75719         * regex.c (PATFETCH): Remove the translating fetch.
75720         (PATFETCH_RAW): Rename to PATFETCH.
75721         (set_image_of_range): New fun.
75722         (SET_RANGE_TABLE_WORK_AREA): Use it.
75723         (regex_compile): Don't translate the pattern chars so eagerly.
75724         Only do it when inserting an `exactn' bytecode or when handling
75725         a char-range.
75726         (mutually_exclusive_p): Avoid empty statement.
75727
75728 2002-07-06  Jim Meyering  <meyering@lucent.com>
75729
75730         * m4/README: Don't mention Makefile.am.in.
75731         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75732
75733 2002-07-01  Jim Meyering  <meyering@lucent.com>
75734
75735         * lib/c-stack.c: Include sys/time.h.
75736         From Volker Borchert.
75737
75738 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75739
75740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75741
75742 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75743
75744         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75745         New macro.  Use it uniformly instead of
75746         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75747         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75748         reported by Vin Shelton.
75749
75750 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75751
75752         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75753         Do not assume SA_SIGINFO behavior.
75754         Bug reported by Jim Meyering on NetBSD 1.5.2.
75755
75756 2002-06-22  Jim Meyering  <meyering@lucent.com>
75757
75758         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75760
75761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75762         now that configure.ac uses AC_GNU_SOURCE.
75763         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75764         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75765
75766         Update to latest tools.  Suggestions from Paul Eggert.
75767         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75768         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75769         * m4/fnmatch.m4: Likewise.
75770         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75771         to AC_HEADER_STDBOOL
75772
75773 2002-06-22  Jim Meyering  <meyering@lucent.com>
75774
75775         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75776         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75777
75778 2002-06-22  Jim Meyering  <meyering@lucent.com>
75779
75780         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75781
75782         * lib/exitfail.c, exitfail.h: Likewise.
75783         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75784
75785         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75786         of fnmatch.h.
75787         (EXTRA_DIST): Add fnmatch_loop.c.
75788         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75789
75790         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75791         * lib/fnmatch.c: Update from diffutils-2.8.2.
75792         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75793         * lib/fnmatch.h: Remove file.
75794
75795 2002-06-21  Jim Meyering  <meyering@lucent.com>
75796
75797         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75798         * m4/mbrtowc.m4: Likewise.
75799
75800         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75801         * m4/mbswidth.m4: Reflect name change:
75802         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75803         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75804
75805         * m4/lib-link.m4: Update from gettext-0.11.2.
75806         * m4/gettext.m4: Likewise.
75807
75808         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75809         From Alfred M. Szmidt.
75810
75811 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75812
75813         * lib/file-type.h: Report an error if neither S_ISREG nor
75814         S_IFREG is defined, instead of using a test specific to glibc
75815         2.2.  This should be safe, since POSIX requires S_ISREG and
75816         Unix Version 7 had S_IFREG.  We don't need to check for
75817         <sys/types.h> since we don't use any symbols that it defines.
75818
75819 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75820
75821         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75822         $@-t, so that each temporary file name is unique and valid in the first
75823         8 characters, for operation under DOS.
75824
75825 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75826
75827         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75828
75829 2002-06-15  Jim Meyering  <meyering@lucent.com>
75830
75831         Work even with DJGPP 2.03, which lacks support for symlinks.
75832         From Richard Dawe.
75833         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75834         is defined.
75835         * lib/lchown.c (S_ISLNK): Likewise.
75836
75837 2002-06-15  Jim Meyering  <meyering@lucent.com>
75838
75839         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75840         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75841         have been included before this file.
75842
75843 2002-06-14  Jim Meyering  <meyering@lucent.com>
75844
75845         * lib/file-type.h: Use the version from diffutils-2.8.2.
75846         * lib/file-type.c: Likewise.
75847
75848 2002-06-07  Jim Meyering  <meyering@lucent.com>
75849
75850         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75851         They're needed at least for NetBSD 1.5.2.
75852         ($statxfs_includes): Include those same headers.
75853         ($statxfs_includes): Include sys/vfs.h if available.
75854         ($statxfs_includes): Likewise for sys/statvfs.h.
75855         Check for the following members in both structs statfs and statvfs:
75856         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75857
75858 2002-06-01  Jim Meyering  <meyering@lucent.com>
75859
75860         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75861         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75862
75863 2002-05-28  Jim Meyering  <meyering@lucent.com>
75864
75865         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75866         Reported by Volker Borchert.
75867
75868 2002-05-27  Jim Meyering  <meyering@lucent.com>
75869
75870         Fix a problem seen only on nonconforming systems whereby ls.c's
75871         use of localtime, and then of gettimeofday would cause trouble:
75872         the localtime call used to initialize rpl_gettimeofday's save
75873         mechanism would clobber ls's current local time information so
75874         that in any long listing the first file would always be listed
75875         with date 1970-01-01.  Analysis by Volker Borchert.
75876
75877         * lib/gettimeofday.c (localtime): Undefine.
75878         (rpl_localtime): New function.
75879
75880 2002-05-27  Jim Meyering  <meyering@lucent.com>
75881
75882         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75883         localtime.
75884
75885         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75886         use the replacement function; it wouldn't resolve at link time.
75887         Reported by Volker Borchert.
75888
75889 2002-05-22  Jim Meyering  <meyering@lucent.com>
75890
75891         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75892         file-type.h.
75893         * lib/file-type.h: New file.
75894         * lib/file-type.c (file_type): New file/function.  Extracted from
75895         diffutils.
75896
75897 2002-04-30  Jim Meyering  <meyering@lucent.com>
75898
75899         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75900
75901 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75902
75903         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75904
75905 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75906
75907         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75908         Do not check for alloca.h (no longer used) or stdbool.h (was never
75909         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75910
75911 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75912
75913         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75914
75915 2002-04-29  Jim Meyering  <meyering@lucent.com>
75916
75917         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75918         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75919         Use AC_FUNC_STRNLEN here instead.
75920
75921         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75922         With autoconf-2.53a, it's part of AC_PROG_CC.
75923
75924 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75925
75926         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75928
75929 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75930
75931         * lib/sig2str.h, lib/sig2str.c: New files.
75932         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75933
75934 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75935
75936         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75937         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75938         of 127, since 64 is the largest conceivable number for ancient
75939         nonstandard hosts.
75940         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75941
75942 2002-04-28  Jim Meyering  <meyering@lucent.com>
75943
75944         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75945
75946 2002-04-24  Jim Meyering  <meyering@lucent.com>
75947
75948         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75949         (jm_PREREQ): Use it.
75950
75951         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75952         mach/mach.h fcntl.h.
75953         Check for this function: setlocale.
75954
75955 2002-04-24  Jim Meyering  <meyering@lucent.com>
75956
75957         * lib/gettext.h: New file, from Gettext.
75958         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75959         (libfetish_a_SOURCES): Add gettext.h.
75960
75961 2002-04-16  Jim Meyering  <meyering@lucent.com>
75962
75963         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75964         ut_pid, ut_id, ut_exit.
75965
75966 2002-04-16  Jim Meyering  <meyering@lucent.com>
75967
75968         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75969         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75970         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75971
75972 2002-04-12  Jim Meyering  <meyering@lucent.com>
75973
75974         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75975         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75976         existence of the getmntinfo function.  Needed for Darwin 5.3.
75977
75978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75979         This is necessary at least on Darwin 5.3.
75980
75981         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75982         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75983         strnlen.o in the library, and that makes some versions of ranlib
75984         object.
75985
75986 2002-04-12  Jim Meyering  <meyering@lucent.com>
75987
75988         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75989
75990 2002-04-09  Jim Meyering  <meyering@lucent.com>
75991
75992         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75993         to be more precise.  Rather than saying we're checking whether the
75994         function `works', say what we're testing.
75995         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75996         Reported by Bruno Haible.
75997
75998 2002-03-10  Jim Meyering  <meyering@lucent.com>
75999
76000         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76001         Suggestion from Santiago Vila.
76002
76003 2002-03-08  Jim Meyering  <meyering@lucent.com>
76004
76005         * lib/rename.c: Mention that this wrapper is needed also on
76006         mips-dec-ultrix4.4 systems.
76007
76008 2002-03-02  Jim Meyering  <meyering@lucent.com>
76009
76010         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76011         not HAVE_CLOCK_SETTIME.
76012
76013 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76014
76015         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76016         Check for clock_settime.
76017
76018 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76019
76020         * lib/nanosleep.h: Rename to....
76021         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76022
76023         * lib/gettime.c: New file.
76024         * lib/settime.c: New file.
76025         * lib/stime.c: Remove.
76026
76027         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76028         timespec.h.  Remove nanosleep.h.
76029
76030 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76031
76032         * m4/acl.m4: New file.
76033         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76034         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76035
76036 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76037
76038         * lib/acl.c, lib/acl.h: New files.
76039         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76040
76041 2002-02-24  Jim Meyering  <meyering@lucent.com>
76042
76043         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76044         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76045         cause trouble.  Reported by Nelson Beebe.
76046
76047 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76048
76049         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76050         compilers that don't know that xalloc_die never returns.
76051
76052 2002-02-20  Jim Meyering  <meyering@lucent.com>
76053
76054         * lib/getdate.c: Regenerate using bison-1.33.
76055
76056 2002-02-17  Jim Meyering  <meyering@lucent.com>
76057
76058         * config/config.guess (main): Don't use `head -1'; it's no longer
76059         portable. Use `sed 1q' instead.
76060
76061 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76062
76063         * m4/codeset.m4: Upgrade to gettext-0.11.
76064         * m4/gettext.m4: Upgrade to gettext-0.11.
76065         * m4/glibc21.m4: Upgrade to gettext-0.11.
76066         * m4/iconv.m4: Upgrade to gettext-0.11.
76067         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76068         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76069         * m4/lib-ld.m4: New file, from gettext-0.11.
76070         * m4/lib-link.m4: New file, from gettext-0.11.
76071         * m4/lib-prefix.m4: New file, from gettext-0.11.
76072         * m4/progtest.m4: Upgrade to gettext-0.11.
76073
76074 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76075
76076         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76077         (jm_PREREQ): Use it.
76078
76079 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76080
76081         * lib/posixver.c, lib/posixver.h: New files.
76082         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76083
76084 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76085             Bruno Haible  <bruno@clisp.org>
76086
76087         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76088         (fwrite_success_callback): New declaration.
76089         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76090         print_unicode_char. Call failure callback instead of error.
76091         (fwrite_success_callback): New function.
76092         (exit_failure_callback): New function.
76093         (fallback_failure_callback): New function.
76094         (print_unicode_char): Call unicode_to_mb.
76095
76096 2002-01-26  Jim Meyering  <meyering@lucent.com>
76097
76098         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76099         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76100
76101 2002-01-26  Jim Meyering  <meyering@lucent.com>
76102
76103         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76104
76105 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76106
76107         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76108
76109 2002-01-22  Jim Meyering  <meyering@lucent.com>
76110
76111         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76112         Otherwise, some versions of automake would omit the rule that makes
76113         Makefile from Makefile.in.
76114
76115 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76116
76117         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76118         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76119         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76120         (memcoll): Set errno to zero if there is no error.
76121
76122         * lib/quotearg.c (quotearg_buffer_restyled):
76123         Fix bug with quoting buffers containing NUL when backslashing escapes.
76124         This bug was exposed by the other changes in this patch.
76125         (quotearg_n_options): New arg ARGSIZE.
76126         All callers changed.
76127         (quoting_options_from_style): New function.
76128         (quotearg_n_style): Use it.
76129         (quotearg_n_style_mem): New function.
76130
76131         * lib/quotearg.h (quotearg_n_style_mem): New function.
76132
76133 2002-01-19  Jim Meyering  <meyering@lucent.com>
76134
76135         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76136         Remove useless quotes: DF_PROG="df".
76137         * m4/strnlen.m4: New file.
76138
76139 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76140
76141         * lib/backupfile.c (ISDIGIT): Comment fix.
76142         * lib/getdate.y (ISDIGIT): Likewise.
76143         * lib/posixtm.c (ISDIGIT, year): Likewise.
76144         * lib/strverscmp.c (ISDIGIT): Likewise.
76145         * lib/userspec.c (ISDIGIT): Likewise.
76146
76147 2002-01-16  Jim Meyering  <meyering@lucent.com>
76148
76149         * lib/getdate.y: Add three semicolons, each just before a closing
76150         brace. Bison (as of version 1.31) no longer papers over that mistake.
76151
76152 2002-01-05  Jim Meyering  <meyering@lucent.com>
76153
76154         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76155
76156 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76157
76158         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76159         not silently exit merely because the output buffer happens to
76160         have nothing pending.
76161
76162 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76163
76164         See the big note in ../ChangeLog.
76165         * lib/human.c (suffixes): Prefer K to k for 1024.
76166         (generate_suffix_backwards): New function.
76167         (human_readable_inexact): Use it.
76168         * lib/xstrtol.c (__xstrtol): If there is no number but there
76169         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76170         Accept 'K' as well as 'k'.
76171
76172 2001-12-15  Jim Meyering  <meyering@lucent.com>
76173
76174         * lib/regex.h (__restrict_arr): Update from libc.
76175
76176         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76177         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76178         (STREQ): Define.
76179
76180 2001-12-14  Jim Meyering  <meyering@lucent.com>
76181
76182         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76183         Suggestion from Bruno Haible.
76184
76185 2001-12-10  Jim Meyering  <meyering@lucent.com>
76186
76187         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76188         xrealloc, Instead, include "xalloc.h".
76189         (initbuffer): Don't cast xmalloc return value to char*.
76190         (readline): Reword comment.
76191         Don't cast xrealloc return value to char*
76192         Return NULL, not 0.
76193
76194 2001-12-09  Jim Meyering  <meyering@lucent.com>
76195
76196         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76197         about `signed and unsigned type in conditional expression'.
76198         * lib/posixtm.c (posix_time_parse): Likewise.
76199
76200         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76201
76202         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76203         to avoid a pedantic warning.
76204
76205         * lib/getstr.c: Don't include assert.h.
76206         (getstr): Remove warning-evoking assertions.
76207         Return -1 if offset parameter is out of bounds.
76208         Change the type of a local from int to size_t.
76209
76210         * lib/strftime.c (my_strftime_localtime_r): Include this function
76211         definition in the `#if ! HAVE_TM_GMTOFF' block.
76212
76213         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76214         Include xalloc.h instead.
76215
76216 2001-12-02  Jim Meyering  <meyering@lucent.com>
76217
76218         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76219         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76220         included.
76221
76222         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76223         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76224
76225 2001-11-30  Akim Demaille  <akim@epita.fr>
76226
76227         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76228         before being defined.
76229
76230 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76231
76232         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76233         First arg is int, not unsigned.
76234         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76235         (SIZE_MAX, UINT_MAX): New macros.
76236         (quotearg_n_options): Abort if N is negative.
76237         Avoid overflow check on hosts where size_t is 64 bits and int
76238         is 32 bits, as overflow is impossible there.
76239         Fix off-by-one typo that caused unnecessary reallocation.
76240
76241 2001-11-27  Jim Meyering  <meyering@lucent.com>
76242
76243         * lib/tempname.c: Merge with version from libc.
76244         * lib/regex.c: Likewise.
76245
76246         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76247         systems for which STDC_HEADERS is 0, it was not included, resulting in
76248         a warning about an integer-to-pointer conversion problem with getenv.
76249         Reported by Volker Borchert.
76250
76251 2001-11-26  Jim Meyering  <meyering@lucent.com>
76252
76253         * lib/gtod.h: Remove file.
76254         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76255         * lib/gettimeofday.c: Don't include gtod.h.
76256         (GTOD_init): Remove function.
76257         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76258         Suggestion from Volker Borchert.
76259
76260 2001-11-23  Jim Meyering  <meyering@lucent.com>
76261
76262         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76263         it.
76264         * lib/hash.c (struct hash_table): Define it here instead.
76265
76266 2001-11-22  Jim Meyering  <meyering@lucent.com>
76267
76268         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76269
76270 2001-11-20  Jim Meyering  <meyering@lucent.com>
76271
76272         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76273         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76274
76275 2001-11-19  Jim Meyering  <meyering@lucent.com>
76276
76277         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76278         directory.  Use "conftestXXXXXX" as the template.
76279         Suggestion from Paul Eggert.
76280
76281         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76282         immediately, so the test doesn't mistakenly hit the max-open-files
76283         limit.
76284
76285 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76286
76287         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76288         (TEMPORARIES): New macro.
76289         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76290         removes an artificial limitation (e.g. HP-UX 10.20, where
76291         TMP_MAX is 17576).
76292
76293 2001-11-18  Jim Meyering  <meyering@lucent.com>
76294
76295         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76296
76297 2001-11-18  Jim Meyering  <meyering@lucent.com>
76298
76299         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76300         on SunOS 4.
76301
76302         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76303         files will be created before anything else.
76304
76305 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76306
76307         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76308         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76309
76310 2001-11-17  Jim Meyering  <meyering@lucent.com>
76311
76312         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76313         Prompted by a report from Bob Proulx.
76314
76315         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76316         Instead, require UTILS_FUNC_MKSTEMP.
76317
76318 2001-11-17  Jim Meyering  <meyering@lucent.com>
76319
76320         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76321         Now, that's done as part of AC_FUNC_STRTOD.
76322
76323 2001-11-17  Jim Meyering  <meyering@lucent.com>
76324
76325         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76326         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76327         rather than group writable.  Patch by Juan F. Codagnone.
76328
76329         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76330         xrealloc, Instead, include "xalloc.h".
76331
76332         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76333         Remove explicit declarations of xmalloc, xrealloc,
76334         and xstrdup.  Instead, include "xalloc.h".
76335
76336         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76337         unlocked-io.h.
76338         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76339         Likewise.
76340         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76341
76342         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76343         Reported by Padraig Brady.
76344
76345         * lib/mkstemp.c: #undef mkstemp.
76346         Include config.h.
76347         (rpl_mkstemp): Rename from mkstemp.
76348         Protoize.
76349
76350 2001-11-16  Jim Meyering  <meyering@lucent.com>
76351
76352         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76353         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76354         determine the amount of total physical memory, use pstat_getstatic.
76355         HPUX-11 doesn't define _SC_PHYS_PAGES.
76356         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76357         If sysconf couldn't be used to determine the amount of available
76358         physical memory, use both pstat_getstatic and pstat_getdynamic.
76359         Based on a patch from Bob Proulx.
76360
76361 2001-11-10  Jim Meyering  <meyering@lucent.com>
76362
76363         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76364         (jm_PREREQ): Use it.
76365
76366 2001-11-09  Jim Meyering  <meyering@lucent.com>
76367
76368         * m4/jm-macros.m4: Require autoconf-2.52f.
76369         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76370         Use these AC_-prefixed names, not the AM_-prefixed ones.
76371
76372         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76373
76374 2001-11-05  Jim Meyering  <meyering@lucent.com>
76375
76376         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76377
76378 2001-11-04  Jim Meyering  <meyering@lucent.com>
76379
76380         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76381         $DEFS.
76382
76383 2001-11-03  Jim Meyering  <meyering@lucent.com>
76384
76385         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76386         of AC_DEFUN.
76387
76388         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76389         know the name of the variable in the macro definition.
76390
76391 2001-11-03  Jim Meyering  <meyering@lucent.com>
76392
76393         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76394         in argmatch_to_argument call.
76395
76396         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76397         argument.
76398
76399         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76400         e.g., a fault due to an attempt to free a NULL pointer.
76401
76402 2001-11-01  Jim Meyering  <meyering@lucent.com>
76403
76404         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76405         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76406
76407 2001-11-01  Jim Meyering  <meyering@lucent.com>
76408
76409         * lib/dirfd.c, lib/dirfd.h: New files.
76410         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76411
76412         * lib/hash.c (hash_print) [TESTING]: Clean up.
76413
76414 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76415
76416         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76417         to avoid a warning if -Wall.
76418
76419 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76420
76421         * README: New file
76422         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76423         (per RMS's instructions, this is now the canonical source)
76424         * lgpl/, gpl/: New directories.
76425
76426 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76427
76428         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76429
76430 2001-10-21  Jim Meyering  <meyering@lucent.com>
76431
76432         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76433         this code would end up calling gettext even in packages built
76434         with --disable-nls.
76435         * lib/getopt.c (_): Likewise.
76436         * lib/regex.c (_): Likewise.
76437
76438 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76439
76440         * m4/error.m4 (jm_PREREQ_ERROR):
76441         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76442         AC_FUNC_STRERROR_R does that.
76443         Check for strerror declaration.
76444
76445         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76446         are supposed to have them these days.
76447         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76448         Merge changes from latest Autoconf CVS.
76449         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76450         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76451         POSIX decided to standardize on the int flavor of strerror_r.
76452
76453 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76454
76455         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76456         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76457         Use strerror_r that is only a macro, even if it is not a function.
76458         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76459         (private_strerror): Use prototypes, not old-style function definition.
76460         (print_errno_message): New function.
76461         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76462         char*-flavored one.
76463         (error_tail, error, error_at_line): Use it.
76464
76465 2001-10-11  Jim Meyering  <meyering@lucent.com>
76466
76467         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76468         and quote_n (1, ... to avoid clobbering a buffer.
76469
76470 2001-10-05  Jim Meyering  <meyering@lucent.com>
76471
76472         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76473         hash-pjw.h.
76474         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76475         * lib/hash-pjw.h: New file.
76476
76477 2001-09-30  Jim Meyering  <meyering@lucent.com>
76478
76479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76480         `struct fsstat' has the `f_fstypename' member.
76481         Use that to define FS_TYPE, which is now used to make
76482         the getfsstat link test tighter.
76483
76484 2001-09-30  Jim Meyering  <meyering@lucent.com>
76485
76486         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76487         Include <sys/ucred.h>, for Apple Darwin.
76488         Include sys/mount.h and sys/fs_types.h only if available.
76489         (FS_TYPE): Define.
76490         (read_filesystem_list): Use FS_TYPE.
76491
76492 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76493
76494         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76495         a boolean context.
76496
76497 2001-09-29  Jim Meyering  <meyering@lucent.com>
76498
76499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76500         [one-argument getmntent function]): Include stdio.h before mntent.h.
76501         SunOS 4.1.x needs it for the declaration of `FILE'.
76502         Patch by Volker Borchert.
76503
76504         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76505         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76506         sys/fs_types.h, and make the link-test for getfsstat guard #include
76507         directives with appropriate #if HAVE_*_H tests so that we can
76508         detect getfsstat on Apple Darwin1.3.7 systems.
76509         Reported by Nelson Beebe.
76510         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76511
76512 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76513
76514         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76515         #defines strtoimax.  Also treat the other strto* functions
76516         like strtoimax.
76517
76518         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76519         Check for strtoul and strtoumax,
76520         as those declarations are made even in the signed case.
76521         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76522         Likewise, for strtol and strtoimax.
76523
76524 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76525
76526         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76527         #defines strtoimax.  Also treat the other strto* functions
76528         like strtoimax.
76529
76530         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76531         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76532         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76533
76534 2001-09-26  Jim Meyering  <meyering@lucent.com>
76535
76536         Most macros in unlocked-io.h had the wrong number of arguments.
76537         * lib/gen-uio: New script.
76538         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76539         * lib/unlocked-io.hin: Remove file.
76540         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76541         rather than trying to embed it here.
76542         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76543         Reported by Padraig Brady.
76544
76545 2001-09-25  Volker Borchert  <bt@teknon.de>
76546
76547         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76548         `result'.
76549
76550 2001-09-24  Jim Meyering  <meyering@lucent.com>
76551
76552         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76553
76554 2001-09-23  Jim Meyering  <meyering@lucent.com>
76555
76556         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76557         instead of the mere test for existence of mntent.h.  The latter
76558         would get a false-positive on AIX 3.4 systems.
76559         In the outer getmntent if-block, don't die if neither of the getmntent
76560         tests succeeds.  Instead, just fall through and continue with the
76561         remaining tests.
76562
76563 2001-09-23  Jim Meyering  <meyering@lucent.com>
76564
76565         * lib/mountlist.c: Remove useless parentheses in #if directives.
76566         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76567         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76568
76569 2001-09-22  Jim Meyering  <meyering@lucent.com>
76570
76571         * m4/gettext.m4: New file.  From gettext.
76572         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76573         * m4/progtest.m4: Likewise
76574         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76575         * m4/glibc21.m4: Likewise.
76576
76577         * m4/libintl.m4: Remove.  No longer used.
76578
76579 2001-09-22  Jim Meyering  <meyering@lucent.com>
76580
76581         * lib/localcharset.c: Update from latest gettext.
76582         * lib/config.charset: Likewise.
76583
76584 2001-09-20  Jim Meyering  <meyering@lucent.com>
76585
76586         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76587         strtoimax.
76588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76589         strtoumax.
76590
76591 2001-09-20  Jim Meyering  <meyering@lucent.com>
76592
76593         * lib/xstrtol.c (strtoimax): Guard declaration with
76594         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76595         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76596         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76597         (strtoumax): Likewise, for completeness (it wasn't necessary).
76598
76599 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76600
76601         * lib/strtoimax.c (HAVE_LONG_LONG):
76602         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76603         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76604         to work around bug in IBM C compiler.
76605
76606 2001-09-17  Jim Meyering  <meyering@lucent.com>
76607
76608         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76609         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76610         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76611         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76612         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76613         whenever the right hand side need not be expanded by the shell.
76614
76615 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76616
76617         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76618         library.  It's not correct, as some older glibcs are buggy.
76619         fnmatch wasn't fixed until glibc 2.2.
76620
76621         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76622         special shell magic here.
76623
76624 2001-09-16  Jim Meyering  <meyering@lucent.com>
76625
76626         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76627         * m4/jm-macros.m4: Require it.
76628
76629 2001-09-16  Jim Meyering  <meyering@lucent.com>
76630
76631         * lib/mkdir.c: New file.
76632
76633 2001-09-15  Jim Meyering  <meyering@lucent.com>
76634
76635         * m4/jm-macros.m4: Check for help2man.
76636
76637 2001-09-11  Jim Meyering  <meyering@lucent.com>
76638
76639         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76640         The body, by Paul Eggert, was moved here from configure.in.
76641         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76642
76643 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76644
76645         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76646         (jm_PREREQ): Use it.
76647
76648 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76649
76650         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76651         Use ssize_t, not int, to store result of readlink.
76652         Check for ssize_t overflow as well as size_t overflow,
76653         as POSIX says the result of readlink is implementation-defined
76654         when ssize_t overflows.
76655         Remove unnecessary cast to char*.
76656         Use free+malloc instead of realloc, as the storage doesn't need
76657         to be preserved and it's clearer and can be more efficient that way.
76658         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76659         * lib/xreadlink.h (xreadlink): Update prototype.
76660
76661 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76662
76663         * lib/xgetcwd.c: Revert some of the previous change; intead,
76664         fix the HAVE_GETCWD_NULL code to behave more like the
76665         !HAVE_GETCWD_NULL code used to.
76666
76667         Include "xalloc.h".
76668         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76669         invoke xalloc_die.
76670
76671 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76672
76673         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76674         sys/param.h, as pathmax.h includes them.
76675
76676 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76677
76678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76679         (jm_PREREQ_XGETCWD): New macro.
76680
76681         * m4/getcwd.m4: New file.
76682
76683 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76684
76685         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76686         like the HAVE_GETCWD_NULL code.
76687         Include pathmax.h if not HAVE_GETCWD.
76688         Do not include xalloc.h.
76689         (INITIAL_BUFFER_SIZE): New symbol.
76690         Do not use xmalloc / xrealloc, since the caller is responsible for
76691         handling errors.  Preserve errno around `free' during failure.
76692         Do not overrun buffer when using getwd.
76693
76694 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76695
76696         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76697         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76698         getcwd (NULL, 0).
76699
76700 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76701
76702         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76703         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76704         spotted by Jim Meyering.
76705
76706 2001-09-03  Jim Meyering  <meyering@lucent.com>
76707
76708         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76709         failure.
76710
76711 2001-09-02  Jim Meyering  <meyering@lucent.com>
76712
76713         * lib/error.c: Update from GNU libc.
76714
76715 2001-09-01  Jim Meyering  <meyering@lucent.com>
76716
76717         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76718         Used by df.
76719
76720 2001-09-01  Jim Meyering  <meyering@lucent.com>
76721
76722         * lib/xreadlink.c: New file.
76723         * lib/xreadlink.h: New file.
76724         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76725         xreadlink.h.
76726
76727         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76728         doesn't conflict with sparc Solaris 7's definition in
76729         /usr/include/sys/int_types.h.
76730
76731         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76732         files.
76733         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76734         and strncasecmp as r-values.  Unixware didn't have declarations.
76735
76736 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76737
76738         * lib/xstrtol.h: Add copyright notice.
76739         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76740         LONGINT_INVALID_SUFFIX_CHAR.
76741
76742 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76743
76744         * lib/xstrtol.c (strtoimax): New decl.
76745
76746 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76747
76748         * lib/xgetcwd.c: Don't include pathmax.h.
76749         Include stdlib.h and unistd.h if available.
76750         Include xalloc.h.
76751         (xmalloc, xstrdup, free): Remove decls.
76752         (xgetcwd): Don't assume sizes fit in unsigned.
76753         Check for overflow when computing sizes.
76754         Simplify reallocation code.
76755
76756 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76757
76758         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76759         a directory's st_size can have an arbitrary value, so the old
76760         usage could waste an arbitrary amount of memory.  All uses
76761         changed.
76762         * lib/savedir.h: Update prototype.
76763
76764 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76765
76766         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76767
76768         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76769         old strtoimax.c.
76770
76771         Also, make the following further changes to make this file's
76772         configuration more similar to that of strtol.c:
76773         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76774         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76775         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76776         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76777         changed to signed values.
76778
76779         And make the following changes as well:
76780         Fix copyright notice, as 1999 was missing.
76781         (verify): New macro.
76782         (strtoimax): Check sizes at compile-time, not run-time.
76783         Prefer strtol to strtoll if both work.
76784         (main): Remove; it was not that useful and was a pain to maintain.
76785
76786         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76787
76788 2001-08-31  Jim Meyering  <meyering@lucent.com>
76789
76790         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76791         Use an initial, malloc'd, buffer of length 128 rather than
76792         a statically allocated one of length 1024.
76793
76794 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76795
76796         Simplify code, partly by assuming autoconf 2.52 semantics.
76797
76798         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76799
76800         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76801         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76802         All uses removed.
76803         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76804         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76805         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76806         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76807         jm_AC_HEADER_INTTYPES_H.
76808         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76809
76810         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76811
76812         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76813         Quote first arg of AC_DEFUN.
76814         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76815         since they are needed to parse the include file even if we need
76816         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76817         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76818         but with opposite signedness.
76819
76820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76821
76822         Merge 'exclude' changes from tar 1.13.22.
76823         This fixes one or two unlikely storage allocation overflow bugs,
76824         but doesn't change user-visible behavior otherwise.
76825
76826 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76827
76828         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76829         (jm_PREREQ_EXCLUDE): New macro.
76830
76831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76832
76833         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76834         tm to be declared.
76835
76836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76837
76838         * lib/hash.c: Remove '2001' from copyright notice.
76839
76840 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76841
76842         * lib/full-write.h: New file.
76843         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76844         * lib/full-write.c: Correct credits, as cccp.c no longer
76845         exists and anyway it was so heavily changed from the old cccp
76846         code as to be unrecognizable.  Include full-write.h.
76847         (full_write): Return size_t, with short writes meaning failure.
76848         All callers changed.  This fixes a bug with large buffers
76849         on 64-bit hosts.
76850         * lib/utime.c: Include full-write.h.
76851
76852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76853
76854         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76855         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76856         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76857         Include if available.
76858         (<xalloc.h>): Include
76859         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76860         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76861         collide with FNM macros.
76862         (struct patopts): New struct.
76863         (struct exclude): Use it, as exclude patterns now come with options.
76864         (new_exclude): Support above changes.
76865         (new_exclude, add_exclude_file):
76866         Initial size must now be a power of two to simplify overflow checking.
76867         (free_exclude, fnmatch_no_wildcards): New function.
76868         (excluded_filename): No longer requires options arg, as the options
76869         are determined by add_exclude.  Now returns bool, not int.
76870         (excluded_filename, add_exclude):
76871         Add support for the fancy new exclusion options.
76872         (add_exclude, add_exclude_file): Now takes int options arg.
76873         Check for arithmetic overflow when computing sizes.
76874         (add_exclude_file): xrealloc might modify errno, so don't
76875         realloc until after errno might be used.
76876
76877         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76878         New macros.
76879         (free_exclude): New decl.
76880         (add_exclude, add_exclude_file): Now takes int options arg.
76881         (excluded_filename): No longer requires options arg, as the options
76882         are determined by add_exclude.  Now returns bool, not int.
76883
76884 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76885
76886         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76887
76888 2001-08-27  Jim Meyering  <meyering@lucent.com>
76889
76890         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76891
76892         * lib/version-etc.c (N_): Remove definition.
76893         Revert most of last change.
76894         Instead, simply don't mark the `Copyright...' string for translation.
76895         Based on advice from Paul Eggert.
76896
76897         * lib/strtoxmax.c: Tweak comment.
76898
76899 2001-08-26  Jim Meyering  <meyering@lucent.com>
76900
76901         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76902
76903         * m4/xstrtoimax.m4: New file.
76904         * m4/xstrtoumax.m4: Add comments explaining why we
76905         AC_REPLACE_FUNCS(strtol).
76906
76907 2001-08-26  Jim Meyering  <meyering@lucent.com>
76908
76909         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76910         of copyright with `%s' so translators don't get an untranslated
76911         message in 2002.
76912         (COPYRIGHT_YEAR): Define.
76913         (version_etc): Use fprintf rather than fputs.
76914         Suggestion from Ulrich Drepper.
76915
76916         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76917
76918         * lib/strtoll.c: New file, from GNU libc.
76919         * lib/xstrtoimax.c: New file.
76920
76921         * lib/xstrtol.h: Add xstrtoimax.
76922         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76923         * lib/strtoimax.c: New file.  Likewise, but first define
76924         STRTOUXMAX_SIGNED.
76925
76926         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76927         ...
76928         * lib/strtoxmax.c: ... then renamed to this.
76929
76930 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76931
76932         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76933         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76934         (jm_AC_TYPE_INTMAX_T): New macro.
76935         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76936
76937         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76938
76939         * m4/longlong.m4: Renamed from ulonglong.m4.
76940         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76941         * m4/uintmax_t.m4: Removed.
76942
76943 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76944
76945         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76946         Port to Solaris 8, where 'sed' requires a space after the 'r'
76947         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76948         Redirect output to $tmp just once.
76949
76950 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76951
76952         * lib/addext.c (<errno.h>): Include.
76953         (errno): Declare if not defined.
76954         (addext): Work correctly when pathconf returns -1 and leaves
76955         errno alone because there is no limit.  Also, work even if
76956         pathconf returns a value greater than SIZE_MAX.
76957
76958 2001-08-12  Jim Meyering  <meyering@lucent.com>
76959
76960         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76961         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76962         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76963         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76964         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76965         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76966         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76967         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76968         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76969         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76970         utime.m4, utimes.m4, xstrtoumax.m4:
76971         Quote the first argument in each use of AC_DEFUN.
76972
76973 2001-08-12  Jim Meyering  <meyering@lucent.com>
76974
76975         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76976         Simply `return getcwd (NULL, 0);'.
76977         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76978         Use 1300 as initial value for length, not PATH_MAX.
76979
76980         * lib/pathmax.h: Clean up cpp syntax.
76981
76982 2001-08-12  Jim Meyering  <meyering@lucent.com>
76983
76984         * lib/gettimeofday.c: New file.
76985         * lib/gtod.h: New file.
76986         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76987
76988 2001-08-05  Jim Meyering  <meyering@lucent.com>
76989
76990         * m4/jm-macros.m4: Require autoconf-2.52.
76991
76992 2001-08-04  Jim Meyering  <meyering@lucent.com>
76993
76994         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76995         stmt, to get in sync with glibc.
76996
76997 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76998
76999         The following changes are from gettext 0.10.39 as maintained by
77000         Bruno Haible.
77001
77002         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77003         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77004         with inverted sense.  All uses changed.
77005
77006         * lib/mbswidth.c: Don't include <limits.h>.
77007         Include <stdlib.h> and <string.h> unconditionally.
77008         (iswcntrl, mbsinit, ISCNTRL): New macros.
77009         (mbsnwidth): Use K&R style function declarations.
77010         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77011         can optimize it when MB_CUR_MAX == 1.
77012         The width of control characters is zero, not 1.
77013
77014 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77015
77016         The following changes are from gettext 0.10.39 as maintained by
77017         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77018
77019         * m4/codeset.m4: Upgrade to serial AM1.
77020         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77021         all uses changed.  Quote first arg of AC_DEFUN.
77022         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77023
77024         * m4/iconv.m4: Upgrade to serial AM2.
77025         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77026         Add --with-libconv-prefix.
77027         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77028         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77029         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77030         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77031         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77032
77033         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77034         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77035         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77036         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77037         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77038         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77039         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77040         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77041         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77042
77043         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77044         string.h any more.
77045
77046         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77047         not the default value.
77048
77049         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77050         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77051         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77052         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77053         Also check for iswcntrl, used for wcwidth fallback.
77054         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77055         to Autoconf 2.13.
77056
77057 2001-08-03  Jim Meyering  <meyering@lucent.com>
77058
77059         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77060         as it was in the original.  Reported by Paul Eggert.
77061
77062 2001-07-16  Jim Meyering  <meyering@lucent.com>
77063
77064         * m4/gettimeofday.m4: New file.
77065         Prompted by a report from Bernhard Baehr.
77066
77067 2001-07-15  Jim Meyering  <meyering@lucent.com>
77068
77069         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77070         stuff. Now it's in ../Makefile.cfg.
77071
77072 2001-07-15  Jim Meyering  <meyering@lucent.com>
77073
77074         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77075         (BUILT_SOURCES): Add unlocked-io.h.
77076         (io_functions): Define.
77077         (unlocked-io.h): New rule.
77078         (DISTCLEANFILES): Add unlocked-io.h.
77079         (all-local): Depend on unlocked-io.h, to ensure it is created.
77080
77081         * lib/unlocked-io.hin: New file
77082
77083         * lib/regex.c: Update from glibc.
77084
77085 2001-07-05  Jim Meyering  <meyering@lucent.com>
77086
77087         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77088         recommendation.
77089         (libfetish_a_SOURCES): Put all .h files here instead.
77090         Remove a thus-exposed (better checks in automake) duplicate and
77091         two unnecessary .h files.
77092
77093 2001-07-04  Jim Meyering  <meyering@lucent.com>
77094
77095         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77096         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77097         distcheck failure.
77098
77099 2001-07-02  Jim Meyering  <meyering@lucent.com>
77100
77101         The following changes were prompted by suggestions from Bruno Haible.
77102
77103         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77104         is now generated.
77105         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77106         definition of EXTRA_DIST.
77107         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77108         ensure that the generated file is created/updated whenever the list
77109         of $(unlocked_functions) is changed.
77110         (jm-glibc-io.m4): New rule.
77111         (unlocked-io.h): New rule -- currently unused.
77112
77113 2001-06-24  Jim Meyering  <meyering@lucent.com>
77114
77115         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77116         unmatched right bracket, rather than kludging it with an extra,
77117         falsely-matching quote in a comment.  Patch by Akim Demaille.
77118
77119 2001-06-11  Jim Meyering  <meyering@lucent.com>
77120
77121         * lib/regex.c: Update from GNU libc.
77122
77123 2001-05-27  Jim Meyering  <meyering@lucent.com>
77124
77125         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77126         Check for ut_type in struct utmp.
77127
77128 2001-05-27  Jim Meyering  <meyering@lucent.com>
77129
77130         * lib/readutmp.h (UT_TYPE): Define.
77131
77132 2001-05-24  Jim Meyering  <meyering@lucent.com>
77133
77134         * lib/argmatch.c: Include "quote.h".
77135         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77136         quote function.  Reported by Göran Uddeborg.
77137
77138 2001-05-22  Jim Meyering  <meyering@lucent.com>
77139
77140         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77141         now that we use the package-supplied version unconditionally.
77142         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77143
77144 2001-05-21  Jim Meyering  <meyering@lucent.com>
77145
77146         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77147         shell syntax errors.
77148
77149 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77150
77151         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77152
77153 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77154
77155         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77156         Don't bother to check library strftime, since
77157         we'll be using our own my_strftime function anyway.
77158         Define my_strftime instead of strftime.
77159
77160 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77161
77162         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77163         which is not yet declared.
77164
77165 2001-05-15  Jim Meyering  <meyering@lucent.com>
77166
77167         * m4/regex.m4: Use proper quoting so brackets appear in the test
77168         program.
77169         Reported by, and with help from, Bruno Haible.
77170
77171 2001-05-13  Jim Meyering  <meyering@lucent.com>
77172
77173         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77174         undefined.
77175
77176 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77177
77178         dirname code cleanup.  base_name now behaves more compatibly
77179         with POSIX basename when given file names that have trailing
77180         slashes, and similarly for dir_name.  Add new primitives
77181         base_len and dir_len.  Put the directory-name-related decls
77182         into dirname.h.
77183
77184         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77185         * lib/backupfile.c (base_name): Likewise.
77186         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77187         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77188         * lib/makepath.c (strip_trailing_slashes): Likewise.
77189         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77190         ISSLASH): Likewise.
77191         * lib/rename.c (strip_trailing_slashes): Likewise.
77192         * lib/same.c (base_name): Likewise.
77193         * lib/stripslash.c (ISSLASH): Likewise.
77194
77195         * lib/addext.c: Include <dirname.h> after size_t is defined.
77196         * lib/backupfile.c: Likewise.
77197
77198         * lib/addext.c (addext): Use base_len to trim redundant
77199         trailing slashes instead of doing it ourselves.
77200         But do not trim the last slash if it is not redundant.
77201
77202         * lib/backupfile.c (find_backup_file_name,
77203         max_backup_version): Use base_len instead of rolling it ourselves.
77204         Handle the case of "" and (on DOS) "C:" correctly.
77205
77206         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77207         needed. Include <string.h>, <dirname.h>.
77208         (base_name): Allow file names ending in slashes, other than names
77209         that are all slashes.  In this case, return the basename followed
77210         by the slashes.  This is more general, and can be used in places
77211         where the original base_name purposely had an assertion failure.
77212         (base_len): New function.
77213
77214         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77215         Do not include <assert.h>; no longer needed.
77216         Include xalloc.h.
77217         (memrchr): Remove decl.
77218         (dir_name_r): Remove.
77219         (dir_len): Renamed from dirlen.  All callers changed.
77220         Rewrite in terms of base_name, for simplicity and consistency.
77221         (dir_name): Never return NULL.  All callers changed.
77222         Do not include <stdlib.h> in test program; no longer needed.
77223         return 0; is fine for test program.
77224
77225         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77226         New macros.
77227         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77228
77229         * lib/path-concat.c (path_concat): Use base_len to compute
77230         base length, not strlen; this means we cannot rely on memcpy
77231         to null-terminate.
77232
77233         * lib/same.c (STREQ): Remove.
77234         (same_name): Handle the case where the basename ends in trailing '/'.
77235
77236         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77237         a slash was stripped.  Do not strip the last slash after a
77238         file system prefix.
77239
77240 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77241
77242         * lib/Makefile.am (libfetish_a_SOURCES):
77243         Add strftime.c, since we now compile it on all hosts.
77244
77245         * lib/strftime.c (my_strftime):
77246         Define to nstrftime if emacs, but only if my_strftime is not defined.
77247         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77248         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77249         Add one more extra argument: a nanoseconds value.
77250         All uses changed.
77251         (ns): New macro.
77252         (my_strftime function): Add %N format.
77253         (emacs_strftimeu): Renamed from emacs_strftime,
77254         with extra ut argument.
77255
77256 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77257
77258         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77259
77260 2001-04-21  Jim Meyering  <meyering@lucent.com>
77261
77262         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77263         doesn't interfere.
77264
77265 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77266
77267         * m4/ftruncate.m4: Check for chsize.
77268         Link with ftruncate.o unconditionally if ftruncate is missing.
77269         This was required when cross-compiling to i586-mingw32msvc.
77270
77271 2001-04-08  Jim Meyering  <meyering@lucent.com>
77272
77273         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77274         recomputed; that's necessary when the offset spans a DST transition.
77275         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77276
77277 2001-04-02  Jim Meyering  <meyering@lucent.com>
77278
77279         * lib/regex.h, regex.c: Update from GNU libc.
77280
77281 2001-03-24  Jim Meyering  <meyering@lucent.com>
77282
77283         * m4/jm-macros.m4: Require autoconf-2.49d.
77284
77285 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77286
77287         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77288
77289 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77290
77291         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77292
77293 2001-03-17  Jim Meyering  <meyering@lucent.com>
77294
77295         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77296         now that the version in autoconf is equivalent.
77297         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77298
77299         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77300         Suggestion from Akim Demaille.
77301
77302         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77303         (jm_PREREQ_TEMPNAME): New function.
77304
77305 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77306
77307         * lib/tempname.c (uint64_t): Define to uintmax_t if
77308         not defined, and if UINT64_MAX is not defined.
77309         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77310         Reported by John David Anglin.
77311
77312 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77313
77314         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77315         resolve alias if codeset is empty.
77316         * lib/config.charset (BeOS): Use wildcard syntax.
77317
77318 2001-03-13  Jim Meyering  <meyering@lucent.com>
77319
77320         * lib/path-concat.c (path_concat)
77321         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77322         concatenating e.g., `C:' and `foo'.
77323         From Bruno Haible.
77324
77325 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77326
77327         * lib/localcharset.c (locale_charset): Don't use
77328         setlocale(LC_CTYPE,NULL). Don't return NULL.
77329         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77330
77331 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77332
77333         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77334         support for DOS/DJGPP.
77335
77336 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77337
77338         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77339         lacks mkstemp.  Compile our own tempname.c if we compile our own
77340         mkstemp.c, as mkstemp relies on tempname.
77341
77342 2001-03-01  Jim Meyering  <meyering@lucent.com>
77343
77344         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77345         AH_VERBATIM really does output its argument verbatim.
77346
77347 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77348
77349         * lib/Makefile.am (libfetish_a_SOURCES):
77350         Add dup-safer.c, fopen-safer.c.
77351         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77352
77353         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77354         * lib/unistd-safer.h: New files.
77355
77356 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77357
77358         The mkstemp replacement is taken from glibc 2.2.2, with some
77359         portability fixes for use outside glibc, as follows:
77360
77361         * lib/tempname.c (struct_stat64): New macro.
77362         (direxists, __gen_tempname): Use it.
77363         This avoids a portability problem with Solaris 8.
77364
77365         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77366         (<stddef.h>, <stdint.h>, <string.h>):
77367         Include only if STDC_HEADERS || _LIBC.
77368         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77369         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77370         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77371         (__set_errno): Define this macro if <errno.h> doesn't.
77372         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77373         Define these macros if <stdio.h> doesn't.
77374         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77375         Define these macros if <sys/stat.h>
77376         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77377         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77378         __xstat64): Define if not _LIBC.
77379         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77380         (__gen_tempname): Invoke gettimeofday only if
77381         HAVE_GETTIMEOFDAY || _LIBC;
77382         otherwise, fall back on plain "time".
77383         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77384
77385         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77386
77387         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77388
77389 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77390
77391         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77392
77393 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77394
77395         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77396         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77397         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77398         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77399
77400 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77401
77402         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77403         Remove workaround macros for hosts that have mbrtowc but not
77404         mbstate_t, as we now insist on proper declarations for both
77405         before using mbrtowc.
77406
77407 2001-02-17  Jim Meyering  <meyering@lucent.com>
77408
77409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77410         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77411         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77412         UnixWare 7.1.1.
77413
77414         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77415         rather than AC_CACHE_VAL.
77416
77417 2001-02-17  Jim Meyering  <meyering@lucent.com>
77418
77419         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77420         around included file name.
77421
77422         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77423
77424         * lib/strftime.c: Update from GNU libc (the only changes were to
77425         comments).
77426
77427 2001-02-17  Jim Meyering  <meyering@lucent.com>
77428
77429         * lib/regex.c: Update from libc.
77430
77431 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77432
77433         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77434         clash.
77435
77436 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77437
77438         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77439         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77440         Reported by Mark Hounschell via Paul Eggert.
77441
77442 2001-02-07  Jim Meyering  <meyering@lucent.com>
77443
77444         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77445
77446 2001-02-05  Jim Meyering  <meyering@lucent.com>
77447
77448         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77449         it includes the patch required for `large file' support with at least
77450         HP-UX's 10.20 /bin/cc.
77451
77452 2001-02-03  Jim Meyering  <meyering@lucent.com>
77453
77454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77455         AS_IF, now that it works once again (mysteriously).
77456         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77457
77458 2001-01-30  Jim Meyering  <meyering@lucent.com>
77459
77460         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77461         * m4/chown.m4: Rename conftestchown to conftest.chown.
77462         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77463         s/conftestdir2/conftest.d2/.
77464         * m4/utimes.m4: s/conftestdata/conftest.data/
77465         Inspired by Pavel Roskin's change in autoconf.
77466
77467 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77468
77469         * lib/config.charset: Update for FreeBSD 4.2.
77470
77471 2001-01-27  Jim Meyering  <meyering@lucent.com>
77472
77473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77474         a use of AS_IF.
77475         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77476
77477 2001-01-26  Jim Meyering  <meyering@lucent.com>
77478
77479         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77480         quotearg.c includes it.
77481
77482 2001-01-26  Jim Meyering  <meyering@lucent.com>
77483
77484         * lib/quotearg.c: Include stddef.h.
77485         * lib/quote.c: Include stddef.h.
77486         Reported by Axel Kittenberger.
77487
77488         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77489         line in double quotes so that it evokes a better diagnostic.
77490         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77491         Reported by Axel Kittenberger.
77492
77493 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77494
77495         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77496         as if it was a `charset'.
77497
77498 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77499
77500         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77501         has const.
77502
77503 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77504
77505         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77506         to avoid a warning.  Add back 'const' to inptr.
77507
77508 2001-01-20  Jim Meyering  <meyering@lucent.com>
77509
77510         Be sure that headers are checked before used in code compiled
77511         for the type checks.
77512         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77513         In place of that, invoke jm_CHECK_ALL_TYPES.
77514         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77515         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77516         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77517         The check for ssize_t was mistakenly run before the test for unistd.h.
77518
77519         The configure-time check for stdbool.h was missing.
77520         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77521         (jm_PREREQ_HASH): New function.
77522
77523 2001-01-17  Jim Meyering  <meyering@lucent.com>
77524
77525         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77526         for autoconf-2.49c.
77527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77528
77529 2001-01-16  Jim Meyering  <meyering@lucent.com>
77530
77531         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77532         From Bruno Haible.
77533
77534 2001-01-14  Jim Meyering  <meyering@lucent.com>
77535
77536         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77537         foo and bar.  Create conftestdir/ in the script, not in the C code.
77538         Remove directories in the script, not in the C code.
77539         Remove conftestdir{,2} before trying to create the directory.
77540         Make the entire configure script fail if the mkdir fails.
77541
77542 2001-01-14  Jim Meyering  <meyering@lucent.com>
77543
77544         * lib/rename.c: New file.  From Volker Borchert.
77545         Include stdlib.h, string.h or strings.h, and xalloc.h.
77546         Use strip_trailing_slashes rather than open-coding it.
77547
77548 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77549
77550         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77551
77552 2001-01-03  Jim Meyering  <meyering@lucent.com>
77553
77554         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77555         of local `inptr' to avoid warning with some system declarations of
77556         iconv.
77557
77558 2001-01-02  Volker Borchert  <bt@teknon.de>
77559
77560         * m4/rename.m4: New file.
77561         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77562
77563 2001-01-01  Jim Meyering  <meyering@lucent.com>
77564
77565         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77566         even on systems with utmpx.h.  It's necessary for the declaration of
77567         utmp's ut_user member.  Reported by Andreas Jaeger.
77568
77569         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77570         available. They are required for the declarations of getgrgid and
77571         getpwuid resp.
77572         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77573         Reported by Andreas Jaeger.
77574
77575 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77576
77577         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77578         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77579         so `make install' also works in VPATH builds.
77580
77581 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77582
77583         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77584         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77585         can be used in subdirectories.
77586
77587 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77588
77589         * lib/modechange.c: Do not assume that mode_t uses the
77590         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77591         the other-execute bit of FOO even if S_IXOTH != 1.
77592
77593         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77594         WOTH, XOTH, ALLM): New macros.
77595         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77596          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77597         Use them.
77598         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77599         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77600         (mode_compile):
77601         No need to use uintmax_t; unsigned long is long enough.
77602         Don't bother to get suffix since we don't use it.
77603
77604 2000-12-26  Jim Meyering  <meyering@lucent.com>
77605
77606         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77607         better with autoheader.
77608
77609 2000-12-24  Jim Meyering  <meyering@lucent.com>
77610
77611         * lib/hash.c (is_prime): Return explicit boolean values.
77612         (hash_get_first): Return NULL to appease Irix5.6's 89.
77613         Reported by Nelson Beebe.
77614
77615 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77616
77617         * lib/localcharset.c (locale_charset): Add support for Win32.
77618
77619 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77620
77621         * lib/physmem.h, lib/physmem.c: New files.
77622
77623         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77624         (noinst_HEADERS): Add physmem.h.
77625
77626         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77627         't' for compatibility with Solaris 8 sort.
77628
77629 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77630
77631         * lib/config.charset: Add support for BeOS.
77632
77633 2000-12-17  Jim Meyering  <meyering@lucent.com>
77634
77635         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77636         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77637
77638 2000-12-16  Jim Meyering  <meyering@lucent.com>
77639
77640         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77641         N and M) would have treated it like `chown N:N FILE'.
77642
77643         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77644
77645 2000-12-16  Jim Meyering  <meyering@lucent.com>
77646
77647         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77648         SHELLS_FILE to a file name that's useful on djgpp systems.
77649         Include stdlib.h.
77650         (ADDITIONAL_DEFAULT_SHELLS): Define.
77651         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77652         Based mostly on a patch from Prashant TR.
77653
77654 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77655
77656         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77657         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77658         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77659
77660 2000-12-08  Andreas Schwab  <schwab@suse.de>
77661
77662         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77663         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77664
77665 2000-12-07  Jim Meyering  <meyering@lucent.com>
77666
77667         * lib/stripslash.c (ISSLASH): Define.
77668         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77669         `/'.
77670         From Prashant TR.
77671
77672         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77673         (dir_name_r): Declare this function as static.
77674         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77675         manifest itself on a name containing a mix of slashes and
77676         backslashes.
77677         Make this function work with names starting with a DOS-style
77678         drive letter and colon prefix.
77679         (dir_name): Append `.' if necessary.
77680         Based mostly on patches from Prashant TR and Eli Zaretskii.
77681
77682         * lib/dirname.h (dir_name_r): Remove prototype.
77683
77684 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77685
77686         * m4/off_t-format.m4: Remove this file.
77687         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77688
77689 2000-12-06  Jim Meyering  <meyering@lucent.com>
77690
77691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77692         replacement strtoull, we may well need the replacement strtoul, too.
77693         Check for declarations of strtoul and strtoull.
77694         Check for strtol.  Mainly as a cue to cause automake to include
77695         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77696         Check for limits.h -- strtol.c needs it.
77697
77698 2000-12-05  Jim Meyering  <meyering@lucent.com>
77699
77700         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77701
77702 2000-12-04  Jim Meyering  <meyering@lucent.com>
77703
77704         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77705         Also include memory.h, stdlib.h, unistd.h if appropriate.
77706         Reported by Andreas Jaeger (conflicting declaration of malloc).
77707
77708 2000-12-02  Jim Meyering  <meyering@lucent.com>
77709
77710         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77711         * m4/jm-macros.m4 (jm_MACROS): require it.
77712
77713 2000-12-02  Jim Meyering  <meyering@lucent.com>
77714
77715         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77716
77717 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77718
77719         * lib/memrchr.c: Include <config.h> before any system include file.
77720
77721 2000-11-30  Jim Meyering  <meyering@lucent.com>
77722
77723         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77724
77725 2000-11-30  Jim Meyering  <meyering@lucent.com>
77726
77727         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77728
77729 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77730
77731         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77732
77733 2000-11-26  Jim Meyering  <meyering@lucent.com>
77734
77735         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77736
77737 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77738
77739         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77740         size of (size_t) -1; it's not portable.
77741
77742 2000-11-17  Jim Meyering  <meyering@lucent.com>
77743
77744         * lib/strstr.c: Update from GNU libc.
77745
77746 2000-11-17  Akim Demaille  <akim@epita.fr>
77747
77748         * lib/obstack.h: Formatting changes.
77749         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77750         prevent type checking.
77751         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77752         cast the value to (void *): assigning a `foo *' to a `void *'
77753         variable is valid.
77754         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77755
77756 2000-11-16  Jim Meyering  <meyering@lucent.com>
77757
77758         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77759
77760 2000-11-11  Jim Meyering  <meyering@lucent.com>
77761
77762         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77763
77764 2000-11-10  Jim Meyering  <meyering@lucent.com>
77765
77766         * lib/obstack.h: Update from GNU libc.
77767         * lib/obstack.c: Likewise.
77768
77769 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77770
77771         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77772
77773 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77774
77775         * lib/getusershell.c (setusershell): Use rewind rather than
77776         fseek/fseeko, to avoid configuration hassles with fseeko.
77777         Don't bother opening SHELLS_FILE if shellstream is NULL;
77778         it's not necessary.
77779
77780 2000-11-05  Jim Meyering  <meyering@lucent.com>
77781
77782         * lib/makepath.h (make_dir): Declare.
77783         * lib/makepath.c (make_dir): Remove `static' attribute.
77784         Tweak a comment.
77785
77786 2000-11-04  Jim Meyering  <meyering@lucent.com>
77787
77788         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77789
77790 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77791
77792         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77793         last one in a bucket, advance to the next bucket.
77794
77795 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77796
77797         * lib/fnmatch.c: Do not comment out all the code if we are using
77798         the GNU C library, because in some cases we are replacing buggy
77799         code in the GNU C library itself.
77800
77801 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77802
77803         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77804         (regex_compile): Catch bogus \(\1\).
77805
77806 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77807
77808         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77809         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77810         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77811
77812 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77813
77814         * lib/error.h, getline.h, modechange.h:
77815         Remove "2000" from Copyright line, as the file hasn't been
77816         changed this year other than in the copyright notice.
77817
77818         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77819         was changed this year.
77820
77821 2000-10-29  Jim Meyering  <meyering@lucent.com>
77822
77823         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77824         renaming.
77825         * m4/ls-mntd-fs.m4: Likewise
77826
77827 2000-10-29  Jim Meyering  <meyering@lucent.com>
77828
77829         * lib/xstat.in: Fix grammar in comment.
77830
77831 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77832
77833         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77834         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77835         doesn't define __restrict_arr.
77836
77837 2000-10-28  Jim Meyering  <meyering@lucent.com>
77838
77839         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77840         (jm_PREREQ_MEMCHR): New function.
77841
77842 2000-10-28  Jim Meyering  <meyering@lucent.com>
77843
77844         * lib/memchr.c: Update from libc.
77845         Adjust for portability:
77846         [HAVE_STDLIB_H]: Include stdlib.h.
77847         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77848         Undef __memchr, too.
77849         [!weak_alias]: Define __memchr to memchr.
77850
77851         * lib/regex.c: Update from libc.
77852         * lib/regex.h: Likewise.
77853         * lib/getopt1.c: Likewise.
77854         * lib/memcmp.c: Likewise.
77855
77856         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77857         Avoid using fseek, when possible -- it's broken by design.
77858         Patch by Ulrich Drepper.
77859
77860 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77861
77862         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77863         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77864         Giving in to popular pressure to shut up the compiler with casts.
77865
77866 2000-10-26  Jim Meyering  <meyering@lucent.com>
77867
77868         * lib/strftime.c: Update from libc.
77869
77870 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77871
77872         * regex.c: More `unsigned char' -> `re_char' changes.
77873         Also change several `int' into `re_wchar_t'.
77874         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77875         (PUSH_FAILURE_POINTER): Don't cast any more.
77876         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77877         We want GCC to complain, since this piece of code makes
77878         re_match non-reentrant, which *should* be fixed.
77879         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77880         (EXTEND_BUFFER): Use RETALLOC.
77881         (SET_LIST_BIT): Don't cast.
77882         (re_wchar_t): New type.
77883         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77884         that those two functions will always properly return.
77885         (IMMEDIATE_QUIT_CHECK): Cast to void.
77886         (analyse_first): Use recursion rather than an explicit stack.
77887         (re_compile_fastmap): Can't fail anymore.
77888         (re_search_2): Don't check re_compile_fastmap for failure.
77889         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77890         Now also sets the new value (passed in a new argument).
77891         (re_match_2_internal): Use it.
77892         Also, use a new var `reg' of type size_t when looping through regs
77893         rather than reuse the inappropriate `mcnt'.
77894
77895 2000-10-25  Jim Meyering  <meyering@lucent.com>
77896
77897         * lib/obstack.c: Update from libc.
77898
77899 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77900
77901         * regex.c (regex_compile): Change the way of handling a range from
77902         a char less than 256 to a char not less than 256.
77903
77904 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77905
77906         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77907         NT-Emacs only.
77908         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77909         so that re_search functions only quit when callers expect them to.
77910
77911 2000-10-23  Jim Meyering  <meyering@lucent.com>
77912
77913         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77914         wrong.  That set_locale call must not have any side effects.
77915         From Paul Eggert.
77916
77917 2000-10-22  Jim Meyering  <meyering@lucent.com>
77918
77919         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77920         [CYCLIC]: Remove now-unused definition.
77921
77922         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77923         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77924         Suggestion from Ulrich Drepper.
77925
77926 2000-10-21  Jim Meyering  <meyering@lucent.com>
77927
77928         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77929         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77930         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77931
77932 2000-10-21  Jim Meyering  <meyering@lucent.com>
77933
77934         * lib/dirname.c (memrchr): Declare if necessary.
77935         (dir_name): Remove the restriction that there be no
77936         trailing slashes.  Now, this code skips past them, effectively
77937         ignoring them.
77938         [TEST_DIRNAME] (main): New unit tests.
77939
77940         * lib/memrchr.c: New file from GNU libc.
77941         Undef __memrchr, too.
77942         [!weak_alias]: Define __memrchr to memrchr.
77943         Guard weak_alias use with `#ifdef weak_alias'.
77944
77945 2000-10-21  Jim Meyering  <meyering@lucent.com>
77946
77947         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77948         (dir_name): Use dir_name_r.
77949         * lib/dirname.h (dir_name_r): Declare it.
77950
77951 2000-10-17  Jim Meyering  <meyering@lucent.com>
77952
77953         * lib/quote.h (PARAMS): Define and use.
77954         Reported by Akim Demaille.
77955
77956         * lib/getopt.c: Update from libc.
77957
77958 2000-10-16  Jim Meyering  <meyering@lucent.com>
77959
77960         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77961         setlocale.
77962         From Jan Fedak.
77963
77964 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77965
77966         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77967
77968 2000-09-25  Jim Meyering  <meyering@lucent.com>
77969
77970         * lib/md5.h (rol): Define (from GnuPG).
77971
77972         * lib/sha.c: Give credit (GnuPG) where due.
77973         (M): Use rol rather than open-coding it.
77974         Add a FIXME comment.
77975
77976 2000-09-21  Jim Meyering  <meyering@lucent.com>
77977
77978         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77979         Reported by Michael Stone.
77980
77981 2000-09-20  Jim Meyering  <meyering@lucent.com>
77982
77983         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77984         (noinst_HEADERS): Add sha.h.
77985         Based on code from Scott G. Miller and from GnuPG.
77986
77987 2000-09-18  Jim Meyering  <meyering@lucent.com>
77988
77989         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77990         LIBS. Otherwise, everyone ends up linking with -lelf for some
77991         configurations.
77992         Reported by Mike Stone.
77993
77994 2000-09-15  Jim Meyering  <meyering@lucent.com>
77995
77996         * lib/regex.c: Update from libc.
77997
77998 2000-09-10  Jim Meyering  <meyering@lucent.com>
77999
78000         * lib/getopt.c (_getopt_internal): Update from glibc.
78001
78002 2000-09-09  Jim Meyering  <meyering@lucent.com>
78003
78004         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78005         think it should be used as a general replacement for isascii.
78006         * lib/fnmatch.c: Likewise.
78007         * lib/mbswidth.c: Likewise
78008         * lib/regex.c: Likewise.
78009
78010         Don't use atoi.
78011         * lib/userspec.c: Include sys/param.h and limits.h.
78012         Include xstrtol.h.
78013         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78014         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78015         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78016         UID, GID.  Check range.
78017
78018 2000-09-06  Jim Meyering  <meyering@lucent.com>
78019
78020         * lib/getopt.c (_getopt_internal): Update from glibc.
78021
78022 2000-08-30  Jim Meyering  <meyering@lucent.com>
78023
78024         * lib/strftime.c: Merge in changes from GNU libc.
78025
78026 2000-08-26  Jim Meyering  <meyering@lucent.com>
78027
78028         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78029         * m4/fpending.m4: New file.
78030
78031 2000-08-26  Jim Meyering  <meyering@lucent.com>
78032
78033         * lib/closeout.c: Include "__fpending.h".
78034         (close_stdout_status): Return right away if there's nothing to flush.
78035
78036         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78037         * lib/__fpending.c: New file.
78038         * lib/__fpending.h: New file.
78039
78040 2000-08-20  Jim Meyering  <meyering@lucent.com>
78041
78042         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78043         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78044         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78045
78046 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78047
78048         Improve fileutils installation on systems where running
78049         programs (like install) can't be unlinked.
78050         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78051         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78052
78053 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78054
78055         Standardize on "memory exhausted" instead of "Memory exhausted"
78056         or "virtual memory exhausted".
78057         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78058         "virtual memory exhausted".
78059         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78060         our own message.
78061         * lib/userspec.c (parse_user_spec): Likewise.
78062         * lib/bumpalloc.h: comment fix
78063         * lib/same.c, userspec.c: Include xalloc.h.
78064
78065         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78066         not char *const and pointing to a constant array.
78067         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78068         (xrealloc): Comment fix.
78069
78070         * lib/userspec.c (parse_user_spec):
78071         Don't translate a message until just before returning,
78072         to avoid unnecessary translation.
78073
78074 2000-08-07  Jim Meyering  <meyering@lucent.com>
78075
78076         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78077         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78078         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78079         getgroups.c, gethostname.c, getopt.h, group-member.c,
78080         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78081         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78082         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78083         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78084         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78085         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78086         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78087         yesno.c: Back out Copyright date changes for each file with no change
78088         this year.  This eases coordination with other programs using the same
78089         source code modules.  From Paul Eggert.
78090
78091 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78092
78093         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78094         not char, for compatibility with glibc 2.1.3 strftime.c.
78095
78096 2000-08-03  Greg McGary  <greg@mcgary.org>
78097
78098         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78099         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78100         (EXTEND_BUFFER): Use them.
78101
78102 2000-08-01  Jim Meyering  <meyering@lucent.com>
78103
78104         * lib/dirname.c (ISSLASH): Define.
78105         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78106         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78107         both `\' and `/' may be use as path separators.
78108         Based on a patch from Prashant TR.
78109
78110 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78111
78112         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78113         slot vector a constant, since it might get modified.
78114
78115 2000-07-31  Jim Meyering  <meyering@lucent.com>
78116
78117         * lib/xmalloc.c: Use `virtual memory exhausted', not
78118         `Memory exhausted'.
78119         * lib/obstack.c (print_and_abort): Likewise.
78120
78121 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78122
78123         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78124         buffer, so that the caller can always quote one small
78125         component of a "memory exhausted" message in slot 0.
78126         From a suggestion by Jim Meyering.
78127
78128 2000-07-30  Jim Meyering  <meyering@lucent.com>
78129
78130         * lib/makepath.c (make_path): Quote the other instance, too.
78131
78132         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78133         (STATIC_BUF_SIZE): Define.
78134         (quotearg_n_options): Use only statically allocated storage when
78135         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78136         than STATIC_BUF_SIZE.
78137
78138 2000-07-29  Jim Meyering  <meyering@lucent.com>
78139
78140         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78141         * lib/dirname.c (dir_name): Likewise.
78142
78143         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78144         `/'.
78145
78146         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78147         (dir_name): Assert that there are no trailing slashes.
78148
78149 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78150
78151         * lib/mbswidth.h (mbswidth): Add a flags argument.
78152         (mbswidth): New declaration.
78153         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78154         * lib/mbswidth.c (mbswidth): Add a flags argument.
78155         (mbsnwidth): New function.
78156
78157 2000-07-24  Jim Meyering  <meyering@lucent.com>
78158
78159         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78160
78161 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78162
78163         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78164
78165 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78166
78167         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78168         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78169         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78170         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78171         invoke multibyte primitives.
78172
78173 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78174
78175         * lib/quotearg.c:
78176         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78177         so that mbstate_t is always defined.
78178
78179         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78180         be 1 in at least one GCC installation, and this configuration
78181         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78182         performance on hosts that have mbrtowc but have only unibyte
78183         locales, but I assume these hosts are rare.
78184
78185 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78186
78187         * lib/mbswidth.c (_XOPEN_SOURCE):
78188         Don't define; this causes problems on Solaris 7.
78189         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78190
78191 2000-07-23  Jim Meyering  <meyering@lucent.com>
78192
78193         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78194         too: getgrgid, getpwuid, getuid.
78195
78196 2000-07-23  Jim Meyering  <meyering@lucent.com>
78197
78198         * lib/basename.c (base_name): Add an assertion.
78199
78200 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78201
78202         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78203         shadow its mbsinit function.
78204
78205 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78206
78207         * lib/mbswidth.h: New file.
78208         * lib/mbswidth.c: New file.
78209         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78210         (noinst_HEADERS): Add mbswidth.h.
78211
78212 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78213
78214         * lib/config.charset: Add support for FreeBSD. Improve support for
78215         HP-UX and IRIX 6.
78216
78217 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78218
78219         * m4/mbswidth.m4: New file.
78220         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78221
78222 2000-07-15  Jim Meyering  <meyering@lucent.com>
78223
78224         * lib/makepath.c: Include quote.h.
78225         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78226         corresponding argument in a `quote (...)' call.
78227         Give better diagnostics.
78228
78229         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78230         (noinst_HEADERS): Add quote.h.
78231
78232         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78233         from tar's src/misc.c.
78234         * lib/quote.h: New file.  Prototypes for same.
78235
78236 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78237
78238         From a suggestion by Bruno Haible.
78239         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78240         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78241         to decide whether to define the BeOS workaround macro;
78242         this adjusts to the change to AC_MBSTATE_T.
78243
78244 2000-07-14  Jim Meyering  <meyering@lucent.com>
78245
78246         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78247         jm_AC_TYPE_UINTMAX_T.
78248
78249 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78250
78251         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78252
78253         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78254         quotearg_buffer_restyled): Add support for
78255         clocale_quoting_style.  Undo previous change to
78256         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78257         and "{RIGHT QUOTATION MARK}" msgids.
78258
78259 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78260
78261         From a suggestion by Bruno Haible.
78262         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78263         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78264         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78265         and mbstate_t, to a single-part test that simply defines mbstate_t.
78266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78267         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78268
78269 2000-07-10  Jim Meyering  <meyering@lucent.com>
78270
78271         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78272
78273         * m4/gnu-source.m4: Output to confdefs.h directly.
78274         Suggestion from Akim Demaille.
78275
78276 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78277
78278         The old behavior of quoting `like this' doesn't look good with
78279         newer, ISO-style fonts.  See:
78280         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78281
78282         Instead, quote "like this" by default.  Let the translator
78283         tailor the locale-specific quoting behavior by providing
78284         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78285
78286         * lib/quotearg.c (N_): New macro.
78287         (gettext_default): New function.
78288         (quotearg_buffer_restyled): Use
78289         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78290         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78291
78292 2000-07-09  Jim Meyering  <meyering@lucent.com>
78293
78294         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78295         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78296
78297         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78299
78300 2000-07-09  Jim Meyering  <meyering@lucent.com>
78301
78302         * lib/Most files: Update copyright dates to include 2000.
78303
78304 2000-07-08  Jim Meyering  <meyering@lucent.com>
78305
78306         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78307         if not defined.
78308         (xgethostname): Remove now-unnecessary #ifdef.
78309         Move declaration of `err' into loop where it's used.
78310
78311 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78312         and Bruno Haible  <haible@clisp.cons.org>
78313
78314         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78315         only if the test for an object-type mbstate_t fails.  This
78316         prevents us from mistakenly reporting that mbstate_t is a
78317         system object type after we "#define mbstate_t int" to work
78318         around its lack.
78319
78320 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78321         and Bruno Haible  <haible@clisp.cons.org>
78322
78323         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78324
78325 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78326
78327         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78328         to strerror_r.
78329         Include <ctype.h> for use of isalpha.
78330
78331 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78332
78333         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78334         by allocating a larger buffer. Test the gethostname return value for
78335         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78336         returns an error and ENAMETOOLONG isn't defined.
78337
78338 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78339
78340         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78341         dimension.
78342
78343 2000-07-04  Jim Meyering  <meyering@lucent.com>
78344
78345         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78346         of the deprecated AC_CHECKING.
78347
78348 2000-07-04  Jim Meyering  <meyering@lucent.com>
78349
78350         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78351         Reported by Bruno Haible.
78352
78353 2000-07-04  Jim Meyering  <meyering@lucent.com>
78354
78355         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78356         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78357         lacks mbrtowc.
78358
78359 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78360
78361         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78362         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78363
78364 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78365         and Bruno Haible  <haible@clisp.cons.org>
78366
78367         * lib/quotearg.c (mbrtowc):
78368         Assign to *pwc, and return 1 only if result is nonzero.
78369         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78370
78371 2000-07-03  Jim Meyering  <meyering@lucent.com>
78372
78373         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78374
78375 2000-07-03  Jim Meyering  <meyering@lucent.com>
78376
78377         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78378         This is necessary to get a definition of e.g., UTMP_FILE on
78379         HP-UX 10.20.
78380         From Bob Proulx.
78381
78382 2000-07-02  Jim Meyering  <meyering@lucent.com>
78383
78384         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78385
78386         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78387         AC_LIBOBJ(function_name).
78388         * m4/chown.m4: Likewise.
78389         * m4/fnmatch.m4: Likewise.
78390         * m4/ftruncate.m4: Likewise.
78391         * m4/getgroups.m4: Likewise.
78392         * m4/getline.m4: Likewise.
78393         * m4/group-member.m4: Likewise.
78394         * m4/jm-macros.m4: Likewise.
78395         * m4/lstat.m4: Likewise.
78396         * m4/malloc.m4: Likewise.
78397         * m4/memcmp.m4: Likewise.
78398         * m4/nanosleep.m4: Likewise.
78399         * m4/putenv.m4: Likewise.
78400         * m4/realloc.m4: Likewise.
78401         * m4/regex.m4: Likewise.
78402         * m4/stat.m4: Likewise.
78403         * m4/strftime.m4: Likewise.
78404
78405 2000-07-02  Jim Meyering  <meyering@lucent.com>
78406
78407         * lib/quotearg.c (mbstate_t): Don't define here.
78408
78409 2000-07-02  Jim Meyering  <meyering@lucent.com>
78410
78411         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78412
78413 2000-07-01  Jim Meyering  <meyering@lucent.com>
78414
78415         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78416
78417 2000-07-01  Jim Meyering  <meyering@lucent.com>
78418
78419         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78420         problem.
78421
78422 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78423
78424         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78425         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78426
78427 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78428
78429         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78430         per change in ../m4/ls-mntd-fs.m4.
78431         (read_filesystem_list): Ignore symbolic links.
78432
78433 2000-06-29  Jim Meyering  <meyering@lucent.com>
78434
78435         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78436         for declaration of strcmp.
78437
78438         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78439
78440         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78441         Avoid warning by casting result to `char *' to remove `const'.
78442
78443 2000-06-28  Jim Meyering  <meyering@lucent.com>
78444
78445         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78446         included by quotearg.c, for which we perform this test.  From
78447         Bruno Haible.
78448
78449 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78450
78451         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78453         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78454
78455 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78456
78457         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78458
78459 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78460
78461         savedir now sets errno on failure and invokes xmalloc to get memory.
78462         Fix a couple of other minor bugs while we're at it.
78463
78464         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78465         (NAMLEN): Remove macro.
78466         (malloc, realloc): Remove decls.
78467         (stpcpy): Likewise.
78468         ("xalloc.h"): Include.
78469         (NAME_SIZE_DEFAULT): New macro.
78470         (savedir): Use xmalloc / xrealloc to allocate memory.
78471         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78472         Skip "" directory entries.
78473         Use strlen to calculate directory entry length, since the old method
78474         is rarely used these days and isn't worth supporting.
78475         Don't use a pointer after freeing it.
78476         Check for integer overflow when calculating allocation size.
78477         Use memcpy to copy entries, instead of stpcpy.
78478         Set errno properly when returning NULL.
78479         Check for readdir error.
78480
78481 2000-06-26  Jim Meyering  <meyering@lucent.com>
78482
78483         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78484
78485 2000-06-25  Jim Meyering  <meyering@lucent.com>
78486
78487         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78488         Linux header bug when _XOPEN_SOURCE is defined to 500.
78489
78490 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78491
78492         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78493         deficiency.
78494
78495 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78496
78497         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78498         Include xalloc.h.
78499         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78500
78501 2000-06-24  Jim Meyering  <meyering@lucent.com>
78502
78503         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78504         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78505         for which strerror does return char*, but which lacks a conveniently
78506         accessible declaration of the function.  If the compile-test says
78507         strerror_r doesn't work, then resort to a `run'-test that works on
78508         BeOS and segfaults on DEC Unix.
78509
78510 2000-06-24  Jim Meyering  <meyering@lucent.com>
78511
78512         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78513
78514 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78515
78516         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78517         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78518
78519 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78520
78521         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78522         (mbrtowc, mbstate_t): Define substitutes if
78523         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78524         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78525         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78526
78527 2000-06-23  Jim Meyering  <meyering@lucent.com>
78528
78529         * m4/afs.m4: Add missing AC_MSG_RESULT.
78530         Reported by Bruno Haible.
78531
78532         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78533         Suggestion from Bruno Haible.
78534
78535 2000-06-23  Jim Meyering  <meyering@lucent.com>
78536
78537         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78538
78539 2000-06-21  Jim Meyering  <meyering@lucent.com>
78540
78541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78542
78543 2000-06-21  Jim Meyering  <meyering@lucent.com>
78544
78545         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78546         (noinst_HEADERS): Add getstr.h.
78547
78548         * lib/getline.c (getstr): Move into a separate file.
78549         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78550         the following changes: new parameter, delim2; both delim[12]
78551         parameters have type `int', not `char'.  The latter would lose
78552         with 8-bit delimiters.
78553         * lib/getstr.h: New file.
78554
78555 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78556
78557         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78558         than 1024, return a memory chunk of least possible size, instead
78559         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78560         Use free/xmalloc instead of xrealloc to avoid copying for very long
78561         paths.
78562
78563 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78564
78565         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78566         the empty string.
78567
78568 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78569
78570         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78571         address, not strdup.  Include <stdlib.h> and don't declare free().
78572
78573 2000-06-19  Jim Meyering  <meyering@lucent.com>
78574
78575         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78576
78577 2000-06-18  Jim Meyering  <meyering@lucent.com>
78578
78579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78580
78581         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78582         `checking whether...' message to be consistent with that of the
78583         lstat test.
78584
78585 2000-06-18  Jim Meyering  <meyering@lucent.com>
78586
78587         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78588         Besides, these days every porting target provides a mkdir function.
78589
78590         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78591         needed. (this snippet comes from src/system.h).
78592
78593 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78594
78595         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78596
78597 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78598
78599         * lib/human.c (adjust_value): New function.
78600         (human_readable_inexact): Apply rounding style even when
78601         printing approximate values.
78602
78603 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78604
78605         * lib/human.c (human_readable_inexact): Allow an input block
78606         size that is not a multiple of the output block size, and vice versa.
78607         Reported by Piergiorgio Sartor.
78608
78609 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78610
78611         * lib/getdate.y (get_date): Apply relative times after time
78612         zone indicator, not before.  Reported by Todd A. Jacobs.
78613
78614 2000-06-13  Jim Meyering  <meyering@lucent.com>
78615
78616         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78617
78618         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78619
78620 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78621
78622         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78623
78624 2000-06-12  Jim Meyering  <meyering@lucent.com>
78625
78626         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78627         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78628         optional argument.
78629         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78630         the optional argument, `lib'.
78631
78632 2000-06-08  Jim Meyering  <meyering@lucent.com>
78633
78634         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78635
78636 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78637
78638         Rewrite largefile configuration so that we don't need to run
78639         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78640         AC_CANONICAL_HOST in configure.in -- jmm]
78641
78642         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78643         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78644         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78645         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78646         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78647         All uses changed.
78648         Instead of inspecting the output of getconf, try to compile the
78649         test program without and with the macro definition.
78650         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78651         for getconf.  Instead, check for the needed flags by compiling
78652         test programs.
78653
78654 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78655
78656         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78657
78658 2000-06-04  Jim Meyering  <meyering@lucent.com>
78659
78660         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78661         SunOS 4.1.4 for which gid_t is an unsigned type.
78662
78663 2000-06-03  Jim Meyering  <meyering@lucent.com>
78664
78665         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78666         now that autoconf requires that.
78667
78668         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78669         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78670         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78671
78672 2000-06-03  Jim Meyering  <meyering@lucent.com>
78673
78674         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78675
78676 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78677
78678         * m4/glibc21.m4: New file.
78679         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78680
78681 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78682
78683         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78684         newer, don't install charset.alias.
78685         * lib/config.charset: Change the Linux/glibc rules so they become empty
78686         on glibc-2.1 or newer.
78687
78688 2000-06-02  Jim Meyering  <meyering@lucent.com>
78689
78690         * lib/mountlist.c: Back out last change.  Instead, do this...
78691         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78692         me_dummy member using the same `ignore'-testing code.
78693         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78694         fs_type strings.
78695         From Mark D. Roth.
78696
78697 2000-05-29  Jim Meyering  <meyering@lucent.com>
78698
78699         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78700         mounts with the `ignore' attribute.  Based on a patch from
78701         Mark D. Roth.
78702
78703 2000-05-28  Jim Meyering  <meyering@lucent.com>
78704
78705         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78706         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78707         * m4/stat.m4: Likewise.
78708         * m4/lstat.m4: Likewise.
78709         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78710
78711         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78712         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78713
78714 2000-05-26  Jim Meyering  <meyering@lucent.com>
78715
78716         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78717
78718 2000-05-24  Jim Meyering  <meyering@lucent.com>
78719
78720         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78721         autoconf requires that.
78722         * m4/lib-check.m4: Likewise.
78723         * m4/jm-macros.m4: Likewise.
78724         * m4/strftime.m4: Likewise.
78725
78726         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78727         AC_CHECK_DECLS, now that autoconf requires that.
78728
78729 2000-05-22  Jim Meyering  <meyering@lucent.com>
78730
78731         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78732         * m4/lstat.m4: Likewise.
78733
78734 2000-05-22  Jim Meyering  <meyering@lucent.com>
78735
78736         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78737
78738 2000-05-20  Jim Meyering  <meyering@lucent.com>
78739
78740         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78741         (jm_PREREQ): Use it.
78742
78743 2000-05-18  Jim Meyering  <meyering@lucent.com>
78744
78745         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78746         back, too, since it may have been modified by allocate_entry.
78747         (hash_delete): Rewrite to use neither the assignment operator
78748         nor the comma operator in an if-expression.
78749
78750 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78751
78752         * lib/closeout.c:
78753         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78754         Remove; no longer needed.
78755         "quotearg.h": Add include.
78756         (file_name): Do not bother to explicitly initialize to NULL; it's less
78757         efficient on some hosts.
78758         (close_stdout_status): Remove test as to whether stdout was already
78759         closed; it breaks for the case "echo x | sort >&-".
78760         Quote file name colons.
78761         Do not assume that _("write error") lacks format strings.
78762
78763 2000-05-15  Jim Meyering  <meyering@lucent.com>
78764
78765         * lib/version-etc.c (version_etc_copyright): Update the copyright
78766         string used in all --version output.
78767
78768 2000-05-14  Jim Meyering  <meyering@lucent.com>
78769
78770         * lib/closeout.c (close_stdout_set_file_name): New function.
78771         (close_stdout_status): Use new file-scoped global.
78772         Return right away if fstat says the stdout file descriptor is invalid.
78773         * lib/closeout.h (close_stdout_set_file_name): Declare.
78774
78775 2000-05-10  Jim Meyering  <meyering@lucent.com>
78776
78777         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78778         (close_stdout_set_status): New function.
78779         * lib/closeout.h (close_stdout_set_status): Declare.
78780
78781 2000-05-09  Jim Meyering  <meyering@lucent.com>
78782
78783         * m4/gettext.m4: Rename this...
78784         * m4/libintl.m4: ...to this.
78785
78786 2000-05-08  Jim Meyering  <meyering@lucent.com>
78787
78788         * lib/long-options.c: Don't include closeout.h.
78789         (parse_long_options): Don't call close_stdout for --version.
78790
78791 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78792
78793         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78794         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78795         2.1.3 bug.  This avoids a clash when files like regex.c define
78796         _GNU_SOURCE.
78797
78798 2000-05-06  Jim Meyering  <meyering@lucent.com>
78799
78800         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78801         (AC_REPLACE_FUNCS): Add strnlen.
78802
78803         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78804         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78805
78806         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78807         AC_SEARCH_LIBS call for nanosleep.
78808         (LIB_NANOSLEEP): Set and AC_SUBST.
78809
78810 2000-05-06  Jim Meyering  <meyering@lucent.com>
78811
78812         * lib/strnlen.c: Undefine __strnlen and strnlen.
78813         [!weak_alias]: Define __strnlen to strnlen.
78814
78815         * lib/atexit.c: New file, from libiberty.
78816
78817 2000-05-06  Jim Meyering  <meyering@lucent.com>
78818
78819         * lib/closeout.c (close_stdout_status): Also check for errors on the
78820         stderr stream.
78821
78822 2000-05-05  Jim Meyering  <meyering@lucent.com>
78823
78824         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78825         AC_SEARCH_LIBS call for clock_gettime.
78826         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78827
78828         * m4/search-libs.m4: Update from autoconf.
78829
78830         su doesn't work on Solaris 2.6.
78831         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78832         <shadow.h>.  Reported by Dragos Harabor.
78833
78834 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78835
78836         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78837         memcpy instead of xmalloc, xrealloc, path_concat.
78838         (locale_charset): Treat empty environment variables as absent.
78839         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78840
78841 2000-05-04  Jim Meyering  <meyering@lucent.com>
78842
78843         * lib/getopt.c: Update from glibc.
78844         * lib/obstack.c: Likewise.
78845         * lib/obstack.h: Likewise.
78846         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78847         file
78848
78849         * lib/regex.h: Likewise.
78850         * lib/strndup.c: Likewise.
78851         * lib/strnlen.c: New file, from glibc.
78852
78853 2000-05-03  Jim Meyering  <meyering@lucent.com>
78854
78855         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78856
78857 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78858
78859         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78860         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78861         compile-time test, rather than inspecting host and OS, to
78862         decide whether to define _LARGEFILE_SOURCE.
78863
78864 2000-05-01  Jim Meyering  <meyering@lucent.com>
78865
78866         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78867
78868         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78869         Based on a patch from Bruno Haible.
78870
78871 2000-05-01  Jim Meyering  <meyering@lucent.com>
78872
78873         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78874
78875 2000-04-29  Jim Meyering  <meyering@lucent.com>
78876
78877         * lib/path-concat.c: Declare strdup only if it's not defined.
78878         * lib/canon-host.c: Likewise.
78879
78880 2000-04-28  Jim Meyering  <meyering@lucent.com>
78881
78882         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78883         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78884         is included first, then limits.h is included by locale.h by libintl.h.
78885         From John David Anglin.
78886
78887 2000-04-25  Jim Meyering  <meyering@lucent.com>
78888
78889         * lib/makepath.c (S_IRWXUGO): Define.
78890         (make_path): Always perform explicit chmod if MODE specifies any
78891         of the `special' permission bits.  Prompted by a bug report against
78892         install from Mate Wierdl and Joost van Baal.
78893
78894 2000-04-18  Jim Meyering  <meyering@lucent.com>
78895
78896         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78897         (jm_PREREQ): Use it.
78898
78899 2000-04-18  Jim Meyering  <meyering@lucent.com>
78900
78901         * lib/README: New file.
78902
78903         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78904         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78905
78906 2000-04-17  Jim Meyering  <meyering@lucent.com>
78907
78908         Get it right :-)
78909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78910         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78911         Suggestion from Akim Demaille.
78912
78913 2000-04-17  Jim Meyering  <meyering@lucent.com>
78914
78915         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78916         the definition of it to rpl_strftime also defined-away the system's
78917         declaration.
78918
78919 2000-04-15  Jim Meyering  <meyering@lucent.com>
78920
78921         Use `C' to denote so-called `contiguous' files, the same way
78922         that tar does.
78923         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78924         (ftypelet): Use S_ISCTG.
78925         From Michael Deutschmann.
78926
78927 2000-04-14  Jim Meyering  <meyering@lucent.com>
78928
78929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78930         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78931         clobbered.
78932
78933 2000-04-14  Jim Meyering  <meyering@lucent.com>
78934
78935         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78936
78937 2000-04-13  Jim Meyering  <meyering@lucent.com>
78938
78939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78940         AH_VERBATIM to insert required #ifndef into config.h.in.
78941         Suggestion from Akim Demaille.
78942
78943 2000-04-12  Jim Meyering  <meyering@lucent.com>
78944
78945         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78946         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78947         Christian Krackowizer.
78948
78949         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78950         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78951         (AC_SYS_LARGEFILE): Require.
78952         (AM_C_PROTOTYPES): Require.
78953
78954 2000-04-08  Jim Meyering  <meyering@lucent.com>
78955
78956         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78957         names don't conflict.  Reported by Eli Zaretskii.
78958
78959 2000-04-07  Jim Meyering  <meyering@lucent.com>
78960
78961         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78962         sys/types.h, to work around system header problems on AIX 3.2.5.
78963         From Bruno Haible.
78964
78965 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78966
78967         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78968         bug.  Deal with the different error behavior of Irix iconv.
78969
78970 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78971
78972         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78973         IRIX if the installer said otherwise.
78974
78975 2000-04-05  Jim Meyering  <meyering@lucent.com>
78976
78977         Portability tweaks required for ultrix4.3.
78978         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78979         (jm_CHECK_DECLS): Add getutent to the list of functions.
78980         (_jm_DECL_HEADERS): Add utmpx.h.
78981         From John David Anglin.
78982
78983         * m4/strftime.m4: Back out the 2000-04-02 change.
78984         Instead of that change, simply undefine putenv in the test program.
78985
78986 2000-04-05  Jim Meyering  <meyering@lucent.com>
78987
78988         Portability tweaks required for ultrix4.3.
78989         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78990         getutent.
78991         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78992         * lib/canon-host.c: Declare strdup.
78993         * lib/path-concat.c: Likewise.
78994         From John David Anglin.
78995
78996 2000-04-04  Jim Meyering  <meyering@lucent.com>
78997
78998         Be more DOS 8.3-friendly.
78999         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79000         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79001         * lib/Makefile.am: Reflect renaming.
79002         Reported by Eli Zaretskii.
79003
79004         Use a temporary file name that won't clash with `charset.alias'
79005         in the DOS 8.3 name space.
79006         * lib/Makefile.am (charset_tmp): Define.
79007         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79008         (uninstall-local): Likewise.
79009         Reported by Eli Zaretskii.
79010
79011 2000-04-03  Jim Meyering  <meyering@lucent.com>
79012
79013         * m4/gettext.m4: Fix typo in comment.
79014
79015         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79016         textutils/configure.in).  Suggestion from Paul Eggert.
79017         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79018
79019 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79020
79021         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79022         variable in the shell rather than using putenv, which isn't
79023         portable.  This avoids the configure-time inter-test dependency
79024         on the potentially-renamed putenv function.
79025
79026 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79027
79028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79029         before checking struct stat.st_blksize, so that
79030         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79031
79032 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79033
79034         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79035         since strftime.c uses HAVE_STRFTIME to decide whether to use
79036         the underlying strftime.
79037
79038 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79039
79040         * lib/time/strftime.c (my_strftime): Make sure we call the system
79041         strftime, not ourselves, when invoking the underlying strftime.
79042
79043 2000-03-24  Jim Meyering  <meyering@lucent.com>
79044
79045         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79046         (charset_alias): Define.
79047         (install-exec-local): Factor out common code.
79048         (uninstall-local): Split lines longer than 80.
79049         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79050         (SUFFIXES): Define.
79051         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79052         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79053
79054 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79055
79056         * lib/config.charset: Output a line containing "Packages using this
79057         file".
79058         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79059         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79060         ref-del.sed): New rules.
79061
79062 2000-03-17  Jim Meyering  <meyering@lucent.com>
79063
79064         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79065         Otherwise, include <strings.h>
79066
79067 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79068
79069         * lib/unicodeio.c (utf8_wctomb): New function.
79070         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79071         format instead of in UCS-4 with platform dependent endianness.
79072
79073 2000-03-10  Jim Meyering  <meyering@lucent.com>
79074
79075         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79076         From Marco Franzen.
79077
79078 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79079
79080         * lib/savedir.c (savedir): Work even if directory size is
79081         negative; this can happen with some screwy NFS configurations.
79082
79083 2000-03-06  Jim Meyering  <meyering@lucent.com>
79084
79085         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79086         if it's NULL (because we ran out of memory).  From Bruno Haible.
79087
79088 2000-03-05  Jim Meyering  <meyering@lucent.com>
79089
79090         * lib/localcharset.c ("path-concat.h"): Include.
79091         (get_charset_aliases): Use path_concat instead of ANSI string
79092         concatenation.
79093
79094         * lib/unicodeio.h (PARAMS): Define.
79095         Use it to guard prototype.
79096
79097 2000-03-04  Jim Meyering  <meyering@lucent.com>
79098
79099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79100         for lib/localcharset.c.
79101
79102 2000-03-04  Jim Meyering  <meyering@lucent.com>
79103
79104         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79105         installing into it.
79106         (uninstall-local): Uncomment this rule so `make distcheck' works
79107         once again.
79108
79109         * lib/unicodeio.c (<errno.h>): Include it.
79110         (errno): Declare if not defined.
79111
79112         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79113
79114         * lib/config.charset: New version, incorporating remarks from a linux
79115         i18n mailing list.  From Bruno Haible.
79116
79117 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79118
79119         * m4/codeset.m4: New file.
79120         * m4/iconv.m4: New file.
79121         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79122
79123 2000-03-03  Jim Meyering  <meyering@lucent.com>
79124
79125         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79126
79127 2000-03-02  Jim Meyering  <meyering@lucent.com>
79128
79129         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79130         the messages come out on separate lines.
79131
79132         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79133         rather than jm_CHECK_DECLARATIONS.
79134         * m4/decl.m4: Remove now-unused file.
79135
79136         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79137         geteuid.
79138
79139 2000-03-02  Jim Meyering  <meyering@lucent.com>
79140
79141         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79142
79143 2000-03-01  Jim Meyering  <meyering@lucent.com>
79144
79145         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79146         * lib/unicodeio.c: Likewise.
79147
79148 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79149
79150         * lib/config.charset: New file.
79151         * lib/localcharset.c: New file.
79152         * lib/unicodeio.h, lib/unicodeio.c: New files.
79153         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79154         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79155         (noinst_HEADERS): Add unicodeio.h.
79156         (all-local, install-exec-local, charset.alias): New targets.
79157
79158 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79159
79160         * lib/quotearg.c (ALERT_CHAR): New macro.
79161         (quotearg_buffer_restyled): Use it.
79162
79163 2000-02-27  Jim Meyering  <meyering@lucent.com>
79164
79165         * m4/check-decl.m4: Add getenv to the list.
79166
79167 2000-02-27  Jim Meyering  <meyering@lucent.com>
79168
79169         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79170         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79171
79172         * lib/backupfile.c: Guard inclusion of stdlib.h with
79173         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79174         Declare malloc if needed.
79175
79176         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79177         `#ifndef HAVE_DECL..'
79178         now that autoconf always defines the HAVE_DECL_ symbols.
79179         * lib/human.c: Likewise.
79180         * lib/same.c: Likewise.
79181         * lib/strtoumax.c: Likewise.
79182
79183         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79184         declaration check was not run.
79185         * lib/hash.c: Likewise.
79186         * lib/human.c: Likewise.
79187         * lib/same.c: Likewise.
79188         * lib/strtoumax.c: Likewise.
79189
79190         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79191         `.', then first look up the entire `.'-containing string as a login
79192         name.
79193
79194 2000-02-23  Jim Meyering  <meyering@lucent.com>
79195
79196         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79197         in place of my hack.
79198
79199 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79200
79201         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79202         (textint): New typedef.
79203         (parser_control): Member year changed from int to textint.
79204         All uses changed.
79205         (YYSTYPE): Removed; replaced by %union with int and textint members.
79206         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79207         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79208         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79209         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79210         (date, number, to_year): Use width of number in digits, not its value,
79211         to determine whether it's a 2-digit year, or a 2-digit time.
79212         (yylex): Store number of digits of numeric tokens.
79213         Reported by John Kendall.
79214
79215         (parser_control): Changed from struct parser_control to typedef (for
79216         consistency).  All uses changed.
79217
79218         (tID): Removed; not used.
79219         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79220
79221 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79222
79223         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79224         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79225
79226 2000-02-12  Jim Meyering  <meyering@lucent.com>
79227
79228         * lib/userspec.c (ISDIGIT): Define it.
79229         (isdigit): Remove definition.
79230         (is_number): Use ISDIGIT, not isdigit.
79231         <libintl.h>: Include.
79232         (_ and N_): Define.
79233         (parse_user_spec): Mark translatable strings.
79234
79235 2000-02-10  Jim Meyering  <meyering@lucent.com>
79236
79237         With these changes, nanosleep.[ch] are finally enough like the other
79238         lib/* replacement files to compile on a few more losing systems.
79239
79240         * lib/nanosleep.h: Don't include config.h.
79241         Remove prototype from declaration of nanosleep.
79242         (PARAMS): Remove now-unneeded definition.
79243         * lib/nanosleep.c: #undef nanosleep.
79244         (rpl_nanosleep): Rename from nanosleep.
79245
79246 2000-02-10  Jim Meyering  <meyering@lucent.com>
79247
79248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79249         gnu_nanosleep to rpl_nanosleep.
79250
79251 2000-02-09  Jim Meyering  <meyering@lucent.com>
79252
79253         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79254         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79255
79256 2000-02-08  Akim Demaille  <akim@epita.fr>
79257
79258         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79259         `[' and `]' and remove uses of `changequote'.
79260         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79261         (AC_SYS_LARGEFILE): Likewise.
79262         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79263         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79264         of changequote.
79265         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79266         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79267         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79268         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79269
79270 2000-02-05  Jim Meyering  <meyering@lucent.com>
79271
79272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79273         Remove explicit use of AC_HEADER_TIME.  It is required by
79274         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79275         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79276         in autoconf whereby the expansion of the latter ended up preceding
79277         the expansion of its prerequisite, AC_HEADER_TIME.
79278         Reported by Volker Borchert.
79279
79280 2000-02-03  Jim Meyering  <meyering@lucent.com>
79281
79282         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79283
79284 2000-02-03  Jim Meyering  <meyering@lucent.com>
79285
79286         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79287         rather than with `#if HAVE_UTMPNAME'.
79288
79289 2000-02-02  Jim Meyering  <meyering@lucent.com>
79290
79291         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79292         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79293         Reported by Eli Zaretskii.
79294
79295 2000-02-01  Jim Meyering  <meyering@lucent.com>
79296
79297         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79298
79299 2000-01-31  Jim Meyering  <meyering@lucent.com>
79300
79301         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79302         functions.  Add the time.h and sys/time.h headers along with the
79303         AC_REQUIRE'ment of AC_HEADER_TIME.
79304
79305 2000-01-31  Jim Meyering  <meyering@lucent.com>
79306
79307         * lib/nanosleep.h (nanosleep): Guard declaration with
79308         `#if ! HAVE_DECL_NANOSLEEP'.
79309         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79310         the declaration in that vendor's sys/timers.h.
79311         Reported by Christian Krackowizer.
79312
79313         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79314         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79315         (ISPRINT): Likewise.
79316         Reported by Tom Tromey.
79317
79318 2000-01-30  Jim Meyering  <meyering@lucent.com>
79319
79320         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79321
79322         * m4/prereq.m4 (utmp_includes): Define.
79323         Check for ut_user and ut_name members in both struct utmpx
79324         and struct utmp.
79325
79326 2000-01-30  Jim Meyering  <meyering@lucent.com>
79327
79328         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79329         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79330         header files where only utmpx.ut_user is declared.
79331
79332         * lib/readutmp.h (UT_USER): Define.
79333
79334 2000-01-29  Jim Meyering  <meyering@lucent.com>
79335
79336         * m4/lib-check.m4: New file containing library-related checks from
79337         fileutils and sh-utils (textutils had none).
79338
79339 2000-01-28  Jim Meyering  <meyering@lucent.com>
79340
79341         * m4/perl.m4: Change format of warning message to look more like that
79342         from the missing script.  Suggestion from François Pinard.
79343
79344 2000-01-25  Jim Meyering  <meyering@lucent.com>
79345
79346         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79347         well as time.h in the compile check.
79348         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79349         Fix typo in cross-compiling case: s/yes/no/.
79350
79351 2000-01-23  Jim Meyering  <meyering@lucent.com>
79352
79353         * m4/jm-macros.m4: Move df-related tests here from
79354         fileutils/configure.in
79355
79356         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79357         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79358
79359         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79360         s/space/ac_fsusage_space/.
79361         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79362
79363         * m4/ftruncate.m4: New file (derived from part of
79364         fileutils/configure.in).
79365         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79366         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79367
79368         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79369         AC_SUBST these here, rather than just in sh-util/configure.in, so
79370         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79371         all the same.
79372         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79373         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79374         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79375         (AC_SUBST(POW_LIBM)): Likewise.
79376         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79377
79378 2000-01-23  Jim Meyering  <meyering@lucent.com>
79379
79380         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79381         obstack.c.
79382
79383 2000-01-22  Jim Meyering  <meyering@lucent.com>
79384
79385         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79386
79387         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79388
79389         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79390         configure.in
79391         (AC_CHECK_HEADERS): Likewise for sh-utils.
79392         (AC_CHECK_HEADERS): Likewise for textutils.
79393         Merge the three lists of headers.
79394
79395         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79396         from fileutils' configure.in.
79397
79398         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79399         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79400         check-decl.m4.
79401
79402         * m4/check-decl.m4: Use #if rather than #ifdef.
79403         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79404         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79405         (_jm_DECL_HEADERS): Define new function.
79406         (jm_CHECK_DECLARATIONS): Require it.
79407
79408 2000-01-22  Jim Meyering  <meyering@lucent.com>
79409
79410         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79411         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79412         Required for some AIX systems.  Reported by Christian Krackowizer.
79413         [TESTING] (main): New function.
79414
79415         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79416         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79417         letters.
79418
79419         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79420         iswprint.
79421
79422         * lib/strverscmp.c (ISDIGIT): Define.
79423         (strverscmp): Use ISDIGIT, not isdigit.
79424
79425 2000-01-19  Jim Meyering  <meyering@lucent.com>
79426
79427         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79428         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79429         defines `struct timespec' in <sys/time.h>
79430
79431         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79432         Thanks to Akim for explaining.
79433
79434 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79435
79436         * lib/nanosleep.c (nanosleep):
79437         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79438         POSIX.1 doesn't require SA_INTERRUPT and some systems
79439         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79440         it's been part of POSIX.1 since day 1 (in 1988).
79441
79442 2000-01-17  Jim Meyering  <meyering@lucent.com>
79443
79444         * lib/interlock: Remove unused file.  Reported by François Pinard.
79445
79446 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79447
79448         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79449         alert, backslash, formfeed, and vertical tab unnecessarily in
79450         shell quoting style.
79451
79452 2000-01-16  Jim Meyering  <meyering@lucent.com>
79453
79454         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79455         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79456         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79457         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79458
79459 2000-01-16  Jim Meyering  <meyering@lucent.com>
79460
79461         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79462         because the latter didn't work.
79463
79464 2000-01-15  Jim Meyering  <meyering@lucent.com>
79465
79466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79467         (AC_REPLACE_FUNCS): Add memcpy and memset.
79468         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79469         Add strpbrk.
79470         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79471
79472 2000-01-12  Jim Meyering  <meyering@lucent.com>
79473
79474         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79475         (jm_PREREQ): Use it.
79476         (jm_PREREQ_READUTMP): New macro.
79477         (jm_PREREQ): Use it.
79478
79479 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79480
79481         Quote multibyte characters correctly.
79482         * m4/c-bs-a.m4: New file.
79483         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79484         (jm_PREREQ): Use it.
79485
79486 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79487
79488         * m4/uintmax_t.m4: Port to autoconf 2.13.
79489
79490 2000-01-08  Jim Meyering  <meyering@ascend.com>
79491
79492         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79493         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79494
79495 2000-01-04  Jim Meyering  <meyering@ascend.com>
79496
79497         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79498         jm_STRUCT_DIRENT_D_TYPE.
79499         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79500         jm_STRUCT_DIRENT_D_INO.
79501         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79502         jm_STRUCT_UTIMBUF.
79503         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79504         renamings.
79505         * m4/utime.m4: Likewise.
79506
79507         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79508         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79509
79510 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79511
79512         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79513         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79514
79515 2000-01-02  Jim Meyering  <meyering@ascend.com>
79516
79517         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79518         remember if this is necessary.
79519
79520 1999-12-26  Jim Meyering  <meyering@ascend.com>
79521
79522         * m4/jm-macros.m4: Use it here.
79523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79524
79525 1999-12-23  Jim Meyering  <meyering@ascend.com>
79526
79527         * m4/jm-macros.m4: Check for clock_gettime (moved from
79528         fileutils/configure.in)
79529         Check for gettimeofday.
79530
79531 1999-12-20  Jim Meyering  <meyering@ascend.com>
79532
79533         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79534         autoconf-2.14a-1999-12-20.
79535
79536 1999-12-19  Jim Meyering  <meyering@ascend.com>
79537
79538         * m4/lstat-slash.m4: New file.
79539         * m4/jm-macros.m4: Use the new macro:
79540         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79541
79542 1999-12-07  Jim Meyering  <meyering@ascend.com>
79543
79544         * m4/perl.m4: Require that File::Compare be available, too.
79545         Too many systems seem to lack it.
79546
79547         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79548         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79549
79550 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79551
79552         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79553         problem with the QNX 4.25 shell, which doesn't propagate exit
79554         status of failed commands inside shell assignments.
79555
79556 1999-11-17  Jim Meyering  <meyering@ascend.com>
79557
79558         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79559
79560 1999-11-07  Jim Meyering  <meyering@ascend.com>
79561
79562         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79563
79564 1999-11-06  Jim Meyering  <meyering@ascend.com>
79565
79566         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79567         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79568
79569 1999-11-05  Jim Meyering  <meyering@ascend.com>
79570
79571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79572         configure.in of textutils, fileutils, and sh-utils into this one
79573         (shared between those packages) file.
79574         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79575         AC_STRUCT_ST_BLKSIZE.
79576
79577 1999-11-03  Jim Meyering  <meyering@ascend.com>
79578
79579         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79580         of AC_CHECK_TYPE checks includes unistd.h.
79581         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79582         Suggestion from Akim Demaille.
79583
79584 1999-10-30  Jim Meyering  <meyering@ascend.com>
79585
79586         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79587         m4-quoted string.
79588         * m4/ls-mntd-fs.m4: Likewise.
79589         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79590         * m4/jm-winsz1.m4: Likewise.
79591
79592         * m4/const.m4: Remove file, since the fix made it into the experimental
79593         version of autoconf.
79594         * m4/mktime.m4: Likewise.
79595
79596         * m4/check-type.m4: Remove file, now that the latest version of
79597         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79598
79599         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79600         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79601         AC_CHECK_TYPE.
79602
79603 1999-10-04  Jim Meyering  <meyering@ascend.com>
79604
79605         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79606
79607 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79608
79609         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79610         2.95.1 bug with HP-UX 10.20.
79611
79612 1999-09-17  Jim Meyering  <meyering@ascend.com>
79613
79614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79615         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79616         due to missing strdup (against sh-utils-2.0).
79617
79618 1999-08-29  Jim Meyering  <meyering@ascend.com>
79619
79620         * m4/jm-macros.m4: Require jm_BISON.
79621         * m4/bison.m4: New file.
79622
79623 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79624
79625         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79626         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79627
79628 1999-08-05  Jim Meyering  <meyering@ascend.com>
79629
79630         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79631         to avoid conflicts with `conftest' on 8+3 filesystems.
79632         Suggestion from Eli Zaretskii.
79633
79634 1999-08-04  Jim Meyering  <meyering@ascend.com>
79635
79636         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79637         fileutils and sh-utils (textutils's getline test was inadequate).
79638         (AM_FUNC_GETLINE): Run this test.
79639         (AC_CHECK_FUNCS): Check for getdelim.
79640         Reported by Bob Proulx.
79641
79642 1999-08-02  Jim Meyering  <meyering@ascend.com>
79643
79644         * m4/jm-macros.m4: Add a comment.
79645
79646 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79647
79648         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79649         <inttypes.h> defines strtoumax as a macro (and not as a
79650         function).
79651
79652 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79653
79654         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79655         that we can shift, multiply and divide unsigned long long
79656         values; Ultrix cc can't do it.
79657
79658 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79659
79660         * m4/mktime.m4: New file, which is a preview of what should appear
79661         in the next public autoconf release.
79662
79663 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79664
79665         * m4/lfs.m4: Remove this file.
79666         * m4/largefile.m4: New file.  It contains the old contents of
79667         lfs.m4, except that all names with prefix AC_LFS have been
79668         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79669         compatible with future autoconf versions.  Also, some minor m4
79670         quoting problems have been fixed.
79671
79672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79673
79674         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79675         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79676         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79677         and simplify the shell code.
79678
79679 1999-08-01  Jim Meyering  <meyering@ascend.com>
79680
79681         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79682         m4.
79683
79684 1999-07-20  Jim Meyering  <meyering@ascend.com>
79685
79686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79687
79688 1999-07-15  Jim Meyering  <meyering@ascend.com>
79689
79690         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79691
79692 1999-05-22  Jim Meyering  <meyering@ascend.com>
79693
79694         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79695
79696 1999-05-20  Jim Meyering  <meyering@ascend.com>
79697
79698         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79699         Add a colon after each `then' in case $4 is empty.
79700
79701 1999-05-16  Jim Meyering  <meyering@ascend.com>
79702
79703         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79704
79705 1999-05-10  Jim Meyering  <meyering@ascend.com>
79706
79707         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79708
79709         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79710         AC_FUNC_MKTIME.
79711
79712 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79713
79714         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79715
79716 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79717
79718         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79719         not CPPFLAGS, so that linking works correctly in IRIX.
79720
79721 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79722
79723         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79724
79725 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79726
79727         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79728         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79730         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79731         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79732
79733         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79734
79735 1999-04-20  Jim Meyering  <meyering@ascend.com>
79736
79737         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79738         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79739         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79740
79741 1999-04-18  Jim Meyering  <meyering@ascend.com>
79742
79743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79744         * m4/jm-macros.m4: Use it.
79745
79746 1999-04-06  Jim Meyering  <meyering@ascend.com>
79747
79748         * m4/strftime.m4: Remove test for %f.
79749
79750 1999-03-29  Jim Meyering  <meyering@ascend.com>
79751
79752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79753         superset of the AC_TYPE_* checks in the textutils, fileutils,
79754         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79755         AC_TYPE_PID_T.
79756
79757 1999-03-28  Jim Meyering  <meyering@ascend.com>
79758
79759         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79760         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79761         replaced e.g., in the *.sh files of the sh-utils.
79762
79763 1999-03-20  Jim Meyering  <meyering@ascend.com>
79764
79765         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79766         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79767         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79768
79769 1999-03-19  Jim Meyering  <meyering@ascend.com>
79770
79771         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79772
79773 1999-03-12  Jim Meyering  <meyering@ascend.com>
79774
79775         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79776
79777 1999-03-07  Jim Meyering  <meyering@ascend.com>
79778
79779         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79780         declared.
79781
79782 1999-02-17  Jim Meyering  <meyering@ascend.com>
79783
79784         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79785         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79786
79787 1999-02-07  Jim Meyering  <meyering@ascend.com>
79788
79789         * m4/group-member.m4: New file -- extracted from sh-utils'
79790         configure.in.
79791
79792         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79793         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79794
79795 1999-02-06  Jim Meyering  <meyering@ascend.com>
79796
79797         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79798         * m4/fnmatch.m4: Likewise.
79799         * m4/getgroups.m4: Likewise.
79800         * m4/lstat.m4: Likewise.
79801         * m4/malloc.m4: Likewise.
79802         * m4/putenv.m4: Likewise.
79803         * m4/realloc.m4: Likewise.
79804         * m4/regex.m4: Likewise.
79805         * m4/stat.m4: Likewise.
79806         * m4/strftime.m4: Likewise.
79807         Suggestion from Alain Magloire.
79808
79809         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79810         * m4/fnmatch.m4: Likewise.
79811         * m4/getgroups.m4: Likewise.
79812         * m4/getline.m4: Likewise.
79813         * m4/lstat.m4: Likewise.
79814         * m4/malloc.m4: Likewise.
79815         * m4/memcmp.m4: Likewise.
79816         * m4/putenv.m4: Likewise.
79817         * m4/realloc.m4: Likewise.
79818         * m4/regex.m4: Likewise.
79819         * m4/stat.m4: Likewise.
79820         * m4/strftime.m4: Likewise.
79821         Suggestion from Alain Magloire.
79822
79823         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79824         an argument.
79825
79826         * m4/regex.m4: Add a run-time Test for proper operation of
79827         re_compile_pattern.
79828
79829 1999-01-31  Jim Meyering  <meyering@ascend.com>
79830
79831         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79832
79833 1999-01-30  Jim Meyering  <meyering@ascend.com>
79834
79835         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79836
79837         * m4/jm-mktime.m4: Make this a wrapper around the official
79838         AM_FUNC_MKTIME rather than my private copy, now that the official one
79839         is up to date.
79840         * m4/mktime.m4: Remove file.
79841
79842         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79843         * m4/uptime.m4: Likewise.
79844         * m4/uintmax_t.m4: Likewise.
79845
79846 1999-01-28  Jim Meyering  <meyering@ascend.com>
79847
79848         * m4/jm-macros.m4: Use jm_AFS.
79849         * m4/afs.m4: New file (from fileutils' configure.in).
79850
79851         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79852         * m4/chown.m4: Likewise.
79853         * m4/d-ino.m4: Likewise.
79854         * m4/d-type.m4: Likewise.
79855         * m4/fnmatch.m4: Likewise.
79856         * m4/getgroups.m4: Likewise.
79857         * m4/gettext.m4: Likewise.
79858         * m4/jm-mktime.m4: Likewise.
79859         * m4/jm-winsz2.m4: Likewise.
79860         * m4/lcmessage.m4: Likewise.
79861         * m4/ls-mntd-fs.m4: Likewise.
79862         * m4/malloc.m4: Likewise.
79863         * m4/memcmp.m4: Likewise.
79864         * m4/putenv.m4: Likewise.
79865         * m4/realloc.m4: Likewise.
79866         * m4/st_mtim.m4: Likewise.
79867         * m4/strftime.m4: Likewise.
79868
79869 1999-01-16  Jim Meyering  <meyering@ascend.com>
79870
79871         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79872         (ARGMATCH_DIE_DECL): Define.
79873
79874 1999-01-12  Jim Meyering  <meyering@ascend.com>
79875
79876         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79877         Reported by Lars Hecking.
79878
79879 1999-01-10  Jim Meyering  <meyering@ascend.com>
79880
79881         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79882         gross kludge.
79883         * m4/inttypes_h.m4: Likewise.
79884         * m4/lstat.m4: Likewise.
79885         * m4/malloc.m4: Likewise.
79886         * m4/readdir.m4: Likewise.
79887         * m4/realloc.m4: Likewise.
79888         * m4/st_dm_mode.m4: Likewise.
79889         * m4/stat.m4: Likewise.
79890         * m4/utimbuf.m4: Likewise.
79891         * m4/utimes.m4: Likewise.
79892
79893         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79894         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79895         comments in config.h.in are meaningful.
79896
79897         * m4/jm-macros.m4: Require autoconf-2.13 here.
79898
79899         * m4/regex.m4: By default, don't use the included regex.c on systems
79900         with glibc 2.  Suggestion from Uli Drepper.
79901
79902 1999-01-02  Jim Meyering  <meyering@ascend.com>
79903
79904         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79905
79906 1998-12-18  Jim Meyering  <meyering@ascend.com>
79907
79908         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79909         Based on a suggestion from Lars Hecking.
79910
79911 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79912
79913         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79914
79915 1998-11-16  Jim Meyering  <meyering@ascend.com>
79916
79917         * m4/lfs.m4: Double-quote the `uname...` expression.
79918
79919 1998-11-14  Jim Meyering  <meyering@ascend.com>
79920
79921         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79922         * m4/stat.m4: Likewise.
79923
79924 1998-11-03  Jim Meyering  <meyering@ascend.com>
79925
79926         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79927         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79928
79929 1998-10-18  Jim Meyering  <meyering@ascend.com>
79930
79931         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79932
79933 1998-10-17  Jim Meyering  <meyering@ascend.com>
79934
79935         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79936         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79937         calls for those previously hard-coded headers.  Instead, take a new
79938         parameter.
79939         (jm_CHECK_DECLARATIONS): Reflect interface change.
79940         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79941         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79942
79943         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79944
79945 1998-10-14  Jim Meyering  <meyering@ascend.com>
79946
79947         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79948         instead of "TZ=America/Vancouver".  From Paul Eggert.
79949
79950 1998-10-11  Jim Meyering  <meyering@ascend.com>
79951
79952         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79953         This adds a test for a recently added compatibility fix for mktime.c.
79954         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79955
79956 1998-09-27  Jim Meyering  <meyering@ascend.com>
79957
79958         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79959
79960         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79961         ../configure.in, including a change from Gordon Matzigkeit to allow
79962         cross-compiling for the Hurd.
79963
79964         * m4/glibc.m4: New file/macro to test for the GNU C Library
79965         versions 1 and 2.  From Gordon Matzigkeit.
79966         Indent.
79967
79968 1998-09-21  Jim Meyering  <meyering@ascend.com>
79969
79970         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79971
79972 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79973
79974         Port nanosecond-resolution times to UnixWare 2.1.2 and
79975         pedantic Solaris 2.6.
79976
79977         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79978         AC_STRUCT_ST_MTIM.
79979         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79980         Generate name of ns member, instead of just 1 or undef.
79981         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79982
79983 1998-08-15  Jim Meyering  <meyering@ascend.com>
79984
79985         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79986         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79987         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79988         instead of jm_TYPE_SSIZE_T.
79989
79990 1998-08-12  Jim Meyering  <meyering@ascend.com>
79991
79992         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79993
79994 1998-08-02  Jim Meyering  <meyering@ascend.com>
79995
79996         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79997         in acconfig.h manually.
79998
79999 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80000
80001         * m4/st_mtim.m4: New file.
80002
80003 1998-07-28  Jim Meyering  <meyering@ascend.com>
80004
80005         * m4/utimes.m4: Undef stat.
80006
80007 1998-07-25  Jim Meyering  <meyering@ascend.com>
80008
80009         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80010         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80011
80012 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80013
80014         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80015         uid and gid actually remain unchanged.
80016
80017 1998-07-07  Jim Meyering  <meyering@ascend.com>
80018
80019         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80020
80021 1998-07-04  Jim Meyering  <meyering@ascend.com>
80022
80023         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80024         to prove that this macro can be used in packages without regex.c.
80025
80026 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80027
80028         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80029         is to be used.
80030
80031 1998-07-03  Jim Meyering  <meyering@ascend.com>
80032
80033         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80034
80035         * m4/gettext.m4: New file -- from gettext-0.10.35.
80036         * m4/lcmessage.m4: Likewise.
80037         * m4/progtest.m4: Likewise.
80038
80039         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80040         * m4/jm-macros.m4: Require the new macro.
80041
80042 1998-06-29  Jim Meyering  <meyering@ascend.com>
80043
80044         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80045         for the definition of NGROUPS (used in a system header included
80046         by sys/mount.h).
80047
80048 1998-06-28  Jim Meyering  <meyering@ascend.com>
80049
80050         * m4/ls-mntd-fs.m4: New file.
80051         * m4/fstypename.m4: New file.
80052
80053         * m4/jm-macros.m4: Require the new macro.
80054         * m4/jm-glibc-io.m4: New file.
80055
80056 1998-05-19  Jim Meyering  <meyering@ascend.com>
80057
80058         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80059         * m4/lchown.m4: New file.
80060
80061         * m4/Makefile.am.in: New file.
80062         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80063
80064 1998-05-14  Jim Meyering  <meyering@ascend.com>
80065
80066         * m4/Makefile.am (EXTRA_DIST): Add them.
80067         * m4/jm-macros.m4: New file.
80068         * m4/utimbuf.m4: New file.
80069
80070 1998-05-12  Jim Meyering  <meyering@ascend.com>
80071
80072         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80073
80074 1998-05-11  Jim Meyering  <meyering@ascend.com>
80075
80076         * m4/isc-posix.m4: New file.
80077
80078 1998-05-10  Jim Meyering  <meyering@ascend.com>
80079
80080         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80081
80082 1998-05-09  Jim Meyering  <meyering@ascend.com>
80083
80084         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80085         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80086         with automake.
80087
80088         * m4/ssize_t.m4: New file.
80089         * m4/mktime.m4: Remove file -- the new automake has this now.
80090
80091 1998-04-26  Jim Meyering  <meyering@ascend.com>
80092
80093         * m4/assert.m4: New file.
80094         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80095
80096 1998-04-05  Jim Meyering  <meyering@ascend.com>
80097
80098         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80099         (jm_PREREQ): Use it here.
80100
80101 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80102
80103         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80104         in acconfig.h.
80105
80106 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80107
80108         * m4/prereq.m4: New file.
80109         * m4/error.m4: New file.
80110         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80111
80112 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80113
80114         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80115         cache-check for the same variable -- that defeated the purpose of
80116         the test; the test program was never run.  This was a problem only
80117         on systems with losing getline functions -- HP-UX 10.20 is one.
80118         Reported by Bjorn Helgaas.
80119
80120 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80121
80122         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80123
80124 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80125
80126         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80127
80128         * m4/const.m4: New file.  Use an initializer in this declaration
80129         typedef int charset[2]; const charset x;
80130         Reported by Bob Glickstein.
80131
80132 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80133
80134         * m4/chown.m4: Fix reversed types on -1 args to chown.
80135         From Kaveh Ghazi.
80136
80137 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80138
80139         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80140         Add lseek and memchr.
80141
80142         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80143         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80144         have a 20-character limit on names.
80145
80146 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80147
80148         * m4/inttypes_h.m4: New file.
80149         * m4/uintmax_t.m4: New file.
80150         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80151
80152
80153         -----
80154
80155         Local Variables:
80156         coding: utf-8
80157         End:
80158
80159         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80160
80161         Copying and distribution of this file, with or without
80162         modification, are permitted provided the copyright notice
80163         and this notice are preserved.